:root {
  color-scheme: light;
  --ink: #15231d;
  --text: #25312c;
  --muted: #66746d;
  --line: #d5ddd8;
  --line-strong: #aebbb4;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --blue: #0878a5;
  --blue-dark: #075a7b;
  --blue-soft: #e9f5f9;
  --green: #148057;
  --green-soft: #e8f5ef;
  --red: #b52d2d;
  --amber: #b16a00;
  --radius: 4px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 300px; background: var(--paper); color: var(--text); }
body { margin: 0; min-width: 300px; background: var(--paper); }
body.replay-open { overflow: hidden; }
#app:focus { outline: none; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; letter-spacing: 0; }
h1 { margin-bottom: 0; color: var(--ink); font-size: 34px; line-height: 1.18; }
h2 { margin-bottom: 0; color: var(--ink); font-size: 21px; line-height: 1.32; }
h3 { margin-bottom: 0; color: var(--ink); }

.app-header {
  height: 72px;
  padding: 0 max(28px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, .98);
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius); background: var(--blue); color: white; font-size: 12px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.app-header nav { display: flex; align-items: stretch; align-self: stretch; }
.nav-button { min-width: 96px; padding: 0 17px; border: 0; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: transparent; text-decoration: none; font-weight: 650; }
.nav-button:hover, .nav-button.active { color: var(--blue); border-bottom-color: var(--blue); }
.company-logo { width: 168px; height: 52px; justify-self: end; object-fit: contain; object-position: right center; }

.page { width: min(1200px, calc(100% - 56px)); margin: 0 auto; padding: 38px 0 70px; }
.page-narrow { width: min(1000px, calc(100% - 56px)); }
.page-head { min-height: 58px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-head p { margin: 7px 0 0; color: var(--muted); }
.section { margin-top: 42px; }
.section-head { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.primary-button, .secondary-button, .danger-button, .icon-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: color 140ms, background-color 140ms, border-color 140ms;
}
.primary-button { border-color: var(--blue); background: var(--blue); color: white; }
.primary-button:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.secondary-button { background: white; color: var(--ink); }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }
.danger-button { border-color: #e2b2b2; background: white; color: var(--red); }
.icon-button { width: 42px; padding: 0; background: transparent; color: inherit; font-size: 25px; font-weight: 400; }
.primary-button:disabled, .secondary-button:disabled { border-color: #cbd3cf; background: #e9edeb; color: #909993; cursor: not-allowed; }
.compact { min-height: 34px; padding: 0 12px; font-size: 13px; }
.button-row { display: flex; align-items: center; gap: 10px; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #7ec9ea; outline-offset: 2px; }

.evaluation-method { margin-bottom: 28px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evaluation-method h2 { margin-bottom: 12px; }
.evaluation-method p { margin-bottom: 0; color: #405049; line-height: 1.9; }
.evaluation-method .evaluation-note { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.evaluation-note strong { color: var(--blue); }

.stepper { margin: 24px 0 38px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { min-height: 74px; padding: 0 16px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 12px; color: var(--muted); }
.step:last-child { border-right: 0; }
.step-index { width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.step.active { color: var(--ink); font-weight: 750; }
.step.active .step-index, .step.done .step-index { border-color: var(--green); color: var(--green); }
.step.done .step-index { background: var(--green); color: white; }

.preset-section { padding-top: 2px; }
.preset-list { border-top: 1px solid var(--line-strong); }
.preset-row { width: 100%; min-height: 92px; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(220px, 1fr); align-items: center; gap: 16px; background: white; color: var(--text); text-align: left; cursor: pointer; }
.preset-row:hover { background: #f8faf9; }
.preset-row.selected { background: var(--blue-soft); box-shadow: inset 4px 0 var(--blue); }
.preset-radio { width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.preset-radio i { width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.preset-row.selected .preset-radio { border-color: var(--blue); }
.preset-row.selected .preset-radio i { background: var(--blue); }
.preset-identity strong, .preset-identity small { display: block; }
.preset-identity strong { color: var(--ink); font-size: 16px; }
.preset-identity small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.form-actions { margin-top: 24px; display: flex; justify-content: flex-end; }
.form-actions .primary-button { min-width: 150px; }

.replay-overlay { position: fixed; inset: 0; z-index: 1000; overflow: auto; background: var(--paper); }
.replay-screen { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.replay-header { position: relative; min-height: 90px; padding: 18px max(30px, calc((100vw - 1360px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.replay-header h1 { margin: 0; font-size: 27px; }
.replay-company-logo { position: absolute; top: 50%; left: 50%; width: 168px; height: 52px; object-fit: contain; object-position: center; pointer-events: none; transform: translate(-50%, -50%); }
.replay-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-left: auto; }
select { min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; color: var(--ink); }
.replay-stage { min-height: 0; }
.replay-visual { min-height: calc(100vh - 90px); padding: 34px; display: grid; place-items: center; background: #f7f9f8; }
.replay-visual[data-phase="preview"],
.replay-visual[data-phase="evaluation"],
.replay-visual[data-phase="aggregation"],
.replay-visual[data-phase="complete"] { align-items: start; padding-top: 16px; }
.replay-stack { width: min(100%, 920px); display: grid; gap: 20px; }

.process-visual { display: grid; place-items: center; text-align: center; }
.process-icon { width: 104px; height: 104px; margin-bottom: 22px; border: 2px solid var(--blue); border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: white; font-size: 35px; font-weight: 800; }
.process-pulse { height: 18px; margin-bottom: 18px; display: flex; gap: 7px; }
.process-pulse i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 1.15s infinite ease-in-out; }
.process-pulse i:nth-child(2) { animation-delay: 130ms; }
.process-pulse i:nth-child(3) { animation-delay: 260ms; }
.process-visual h2 { margin-bottom: 10px; font-size: 24px; }
.process-visual p { margin: 0; color: var(--muted); }
@keyframes pulse { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-5px); } }

.calibration-frame { width: 100%; border: 1px solid #263745; background: #081522; }
.calibration-toolbar { min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; background: white; color: var(--ink); font-size: 12px; }
.calibration-toolbar strong { margin-right: auto; font-size: 13px; }
.calibration-toolbar span { padding: 7px 10px; border: 1px solid var(--blue); color: var(--blue); }
.calibration-svg { width: 100%; height: auto; display: block; }
.calibration-image { width: 100%; height: auto; display: block; }
.calibration-label { fill: #dce7ee; font-size: 15px; text-anchor: middle; }
.hand-link-back { stroke: #dce4eb; stroke-width: 14; stroke-linecap: round; opacity: .2; }
.hand-link { stroke-width: 3; stroke-linecap: round; }
.hand-link.robot { stroke: #3979ed; }
.hand-link.reference { stroke: #1bb56b; }
.hand-point { stroke: #081522; stroke-width: 2; }
.hand-point.robot { fill: #3980ff; }
.hand-point.reference { fill: #20c978; }
.hand-point.tip { stroke: white; stroke-width: 2.5; }
.palm-plate { opacity: .18; stroke-width: 2; }
.palm-plate.robot { fill: #aab9cb; stroke: #3979ed; }
.palm-plate.reference { fill: #1bb56b; stroke: #1bb56b; }

.progress-track { height: 5px; overflow: hidden; background: #e4e9e6; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--blue); transition: width 100ms linear; }
.evaluation-visual { width: 100%; }
.evaluation-visual > h2, .evaluation-visual > p { text-align: center; }
.evaluation-visual > h2 { margin-bottom: 6px; font-size: 23px; }
.evaluation-visual > p { margin-bottom: 18px; color: var(--muted); }
.dynamic-progress { padding: 18px 24px; border: 1px solid var(--line); background: white; }
.dynamic-progress > div:first-child { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.dynamic-progress strong { color: var(--blue); font-size: 20px; }
.dynamic-progress small { display: block; margin-top: 10px; color: var(--muted); }

.history-compare-bar { min-height: 78px; margin-bottom: 20px; padding: 15px 18px; border-left: 4px solid var(--blue); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--blue-soft); }
.history-compare-bar strong, .history-compare-bar span { display: block; }
.history-compare-bar span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.job-list { border-top: 1px solid var(--line); }
.job-list-head, .job-row { display: grid; grid-template-columns: 42px repeat(5, minmax(0, 1fr)); align-items: center; gap: 16px; }
.job-list-head { min-height: 42px; padding: 0 14px; background: var(--wash); color: var(--muted); font-size: 12px; }
.job-list-head span:nth-child(3), .job-row > div:nth-child(3) { text-align: center; }
.job-list-head span:last-child { text-align: center; }
.job-row { min-height: 86px; padding: 14px; border-bottom: 1px solid var(--line); }
.job-name strong, .job-name small { display: block; }
.job-name strong { color: var(--ink); }
.job-name small, .job-row > div > span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.job-total strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.job-check { display: grid; place-items: center; }
.job-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.status { padding: 5px 8px; display: inline-block; background: var(--wash); }
.status.complete { color: var(--green); background: var(--green-soft); }
.job-actions { display: flex; justify-content: center; }

.metric-strip { border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.metric-tile { min-height: 116px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-tile span, .metric-tile small, .metric-tile strong { display: block; }
.metric-tile span, .metric-tile small { color: var(--muted); font-size: 12px; }
.metric-tile strong { margin: 9px 0 7px; color: var(--ink); font-size: 29px; font-variant-numeric: tabular-nums; }
.metric-tile.primary { background: var(--blue); color: white; }
.metric-tile.primary span, .metric-tile.primary small, .metric-tile.primary strong { color: white; }
.result-tabs { margin-top: 26px; border-bottom: 1px solid var(--line); display: flex; gap: 24px; }
.result-tab { min-height: 46px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.result-tab:hover, .result-tab.active { border-bottom-color: var(--blue); color: var(--blue); }
.metric-guide { margin-top: 32px; }
.metric-definition-list { margin: 0; border-top: 1px solid var(--line); }
.metric-definition-row { display: grid; grid-template-columns: 130px minmax(260px, .85fr) minmax(430px, 1.35fr); border-bottom: 1px solid var(--line); }
.metric-definition-row dt,
.metric-definition-row dd { min-width: 0; margin: 0; padding: 14px 16px; }
.metric-definition-row dt { color: var(--ink); font-size: 15px; font-weight: 800; }
.metric-definition-row dt small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.metric-definition-row dd { border-left: 1px solid var(--line); }
.metric-description { line-height: 1.7; }
.metric-formula { text-align: center; }
.metric-equation { color: var(--blue-dark); font-family: "Times New Roman", "Noto Serif SC", serif; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.metric-equation b { font-weight: 700; }
.metric-formula-note { display: block; margin-top: 7px; color: var(--muted); font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif; font-size: 11px; line-height: 1.55; }
.worst-pose-table table { min-width: 1120px; }
.worst-pose-table td { font-variant-numeric: tabular-nums; }
.comparison-toolbar { display: flex; align-items: center; gap: 12px; }
.comparison-toolbar select { min-width: 280px; }
.comparison-stage { min-height: 510px; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; background: #fbfcfb; }
.comparison-panel { min-width: 0; position: relative; }
.comparison-panel + .comparison-panel { border-left: 1px solid var(--line); }
.comparison-panel h3 { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.comparison-panel svg { width: 100%; height: 465px; display: block; }
.target-edge { stroke: #2864dc; stroke-width: 2.4; }
.target-point { fill: #2864dc; stroke: white; stroke-width: 1.5; }
.robot-edge { stroke: #e5483f; stroke-width: 2.4; }
.robot-point { fill: #e5483f; stroke: white; stroke-width: 1.5; }
.heat-point { fill: #981b1b; }
.sample-metric-table { border-top: 0; }
.sample-metric-table table { min-width: 760px; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--wash); color: var(--text); font-weight: 750; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
.bar-list { border-top: 1px solid var(--line); }
.bar-row { min-height: 52px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 190px 1fr 70px; align-items: center; gap: 18px; font-size: 13px; }
.bar-track { height: 8px; background: #e6ebe8; }
.bar-track span { display: block; height: 100%; background: var(--blue); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }

.keypoint-layout { min-height: 460px; border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.keypoint-figure { padding: 20px; background: #fbfcfb; }
.keypoint-figure svg { width: 100%; height: 390px; }
.heat-bones line { stroke: #899991; stroke-width: 4; stroke-linecap: round; }
.heat-points circle { stroke: white; stroke-width: 3; }
.heat-points text { fill: var(--ink); font-size: 10px; }
.heat-legend { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.heat-legend i { height: 7px; background: linear-gradient(90deg, hsl(215 76% 50%), hsl(110 76% 50%), hsl(5 76% 50%)); }
.keypoint-ranking { border-left: 1px solid var(--line); }
.keypoint-ranking > div { min-height: 56px; padding: 8px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; }
.keypoint-ranking > div > span { color: var(--muted); }
.keypoint-ranking p { margin: 0; }
.keypoint-ranking strong, .keypoint-ranking small { display: block; }
.keypoint-ranking small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.keypoint-ranking b { font-variant-numeric: tabular-nums; }
.link-button { padding: 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; }
.link-button:hover { color: var(--blue); border-color: var(--blue); }
.best-value { background: var(--green-soft); color: var(--green); font-weight: 800; }
.multi-bars { border-top: 1px solid var(--line); }
.multi-bars > div { min-height: 55px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 250px 1fr 70px; align-items: center; gap: 18px; }
.multi-bars span { height: 8px; background: #e5ebe8; }
.multi-bars i { display: block; height: 100%; background: var(--blue); }
.multi-bars b { text-align: right; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 1200; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: var(--radius); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; background: var(--ink); color: white; transition: opacity 150ms, transform 150ms; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.loading-page { min-height: 480px; display: grid; place-items: center; align-content: center; color: var(--muted); }
.loading-line { width: 140px; height: 3px; overflow: hidden; background: #e3e9e6; }
.loading-line::after { content: ""; width: 45%; height: 100%; display: block; background: var(--blue); animation: loading 1s infinite ease-in-out; }
@keyframes loading { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }
.error-state { margin-top: 80px; padding: 22px; border-left: 4px solid var(--red); background: #fff4f4; }
.error-state strong { color: var(--red); }
.error-state p { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.report-page { background: var(--wash); }
.report-shell { width: min(1140px, calc(100% - 56px)); margin: 28px auto; padding: 40px; background: white; box-shadow: 0 2px 12px rgb(20 33 27 / 8%); }
.report-header { padding-bottom: 25px; border-bottom: 2px solid var(--ink); display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.report-actions { display: flex; align-items: center; gap: 18px; }
.report-logo { width: 155px; height: 48px; object-fit: contain; object-position: right center; }
.report-header .eyebrow { margin-bottom: 8px; color: var(--green); font-size: 12px; font-weight: 800; }
.report-shell .lede { margin: 15px 0 0; color: var(--muted); line-height: 1.75; }
.report-shell > section { margin-top: 40px; }
.report-shell h2 { margin-bottom: 16px; }
.report-shell .metric-grid { margin-top: 28px; }
.report-shell .metric { min-height: 116px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-shell .metric span, .report-shell .metric small, .report-shell .metric strong { display: block; }
.report-shell .metric span, .report-shell .metric small { color: var(--muted); font-size: 12px; }
.report-shell .metric strong { margin: 9px 0 7px; font-size: 28px; }
.report-shell footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .app-header { grid-template-columns: auto 1fr auto; padding: 0 18px; }
  .app-header nav { justify-self: center; }
  .company-logo { width: 125px; }
  .preset-row { grid-template-columns: 30px minmax(180px, 1fr); }
  .replay-visual { padding: 20px; }
  .replay-status { padding: 28px 24px; }
  .job-list-head, .job-row { grid-template-columns: 38px minmax(200px, 1fr) 140px 80px 90px; }
  .job-list-head span:last-child, .job-actions { display: none; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-definition-row { grid-template-columns: 115px 1fr; }
  .metric-definition-row dd:last-child { grid-column: 2; border-top: 1px solid var(--line); }
  .comparison-stage { grid-template-columns: 1fr; }
  .comparison-panel + .comparison-panel { border-top: 1px solid var(--line); border-left: 0; }
  .comparison-panel svg { height: 340px; }
  .keypoint-layout { grid-template-columns: 1fr; }
  .keypoint-ranking { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 620px) {
  .app-header { height: auto; min-height: 66px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 14px; }
  .brand small { display: none; }
  .app-header nav { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 42px; order: 3; }
  .nav-button { flex: 1; min-width: 0; }
  .company-logo { grid-column: 2; grid-row: 1; width: 108px; height: 38px; max-width: 100%; }
  .page, .page-narrow { width: calc(100% - 28px); padding-top: 26px; }
  h1 { font-size: 27px; }
  h2 { font-size: 19px; }
  .page-head { min-height: 0; display: block; }
  .page-head .button-row, .page-head > button { margin-top: 16px; }
  .step { min-height: 64px; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; text-align: center; font-size: 11px; }
  .step-index { width: 23px; height: 23px; flex-basis: 23px; }
  .preset-row { min-height: 88px; grid-template-columns: 26px 1fr; gap: 10px; padding: 13px 10px; }
  .preset-identity strong { font-size: 14px; }
  .form-actions .primary-button { width: 100%; }
  .replay-header { min-height: 78px; padding: 12px 14px; }
  .replay-header h1 { width: calc(50% - 58px); min-width: 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .replay-company-logo { width: 92px; height: 38px; }
  .replay-header-actions { position: absolute; top: 50%; right: 14px; width: auto; margin-left: 0; transform: translateY(-50%); }
  .replay-header-actions .secondary-button { margin-left: 0; padding: 9px 10px; font-size: 12px; white-space: nowrap; }
  .replay-visual { min-height: calc(100vh - 78px); padding: 12px; }
  .calibration-toolbar span { display: none; }
  .calibration-svg { min-height: 320px; }
  .history-compare-bar { align-items: stretch; flex-direction: column; }
  .history-compare-bar .button-row { width: 100%; }
  .history-compare-bar button { flex: 1; }
  .job-list-head { display: none; }
  .job-row { min-height: 104px; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 12px 8px; }
  .job-row > div:nth-child(3) { display: none; }
  .job-row > div:nth-child(4) { grid-column: 3; grid-row: 1; text-align: right; }
  .job-row > div:nth-child(5) { grid-column: 2; grid-row: 2; }
  .metric-tile { min-height: 104px; padding: 14px; }
  .metric-tile strong { font-size: 24px; }
  .result-tabs { gap: 18px; overflow-x: auto; }
  .metric-definition-row { grid-template-columns: 1fr; }
  .metric-definition-row dt,
  .metric-definition-row dd { padding: 11px 12px; }
  .metric-definition-row dd,
  .metric-definition-row dd:last-child { grid-column: 1; border-left: 0; border-top: 1px solid var(--line); }
  .comparison-toolbar { display: block; }
  .comparison-toolbar select { width: 100%; min-width: 0; margin-top: 8px; }
  .comparison-panel svg { height: 300px; }
  .bar-row { grid-template-columns: 110px 1fr 55px; gap: 10px; }
  .keypoint-figure { padding: 8px; }
  .keypoint-figure svg { height: 320px; }
  .multi-bars > div { grid-template-columns: 120px 1fr 54px; gap: 9px; font-size: 12px; }
  .report-shell { width: 100%; margin: 0; padding: 24px 16px; box-shadow: none; }
  .report-header { display: block; }
  .report-actions { margin-top: 16px; align-items: flex-start; flex-direction: column; }
}
