:root {
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  color: #202532;
  background: #f5f6f9;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  --ink: #202532;
  --muted: #667085;
  --line: #d4d9e2;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --surface: #ffffff;
  --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; }
p { line-height: 1.6; }
input, textarea, select { border: 1px solid #d4d9e2; border-radius: 4px; padding: 9px 11px; background: white; min-width: 0; }
input::placeholder { color: #667085; }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
summary { cursor: pointer; }
.mono, code { font-family: Consolas, monospace; font-size: 11px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d4d9e2; border-radius: 4px; padding: 9px 13px; font-size: 12px; background: #fff; white-space: nowrap; }
.button:hover { background: #e7eaf0; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); }
.button.small { padding: 6px 10px; font-size: 11px; }
.text-button { font-size: 12px; padding: 2px 0; color: #475164; text-underline-offset: 3px; }
.text-button:hover { text-decoration: underline; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 7px; border-radius: 4px; }
.icon-button:hover { background: #e7eaf0; }
.pill { display: inline-flex; padding: 3px 6px; border: 1px solid #d4d9e2; border-radius: 3px; background: #f5f6f9; color: #667085; font-size: 11px; white-space: nowrap; }
.boot { padding: 15vh 8vw; text-align: center; color: var(--muted); }
.site-header { display: flex; align-items: center; height: 64px; gap: 42px; padding: 0 3vw; background: #fafbfc; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand strong { font-size: 21px; letter-spacing: -.5px; }
.brand-mark { display: flex; color: var(--accent); }
.site-header nav { display: flex; height: 100%; gap: 28px; }
.nav-tab { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid transparent; padding: 2px 0 0; font-size: 12px; color: #667085; }
.nav-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.pulse { width: 5px; height: 5px; background: #667085; border-radius: 50%; }
main { max-width: 1840px; margin: auto; padding: 25px 3vw 30px; }
.page-heading { margin-bottom: 22px; }
.page-heading h1 { font-size: 23px; letter-spacing: -.4px; margin: 0; }
.summary-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; min-height: 40px; margin: 0 0 19px; }
.selection-counts { display: flex; gap: 16px; color: #475164; font-size: 12px; }
.summary-item { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; padding-left: 25px; border-left: 1px solid #d4d9e2; font-size: 12px; }
.summary-item>span:first-child { color: #475164; }
.summary-item strong { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status-note { font-size: 11px; color: #667085; }
.summary-item .text-button { margin-left: 3px; font-size: 11px; }
.summary-action { display: flex; align-items: center; gap: 17px; margin-left: auto; position: relative; }
.eval-settings>summary { font-size: 11px; color: #667085; }
.eval-settings>div { position: absolute; right: 0; top: 45px; width: 270px; z-index: 20; border: 1px solid #d4d9e2; background: white; border-radius: 5px; padding: 18px; box-shadow: 0 7px 25px #20253212; }
.eval-settings label { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 12px; margin-bottom: 12px; }
.eval-settings input, .eval-settings select { width: 135px; padding: 6px 9px; }
.eval-settings p { margin-bottom: 0; font-size: 11px; color: var(--muted); }
.eval-progress { position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; }
.eval-progress span { display: block; height: 100%; background: #667085; transition: width .15s; }
.workspace { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 20px; }
.workspace.has-inspector { grid-template-columns: minmax(0,1fr) 330px; }
.matrix-panel, .detail-panel { background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.matrix-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding: 12px 17px; }
.matrix-toolbar>strong { font-size: 13px; font-weight: 600; }
.toolbar-actions { display: flex; align-items: center; gap: 7px; }
.matrix-scroll { max-height: calc(100dvh - 237px); min-height: 250px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #98a2b3 #f5f6f9; }
.matrix { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.matrix th, .matrix td { border-right: 1px solid #e7eaf0; border-bottom: 1px solid #e7eaf0; padding: 0; font-weight: 400; }
.matrix thead th { height: 44px; position: sticky; top: 0; z-index: 4; background: #f5f6f9; }
.matrix .model-column { position: sticky; left: 0; z-index: 3; width: 210px; min-width: 210px; max-width: 210px; background: white; text-align: left; }
.matrix thead .model-column { z-index: 6; background: #f5f6f9; font-size: 12px; color: #475164; padding: 0 17px; }
.matrix .probe-column { min-width: 104px; max-width: 104px; width: 104px; }
.probe-column>div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; }
.probe-heading { padding: 9px 0; text-align: left; color: #475164; }
.probe-heading .mono { font-size: 11px; }
.remove-button { display: inline-flex; padding: 4px; color: #667085; opacity: 0; border-radius: 3px; }
.remove-button:hover { color: #475164; background: #e7eaf0; }
th:hover .remove-button, .remove-button:focus-visible, th:focus-within .remove-button { opacity: 1; }
.model-line { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 0 9px 0 17px; }
.model-heading { display: flex; align-items: center; gap: 9px; padding: 12px 0; min-width: 0; text-align: left; }
.model-heading img { width: 19px; height: 19px; object-fit: contain; }
.model-heading strong { font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 153px; }
.matrix tbody tr:hover>.model-column, .matrix tbody tr:hover>td { background: #fafbfc; }
.matrix td { height: 44px; background: white; }
.matrix-cell { display: flex; align-items: center; justify-content: center; min-width: 103px; width: 100%; height: 44px; padding: 15px 12px; border: 1px solid transparent; }
.matrix-cell:hover, .matrix-cell:focus-visible { background: #e7eaf0; }
.matrix-cell.selected { border-color: #667085; background: #e7eaf0; }
.stack { display: flex; flex: 1; width: 100%; height: 8px; gap: 1px; overflow: hidden; border-radius: 2px; background: #e7eaf0; }
.stack>span { display: block; height: 100%; min-width: 1px; }
.matrix .add-column { width: 40px; min-width: 40px; padding: 0 3px; border-right: 0; background: #fafbfc; }
.matrix-bottom { display: flex; align-items: start; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 10px 17px; color: #667085; font-size: 11px; }
.matrix-bottom>button { font-size: 11px; color: #475164; padding: 0; white-space: nowrap; }
.matrix-notes p { max-width: 420px; margin: 10px 0 0; }
.matrix-bottom { flex-wrap: wrap; }
.color-note { flex: 1; min-width: min(330px,100%); font-size: 11px; color: #475164; }
.matrix-notes { margin-left: auto; }
.request-log { border-top: 1px solid var(--line); padding: 16px 23px; font-size: 11px; color: #475164; }
.request-log>summary { font-weight: 500; }
.debug-content { margin-top: 15px; }
.trace-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 12px; color: #667085; font-size: 11px; }
.trace-toolbar .text-button { font-size: 11px; }
.trace-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.trace-entry { border-top: 1px solid #e7eaf0; }
.trace-entry>summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 11px; }
.trace-entry>summary:before { content: '›'; color: #667085; }
.trace-entry[open]>summary:before { content: '⌄'; }
.trace-entry>summary>.mono { flex: 1; }
.trace-label { font-size: 11px; color: #475164; margin: 13px 0 7px; }
.trace-body pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 10px; padding: 12px; max-height: 260px; overflow: auto; background: #f5f6f9; border: 1px solid #e7eaf0; border-radius: 3px; font: 11px/1.7 Consolas,monospace; color: #475164; }
.trace-meta { font: 11px/1.6 Consolas,monospace; color: #667085; overflow-wrap: anywhere; }
.trace-parsed { margin: 12px 0; color: #475164; font-size: 11px; }
.trace-error { margin: 10px 0; color: #a27145; font-size: 11px; }
.missing-samples { color: #667085; font-size: 11px; }
.detail-panel { max-height: calc(100dvh - 164px); overflow: auto; padding: 18px; scrollbar-width: thin; scrollbar-color: #98a2b3 transparent; }
.inspector-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.inspector-heading>div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.inspector-heading h2 { font-size: 15px; line-height: 1.4; margin: 0; letter-spacing: -.1px; }
.inspector-heading img { width: 21px; height: 21px; object-fit: contain; }
.inspector-heading .mono { color: #667085; }
.inspector-meta { display: flex; justify-content: space-between; font-size: 11px; color: #667085; margin-bottom: 15px; }
.question-full { font-size: 12px; line-height: 1.7; color: #475164; margin-bottom: 15px; }
.sort-control { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; font-size: 11px; color: #667085; }
.sort-control select { font-size: 11px; padding: 5px 7px; }
.profile-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 42px; border-bottom: 1px solid #e7eaf0; padding: 10px 3px; text-align: left; }
.profile-row:hover { background: #f5f6f9; }
.profile-row>.mono { flex: 0 0 30px; color: #475164; }
.probe-profile-row { gap: 12px; }
.profile-name { display: flex; align-items: center; gap: 7px; font-size: 11px; flex: 0 0 156px; }
.profile-name img { width: 17px; height: 17px; object-fit: contain; }
.parameter-details, .all-options { font-size: 11px; color: #667085; margin: 16px 0; }
.parameter-details pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.6; }
.all-options ol { max-height: 220px; overflow: auto; padding-left: 23px; line-height: 1.8; }
.detail-links { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.detail-links button { color: #475164; padding: 0; font-size: 11px; }
.detail-links button:hover { text-decoration: underline; }
.option-row { padding: 7px 0; }
.option-row>div:first-child { display: flex; align-items: baseline; gap: 8px; font-size: 11px; }
.option-row>div:first-child>span:nth-child(2) { flex: 1; color: #475164; }
.option-tag { color: var(--option-color); font-family: Consolas, monospace; font-size: 11px; }
.option-row strong { font-size: 11px; font-weight: 400; color: #667085; }
.option-track { margin-top: 6px; height: 4px; background: #e7eaf0; border-radius: 2px; overflow: hidden; }
.option-track i { display: block; height: 100%; }
.custom-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; background: #e7eaf0; color: #667085; flex-shrink: 0; }
.empty { padding: 70px 25px; text-align: center; font-size: 12px; color: var(--muted); }
.site-footer { max-width: 1840px; margin: auto; padding: 0 3vw 22px; color: #667085; font-size: 11px; }
.data-note>summary { display: inline-block; }
.data-note>summary:before { content: '›'; margin-right: 7px; }
.data-note[open]>summary:before { content: '⌄'; }
.data-note>div { max-width: 800px; font-size: 11px; margin-top: 12px; line-height: 1.7; }
.data-note code { font-size: 11px; margin-left: 15px; color: #667085; }
.data-note a { color: #475164; }
.distribution-preview { position: fixed; z-index: 100; pointer-events: none; width: 310px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid #98a2b3; box-shadow: 0 6px 24px #2025321c; border-radius: 5px; padding: 14px; font-size: 11px; line-height: 1.5; }
.distribution-preview>strong { display: inline-block; margin-right: 12px; font-size: 12px; font-weight: 600; }
.distribution-preview>.mono { color: #667085; }
.distribution-preview p { color: #475164; margin: 7px 0 11px; font-size: 11px; }
.distribution-preview>small { display: block; font-size: 11px; color: #667085; margin-top: 10px; }
.preview-option { display: flex; align-items: baseline; gap: 7px; margin: 5px 0; }
.preview-option>i { width: 6px; height: 6px; flex-shrink: 0; border-radius: 1px; }
.preview-option>span { flex: 1; }
.preview-option>b { font-size: 11px; font-weight: 500; color: #475164; white-space: nowrap; }
dialog { border: 1px solid #d4d9e2; border-radius: 7px; padding: 0; box-shadow: 0 18px 70px #20253233; color: var(--ink); }
dialog::backdrop { background: #20253255; }
.results-dialog { width: 1000px; max-width: calc(100vw - 32px); max-height: 85dvh; }
.results-section { padding: 24px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-top h2 { margin: 0; font-size: 19px; }
.section-top>div { display: flex; align-items: center; gap: 10px; }
.result-controls { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 22px 0; }
.result-controls>.muted { font-size: 11px; }
.segmented { display: inline-flex; border-bottom: 1px solid #d4d9e2; gap: 17px; }
.segmented button { padding: 9px 0; font-size: 11px; color: #667085; border-bottom: 2px solid transparent; }
.segmented button.active { color: #475164; border-bottom-color: #667085; }
.accuracy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.accuracy-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; font-size: 11px; text-align: left; }
.accuracy-row img { width: 17px; height: 17px; object-fit: contain; }
.accuracy-row>span { width: 145px; flex-shrink: 0; }
.accuracy-row strong { font-size: 11px; font-weight: 500; min-width: 43px; text-align: right; }
.accuracy-track { height: 5px; flex: 1; border-radius: 3px; background: #e7eaf0; overflow: hidden; }
.accuracy-track i { display: block; height: 100%; background: #667085; border-radius: 3px; }
.stale-results { opacity: .65; }
.confusion-scroll { overflow: auto; max-height: 56dvh; scrollbar-width: thin; }
.confusion { border-spacing: 3px; font-size: 11px; }
.confusion caption { text-align: left; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.confusion th { font-weight: 400; font-size: 11px; }
.confusion thead th { position: sticky; top: 0; background: white; padding: 5px; }
.confusion tbody th { position: sticky; left: 0; background: white; min-width: 180px; text-align: left; white-space: nowrap; padding-right: 10px; }
.confusion td { text-align: center; min-width: 28px; height: 24px; border-radius: 2px; font-family: Consolas, monospace; font-size: 11px; }
.confusion .mono { font-size: 11px; color: #667085; margin-right: 6px; }
.selection-dialog { width: 600px; max-width: calc(100vw - 30px); max-height: 85dvh; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 23px 18px; gap: 15px; }
.dialog-head h2 { margin: 0; font-size: 20px; }
.search-input { margin: 0 23px; width: calc(100% - 46px); background: #fafbfc; font-size: 12px; }
.selection-tools { display: flex; gap: 15px; padding: 15px 23px; font-size: 11px; color: #475164; border-bottom: 1px solid var(--line); }
.selection-tools button { padding: 0; }
.selection-tools>span { margin-left: auto; color: #667085; }
#selection-list { max-height: 48dvh; overflow: auto; padding: 0 23px; }
.selection-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e7eaf0; cursor: pointer; }
.selection-row img { width: 22px; height: 22px; object-fit: contain; }
.selection-row strong { display: block; font-size: 11px; font-weight: 500; line-height: 1.6; }
.selection-row small { display: block; color: #667085; font-size: 11px; margin-top: 3px; }
.selection-row .pill { align-self: start; margin-top: 3px; }
.dialog-footer { display: flex; justify-content: flex-end; padding: 16px 23px; border-top: 1px solid var(--line); }
.question-dialog { padding: 0 23px 23px; }
.question-dialog .dialog-head { padding-left: 0; padding-right: 0; }
.question-dialog p { font-size: 13px; color: #475164; }
.question-dialog ol { font-size: 12px; line-height: 1.9; padding-left: 25px; color: #667085; }
.lab-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: 24px; align-items: start; }
.lab-config, .lab-output { background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lab-modes { display: flex; border-bottom: 1px solid var(--line); }
.lab-modes button { flex: 1; padding: 16px 20px; border-bottom: 2px solid transparent; text-align: left; color: #667085; }
.lab-modes button.active { color: #202532; border-bottom-color: #667085; background: #f5f6f9; }
.lab-modes strong { font-size: 12px; font-weight: 500; }
.lab-config fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-section { padding: 23px; border-bottom: 1px solid var(--line); }
.form-section h3 { font-size: 13px; margin: 0 0 20px; font-weight: 600; }
.form-section .section-top { margin-bottom: 16px; }
.form-section .section-top h3 { margin: 0; }
.form-section label:not(.checkbox-label) { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #475164; }
.form-section input, .form-section textarea { width: 100%; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }
.connection-notes, .request-settings, .ranking-notes { margin-top: 15px; font-size: 11px; color: #667085; }
.connection-notes p, .ranking-notes p { margin: 10px 0 0; font-size: 11px; }
.request-settings label { margin-top: 12px; }
.request-settings textarea { font-family: Consolas, monospace; line-height: 1.6; resize: vertical; }
.probe-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.probe-chips>button { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #d4d9e2; border-radius: 3px; background: #f5f6f9; font-family: Consolas, monospace; font-size: 11px; color: #475164; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #667085; margin-top: 17px; }
.checkbox-label input { width: 15px; height: 15px; margin: 0; }
.candidate-button { justify-content: space-between; font-size: 12px; font-weight: 400; }
.request-budget { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; font-size: 11px; color: #667085; }
.request-budget strong { font-weight: 500; font-size: 14px; color: #475164; }
.lab-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 23px; }
.lab-submit>span { font-size: 11px; color: #667085; }
.output-header { display: flex; justify-content: space-between; align-items: center; padding: 17px 23px; border-bottom: 1px solid var(--line); font-size: 12px; }
.output-header strong { font-weight: 500; }
.output-header>span { color: #667085; font-size: 11px; }
.lab-empty { min-height: 180px; padding: 35px 23px; font-size: 12px; color: #667085; }
.lab-empty p { margin-bottom: 14px; }
.lab-empty .text-button { font-size: 11px; }
.session-progress { padding: 23px; }
.session-progress>div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 13px; }
.session-progress strong { font-size: 22px; font-weight: 500; }
.session-progress strong>span { font-size: 14px; color: #667085; }
.session-progress>div>span { font-size: 11px; color: #667085; }
.progress-track { height: 4px; background: #e7eaf0; border-radius: 3px; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: #667085; }
.session-progress small { display: block; font-size: 11px; color: #667085; margin-top: 8px; }
.ranking { padding: 0 23px 23px; }
.ranking h2 { font-size: 16px; margin-bottom: 10px; }
.ranking-notes { margin: 0 0 17px; }
.ranking-row { display: flex; align-items: center; gap: 12px; padding: 13px 7px; border-bottom: 1px solid #e7eaf0; }
.ranking-row.winner { background: #f5f6f9; border: 1px solid #d4d9e2; border-radius: 4px; }
.ranking-row img { width: 21px; height: 21px; object-fit: contain; }
.rank-number { font-family: Consolas, monospace; font-size: 11px; color: #667085; }
.ranking-row>div { flex: 1; }
.ranking-row>div>strong { display: block; font-size: 11px; font-weight: 500; margin-bottom: 8px; }
.ranking-row>strong { font-size: 13px; font-weight: 500; font-family: Consolas, monospace; }
.ranking-history { margin-top: 20px; font-size: 11px; color: #667085; }
.ranking-history>span { display: block; font-size: 11px; margin: 14px 0 10px; color: #667085; }
.ranking-history>div { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 11px; }
.ranking-history .mono { font-size: 11px; color: #667085; width: 70px; }
.ranking-history strong { margin-left: auto; font-weight: 400; }
.session-distributions { padding: 0 23px 16px; }
.session-distributions>details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.session-distributions summary { display: flex; align-items: baseline; gap: 10px; font-size: 11px; color: #667085; }
.session-distributions summary>span:nth-child(2) { flex: 1; }
.session-distributions summary>strong { font-size: 11px; font-weight: 400; color: #667085; white-space: nowrap; }
.session-distributions .stack { margin: 13px 0; }
.session-distributions .option-rows { max-height: 300px; overflow: auto; }
.output-title { margin: 0 23px 10px; font-size: 15px; }
.session-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 23px 23px; }
.session-actions .button { font-size: 11px; }
.error-message { background: #fff7ee; border: 1px solid #efddc6; color: #a26f44; padding: 12px; border-radius: 4px; font-size: 11px; line-height: 1.7; margin: 0 23px 20px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; max-width: min(600px,92vw); padding: 13px 18px; background: #202532; color: #f5f6f9; border-radius: 5px; font-size: 12px; line-height: 1.6; box-shadow: 0 7px 25px #20253222; }
@media (max-width: 1050px) {
  .workspace.has-inspector { grid-template-columns: minmax(0,1fr) 295px; gap: 15px; }
  .detail-panel { padding: 16px; }
  .profile-name { flex-basis: 140px; font-size: 11px; }
  .form-section, .lab-submit { padding: 20px; }
  .form-grid { gap: 12px; }
  .lab-submit>span { width: 100%; }
  .accuracy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 750px) {
  .workspace.has-inspector { grid-template-columns: minmax(0,1fr); }
  .detail-panel { position: fixed; right: 16px; left: 16px; bottom: 16px; max-height: 65dvh; z-index: 25; box-shadow: 0 6px 40px #2025322a; padding: 20px; }
  .inspector-heading { position: sticky; top: -20px; z-index: 1; background: white; padding: 14px 0; margin-top: -10px; }
  .profile-name { flex-basis: 170px; }
  .lab-layout { grid-template-columns: 1fr; gap: 18px; }
  .lab-empty { min-height: 130px; }
  .summary-strip { gap: 13px 20px; }
  .summary-item { padding-left: 18px; }
}
@media (max-width: 550px) {
  .site-header { height: 58px; gap: 25px; padding: 0 4vw; }
  .brand { gap: 6px; }
  .brand strong { font-size: 18px; }
  .brand-mark svg { width: 21px; }
  .site-header nav { gap: 16px; }
  .nav-tab { font-size: 11px; }
  main { padding: 17px 4vw 20px; }
  .summary-strip { gap: 12px 0; margin-bottom: 14px; }
  .selection-counts { gap: 12px; font-size: 11px; }
  .summary-item { border: 0; padding: 0; margin-left: auto; gap: 6px; font-size: 11px; }
  .summary-item strong { font-size: 17px; }
  .status-note { display: block; font-size: 11px; }
  .summary-item .text-button { font-size: 11px; }
  .summary-action { width: 100%; justify-content: flex-end; gap: 20px; }
  .summary-action>.button { padding: 7px 10px; font-size: 11px; }
  .eval-settings>div { width: 255px; }
  .matrix-toolbar { padding: 10px; gap: 10px; flex-wrap: wrap; }
  .matrix-toolbar>strong { font-size: 12px; }
  .toolbar-actions { gap: 4px; }
  .toolbar-actions .button { padding: 5px 7px; font-size: 11px; }
  .toolbar-actions .button svg { width: 12px; }
  .toolbar-actions .icon-button { padding: 6px; }
  .toolbar-actions .icon-button svg { width: 14px; }
  .matrix .model-column { width: 165px; min-width: 165px; max-width: 165px; }
  .model-line { padding: 0 7px 0 10px; }
  .model-heading { gap: 7px; }
  .model-heading strong { font-size: 11px; max-width: 114px; }
  .model-heading img { width: 17px; height: 17px; }
  .matrix .probe-column { width: 82px; min-width: 82px; max-width: 82px; }
  .probe-column>div { padding: 0 9px; gap: 4px; }
  .matrix-cell { min-width: 81px; padding: 15px 9px; }
  .matrix-scroll { max-height: calc(100dvh - 242px); min-height: 270px; }
  .matrix-bottom { padding: 10px; }
  .site-footer { padding: 0 4vw 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .form-section, .lab-submit { padding: 20px; }
  .checkbox-label { font-size: 11px; align-items: start; line-height: 1.7; }
  .checkbox-label input { margin-top: 3px; }
  .section-top { flex-wrap: wrap; }
  .result-controls { flex-wrap: wrap; gap: 12px; }
  .results-section { padding: 18px; }
  .accuracy-row>span { width: 130px; }
  .selection-tools, #selection-list { padding-left: 18px; padding-right: 18px; }
  .selection-row { gap: 8px; }
  .selection-row strong { font-size: 11px; }
  .distribution-preview { width: 290px; }
}
@media (pointer: coarse) { .remove-button { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Compact controls preserve the existing neutral palette. */
.range-control { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.range-control output { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.range-control input[type=range] { width: 100%; padding: 0; height: 22px; border: 0; accent-color: #475164; background: transparent; cursor: pointer; }
.probe-budget { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.probe-budget .range-control { width: 190px; flex-shrink: 0; }
.probe-budget .muted { font-size: 11px; }
.probe-presets { display: flex; gap: 6px; }
.probe-presets button { border: 1px solid var(--line); background: transparent; border-radius: 3px; padding: 3px 7px; font-size: 11px; }
.form-section .probe-budget { padding: 0 0 10px; margin-bottom: 10px; flex-wrap: wrap; }
.form-section .probe-budget .range-control { width: 100%; }
.matrix-scroll.overview .probe-column { min-width: 30px; max-width: none; width: auto; }
.matrix-scroll.overview .probe-column>div { gap: 0; padding: 0 2px; }
.matrix-scroll.overview .probe-heading { font-size: 11px; }
.matrix-scroll.overview .probe-column .remove-button { display: none; }
.matrix-scroll.overview .matrix-cell { min-width: 29px; height: 30px; padding: 9px 3px; }
.matrix-scroll.overview .model-column { font-size: 11px; }
.matrix-scroll.overview .model-line { min-height: 30px; }
.matrix-scroll.overview .model-heading img { width: 18px; height: 18px; }
.matrix tbody tr:hover { background: #f5f6f9; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.rejection-controls { padding: 12px 22px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 12px; }
.rejection-controls label { margin: 0; }
.rejection-controls select { width: auto; padding: 4px 8px; margin-left: 6px; }
.rejection-controls details { width: 100%; font-size: 11px; color: #475164; }
.rejection-controls p { line-height: 1.6; }
.decision-note { margin: 12px 0; padding: 10px 12px; background: #f5f6f9; border-left: 2px solid #667085; font-size: 12px; }
.decision-note.rejected { background: #faf5ee; border-color: #a37c4a; }
.decision-note details { margin-top: 5px; }
.ranking-caption { font-size: 11px; color: #475164; margin-bottom: 8px; }
.evidence { padding: 12px 0; font-size: 11px; }
.evidence>div { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.evidence>div>span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.evidence img { width: 17px; height: 17px; }
.lab-layout { grid-template-columns: 1fr 1fr; }
@media(max-width:750px) {
  .lab-layout { grid-template-columns: 1fr; }
  .probe-budget { flex-wrap: wrap; gap: 8px; }
  .probe-budget .range-control { width: 100%; }
  .matrix-toolbar { flex-wrap: wrap; }
}
.matrix-scroll.overview .matrix { width: 100%; min-width: calc(var(--model-width, 194px) + var(--probe-count) * 30px + 26px); }
.matrix-scroll.overview .matrix .model-column { width: 180px; min-width: 180px; max-width: 180px; }
.matrix-scroll.overview .model-heading { padding: 6px 0; }
.matrix-scroll.overview .matrix td { height: 30px; }
.matrix-scroll.overview .probe-heading .mono { font-size: 11px; }
.matrix-scroll.overview .stack { gap: 0; }
.matrix-scroll.overview .stack>span { min-width: 0; }
.matrix-scroll.overview .matrix .add-column { width: 26px; min-width: 26px; }
.matrix-scroll { max-height: calc(100dvh - 320px); }
.form-section label.range-control { display: flex; flex-direction: row; text-align: left; }
.form-section label.range-control input[type=range] { flex-basis: 100%; }
/* Visual system: neutral surfaces, indigo reserved for interactive emphasis. */
:root { background: #f7f8fb; color: #202532; --ink: #202532; --muted: #667085; --line: #e4e7ee; }
button, a, input, select, summary { transition: background-color .15s, border-color .15s, color .15s; }
input, select, textarea { border-color: #d4d9e2; border-radius: 6px; font-size: 13px; }
input:not([type=checkbox]):not([type=range]), select { min-height: 38px; }
input::placeholder { color: #8a93a3; }
input:hover, select:hover, textarea:hover { border-color: #aeb7c6; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline-color: var(--accent); }
.button { min-height: 36px; padding: 8px 13px; font-size: 13px; font-weight: 500; border-radius: 6px; border-color: #d4d9e2; }
.button:hover { background: #f5f6fa; border-color: #aeb7c6; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.small { min-height: 30px; padding: 5px 10px; font-size: 12px; }
.text-button, .detail-links button, .data-note a { color: var(--accent); }
.icon-button { min-width: 32px; min-height: 32px; color: #667085; }
.site-header { height: 68px; gap: 48px; background: #fff; }
.brand strong { font-size: 20px; letter-spacing: -.6px; }
.brand-mark { color: var(--accent); }
.nav-tab { font-size: 13px; color: #667085; font-weight: 500; }
.nav-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
main { padding-top: 28px; }
.summary-strip { margin-bottom: 20px; gap: 16px 24px; }
.summary-item strong { font-size: 22px; letter-spacing: -.6px; }
.selection-counts, .summary-item { font-size: 13px; }
.status-note, .eval-settings>summary, .summary-item .text-button { font-size: 12px; }
.matrix-panel, .detail-panel, .lab-config, .lab-output { border-radius: var(--radius); }
.matrix-toolbar { padding: 14px 18px; }
.matrix-toolbar>strong { font-size: 14px; }
.toolbar-actions { gap: 8px; }
.matrix-scroll { scrollbar-color: #c7cdd8 #f7f8fb; }
.matrix th, .matrix td { border-right-color: #f0f1f5; border-bottom-color: #e9ecf2; }
.matrix thead th, .matrix thead .model-column { background: #f8f9fc; color: #667085; }
.matrix-scroll.overview .model-heading strong { font-size: 12px; font-weight: 500; max-width: 155px; }
.matrix-scroll.overview .model-heading { padding: 8px 0; }
.matrix-scroll.overview .matrix td, .matrix-scroll.overview .matrix-cell { height: 34px; }
.matrix-scroll.overview .model-line { padding-left: 16px; }
.matrix-scroll.overview .matrix .model-column { width: 194px; min-width: 194px; max-width: 194px; }
.matrix-scroll.overview .probe-heading .mono { font-size: 10px; color: #667085; }
.matrix-cell.selected { border-color: #a5a0ef; background: var(--accent-soft); }
.matrix-cell:hover, .matrix-cell:focus-visible { background: #eef0ff; }
.matrix-bottom { padding: 12px 18px; font-size: 11px; gap: 10px; }
.color-note { color: #667085; }
.matrix-bottom>button { color: #475164; font-size: 11px; }
.probe-budget { padding: 12px 18px; gap: 16px; background: #fff; }
.probe-budget .range-control { display: grid; grid-template-columns: auto 26px; gap: 6px 12px; width: 210px; font-size: 12px; }
.probe-budget .range-control input { grid-column: 1 / -1; }
.range-control output { font-size: 12px; font-weight: 600; color: #344054; text-align: right; }
.range-control input[type=range] { accent-color: var(--accent); height: 18px; margin: 0; }
.probe-presets { gap: 4px; padding: 3px; background: #f4f5f9; border: 1px solid #e7eaf0; border-radius: 6px; }
.probe-presets button { min-width: 30px; border: 0; padding: 3px 6px; font-size: 12px; border-radius: 4px; color: #475164; }
.probe-presets button:hover { background: #fff; color: var(--accent); }
.page-heading { margin-bottom: 20px; }
.page-heading h1 { font-size: 24px; letter-spacing: -.65px; }
.lab-layout { gap: 24px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.lab-modes button { padding: 15px 24px; color: #667085; }
.lab-modes button.active { background: #fff; color: var(--accent); border-bottom-color: var(--accent); }
.lab-modes strong { font-size: 13px; font-weight: 600; }
.form-section { padding: 24px; }
.form-section h3 { font-size: 14px; margin-bottom: 18px; }
.form-section label:not(.checkbox-label) { font-size: 12px; color: #475164; gap: 7px; }
.form-section input, .form-section textarea, .candidate-button { font-size: 13px; }
.form-grid { gap: 16px; margin-top: 16px; }
.connection-notes, .request-settings, .ranking-notes { font-size: 12px; color: #667085; margin-top: 14px; }
.form-section .probe-budget { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; padding: 0; margin-bottom: 16px; border: 0; }
.form-section .probe-budget label.range-control { display: grid; grid-template-columns: auto 26px; grid-column: 1 / -1; width: 100%; }
.form-section .probe-budget .muted { font-size: 11px; }
.probe-chips { gap: 6px; }
.probe-chips>button { background: #fff; border-color: #e0e4ec; color: #475164; font-size: 11px; padding: 5px 8px; border-radius: 5px; }
.probe-chips>button:hover { color: var(--accent); border-color: #aaa5f0; background: #f7f7ff; }
.form-section>label.range-control { display: grid; grid-template-columns: auto 26px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef0f4; }
.form-section>label.range-control input { grid-column: 1 / -1; }
.request-budget { padding-top: 16px; font-size: 12px; }
.request-budget strong { color: #344054; font-size: 14px; }
.lab-submit { padding: 18px 24px; gap: 10px; background: #fafbfc; }
.lab-submit>span { font-size: 11px; color: #667085; }
.output-header { padding: 17px 24px; font-size: 14px; min-height: 54px; }
.output-header strong { font-weight: 600; }
.rejection-controls { padding: 16px 24px; gap: 10px 20px; background: #fafbfc; }
.rejection-controls .checkbox-label { font-size: 12px; color: #475164; }
.rejection-controls>label:nth-child(2) { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #667085; }
.rejection-controls select { min-height: 30px; font-size: 12px; margin: 0; }
.lab-empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 200px; padding: 24px; color: #667085; font-size: 13px; }
.lab-empty .text-button { font-size: 13px; }
.request-log { padding: 16px 24px; color: #667085; font-size: 12px; background: #fafbfc; }
.session-progress { padding: 24px; }
.session-progress strong { font-size: 26px; font-weight: 600; letter-spacing: -.6px; }
.session-progress small { font-size: 11px; line-height: 1.7; color: #667085; }
.progress-track i, .eval-progress span { background: var(--accent); }
.decision-note { margin: 0 24px 20px; border: 1px solid var(--line); border-left-width: 2px; border-radius: 5px; background: #fafbfc; color: #475164; }
.ranking { padding: 0 24px 24px; }
.ranking-row { gap: 12px; padding: 14px 10px; }
.ranking-row>div { min-width: 0; }
.ranking-row>div>strong { font-size: 13px; }
.ranking-row>strong { font-size: 14px; }
.ranking-row.winner { background: #f7f7ff; border: 1px solid #e4e3fa; border-left: 3px solid var(--accent); border-radius: 6px; }
.accuracy-track i { background: #9b9cae; }
.ranking-row.winner .accuracy-track i { background: var(--accent); }
.session-distributions, .session-actions { padding-left: 24px; padding-right: 24px; }
.session-distributions summary { font-size: 12px; color: #475164; }
.detail-panel { padding: 20px; }
.question-full { font-size: 13px; color: #475164; }
.option-row>div:first-child { font-size: 12px; }
.option-row strong { color: #475164; }
.distribution-preview { padding: 16px; border-color: #d4d9e2; box-shadow: 0 8px 28px #20253216; }
.distribution-preview p { color: #475164; font-size: 12px; }
.distribution-preview>small { color: #667085; }
.selection-row strong { font-size: 13px; }
.selection-row small { color: #667085; font-size: 12px; }
.selection-tools { color: var(--accent); font-size: 12px; }
.search-input { font-size: 13px; background: #fff; }
.site-footer { font-size: 11px; color: #667085; }
@media(max-width:900px) { .rejection-controls>label:nth-child(2) { flex-wrap: wrap; } }
@media(max-width:750px) {
  .lab-layout { grid-template-columns: minmax(0,1fr); }
  .probe-budget { flex-wrap: wrap; }
  .probe-budget .range-control { width: 100%; }
  .matrix-toolbar { flex-wrap: wrap; gap: 10px; }
  .form-section, .lab-submit, .output-header, .rejection-controls, .session-progress, .request-log { padding-left: 20px; padding-right: 20px; }
}
@media(max-width:550px) {
  .site-header { height: 60px; gap: 22px; }
  .nav-tab { font-size: 11px; }
  .site-header nav { gap: 16px; }
  main { padding-top: 20px; }
  .summary-item { font-size: 12px; }
  .summary-item strong { font-size: 20px; }
  .selection-counts { font-size: 12px; }
  .toolbar-actions .button { font-size: 11px; min-height: 30px; }
  .matrix-scroll.overview .matrix { --model-width: 168px; }
  .matrix-scroll.overview .matrix .model-column { width: 168px; min-width: 168px; max-width: 168px; }
  .matrix-scroll.overview .model-heading strong { font-size: 11px; max-width: 120px; }
  .form-section .probe-budget { gap: 10px; }
  .lab-modes button { padding-left: 20px; padding-right: 16px; }
  .ranking-row { gap: 8px; }
  .ranking-row>div>strong { font-size: 12px; }
}

.brand-mark img { display: block; }
.text-button[data-action="replay"] { display: inline-flex; align-items: center; gap: 7px; }
.request-log summary svg { vertical-align: -2px; margin-right: 4px; }

/* Consistent alignment and quiet emphasis for the current task. */
.ranking-row {
  display: grid;
  grid-template-columns: 22px 22px minmax(0, 1fr) 76px;
  column-gap: 12px;
  padding: 14px 10px;
  border: 1px solid transparent;
  border-left-width: 3px;
  border-bottom-color: var(--line);
}
.ranking-row .rank-number { text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.ranking-row img { width: 20px; height: 20px; justify-self: center; }
.ranking-row>strong { text-align: right; white-space: nowrap; font-family: inherit; font-variant-numeric: tabular-nums; }
.ranking-row>div>strong { overflow-wrap: anywhere; line-height: 1.4; margin-bottom: 7px; }
.ranking-row.winner>strong { color: var(--accent); font-weight: 600; }
.ranking-row:last-of-type:not(.winner) { border-bottom-color: transparent; }
.matrix thead th.axis-selected { background: var(--accent-soft); box-shadow: inset 0 -2px var(--accent); }
.matrix-scroll.overview .axis-selected .probe-heading .mono { color: var(--accent); font-weight: 600; }
.matrix tbody tr>.model-column.axis-selected { background: #f3f3ff; box-shadow: inset 3px 0 var(--accent); }
.matrix .model-column.axis-selected .model-heading strong { color: var(--accent); font-weight: 600; }
.matrix-cell.selected, .matrix-cell.selected:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px #a5a0ef; }
.form-section h3 { margin-bottom: 20px; }
.form-section .section-top { margin-bottom: 20px; }
.form-section label:not(.checkbox-label) { gap: 8px; }
.form-section .form-grid { gap: 16px; margin-top: 20px; }
.candidate-button { min-height: 38px; padding: 9px 11px; }
.form-section .connection-notes { margin-top: 16px; }
.form-section .request-settings { margin-top: 12px; }
.form-section>.checkbox-label { margin-top: 16px; line-height: 1.5; align-items: flex-start; }
.form-section>.checkbox-label input { margin-top: 2px; }
.form-section>label.range-control { margin-top: 24px; padding-top: 20px; }
.request-budget { padding-top: 20px; }
.button.primary { box-shadow: 0 1px 2px #20253212, inset 0 1px #ffffff18; }
.button:not(.primary) { border-color: #e0e4ec; color: #475164; }
.button:not(.primary):hover { border-color: #bdc5d2; background: #f8f9fc; color: var(--ink); }
.button[data-action="reset-live"], .button[data-action="cancel-live"] { background: transparent; border-color: transparent; box-shadow: none; }
.button[data-action="reset-live"]:hover, .button[data-action="cancel-live"]:hover { background: #eef0f5; border-color: transparent; }
.button:disabled { box-shadow: none; }
@media(max-width:550px) {
  .ranking-row { grid-template-columns: 18px 20px minmax(0,1fr) 64px; column-gap: 8px; padding-left: 6px; padding-right: 6px; }
  .ranking-row>strong { font-size: 13px; }
}
