* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, sans-serif; background: #f5f5f5; padding: 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h1 { color: #07c160; font-size: 28px; }
.section { background: white; padding: 25px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card { background: white; padding: 25px; border-radius: 12px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-value { font-size: 36px; font-weight: bold; color: #07c160; }
.stat-label { color: #666; font-size: 14px; margin-top: 8px; }
textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 12px; font-size: 14px; resize: vertical; }
button { padding: 12px 24px; background: #07c160; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
button:hover { background: #06ad56; }
button:disabled { background: #ccc; cursor: not-allowed; }
.btn-secondary { background: #1890ff; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f8f8; font-weight: 600; position: sticky; top: 0; }
.search-box { margin-bottom: 15px; display: flex; gap: 10px; }
.search-box input { padding: 10px 15px; flex: 1; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pagination button { padding: 8px 16px; min-width: 40px; }
.pagination .active { background: #06ad56; }
.toast { position: fixed; top: 20px; right: 20px; padding: 15px 25px; background: #07c160; color: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: none; z-index: 1000; }
.toast.visible { display: block; }
.toast.error { background: #ff4d4f; }
.login-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.login-box { background: white; padding: 40px; border-radius: 16px; width: 400px; text-align: center; }
.login-box input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 20px; font-size: 16px; }
.login-box button { width: 100%; padding: 14px; font-size: 16px; }
.hidden { display: none !important; }
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #eee; }
.tab { padding: 12px 24px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; color: #666; }
.tab.active { color: #07c160; border-bottom-color: #07c160; font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.setting-item { display: flex; flex-direction: column; gap: 5px; }
.setting-item label { font-size: 13px; color: #666; }
.setting-item input { padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
.review-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.review-toolbar input, .review-toolbar select, .review-field input, .review-field select { padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; background: #fff; }
.review-toolbar input { min-width: 220px; flex: 1; }
.review-layout { display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 58%); gap: 20px; }
.review-list-row { cursor: pointer; }
.review-list-row:hover, .review-list-row.selected { background: #f0fff6; }
.review-list-row:focus { outline: 2px solid #1890ff; outline-offset: -2px; }
.review-status { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.review-status.pending { color: #ad6800; background: #fff7e6; }
.review-status.approved { color: #237804; background: #f6ffed; }
.review-status.rejected { color: #a8071a; background: #fff1f0; }
.review-status.other { color: #555; background: #f0f0f0; }
.review-detail { border-left: 1px solid #eee; padding-left: 20px; min-width: 0; }
.review-detail-header, .review-actions, .review-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-detail-header { justify-content: space-between; margin-bottom: 15px; }
.review-nav button, .review-actions button { padding: 8px 14px; }
.review-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.review-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.review-field.full { grid-column: 1 / -1; }
.review-field label { color: #666; font-size: 13px; }
.review-field input, .review-field textarea { width: 100%; margin: 0; }
.review-field textarea { min-height: 90px; font-family: inherit; }
.review-help { color: #999; font-size: 12px; line-height: 1.5; }
.review-panel { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee; }
.review-panel h4 { margin-bottom: 10px; }
.issue-list, .history-list { display: grid; gap: 10px; }
.issue-card { padding: 14px; border: 1px solid #e8e8e8; border-left-width: 4px; border-radius: 9px; background: #fff; overflow-wrap: anywhere; }
.issue-card.severity-critical { border-left-color: #cf1322; background: #fff7f6; }
.issue-card.severity-major { border-left-color: #d46b08; background: #fffaf0; }
.issue-card.severity-minor { border-left-color: #d4b106; background: #fffdf0; }
.issue-card.severity-ok { border-left-color: #389e0d; background: #f6ffed; }
.issue-card-heading, .history-heading, .history-meta, .history-issues { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.issue-card-heading { margin-bottom: 8px; }
.severity-label { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: #777; }
.severity-critical .severity-label { background: #cf1322; }
.severity-major .severity-label { background: #d46b08; }
.severity-minor .severity-label { color: #614700; background: #ffe58f; }
.severity-ok .severity-label, .quality-ok .severity-label { background: #389e0d; }
.issue-code { padding: 3px 7px; border: 1px solid #d9d9d9; border-radius: 5px; color: #555; background: #f5f5f5; font-size: 12px; }
.issue-message { color: #262626; font-size: 14px; font-weight: 600; line-height: 1.6; }
.issue-more { margin-top: 9px; color: #666; font-size: 12px; }
.issue-more summary { cursor: pointer; color: #1677ff; }
.issue-details, .readable-details { display: grid; gap: 6px; margin-top: 8px; }
.issue-details > div, .readable-details > div { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr); gap: 10px; }
.issue-details dt, .readable-details dt { color: #777; font-weight: 600; }
.issue-details dd, .readable-details dd { margin: 0; color: #333; }
.readable-list { display: grid; gap: 4px; padding-left: 18px; }
.empty-value { color: #999; }
.quality-ok { display: flex; gap: 10px; align-items: center; padding: 13px; border: 1px solid #b7eb8f; border-radius: 9px; background: #f6ffed; color: #237804; }
.history-row { display: grid; gap: 8px; padding: 13px; border: 1px solid #e8e8e8; border-radius: 9px; background: #fafafa; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.history-heading { justify-content: space-between; }
.history-heading time { color: #777; }
.history-meta { color: #555; }
.history-meta span { padding-right: 8px; }
.history-issues { gap: 6px; }
.history-issue-badge { display: inline-block; max-width: 100%; padding: 3px 8px; border-radius: 999px; color: #555; background: #eee; font-size: 12px; white-space: normal; }
.history-issue-badge.severity-critical { color: #a8071a; background: #fff1f0; }
.history-issue-badge.severity-major { color: #ad4e00; background: #fff7e6; }
.history-issue-badge.severity-minor { color: #876800; background: #fffbe6; }
.history-issue-badge.severity-ok { color: #237804; background: #f6ffed; }
.review-message { padding: 30px 10px; text-align: center; color: #999; }
.btn-danger { background: #ff4d4f; }
.btn-danger:hover { background: #d9363e; }
.btn-warning { background: #faad14; }
.btn-warning:hover { background: #d48806; }
.btn-muted { background: #777; }
.btn-muted:hover { background: #555; }
.audio-links { display: flex; flex-wrap: wrap; gap: 8px; }
.audio-links button { padding: 7px 12px; }
.review-meaning-list, .review-example-list { display: grid; gap: 10px; }
.review-meaning-row { display: grid; grid-template-columns: 120px 1fr 1.5fr auto; gap: 8px; align-items: center; padding: 10px; background: #f8f8f8; border-radius: 8px; }
.review-meaning-row input { width: 100%; min-width: 0; }
.review-meaning-row button { padding: 8px 12px; }
.review-example-row { display: grid; grid-template-columns: 32px minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid #e8e8e8; border-radius: 9px; background: #fafafa; }
.review-example-row label { display: grid; gap: 5px; min-width: 0; color: #666; font-size: 12px; }
.review-example-row input { width: 100%; min-width: 0; }
.review-row-order { align-self: center; justify-self: center; width: 25px; height: 25px; border-radius: 50%; color: #555; background: #e8e8e8; font-size: 12px; font-weight: 700; line-height: 25px; text-align: center; }
.review-row-actions { display: flex; gap: 5px; align-items: center; }
.muted { color: #999; }
.subtle { color: #666; }
.login-hint { margin-bottom: 20px; }
.compact-note { font-size: 13px; margin-bottom: 10px; }
.button-row, .form-footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.form-status { margin-top: 8px; }
.form-footer > button { align-self: flex-start; }
.section-heading { margin-bottom: 15px; }
.review-section-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.review-section-heading .section-heading { margin-bottom: 4px; }
.table-scroll { overflow-x: auto; }
.today-value { font-size: 48px; color: #07c160; }
.activity-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: center; margin-bottom: 15px; }
.activity-summary > div { padding: 12px; border-radius: 10px; background: #f6ffed; }
.activity-table th, .activity-table td { text-align: right; }
.activity-table th:first-child, .activity-table td:first-child { text-align: left; }
.word-pending, .word-ready, .word-failed { font-weight: bold; }
.word-pending { color: #d48806; }
.word-ready { color: #389e0d; }
.word-failed { color: #cf1322; }
.issue-count { color: #d48806; font-weight: 600; }
.retry-button, .add-row-button { margin-top: 12px; }
.add-row-button { align-self: flex-start; }
.tab { background: transparent; border-radius: 0; }
.tab:hover { background: #f0fff6; }
.comparison-panel { margin-top: 20px; padding-top: 20px; border-top: 2px solid #07c160; }
.comparison-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.snapshot-chip { padding: 5px 9px; background: #f0f5ff; color: #1d39c4; border-radius: 12px; font-size: 12px; white-space: nowrap; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.evidence-card { border: 1px solid #d9d9d9; border-radius: 10px; padding: 14px; min-width: 0; background: #fff; }
.current-card { border-color: #07c160; background: #f6ffed; }
.evidence-card h5 { margin-bottom: 10px; font-size: 15px; }
.source-meta { display: grid; gap: 5px; font-size: 12px; }
.source-meta > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px; }
.source-meta dt { color: #777; }
.source-meta dd { overflow-wrap: anywhere; }
.source-values { margin-top: 10px; padding: 10px; background: #f8f8f8; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; font-size: 12px; }
.warning-box, .blocked-phonetic { display: grid; gap: 5px; margin-top: 10px; padding: 9px; border-radius: 6px; font-size: 12px; }
.warning-box { background: #fffbe6; border: 1px solid #ffe58f; color: #874d00; }
.blocked-phonetic { background: #fff1f0; border: 2px solid #ff4d4f; color: #a8071a; }
.blocked-phonetic code { font-size: 14px; overflow-wrap: anywhere; }
.composition-grid, .meaning-compositions { display: grid; gap: 10px; margin: 10px 0 18px; }
.composition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.composition-field { display: grid; gap: 5px; min-width: 0; padding: 10px; background: #fafafa; border-radius: 8px; }
.composition-field label { font-size: 12px; font-weight: 600; color: #555; }
.composition-field select, .composition-field textarea, #candidateReclassification { width: 100%; padding: 9px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; }
.composition-field textarea { min-height: 60px; margin: 0; }
.meaning-composition { padding: 12px; border: 1px solid #d9d9d9; border-radius: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.meaning-composition legend { padding: 0 6px; color: #555; font-weight: 600; }
.example-composition { display: grid; gap: 7px; margin: 10px 0 18px; }
.example-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 7px; align-items: center; padding: 9px; background: #f8f8f8; border-radius: 7px; font-size: 12px; }
.example-choice label { overflow-wrap: anywhere; }
.example-order { color: #999; min-width: 18px; text-align: center; }
.compact-button { padding: 5px 8px !important; }
.candidate-meta { margin-bottom: 12px; }
.candidate-layout { grid-template-columns: minmax(340px, 38%) minmax(0, 62%); }
.candidate-identity-review { margin: 14px 0; padding: 14px; border: 1px solid #91caff; border-radius: 9px; background: #f0f7ff; }
.candidate-identity-review h4, .candidate-content-review h4 { margin-bottom: 7px; }
.candidate-identity-fields { display: grid; gap: 7px; margin-top: 10px; }
.candidate-identity-fields input, .candidate-identity-fields select { width: 100%; padding: 9px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; }
.candidate-content-review { margin-top: 18px; padding-top: 16px; border-top: 1px solid #ddd; }
.release-heading, .release-draft-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.release-layout { display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 58%); gap: 20px; }
.release-overview { min-height: 100px; }
.release-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; }
.release-stat { display: grid; gap: 5px; padding: 13px; border: 1px solid #e8e8e8; border-radius: 9px; background: #fafafa; }
.release-stat span { color: #777; font-size: 12px; }
.release-stat strong { color: #07c160; font-size: 25px; }
.release-pointers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.release-pointers > div { display: grid; gap: 5px; min-width: 0; padding: 11px; border-left: 3px solid #1890ff; background: #f5f9ff; }
.release-pointers span { overflow-wrap: anywhere; font-size: 13px; }
.release-build-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.release-build-form label { grid-column: 1 / -1; color: #666; font-size: 13px; }
.release-build-form input, .release-confirmation input { width: 100%; padding: 10px; border: 1px solid #d9d9d9; border-radius: 7px; }
.release-panel { margin-top: 15px; padding: 13px; border: 1px solid #e8e8e8; border-radius: 9px; }
.release-draft-header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.release-gates { display: grid; gap: 6px; margin-top: 12px; }
.release-gates > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eee; }
.gate-pass { color: #237804; font-weight: 600; }
.gate-fail { color: #a8071a; font-weight: 600; }
.release-confirmation { margin-top: 14px; padding: 14px; border: 2px solid #ff4d4f; border-radius: 9px; background: #fff1f0; }
.release-confirmation p, .release-confirmation label { display: block; margin: 8px 0; }
.release-view-tabs { display: flex; gap: 6px; border-bottom: 1px solid #ddd; margin-bottom: 12px; }
.release-view-tab { padding: 9px 15px; color: #666; background: transparent; border-radius: 0; border-bottom: 2px solid transparent; }
.release-view-tab:hover, .release-view-tab.active { color: #07c160; background: #f0fff6; border-bottom-color: #07c160; }
.release-record-list { display: grid; gap: 9px; }
.release-record-list article { min-width: 0; padding: 11px; border: 1px solid #e8e8e8; border-radius: 8px; background: #fafafa; }
.release-record-list pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.official-capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 20px; }
.capability-card { display: grid; align-content: start; gap: 8px; padding: 13px; border: 1px solid #d9d9d9; border-radius: 9px; background: #fafafa; }
.capability-card p { color: #666; font-size: 12px; line-height: 1.55; }
.capability-card .review-status { justify-self: start; }
.official-review-layout { display: grid; grid-template-columns: minmax(350px, 34%) minmax(0, 66%); gap: 20px; }
.official-review-detail { min-width: 0; padding-left: 20px; border-left: 1px solid #eee; }
.official-detail-heading, .official-items-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.official-count-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 15px 0; }
.official-count-grid > div { display: grid; gap: 4px; padding: 10px; border: 1px solid #e8e8e8; border-radius: 8px; background: #fafafa; }
.official-count-grid span { color: #777; font-size: 12px; }
.official-count-grid strong { color: #1677ff; font-size: 20px; }
.official-hashes { display: grid; gap: 6px; padding: 12px; border-radius: 8px; background: #f5f9ff; }
.official-hash { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; font-size: 12px; }
.official-hash dt { color: #666; font-weight: 600; }
.official-hash dd, .official-hash code { min-width: 0; overflow-wrap: anywhere; }
.official-matrix { display: flex; flex-wrap: wrap; gap: 8px; }
.official-matrix span { padding: 7px 10px; border-radius: 999px; background: #f0f5ff; color: #1d39c4; font-size: 12px; }
.official-blockers { display: grid; gap: 9px; max-height: 360px; overflow: auto; }
.official-policy-list { display: grid; gap: 4px; padding-left: 18px; color: #555; font-size: 12px; min-width: 170px; }
.official-item-table { min-width: 1100px; }
.official-item-table td { vertical-align: top; }
.official-item-table .review-status { margin: 0 4px 4px 0; }
@media (max-width: 1100px) {
    .official-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .official-review-layout { grid-template-columns: 1fr; }
    .official-review-detail { padding: 20px 0 0; border-left: 0; border-top: 1px solid #eee; }
}
@media (max-width: 700px) {
    .review-meaning-row, .composition-grid, .meaning-composition { grid-template-columns: 1fr; }
    .review-example-row { grid-template-columns: 28px minmax(0, 1fr); align-items: center; }
    .review-example-row label, .review-row-actions { grid-column: 2; }
    .review-row-order { grid-row: 1 / span 3; }
    .example-choice { grid-template-columns: auto minmax(0, 1fr) auto auto; }
    .example-order { display: none; }
    .official-capabilities { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .review-layout, .release-layout { grid-template-columns: 1fr; }
    .release-pointers { grid-template-columns: 1fr; }
    .review-detail { border-left: 0; border-top: 1px solid #eee; padding: 20px 0 0; }
}
@media (max-width: 600px) {
    body { padding: 10px; }
    .section { padding: 15px; }
    .tabs { overflow-x: auto; }
    .tab { padding: 12px 16px; white-space: nowrap; }
    .review-form { grid-template-columns: 1fr; }
    .review-field.full { grid-column: auto; }
}
