:root {
  --ink: #191a17;
  --muted: #6e7469;
  --paper: #f1f0e9;
  --panel: #fbfaf6;
  --line: #dad9d1;
  --dark: #171816;
  --acid: #d8ff45;
  --orange: #ff7047;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.quick-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 420px) 1fr;
  align-items: center;
  gap: 20px;
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid #30322d;
}

.quick-brand { width: fit-content; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.quick-brand > span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--acid); color: #111; font-size: 11px; font-weight: 900; }
.quick-brand strong { font-size: 15px; }
.quick-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; color: #aab0a2; font-size: 11px; }
.quick-progress i { height: 4px; overflow: hidden; background: #3b3e37; }
.quick-progress b { display: block; width: 0; height: 100%; background: var(--acid); transition: width .25s; }
.top-actions { position: relative; justify-self: end; display: flex; gap: 7px; align-items: center; }
.top-actions button, .accent-button {
  padding: 9px 12px;
  border: 1px solid #44473f;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.top-actions .accent-button, .accent-button { border-color: var(--acid); background: var(--acid); color: #111; }
.export-menu { position: relative; }
.export-popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 6px;
  border: 1px solid #45483f;
  background: #20221e;
  box-shadow: 0 14px 30px rgb(0 0 0 / 28%);
}
.export-popover a { display: block; padding: 8px 9px; color: #e9ece5; text-decoration: none; font-size: 9px; }
.export-popover a:hover { background: #34372f; color: var(--acid); }

.quick-layout { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 270px 1fr; }
.quick-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #20221e;
  color: #fff;
}
.sidebar-title { padding: 21px 17px 12px; display: flex; align-items: end; justify-content: space-between; }
.sidebar-title small { color: #858b80; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.sidebar-title h1 { margin: 3px 0 0; font-size: 21px; }
.sidebar-title > span { color: var(--acid); font-size: 12px; font-weight: 850; }
.quick-search { margin: 0 16px 10px; position: relative; }
.quick-search span { position: absolute; top: 9px; left: 10px; color: #858b80; }
.quick-search input {
  width: 100%;
  padding: 9px 10px 9px 29px;
  border: 1px solid #3c3f37;
  border-radius: 5px;
  outline: none;
  background: #292c26;
  color: #fff;
  font-size: 11px;
}
.quick-filters { padding: 0 16px 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.quick-filters button { padding: 6px 9px; border: 1px solid #41443c; border-radius: 999px; background: transparent; color: #8f9589; font-size: 9px; }
.quick-filters button.active { border-color: var(--acid); background: var(--acid); color: #111; }
.sidebar-select { margin: 0 16px 10px; display: flex; flex-direction: column; gap: 4px; color: #858b80; font-size: 8px; }
.sidebar-select select { width: 100%; padding: 7px 8px; border: 1px solid #41443c; border-radius: 4px; background: #292c26; color: #fff; font-size: 9px; }
.dashboard-panel { margin: 0 12px 9px; border: 1px solid #3b3e36; background: #292c26; }
.dashboard-panel summary { padding: 8px 9px; color: #bbc0b6; cursor: pointer; font-size: 8px; font-weight: 800; }
#dashboardSummary { padding: 0 8px 8px; }
.dashboard-current { display: grid; grid-template-columns: 1fr auto; gap: 5px; color: #fff; font-size: 8px; }
.dashboard-current > span { color: var(--acid); font-weight: 850; }
.dashboard-current i { grid-column: 1 / -1; height: 3px; background: #45493f; }
.dashboard-current i b { display: block; height: 100%; background: var(--acid); }
.dashboard-tasks, .dashboard-groups { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.dashboard-tasks span, .dashboard-groups span { display: flex; justify-content: space-between; gap: 5px; color: #8f9589; font-size: 7px; }
.dashboard-tasks em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: normal; }
.dashboard-tasks b, .dashboard-groups b { color: #cfd4ca; }
.quick-record-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0 8px 20px;
}
.quick-record {
  width: 100%;
  padding: 11px 9px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #34372f;
  background: transparent;
  color: #fff;
  text-align: left;
}
.quick-record:hover, .quick-record.active { background: #2b2e28; }
.quick-record.active { box-shadow: inset 3px 0 0 var(--acid); }
.quick-record .order { width: 25px; height: 25px; display: grid; place-items: center; background: #34372f; color: #a0a69a; font-size: 9px; }
.quick-record.active .order { background: var(--acid); color: #111; }
.quick-record strong { display: block; max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.quick-record small { color: #81877c; font-size: 8px; }
.record-dot { width: 8px; height: 8px; border-radius: 50%; background: #555b51; }
.record-dot.saved { background: #ffb64b; }
.record-dot.complete { background: var(--acid); }

.quick-main { min-width: 0; padding: 24px; }
.empty-state { min-height: calc(100vh - 112px); display: grid; place-content: center; justify-items: center; text-align: center; }
.empty-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); font-size: 19px; padding-left: 4px; }
.empty-state h2 { margin: 18px 0 6px; font-size: 28px; letter-spacing: -.04em; }
.empty-state p { max-width: 480px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.quick-record-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 15px; }
.quick-record-head small { color: #70766c; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.quick-record-head h1 { margin: 4px 0; font-size: 27px; letter-spacing: -.04em; }
.quick-record-head p { margin: 0; color: var(--muted); font-size: 11px; }
.save-indicator { padding: 7px 9px; border-radius: 999px; background: #e0dfd8; color: #686e64; font-size: 9px; font-weight: 800; }
.save-indicator.dirty { background: #fff0c8; color: #765b13; }
.save-indicator.saved { background: #e8ff91; color: #385207; }
.save-indicator.error { background: #ffd9cf; color: #842c1d; }

.review-grid { display: grid; grid-template-columns: minmax(450px, 1.05fr) minmax(470px, .95fr); gap: 16px; align-items: start; }
.media-panel, .quick-form { min-width: 0; }
.media-panel { position: sticky; top: 80px; }
.video-wrap { position: relative; min-height: 480px; display: grid; place-items: center; overflow: hidden; background: #090a08; }
#reviewVideo { display: block; width: 100%; max-height: 66vh; background: #000; }
#trackCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.frame-badge { position: absolute; top: 11px; left: 11px; min-width: 72px; padding: 7px 9px; background: rgb(12 13 11 / 82%); color: #fff; }
.frame-badge span { color: var(--acid); font-size: 8px; }
.frame-badge strong { float: right; font-size: 19px; font-variant-numeric: tabular-nums; }
.simple-player-controls { padding: 9px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; border: 1px solid var(--line); border-top: 0; background: var(--panel); }
.simple-player-controls button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 9px; font-weight: 750; }
.simple-player-controls label { display: flex; align-items: center; gap: 5px; color: #656b61; font-size: 9px; }
.simple-player-controls input[type="number"] { width: 70px; padding: 6px; }
.simple-player-controls input[type="checkbox"] { width: 14px; height: 14px; }
.disagreement-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #c9d2aa;
  background: linear-gradient(145deg, #fbfff0, #f3f7e5);
  box-shadow: 0 8px 24px rgb(49 62 20 / 8%);
}
.clip-head, .clip-actions, .clip-window, .subject-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.clip-head div { display: grid; gap: 3px; }
.clip-head small, .clip-window small, .disagreement-panel p, .subject-plan small { color: #66704d; font-size: 9px; }
.clip-head strong { font-size: 12px; }
.clip-head > span { padding: 4px 7px; border-radius: 999px; background: #e3ebc9; color: #3f4c19; font-size: 9px; font-weight: 800; }
.clip-progress { display: block; height: 5px; margin: 9px 0 12px; overflow: hidden; border-radius: 99px; background: #dfe6cb; }
.clip-progress b { display: block; height: 100%; width: 0; background: #80972f; transition: width .18s ease; }
.clip-window { align-items: flex-start; padding: 9px; border: 1px solid #dde4c8; background: rgb(255 255 255 / 72%); }
.clip-window small { text-align: right; line-height: 1.45; }
.clip-actions { justify-content: flex-start; flex-wrap: wrap; margin: 9px 0; }
.clip-actions button, .clip-event-button, .subject-plan button {
  padding: 7px 9px;
  border: 1px solid #bfc9a0;
  border-radius: 4px;
  background: #fff;
  color: #3e4630;
  font-size: 9px;
  font-weight: 800;
}
.clip-actions .clip-primary { background: #556520; color: #fff; border-color: #556520; }
.clip-actions label { display: flex; align-items: center; gap: 5px; color: #58613f; font-size: 9px; }
.clip-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clip-review-grid label { display: grid; gap: 4px; color: #555f3f; font-size: 9px; font-weight: 750; }
.clip-review-grid select, .clip-review-grid input { width: 100%; padding: 7px; border: 1px solid #cbd3b2; background: #fff; font-size: 9px; }
.clip-review-grid .clip-notes { grid-column: 1 / -1; }
.clip-event-button { margin-top: 9px; }
.subject-plan { margin: 10px 0 0; padding: 10px; border: 1px dashed #c7cdb7; background: #f8faf3; align-items: flex-end; }
.subject-plan > div { display: grid; gap: 3px; }
.subject-plan span { color: #596050; font-size: 9px; }
.reference-tabs { margin-top: 12px; display: flex; gap: 3px; }
.reference-tabs button { padding: 8px 12px; border: 0; background: #dcdad3; color: #696f65; font-size: 10px; font-weight: 800; }
.reference-tabs button.active { background: #fff; color: #111; }
.reference-pane { display: none; border: 1px solid var(--line); background: #fff; }
.reference-pane.active { display: block; }
.proposal-warning { margin: 12px 12px 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; border-left: 4px solid var(--orange); background: #fff2ed; }
.proposal-warning strong { font-size: 11px; }
.proposal-warning span { color: #73584d; font-size: 9px; line-height: 1.5; }
.proposal-summary { padding: 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.proposal-card { min-width: 0; padding: 10px; background: #f3f2ec; }
.proposal-card span { display: block; color: var(--muted); font-size: 8px; }
.proposal-card strong { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.proposal-card.proposal-mismatch { outline: 2px solid var(--orange); background: #fff2ed; }
.proposal-imports { padding: 0 13px 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-bottom: 1px solid var(--line); }
.proposal-imports button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: #f2f1eb; color: #32362f; font-size: 9px; font-weight: 800; }
.proposal-imports button.proposal-import-primary { border-color: #111; background: #1d1f1b; color: var(--acid); }
.proposal-imports button:disabled { opacity: .42; cursor: not-allowed; }
.proposal-imports small { flex-basis: 100%; color: var(--muted); font-size: 8px; }
.proposal-advice { max-height: 62vh; overflow: auto; padding: 0 13px 13px; }
.ai-advice-section { padding-top: 13px; }
.ai-advice-section h3 { margin: 0 0 8px; font-size: 11px; }
.ai-advice-section h3 small { margin-left: 4px; color: var(--muted); font-size: 8px; font-weight: 500; }
.ai-source-warning { margin: -1px 0 8px; padding: 7px 9px; border-left: 3px solid #d2a80e; background: #fff9dc; color: #6b5d29; font-size: 8px; line-height: 1.5; }
.ai-advice-empty { margin-top: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; background: #f3f2ec; color: #656b61; font-size: 9px; line-height: 1.5; }
.ai-segment-row { margin-top: 5px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f5f4ef; font-size: 9px; }
.ai-rep-list { display: flex; flex-direction: column; gap: 7px; }
.ai-rep-card { border: 1px solid #deddd5; background: #faf9f5; }
.ai-rep-card > header { padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #efeee7; }
.ai-rep-card > header > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ai-rep-card > header strong { font-size: 10px; }
.ai-rep-card > header span { color: #62685f; font-size: 8px; }
.ai-frame-button { padding: 2px 5px; border: 1px solid #c8c7be; border-radius: 3px; background: #fff; color: #344700; font-size: 8px; font-weight: 800; vertical-align: baseline; }
.ai-frame-button:hover { border-color: #799200; background: var(--acid); color: #111; }
.ai-error-list { padding: 8px 10px; }
.ai-error-row { padding: 8px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 4px 8px; border-left: 3px solid var(--orange); background: #fff1ec; font-size: 8px; }
.ai-error-row strong { color: #6d2919; font-size: 10px; }
.ai-error-row code { justify-self: end; color: #815448; font-size: 8px; }
.ai-error-row span { color: #715b53; }
.ai-no-error { padding: 7px 8px; border-left: 3px solid #acb1a6; background: #f1f2ee; color: #6c7268; font-size: 8px; }
.ai-rep-card details { border-top: 1px solid #e3e2da; }
.ai-rep-card summary { padding: 7px 10px; }
.ai-event-list, .ai-phase-list { padding: 0 10px 8px; display: flex; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 8px; }
.ai-phase-list { padding-top: 7px; border-top: 1px dashed #dfded6; }
.reference-pane details { border-top: 1px solid var(--line); }
.reference-pane summary { padding: 10px 13px; color: #61675e; font-size: 10px; cursor: pointer; }
.reference-pane pre { max-height: 310px; overflow: auto; margin: 0; padding: 13px; background: #191b18; color: #dbe0d6; white-space: pre-wrap; word-break: break-word; font: 9px/1.55 Consolas, monospace; }
.sheet-switcher { padding: 9px; display: flex; gap: 5px; }
.sheet-switcher button { padding: 7px 9px; border: 1px solid var(--line); background: #f2f1eb; font-size: 9px; }
.sheet-switcher button.active { background: var(--acid); border-color: var(--acid); }
#sheetImage { display: block; width: 100%; max-height: 64vh; object-fit: contain; background: #111; }

.quick-form { display: flex; flex-direction: column; gap: 11px; }
.simple-section { padding: 16px; background: #fff; border: 1px solid var(--line); }
.section-head { margin-bottom: 13px; display: grid; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; }
.section-head > span { width: 30px; height: 30px; display: grid; place-items: center; background: var(--dark); color: var(--acid); font-size: 9px; font-weight: 900; }
.section-head h2 { margin: 0; font-size: 15px; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.add-button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #f5f4ee; color: #40453e; font-size: 9px; font-weight: 800; }
.form-grid { display: grid; gap: 9px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-form label { display: flex; flex-direction: column; gap: 5px; color: #4d534a; font-size: 9px; font-weight: 750; }
.quick-form .field-help { color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.45; }
.quick-form input, .quick-form select, .quick-form textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d2d1c9;
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}
.quick-form input:focus, .quick-form select:focus, .quick-form textarea:focus { border-color: #686e63; box-shadow: 0 0 0 3px rgb(50 53 47 / 8%); }
.quick-form textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.range-row { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 7px; }
.range-row span { color: var(--muted); }
.range-row button { padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: #f2f1eb; font-size: 9px; }
.simple-table:empty::before { content: "可以留空"; display: block; padding: 14px; text-align: center; color: #9ba096; background: #f7f6f1; font-size: 9px; }
.simple-row { position: relative; margin-top: 6px; padding: 9px 29px 9px 9px; background: #f6f5ef; border: 1px solid #e1e0d8; }
.row-fields { display: grid; grid-template-columns: repeat(4, minmax(68px, 1fr)); gap: 6px; }
.row-fields label { gap: 3px; font-size: 8px; }
.row-fields input, .row-fields select { padding: 7px; font-size: 9px; }
.row-fields .wide { grid-column: span 2; }
.remove-button { position: absolute; top: 7px; right: 7px; width: 19px; height: 19px; padding: 0; border: 0; background: #e5e3dc; color: #7a3325; }
.form-actions { position: sticky; z-index: 10; bottom: 0; padding: 12px; display: flex; justify-content: flex-end; gap: 7px; background: rgb(23 24 22 / 96%); }
.form-actions button { padding: 10px 13px; border: 1px solid #494c44; border-radius: 4px; background: transparent; color: #fff; font-size: 10px; font-weight: 850; }
.form-actions .accent-button { border-color: var(--acid); background: var(--acid); color: #111; }
.quick-toast { position: fixed; z-index: 80; right: 20px; bottom: 20px; max-width: 370px; padding: 11px 14px; border-left: 4px solid var(--acid); background: #1e201c; color: #fff; box-shadow: 0 14px 40px rgb(0 0 0 / 25%); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .18s; font-size: 11px; }
.quick-toast.show { opacity: 1; transform: translateY(0); }
.quick-toast.error { border-left-color: var(--orange); }

.single-review-badge {
  padding: 6px 9px;
  border: 1px solid #59604f;
  border-radius: 999px;
  color: var(--acid);
  font-size: 9px;
  font-weight: 800;
}
.task-switcher {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border-bottom: 1px solid #34372f;
}
.task-switcher button {
  min-width: 0;
  min-height: 32px;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid #41443c;
  border-radius: 5px;
  background: #292c26;
  color: #d4d7d0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 850;
}
.task-switcher button small {
  display: none;
}
.task-switcher button.active {
  border-color: var(--acid);
  background: var(--acid);
  color: #111;
}
.task-switcher button.active small { color: #4e5d18; }
.manual-mode-note {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-left: 4px solid #98b900;
  background: #efffc1;
  color: #3f4c19;
  font-size: 10px;
  line-height: 1.55;
}
.oni-grid {
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(520px, 1.08fr);
  gap: 16px;
  align-items: start;
}
.oni-preview-panel {
  position: sticky;
  top: 80px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
#oniPreviewImage {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}
.oni-preview-panel p {
  margin: 9px 2px 1px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.modality-switch { margin-bottom: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.modality-switch button { padding: 8px; border: 1px solid var(--line); background: #f2f1eb; color: #596057; font-size: 9px; font-weight: 850; }
.modality-switch button.active { border-color: var(--dark); background: var(--dark); color: var(--acid); }
.dual-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dual-preview figure { min-width: 0; margin: 0; background: #111; }
.dual-preview figcaption { padding: 7px 8px; display: flex; justify-content: space-between; background: #252722; color: var(--acid); font-size: 9px; font-weight: 850; }
.dual-preview figcaption span { color: #92998d; font-size: 7px; font-weight: 500; }
.dual-preview img { display: block; width: 100%; max-height: 67vh; object-fit: contain; }
.candidate-audit { margin-top: 9px; padding: 9px 10px; display: flex; flex-direction: column; gap: 4px; border-left: 3px solid #8fae12; background: #f2f8dc; color: #535f31; font-size: 8px; line-height: 1.45; }
.candidate-audit strong { color: #2f3916; font-size: 9px; }
.section-subhead { margin: 12px 0 7px; display: flex; align-items: center; justify-content: space-between; font-size: 9px; }
.section-subhead button, .checkpoint-batch button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #f3f2ec; color: #3d433a; font-size: 8px; font-weight: 800; }
.compact-intervals { display: flex; flex-direction: column; gap: 6px; }
.compact-interval { padding: 7px; display: grid; grid-template-columns: 90px auto 90px 1fr 24px; gap: 6px; align-items: center; background: #f6f5ef; }
.compact-interval input { padding: 7px; font-size: 9px; }
.compact-interval button { height: 28px; border: 0; background: #e9ddd7; color: #832e1e; }
.observability-matrix { display: flex; flex-direction: column; gap: 8px; }
.observability-row { border: 1px solid #dfded6; background: #f7f6f1; }
.observability-row header { padding: 8px 10px; display: flex; justify-content: space-between; background: #efeee8; }
.observability-row header strong { font-size: 10px; }
.observability-row header span { color: var(--muted); font: 8px Consolas, monospace; }
.observability-row > div { padding: 8px; display: grid; grid-template-columns: 1fr 1.4fr repeat(2, .8fr) 1fr 1fr; gap: 6px; }
.observability-row label { font-size: 8px; }
.observability-row input, .observability-row select { padding: 7px; font-size: 9px; }
.error-truth-row > div { grid-template-columns: 1fr 1fr 1fr 1.5fr; }
.checkpoint-batch { margin-bottom: 9px; padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #efffc1; }
.checkpoint-batch label { flex-direction: row; align-items: center; }
.checkpoint-batch input { width: 62px; padding: 6px; }
.oni-checkpoint header { cursor: pointer; }
.oni-checkpoint.synced { outline: 2px solid #8eaa19; background: #f5ffd1; }
.eligibility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.eligibility-grid div { padding: 10px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); }
.eligibility-grid strong { font-size: 9px; }
.eligibility-grid span { font-size: 8px; }
.eligibility-grid .eligible { border-color: #91ad1c; background: #efffc1; color: #40500d; }
.eligibility-grid .blocked { background: #f3f2ec; color: #7c8178; }
.oni-checkpoints {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.oni-checkpoint {
  border: 1px solid #dfded6;
  background: #f7f6f1;
}
.oni-checkpoint header {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e4e2da;
  background: #efeee8;
}
.oni-checkpoint header strong { font-size: 9px; }
.oni-checkpoint header span { color: var(--muted); font-size: 8px; }
.oni-checkpoint-fields {
  padding: 8px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 6px;
}
.oni-checkpoint-fields label { font-size: 8px; }
.oni-checkpoint-fields input,
.oni-checkpoint-fields select {
  padding: 7px;
  font-size: 9px;
}

.angle-review-grid {
  display: grid;
  grid-template-columns: minmax(480px, 1.15fr) minmax(360px, .85fr);
  gap: 16px;
  align-items: start;
}
.angle-task-guide {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #cfd6b5;
  border-left: 5px solid var(--acid);
  background: #fbfff0;
}
.angle-task-guide header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.angle-task-guide header span {
  padding: 4px 7px;
  background: var(--dark);
  color: var(--acid);
  font-size: 8px;
  font-weight: 900;
}
.angle-task-guide header strong { font-size: 15px; }
.angle-task-guide > p {
  margin: 8px 0 10px;
  color: #48512d;
  font-size: 11px;
  font-weight: 750;
}
.angle-task-guide ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}
.angle-task-guide li {
  min-width: 0;
  padding: 9px;
  display: grid;
  gap: 4px;
  border: 1px solid #dce2c6;
  background: #fff;
}
.angle-task-guide li b { color: #405200; font-size: 9px; }
.angle-task-guide li span { color: #626a58; font-size: 8px; line-height: 1.45; }
.angle-complete-rule {
  margin-top: 8px;
  color: #626a58;
  font-size: 9px;
}
.angle-complete-rule strong { color: #303727; }
.angle-media-panel {
  position: sticky;
  top: 80px;
  min-width: 0;
}
.angle-video-wrap { min-height: 520px; }
#angleVideo {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
}
#angleCanvas {
  position: absolute;
  left: 0;
  top: 0;
  cursor: crosshair;
  touch-action: none;
}
.angle-point-guide {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f5f8e8;
}
.angle-point-guide > div { flex: 1; display: grid; gap: 3px; }
.angle-point-guide strong { font-size: 10px; }
.angle-point-guide small { color: var(--muted); font-size: 8px; }
.angle-point-guide button {
  padding: 7px 9px;
  border: 1px solid #c9d1ac;
  border-radius: 4px;
  background: #fff;
  color: #4b542f;
  font-size: 8px;
  font-weight: 800;
}
.angle-point-list {
  margin: 0;
  padding: 9px 9px 9px 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
}
.angle-point-list li { color: #62685e; font-size: 8px; }
.angle-point-list li.marked { color: #344300; font-weight: 800; }
.angle-form-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.angle-value-card {
  margin: 12px 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: end;
  background: var(--dark);
  color: #fff;
}
.angle-value-card span { color: #a5ab9f; font-size: 9px; }
.angle-value-card strong { grid-row: span 2; color: var(--acid); font-size: 36px; line-height: 1; }
.angle-value-card small { color: #7f857a; font-size: 8px; }
.angle-point-progress {
  margin: -4px 0 12px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe4cb;
  background: #f7faed;
}
.angle-point-progress strong { color: #405200; font-size: 10px; }
.angle-point-progress span { color: #69705f; font-size: 8px; }
.angle-point-progress.ready { border-color: #99b42c; background: #efffc1; }
.angle-fields label, .angle-notes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #5e655a;
  font-size: 9px;
  font-weight: 750;
}
.angle-fields select, .angle-notes textarea {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}
.angle-fields small { color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.4; }
.angle-fields small.compatibility-warning { color: #a54222; font-weight: 750; }
.angle-notes { margin-top: 9px; }
.angle-notes textarea { min-height: 74px; resize: vertical; }
.angle-form-actions {
  position: sticky;
  z-index: 12;
  bottom: 0;
  margin: 10px -16px 18px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(251 250 246 / 96%);
  box-shadow: 0 -8px 18px rgb(20 22 18 / 7%);
}
.angle-form-actions > span {
  flex: 1;
  color: #68705f;
  font-size: 8px;
  line-height: 1.4;
}
.angle-form-actions button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #343932;
  font-size: 9px;
  font-weight: 850;
}
.angle-form-actions button.accent-button { border-color: var(--acid); background: var(--acid); color: #111; }
.angle-form-actions button.not-ready { border-color: #c4c9b4; background: #e7eadf; color: #62685d; }
.angle-history-head {
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
}
.angle-history-head > div { display: grid; gap: 2px; }
.angle-history-head strong { font-size: 11px; }
.angle-history-head small { color: var(--muted); font-size: 8px; }
.angle-history-head a { color: #405200; font-size: 8px; font-weight: 850; }
.angle-history { margin-top: 8px; max-height: 38vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.angle-history-empty { padding: 18px; text-align: center; background: #f0efe9; color: var(--muted); font-size: 9px; }
.angle-history-item {
  padding: 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 9px;
  border: 1px solid #deddd5;
  background: #fff;
}
.angle-history-item strong { font-size: 10px; }
.angle-history-item span { color: #68705f; font-size: 8px; }
.angle-history-item div { grid-column: 1 / -1; display: flex; gap: 5px; }
.angle-history-item button {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f4f3ed;
  color: #41473d;
  font-size: 8px;
}
.angle-history-item .delete-angle { color: #8a2d1e; }

@media (max-width: 1150px) {
  .review-grid { grid-template-columns: 1fr; }
  .media-panel { position: static; }
  .video-wrap { min-height: 380px; }
  .angle-review-grid { grid-template-columns: 1fr; }
  .angle-task-guide ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .angle-media-panel { position: static; }
  .oni-grid { grid-template-columns: 1fr; }
  .oni-preview-panel { position: static; }
  .observability-row > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .quick-topbar { grid-template-columns: 1fr auto; padding: 0 12px; }
  .quick-progress, #copyCodexButton { display: none; }
  .quick-layout { display: block; }
  .quick-sidebar {
    position: static;
    height: auto;
    max-height: 390px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .quick-record-list {
    flex: none;
    max-height: none;
    overflow: visible;
  }
  .quick-main { padding: 12px; }
  .clip-review-grid { grid-template-columns: 1fr; }
  .clip-review-grid .clip-notes { grid-column: auto; }
  .oni-checkpoint-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dual-preview { grid-template-columns: 1fr; }
  .eligibility-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .video-wrap { min-height: 280px; }
  .angle-task-guide header { align-items: flex-start; flex-direction: column; }
  .angle-task-guide ol { grid-template-columns: 1fr; }
  .angle-point-list { grid-template-columns: 1fr; }
  .angle-point-guide { align-items: stretch; flex-wrap: wrap; }
  .angle-form-actions { align-items: stretch; flex-direction: column; }
  .angle-form-actions button { width: 100%; }
  .subject-plan, .clip-window { align-items: stretch; flex-direction: column; }
  .clip-window small { text-align: left; }
  .form-grid.two { grid-template-columns: 1fr; }
  .row-fields { grid-template-columns: repeat(2, minmax(65px, 1fr)); }
  .proposal-summary { grid-template-columns: 1fr; }
  .range-row { grid-template-columns: 1fr auto 1fr; }
  .range-row button { grid-column: 1 / -1; }
  .form-actions button { flex: 1; }
  .oni-checkpoint header { flex-direction: column; }
  .oni-checkpoint-fields { grid-template-columns: 1fr; }
  .observability-row > div { grid-template-columns: 1fr; }
  .compact-interval { grid-template-columns: 1fr auto 1fr; }
  .compact-interval input:nth-of-type(3), .compact-interval button { grid-column: 1 / -1; }
  .eligibility-grid { grid-template-columns: 1fr; }
}
