* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; }

h1 { margin-bottom: 0.5rem; }
.subtitle { color: #666; margin-bottom: 1.5rem; }

.sentence-text { background: #fff; border-left: 4px solid #3498db; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 1.1rem; font-style: italic; }

table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 1.5rem; }
th, td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: #666; }
.form { font-weight: 600; }
.silver-lemma { color: #888; }

input[type="text"], input[type="password"] { border: 1px solid #ddd; border-radius: 3px; padding: 0.35rem 0.5rem; font-size: 0.95rem; width: 100%; }
.lemma-input { width: 100%; }
.comment-input { width: 100%; font-size: 0.85rem; }
.override-input { max-width: 150px; }

/* Column widths for review table */
.col-attn { width: 2.5rem; text-align: center; cursor: default; }
.col-id { width: 3rem; text-align: center; }
.col-form { width: 8rem; }
.col-silver { width: 8rem; }
.col-lemma { width: 12rem; }
.col-comment { }
.col-flag { width: 3rem; text-align: center; }

.actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1rem; }
.btn { display: inline-block; padding: 0.5rem 1.25rem; background: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 0.95rem; text-decoration: none; }
.btn:hover { background: #2980b9; }
.btn-secondary { background: #95a5a6; }
.btn-secondary:hover { background: #7f8c8d; }

.progress-bar { background: #eee; border-radius: 10px; height: 8px; width: 120px; display: inline-block; vertical-align: middle; margin-right: 0.5rem; }
.progress-fill { background: #27ae60; height: 100%; border-radius: 10px; }

.badge { font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 12px; }
.badge.done { background: #d4edda; color: #155724; }
.badge.pending { background: #fff3cd; color: #856404; }
.badge.flagged { background: #f8d7da; color: #721c24; }
.badge.in-progress { background: #d1ecf1; color: #0c5460; }

.annotator-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; font-size: 0.9rem; }
.flag-count { color: #e67e22; font-weight: 600; font-size: 0.85rem; }
.btn-export { background: #27ae60; }
.btn-export:hover { background: #219a52; }

.error { color: #e74c3c; margin-top: 0.5rem; }
.alert { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.comment-note { font-size: 0.8rem; color: #3498db; margin-top: 0.25rem; }
.empty-state { color: #888; font-style: italic; }

.correction { background: #fff3cd; padding: 0.1rem 0.3rem; border-radius: 2px; font-weight: 600; }
.agreed { color: #27ae60; }
.flag-note { font-size: 0.8rem; color: #e67e22; margin-top: 0.25rem; }
.row-changed { background: #fffde7; }
.row-flagged { border-left: 3px solid #e67e22; }

form.review-form { max-width: none; width: 100%; }

.pass-nav { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.pass-tab { padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.85rem; }
.pass-tab.active { background: #3498db; color: white; font-weight: 600; }
.pass-tab.done { background: #d4edda; color: #155724; text-decoration: none; }
.pass-tab.done:hover { background: #c3e6cb; }
.pass-tab.pending { background: #eee; color: #999; }

/* Morph review layout */
.morph-token { background: white; border: 1px solid #eee; border-radius: 4px; padding: 0.75rem; margin-bottom: 0.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.morph-token-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.morph-id { color: #999; font-size: 0.85rem; min-width: 1.5rem; }
.morph-upos-badge { background: #e8f4fd; color: #2980b9; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.8rem; font-weight: 600; }
.morph-silver-feats { color: #888; font-size: 0.8rem; font-family: monospace; }
.morph-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.comment-input-sm { max-width: 150px; font-size: 0.8rem; padding: 0.2rem 0.4rem; }
.flag-label { cursor: pointer; display: flex; align-items: center; gap: 0.2rem; }

.morph-features { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.morph-feat { display: flex; flex-direction: column; }
.morph-feat label { font-size: 0.75rem; color: #666; font-weight: 600; text-transform: uppercase; }
.morph-feat select { padding: 0.25rem 0.4rem; border: 1px solid #ddd; border-radius: 3px; font-size: 0.9rem; min-width: 5rem; }
.morph-no-feats { color: #999; font-style: italic; font-size: 0.85rem; }

