:root {
  color-scheme: light;
  --page: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --ink: #1b2430;
  --ink-2: #55606f;
  --muted: #6e7889;
  --hairline: #e3e7ec;
  --axis: #c3c8d0;
  --brand: #461d7c;
  --brand-deep: #2a1150;
  --gold: #fdd023;
  --link: #6a42b8;
  --focus: #6a42b8;
  --up-bad: #dc2626;
  --down-good: #0f8a0f;
  --s1: #6a42b8;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --s6: #008300;
  --s1-wash: rgba(106, 66, 184, 0.10);
  --tint: #efe9f8;
  --brand-ink: #461d7c;
  --caution: #8a5a00;
  --trend-low: #0f8a0f;
  --trend-steady: #2563eb;
  --trend-high: #dc2626;
  --pick: #fdd023;
  --pick-ink: #1b2430;
  --pick-soft: #fff0b3;
  --good: #0ca30c;
  --warning: #fab219;
  --font-display: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #17191c;
    --surface: #1f2226;
    --surface-2: #292d32;
    --ink: #eef0f2;
    --ink-2: #c3c8ce;
    --muted: #8b9199;
    --hairline: #32363c;
    --axis: #474c54;
    --link: #b9a2ec;
    --focus: #b9a2ec;
    --up-bad: #ff8a73;
    --down-good: #4fd14f;
    --s1: #9a7bd6;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --s5: #d55181;
    --s6: #008300;
    --s1-wash: rgba(154, 123, 214, 0.14);
    --tint: rgba(154, 123, 214, 0.18);
    --brand-ink: #cdb9f2;
    --caution: #e3b341;
    --pick-soft: rgba(253, 208, 35, 0.13);
    --pick-soft-ink: #fdd023;
    --trend-low: #4fd14f;
    --trend-steady: #6ea8ff;
    --trend-high: #ff7a66;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #17191c;
  --surface: #1f2226;
  --surface-2: #292d32;
  --ink: #eef0f2;
  --ink-2: #c3c8ce;
  --muted: #8b9199;
  --hairline: #32363c;
  --axis: #474c54;
  --link: #b9a2ec;
  --focus: #b9a2ec;
  --up-bad: #ff8a73;
  --down-good: #4fd14f;
  --s1: #9a7bd6;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s6: #008300;
  --s1-wash: rgba(154, 123, 214, 0.14);
  --tint: rgba(154, 123, 214, 0.18);
  --brand-ink: #cdb9f2;
  --caution: #e3b341;
  --pick-soft: rgba(253, 208, 35, 0.13);
  --pick-soft-ink: #fdd023;
  --trend-low: #4fd14f;
  --trend-steady: #6ea8ff;
  --trend-high: #ff7a66;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.2; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } h1 { font-size: 25px; } }

.bar { background: var(--brand-deep); color: #fff; }
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand__mark { height: 30px; width: auto; display: block; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.brand__tool { color: #d9cdee; font-size: 15px; }
.freshness { color: #d9cdee; font-size: 13px; flex: 0 1 300px; min-width: 0; text-align: right; line-height: 1.35; }

main { padding: 32px 0 80px; outline: none; }
main.wrap { padding-top: 32px; padding-bottom: 80px; }
.loading, .error { color: var(--ink-2); padding: 48px 0; }

.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.lead__label { color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.lead__value { font-family: var(--font-display); font-size: 56px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.lead__delta { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.lead__detail { margin-top: 12px; color: var(--ink-2); font-size: 14px; max-width: 46ch; }
@media (max-width: 860px) { .lead { grid-template-columns: 1fr; } .lead__value { font-size: 48px; } }

.delta-up { color: var(--up-bad); font-weight: 600; }
.delta-down { color: var(--down-good); font-weight: 600; }
.delta-flat { color: var(--ink-2); font-weight: 600; }

.section { margin-top: 48px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section__note { color: var(--ink-2); font-size: 14px; max-width: 70ch; }
.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; }
.panel--pad { padding: 20px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-title { font-weight: 600; color: var(--ink); }
.row-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
tbody tr.link-row { cursor: pointer; }
tbody tr.link-row:hover td { background: var(--surface-2); }

.group { margin-top: 44px; }
.group > h2 { margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { display: block; padding: 16px 16px 10px; color: inherit; }
.card:hover { text-decoration: none; border-color: var(--axis); }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__change { font-size: 14px; white-space: nowrap; }
.card__meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card__chart { margin-top: 8px; height: 64px; }
.card__empty { margin-top: 10px; color: var(--muted); font-size: 13px; min-height: 54px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
.badge__icon { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; line-height: 1; flex: none; }
.badge--low .badge__icon { background: var(--good); color: #fff; }
.badge--low { color: var(--ink); }
.badge--high .badge__icon { background: var(--warning); color: #1b2430; }
.badge--high { color: var(--ink); }
.badge--typical .badge__icon { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--axis); }
.badge--new .badge__icon, .badge--out .badge__icon, .badge--none .badge__icon { background: transparent; color: var(--muted); border: 1px dashed var(--axis); }

.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat__label { color: var(--ink-2); font-size: 13px; }
.stat__value { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.controls { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:hover { border-color: var(--axis); }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.spacer { height: 16px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.list li:last-child { border-bottom: none; }
.callout { background: var(--surface-2); border-radius: 8px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.callout--warn { border-left: 4px solid var(--warning); margin-bottom: 24px; color: var(--ink); }

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--font-body); font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--hairline); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { stroke: none; }
.chart .cross { stroke: var(--axis); stroke-width: 1; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:focus { outline: none; }
.chart .hit:focus-visible + .focus-ring { stroke: var(--focus); }
.chart .bar { transition: opacity .12s; }
.chart .bar-hit { fill: transparent; cursor: default; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.legend__key { display: inline-block; width: 16px; height: 2px; border-radius: 1px; vertical-align: middle; margin-right: 6px; position: relative; top: -1px; }
.table-toggle { margin-top: 8px; font-size: 13px; }
.table-toggle summary { cursor: pointer; color: var(--link); width: max-content; }
.table-toggle table { margin-top: 8px; font-size: 13px; }
.table-toggle td, .table-toggle th { padding: 6px 10px; }
.table-toggle .table-wrap { max-height: 320px; overflow: auto; }

.tooltip {
  position: fixed; z-index: 10; pointer-events: none;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 8px;
  box-shadow: 0 6px 24px rgba(20, 10, 40, 0.14);
  padding: 8px 10px; font-size: 13px; min-width: 140px;
}
.tooltip__when { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.tooltip__row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tooltip__row strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.tooltip__row span { color: var(--ink-2); }
.tooltip__key { width: 12px; height: 2px; border-radius: 1px; flex: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.tabs { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.tabs a { color: #d9cdee; font-size: 14px; padding: 6px 12px; border-radius: 6px; }
.tabs a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.tabs a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, 0.14); }
@media (max-width: 720px) { .tabs { margin-left: 0; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; } .tabs a { white-space: nowrap; padding: 6px 9px; font-size: 13.5px; } }

.button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px;
  border-radius: 8px; background: var(--brand); color: #fff; border: 1px solid var(--brand); cursor: pointer; white-space: nowrap; }
.button:hover { text-decoration: none; filter: brightness(1.12); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button--ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.button--ghost:hover { border-color: var(--axis); filter: none; }
.button--danger { background: var(--surface); color: var(--up-bad); border-color: var(--hairline); }
.button--danger:hover { border-color: var(--up-bad); filter: none; }
.link-button { font: inherit; font-size: 13px; background: none; border: none; color: var(--link); cursor: pointer; padding: 4px; }
.link-button:hover { text-decoration: underline; }
input[type="text"], input[type="number"], input[type="search"], input:not([type]), select, textarea {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--axis);
  border-radius: 6px; padding: 7px 9px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; flex: none; }
.w-sm { max-width: 90px; }
.w-md { max-width: 130px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field__hint { font-size: 12px; color: var(--muted); }
.check, .radio { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; }
.check input, .radio input { margin-top: 3px; }
.radio { padding: 6px 0; }
fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 4px; }
.inline { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.grid2, .grid3, .grid4 { display: grid; gap: 14px; margin-top: 12px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
@media (max-width: 720px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }
.year-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.form-table { width: auto; min-width: 100%; }
.form-table td, .form-table th { padding: 6px 8px 6px 0; border-bottom: none; vertical-align: top; }
.form-table th { padding-bottom: 2px; }
.form-error { color: var(--up-bad); font-size: 14px; margin-top: 8px; min-height: 1em; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.empty { text-align: left; }
.empty h2 { margin-bottom: 6px; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.editor__form { display: flex; flex-direction: column; gap: 16px; }
.step__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px; }
.step__head h2 { font-size: 18px; }
.step__num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-top: -1px; }
.step .button--ghost { margin-top: 10px; }
.editor__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-bottom: 40px; }
.live { position: sticky; top: 16px; transition: opacity .15s; }
.live.is-busy { opacity: 0.6; }
.live h2 { font-size: 16px; }
.live__total { font-family: var(--font-display); font-size: 34px; font-weight: 800; margin-top: 6px; }
.live__facts { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; margin: 12px 0; }
.live__facts dt { color: var(--ink-2); }
.live__facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.live__years { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; }
.live__years li { display: grid; grid-template-columns: 40px 1fr 72px; gap: 8px; align-items: center; padding: 3px 0; }
.live__bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.live__bar span { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
.live .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .editor { grid-template-columns: 1fr; } .live { position: static; order: -1; } }

.import { background: var(--surface-2); border-radius: 8px; padding: 14px 16px; margin: 12px 0; }
.import__head { display: flex; justify-content: space-between; align-items: center; }
.import__head h3 { font-size: 15px; }
.import textarea { margin-top: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.import .report-table { background: var(--surface); }
input[type="file"] { font-size: 13px; }

.nl-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; margin-top: 8px; }
.nl-editor__form { display: flex; flex-direction: column; gap: 16px; }
.nl-editor__preview { overflow: hidden; position: sticky; top: 16px; }
.nl-preview { width: 100%; height: calc(100vh - 120px); min-height: 600px; border: 0; display: block; background: #fff; }
@media (max-width: 1000px) { .nl-editor { grid-template-columns: 1fr; } .nl-editor__preview { position: static; } }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .crumbs { margin: 0; }
.toolbar select { width: auto; }
.report { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 36px 40px; }
@media (max-width: 640px) { .report { padding: 20px 16px; } }
.letterhead { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px;
  border-bottom: 3px solid var(--gold); margin-bottom: 24px; flex-wrap: wrap; }
.letterhead__logo { height: 64px; width: auto; }
.letterhead__contact { font-size: 13px; color: var(--ink-2); text-align: right; line-height: 1.5; }
.report-title h1 { font-size: 28px; }
.report-title__client { font-size: 18px; font-weight: 600; margin-top: 4px; }
.report-summary { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin: 28px 0 8px; padding: 20px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.report-section { margin-top: 32px; break-inside: avoid; }
.report-section h2 { font-size: 19px; margin-bottom: 8px; }
.report-table { font-size: 13px; }
.report-table td, .report-table th { padding: 7px 10px; }
.report-table .group-row td { font-weight: 700; color: var(--ink-2); background: var(--surface-2); font-size: 12px; padding-top: 6px; padding-bottom: 6px; }
.report-table .subtotal td { font-weight: 600; border-top: 1px solid var(--axis); }
.report-table .total td { font-weight: 800; font-size: 14px; border-top: 2px solid var(--ink); }
.report-table .scenario td { color: var(--ink-2); }
.plain-list { margin: 0; padding-left: 18px; font-size: 14px; }
.plain-list li { margin: 4px 0; }
.report-footer { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.legend__key--box { height: 10px; width: 10px; border-radius: 2px; top: 0; }

@media print {
  @page { size: letter; margin: 0.55in; }
  :root, :root[data-theme="dark"] { color-scheme: light; --page: #fff; --surface: #fff; --surface-2: #f3f1f7; --ink: #1b2430; --ink-2: #444c58;
    --muted: #5f6775; --hairline: #d9dde3; --axis: #b9bfc8;
    --s1: #6a42b8; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300;
    --up-bad: #dc2626; --down-good: #0f8a0f; --trend-low: #0f8a0f; --trend-steady: #2563eb; --trend-high: #dc2626; }
  body { background: #fff; font-size: 11pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar, .no-print, .tooltip { display: none !important; }
  main, main.wrap { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .report { border: none; padding: 0; border-radius: 0; }
  .report-section, .report-summary, .report-table tr { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  a { color: inherit; }
}

.book { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; }
.rail { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow-y: auto; font-size: 15px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 6px; }
.rail__group { border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 6px; }
.rail__heading { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); margin: 8px 12px 2px; }
.rail > .rail__link, .rail__link:only-child { font-family: var(--font-display); font-weight: 800; }
.rail__heading ~ .rail__link { padding-left: 22px; font-size: 14.5px; color: var(--ink-2); }
.rail__link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; padding: 7px 12px;
  border-radius: 7px; color: var(--ink); line-height: 1.25; }
.rail__link:hover { background: var(--surface-2); text-decoration: none; }
.rail__link[aria-current="true"] { background: var(--pick-soft); color: var(--pick-soft-ink, var(--ink)); font-weight: 700; }
.rail__chg { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; flex: none; }
.rail__chg--up { color: var(--up-bad); }
.rail__chg--down { color: var(--down-good); }
.rail__chg--flat { color: var(--muted); }

.book__intro h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.book__intro p { color: var(--ink-2); font-size: 16px; max-width: 64ch; margin-top: 8px; }
.book__controls { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  background: var(--page); padding: 12px 0; margin: 22px 0 4px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.seg { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.book__controls .seg { background: var(--surface); border: 1px solid var(--hairline); border-radius: 9px; padding: 3px; }
.seg-field { display: inline-flex; align-items: center; gap: 10px; }
.seg--wrap { margin: 2px 0 10px; }
.seg__label { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--ink); margin-right: 8px; }
.seg-field .seg__label { margin-right: 0; }
.seg__btn { font: inherit; font-size: 14px; min-height: 34px; padding: 6px 11px; border-radius: 7px; border: 1px solid transparent; background: none;
  color: var(--ink-2); cursor: pointer; }
.seg__btn:hover { background: var(--surface-2); color: var(--ink); }
.seg__btn[aria-pressed="true"] { background: var(--pick); color: var(--pick-ink); font-weight: 600; }
.book__search { flex: 1 1 130px; max-width: 260px; margin-left: auto; }
.book__empty { padding: 48px 0; color: var(--ink-2); font-size: 16px; }

.book__group-title { font-size: 31px; font-weight: 800; letter-spacing: -0.015em; margin-top: 60px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.chapter { padding: 34px 0 6px; scroll-margin-top: 80px; }
.chapter__head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.chapter h2 { font-size: 24px; font-weight: 700; }
.chapter h3 { font-size: 19px; font-weight: 700; }
.chapter__figures { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); }
.fig__n { font-weight: 600; font-variant-numeric: tabular-nums; }
.fig__n--up { color: var(--up-bad); }
.fig__n--down { color: var(--down-good); }
.chapter__summary { color: var(--ink-2); font-size: 15px; max-width: 70ch; margin: 6px 0 16px; }
.chapter__chart { margin: 0 0 18px; }
.book-table { font-size: 14px; }
.book-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }
.book-panel .book-table th { background: var(--surface-2); }
.book-table th { border-bottom: 1px solid var(--axis); }
.book-panel:has(> .book-table--compact) { margin-top: 14px; }
.book-table--compact { font-size: 13.5px; }
.book-table--compact td { padding: 8px 14px; }

.rows__head, .row__main { display: grid; grid-template-columns: minmax(0, 2.3fr) 104px minmax(150px, 1.6fr) 104px 128px; gap: 22px; align-items: center; }
.rows { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }
.rows__head { font-size: 12.5px; color: var(--muted); padding: 10px 12px 9px; border-bottom: 1px solid var(--axis); background: var(--surface-2); }
.rows .row:last-child { border-bottom: none; }
.row { border-bottom: 1px solid var(--hairline); }
.row__main { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 15px 12px; cursor: pointer; }
.row__main:hover { background: var(--surface-2); }
.row__name strong { display: block; font-weight: 600; font-size: 15px; }
.row__spec { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.row__price { font-size: 17px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row__unit { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.row__spark { height: 34px; }
.row__note { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 13px; }
.row__chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin-top: -4px; transition: transform .15s; flex: none; }
.is-open .row__chev { transform: rotate(-135deg); margin-top: 3px; }
.row__detail { padding: 2px 12px 22px; }
.row__facts { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.note { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.note--good { color: var(--down-good); }
.note--high { color: var(--trend-high); }
.note--muted { color: var(--muted); }

.strip__track { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.strip__mark { position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; transform: translateY(-50%);
  background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; }
.strip__ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 721px) and (max-width: 1180px) {
  .rows__head, .row__main { grid-template-columns: minmax(0, 2.2fr) 96px minmax(140px, 1.4fr) 124px; gap: 18px; }
  .row__spark, .rows__head > span:nth-child(4) { display: none; }
}
@media (max-width: 960px) {
  .book { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .book__main { min-width: 0; }
  .rail { position: sticky; top: 0; z-index: 4; max-height: none; display: flex; gap: 4px; overflow-x: auto; white-space: nowrap;
    background: var(--page); padding: 8px 16px; border-bottom: 1px solid var(--hairline); margin: 0 -16px 18px; }
  .rail { border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; font-size: 14px; }
  .rail__group { display: contents; }
  .rail__link { flex: none; min-height: 36px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); }
  .rail__heading ~ .rail__link { padding-left: 12px; }
  .rail__link[aria-current="true"] { background: var(--pick); color: var(--pick-ink); border-color: var(--pick); }
  .rail__heading, .rail__chg { display: none; }
  .book__controls { position: static; }
  .seg-field .seg__label { min-width: 52px; }
  .rail { scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
}
@media (max-width: 720px) {
  .rows__head { display: none; }
  .row__main { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "range range" "spark note"; gap: 10px 16px; }
  .row__name { grid-area: name; } .row__price { grid-area: price; } .row__range { grid-area: range; }
  .row__spark { grid-area: spark; } .row__note { grid-area: note; }
  .book__search { max-width: none; margin-left: 0; width: 100%; }
  .book-table:not(.book-table--compact) th:nth-child(2), .book-table:not(.book-table--compact) td:nth-child(2), .book-table:not(.book-table--compact) th:nth-child(3), .book-table:not(.book-table--compact) td:nth-child(3) { display: none; }
  .book-table .row-sub { font-size: 12px; }
  .freshness { font-size: 12px; }
}


.theme-toggle { font: inherit; font-size: 13px; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.theme-toggle:focus-visible { outline-color: var(--gold); }
@media print { .theme-toggle { display: none; } }

.explain-link { margin-top: 6px; padding: 2px 0; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.explain { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--hairline);
  border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28); }
.explain::backdrop { background: rgba(20, 22, 26, 0.55); }
.explain__body { padding: 28px 32px 32px; }
.explain__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.explain__head h2 { font-size: 22px; }
.explain__intro { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.explain__steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.explain__step { position: relative; padding: 0 0 22px 40px; counter-increment: step; }
.explain__step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tint); color: var(--brand-ink); font-family: var(--font-display); font-weight: 800; font-size: 14px;
  display: grid; place-items: center; }
.explain__step:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 32px; bottom: 6px; width: 1px; background: var(--hairline); }
.explain__step h3 { font-size: 16px; line-height: 26px; margin-bottom: 4px; }
.explain__step p, .explain__step .plain-list { font-size: 14.5px; line-height: 1.55; max-width: 64ch; }
.explain__step p + p, .explain__step .plain-list + p, .explain__step p + .plain-list, .explain__step .table-wrap + p { margin-top: 8px; }
.explain__step .table-wrap { margin: 10px 0 4px; }
.explain__table { width: auto; min-width: 60%; }
.explain__expected td { font-weight: 700; }
.explain__example { margin-top: 12px; }
@media (max-width: 640px) {
  .explain__body { padding: 20px 16px 24px; }
  .explain__head h2 { font-size: 19px; }
  .explain__step { padding-left: 34px; }
  .explain { width: calc(100vw - 16px); }
  .explain__step .table-wrap { margin-left: -34px; }
  .explain__table { width: 100%; font-size: 12px; }
  .explain__table td, .explain__table th { padding: 6px 4px; }
  .explain__table .row-sub { font-size: 11.5px; }
}
@media screen and (max-width: 640px) { .report-section > .report-table { display: block; overflow-x: auto; } }
@media (min-width: 961px) and (max-height: 880px) {
  .rail { scrollbar-width: thin; }
  .rail__link { min-height: 32px; padding-top: 5px; padding-bottom: 5px; }
  .rail__group { margin-top: 4px; padding-top: 4px; }
  .rail__heading { margin-top: 6px; }
}

.trend-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.trend-key__item { display: inline-flex; align-items: center; gap: 7px; }
.trend-key__swatch { width: 18px; height: 3px; border-radius: 2px; }

.sources .source { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 22px 24px; }
.sources .source + .source { border-top: 1px solid var(--hairline); }
.source__head h3 { font-size: 16px; font-weight: 800; }
.source__when { margin-top: 6px; font-size: 13px; color: var(--muted); }
.source__body p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.source__body p + p { margin-top: 8px; }
.sources__sub { font-size: 17px; font-weight: 800; margin: 30px 0 10px; }
.sources__terms { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: 14.5px; line-height: 1.55; }
.sources__terms dt { font-weight: 700; color: var(--ink); }
.sources__terms dd { margin: 0; color: var(--ink-2); max-width: 72ch; }
.sources__limits { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--muted); max-width: 80ch; }
@media (max-width: 720px) {
  .sources .source { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 16px; }
  .sources__terms { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sources__terms dd { margin-bottom: 10px; }
}

.deals-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: end;
  background: #161b22; color: #eef0f2; border-radius: 12px 12px 0 0; padding: 30px 32px 26px; }
:root[data-theme="dark"] .deals-hero { background: #0d0f12; box-shadow: inset 0 0 0 1px var(--hairline); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .deals-hero { background: #0d0f12; box-shadow: inset 0 0 0 1px var(--hairline); } }
.deals-hero__eyebrow { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fdd023; }
.deals-hero__big { font-family: var(--font-display); font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-top: 8px; color: #fff; }
.deals-hero__label { margin-top: 8px; font-size: 15px; color: #c3c8ce; }
.deals-hero__facts { font-size: 14.5px; line-height: 1.55; color: #d5d9de; max-width: 58ch; }
.deals-hero__facts p + p { margin-top: 8px; }
.deals-hero__facts .muted { color: #9aa1ab; }

.ruler { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); list-style: none; margin: 0 0 8px; padding: 0;
  background: var(--surface); border: 1px solid var(--hairline); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; }
.ruler__day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 2px 9px; min-height: 76px;
  border-left: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.ruler__day:first-child { border-left: 0; }
.ruler__dow { font-size: 12px; color: var(--muted); }
.ruler__num { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); }
.ruler__name { font-size: 11.5px; line-height: 1.2; text-align: center; color: var(--ink-2); font-weight: 600; }
.ruler__day--key { box-shadow: inset 0 3px 0 #fdd023; }
.ruler__day.is-past .ruler__num, .ruler__day.is-past .ruler__name { color: var(--muted); }
.ruler__day.is-today { background: var(--pick); }
.ruler__day.is-today .ruler__dow, .ruler__day.is-today .ruler__num, .ruler__day.is-today .ruler__name { color: var(--pick-ink); }

.deals__toolbar { margin-top: 22px; gap: 10px 22px; }
.deals__find { display: flex; gap: 8px; flex: 1 1 380px; min-width: 0; }
.deals__find .deals__search { flex: 1 1 auto; min-width: 0; }
.deals__lookup-btn { white-space: nowrap; }
.deals__field { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 14px; font-weight: 800; }
.deals__field select { width: auto; max-width: 230px; font-family: var(--font-body); font-weight: 400; }
.deals__matches { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.deals__matches .link-button { font-size: 15px; padding: 0; }
.deals__section h2 { font-size: 24px; font-weight: 800; }
.deals__head-side { display: inline-flex; align-items: baseline; gap: 16px; }
.deals__copy { font-size: 14px; padding: 0; }
.deals__count { font-size: 14px; color: var(--muted); }
.deals__empty { padding: 22px 24px; color: var(--ink-2); font-size: 14.5px; }
.deals__none { display: grid; gap: 12px; justify-items: start; margin-top: 12px; }
.deals-hero__hit { color: #fdd023; font-weight: 600; }

.deal { border-bottom: 1px solid var(--hairline); }
.deal:last-child { border-bottom: 0; }
.deal-list__head { display: grid; grid-template-columns: 48px minmax(0, 2.4fr) 124px 112px 128px 16px; gap: 18px; align-items: center; }
.deal__top { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: center; padding-left: 16px; }
.deal__top:hover { background: var(--surface-2); }
.deal__main { display: grid; grid-template-columns: minmax(0, 2.4fr) 124px 112px 128px 16px; gap: 18px; align-items: center;
  width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 14px 16px 14px 0; cursor: pointer; }
.deal__zoom { display: block; padding: 0; border: 0; background: none; border-radius: 6px; cursor: zoom-in; }
.deal__zoom:hover .deal__img { box-shadow: inset 0 0 0 1px var(--axis), 0 0 0 2px var(--pick); }
.deal__zoom:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.deal-list__head { padding: 10px 16px 8px; border-bottom: 1px solid var(--hairline); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.deal-list__head span:nth-child(n+3) { text-align: right; white-space: nowrap; }
.deal.is-hit { box-shadow: inset 4px 0 0 var(--pick); }
.deal__img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #fff; padding: 3px;
  box-shadow: inset 0 0 0 1px var(--hairline); }
.deal__img--none { display: block; background: var(--surface-2); }
.deal__name strong { display: block; font-weight: 600; font-size: 15.5px; }
.deal__spec { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.deal__rating { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.deal__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--axis); color: var(--ink-2); white-space: nowrap; }
.tag--best { background: var(--pick); border-color: var(--pick); color: var(--pick-ink); }
.tag--sale { border-color: transparent; color: var(--trend-low); background: color-mix(in srgb, var(--trend-low) 13%, transparent); }
.tag--quiet { border-color: transparent; padding-left: 0; font-weight: 500; color: var(--muted); }
.deal__price, .deal__col { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deal__price strong { display: block; font-size: 19px; font-weight: 700; }
.deal__price span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.deal__col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 15px; }
.deal__sub { font-size: 12.5px; color: var(--muted); }
.deal__target { font-weight: 700; color: var(--ink); }
.deal__togo { font-size: 14px; color: var(--ink-2); }
.deal__off { font-family: var(--font-display); font-weight: 800; font-size: 14px; white-space: nowrap;
  color: var(--trend-low); background: color-mix(in srgb, var(--trend-low) 13%, transparent); padding: 5px 10px; border-radius: 6px; }
.deal__spark { display: block; height: 34px; }
.deal__detail { padding: 0 16px 22px 82px; }
.deal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 4px 0 8px; }
.deal__links .link-button { font-size: 13px; padding: 0; color: var(--up-bad); }
.deal__target-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 12px 0 14px; padding: 12px 14px;
  background: var(--surface-2); border-radius: 8px; }
.deal__target-form label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.deal__dollar { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.deal__target-input { width: 120px; }
.deal__target-form .button { padding: 7px 14px; }
.chart__note { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.chart .band { fill: color-mix(in srgb, #fdd023 20%, transparent); }
.chart text.band__label { fill: var(--ink-2); font-weight: 600; }

.deals__flat summary { cursor: pointer; list-style-position: outside; padding: 4px 0; }
.deals__flat-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.deals__flat[open] summary { margin-bottom: 4px; }
.deals__flat .deal-list { margin-top: 12px; }

.deals__lookup { padding-top: 26px; }
.lookup__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.lookup__head h2 { font-size: 22px; font-weight: 800; }
.lookup__head .small { margin-top: 4px; }
.lookup__list { border-color: var(--axis); }
.lookup__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.lookup__row:last-child { border-bottom: 0; }
.lookup__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.lookup__main .small { margin-top: 3px; }
.lookup__verdict { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.lookup__verdict .deal__off { padding: 2px 7px; font-size: 13px; }
.lookup__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.lookup__price { font-size: 19px; font-variant-numeric: tabular-nums; }
.lookup__side .button { padding: 7px 14px; white-space: nowrap; }
.lookup__add { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px 12px; margin-top: 12px;
  padding: 12px 14px; background: var(--surface-2); border-radius: 8px; }
.lookup__add label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.lookup__add-go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lookup__add > .small:last-child:empty { display: none; }
.zoom { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--hairline);
  border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32); }
.zoom::backdrop { background: rgba(20, 22, 26, 0.7); }
.zoom__body { display: grid; gap: 14px; padding: 20px 22px 22px; }
.zoom__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.zoom__head h2 { font-size: 19px; font-weight: 800; }
.zoom__head .small { margin-top: 3px; max-width: 70ch; }
.zoom__close { font-size: 14px; }
.zoom__stage { position: relative; display: grid; place-items: center; background: #fff; border-radius: 8px; height: min(62vh, 560px); }
.zoom__img { display: block; max-width: calc(100% - 96px); max-height: calc(min(62vh, 560px) - 24px); object-fit: contain; }
.zoom__nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 1px solid #c3c8d0;
  background: #fff; cursor: pointer; }
.zoom__nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 2px solid #1b2430;
  border-bottom: 2px solid #1b2430; }
.zoom__nav--prev { left: 12px; } .zoom__nav--prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.zoom__nav--next { right: 12px; } .zoom__nav--next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.zoom__nav:hover { border-color: #1b2430; }
.zoom__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; }
.zoom__foot a { margin-left: auto; }
.zoom__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.zoom__strip { display: flex; gap: 8px; flex-wrap: wrap; }
.zoom__pick { width: 52px; height: 52px; padding: 3px; border-radius: 6px; border: 1px solid var(--hairline); background: #fff; cursor: pointer; }
.zoom__pick img { width: 100%; height: 100%; object-fit: contain; }
.zoom__pick[aria-current="true"] { border-color: var(--pick); box-shadow: 0 0 0 2px var(--pick); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 721px) and (max-width: 1100px) {
  .deal-list__head { grid-template-columns: 44px minmax(0, 1.6fr) 108px 100px 104px 16px; gap: 14px; }
  .deal__top { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .deal__main { grid-template-columns: minmax(0, 1.6fr) 108px 100px 104px 16px; gap: 14px; }
  .deal__img { width: 44px; height: 44px; }
}
@media (max-width: 720px) {
  .deals-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 18px; }
  .deals-hero__big { font-size: 48px; }
  .ruler__day { min-height: 64px; padding: 8px 0; }
  .ruler__num { font-size: 15px; }
  .ruler__dow { font-size: 10.5px; }
  .ruler__name { display: none; }
  .ruler__day--key .ruler__dow { color: var(--ink); font-weight: 700; }
  .deals__toolbar { position: static; }
  .deals__find { flex-basis: 100%; }
  .deals__field { flex: 1 1 40%; min-width: 0; }
  .deals__field > span { display: none; }
  .deals__field select { max-width: none; width: 100%; min-width: 0; }
  .deal-list__head { display: none; }
  .deal__top { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-left: 12px; align-items: start; }
  .deal__top > .deal__zoom, .deal__top > .deal__img { margin-top: 14px; }
  .deal__main { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name a" "b c"; gap: 8px 12px; padding: 14px 12px 14px 0; align-items: start; }
  .deal__img { width: 44px; height: 44px; }
  .deal__name { grid-area: name; }
  .deal__main > :nth-child(2) { grid-area: a; }
  .deal__main > :nth-child(3) { grid-area: b; justify-self: start; flex-direction: row; align-items: center; gap: 8px; }
  .deal__main > :nth-child(4) { grid-area: c; justify-self: end; }
  .deal__spark { width: 110px; }
  .deal__main > .row__chev { display: none; }
  .deal__detail { padding: 0 12px 18px; }
  .lookup__row { grid-template-columns: 44px minmax(0, 1fr); }
  .lookup__side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .lookup__add { grid-template-columns: minmax(0, 1fr); }
  .zoom__body { padding: 16px; }
  .zoom__stage { height: 52vh; }
  .zoom__img { max-width: calc(100% - 24px); max-height: calc(52vh - 72px); }
  .zoom__nav { top: auto; bottom: 10px; margin-top: 0; }
  .zoom__pick { width: 44px; height: 44px; }
}
.deals__section .sources__terms { margin-top: 14px; }
@media (max-width: 720px) {
  .freshness { text-align: left; flex-basis: 100%; }
}
