:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --surface: #fffefa;
  --ink: #192b31;
  --muted: #526366;
  --faint: #eae9e1;
  --line: #d9dbd1;
  --teal: #155f57;
  --teal-dark: #124b46;
  --teal-wash: #e6f1eb;
  --amber: #87551e;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; font-size: 15px; line-height: 1.45; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { opacity: .45; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible, video:focus-visible, .action-list:focus-visible {
  outline: 3px solid #258078;
  outline-offset: 3px;
}
button, select, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--teal); text-underline-offset: .16em; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { border: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.shell { width: min(100%, 1780px); margin-inline: auto; padding-inline: clamp(18px, 2vw, 34px); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .65rem .9rem; background: var(--surface); }
.skip-link:focus { top: .4rem; }
.masthead { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); background: #fcfbf6; }
.masthead-inner, .identity, .set-identifier, .case-actions, .button, .section-heading, .camera-label, .archive-footer { display: flex; align-items: center; }
.masthead-inner { min-height: 67px; justify-content: space-between; gap: 1rem; }
.identity { gap: 10px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: #142e34; color: #fffefa; border-radius: 8px; }
.brand-mark svg { width: 32px; height: 32px; }
.brand-name { font-size: 23px; font-weight: 710; letter-spacing: -.065em; line-height: 1; }
.masthead-divider { width: 1px; height: 20px; margin-inline: 7px; background: #cdd1c8; }
.archive-name { color: var(--muted); font-size: 13px; font-weight: 540; }
.set-identifier { gap: 9px; font-size: 12px; color: var(--muted); }
.set-identifier code { padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; font: 11.5px/1.4 var(--mono); color: var(--ink); }
.case-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.3rem; padding-block: 32px 24px; }
.case-heading { min-width: 0; }
.eyebrow, .label, .selector-field > label, .camera-label { font-size: 10.5px; font-weight: 690; line-height: 1.3; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--teal); }
.index-rule { display: block; width: 21px; height: 2px; background: var(--teal); }
h1 { font: 500 clamp(38px, 4.35vw, 64px)/1.04 var(--serif); letter-spacing: -.045em; margin-top: 9px; overflow-wrap: anywhere; }
.case-meta, .video-caption, .event-position, .action-count { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.case-meta { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.case-meta:empty, .video-caption:empty, .timing-note:empty, .outcome:empty, .event-detail:empty { display: none; }
.case-actions { gap: 9px; padding-bottom: 2px; flex: none; }
.button { justify-content: center; gap: 8px; min-height: 39px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.secondary-button { background: var(--surface); color: var(--ink); }
.secondary-button:hover { background: var(--faint); border-color: #b7c1b7; }
.compare-button { background: var(--teal-dark); border-color: var(--teal-dark); color: white; }
.compare-button:hover { background: #0d3d38; }
.compare-button[aria-expanded="true"] { background: var(--teal-wash); color: var(--teal-dark); border-color: #8eb8a8; }
.selector-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 18px; padding: 13px 0; border-block: 1px solid var(--line); }
.selector-field { flex: 0 1 270px; min-width: 0; }
.compare-selector { display: none; }
.is-comparing .compare-selector { display: block; }
.selector-field > label, .label { display: block; color: var(--muted); }
.select-wrap { position: relative; min-width: 0; }
select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 39px; text-overflow: ellipsis; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 14px; font-weight: 550; cursor: pointer; }
.select-wrap .select-chevron { position: absolute; pointer-events: none; width: 14px; height: 14px; right: 10px; top: 50%; color: var(--muted); transform: translateY(-50%); }
.selector-field > .select-wrap { margin-top: 5px; }
.select-wrap:hover select { border-color: #acb8ae; }
.step-buttons { display: flex; align-items: stretch; flex: none; }
.case-pager { align-self: end; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pager-button { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 8px; min-height: 39px; background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: 580; }
.pager-button:not(:disabled):hover { border-color: var(--line); background: var(--surface); color: var(--teal-dark); }
.pager-button .icon { width: 14px; height: 14px; }
.icon-button { display: grid; place-items: center; min-width: 34px; min-height: 32px; padding: 5px; background: var(--surface); border: 1px solid var(--line); }
.icon-button:first-child { border-radius: 5px 0 0 5px; }
.icon-button:last-child { border-radius: 0 5px 5px 0; border-left: 0; }
.icon-button:not(:disabled):hover { color: var(--teal-dark); background: var(--teal-wash); }
.icon-button .icon { width: 15px; height: 15px; }
.load-status { margin-top: 16px; padding: 10px 14px; border: 1px solid #d8d2b9; border-radius: 5px; background: #fffbed; color: #624f2e; font-size: 14px; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(300px, 1fr); gap: clamp(12px, 1.55vw, 24px); align-items: start; margin-top: 22px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.primary-pane { overflow: hidden; }
.player-header, .trace-header, .event-navigation, .camera-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-header { min-height: 85px; padding: 15px clamp(14px, 1.65vw, 25px); }
.player-heading { min-width: 0; }
h2 { font-weight: 650; letter-spacing: -.035em; line-height: 1.18; }
.player-header h2 { margin-top: 3px; font-size: clamp(20px, 1.8vw, 29px); overflow-wrap: anywhere; }
.result-data { display: flex; align-items: center; gap: clamp(8px, 1vw, 16px); flex: none; }
.score-data { text-align: right; }
.score-data strong { display: block; margin-top: 3px; font: 600 15px/1.2 var(--mono); color: var(--ink); white-space: nowrap; }
.outcome { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 5px; background: var(--faint); font-size: 11px; font-weight: 650; line-height: 1.4; }
.outcome::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.outcome[data-state="success"] { color: var(--teal-dark); background: var(--teal-wash); }
.outcome[data-state="failure"], .outcome[data-state="unsuccessful"] { color: #80491f; background: #f6ead9; }
.video-stage { position: relative; display: grid; place-items: center; min-width: 0; background: #152126; }
.video-stage video { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 58vh; min-height: 170px; background: #152126; object-fit: contain; }
.video-stage video:fullscreen { width: 100%; height: 100%; max-height: none; background: #000; }
.media-status { position: absolute; inset-inline: 8%; top: 44%; transform: translateY(-50%); z-index: 1; margin: 0; padding: .65rem; border-radius: 5px; color: white; background: #152126ed; font-size: 14px; text-align: center; pointer-events: none; }
.camera-controls { justify-content: flex-start; flex-wrap: wrap; padding: 14px clamp(14px, 1.65vw, 25px) 12px; column-gap: 15px; }
.camera-label { gap: 6px; color: var(--muted); }
.camera-label .icon { width: 16px; height: 16px; }
.camera-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.camera-tab, .camera-tabs button { min-height: 32px; padding: 5px 10px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; }
.camera-tabs button:hover { color: var(--teal-dark); border-color: #a9b8ae; }
.camera-tabs button[aria-pressed="true"], .camera-tab.is-active { color: var(--teal-dark); border-color: #a7c7b7; background: var(--teal-wash); }
.video-caption { padding: 0 clamp(14px, 1.65vw, 25px) 13px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.record-warnings { padding: 11px clamp(14px, 1.65vw, 25px); border-top: 1px solid #e3d8be; background: #fbf4e6; color: #704d22; font-size: 12px; }
.record-warnings ul { margin: 0; padding-left: 17px; }
.trace-pane { overflow: hidden; }
.trace-header { padding: 17px 17px 12px; }
.section-heading { gap: 8px; }
.section-heading h2 { font-size: 20px; }
.section-heading .section-icon { width: 20px; height: 20px; color: var(--teal); }
.action-count { font-size: 11px; color: var(--muted); text-align: right; }
.timing-note { padding: 0 17px 13px; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.action-list { overflow: auto; max-height: clamp(188px, 31vh, 340px); overscroll-behavior: contain; border-block: 1px solid var(--line); scrollbar-color: #b4c1ba transparent; scrollbar-width: thin; }
.action-row { position: relative; display: grid; grid-template-columns: minmax(25px, auto) minmax(0, 1fr) auto; align-items: center; width: 100%; min-height: 51px; padding: 8px 13px; gap: 9px; background: transparent; color: var(--ink); border-bottom: 1px solid var(--faint); text-align: left; }
.action-row:last-child { border-bottom: 0; }
.action-row:hover { background: #f2f4ed; }
.action-row[aria-current="true"], .action-row.is-active, .action-row[aria-selected="true"] { background: var(--teal-wash); box-shadow: inset 3px 0 var(--teal); }
.action-row:focus-visible { outline-offset: -3px; }
.action-index { align-self: start; padding-top: 2px; color: var(--muted); font: 11px/1.4 var(--mono); }
.action-body { display: grid; gap: 2px; min-width: 0; }
.action-name { font: 600 12.5px/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.action-meta { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.action-status { max-width: 12ch; color: var(--muted); font-size: 10.5px; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
.action-row[aria-current="true"] .action-index, .action-row[aria-current="true"] .action-name { color: var(--teal-dark); }
.action-status[data-state="executed"] { color: var(--teal); }
.action-status[data-state="rejected"] { color: var(--amber); }
.retry-button { padding: 3px 7px; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; font-size: inherit; pointer-events: auto; }
.event-navigation { min-height: 53px; padding: 8px 16px; gap: 8px; background: #f6f6ef; }
.event-position { color: var(--muted); font-size: 11.5px; }
.event-detail { padding: 15px 17px 17px; border-top: 1px solid var(--line); }
.event-heading { margin: 0 0 9px; font-size: 16px; line-height: 1.35; font-weight: 630; letter-spacing: -.025em; overflow-wrap: anywhere; }
.action-rationale { margin: 12px 0; padding: 0 0 0 11px; border-left: 2px solid var(--teal); }
.action-rationale .label { margin: 0 0 4px; color: var(--teal-dark); }
.action-rationale p { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.action-rationale[data-available="false"] { border-color: var(--line); }
.action-rationale[data-available="false"] p { color: var(--muted); }
.event-fields { margin: 0; font-size: 12px; }
.event-field { display: grid; grid-template-columns: minmax(6.1rem, .87fr) minmax(0, 1.4fr); gap: 9px; padding: 5px 0; border-bottom: 1px solid var(--faint); }
.event-field dt { color: var(--muted); }
.event-field dd { overflow-wrap: anywhere; font-family: var(--mono); font-size: 11.5px; }
.feedback-detail { margin-top: 11px; font-size: 12px; }
.feedback-detail summary { color: var(--teal); font-weight: 600; cursor: pointer; }
.detail-json { overflow: auto; max-height: 230px; margin: 8px 0 0; padding: 10px; border-radius: 4px; font: 11px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; background: #f3f4ed; }
.comparison-pane { overflow: hidden; }
.compare-replay { min-width: 0; }
.compare-toolbar { gap: 12px; }
.compare-replay > .camera-tabs { padding: 12px 17px; }
.compare-toolbar h3, .compare-inspector h3 { font-size: 16px; letter-spacing: -.02em; }
.compare-inspector { border-top: 1px solid var(--line); }
.compare-inspector .trace-header h3 { font-size: 20px; letter-spacing: -.035em; }
.compare-replay > .source-panel { margin: 0 16px; border-bottom: none; }
.compare-replay .source-grid { grid-template-columns: 1fr; }
.workbench:has(#comparison:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workbench:has(#comparison:not([hidden])) .primary-pane { grid-area: 1 / 1; }
.workbench:has(#comparison:not([hidden])) .trace-pane { grid-area: 2 / 1; }
.workbench:has(#comparison:not([hidden])) .comparison-pane { grid-area: 1 / 2 / span 2; }
.source-panel { margin-top: 20px; border-block: 1px solid var(--line); }
.source-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 1px; cursor: pointer; list-style: none; color: var(--muted); font-size: 13px; font-weight: 630; }
.source-panel > summary::-webkit-details-marker { display: none; }
.source-panel > summary:hover { color: var(--teal); }
.source-panel > summary .icon { width: 17px; height: 17px; }
.source-panel[open] .disclosure-icon { transform: rotate(180deg); }
.record-source { padding: 0 1px 20px; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.source-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 25px; margin: 0; padding: 0; }
.source-grid > div { display: block; padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 0; }
.source-grid dt { color: var(--muted); font-size: 11.5px; }
.source-grid dd { margin-top: 3px; font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.archive-footer { justify-content: space-between; gap: 12px; padding-block: 17px 25px; color: var(--muted); font-size: 11.5px; }
.archive-footer > span:first-child span { padding-inline: 4px; color: #90998e; }
.archive-links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; }
.dataset-link { color: var(--teal-dark); font-weight: 650; text-decoration: none; white-space: nowrap; }
.dataset-link:hover, .dataset-link:focus-visible { text-decoration: underline; }
#scope-summary { text-align: right; }

/* The task directory stays available while the replay area scrolls. */
.workspace {
  width: min(100%, 1780px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: clamp(232px, 18.5vw, 282px) minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}
.replay-main { min-width: 0; padding: 0 clamp(20px, 2.3vw, 42px); }
.directory-panel {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-inline-end: 1px solid var(--line);
  background: #f1f2eb;
  color: var(--ink);
}
.directory-header { flex: none; padding: 25px 15px 15px; border-bottom: 1px solid var(--line); }
.directory-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-inline: 4px; }
.directory-heading-row h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.04em; }
.directory-scope { margin: 4px 4px 15px; color: var(--muted); font: 11px/1.4 var(--mono); }
.directory-scope span { margin-inline: 1px; color: #7b8982; }
.directory-filter {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; padding-inline-start: 10px; border: 1px solid #c8cec3;
  border-radius: 6px; background: #fffefa;
}
.directory-filter .icon { width: 15px; height: 15px; color: var(--muted); }
.directory-filter:focus-within { outline: 2px solid #258078; outline-offset: 1px; }
.directory-filter input { width: 100%; min-width: 0; height: 38px; padding: 4px 7px 4px 0; border: 0; border-radius: 5px; outline: none; background: transparent; font-size: 13px; }
.directory-filter input:focus-visible { outline: none; }
.directory-filter input::placeholder { color: #5d6b65; }
.directory-list {
  flex: 1; min-height: 0; padding: 7px 10px 25px;
  overflow: auto; overscroll-behavior: contain;
  scrollbar-color: #b6c0b2 transparent; scrollbar-width: thin;
}
.task-group { border-bottom: 1px solid #e1e3da; }
.task-toggle {
  display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 9px; align-items: center;
  width: 100%; min-height: 40px; padding: 8px 8px; background: transparent; border-radius: 5px;
  text-align: left; font-size: 13px; line-height: 1.36; font-weight: 570;
}
.task-toggle::before {
  content: ""; width: 6px; height: 6px; justify-self: center;
  border: solid #6a7870; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg);
}
.task-toggle[aria-expanded="true"]::before { transform: rotate(45deg) translateY(-1px); }
.task-name { overflow-wrap: anywhere; }
.task-count { min-width: 15px; color: var(--muted); font: 10px/1.45 var(--mono); text-align: center; }
.task-toggle:hover, .case-link:hover { background: #e3e8de; color: var(--teal-dark); }
.task-group:has(.case-link[aria-current="page"]) .task-toggle { color: var(--teal-dark); font-weight: 700; }
.case-children { list-style: none; margin: 1px 1px 7px 13px; padding: 0 0 0 10px; border-left: 1px solid #cfd6c9; }
.case-link {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 6px;
  margin-block: 2px; width: 100%; padding: 7px 8px; min-height: 32px; border-radius: 4px;
  color: #44554e; text-decoration: none; font-size: 12.5px; line-height: 1.35;
}
.case-meta-text { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.case-link[aria-current="page"] { background: #d7e8d9; color: #124d43; box-shadow: inset 2px 0 0 #247462; }
.case-link[aria-current="page"] .case-label { font-weight: 710; }
.case-link[aria-current="page"] .case-meta-text { color: #3e5e50; }
.directory-list :focus-visible { outline-offset: -2px; }
.directory-empty { padding: 16px 10px; color: var(--muted); font-size: 13px; }
.directory-toggle, .directory-close, .directory-backdrop { display: none; }

@media (min-width: 901px) and (max-width: 1220px) {
  .workbench { grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr); gap: 12px; }
  .player-header { gap: 8px; padding-inline: 13px; }
  .player-header h2 { font-size: 21px; }
  .trace-header { padding-inline: 12px; }
  .trace-header h2 { font-size: 17px; }
  .action-count { font-size: 10px; }
  .action-row { padding-inline: 10px; gap: 5px; }
  .result-data { gap: 5px; }
  .case-actions { gap: 6px; }
  .button { padding: 7px 10px; font-size: 12px; }
  .case-header { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
}
@media (min-width: 901px) and (max-width: 1060px) {
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .workbench:has(#comparison:not([hidden])) .result-data { flex-direction: column; align-items: end; }
  .workbench:has(#comparison:not([hidden])) .player-header { min-height: 89px; }
}
@media (max-width: 900px) {
  .workspace { display: block; }
  .masthead { position: static; }
  .replay-main { padding-inline: clamp(14px, 3vw, 26px); }
  .directory-panel {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 12; width: min(330px, calc(100vw - 36px));
    height: 100vh; height: 100dvh; visibility: hidden; transform: translateX(-101%);
    box-shadow: 8px 0 30px #172b311a;
  }
  .directory-open { overflow: hidden; }
  .directory-open .directory-panel { visibility: visible; transform: none; }
  .directory-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 11; width: 100%; height: 100%; background: #15292d69; }
  .directory-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
  .directory-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 16px; padding: 7px 11px; border: 1px solid #adc0b0; border-radius: 5px; background: #e7eee5; color: var(--teal-dark); font-size: 13px; font-weight: 650; }
  .directory-toggle .icon { width: 16px; height: 16px; }
  .task-toggle { min-height: 44px; }
  .case-link { min-height: 40px; align-content: center; }
  .case-header { padding-block: 20px 18px; }
  .case-actions { gap: 6px; }
  .workbench { grid-template-columns: minmax(0, 1.7fr) minmax(245px, 1fr); }
}
@media (max-width: 750px) {
  .workbench, .workbench:has(#comparison:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .workbench:has(#comparison:not([hidden])) .primary-pane { grid-area: auto; }
  .workbench:has(#comparison:not([hidden])) .trace-pane { grid-area: auto; grid-row: 3; }
  .workbench:has(#comparison:not([hidden])) .comparison-pane { grid-area: auto; grid-row: 2; }
  .video-stage video { max-height: 61vh; }
  .action-list { max-height: 300px; }
  .button { padding: 7px 10px; font-size: 12px; }
  .camera-controls { padding-block: 12px; }
}
@media (max-width: 600px) {
  .masthead-inner { min-height: 54px; }
  .identity { gap: 7px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 6px; }
  .brand-mark svg { width: 27px; height: 27px; }
  .brand-name { font-size: 20px; }
  .masthead-divider { margin-inline: 3px; height: 16px; }
  .archive-name { font-size: 12px; }
  .set-identifier > span { display: none; }
  .case-header { display: grid; align-items: start; gap: 12px; padding-block: 16px; }
  h1 { font-size: 39px; margin-top: 6px; }
  .case-meta { margin-top: 6px; font-size: 11px; }
  .case-actions { padding: 0; }
  .button { min-height: 35px; }
  .selector-bar { gap: 8px 12px; padding-block: 10px; }
  .selector-field { flex: 1 1 155px; }
  .selector-field > .select-wrap { margin-top: 3px; }
  .pager-button { min-height: 36px; padding-inline: 3px; font-size: 11.5px; }
  .workbench { margin-top: 14px; gap: 14px; }
  .player-header { min-height: 73px; gap: 8px; padding: 11px 12px; }
  .player-header h2 { font-size: 20px; }
  .result-data { flex-direction: column; align-items: flex-end; gap: 3px; }
  .result-data .score-data { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
  .score-data strong { margin: 0; font-size: 13px; }
  .outcome { padding: 2px 6px; font-size: 10px; }
  .video-stage video { aspect-ratio: 4 / 3; }
  .camera-controls { gap: 7px; padding: 10px 12px 8px; }
  .camera-label { font-size: 9px; letter-spacing: .06em; }
  .camera-label .icon { width: 14px; height: 14px; }
  .camera-tabs { gap: 4px; }
  .camera-tabs button { padding: 4px 7px; min-height: 32px; font-size: 11.5px; }
  .video-caption { padding-inline: 12px; font-size: 10.5px; }
  .source-grid { grid-template-columns: 1fr; }
  .archive-footer { align-items: baseline; flex-direction: column; gap: 3px; }
  #scope-summary { text-align: left; }
}
@media (max-width: 380px) {
  .shell { padding-inline: 12px; }
  .set-identifier code { font-size: 10px; padding: 2px 5px; }
  .camera-label .icon { display: none; }
  .selector-bar select { font-size: 13px; }
  .result-data .score-data { flex-direction: column; align-items: flex-end; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
