/* Unified backtest evidence desk. Scoped to .btw-* to avoid cross-page drift. */
.btw-shell {
  --btw-series-1: #6ea0ff;
  --btw-series-2: #ef6b73;
  --btw-series-3: #35c99a;
  --btw-series-4: #d7a7ff;
  position: relative;
  min-height: 620px;
  color: var(--fg);
}

/* 列表视图给 fixed 对比 tray 留出底部空间, 避免盖住最后几行 */
.btw-shell[data-btw-view="list"] { padding-bottom: 72px; }

@media (max-width: 900px) {
  .btw-compare-tray { left: 10px; right: 10px; width: auto; }
}

.btw-shell button,
.btw-shell input,
.btw-shell select,
.btw-shell textarea { font: inherit; }

.btw-shell button:focus-visible,
.btw-shell input:focus-visible,
.btw-shell select:focus-visible,
.btw-shell textarea:focus-visible,
.btw-shell summary:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

.btw-commandbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--border);
}

.btw-kicker {
  display: block;
  color: var(--accent-hi);
  font: 700 10px/1.2 var(--ff-num);
  letter-spacing: .16em;
}

.btw-title-line { display: flex; align-items: baseline; gap: 14px; margin-top: 5px; }
.btw-title-line h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.btw-title-line > span { color: var(--fg-muted); font-size: 11px; }
.btw-command-actions { display: flex; align-items: center; gap: 8px; }

.btw-quiet,
.btw-row-action,
.btw-run-link {
  padding: 0;
  color: var(--fg-dim);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.btw-quiet { min-height: 32px; padding: 5px 9px; border-radius: var(--r-1); }
.btw-quiet:hover,
.btw-row-action:hover,
.btw-run-link:hover { color: var(--accent-hi); }
.btw-stage { padding: 16px 0 96px; }

.btw-loading,
.btw-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 32px;
  color: var(--fg-muted);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-3);
  background: var(--bg-inset);
}

.btw-loading { align-content: center; gap: 12px; }
.btw-loading i { width: 26px; height: 26px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: btw-spin .8s linear infinite; }
.btw-empty strong { color: var(--fg); font-size: 16px; }
.btw-empty p { max-width: 560px; margin: 7px 0 14px; }
@keyframes btw-spin { to { transform: rotate(360deg); } }

.btw-ledger-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 150px)) minmax(260px, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: linear-gradient(100deg, var(--bg-elev-1), var(--bg-inset));
}

.btw-ledger-strip > div { padding: 15px 18px; border-right: 1px solid var(--border); }
.btw-ledger-strip span { display: block; margin-bottom: 5px; color: var(--fg-muted); font-size: 10px; }
.btw-ledger-strip strong { font: 700 23px/1 var(--ff-num); font-variant-numeric: tabular-nums; }
.btw-ledger-strip p { align-self: center; margin: 0; padding: 12px 18px; color: var(--fg-dim); font-size: 11px; line-height: 1.6; }

.btw-filterbar {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--bg-elev-1);
}

.btw-filterbar label,
.btw-field { display: grid; gap: 5px; min-width: 0; color: var(--fg-muted); font-size: 10px; }
.btw-filterbar label:first-child { min-width: 220px; }
.btw-filterbar input,
.btw-filterbar select,
.btw-field input,
.btw-field select,
.btw-field textarea {
  min-height: 34px;
  padding: 7px 9px;
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-1);
  background: var(--bg-inset);
}
.btw-field textarea { resize: vertical; }
.btw-filter-result { margin-left: auto; padding-bottom: 8px; color: var(--fg-muted); font: 11px var(--ff-num); }

.btw-table-shell { max-width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-2); }
.btw-table,
.btw-compare-table,
.btw-monthly-table,
.btw-config-table { width: 100%; border-collapse: collapse; font-size: 11px; }

.btw-table th,
.btw-table td,
.btw-compare-table th,
.btw-compare-table td,
.btw-monthly-table th,
.btw-monthly-table td,
.btw-config-table th,
.btw-config-table td { padding: 10px 11px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }

.btw-table thead th,
.btw-compare-table thead th,
.btw-monthly-table thead th,
.btw-config-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--fg-muted);
  font-weight: 600;
  background: #111620;
  box-shadow: 0 1px var(--border);
}

.btw-table tbody tr:hover { background: rgba(91, 140, 255, .045); }
.btw-table tbody tr.selected { background: rgba(91, 140, 255, .08); }
.btw-table tr:last-child td,
.btw-compare-table tr:last-child td,
.btw-monthly-table tr:last-child td,
.btw-config-table tr:last-child td { border-bottom: 0; }
.btw-table .num,
.btw-compare-table .num,
.btw-monthly-table td,
.btw-config-table td,
.btw-shell .num {
  text-align: right;
  font-family: var(--ff-num);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.btw-check-col { width: 36px; text-align: center !important; }
.btw-check-col input { accent-color: var(--accent); }
.btw-run-link { display: grid; gap: 2px; text-align: left; }
.btw-run-link b { color: var(--fg); font-weight: 650; }
.btw-run-link small,
.btw-cell-sub { display: block; color: var(--fg-muted); font: 9px/1.4 var(--ff-num); }
.btw-run-params,
.btw-run-note {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg-muted);
  font: 9px/1.5 var(--ff-num);
}
.btw-run-note { color: var(--fg-dim); font-family: inherit; }
.btw-compare-table thead th .btw-run-params { max-width: 180px; font-weight: 400; }
.btw-row-action { white-space: nowrap; font-size: 10px; }
.btw-mode { padding: 3px 6px; color: var(--fg-dim); border: 1px solid var(--border); border-radius: var(--r-1); font: 9px var(--ff-num); white-space: nowrap; }

.btw-status { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border: 1px solid transparent; border-radius: 99px; font-size: 9px; white-space: nowrap; }
.btw-status.ok { color: #75ddbd; border-color: rgba(53, 201, 154, .3); background: rgba(53, 201, 154, .09); }
.btw-status.warn { color: #f1c768; border-color: rgba(242, 185, 60, .3); background: rgba(242, 185, 60, .09); }
.btw-status.bad { color: #f28b91; border-color: rgba(239, 75, 75, .3); background: rgba(239, 75, 75, .09); }
.btw-status.info { color: #8fb1ff; border-color: rgba(91, 140, 255, .3); background: rgba(91, 140, 255, .09); }
.btw-shell .up { color: var(--red); }
.btw-shell .down { color: var(--green); }
.btw-shell .flat { color: var(--fg-dim); }

/* fixed 而非 sticky：祖先 .main 有 overflow-x:auto 会打断 sticky, tray 会沉到长表格底部 */
.btw-compare-tray {
  position: fixed;
  z-index: 40;
  bottom: 14px;
  left: var(--sidebar-w, 0px);
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(840px, calc(100vw - var(--sidebar-w, 0px) - 40px));
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(18, 23, 32, .94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
  backdrop-filter: blur(16px);
}
.btw-compare-tray > div:first-child { display: flex; align-items: baseline; gap: 5px; }
.btw-compare-tray > div:first-child strong { font: 700 18px var(--ff-num); }
.btw-compare-tray > div:first-child span { color: var(--fg-muted); font-size: 10px; }
.btw-selected-runs { display: flex; gap: 6px; overflow: auto; }
.btw-selected-runs button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 8px; color: var(--fg-dim); border: 1px solid var(--border); border-radius: 99px; background: var(--bg-inset); cursor: pointer; white-space: nowrap; }
.btw-selected-runs i,
.btw-compare-table thead i,
.btw-monthly-table th i,
.btw-config-table th i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--series); }
.btw-selected-runs b { color: var(--fg-muted); }

.btw-evidence-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-3); background: var(--bg-elev-1); }
.btw-evidence-head h3 { margin: 5px 0 3px; font-size: 23px; letter-spacing: -.03em; }
.btw-evidence-head h3 small { color: var(--fg-muted); font-size: 12px; font-weight: 450; }
.btw-evidence-head p { margin: 0; color: var(--fg-muted); font: 10px var(--ff-num); }

.btw-metric-grid { display: grid; grid-template-columns: repeat(8, minmax(90px, 1fr)); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--bg-inset); }
.btw-metric-grid > div { min-height: 76px; padding: 13px 12px; border-right: 1px solid var(--border); }
.btw-metric-grid > div:last-child { border-right: 0; }
.btw-metric-grid span { display: block; margin-bottom: 8px; color: var(--fg-muted); font-size: 9px; }
.btw-metric-grid strong { font: 700 17px/1 var(--ff-num); font-variant-numeric: tabular-nums; }

.btw-section,
.btw-chart-panel,
.btw-new-form-panel,
.btw-strategy-contract,
.btw-failure-grid > section { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--bg-elev-1); }
.btw-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.btw-section-head > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.btw-section-head span { color: var(--accent-hi); font: 700 9px var(--ff-num); letter-spacing: .11em; }
.btw-section-head h3 { margin: 0; font-size: 13px; }
.btw-section-head small { color: var(--fg-muted); font-size: 9px; }
.btw-detail-chart,
.btw-compare-chart { width: 100%; height: 350px; }

.btw-month-strip { display: grid; grid-template-columns: repeat(12, minmax(70px, 1fr)); gap: 5px; overflow: auto; }
.btw-month-strip > div { min-width: 70px; padding: 9px; border: 1px solid var(--border); border-radius: var(--r-1); background: linear-gradient(var(--month-color), var(--month-color)), var(--bg-inset); }
.btw-month-strip span { display: block; margin-bottom: 4px; color: var(--fg-muted); font: 8px var(--ff-num); }
.btw-month-strip strong { font: 650 11px var(--ff-num); }

.btw-technical { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--bg-inset); }
.btw-technical summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: var(--fg-dim); cursor: pointer; }
.btw-technical summary span { color: var(--fg-muted); font: 9px var(--ff-num); }
.btw-tech-grid { display: grid; grid-template-columns: minmax(230px, .8fr) repeat(2, minmax(280px, 1fr)); gap: 8px; padding: 0 12px 12px; }
.btw-tech-grid > div { min-width: 0; padding: 11px; border: 1px solid var(--border); border-radius: var(--r-1); background: var(--bg); }
.btw-tech-grid h4 { margin: 0 0 9px; color: var(--fg-dim); font-size: 10px; }
.btw-tech-grid dl { display: grid; grid-template-columns: 95px 1fr; gap: 6px; margin: 0; font: 9px var(--ff-num); }
.btw-tech-grid dt { color: var(--fg-muted); }
.btw-tech-grid dd { min-width: 0; margin: 0; overflow: hidden; color: var(--fg-dim); text-overflow: ellipsis; }
.btw-tech-grid pre,
.btw-failure-grid pre { max-height: 280px; margin: 0; overflow: auto; color: var(--fg-dim); font: 9px/1.55 var(--ff-num); white-space: pre-wrap; overflow-wrap: anywhere; }

.btw-failure-callout,
.btw-legacy-callout,
.btw-inline-warning,
.btw-alignment-warning { border: 1px solid; border-radius: var(--r-2); }
.btw-failure-callout { padding: 18px; border-color: rgba(239, 75, 75, .32); background: linear-gradient(120deg, rgba(239, 75, 75, .1), var(--bg-inset)); }
.btw-failure-callout span { color: #f28b91; font: 700 9px var(--ff-num); letter-spacing: .12em; }
.btw-failure-callout h3 { max-width: 780px; margin: 7px 0; font-size: 17px; }
.btw-failure-callout p { margin: 0; color: var(--fg-muted); font-size: 11px; }
.btw-failure-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
.btw-missing { margin: 0 0 12px; padding-left: 18px; color: #f1c768; font: 10px/1.6 var(--ff-num); }
.btw-audit { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.btw-audit li { display: grid; grid-template-columns: 10px 1fr; gap: 9px; }
.btw-audit i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.btw-audit i.error { background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.btw-audit b { margin-right: 7px; font-size: 10px; }
.btw-audit span,
.btw-audit small { color: var(--fg-muted); font: 9px var(--ff-num); }
.btw-audit p { margin: 4px 0; color: var(--fg-dim); font-size: 10px; }
.btw-legacy-callout { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 13px; color: #f1c768; border-color: rgba(242, 185, 60, .28); background: rgba(242, 185, 60, .07); }
.btw-legacy-callout span { color: var(--fg-dim); font-size: 10px; }
.btw-muted { color: var(--fg-muted); font-size: 10px; }

.btw-new-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr); gap: 12px; }
.btw-new-form-panel,
.btw-strategy-contract { margin-top: 0; }
.btw-form-row { display: grid; gap: 10px; margin-bottom: 10px; }
.btw-form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btw-new-form-panel fieldset { margin: 14px 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-2); }
.btw-new-form-panel legend { padding: 0 6px; color: var(--fg-dim); font-size: 10px; }
.btw-param-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.btw-field span small { color: var(--fg-muted); font: 8px var(--ff-num); }
.btw-field.bool { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-1); }
.btw-field.bool input { min-height: 0; accent-color: var(--accent); }
.btw-inline-warning { display: grid; gap: 3px; margin-top: 12px; padding: 10px 12px; color: #f1c768; border-color: rgba(242, 185, 60, .26); background: rgba(242, 185, 60, .07); }
.btw-inline-warning span { color: var(--fg-dim); font-size: 10px; }
.btw-submit-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.btw-submit-row span { color: var(--fg-dim); font: 10px var(--ff-num); }
.btw-strategy-contract h3 { margin: 7px 0 5px; font-size: 21px; }
.btw-strategy-contract > p { margin: 0 0 16px; color: var(--fg-dim); font-size: 11px; }
.btw-strategy-contract dl { display: grid; grid-template-columns: 78px 1fr; gap: 8px; margin: 0; font-size: 10px; }
.btw-strategy-contract dt { color: var(--fg-muted); }
.btw-strategy-contract dd { margin: 0; color: var(--fg-dim); overflow-wrap: anywhere; }
.btw-capabilities { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.btw-capabilities span { padding: 4px 6px; color: #8fb1ff; border: 1px solid rgba(91, 140, 255, .24); border-radius: 99px; background: rgba(91, 140, 255, .07); font: 8px var(--ff-num); }

/* Signature element: original run windows with their strict common interval. */
.btw-alignment-rail { padding: 15px 16px; overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--r-3); background: radial-gradient(circle at 58% 0, rgba(91, 140, 255, .11), transparent 42%), var(--bg-inset); }
.btw-alignment-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.btw-alignment-head div { display: grid; gap: 4px; }
.btw-alignment-head span { color: var(--accent-hi); font: 700 9px var(--ff-num); letter-spacing: .14em; }
.btw-alignment-head strong { font: 650 15px var(--ff-num); }
.btw-alignment-head > b { color: var(--fg-dim); font: 10px var(--ff-num); }
.btw-rail-axis { display: flex; justify-content: space-between; margin: 8px 150px 4px 138px; color: var(--fg-muted); font: 8px var(--ff-num); }
.btw-rail-row { display: grid; grid-template-columns: 130px minmax(180px, 1fr) 142px; align-items: center; gap: 8px; min-height: 29px; }
.btw-rail-row > span { overflow: hidden; color: var(--fg-dim); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.btw-rail-row > span i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--series); }
.btw-rail-row small { color: var(--fg-muted); font: 8px var(--ff-num); text-align: right; }
.btw-rail-track { position: relative; height: 10px; border-radius: 99px; background: var(--border); }
.btw-rail-track i { position: absolute; top: 0; height: 100%; border-radius: inherit; }
.btw-rail-track i.run { background: color-mix(in srgb, var(--series), transparent 38%); }
.btw-rail-track i.common { top: 2px; height: 6px; background: #dbe6ff; box-shadow: 0 0 10px rgba(110, 160, 255, .75); }
.btw-alignment-warning { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 9px 12px; color: #f1c768; border-color: rgba(242, 185, 60, .25); background: rgba(242, 185, 60, .06); }
.btw-alignment-warning.quiet { color: #75ddbd; border-color: rgba(53, 201, 154, .22); background: rgba(53, 201, 154, .05); }
.btw-alignment-warning b { white-space: nowrap; }
.btw-alignment-warning div { display: flex; flex-wrap: wrap; gap: 4px; }
.btw-alignment-warning span { padding: 2px 5px; color: var(--fg-dim); border: 1px solid var(--border); border-radius: 99px; font: 8px var(--ff-num); }

.btw-compare-table thead th:not(:first-child) { min-width: 155px; border-top: 2px solid var(--series); }
.btw-compare-table thead small { display: block; margin: 3px 0 0 13px; color: var(--fg-muted); font-size: 8px; }
.btw-compare-table tbody th { color: var(--fg-dim); font-weight: 500; }
.btw-compare-table td { position: relative; font-size: 13px; }
.btw-compare-table td.best { background: rgba(91, 140, 255, .08); box-shadow: inset 0 0 0 1px rgba(91, 140, 255, .18); }
.btw-compare-table td small { margin-left: 5px; color: var(--accent-hi); font: 7px var(--ff-num); letter-spacing: .08em; }
.btw-segmented { display: flex; padding: 2px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-inset); }
.btw-segmented button { min-height: 27px; padding: 4px 10px; color: var(--fg-muted); border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 9px; }
.btw-segmented button.active { color: var(--fg); background: var(--bg-elev-2); }
.btw-segmented button:disabled { opacity: .35; cursor: not-allowed; }
.btw-monthly-table th:not(:first-child),
.btw-monthly-table td { min-width: 72px; text-align: center; }
.btw-monthly-table thead small { display: block; color: var(--fg-muted); font-size: 7px; }
.btw-monthly-table tbody th { position: sticky; left: 0; z-index: 1; min-width: 140px; background: var(--bg-elev-1); white-space: nowrap; }
.btw-config-table th:first-child { min-width: 120px; }
.btw-config-table thead th:not(:first-child) { min-width: 170px; border-top: 2px solid var(--series); }
.btw-config-table tbody th { color: var(--fg-dim); font-weight: 500; }
.btw-config-table td { max-width: 250px; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.btw-config-table tr.same { opacity: .45; }
.btw-config-table tr.diff { background: rgba(242, 185, 60, .035); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1180px) {
  .btw-ledger-strip { grid-template-columns: repeat(4, 1fr); }
  .btw-ledger-strip p { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .btw-metric-grid { grid-template-columns: repeat(4, 1fr); }
  .btw-metric-grid > div { border-bottom: 1px solid var(--border); }
  .btw-tech-grid { grid-template-columns: 1fr; }
  .btw-param-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .btw-commandbar { align-items: flex-start; }
  .btw-title-line { display: grid; gap: 3px; }
  .btw-command-actions { flex-wrap: wrap; justify-content: flex-end; }
  .btw-ledger-strip { grid-template-columns: repeat(2, 1fr); }
  .btw-filterbar { align-items: stretch; flex-wrap: wrap; }
  .btw-filterbar label,
  .btw-filterbar label:first-child { flex: 1 1 180px; min-width: 0; }
  .btw-filter-result { flex-basis: 100%; margin-left: 0; padding: 2px 0; }
  .btw-table-shell { overflow-x: auto; }
  .btw-table { min-width: 1050px; }
  .btw-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .btw-new-grid,
  .btw-failure-grid { grid-template-columns: 1fr; }
  .btw-compare-tray { grid-template-columns: auto 1fr; }
  .btw-compare-tray > .btn { grid-column: 1 / -1; }
  .btw-rail-axis { margin-left: 0; margin-right: 0; }
  .btw-rail-row { grid-template-columns: 110px minmax(180px, 1fr); }
  .btw-rail-row small { display: none; }
  .btw-alignment-warning { align-items: flex-start; flex-direction: column; }
  .btw-compare-table,
  .btw-config-table { min-width: 720px; }
}

@media (max-width: 620px) {
  .btw-commandbar { display: grid; }
  .btw-command-actions { justify-content: flex-start; }
  .btw-stage { padding-top: 10px; }
  .btw-ledger-strip > div { padding: 12px; }
  .btw-form-row.two,
  .btw-param-grid { grid-template-columns: 1fr; }
  .btw-evidence-head { display: grid; }
  .btw-detail-chart,
  .btw-compare-chart { height: 290px; }
  .btw-rail-row { grid-template-columns: 95px minmax(150px, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .btw-loading i { animation-duration: 1.8s; }
  .btw-shell * { scroll-behavior: auto !important; }
}
