:root {
  --canvas: #f5f5f0;
  --surface: #fffefa;
  --surface-quiet: #f8f9f5;
  --ink: #243a37;
  --muted: #58685d;
  --soft: #58685d;
  --line: #dce3dc;
  --teal: #23695f;
  --teal-dark: #154f47;
  --teal-pale: #eaf3ed;
  --amber: #916128;
  --amber-pale: #fbf2e3;
  --danger: #a44335;
  --radius: 12px;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, summary, select { -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea, summary { outline-offset: 3px; }
:focus-visible { outline: 3px solid #67a699; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .44; }
button, a { transition: background-color .16s, color .16s, border-color .16s; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
p, h1, h2, h3 { margin: 0; }
::selection { color: #153b32; background: #cae6cf; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-header { min-height: 94px; padding: 22px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand-group { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; color: var(--teal); border: 1px solid #cddcd2; border-radius: 12px; background: var(--teal-pale); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-group h1 { font-size: 19px; line-height: 1.5; font-weight: 650; letter-spacing: .03em; }
.brand-dot { padding: 0 2px; color: #58685d; }
.brand-subtitle { color: var(--muted); font-size: 12px; line-height: 1.8; letter-spacing: .025em; }
.prototype-badge { align-self: flex-start; margin-top: 2px; padding: 3px 7px; border: 1px solid #dfe2d9; border-radius: 4px; font-size: 12px; color: #58685d; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; line-height: 1.45; font-weight: 550; font-size: 12px; }
.button-subtle { background: transparent; color: var(--muted); }
.button-subtle:hover { color: var(--teal); background: var(--teal-pale); }
.button-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-outline:hover:not(:disabled) { border-color: #9bbcaf; background: var(--surface-quiet); }
.button-primary { color: white; background: var(--teal); border-color: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.app-main { max-width: 1920px; margin: 0 auto; padding: 22px 34px 36px; }
.notice { display: flex; align-items: center; min-height: 38px; padding: 9px 13px; color: #537065; font-size: 12px; line-height: 1.65; border: 1px solid #d8e5db; border-radius: 6px; background: #edf3eb; }
.notice:empty { display: none; }
.notice.error, .notice[data-tone="error"] { color: var(--danger); background: #fff0eb; border-color: #eed2c7; }
.notice.warning, .notice[data-tone="warning"] { color: var(--amber); background: var(--amber-pale); border-color: #ecdec4; }
.upload-view { max-width: 960px; margin: 49px auto 12px; }
.upload-intro { text-align: center; }
.eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--teal); font-weight: 650; margin-bottom: 16px; }
.upload-intro h2 { color: #24473e; font-size: clamp(25px, 3vw, 35px); font-weight: 600; letter-spacing: .015em; line-height: 1.45; }
.intro-description { color: var(--muted); line-height: 1.95; font-size: 13px; margin-top: 14px; }
.mobile-break { display: none; }
.import-card { display: grid; grid-template-columns: 1.12fr 1fr; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 10px 32px #2e493708; }
.upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 37px 29px; background: #f2f6ee; border-right: 1px solid var(--line); }
.upload-icon { width: 68px; height: 68px; border: 1px solid #d1dfd1; border-radius: 19px; background: #f9fcf5; display: grid; place-items: center; color: #558371; margin-bottom: 22px; }
.upload-icon svg { width: 44px; height: 44px; }
.upload-area h3 { font-weight: 600; font-size: 17px; }
.upload-area > p { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 12px; }
.file-control { display: block; margin-top: 25px; max-width: 100%; width: 320px; }
input[type="file"] { width: 100%; max-width: 100%; color: #5b7565; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
input[type="file"]::file-selector-button { padding: 10px 12px; margin-right: 9px; border: 1px solid #b5ccbd; border-radius: 6px; color: var(--teal); background: var(--surface); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--teal-pale); }
.file-type-hint { color: #58685d; font-size: 12px; letter-spacing: .025em; margin-top: 12px; }
.import-details { padding: 30px; display: flex; flex-direction: column; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field > label, .label-row > label { font-size: 12px; font-weight: 600; line-height: 1.5; color: #425b51; }
.field-hint { font-size: 12px; font-weight: 400; color: #58685d; margin-left: 5px; }
input[type="text"], input[type="search"], select, textarea { width: 100%; min-width: 0; color: var(--ink); border: 1px solid #d7dfd5; border-radius: 5px; background: #fffefa; line-height: 1.6; padding: 9px 10px; font-size: 12px; }
input::placeholder, textarea::placeholder { color: #58685d; }
input:focus, select:focus, textarea:focus { border-color: #78a38e; }
textarea { resize: vertical; min-height: 55px; }
select { min-height: 39px; padding-right: 24px; cursor: pointer; }
.import-report-wrap { margin-top: 23px; margin-bottom: 22px; flex: 1; }
.section-label { font-size: 12px; font-weight: 600; margin-bottom: 9px; color: #5c7365; }
.import-report { color: var(--muted); font-size: 12px; line-height: 1.85; background: var(--surface-quiet); border: 1px solid #e6e9e0; border-radius: 5px; padding: 12px; overflow-wrap: anywhere; }
.import-report ul { margin: 6px 0; padding-left: 20px; }
.import-report .error { color: var(--danger); }
.import-report .warning { color: var(--amber); }
.import-report .success { color: var(--teal); }
.start-button { width: 100%; justify-content: space-between; min-height: 42px; padding-inline: 16px; font-size: 13px; }
.local-note { font-size: 12px; color: #58685d; text-align: center; margin-top: 12px; line-height: 1.8; }
.local-note span { color: #58685d; margin-right: 4px; }
.workflow-guide { margin: 26px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0 24px; }
.workflow-guide > div { position: relative; padding-left: 34px; }
.step-number { position: absolute; top: 2px; left: 0; color: #58685d; font-size: 12px; letter-spacing: .08em; }
.workflow-guide h3 { font-size: 12px; font-weight: 550; color: #58685d; }
.workflow-guide p { font-size: 12px; line-height: 1.8; color: #58685d; margin-top: 6px; }

.workspace { margin-top: 22px; }
.batch-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.batch-info { font-size: 12px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.batch-info strong { color: var(--ink); font-weight: 600; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; font-size: 12px; white-space: nowrap; }
.stats > span, .stat { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 6px 10px; color: var(--muted); }
.stats strong { color: var(--teal); margin-left: 4px; font-variant-numeric: tabular-nums; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.filter-controls { display: flex; align-items: center; gap: 10px; flex: 1; }
.search-control { position: relative; width: min(340px, 100%); }
.search-control svg { position: absolute; width: 16px; height: 16px; top: 12px; left: 12px; color: #58685d; }
.search-control input { padding-left: 36px; min-height: 39px; }
#statusFilter { width: 123px; flex-shrink: 0; }
.pair-navigation { display: flex; align-items: center; gap: 12px; }
.position { min-width: 54px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 25fr) minmax(0, 33fr); gap: 14px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; overflow: hidden; }
.panel-heading { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 17px; border-bottom: 1px solid var(--line); background: #f9faf5; }
.panel-heading h2 { display: flex; align-items: center; gap: 8px; color: #486451; font-size: 12px; font-weight: 600; white-space: nowrap; }
.panel-number { color: #58685d; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.panel-hint { color: #58685d; font-size: 12px; }
.article-heading { padding: 23px 24px 17px; }
#articleTitle { font-size: 19px; line-height: 1.65; font-weight: 600; color: #304b3a; overflow-wrap: anywhere; }
.article-source-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-top: 12px; font-size: 12px; line-height: 1.6; }
.article-meta { color: #58685d; overflow-wrap: anywhere; }
.article-text { padding: 6px 24px 26px; max-height: 76vh; min-height: 400px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #465546; line-height: 2.05; font-size: 13px; scrollbar-width: thin; scrollbar-color: #c6d3bf transparent; }
.article-text p { margin-bottom: 17px; }
.article-text mark { background: #e3edb8; color: #3d512e; border-radius: 2px; padding: 2px 0; }
.events-content { padding: 17px; }
.panel-description { color: #58685d; line-height: 1.8; font-size: 12px; margin-bottom: 17px; }
.event-cards { display: flex; flex-direction: column; gap: 16px; }
.event-card, .event-cards > article, .event-cards > section { padding: 15px; border: 1px solid #dce4d7; border-radius: 7px; background: #f7f9f2; overflow-wrap: anywhere; }
.event-card + .event-card, .event-cards > article + article { background: #f8f7ee; border-color: #e4e2d2; }
.event-card h3, .event-cards > article h3, .event-cards > section h3 { font-size: 13px; font-weight: 650; color: #42634a; line-height: 1.65; margin-bottom: 12px; }
.event-card h4 { font-size: 12px; margin: 14px 0 5px; color: #58685d; }
.event-card p, .event-card div, .event-card li, .event-cards > article p { font-size: 12px; line-height: 1.85; }
.event-card p + p { margin-top: 9px; }
.event-card small { color: #58685d; font-size: 12px; }
.event-card blockquote, .event-cards blockquote { margin: 12px 0 0; padding: 0 0 0 11px; border-left: 2px solid #bed1ad; color: #68815b; font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.event-card dl, .provenance dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 12px; line-height: 1.7; }
.event-card dt, .provenance dt { color: #58685d; }
.event-card dd, .provenance dd { margin: 0; overflow-wrap: anywhere; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "›"; display: inline-block; width: 15px; color: #58685d; transform-origin: 5px 50%; font-size: 15px; line-height: 1; transition: transform .16s; }
details[open] > summary::before { transform: rotate(90deg); }
.provenance-details { border-top: 1px solid #e8ebdf; margin-top: 22px; padding-top: 15px; }
.provenance-details summary { font-size: 12px; color: #58685d; line-height: 1.6; }
.provenance { font-size: 12px; color: #58685d; line-height: 1.85; overflow-wrap: anywhere; margin-top: 12px; }
.provenance pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: 12px; }
.annotation-form { display: flex; flex-direction: column; gap: 17px; padding: 18px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.text-button { color: var(--teal); font-size: 12px; line-height: 1.7; padding: 0; background: transparent; border: 0; }
.text-button:hover { color: var(--teal-dark); text-decoration: underline; }
.field-help { color: #58685d; font-size: 12px; line-height: 1.7; }
.mediator-block { display: flex; flex-direction: column; gap: 13px; background: #f4f7ed; border: 1px solid #dfe6d2; padding: 13px; border-radius: 6px; }
.checkbox-field { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: #58685d; line-height: 1.6; cursor: pointer; }
.checkbox-field input { accent-color: var(--teal); width: 13px; height: 13px; flex: 0 0 13px; margin: 2px 0 0; }
.validation { color: var(--danger); font-size: 12px; line-height: 1.8; padding: 10px 12px; border: 1px solid #ecdcd0; background: #fff6eb; border-radius: 5px; }
.validation:empty { display: none; }
.validation ul { margin: 0; padding-left: 16px; }
.save-actions { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin-top: 2px; }
.save-actions .button { font-size: 12px; min-height: 40px; padding-inline: 10px; }
.completion-note { color: #58685d; text-align: center; font-size: 12px; line-height: 1.7; margin-top: -8px; }
.model-details { margin-top: 15px; border: 1px solid var(--line); border-radius: 7px; background: #f9faf5; }
.model-details > summary { display: flex; align-items: center; gap: 5px; padding: 15px 18px; font-size: 12px; color: #647b58; }
.model-summary-title { display: flex; align-items: center; gap: 10px; }
.model-default-tag { color: #58685d; font-size: 12px; border: 1px solid #dce5d2; padding: 2px 6px; border-radius: 3px; font-weight: 400; }
.model-summary-help { font-size: 12px; color: #58685d; margin-left: auto; }
.model-opinions { padding: 18px; border-top: 1px solid var(--line); color: #627650; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.model-opinions h3 { color: #4a6740; font-size: 13px; margin-bottom: 8px; }
.model-opinions p + p { margin-top: 7px; }
.model-opinions pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f1f4e9; padding: 12px; border-radius: 5px; font-size: 12px; }
.model-opinions blockquote { margin: 8px 0; border-left: 2px solid #c9d7b6; padding-left: 12px; font-size: 12px; white-space: pre-wrap; }
.model-opinions > article + article { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 12px; background: var(--teal-pale); color: var(--teal); }
.muted { color: var(--muted); }
.warning { color: var(--amber); }
.error { color: var(--danger); }
.app-footer { max-width: 1920px; margin: 0 auto; padding: 0 34px 20px; display: flex; justify-content: space-between; gap: 12px; color: #58685d; font-size: 12px; line-height: 1.8; }

@media (min-width: 1600px) {
  :root { font-size: 15px; }
  .article-text { font-size: 14px; }
  .annotation-form { padding: 22px; }
  .event-card p, .event-card div, .event-card li { font-size: 12px; }
}
@media (max-width: 1200px) {
  .app-header { padding: 20px 22px; }
  .app-main { padding: 20px 22px 30px; }
  .workspace-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .form-panel { grid-column: 1 / -1; }
  .annotation-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px 24px; }
  .annotation-form > .mediator-block, .annotation-form > .validation, .annotation-form > .save-actions, .annotation-form > .completion-note { grid-column: 1 / -1; }
  .annotation-form > .checkbox-field { align-self: start; }
  .save-actions { width: min(420px, 100%); justify-self: end; }
  .completion-note { text-align: right; }
  .app-footer { padding-inline: 22px; }
}
@media (max-width: 850px) {
  .app-header { align-items: flex-start; gap: 14px; flex-wrap: wrap; }
  .header-actions { margin-left: 56px; }
  .upload-view { margin-top: 36px; }
  .import-card { grid-template-columns: 1fr 1fr; }
  .upload-area { padding: 27px 20px; }
  .import-details { padding: 24px; }
  .desktop-break { display: none; }
  .workflow-guide { padding: 0; gap: 14px; }
  .workflow-guide > div { padding-left: 26px; }
  .batch-strip { align-items: flex-start; flex-direction: column; gap: 12px; }
  .stats { justify-content: flex-start; }
  .workspace-toolbar { flex-direction: column; align-items: stretch; }
  .filter-controls { flex: none; }
  .search-control { width: 100%; }
  .pair-navigation { align-self: flex-end; }
  .panel-heading { padding-inline: 14px; }
  .article-heading { padding-inline: 18px; }
  .article-text { padding-inline: 18px; }
  .panel-hint { display: none; }
}
@media (max-width: 620px) {
  .app-header { padding: 18px 16px 14px; }
  .brand-group { gap: 10px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 9px; }
  .brand-group h1 { font-size: 16px; }
  .brand-subtitle { font-size: 12px; }
  .prototype-badge { font-size: 12px; padding: 2px 5px; }
  .header-actions { width: 100%; margin: 0; gap: 4px; }
  .header-actions .button { font-size: 12px; min-height: 31px; padding: 6px 10px; }
  .header-actions #newBtn { margin-left: auto; }
  .app-main { padding: 15px 14px 26px; }
  .notice { font-size: 12px; padding: 8px 10px; }
  .upload-view { margin-top: 31px; }
  .eyebrow { font-size: 12px; letter-spacing: .14em; margin-bottom: 12px; }
  .upload-intro h2 { font-size: 26px; }
  .mobile-break { display: block; }
  .intro-description { font-size: 12px; margin-top: 12px; padding-inline: 12px; }
  .import-card { grid-template-columns: 1fr; margin-top: 24px; }
  .upload-area { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 20px; }
  .upload-icon { width: 56px; height: 56px; margin-bottom: 15px; border-radius: 14px; }
  .upload-icon svg { width: 37px; height: 37px; }
  .file-control { margin-top: 20px; }
  .import-details { padding: 23px; }
  .workflow-guide { margin-top: 22px; grid-template-columns: 1fr; gap: 17px; padding-left: 10px; }
  .workflow-guide p { margin-top: 3px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .form-panel { grid-column: auto; }
  .annotation-form { display: flex; }
  .article-text { max-height: 56vh; min-height: 200px; font-size: 12px; }
  #articleTitle { font-size: 17px; }
  .events-content { padding: 16px; }
  .event-cards { gap: 12px; }
  .save-actions { width: 100%; }
  .completion-note { text-align: center; }
  .model-details > summary { flex-wrap: wrap; padding: 14px; }
  .model-summary-help { margin-left: 20px; flex-basis: 100%; margin-top: 4px; }
  .app-footer { padding: 0 16px 20px; flex-direction: column; gap: 3px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }


/* Reading comfort takes precedence over compactness at every viewport. */
.brand-group { min-width: 0; flex-wrap: wrap; }
.brand-group > div { min-width: 0; }
.header-actions { flex-wrap: wrap; }
.button, .header-actions .button, .save-actions .button { font-size: 14px; }
.button { min-height: 40px; }
.brand-subtitle, .prototype-badge, .notice, .field-hint,
.file-type-hint, .file-control input, .local-note, .panel-description,
.panel-hint, .panel-number, .field-help, .checkbox-field,
.completion-note, .model-default-tag, .model-summary-help,
.article-source-row, .article-meta, .app-footer { font-size: 12px; }
.notice { color: #486451; }
input::placeholder, textarea::placeholder { color: #647367; }
.field > label, .label-row > label,
input[type="text"], input[type="search"], select, textarea,
.panel-heading h2, .position { font-size: 14px; }
.field > label, .label-row > label { color: #425b51; }
select { min-height: 43px; max-width: 100%; }
.field-row { grid-template-columns: minmax(0, 1fr); }
.label-row { flex-wrap: wrap; }
.text-button { font-size: 12px; }
.article-text { font-size: 16px; line-height: 1.95; }
.batch-info { min-width: 0; font-size: 13px; }
.stats { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; color: #58685d; }
.pair-navigation { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.event-card p, .event-card div, .event-card li,
.event-cards > article p { font-size: 14px; }
.event-card small { display: block; font-size: 12px; line-height: 1.8; color: #58685d; }
.event-card > p { margin-top: 12px; }
.event-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 5px; }
.event-header b { font-size: 15px; color: #355b46; }
.event-header span { font-size: 12px; color: #58685d; }
.event-card details { margin-top: 13px; }
.event-card summary { font-size: 12px; line-height: 1.8; color: #49634e; }
.event-card blockquote, .event-cards blockquote { font-size: 14px; line-height: 1.85; color: #48613e; }
.provenance-details summary { font-size: 12px; color: #58685d; }
.provenance { max-height: 420px; overflow: auto; white-space: pre-wrap; font-size: 12px; line-height: 1.8; color: #58685d; scrollbar-width: thin; }
.model-details > summary { font-size: 14px; color: #49634e; }
.model-opinions { font-size: 14px; color: #49634e; }
.model-opinions pre { max-height: 420px; overflow: auto; font-size: 12px; color: #58685d; }
.model-opinions blockquote { font-size: 14px; line-height: 1.85; }
.vote { margin-top: 14px; border: 1px solid #d9e1d2; border-radius: 6px; background: #fffefa; overflow: hidden; }
.vote > summary { padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.8; color: #3e5b43; background: #f2f6ec; overflow-wrap: anywhere; }
.vote[open] > summary { border-bottom: 1px solid #dce3d3; }
.vote > p, .vote > blockquote, .vote > details { margin: 14px; }
.vote > p { font-size: 14px; line-height: 1.85; }
.vote > blockquote small { display: block; margin-top: 7px; font-size: 12px; color: #58685d; }
.vote > details > summary { font-size: 12px; color: #58685d; }
@media (max-width: 620px) {
  .header-actions .button { min-height: 38px; }
  .article-text { font-size: 16px; }
  .app-footer { font-size: 12px; }
}
@media (max-width: 380px) {
  .save-actions { grid-template-columns: minmax(0, 1fr); }
  .filter-controls { flex-wrap: wrap; }
  #statusFilter { width: 100%; }
}

/* 端点的事件概述、标准编码与正文语义分层呈现。 */
.endpoint-card { min-width: 0; overflow-wrap: anywhere; }
.endpoint-card h4 { margin: 0; font-size: 13px; line-height: 1.8; font-weight: 650; color: #355b46; }
.endpoint-card .event-overview { margin-top: 15px; }
.endpoint-card .event-overview > h4 { color: var(--muted); font-weight: 500; font-size: 12px; margin-bottom: 4px; }
.endpoint-card .event-overview p { line-height: 1.85; margin: 0; }
.endpoint-card .standard-section { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 14px; }
.standard-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.endpoint-card .standard-section-heading small { font-size: 12px; }
.endpoint-card .field-empty { font-size: 12px; line-height: 1.85; color: var(--muted); margin: 6px 0; }
.endpoint-card .standard-missing { padding: 10px; margin: 8px 0; border: 1px solid #e9d9bb; border-radius: 5px; background: var(--amber-pale); color: #805822; font-size: 13px; line-height: 1.8; }
.endpoint-card .standard-field { margin-top: 11px; padding: 11px; border: 1px solid #dce3dc; border-radius: 6px; background: #fffefa; }
.endpoint-card .standard-field.field-changed { border-left: 3px solid #4d8976; padding-left: 9px; }
.standard-field-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 7px; }
.endpoint-card .standard-field-heading strong, .endpoint-card .semantic-field > strong { font-size: 13px; line-height: 1.7; color: #355b46; }
.endpoint-card .field-change-tag { flex-shrink: 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.endpoint-card .field-change-tag.is-changed { color: #23695f; background: #eaf3ed; padding: 0 5px; border-radius: 3px; }
.endpoint-card code { font-family: Consolas, "Microsoft YaHei", monospace; font-size: 11px; overflow-wrap: anywhere; white-space: normal; }
.endpoint-card .field-key { display: block; color: #63776e; margin: 1px 0 8px; }
.endpoint-card .field-value { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 5px; margin-top: 5px; line-height: 1.8; }
.endpoint-card .field-value > span { font-size: 11px; color: var(--muted); padding-top: 1px; }
.endpoint-card .field-value > div { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.endpoint-card .field-before > div { color: #637166; }
.endpoint-card .field-after > div { color: #264d40; }
.endpoint-card .field-changed .field-after > div { font-weight: 600; }
.endpoint-card .field-proof { margin-top: 7px; }
.endpoint-card .field-proof > summary { font-size: 11px; color: #5b7162; }
.endpoint-card blockquote { margin: 9px 0; padding-left: 10px; border-left: 2px solid #bacebd; white-space: pre-wrap; font-size: 13px; line-height: 1.85; }
.endpoint-card blockquote > small { margin-top: 5px; font-size: 11px; }
.endpoint-card blockquote > .field-unverified { color: #916128; }
.endpoint-card .field-reason { margin: 9px 0 0; font-size: 12px; line-height: 1.85; white-space: pre-wrap; }
.endpoint-card .field-reason > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.endpoint-card .standard-all > summary { font-size: 12px; }
.endpoint-card .coding-meta { margin-top: 12px; padding: 10px; border-radius: 5px; background: #eef3ea; }
.endpoint-card .coding-meta p { font-size: 11px; line-height: 1.8; margin: 0 0 4px; color: #58685d; }
.endpoint-card .field-version { display: block; font-size: 11px; line-height: 1.8; color: #58685d; }
.endpoint-card .semantic-details, .endpoint-card .endpoint-evidence { border-top: 1px solid var(--line); padding-top: 11px; }
.endpoint-card .semantic-field { padding: 11px 0; border-bottom: 1px solid #e2e7df; }
.endpoint-card .semantic-field:last-child { border-bottom: 0; padding-bottom: 0; }
.endpoint-card .semantic-field > strong code { font-weight: 400; color: var(--muted); }

/* Keep detailed endpoint comparisons within reach while the article and form stay alongside. */
@media (min-width: 1201px) {
  .workspace-grid { grid-template-columns: minmax(0,39fr) minmax(0,31fr) minmax(0,30fr); }
  .events-content { max-height: calc(100vh - 350px); min-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b8cfc1 transparent; }
}

.preview-entry { margin-top: 22px; }
.preview-entry p { margin-top: 10px; font-size: 12px; line-height: 1.8; color: #58685d; }
.preview-banner { margin: 0 0 16px; padding: 12px 15px; color: #76541f; background: #fff6df; border: 1px solid #e4d4aa; border-radius: 7px; font-size: 13px; line-height: 1.8; }
.preview-banner a { margin-left: 16px; text-decoration: underline; white-space: nowrap; }

/* 在线分组任务：一个公开链接，填名字领取一组；数据由服务器提供。 */
.task-view { max-width: 960px; margin: 49px auto 12px; }
.task-card { padding: 26px 28px; background: #f4f8f1; border: 1px solid #cfe0c6; border-radius: 10px; }
.task-card h2 { margin: 6px 0 10px; font-size: 23px; line-height: 1.5; }
.task-intro { max-width: 680px; margin: 0 0 18px; color: #44584a; font-size: 14px; line-height: 1.9; }
.task-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: end; max-width: 660px; }
.task-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #2f4234; }
.task-form input { width: 100%; min-height: 44px; padding: 9px 12px; font-size: 15px; color: #1f2d24; background: #fff; border: 1px solid #b8ccb0; border-radius: 7px; }
.task-form input:focus { outline: 2px solid #7baa63; outline-offset: 1px; }
.task-form .button { min-height: 44px; white-space: nowrap; }
.task-report { min-height: 20px; margin: 12px 0 0; font-size: 13px; line-height: 1.8; color: #8a4a1e; }
.task-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #cfe0c6; font-size: 12px; line-height: 1.9; color: #58685d; }
.task-organizer { margin: 6px 0 0; }
.task-organizer .text-button { font-size: 12px; color: #6b7d6f; }
/* 登录处的身份切换：首页是标注员入口，/admin 是管理员入口，两处用同一个切换条。 */
.role-switch { display: inline-flex; gap: 4px; margin: 0 0 18px; padding: 4px; background: #e6eee2; border-radius: 9px; }
.role-option { padding: 7px 16px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #3d5443; text-decoration: none; border-radius: 6px; }
.role-option:hover { background: #f4f8f1; }
.role-option[aria-current="page"] { color: #1f3d2b; background: #fff; box-shadow: 0 1px 3px rgba(31, 61, 43, .16); }
.role-option:focus-visible { outline: 2px solid #7baa63; outline-offset: 1px; }
.task-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.task-steps > div { padding: 14px 16px; background: #fff; border: 1px solid #e0e8db; border-radius: 8px; }
.task-steps h3 { margin: 4px 0 5px; font-size: 14px; }
.task-steps p { margin: 0; font-size: 12px; line-height: 1.8; color: #58685d; }
body.task-mode .upload-view { display: none; }
body.task-mode.show-upload .upload-view { display: block; }
body.task-mode.show-upload .task-steps { display: none; }

/* 工作区里的分组条：本组还剩多少没提交，一眼能看到。 */
.batch-banner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 16px; padding: 10px 14px; color: #2f4234; background: #eef6e9; border: 1px solid #cfe0c6; border-radius: 7px; font-size: 13px; line-height: 1.8; }
.batch-banner .button { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.batch-banner.is-finished { color: #1f5130; background: #e2f2da; border-color: #a9d19a; font-weight: 600; }
/* 标注员只做自己这一组：不提供“更换数据”，避免误回上传页。 */
body.batch-mode #newBtn { display: none; }

/* The default endpoint view focuses on identity and textual grounding. */
.endpoint-compact .event-overview { margin: 10px 0; padding: 0; border: 0; }
.endpoint-compact .event-overview h4 { color: #58685d; font-size: 12px; margin: 0 0 5px; }
.endpoint-compact .event-overview p { line-height: 1.7; font-size: 14px; }
.core-fields { border-top: 1px solid #d9e3d5; border-bottom: 1px solid #d9e3d5; padding: 4px 0; }
.core-field { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 8px; padding: 7px 0; }
.core-label { color: #49634e; font-size: 13px; font-weight: 600; }
.core-field-value { min-width: 0; }
.core-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; line-height: 1.6; }
.core-values strong { font-weight: 550; color: #244f41; font-size: 14px; overflow-wrap: anywhere; }
.core-old, .core-arrow { color: #69756b; font-size: 12px; }
.core-values small, .core-action-text small { display: inline; color: #687869; font-size: 11px; font-weight: 400; }
.core-action-text { line-height: 1.6; }
.core-action-text small { margin-left: 6px; }
.core-code { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.core-code > span { font-size: 11px; color: #69756b; }
.core-code .core-values strong { font-size: 12px; }
.core-code-description { font-size: 11px !important; color: #69756b; margin-top: 2px; }
.endpoint-card .endpoint-context { font-size: 12px; line-height: 1.65; margin: 8px 0; color: #58685d; }
.endpoint-context > span { margin-right: 7px; }
.endpoint-primary-evidence h4 { font-size: 12px; color: #49634e; margin: 12px 0 4px; }
.endpoint-primary-evidence blockquote { margin: 0; padding-left: 10px; font-size: 13px; line-height: 1.65; }
.endpoint-primary-evidence blockquote small { font-size: 11px; }
.endpoint-card .core-missing { font-size: 12px; line-height: 1.6; color: #85652a; margin: 8px 0; }
.endpoint-more { border-top: 1px solid #dce3d5; padding-top: 8px; margin-top: 12px !important; }
.endpoint-more > summary { font-size: 12px; color: #506b58; }
.endpoint-more .standard-section { margin-top: 12px; }
.endpoint-more .standard-field + .standard-field { margin-top: 10px; }
.annotation-extra { border-top: 1px solid #e2e8db; padding-top: 10px; }
.annotation-extra summary { color: #657661; font-size: 12px; line-height: 1.8; }
.annotation-extra .checkbox-field { margin: 12px 0; }
@media (max-width:1200px) { .annotation-extra { grid-column: 1 / -1; } }

/* Bilingual reading keeps the exact source separate from auxiliary translation. */
.translation-controls { padding: 0 24px 14px; }
.translation-mode-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.translation-mode-buttons .button { min-height: 35px; padding: 6px 11px; font-size: 13px; }
.translation-mode-buttons .button.is-active { color: #245b4b; background: #e9f2eb; border-color: #8fae9d; }
.translation-status-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; }
.translation-status-row .text-button { flex-shrink: 0; }
#translationStatus { flex: 1 1 190px; margin: 0; color: #637468; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
#translationStatus.is-error { color: #916029; }
.bilingual-text { padding: 6px 24px 26px; max-height: 76vh; min-height: 400px; overflow: auto; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #c6d3bf transparent; }
.bilingual-segment { margin-bottom: 20px; }
.translation-segment-label { margin-bottom: 4px; color: #708073; font-size: 11px; line-height: 1.5; user-select: none; }
.translation-original { white-space: pre-wrap; color: #465546; font-size: 16px; line-height: 1.95; user-select: text; }
.translation-chinese { margin-top: 9px; padding: 11px 13px; border-left: 2px solid #b9cdbc; border-radius: 0 5px 5px 0; background: #f0f5ed; white-space: pre-wrap; color: #3b5f48; font-size: 15px; line-height: 1.9; user-select: none; -webkit-user-select: none; }
.translation-chinese.is-pending { color: #7b877c; font-size: 13px; }
.translation-chinese.is-error { color: #8b6533; background: #faf5e9; border-left-color: #d8c595; }
@media (max-width: 850px) {
  .translation-controls { padding-inline: 18px; }
  .bilingual-text { padding-inline: 18px; }
}
@media (max-width: 620px) {
  .bilingual-text { max-height: 56vh; min-height: 200px; }
  .translation-chinese { padding: 9px 11px; }
}
.translation-manual-tools { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.translation-manual-tools .button { font-size:12px; padding:6px 10px; min-height:34px; }

/* ===== v2 起：7 类判定、模型投票同栏显示、点句子选证据 ===== */
:root { --side-a: #3b6fd8; --side-a-pale: #e6eeff; --side-b: #cf6b26; --side-b-pale: #fff0e3; }
.workspace-toolbar { flex-wrap: wrap; row-gap: 10px; }
.workspace-toolbar .batch-info { font-size: 12px; color: #637468; white-space: nowrap; }
.workspace-toolbar .stats { flex: 1; justify-content: center; font-size: 12px; }

/* 正文：A/B 锚句与证据只登记高亮范围，不改动原文 */
.highlight-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 24px 8px; font-size: 11.5px; color: #637468; }
.highlight-legend .lg::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.lg-a::before { background: #dbe7ff; box-shadow: inset 0 0 0 1px #b8ccf3; }
.lg-b::before { background: #ffe6cf; box-shadow: inset 0 0 0 1px #f2c8a0; }
.lg-ev::before { background: #c8efd2; box-shadow: inset 0 -2px #2f8f57; }
.lg-edge::before { background: #fdf0b5; box-shadow: inset 0 -2px #b7791f; }
.lg-hover::before { background: #eef1ea; box-shadow: inset 0 0 0 1px #d6ddd2; }
.lg-help { margin-left: auto; color: #5b6f86; border-bottom: 1px dotted #8aa0b8; cursor: help; }
::highlight(sent-hover) { background-color: #eef1ea; }
::highlight(anc-a) { background-color: #dbe7ff; }
::highlight(anc-b) { background-color: #ffe6cf; }
::highlight(anc-ab) { background-color: #ebe2ff; }
::highlight(ev-med) { background-color: #fde2a8; text-decoration: underline wavy #9a5b13; }
::highlight(ev-edge) { background-color: #fdf0b5; text-decoration: underline #b7791f; }
::highlight(ev-main) { background-color: #c8efd2; text-decoration: underline #2f8f57; }
::highlight(jump-flash) { background-color: #fff2a1; }

/* 02 两端事件：一屏看清 A、B */
.events-content { display: flex; flex-direction: column; gap: 12px; }
.event-cards { gap: 12px; }
.endpoint-card.side-a { border-left: 3px solid var(--side-a); }
.endpoint-card.side-b { border-left: 3px solid var(--side-b); }
.event-header b { display: inline-flex; align-items: center; gap: 6px; }
.side-tag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: #fff; font-size: 13px; font-weight: 700; }
.side-tag.side-a, .side.side-a { background: var(--side-a); }
.side-tag.side-b, .side.side-b { background: var(--side-b); }
.side { display: inline-block; min-width: 16px; padding: 0 4px; margin: 0 1px; border-radius: 3px; color: #fff; font-size: 12px; line-height: 1.55; text-align: center; }
.event-header .eid { display: inline; font-size: 11px; color: #637468; font-weight: 400; }
.status-tag { font-size: 11px; line-height: 1.7; padding: 0 6px; border-radius: 3px; background: #eaf3ed; color: #23695f; }
.status-tag.status-warning { background: var(--amber-pale); color: var(--amber); }
.endpoint-card .event-gist { margin: 6px 0 0 !important; font-size: 14px !important; line-height: 1.7; color: #2f4a3c; }
.gist-label { display: inline-block; margin-right: 6px; padding: 0 5px; border: 1px solid #d6ddd2; border-radius: 3px; font-size: 10.5px; line-height: 1.6; color: #637468; vertical-align: 1px; }
.endpoint-card .modality-tag { margin: 6px 0 0 !important; font-size: 12px !important; color: var(--amber); }
.anchor-quote { display: block; width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid #dfe5da; border-radius: 6px; background: #fffefa; color: #34503e; font-size: 13.5px; line-height: 1.7; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.side-a .anchor-quote { background: var(--side-a-pale); border-color: #c9d7f4; }
.side-b .anchor-quote { background: var(--side-b-pale); border-color: #f1d3b8; }
.anchor-quote:hover { filter: brightness(.98); }
.anchor-quote small { display: block; font-size: 11px; color: #637468; }
.anchor-quote .jump-hint { display: block; margin-top: 2px; font-size: 11px; color: #5b6f86; }
.anchor-shared { color: #5b4a86; }
.anchor-missing { margin-top: 6px !important; font-size: 12px !important; color: var(--amber); }
.endpoint-issue-button { width: 100%; min-height: 36px; font-size: 13px; color: #8a4b3a; }
.endpoint-issue-button:hover { border-color: #d9b2a6 !important; background: #fff4ef !important; }

/* 03 人工判定 */
.annotation-form { gap: 14px; }
.rules-guide { border: 1px solid #e0e6db; border-radius: 6px; background: #fafbf6; padding: 8px 10px; }
.rules-guide > summary { font-size: 12.5px; color: #49634e; }
.rules-body { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.75; color: #3e5745; }
.rules-source, .rules-common { font-size: 12px; color: #58685d; }
.rules-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rules-list li { padding: 6px 9px; border: 1px solid #e3e9de; border-radius: 6px; background: #fffefa; }
.rule-head { display: flex; align-items: center; gap: 6px; }
.rule-head kbd { padding: 0 4px; border: 1px solid #cfd8cc; border-radius: 3px; background: #f6f8f2; color: #58685d; font: 11px Consolas, monospace; }
.rule-head b { color: #2f4a3c; }
.rule-tag { margin-left: auto; padding: 0 6px; border-radius: 3px; font-size: 11px; line-height: 1.7; }
.tag-pos { background: var(--teal-pale); color: var(--teal-dark); }
.tag-neg { background: #eef1ea; color: #58685d; }
.tag-sep { background: var(--amber-pale); color: var(--amber); }
.rule-def { margin-top: 2px !important; font-weight: 600; color: #2f4a3c; }
.form-step { display: flex; flex-direction: column; gap: 8px; }
.step-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 650; color: #355b46; }
.step-title small { font-size: 11px; font-weight: 400; color: #637468; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.5; text-align: left; }
.choice-row .choice { flex-direction: row; align-items: center; min-height: 32px; padding: 4px 11px; font-size: 13px; }
.choice:hover { border-color: #9bbcaf; background: var(--surface-quiet); }
.choice[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-pale); color: var(--teal-dark); box-shadow: inset 0 0 0 1px var(--teal); font-weight: 600; }
.choice kbd { margin-right: 6px; padding: 0 4px; border: 1px solid #cfd8cc; border-radius: 3px; background: #f6f8f2; color: #58685d; font: 11px Consolas, monospace; }
.choice small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 400; color: #637468; }
.question p { margin-bottom: 5px; font-size: 13px; line-height: 1.7; color: #3e5745; }
.label-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.label-grid .choice { min-height: 36px; padding: 6px 9px; font-size: 13.5px; }
.label-grid .choice kbd { margin-right: 5px; }
.mediator-pick { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border: 1px dashed #e0c98f; border-radius: 6px; background: #fffaf0; font-size: 13px; line-height: 1.7; }
.mediator-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pick-hint { font-size: 12px !important; line-height: 1.65; color: #6f5f3a; }
.precondition-note { padding: 8px 10px; border: 1px solid #d8e2cc; border-left: 3px solid #7fae8f; border-radius: 6px; background: #f7faf2; font-size: 12.5px; line-height: 1.7; color: #3e5745; }
.precondition-note ol { margin: 3px 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.slot-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; color: #637468; }
.candidate-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #637468; }
.chip { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #3e5745; font-size: 12px; line-height: 1.7; }
.chip:hover { border-color: #9bbcaf; }
.chip[aria-pressed="true"] { border-color: #79b48a; background: #e3f4e7; color: #215a33; }
.slot-tabs .chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-pale); color: var(--teal-dark); }
.evidence-groups { display: flex; flex-direction: column; gap: 6px; }
.evidence-group h5 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: #58685d; }
.evidence-group.is-active h5 { color: var(--teal-dark); }
.evidence-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.evidence-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: start; padding: 6px 8px; border: 1px solid #d6e6d9; border-radius: 5px; background: #f3faf4; }
.ev-text { padding: 0; border: 0; background: none; color: #2f5a3e; font-size: 12.5px; line-height: 1.6; text-align: left; overflow-wrap: anywhere; }
.ev-remove { padding: 0 3px; border: 0; background: none; color: #8a6a5a; font-size: 16px; line-height: 1; }
.empty-evidence { font-size: 12px; color: #7a877c; }
.validation.is-info { color: #6f5420; background: #fff8e6; border-color: #ecdcb5; }

/* ④ 模型预标注：投票与理由在判定栏直接显示 */
.model-panel { padding: 10px 12px; border: 1px solid #d9e1d2; border-radius: 7px; background: #f8faf4; }
.model-body { display: flex; flex-direction: column; gap: 7px; color: #3e5745; font-size: 13px; line-height: 1.7; }
.model-empty { font-size: 12.5px; color: #637468; }
.model-you b { color: #2f4a3c; }
.model-dist { font-size: 12.5px; color: #49634e; }
.model-dist .is-majority { font-weight: 650; color: var(--teal-dark); }
.rule-badge { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid #ecdec4; border-radius: 3px; background: var(--amber-pale); color: var(--amber); font-size: 11px; font-weight: 600; line-height: 1.7; }
.rule-note { font-size: 12px; line-height: 1.7; color: var(--amber); }
.agree { font-weight: 650; white-space: nowrap; }
.agree-full { color: var(--teal); }
.agree-decision { color: var(--amber); }
.agree-no { color: var(--danger); }
.agree-no_majority { color: #58685d; }
.vote-group { padding: 7px 10px 8px; border: 1px solid #e1e8dc; border-left: 3px solid #b9cdb0; border-radius: 6px; background: #fffefa; }
.vote-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; }
.vote-group-head b { color: #2f4a3c; }
.vote-group-head span { font-size: 12px; color: #637468; white-space: nowrap; }
.vote-reasons { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.vote-reasons li { font-size: 12.5px; line-height: 1.7; color: #3e5745; overflow-wrap: anywhere; }
.vote-model { display: inline-block; margin-right: 6px; padding: 0 5px; border: 1px solid #d6ddd2; border-radius: 3px; background: #f4f7ef; color: #49634e; font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: 1px; }
.vote-tag { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 3px; background: #eef1ea; color: #58685d; font-size: 11px; line-height: 1.6; vertical-align: 1px; }
.vote-quote-label { margin-top: 6px !important; font-size: 11px !important; color: #7a877c; }
.vote-quote { margin: 3px 0 0; padding-left: 8px; border-left: 2px solid #dbe5d2; font-size: 12.5px; line-height: 1.65; }
.quote-jump { padding: 0; border: 0; background: none; color: #34503e; font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.quote-jump:hover { text-decoration: underline; }
.adopt { margin-left: 8px; }
.vote-invalid { font-size: 12px; color: var(--amber); }
.vote-audit > summary { font-size: 12px; color: #58685d; }
.audit-vote { padding: 6px 0; border-bottom: 1px solid #e3e9de; }
.audit-vote:last-child { border-bottom: 0; }
.vote-audit pre { max-height: 300px; overflow: auto; padding: 8px; border-radius: 5px; background: #f1f4e9; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vote-audit p { font-size: 11.5px !important; color: #637468; }

@media (max-width: 1200px) {
  .annotation-form { display: flex; }
  .save-actions { width: 100%; justify-self: stretch; }
}
@media (max-width: 850px) {
  .filter-controls { flex-wrap: wrap; }
  .workspace-toolbar .batch-info { flex-basis: 100%; white-space: normal; }
  .workspace-toolbar .stats { justify-content: flex-start; }
}

/* 宽屏：工作区铺满一屏，三栏各自滚动，保存按钮固定在 03 栏底部 */
@media (min-width: 1201px) {
  body.in-workspace { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
  body.in-workspace .app-header { min-height: 0; padding: 8px 24px; }
  body.in-workspace .brand-subtitle, body.in-workspace .prototype-badge { display: none; }
  body.in-workspace .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  body.in-workspace .brand-group h1 { font-size: 16px; }
  body.in-workspace .app-main { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding: 10px 20px 12px; }
  body.in-workspace .workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 0; }
  body.in-workspace .preview-banner { margin-bottom: 8px; padding: 5px 12px; font-size: 12px; }
  body.in-workspace .batch-banner { margin-bottom: 8px; padding: 4px 12px; font-size: 12px; line-height: 1.6; }
  body.in-workspace .batch-banner .button { min-height: 28px; padding: 3px 10px; font-size: 12px; }
  body.in-workspace .workspace-toolbar { margin-bottom: 10px; }
  body.in-workspace .search-control input, body.in-workspace #statusFilter { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
  body.in-workspace .pair-navigation .button { min-height: 36px; padding: 6px 12px; }
  body.in-workspace .workspace-grid { flex: 1; min-height: 0; align-items: stretch; grid-template-columns: minmax(0, 40fr) minmax(0, 27fr) minmax(0, 33fr); }
  body.in-workspace .panel { display: flex; flex-direction: column; min-height: 0; }
  body.in-workspace .panel-heading { min-height: 0; padding: 9px 14px; }
  body.in-workspace .article-heading { padding: 12px 20px 8px; }
  body.in-workspace #articleTitle { font-size: 16px; line-height: 1.5; }
  body.in-workspace .article-source-row { margin-top: 4px; }
  body.in-workspace .translation-controls { padding: 0 20px 8px; }
  body.in-workspace .highlight-legend { padding: 0 20px 6px; }
  body.in-workspace .article-text, body.in-workspace .bilingual-text { flex: 1; min-height: 0; max-height: none; padding: 4px 20px 20px; }
  body.in-workspace .events-content { flex: 1; min-height: 0; max-height: none; overflow-y: auto; padding: 12px; }
  body.in-workspace .annotation-form { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 0; scrollbar-width: thin; }
  body.in-workspace .save-actions { position: sticky; bottom: 0; z-index: 2; margin-top: auto; padding: 10px 0 12px; background: linear-gradient(to bottom, rgba(255,254,250,0), var(--surface) 30%); }
  body.in-workspace .app-footer { display: none; }
  body.in-workspace #notice { position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translateX(-50%); max-width: min(760px, calc(100vw - 32px)); box-shadow: 0 8px 24px rgba(36, 58, 55, .16); }
}

/* 管理员页面：只给组织者用；标注员页面的样式不受影响。 */
.admin-body { min-height: 100vh; display: flex; flex-direction: column; background: #fbfcfa; }
.admin-main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px; }
.admin-login { max-width: 420px; margin: 48px auto; padding: 24px; background: #fff; border: 1px solid #dbe5d6; border-radius: 10px; }
.admin-login h2 { margin: 0 0 8px; font-size: 20px; }
.admin-login p { margin: 0 0 16px; font-size: 13px; line-height: 1.9; color: #58685d; }
.admin-login label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #2f4234; }
.admin-login input { width: 100%; min-height: 42px; margin-bottom: 14px; padding: 8px 12px; font-size: 15px; border: 1px solid #b8ccb0; border-radius: 7px; }
.admin-login .button { width: 100%; min-height: 42px; }
.admin-hint { font-size: 12px; line-height: 1.8; color: #6b7d6f; }
.admin-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-summary > div { padding: 12px 14px; background: #fff; border: 1px solid #e0e8db; border-radius: 8px; }
.admin-summary span { display: block; font-size: 12px; color: #58685d; }
.admin-summary strong { font-size: 17px; color: #1f3d2b; }
.admin-panel { margin-bottom: 16px; padding: 0 16px 16px; }
.admin-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.admin-group { padding: 12px 14px; background: #fff; border: 1px solid #e0e8db; border-radius: 8px; }
.admin-group-head { display: flex; justify-content: space-between; font-size: 14px; }
.admin-group-who { margin: 8px 0 4px; font-size: 13px; color: #2f4234; }
.admin-group-meta { margin: 0; font-size: 12px; line-height: 1.8; color: #58685d; }
.admin-bar { height: 6px; margin: 6px 0 2px; background: #eef2ec; border-radius: 3px; overflow: hidden; }
.admin-bar span { display: block; height: 100%; background: #7baa63; }
.admin-bar span[style*="width:100%"] { background: #4d7c3f; }
.admin-manage { display: grid; gap: 8px; max-width: 560px; }
.admin-manage label { font-size: 13px; font-weight: 600; color: #2f4234; }
.admin-manage input[type="text"] { min-height: 40px; padding: 8px 12px; border: 1px solid #b8ccb0; border-radius: 7px; }
.admin-check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 13px; color: #58685d; }
.admin-manage .button { justify-self: start; }
.admin-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.admin-table-wrap { max-height: 380px; overflow: auto; border: 1px solid #e5ebe2; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td { padding: 6px 9px; text-align: left; border-bottom: 1px solid #eef2ec; white-space: nowrap; }
.admin-table th { position: sticky; top: 0; background: #f4f8f1; font-weight: 600; }
.admin-group.is-done { border-color: #a9d19a; background: #f4faf0; }
.admin-released { font-size: 12px; color: #8a6a1e; }
.admin-warn { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: #8a4a1e; }
