:root {
  color-scheme: light;
  --canvas: #f3f6f9;
  --paper: #fff;
  --ink: #15283c;
  --muted: #52657a;
  --dim: #66798d;
  --line: #dce5ed;
  --soft-line: #eaf0f4;
  --teal: #08766d;
  --teal-dark: #075d55;
  --teal-pale: #e9f6f2;
  --mono: "Cascadia Code", Consolas, "Microsoft YaHei", monospace;
  font: 14px/1.5 "Geist", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select, summary, [type=checkbox], [type=radio], [type=range] { cursor: pointer; }
button:disabled, input:disabled { cursor: default; }
:focus-visible { outline: 2px solid #1e9587; outline-offset: 3px; }
button, input, select { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -.045em; line-height: 1.19; font-weight: 740; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -.035em; }
h3 { font-size: 13px; font-weight: 700; }
input[type=checkbox], input[type=radio] { accent-color: var(--teal); width: 15px; height: 15px; margin: 0; flex: none; }
input:not([type=checkbox], [type=radio], [type=range]), select {
  min-width: 0; width: 100%; min-height: 35px; border: 1px solid var(--line);
  border-radius: 7px; background: var(--paper); padding: 6px 10px;
}
input::placeholder { color: var(--dim); opacity: 1; }
select { padding-right: 24px; }
summary { font-size: 12px; color: var(--muted); font-weight: 600; }
summary:hover { color: var(--teal-dark); }
progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 100px; background: #e6edf2; overflow: hidden; }
progress::-webkit-progress-bar { background: #e6edf2; }
progress::-webkit-progress-value { background: var(--teal); border-radius: 100px; transition: width .2s ease; }
progress::-moz-progress-bar { background: var(--teal); border-radius: 100px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.subtle { color: var(--muted); font-size: 12px; }
.inline-error { color: #a31d36; font-size: 12px; overflow-wrap: anywhere; }
.section-line, .button-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.button-row { flex-wrap: wrap; }
.push { margin-left: auto; }

.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { height: 63px; max-width: 1584px; margin: auto; padding: 0 36px; display: flex; align-items: center; gap: 35px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; font-size: 16px; letter-spacing: -.03em; }
.brand strong { font-weight: 740; }
.brand-mark { display: flex; align-items: end; justify-content: center; gap: 3px; width: 34px; height: 34px; padding-bottom: 9px; border-radius: 9px; background: #076960; box-shadow: 0 2px 4px #075d5525; }
.brand-mark i { width: 4px; height: 9px; border-radius: 2px; background: #ddf9ed; }
.brand-mark i:nth-child(2) { height: 16px; background: #fff; }
.brand-mark i:nth-child(3) { height: 12px; background: #99e5d5; }
.brand-product { color: var(--muted); font-size: 12px; letter-spacing: 0; border-left: 1px solid var(--line); padding-left: 10px; }
nav { align-self: stretch; display: flex; align-items: stretch; gap: 24px; }
nav a { display: flex; align-items: center; position: relative; white-space: nowrap; color: var(--muted); font-size: 13px; }
nav a:hover, nav [aria-current=page] { color: var(--teal-dark); }
nav [aria-current=page] { font-weight: 700; }
nav [aria-current=page]::after { position: absolute; content: ""; bottom: 0; left: 0; right: 0; height: 2px; background: var(--teal); border-radius: 4px 4px 0 0; }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.local { display: inline-flex; align-items: center; gap: 7px; color: #356653; font-size: 12px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #26a47a; }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; cursor: pointer; white-space: nowrap; color: var(--muted); }
.toggle input { appearance: none; width: 27px; height: 16px; border-radius: 50px; border: 1px solid #bdcbd7; background: #dee7ef; display: flex; align-items: center; padding: 1px; }
.toggle input::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; display: block; transition: transform .14s ease; }
.toggle input:checked { background: var(--teal); border-color: var(--teal); }
.toggle input:checked::before { transform: translateX(11px); }
.shell { max-width: 1584px; margin: auto; padding: 29px 36px 20px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-title p { color: var(--muted); margin-top: 8px; font-size: 13px; }
.dataset-label { display: flex; align-items: center; gap: 9px; flex: none; padding: 5px 8px 5px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 1px 2px #172b4810; }
.dataset-label select { border: 0; width: auto; min-width: 128px; font-size: 13px; font-weight: 650; padding-left: 2px; }
.dataset-icon { width: 14px; height: 13px; border: 1.5px solid var(--teal); border-top: 0; border-radius: 0 0 50% 50% / 0 0 25% 25%; position: relative; }
.dataset-icon::before, .dataset-icon::after { content: ""; position: absolute; inset: 0 -1.5px auto; height: 6px; border: 1.5px solid var(--teal); border-radius: 50%; background: white; }
.dataset-icon::after { height: 5px; top: 5px; border-top: 0; background: transparent; border-radius: 0 0 50% 50%; }
.overview { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 19px; }
.stat { min-height: 110px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); padding: 13px 16px 12px; display: grid; grid-template-columns: 1fr; align-content: center; box-shadow: 0 1px 2px #172b4808; }
.stat-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-mark { display: inline-grid; width: 24px; height: 24px; place-items: center; background: #eaf2fa; color: #285e8b; border-radius: 6px; font-size: 15px; }
.stat-mark.green { background: #e8f6ee; color: #20724f; }
.stat-mark.lavender { background: #eeedfd; color: #5952a3; }
.stat-mark.amber { background: #fff1dd; color: #8a5b15; }
.stat strong { font-size: 25px; font-weight: 710; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 1px; }
.stat-note { color: var(--dim); font-size: 11px; }
.annotation-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 15px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.annotation-bar p { color: var(--muted); font-size: 12px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(306px, 335px); gap: 18px; align-items: start; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 1px 2px #172b4809; }
.card-head { min-height: 68px; padding: 14px 19px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 6px 11px; border-radius: 7px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 650; font-size: 12px; white-space: nowrap; }
.button:hover:not(:disabled) { background: #f1f7f7; border-color: #b6cec9; }
.button:disabled { color: #576b7e; background: #eaf0f4; border-color: #e0e8ee; opacity: .86; }
.button.primary { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 1px 2px #075d5525; }
.button.primary:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.button.primary:disabled { background: #e5eeed; border-color: #dde8e6; color: #526a69; box-shadow: none; }
.button.quiet { border-color: transparent; background: transparent; color: var(--teal-dark); padding-inline: 4px; }
.button.quiet:disabled { color: var(--dim); }
.button.danger { color: #a7233d; border-color: #ebc4cd; background: #fff5f7; }
.button.danger:hover:not(:disabled) { background: #fde6eb; border-color: #dfacb9; }
.icon-button { display: inline-grid; place-items: center; min-width: 28px; min-height: 28px; padding: 0 5px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 19px; line-height: 1; }
.icon-button:hover:not(:disabled) { border-color: #b6cec9; color: var(--teal-dark); background: var(--teal-pale); }
.icon-button:disabled { opacity: .5; }
.filters { padding: 0 19px 11px; display: grid; gap: 9px; }
.search-row { display: flex; gap: 12px; align-items: center; }
.search { position: relative; flex: 1; min-width: 0; }
.search input { display: block; padding-left: 35px !important; background: #fbfcfd !important; }
.search > span { position: absolute; z-index: 1; top: 11px; left: 12px; width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid #647a8f; }
.search > span::after { position: absolute; bottom: -3px; right: -4px; content: ""; width: 5px; height: 1.6px; transform: rotate(45deg); background: #647a8f; border-radius: 1px; }
.filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.filter-row select { font-size: 12px; }
.more-filters summary { display: flex; align-items: center; gap: 6px; min-height: 22px; width: max-content; }
.more-filters summary::before { content: "›"; font-size: 16px; line-height: 1; margin-right: 2px; }
.more-filters[open] summary::before { transform: rotate(90deg); }
.advanced-grid { margin-top: 8px; }
.small-count { display: inline-flex; align-items: center; gap: 3px; border-radius: 100px; background: #eaf0f5; color: #496079; padding: 2px 7px; min-width: 21px; font-size: 11px; font-weight: 680; font-variant-numeric: tabular-nums; }
.table-wrap { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; text-align: left; width: 100%; }
th { background: #f4f7fa; color: #466075; font-size: 11px; font-weight: 650; white-space: nowrap; }
th, td { padding: 7px 11px; border-top: 1px solid var(--soft-line); }
#case-table { min-width: 690px; }
#case-table td { height: 49px; font-size: 12px; }
#case-table th:first-child, #case-table td:first-child { width: 37px; padding-right: 3px; padding-left: 17px; }
#case-table th:last-child, #case-table td:last-child { padding-right: 15px; }
.sort { display: inline-flex; gap: 4px; align-items: center; border: 0; background: transparent; color: inherit; font-weight: inherit; padding: 3px 0; }
.sort span { color: #7890a4; }
tr.selected td { background: #f0faf6; }
tbody tr:hover td { background: #f4f9fa; }
tbody tr.selected:hover td { background: #e5f5ef; }
.name-button, .text-button { border: 0; background: transparent; padding: 0; font-weight: 690; color: var(--teal-dark); text-align: left; }
.name-button:hover, .text-button:hover { text-decoration: underline; }
.name-button { color: var(--ink); font-size: 13px; }
.micro { display: block; font-size: 11px; color: var(--dim); overflow-wrap: anywhere; margin-top: 1px; }
.case-code { font: 10px/1.4 var(--mono); letter-spacing: -.025em; }
.pill { display: inline-flex; width: max-content; align-items: center; gap: 5px; max-width: 100%; padding: 3px 7px; border-radius: 5px; background: #edf2f6; color: #4a5d73; font-size: 11px; line-height: 1.25; font-weight: 650; }
.pill.tapvc { background: #e7f5f0; color: #196752; }
.pill.aaoca { background: #eaf0fb; color: #31599a; }
.pill.positive, .pill.completed, .pill.success { background: #e7f5ed; color: #206447; }
.pill.running { background: #e1f4f0; color: #086c61; }
.pill.error, .pill.failed { background: #fde9ed; color: #a62842; }
.pill.partial, .pill.cancelled, .pill.interrupted, .pill.stopping { background: #fff0d9; color: #825008; }
.pill.mismatch { background: #fff0d9; color: #825008; }
.bad-outcome { color: #a42d45; }
.empty { color: var(--muted); text-align: center; padding: 38px 20px; }
.table-foot { padding: 11px 16px; border-top: 1px solid var(--soft-line); display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.table-actions, .pagination { display: flex; align-items: center; gap: 8px; }
.pagination { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pagination select { min-height: 28px; padding: 3px 6px; width: auto; font-size: 11px; }
.pagination span { min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }

.settings-card .card-head { border-bottom: 1px solid var(--soft-line); }
.settings-section { display: grid; gap: 9px; padding: 13px 17px; border-bottom: 1px solid var(--soft-line); }
.points-section { background: linear-gradient(140deg, #f3faf7, #fcfefe 64%); }
.axis-entry { justify-content: flex-start; color: var(--teal-dark); min-height: 34px; align-self: start; }
.axis-entry > span:first-child { font-size: 16px; }
.point-sampling { display: flex; align-items: end; flex-wrap: wrap; gap: 6px; }
.point-sampling label { display: grid; gap: 4px; min-width: 0; flex: 1; font-size: 11px; color: var(--muted); }
.point-sampling input { width: 100%; min-width: 70px; }
.chosen-details summary { color: var(--muted); margin-bottom: 5px; }
#chosen-list { max-height: 154px; overflow: auto; }
.chosen-item { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 4px 1px; font-size: 12px; }
.chosen-item button:nth-last-child(1) { font-size: 15px; }
.variants { display: grid; grid-template-columns: 1fr; gap: 6px; }
.variant { display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); padding: 7px 9px; border-radius: 7px; cursor: pointer; }
.variant:has(:checked) { border-color: #b6d9d1; background: #f4fbf8; }
.variant strong { display: block; font-size: 12px; }
.variant small { display: block; color: var(--muted); font-size: 11px; }
.mode-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid var(--soft-line); background: #edf3f7; border-radius: 8px; }
.mode-switch label { position: relative; display: block; min-width: 0; }
.mode-switch input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.mode-switch span { display: block; padding: 6px 1px; border-radius: 5px; text-align: center; font-size: 11px; cursor: pointer; white-space: nowrap; }
.mode-switch :checked + span { background: white; color: var(--teal-dark); font-weight: 700; box-shadow: 0 1px 2px #132f4120; }
.mode-switch :focus-visible + span { outline: 2px solid var(--teal); }
.mode-switch :disabled + span { color: var(--dim); opacity: .65; cursor: default; }
.mode-detail { min-height: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.form-grid label { display: grid; gap: 5px; align-content: start; font-size: 12px; color: var(--muted); }
.form-grid .span-all { grid-column: 1 / -1; }
.check-row, .form-grid .check-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.option-group > div, .option-group > label { margin-top: 10px; }
.settings-footer { padding: 12px 17px 16px; display: grid; gap: 8px; }
.start { width: 100%; height: 39px; font-size: 13px; }
.footnote { display: flex; justify-content: center; gap: 9px; color: var(--dim); font-size: 11px; padding-top: 19px; }

dialog { width: min(480px, calc(100vw - 28px)); max-height: calc(100dvh - 30px); border: 1px solid var(--line); border-radius: 13px; padding: 0; color: var(--ink); box-shadow: 0 18px 70px #122b4757; overflow: auto; }
dialog::backdrop { background: #172f465e; }
.dialog-head, .dialog-footer { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 15px 19px; }
.dialog-head { border-bottom: 1px solid var(--line); }
.dialog-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dialog-body { padding: 17px 19px; }
.dialog-footer { border-top: 1px solid var(--line); justify-content: flex-end; background: #f8fafc; }
.axis-dialog { width: min(800px, calc(100vw - 28px)); }
.case-kicker { color: var(--teal-dark); font-size: 12px; font-weight: 680; margin-bottom: 2px; }
.axis-chart { padding: 12px 13px; background: #f2f8f8; border: 1px solid #d8e9e8; border-radius: 9px; }
.axis-current { margin-top: 4px; color: var(--teal-dark); font-size: 19px; font-variant-numeric: tabular-nums; font-weight: 700; }
.rail { position: relative; margin-top: 7px; display: grid; }
.rail input { position: relative; z-index: 1; width: 100%; height: 22px; margin: 0; accent-color: var(--teal); background: transparent; }
.rail-ticks { position: relative; margin: 1px 9px 4px; height: 9px; }
.rail-ticks i { position: absolute; height: 6px; width: 2px; border-radius: 4px; background: #548e86; }
.rail-ticks .selected-mark { height: 9px; top: -1px; width: 4px; border-radius: 3px; background: var(--teal-dark); }
.axis-range { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.axis-layout { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: 1.3fr 1fr; }
.axis-selection { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; min-height: 98px; }
.axis-actions { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.axis-chips { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.axis-chip { display: inline-flex; align-items: center; padding: 3px 4px 3px 7px; gap: 5px; border-radius: 6px; color: var(--teal-dark); background: var(--teal-pale); font-size: 11px; }
.axis-chip button { background: transparent; border: 0; margin: 0; padding: 0 2px; font-size: 15px; line-height: 1; }
.axis-error { margin-top: 5px; }
.axis-markers, .case-details { margin-top: 12px; border-top: 1px solid var(--soft-line); padding-top: 9px; }
.marker-list { display: grid; gap: 4px; max-height: 174px; overflow: auto; margin-top: 6px; }
.marker { display: flex; gap: 9px; text-align: left; border: 0; background: #f5f8fa; border-radius: 6px; padding: 5px 8px; font-size: 12px; }
.marker:hover { background: var(--teal-pale); }
.marker strong { font-variant-numeric: tabular-nums; }
.marker span { color: var(--muted); }
.case-details dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px 10px; margin-bottom: 0; font-size: 12px; }
.case-details dl > div { padding: 4px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--soft-line); }
.case-details dt { color: var(--muted); }
.case-details dd { margin: 0; text-align: right; }

.history-card td { padding: 12px 17px; }
.history-card th { padding: 8px 17px; }
.back-link { color: var(--teal-dark); font-weight: 650; font-size: 12px; display: inline-block; margin-bottom: 7px; }
.run-title h1 { display: flex; gap: 10px; align-items: center; }
.run-progress { padding: 12px 15px; margin-bottom: 16px; display: grid; gap: 7px; }
.run-grid { display: grid; grid-template-columns: minmax(220px, 287px) minmax(0, 1fr); gap: 16px; align-items: start; }
.queue .card-head { padding: 12px 14px; min-height: 56px; }
.queue-search { display: grid; gap: 6px; padding: 0 13px 10px; }
#job-list { max-height: 65vh; overflow: auto; padding: 0 9px 9px; }
.job { display: grid; width: 100%; background: #fff; border: 1px solid transparent; text-align: left; gap: 3px; border-radius: 8px; padding: 8px 9px; }
.job:hover { background: #f4f8fa; }
.job.current { background: #eaf6f3; border-color: #bdddd4; }
.job > span:first-child { display: flex; align-items: center; gap: 6px; justify-content: space-between; min-width: 0; }
.job strong { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.job small { color: var(--muted); font-size: 11px; }
.trace-header { display: flex; justify-content: space-between; gap: 7px; padding: 0 15px; border-bottom: 1px solid var(--line); min-height: 49px; }
.tabs { display: flex; align-items: stretch; gap: 13px; }
.tabs button { font-weight: 650; font-size: 13px; border: 0; background: transparent; color: var(--muted); padding: 0 2px; border-bottom: 2px solid transparent; }
.tabs button[aria-selected=true] { border-color: var(--teal); color: var(--teal-dark); }
.trace-context { padding: 12px 15px; border-bottom: 1px solid var(--soft-line); background: #fcfdfe; }
.trace-context strong { font-size: 13px; }
.trace-log { padding: 14px 18px; min-height: 200px; max-height: min(70vh, 825px); overflow-y: auto; display: grid; align-content: start; gap: 10px; }
.trace-event, .exchange, .report { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-width: 0; }
.trace-event { display: flex; align-items: start; gap: 10px; background: #f8fafc; font-size: 12px; }
.trace-event strong { font-size: 12px; }
.trace-event p { color: var(--muted); margin-top: 2px; }
.agent-mark { flex: none; display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; color: var(--teal-dark); background: #e6f3ee; font-weight: 680; font-size: 11px; }
.exchange-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 7px; }
.exchange-head strong { font-size: 13px; }
.exchange-head small { margin-left: 6px; color: var(--dim); font-size: 11px; }
.exchange details { margin-top: 6px; border-radius: 7px; border: 1px solid var(--soft-line); padding: 5px 8px; }
.exchange details[open] { background: #fbfcfe; }
pre { margin: 5px 0 0; border-radius: 7px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 var(--mono); max-height: 270px; overflow: auto; }
.response-text { background: #14283a; color: #e1eef5; min-height: 37px; }
.prompt-text { background: #eef3f7; color: var(--ink); }
.exchange details strong { font-size: 11px; display: inline-block; margin-top: 4px; color: var(--muted); }
.exchange details img, .exchange details audio { display: block; max-width: 100%; max-height: 280px; margin: 8px 0; }
.exchange .button { min-height: 24px; padding: 2px 7px; margin: 4px 0; font-size: 11px; }
.exchange-foot { display: flex; justify-content: space-between; gap: 7px; align-items: center; }
.report { background: #f5faf8; }
.report h3 { margin-bottom: 6px; }
.report dl { margin: 0; display: grid; gap: 6px; }
.report dt { color: var(--muted); font-size: 11px; }
.report dd { margin: 1px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.evaluation-review { margin: 9px 0 13px; padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.evaluation-review.evaluation-mismatch { border-color: #e9c993; background: #fffbf4; }
.evaluation-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.evaluation-heading h4 { margin: 0; font-size: 13px; }
.evaluation-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 7px; margin-block: 8px; }
.evaluation-side { min-width: 0; padding: 8px 9px; background: #fff; border: 1px solid var(--soft-line); border-radius: 6px; }
.evaluation-side h5 { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 650; }
.evaluation-side strong { font-size: 14px; }
.evaluation-side p { margin: 2px 0; color: var(--muted); font-size: 12px; }
.evaluation-explanation { margin: 4px 0; font-size: 12px; }
.cited-evidence { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--soft-line); }
.cited-evidence summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.cited-note { margin-top: 6px; padding: 5px 7px; border: 1px solid var(--soft-line); border-radius: 6px; background: #fff; }
.run-cohorts { margin-top: 15px; }
#result-pane { padding: 14px 15px; }
#result-pane .table-wrap { margin-top: 9px; border: 1px solid var(--line); border-radius: 7px; }
#result-pane table { min-width: 530px; }
.cohort-result { margin-block: 16px; }
.cohort-result h4 { margin: 8px 0 0; }
.cohort-result details { margin-top: 8px; }
.cohort-result summary { cursor: pointer; }
.result-run-note { font-size: 12px; color: var(--muted); margin: 5px 0; }
.toast { position: fixed; inset: auto 17px 17px auto; z-index: 4; padding: 8px 12px; max-width: min(440px, calc(100vw - 34px)); border-radius: 8px; background: #18374b; color: white; box-shadow: 0 4px 16px #132d4839; font-size: 12px; }

@media (max-width: 1150px) {
  .top-inner, .shell { padding-inline: 22px; }
  .work-grid { grid-template-columns: minmax(0, 1fr) 292px; gap: 13px; }
  .card-head, .filters { padding-inline: 13px; }
  #case-table th, #case-table td { padding-inline: 8px; }
  #case-table { min-width: 655px; }
}
@media (max-width: 975px) {
  .work-grid { grid-template-columns: minmax(0,1fr); }
  .settings-card { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .settings-card .card-head, .settings-footer { grid-column: 1 / -1; }
  .settings-section { align-content: start; }
  .settings-section + .settings-section { border-left: 1px solid var(--soft-line); }
  .start { width: min(280px,100%); }
}
@media (max-width: 720px) {
  .top-inner { padding-inline: 12px; gap: 12px; height: 57px; }
  .brand { gap: 5px; font-size: 13px; }
  .brand-mark { width: 27px; height: 27px; padding-bottom: 6px; }
  .brand-product, .local { display: none; }
  nav { gap: 10px; }
  nav a { font-size: 11px; }
  .top-tools { gap: 0; }
  .toggle { font-size: 11px; }
  .shell { padding: 17px 12px 15px; }
  .page-title { flex-wrap: wrap; margin-bottom: 14px; }
  .page-title p { font-size: 12px; line-height: 1.45; }
  .overview { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-bottom: 12px; }
  .stat { min-height: 84px; padding: 7px 9px; }
  .stat strong { font-size: 21px; }
  .filter-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .table-foot { flex-wrap: wrap; }
  .settings-card { grid-template-columns: minmax(0,1fr); }
  .settings-section + .settings-section { border-left: 0; }
  .start { width: 100%; }
  .run-grid { grid-template-columns: minmax(0,1fr); }
  #job-list { max-height: 165px; }
  .axis-layout, .case-details dl { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
