/* OPTICAL staff workspace. The existing grids, selection, scrolling, form
   ownership, score contracts and hidden attributes are deliberately retained. */
html[data-design-theme="optical"] .rail {
  color: var(--op-ink);
  background: #182328f2;
  border-color: var(--op-line-soft);
  backdrop-filter: blur(8px);
}
html[data-design-theme="optical"] :is(.brand, .brand small, .nav-icon, .breadcrumbs, .breadcrumbs strong, .slash) { color: var(--op-muted); }
html[data-design-theme="optical"] .brand { color: var(--op-ink); }
html[data-design-theme="optical"] .brand-seal,
html[data-design-theme="optical"] .brand-seal::after { border-color: var(--op-faint); }
html[data-design-theme="optical"] :is(.nav-icon.active, .nav-icon:hover) { color: var(--op-ink); background: transparent; }
html[data-design-theme="optical"] .nav-icon.active::after { background: var(--op-paper); }
html[data-design-theme="optical"] .connection-pill { color: var(--op-muted); background: var(--op-surface); border-color: var(--op-line); box-shadow: none; }
html[data-design-theme="optical"] .status-dot { background: var(--op-human-fill); }
html[data-design-theme="optical"] :is(.interview-meta, .staff-home-context, .staff-home-sequence, .staff-preview-caption) { color: var(--op-muted); border-color: var(--op-line-soft); }
html[data-design-theme="optical"] .interview-step { color: var(--op-ink); }
html[data-design-theme="optical"] .interview-step>span { border-color: var(--op-line); }

/* Staff preparation desk beside the existing live appearance preview. */
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene {
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--op-surface);
}
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene::after {
  background: none;
}
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .stage[data-background="studio"] {
  background: var(--op-surface);
  background-image: none;
}
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .page-heading {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--op-line-soft);
}
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .page-heading h1 {
  color: var(--op-ink);
  font-family: var(--op-focus-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin: 5px 0;
}
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .page-heading p { font-size: 10px; line-height: 1.75; }
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .page-heading .eyebrow { font-size: 8px; }
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .stage-top { position: relative; inset: auto; padding: 11px 20px; }
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .stage { position: relative; inset: auto; flex: 0 0 220px; height: 220px; min-height: 220px; }
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene>.stage>#avatar-canvas { left: 0; right: 0; width: 100%; }
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .stage-caption { position: relative; inset: auto; margin: 0; padding: 8px 20px; }
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene :is(.page-heading p, .page-heading .eyebrow, .interviewer-id strong, .interviewer-id div>span, .live-badge, .stage-caption) { color: var(--op-muted); }
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .live-badge.live { color: var(--op-human); }
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .avatar-mini { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line); }
html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .studio-scene .page-heading .setup-button {
  color: var(--op-link);
  background: var(--op-raised);
  border-color: var(--op-line);
  box-shadow: none;
  backdrop-filter: none;
  min-width: 0;
  width: 104px;
  min-height: 44px;
  padding: 8px 10px;
  gap: 7px;
  align-self: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1.7;
}
html[data-design-theme="optical"] body[data-home="staff"] :is(.interviewer-card, .staff-handover) { box-shadow: none; }
html[data-design-theme="optical"] body[data-home="staff"] .staff-handover {
  color: var(--op-ink);
  background: var(--op-surface);
  border-color: var(--op-line-soft);
}
html[data-design-theme="optical"] body[data-home="staff"] :is(.staff-handover h2, .staff-applicant-field>span, .staff-handover-guidance>strong) { color: var(--op-ink); }
html[data-design-theme="optical"] body[data-home="staff"] :is(.staff-handover>header .eyebrow, .staff-handover-description, .staff-applicant-field>small, .staff-handover-guidance>p, .staff-self-test-note, .staff-preview-caption, .staff-home-context, .staff-home-sequence, .sound-control) { color: var(--op-muted); }
html[data-design-theme="optical"] body[data-home="staff"] .staff-applicant-field>input {
  color: var(--op-ink);
  background: var(--op-deep);
  border-color: var(--op-line);
  border-radius: 5px;
}
html[data-design-theme="optical"] body[data-home="staff"] .staff-applicant-field>input:focus { color: var(--op-ink); background: var(--op-deep); border-color: var(--op-focus); }
html[data-design-theme="optical"] body[data-home="staff"] .staff-applicant-field>input::placeholder { color: var(--op-faint); }
html[data-design-theme="optical"] body[data-home="staff"] .staff-preview-tools { border-color: var(--op-line-soft); background: var(--op-surface); }
html[data-design-theme="optical"] body[data-home="staff"] .staff-handover-steps { border-color: var(--op-line-soft); }
html[data-design-theme="optical"] body[data-home="staff"] .staff-handover-steps li { color: var(--op-faint); border-color: var(--op-line-soft); }
html[data-design-theme="optical"] body[data-home="staff"] .staff-handover-steps li[aria-current=step] { color: var(--op-ink); border-color: var(--op-human); }
html[data-design-theme="optical"] .hr-home-overview {
  --hr-home-ink: var(--op-ink);
  --hr-home-muted: var(--op-muted);
  --hr-home-faint: var(--op-faint);
  --hr-home-line: var(--op-line-soft);
  --hr-home-accent: var(--op-human);
  color: var(--op-ink);
  background: linear-gradient(150deg, #29373ccf, #202b30);
  border-color: var(--op-line-soft);
}
html[data-design-theme="optical"] .hr-home-overview .hr-home-action { color: var(--op-link); border-color: var(--op-line); background: var(--op-surface); }
html[data-design-theme="optical"] .hr-home-overview .hr-home-action:hover:enabled { color: var(--op-ink); background: var(--op-hover); }
html[data-design-theme="optical"] .hr-home-device[data-status=ready] .hr-home-status { color: var(--op-human); }
html[data-design-theme="optical"] :is(.hr-home-device[data-status=blocked], .hr-home-device[data-status=attention]) .hr-home-status { color: var(--op-warning); }
html[data-design-theme="optical"] .hr-home-status::before,
html[data-design-theme="optical"] .hr-home-device[data-status=ready] .hr-home-status::before { background: var(--op-human-fill); }
html[data-design-theme="optical"] .hr-home-device[data-status=off] .hr-home-status::before { background: var(--op-faint); }
html[data-design-theme="optical"] .hr-home-readiness { color: var(--op-muted); background: var(--op-raised); border-radius: 5px; }
html[data-design-theme="optical"] .hr-home-readiness[data-status=ready] { color: var(--op-human); background: var(--op-success-surface); }
html[data-design-theme="optical"] :is(.hr-home-readiness[data-status=blocked], .hr-home-readiness[data-status=attention]) { color: var(--op-warning); background: var(--op-warning-surface); }
html[data-design-theme="optical"] .hr-home-overview .hr-home-count:hover:enabled { background: var(--op-raised); }
html[data-design-theme="optical"] :is(.hr-home-header h2, .record-title h3, .comparison-header h2, #settings-dialog .settings-workspace-header h2) {
  font-family: var(--op-focus-font);
  font-weight: 400;
  letter-spacing: -.025em;
}
html[data-design-theme="optical"] :is(.hr-home-reception, .remote-home-entry, .online-desk, .online-results, .reception-roster, .staff-home-tools) { color: var(--op-ink); background: var(--op-surface); border-color: var(--op-line-soft); box-shadow: none; }
html[data-design-theme="optical"] :is(.remote-home-entry h2, .online-desk h2, .online-results h2, .reception-roster h2) { color: var(--op-ink); font-weight: 400; }
html[data-design-theme="optical"] :is(.remote-home-entry p, .remote-home-entry .eyebrow, .online-desk p, .online-results p, .reception-roster p) { color: var(--op-muted); }

/* A quiet document, with a visible selected record and opaque sticky surfaces. */
html[data-design-theme="optical"] #review-dialog { color: var(--op-ink); background: var(--op-surface); border-color: var(--op-line); border-radius: 12px; }
html[data-design-theme="optical"] :is(.review-header, .review-pdf-status, .reception-dashboard) { background: var(--op-surface); border-color: var(--op-line-soft); }
html[data-design-theme="optical"] .review-layout { background: var(--op-surface); }
html[data-design-theme="optical"] .record-list-panel { background: var(--op-deep); border-color: var(--op-line-soft); }
html[data-design-theme="optical"] :is(.review-header h2, .record-list-heading, .reception-dashboard h3, .record-title h3) { color: var(--op-ink); font-weight: 400; }
html[data-design-theme="optical"] :is(.record-list-heading span, .storage-note, .record-list-empty, .review-tool-note, .review-tool-field, .reception-all-dates, .review-pdf-status, .record-title p, .record-title .record-identity-note, .record-item>span, .record-item small, .record-item-meta, .record-item-meta>span:last-child, .record-item>span.record-applicant-number) { color: var(--op-muted); }
html[data-design-theme="optical"] .record-item { color: var(--op-ink); border-radius: 5px; }
html[data-design-theme="optical"] .record-item:hover { color: var(--op-ink); background: var(--op-raised); border-color: var(--op-line); box-shadow: none; }
html[data-design-theme="optical"] .record-item.selected { background: var(--op-raised); border-color: var(--op-human); box-shadow: inset 2px 0 var(--op-human); }
html[data-design-theme="optical"] .record-item strong { font-weight: 500; }
html[data-design-theme="optical"] .record-incomplete-label { color: var(--op-warning); }
html[data-design-theme="optical"] .record-item>span.record-termination-badge { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line); }
html[data-design-theme="optical"] .record-item>span.record-termination-badge.is-early { color: var(--op-warning); background: var(--op-warning-surface); border-color: var(--op-warning-line); }
html[data-design-theme="optical"] .record-item>span.record-termination-badge.is-technical { color: var(--op-error); background: var(--op-error-surface); border-color: var(--op-error-line); }
html[data-design-theme="optical"] .record-item>span.record-draft-saved-indicator { color: var(--op-human) !important; background: var(--op-success-surface) !important; }
html[data-design-theme="optical"] .reception-count { color: var(--op-muted); background: var(--op-deep); border-color: transparent; border-radius: 5px; }
html[data-design-theme="optical"] .reception-count>strong { color: var(--op-ink); font-weight: 400; }
html[data-design-theme="optical"] .reception-count.selected { color: var(--op-ink); background: var(--op-hover); border-color: var(--op-human); }
html[data-design-theme="optical"] .reception-count:hover { border-color: var(--op-line); }
html[data-design-theme="optical"] .review-status { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line); border-radius: 5px; }
html[data-design-theme="optical"] .review-status.confirmed { color: var(--op-human); background: var(--op-success-surface); border-color: var(--op-success-line); }
html[data-design-theme="optical"] .review-status.interrupted { color: var(--op-warning); background: var(--op-warning-surface); border-color: var(--op-warning-line); }
html[data-design-theme="optical"] :is(.review-stats>div, .review-media, .review-capture-quality, .face-observation-review, .review-quality-card, .face-observation-stats>div, .camera-quality-event, .face-observation-event) { color: var(--op-ink); background: var(--op-deep); border-color: var(--op-line-soft); border-radius: 6px; }
html[data-design-theme="optical"] .review-stats>div { background: transparent; border-radius: 0; }
html[data-design-theme="optical"] .review-stats strong { color: var(--op-ink); font-weight: 400; }
html[data-design-theme="optical"] :is(.review-stats>div>span, .review-stats small, .media-disclosure, .review-note, .review-quality-intro, .review-quality-card>span, .review-quality-card>small, .camera-quality-readouts span, .camera-quality-readouts small, .camera-quality-events, .review-camera-quality h5, .face-observation-intro, .face-observation-note, .face-observation-model, .face-observation-position-label, .face-observation-current-state, .face-observation-events summary) { color: var(--op-muted); }
html[data-design-theme="optical"] :is(.review-quality-card>strong, .camera-quality-readouts strong, .face-observation-stats strong, .face-observation-current-time, .face-observation-current-row strong) { color: var(--op-human); }
html[data-design-theme="optical"] .review-progress { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line-soft); border-radius: 6px; }
html[data-design-theme="optical"] .review-progress-heading strong { color: var(--op-ink); }
html[data-design-theme="optical"] .review-evidence-row { color: var(--op-muted); }
html[data-design-theme="optical"] .review-evidence-row strong { color: var(--op-warning); }
html[data-design-theme="optical"] .review-evidence-row.has-evidence strong { color: var(--op-human); }
html[data-design-theme="optical"] .review-quality-card.needs-check { background: var(--op-warning-surface); border-color: var(--op-warning-line); }
html[data-design-theme="optical"] .review-quality-card.needs-check>strong { color: var(--op-warning); }
html[data-design-theme="optical"] :is(.review-camera-quality, .face-observation-events) { border-color: var(--op-line-soft); }
html[data-design-theme="optical"] .review-video { background: #0b1418; }
html[data-design-theme="optical"] .face-observation-track { fill: var(--op-deep); }
html[data-design-theme="optical"] .face-observation-grid { stroke: var(--op-line-soft); }
html[data-design-theme="optical"] .face-observation-axis { fill: var(--op-muted); }
html[data-design-theme="optical"] .face-observation-cursor { stroke: var(--op-human); }

/* Reference evidence remains a readable, navigable quotation. */
html[data-design-theme="optical"] :is(.review-sections h4, .assessment-section h4, .criterion-title strong, .checkpoint-transcript h4) { color: var(--op-ink); font-weight: 500; }
html[data-design-theme="optical"] .review-transcript { color: var(--op-ink); background: var(--op-deep); border-color: var(--op-line); scrollbar-color: var(--op-line) transparent; border-radius: 6px; }
html[data-design-theme="optical"] .transcript-find { background: var(--op-raised); border-color: var(--op-line-soft); }
html[data-design-theme="optical"] :is(.transcript-find-status, .transcript-speaker, .transcript-row p, .transcript-row .actual-spoken-text, .transcript-number-note, .review-summary p, .review-summary li, .review-summary h5) { color: var(--op-muted); }
html[data-design-theme="optical"] .transcript-time { color: var(--op-link); background: var(--op-raised); }
html[data-design-theme="optical"] .transcript-row.user { background: #27383c; }
html[data-design-theme="optical"] .transcript-row.evidence-highlight { background: #35494a; box-shadow: 0 0 0 2px var(--op-human); }
html[data-design-theme="optical"] .transcript-search-match.current-match { background: #435d53; outline-color: var(--op-human); }
html[data-design-theme="optical"] .transcript-search-match { color: #f0e7ca; background: #67572f; }
html[data-design-theme="optical"] .transcript-search-match.current-match { color: var(--op-ink); background: #435d53; }
html[data-design-theme="optical"] .transcript-number-checks { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line); }
html[data-design-theme="optical"] .transcript-row .actual-spoken-text { border-color: var(--op-line); }
html[data-design-theme="optical"] .assessment-section { border-color: var(--op-line-soft); }
html[data-design-theme="optical"] .criterion-card { color: var(--op-ink); background: var(--op-deep); border-color: var(--op-line-soft); border-radius: 6px; }
html[data-design-theme="optical"] :is(.criterion-title>span, .criterion-card>p, .human-score-field, .confirm-review, .draft-summary, .criterion-description, .criterion-missing-reason) { color: var(--op-muted); }
html[data-design-theme="optical"] .criterion-anchors { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line-soft); border-radius: 5px; }
html[data-design-theme="optical"] .criterion-anchors dt { color: var(--op-human); }
html[data-design-theme="optical"] .ai-score { color: var(--op-ai); background: #263842; border-radius: 4px; }
html[data-design-theme="optical"] .evidence-quote { color: var(--op-ink); background: var(--op-raised); border-color: var(--op-human); border-radius: 0 5px 5px 0; }
html[data-design-theme="optical"] .evidence-quote:hover { background: var(--op-hover); }
html[data-design-theme="optical"] .human-score-field { border-color: var(--op-line-soft); }
html[data-design-theme="optical"] :is(.draft-summary, .human-review-draft-controls, .partial-human-review-draft) { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line); border-radius: 6px; }
html[data-design-theme="optical"] .human-review-draft-controls>strong { color: var(--op-ink); }
html[data-design-theme="optical"] :is(.human-review-draft-date, .human-review-draft-actions .text-button) { color: var(--op-muted); }
html[data-design-theme="optical"] .human-review-draft-status { color: var(--op-muted); background: var(--op-deep); }
html[data-design-theme="optical"] .human-review-draft-status[data-state=saved] { color: var(--op-human); background: var(--op-success-surface); }
html[data-design-theme="optical"] .human-review-draft-status[data-state=saving] { color: var(--op-ai); background: #263842; }
html[data-design-theme="optical"] .human-review-draft-status[data-state=unsaved] { color: var(--op-warning); background: var(--op-warning-surface); }
html[data-design-theme="optical"] :is(.human-review-draft-status[data-state=failed], .human-review-draft-status[data-state=conflict]) { color: var(--op-error); background: var(--op-error-surface); }
html[data-design-theme="optical"] :is(.unconfirmed-note, .record-template-note) { color: var(--op-muted) !important; }
html[data-design-theme="optical"] :is(.partial-warning, .checkpoint-notice) { color: var(--op-warning); background: var(--op-warning-surface); border-color: var(--op-warning-line); }
html[data-design-theme="optical"] :is(.checkpoint-notice h4, .checkpoint-notice p, .checkpoint-facts dt, .checkpoint-facts dd, .checkpoint-active-note) { color: var(--op-warning); }
html[data-design-theme="optical"] .interview-termination-notice { color: var(--op-ink); background: var(--op-raised); border-color: var(--op-line); border-left-color: var(--op-human); }
html[data-design-theme="optical"] .interview-termination-notice p { color: var(--op-muted); }
html[data-design-theme="optical"] .interview-termination-notice.is-early { color: var(--op-warning); background: var(--op-warning-surface); border-color: var(--op-warning-line); }
html[data-design-theme="optical"] .interview-termination-notice.is-technical { color: var(--op-error); background: var(--op-error-surface); border-color: var(--op-error-line); }

/* Scores keep source identity and missing-value patterns, never synthesizing
   numbers or treating a saved draft as a confirmed human assessment. */
html[data-design-theme="optical"] .evaluation-overview { color: var(--op-ink); background: transparent; }
html[data-design-theme="optical"] :is(.evaluation-overview h4, .evaluation-total-value, .chart-source-stat>strong, .criteria-comparison h5, .criterion-chart-heading strong, .score-chart-value, .radar-readout-item strong) { color: var(--op-ink); }
html[data-design-theme="optical"] :is(.evaluation-overview-header .eyebrow, .chart-provenance, .evaluation-total-label, .evaluation-total-status, .evaluation-total-value small, .chart-source-stat>span:not(:first-child), .chart-source-stat>small, .criterion-chart-heading>span, .score-chart-label, .score-chart-state, .score-chart-axis, .chart-footnote, .radar-title, .radar-note) { color: var(--op-muted); }
html[data-design-theme="optical"] :is(.evaluation-summary, .evaluation-total, .chart-footnote, .evaluation-ai-total, .evaluation-ai-coverage, .radar-readout) { border-color: var(--op-line-soft); }
html[data-design-theme="optical"] :is(.chart-source-stat>span:first-child, .radar-readout-ai, .evaluation-ai-total>strong, .evaluation-ai-coverage>strong) { color: var(--op-ai); }
html[data-design-theme="optical"] :is(.chart-source-stat:nth-child(2)>span:first-child, .radar-readout-human) { color: var(--op-human); }
html[data-design-theme="optical"] :is(.chart-total-track, .score-chart-track, .evaluation-coverage-track) { background: var(--op-line-soft); }
html[data-design-theme="optical"] :is(.chart-total-fill, .score-chart-fill.human) { background: var(--op-human-fill); }
html[data-design-theme="optical"] .score-chart-fill { background: var(--op-ai-fill); }
html[data-design-theme="optical"] .chart-legend { color: var(--op-muted); }
html[data-design-theme="optical"] .chart-legend>span::before { background: var(--op-ai-fill); }
html[data-design-theme="optical"] .chart-legend>.chart-key-human::before { background: var(--op-human-fill); }
html[data-design-theme="optical"] :is(.chart-total-reference, .score-chart-reference),
html[data-design-theme="optical"] .chart-legend>.chart-key-baseline::before { border-color: var(--op-warning); }
html[data-design-theme="optical"] :is(.chart-total-reference-label, .score-chart-row.is-below-reference .score-chart-state) { color: var(--op-warning); }
html[data-design-theme="optical"] .score-chart-row.is-missing .score-chart-track { background: repeating-linear-gradient(135deg, #29373c, #29373c 4px, #43565c 4px, #43565c 5px); }
html[data-design-theme="optical"] .score-chart-row.is-missing .score-chart-state { color: var(--op-faint); }
html[data-design-theme="optical"] .chart-view-controls { background: var(--op-deep); border-radius: 5px; }
html[data-design-theme="optical"] .chart-view-button { color: var(--op-muted); background: transparent; border-radius: 4px; }
html[data-design-theme="optical"] :is(.chart-view-button.is-active, .chart-view-button:hover) { color: var(--op-ink); background: var(--op-hover); box-shadow: none; }
html[data-design-theme="optical"] .radar-grid { stroke: var(--op-line-soft); }
html[data-design-theme="optical"] .radar-axis { stroke: var(--op-line); }
html[data-design-theme="optical"] .radar-baseline { fill: #b69a6408; stroke: var(--op-warning); }
html[data-design-theme="optical"] .radar-area-ai { fill: #7998ad26; stroke: var(--op-ai-fill); }
html[data-design-theme="optical"] .radar-area-human { fill: #88b2a224; stroke: var(--op-human-fill); }
html[data-design-theme="optical"] .radar-point-ai { fill: var(--op-ai-fill); }
html[data-design-theme="optical"] .radar-point-human { fill: var(--op-human-fill); }
html[data-design-theme="optical"] .radar-point { stroke: var(--op-surface); }
html[data-design-theme="optical"] .radar-scale { fill: var(--op-muted); stroke: var(--op-surface); }
html[data-design-theme="optical"] .radar-axis-label { fill: var(--op-ink); }
html[data-design-theme="optical"] :is(.chart-evidence-action, .chart-comparison-note, .radar-empty-state, .radar-partial-state, .review-evaluation-status) { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line); }
html[data-design-theme="optical"] .evaluation-ai-status { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line); }
html[data-design-theme="optical"] :is(.evaluation-ai-status.is-running, .evaluation-ai-status.is-pending) { color: var(--op-ai); background: #263842; border-color: #658292; }
html[data-design-theme="optical"] :is(.evaluation-ai-status.is-failed, .evaluation-ai-status.is-unavailable, .evaluation-ai-status.is-interrupted, .review-evaluation-poll-note, .review-template-error) { color: var(--op-warning); background: var(--op-warning-surface); border-color: var(--op-warning-line); }
html[data-design-theme="optical"] :is(.evaluation-ai-total>span, .evaluation-ai-total>small, .evaluation-ai-coverage>span) { color: var(--op-muted); }
html[data-design-theme="optical"] .evaluation-coverage-track>i { background: var(--op-ai-fill); }

/* Comparison retains its sticky identity column and horizontal navigation. */
html[data-design-theme="optical"] .candidate-comparison { color: var(--op-ink); }
html[data-design-theme="optical"] :is(.comparison-header, .comparison-footnote) { color: var(--op-muted); background: var(--op-surface); border-color: var(--op-line-soft); }
html[data-design-theme="optical"] .comparison-header h2 { color: var(--op-ink); }
html[data-design-theme="optical"] :is(.comparison-header .eyebrow, .comparison-status, .comparison-note, .comparison-footnote, .comparison-pager>span, .comparison-empty, .comparison-table tbody th>span, .comparison-table tbody th>small, .comparison-row-state, .comparison-video-state) { color: var(--op-muted); }
html[data-design-theme="optical"] .comparison-table-wrap { border-color: var(--op-line); border-radius: 6px; background: var(--op-deep); }
html[data-design-theme="optical"] .comparison-table { color: var(--op-ink); }
html[data-design-theme="optical"] .comparison-table caption { color: var(--op-muted); background: var(--op-deep); }
html[data-design-theme="optical"] :is(.comparison-table th, .comparison-table td) { border-color: var(--op-line-soft); }
html[data-design-theme="optical"] :is(.comparison-table thead th, .comparison-table thead th:first-child) { color: var(--op-ink); background: var(--op-raised); }
html[data-design-theme="optical"] .comparison-table th:first-child { color: var(--op-ink); background: var(--op-surface); border-color: var(--op-line); }
html[data-design-theme="optical"] :is(.comparison-table tbody tr:nth-child(even) td, .comparison-table tbody tr:nth-child(even) th) { background: #243138; }
html[data-design-theme="optical"] :is(.comparison-table tbody tr:hover td, .comparison-table tbody tr:hover th) { background: var(--op-hover); }
html[data-design-theme="optical"] :is(.comparison-table tbody th>strong, .comparison-score, .comparison-total) { color: var(--op-ink); font-weight: 400; }
html[data-design-theme="optical"] :is(.comparison-score>small, .comparison-total>small, .comparison-score.is-missing, .comparison-total.is-missing) { color: var(--op-faint); }
html[data-design-theme="optical"] :is(.comparison-evidence-button, .comparison-open-record) { color: var(--op-link); }
html[data-design-theme="optical"] .comparison-evidence { background: var(--op-raised); border-color: var(--op-line); border-radius: 6px; }
html[data-design-theme="optical"] .comparison-evidence-heading h3 { color: var(--op-ink); }
html[data-design-theme="optical"] .comparison-quote { background: var(--op-deep); border-color: var(--op-line-soft); border-radius: 5px; }
html[data-design-theme="optical"] :is(.comparison-question, .comparison-quote-time) { color: var(--op-muted); }
html[data-design-theme="optical"] .comparison-quote blockquote { color: var(--op-ink); border-color: var(--op-human); }
html[data-design-theme="optical"] .comparison-error { color: var(--op-warning); background: var(--op-warning-surface); border-color: var(--op-warning-line); }

/* Settings use an opaque working sheet, rather than see-through controls. */
html[data-design-theme="optical"] #settings-dialog { color: var(--op-ink); background: var(--op-surface); border-color: var(--op-line); border-radius: 12px; }
html[data-design-theme="optical"] #settings-dialog :is(.settings-workspace-header, .settings-content, .settings-workspace-footer) { background: var(--op-surface); border-color: var(--op-line-soft); }
html[data-design-theme="optical"] #settings-dialog .settings-navigation { background: var(--op-deep); border-color: var(--op-line-soft); }
html[data-design-theme="optical"] #settings-dialog :is(.settings-navigation button, .settings-navigation button>svg, .settings-tab-description, .settings-workspace-header p, .settings-workspace-header .eyebrow, .settings-panel-heading p, .settings-save-note p, .settings-save-note small, .field) { color: var(--op-muted); }
html[data-design-theme="optical"] #settings-dialog .settings-navigation button { border-radius: 5px; }
html[data-design-theme="optical"] #settings-dialog .settings-navigation button:hover:enabled { color: var(--op-ink); background: var(--op-raised); }
html[data-design-theme="optical"] #settings-dialog .settings-navigation button[aria-selected=true] { color: var(--op-ink); background: var(--op-raised); border-color: var(--op-line); box-shadow: none; }
html[data-design-theme="optical"] #settings-dialog .settings-navigation button[aria-selected=true]::before { background: var(--op-human); }
html[data-design-theme="optical"] #settings-dialog :is(.settings-panel-heading h3, .settings-section>h4, .settings-tab-title, .settings-context-summary strong) { color: var(--op-ink); font-weight: 400; }
html[data-design-theme="optical"] #settings-dialog :is(.settings-panel-heading, .settings-section+.settings-section, .interface-theme-controls) { border-color: var(--op-line-soft); }
html[data-design-theme="optical"] #settings-dialog :is(.field>input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), .field>select, .field>textarea) { color: var(--op-ink); background: var(--op-deep); border-color: var(--op-control-line); border-radius: 5px; }
html[data-design-theme="optical"] #settings-dialog :is(.settings-context-summary, .template-preview, .template-criterion, .mode-options>label, .api-info, .settings-tool-card) { color: var(--op-ink); background: var(--op-raised); border-color: var(--op-line-soft); border-radius: 6px; }
html[data-design-theme="optical"] #settings-dialog :is(.settings-tool-card small, .template-settings-note, .settings-note, .template-description, .template-review-note, .template-question-preview, .template-anchors) { color: var(--op-muted); }
html[data-design-theme="optical"] #settings-dialog .settings-footer-actions .button.secondary { color: var(--op-ink); background: var(--op-deep); border-color: var(--op-line); }
html[data-design-theme="optical"] #settings-dialog .settings-footer-actions .button.primary { color: var(--op-paper-ink); background: var(--op-paper); border-color: var(--op-paper); }
html[data-design-theme="optical"] #settings-dialog .settings-footer-actions .button.primary:hover:enabled { background: #ebeee6; }
html[data-design-theme="optical"] #settings-dialog .settings-tool-grid .settings-tool-card:hover:enabled { color: var(--op-ink); background: var(--op-hover); border-color: var(--op-faint); box-shadow: none; }

/* Existing result documents remain legible on screen. Print/PDF is owned by
   the separate paper stylesheet, not by these theme rules. */
html[data-design-theme="optical"] :is(.interview-result-report, .result-report-heading h3, .report-section h3) { color: var(--op-ink); }
html[data-design-theme="optical"] :is(.report-summary, .report-section ul, .next-step p, .result-report-heading p, .result-report-summary, .result-report-footnote, .result-report-fact>span, .result-report-fact>small) { color: var(--op-muted); }
html[data-design-theme="optical"] :is(.report-mode, .next-step, .result-report-scope, .result-report-state, .result-report-score) { color: var(--op-muted); background: var(--op-raised); border-color: var(--op-line); }
html[data-design-theme="optical"] .result-report-fact { background: transparent; border-color: var(--op-line-soft); }
html[data-design-theme="optical"] :is(.result-report-fact>strong, .result-report-state strong, .result-report-score>strong) { color: var(--op-ink); }
html[data-design-theme="optical"] :is(.result-report-state p, .result-report-score>span, .result-report-score>p, .result-report-score>small) { color: var(--op-muted); }
html[data-design-theme="optical"] :is(.result-report-state.is-failed, .result-report-state.is-budget, .result-report-state.is-unsaved) { color: var(--op-error); background: var(--op-error-surface); border-color: var(--op-error-line); }
html[data-design-theme="optical"] :is(.result-report-state.is-failed, .result-report-state.is-budget, .result-report-state.is-unsaved) :is(strong, p) { color: var(--op-error); }

@media (pointer: coarse) {
  html[data-design-theme="optical"] :is(.comparison-close, .company-editor-close, .portrait-lighting-close, .background-close) { min-height: 44px; }
}
@media (min-width: 901px) {
  html[data-design-theme="optical"] body[data-home="staff"]:not(.interview-focus):not(.appearance-preview-open) .room-layout {
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.3fr);
  }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-design-theme="optical"] .rail { background: var(--op-ground); backdrop-filter: none; }
}

/* The new navigation is absent from STANDARD presentation, even when a record
   is open while the product design is switched. Existing sections stay put. */
.optical-review-navigation { display: none; }
html[data-design-theme="optical"] #record-detail>.optical-review-navigation {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
  padding: 9px 0;
  background: var(--op-surface);
  border-bottom: 1px solid var(--op-line);
}
html[data-design-theme="optical"] .optical-review-navigation-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--op-muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  line-height: 1.65;
  text-align: left;
}
html[data-design-theme="optical"] .optical-review-navigation-button:hover {
  color: var(--op-ink);
  border-color: var(--op-line-soft);
  background: var(--op-raised);
}
html[data-design-theme="optical"] #record-detail :is(.review-stats, .evaluation-charts-host, .review-sections, .assessment-section, .record-acknowledgment) { scroll-margin-top: 70px; }
html[data-design-theme="optical"] #review-dialog .review-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 18px;
  padding: 22px 26px 18px;
}
html[data-design-theme="optical"] #review-dialog .review-header>div:first-child { min-width: 0; }
html[data-design-theme="optical"] #review-dialog .review-header h2 { margin: 6px 0 0; font-size: 21px; line-height: 1.5; }
html[data-design-theme="optical"] #review-dialog .review-header>.review-comparison-actions { justify-self: end; margin: 0; gap: 8px; }
html[data-design-theme="optical"] #review-dialog .review-header>.close-dialog { grid-column: 3; grid-row: 1; justify-self: end; }
html[data-design-theme="optical"] #review-dialog .review-header>.preview-review-stamp {
  position: static;
  grid-column: 1 / -1;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--op-faint);
  background: transparent;
  font-size: 10px;
  line-height: 1.8;
}
@media (max-width: 700px) {
  html[data-design-theme="optical"] #review-dialog .review-header { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 17px 15px; gap: 12px; }
  html[data-design-theme="optical"] #review-dialog .review-header h2 { font-size: 18px; line-height: 1.6; }
  html[data-design-theme="optical"] #review-dialog .review-header>.close-dialog { grid-column: 2; grid-row: 1; }
  html[data-design-theme="optical"] #review-dialog .review-header>.review-comparison-actions { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  html[data-design-theme="optical"] #record-detail :is(.review-stats, .evaluation-charts-host, .review-sections, .assessment-section, .record-acknowledgment) { scroll-margin-top: 112px; }
}
@media (pointer: coarse) {
  html[data-design-theme="optical"] .optical-review-navigation-button { min-height: 44px; }
}
/* On a narrow screen, the reception summary scrolls away with the document.
   It must not consume most of the record reader's available height. */
@media(max-width:700px){
 html[data-design-theme="optical"] #review-dialog .review-shell{display:block;min-height:0;max-height:calc(100svh - 32px);overflow:auto}
 html[data-design-theme="optical"] #review-dialog .review-layout{display:block;min-height:0;overflow:visible}
 html[data-design-theme="optical"] #review-dialog .record-list-panel{max-height:270px;overflow:auto;border-right:0;border-bottom:1px solid var(--op-line)}
 html[data-design-theme="optical"] #review-dialog #record-detail{overflow:visible;max-height:none}
 html[data-design-theme="optical"] #record-detail :is(.review-stats,.evaluation-charts-host,.review-sections,.assessment-section,.record-acknowledgment){scroll-margin-top:72px}
}
