/* MetroMitra — styles. Mobile first; two columns from 900px. */
:root {
  --bg: #f5f3f8;
  --panel: #ffffff;
  --ink: #1d1a24;
  --muted: #6b6578;
  --line: #e4e0ea;
  --brand: #5b2a86;
  --brand-ink: #ffffff;
  --purple: #8e3fa8;
  --aqua: #0fa3b1;
  --good: #1f8a4c;
  --good-bg: #e6f5ec;
  --warn: #9a6200;
  --warn-bg: #fff4dc;
  --bad: #b3261e;
  --bad-bg: #fde8e6;
  --shadow: 0 1px 2px rgba(30, 20, 50, .06), 0 4px 16px rgba(30, 20, 50, .06);
  --radius: 14px;
  --heat-good: #2f9e5f;
  --heat-mixed: #e9a23b;
  --heat-poor: #d9483b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121a;
    --panel: #1e1b26;
    --ink: #ece8f3;
    --muted: #a29bb1;
    --line: #322d3d;
    --brand: #a874d6;
    --brand-ink: #14121a;
    --purple: #b56ad0;
    --aqua: #2cc3d0;
    --good: #5fd08f;
    --good-bg: #173324;
    --warn: #f0b54a;
    --warn-bg: #3a2c10;
    --bad: #ff8a80;
    --bad-bg: #3d1a18;
    --shadow: none;
    --heat-good: #3fbf78;
    --heat-mixed: #f0b54a;
    --heat-poor: #f06459;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.accessible { --access-tap-size: 44px; }
html.accessible body { font-size: 18px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari",
        "Nirmala UI", "Kohinoor Devanagari", sans-serif;
}
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

/* ---------- header ---------- */
.top {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 16px; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple) 0 50%, var(--aqua) 50% 100%);
  color: #fff; font-weight: 800; font-size: 22px;
}
.brand h1 { font-size: 22px; }
.mr { font-weight: 500; font-size: 15px; color: var(--muted); margin-left: 4px; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.top-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lang-btn {
  border: 1px solid var(--brand); color: var(--brand); background: var(--panel); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.lang-btn:hover { background: var(--brand); color: var(--brand-ink); }
.help-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); font-weight: 800; cursor: pointer;
}
.help-btn:hover { border-color: var(--brand); color: var(--brand); }
.access-btn {
  border: 1px solid var(--aqua); color: var(--ink); background: var(--panel); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.access-btn[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.service {
  font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--line);
}
.service .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--good); }
.service.closed .dot { background: var(--bad); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; max-width: 1200px; margin: 0 auto; padding: 0 16px 12px; }
.tabs button {
  flex: 1 1 0; min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; font-weight: 700; text-align: left;
}
.tabs button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.tabs button[aria-selected="true"] small { color: inherit; opacity: .8; }
@media (min-width: 900px) { .tabs button { flex: 0 0 auto; } }

/* ---------- layout ---------- */
.layout {
  display: grid; gap: 16px; padding: 0 16px 16px; max-width: 1200px; margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
  .planner { grid-column: 1; grid-row: 1; }
  .results { grid-column: 1; grid-row: 2; }
  .savings { grid-column: 1; grid-row: 3; }
  .map-panel { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 16px; }
  .gap-layout { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
  .gap-side { grid-column: 1; grid-row: 1 / span 2; }
  .gap-map-panel { grid-column: 2; grid-row: 1; }
  .report { grid-column: 2; grid-row: 2; }
}
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; min-width: 0;
}

/* ---------- form ---------- */
#plan-form { position: relative; display: grid; gap: 10px; }
.field { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0; }
.input-row { display: flex; gap: 8px; }
input[list], input[type=time], select {
  width: 100%; min-width: 0; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg);
}
input:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
html.accessible :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.icon-btn {
  flex: none; width: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; font-size: 18px;
}
.swap {
  position: absolute; right: 6px; top: 64px; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 16px; line-height: 1;
}
.options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.options .mile { grid-column: 1 / -1; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { flex: 1; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); font-size: 13px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 2px; cursor: pointer; white-space: nowrap; }
.seg input:checked + span { background: var(--brand); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }
.primary {
  border: 0; border-radius: 10px; padding: 13px; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; cursor: pointer;
}
.primary:hover { filter: brightness(1.08); }
.error { margin: 0; color: var(--bad); font-size: 13px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 12px; color: var(--muted); }
.quick button {
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 10px;
  cursor: pointer; font-size: 12px;
}

/* ---------- results ---------- */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 20px; }
.stat small { color: var(--muted); font-size: 12px; }

.verdict { border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.verdict.metro { background: var(--good-bg); color: var(--good); }
.verdict.tradeoff, .verdict.notyet { background: var(--warn-bg); color: var(--warn); }
.verdict.road, .verdict.closed { background: var(--bad-bg); color: var(--bad); }

.steps { list-style: none; margin: 0 0 14px; padding: 0; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; position: relative; }
.step::before {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: -8px; width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step .ico {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  background: var(--bg); border: 2px solid var(--line); position: relative; z-index: 1;
}
.step.ride .ico { color: #fff; border-color: transparent; font-size: 11px; font-weight: 700; }
.step .what { min-width: 0; }
.step .what b { display: block; }
.step .what small { color: var(--muted); display: block; overflow-wrap: anywhere; }
.step .when { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.report-icon { display: inline-block; margin-left: 4px; font-size: 14px; vertical-align: baseline; }
.report-problem { display: block; width: fit-content; }
.report-problem, .avoid-station { border: 0; padding: 2px 6px; margin: 3px 4px 0 0; border-radius: 5px; background: var(--bg); color: var(--brand); font: inherit; font-size: 12px; cursor: pointer; }
.lift-warning { display: block; color: var(--bad); margin-top: 4px; }
.chip { display: inline-block; color: #fff; border-radius: 6px; padding: 0 6px; font-size: 12px; font-weight: 700; }

.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare td + td { white-space: nowrap; }
.compare th { font-size: 12px; color: var(--muted); font-weight: 600; }
.compare tr.best td { font-weight: 700; }
.results h3 { font-size: 14px; margin: 16px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.alt { font-size: 13px; color: var(--muted); margin: 4px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.took { border: 0; background: var(--good); color: var(--panel); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; font-weight: 600; }
.took:disabled { opacity: .6; cursor: default; }
.share { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; }

/* ---------- map ---------- */
.map-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.map-head h2 { font-size: 16px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
#map { width: 100%; height: auto; display: block; touch-action: manipulation; }
#map .track { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
#map.has-route .track { opacity: .25; }
#map .route { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
#map .stn { fill: var(--panel); stroke-width: 3; cursor: pointer; }
#map .stn:hover { stroke-width: 5; }
#map .stn.xchg { stroke: var(--ink); }
#map .stn.sel { fill: var(--ink); }
#map .map-report-icons { font-size: 16px; pointer-events: none; }   /* the station under it stays tappable */
#map .lbl { font-size: 11px; fill: var(--ink); paint-order: stroke; stroke: var(--panel); stroke-width: 3px; pointer-events: none; }
@media (max-width: 600px) { #map .lbl { font-size: 17px; stroke-width: 4px; } }
html.accessible #map .lbl, html.accessible #gap-map .lbl { font-size: 20px; stroke-width: 5px; }
#map .pin { stroke: var(--panel); stroke-width: 2; }
#map .mile { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 4; opacity: .7; }
.hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- savings ---------- */
.link-btn { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 4px; }
.savings .summary { margin-bottom: 8px; }
.savings .empty { margin: 0; color: var(--muted); font-size: 13px; }
.trip-log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.trip-log li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.trip-log li:last-child { border-bottom: 0; }
.trip-log span:first-child { min-width: 0; overflow-wrap: anywhere; }
.trip-log .gain { color: var(--good); white-space: nowrap; }
.trip-log .loss { color: var(--muted); white-space: nowrap; }

/* ---------- gap map ---------- */
.headline .big { margin: 0; font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.headline .big .arrow { color: var(--muted); font-size: 28px; }
.headline .big .after { color: var(--good); }
.headline .caption { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.headline .caption b { color: var(--ink); }
.bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); }
.bar i { display: block; height: 100%; transition: width .4s; }
.bar .good, .key .good { background: var(--heat-good); }
.bar .mixed, .key .mixed { background: var(--heat-mixed); }
.bar .poor, .key .poor { background: var(--heat-poor); }
.key { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 8px 0 16px; font-size: 12px; color: var(--muted); }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.gap-side h3 { font-size: 15px; margin: 18px 0 4px; }
.note { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.recs { list-style: none; margin: 8px 0; padding: 0; }
.recs li { border-bottom: 1px solid var(--line); }
.recs li.muted { padding: 8px 0; font-size: 13px; border: 0; }
.recs label { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 2px; cursor: pointer; }
.recs input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.rec-name { flex: 1 1 9em; min-width: 0; font-weight: 600; }
.rec-gain { color: var(--good); font-size: 13px; white-space: nowrap; margin-left: auto; }   /* wraps under the name on phones */
.rec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.small-btn { padding: 8px 14px; font-size: 13px; }
.small-label { width: 100%; font-size: 12px; color: var(--muted); }
.rec-actions select { flex: 1 1 160px; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.cell-info { margin-top: 16px; border-top: 2px solid var(--line); padding-top: 8px; }
.cell-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cell-head h3 { margin: 6px 0; }
.cell-table td small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; overflow-wrap: anywhere; }
.cell-table td:nth-child(2) { text-align: center; }

#gap-map { width: 100%; height: auto; display: block; touch-action: manipulation; background: var(--bg); border-radius: 10px; }
#gap-map .cell { opacity: .55; cursor: pointer; stroke: var(--panel); stroke-width: .4; }
#gap-map .cell:hover { opacity: .85; }
#gap-map .cell.good { fill: var(--heat-good); }
#gap-map .cell.mixed { fill: var(--heat-mixed); }
#gap-map .cell.poor { fill: var(--heat-poor); }
#gap-map .cell.none { fill: var(--line); }
#gap-map .cell.sparse { opacity: .2; }
.key .sparse { background: var(--heat-good); opacity: .3; }
#gap-map .cell.sel { opacity: 1; stroke: var(--ink); stroke-width: 2; }
#gap-map .track { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#gap-map .planned-track { stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .9; }
#gap-map .stn { fill: var(--panel); stroke-width: 2.5; cursor: pointer; }
#gap-map .stn:hover { stroke-width: 4; }
#gap-map .stn.feeder { fill: var(--good); stroke: var(--panel); }
#gap-map .catch { fill: var(--good); fill-opacity: .07; stroke: var(--good); stroke-dasharray: 4 4; stroke-width: 1.5; pointer-events: none; }
#gap-map .hub { fill: var(--ink); stroke: var(--panel); stroke-width: 1.5; }
#gap-map .lbl { font-size: 11px; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; pointer-events: none; }
#gap-map .hub-lbl { font-weight: 600; }
#gap-map .feeder-lbl { fill: var(--good); font-weight: 700; }
@media (max-width: 600px) { #gap-map .lbl { font-size: 15px; } }
@media (max-width: 899px) { .gap-map-panel { order: -1; } }
.report-table td:nth-child(n+2), .report-table th:nth-child(n+2) { white-space: nowrap; }
.report-table .pct { font-weight: 700; }
.report-table .good { color: var(--good); }
.report-table .poor { color: var(--bad); }
.report-table td small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.report { overflow-x: auto; }

/* ---------- sharing and the guide ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
dialog.qr-dialog {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--panel); color: var(--ink);
  width: min(420px, calc(100vw - 32px)); text-align: center;
}
dialog.qr-dialog::backdrop { background: rgba(10, 8, 16, .65); }
dialog.report-dialog { width: min(360px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--ink); background: var(--panel); }
dialog.report-dialog::backdrop { background: rgba(10, 8, 16, .65); }
/* Offline Ask panel stays compact and above the fixed mobile controls. */
.ask-launcher { position: fixed; z-index: 30; right: 18px; bottom: 18px; border: 0; border-radius: 999px; padding: 12px 17px; color: var(--brand-ink); background: var(--brand); box-shadow: 0 5px 20px rgba(0,0,0,.25); font: inherit; font-weight: 700; cursor: pointer; }
dialog.ask-dialog { position: fixed; z-index: 31; inset: auto 18px 76px auto; margin: 0; width: min(370px, calc(100vw - 28px)); height: min(560px, calc(100dvh - 100px)); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--ink); background: var(--panel); box-shadow: 0 10px 40px rgba(0,0,0,.25); overflow:hidden; flex-direction:column; }
dialog.ask-dialog[open] { display:flex; }
dialog.ask-dialog::backdrop { background: rgba(10,8,16,.38); }
.ask-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ask-head h2 { margin:0; font-size:18px; }
.ask-messages { display:flex; flex:1; flex-direction:column; gap:8px; overflow:auto; min-height:80px; padding:12px 2px; }
.ask-bubble { max-width:92%; padding:9px 11px; border-radius:12px; line-height:1.4; overflow-wrap:anywhere; }
.ask-user { align-self:flex-end; background:var(--brand); color:var(--brand-ink); }
.ask-bot { align-self:flex-start; background:var(--bg); color:var(--ink); border:1px solid var(--line); }
.ask-action { display:block; margin-top:7px; }
.ask-chips { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 10px; }
.ask-chips button { border:1px solid var(--line); border-radius:999px; padding:5px 8px; color:var(--ink); background:var(--panel); font:inherit; font-size:12px; cursor:pointer; }
.ask-form { display:flex; gap:7px; }
.ask-form input { min-width:0; flex:1; border:1px solid var(--line); border-radius:8px; padding:9px; color:var(--ink); background:var(--bg); font:inherit; }
.ask-form button { border:0; border-radius:8px; padding:8px 12px; color:var(--brand-ink); background:var(--brand); font:inherit; cursor:pointer; }
.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; }
@media (max-width: 600px) {
  .ask-launcher { right:12px; bottom:12px; }
  dialog.ask-dialog { inset:auto 10px 10px; width:auto; height:calc(100dvh - 24px); }
}
dialog.report-dialog h2 { margin: 0 0 14px; font-size: 18px; }
.report-choices { display: grid; gap: 8px; margin-bottom: 12px; }
.report-choices button { text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--ink); background: var(--bg); font: inherit; cursor: pointer; }
dialog.qr-dialog h2 { font-size: 18px; }
.qr-code svg { display: block; width: min(320px, 72vw); height: auto; margin: 14px auto; border-radius: 8px; }
.qr-url { margin: 0 0 14px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.guide {
  position: fixed; z-index: 50; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px));
  background: var(--panel); border: 1px solid var(--brand); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(20, 10, 40, .3); padding: 14px 16px;
}
.guide h3 { margin: 2px 0 4px; font-size: 17px; }
.guide p { margin: 0; }
.guide-step { font-size: 12px; color: var(--muted); }
.guide-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.guide-actions .spacer { flex: 1; }
.guide-focus { outline: 3px solid var(--brand) !important; outline-offset: 4px; border-radius: 10px; }
@media (max-width: 600px) { .guide { left: 12px; right: 12px; bottom: 12px; width: auto; } }

@media print {
  body { background: #fff; }
  .guide, .help-btn, .share-row, dialog, .tabs, .gap-side .options, .gap-side h3, .gap-side .note, .recs, .rec-actions, .cell-info,
  #view-plan, .service, #print-report, .hint, .foot { display: none !important; }
  .layout { display: block; padding: 0; }
  .panel { box-shadow: none; border: 0; break-inside: avoid; padding: 8px 0; }
  .gap-map-panel { position: static; }
  #gap-map { max-width: 520px; margin: 0 auto; }
}

html.accessible button { min-height: var(--access-tap-size); }
html.accessible select, html.accessible input:not([type="radio"]):not([type="checkbox"]) { min-height: var(--access-tap-size); }
html.accessible input[type="radio"], html.accessible input[type="checkbox"] { width: var(--access-tap-size); height: var(--access-tap-size); }
html.accessible .seg label { min-height: var(--access-tap-size); }
html.accessible .seg span { min-height: var(--access-tap-size); display: grid; place-items: center; }
html.accessible .recs label { min-height: var(--access-tap-size); }
html.accessible .planned-toggle label { min-height: var(--access-tap-size); }
html.accessible .field label, html.accessible .field legend, html.accessible .service,
html.accessible .hint, html.accessible .foot, html.accessible .note, html.accessible .key,
html.accessible .legend, html.accessible .stat small, html.accessible .step .when,
html.accessible .chip, html.accessible .error, html.accessible .alt, html.accessible .quick,
html.accessible .quick button, html.accessible .compare, html.accessible .compare th,
html.accessible .small-btn, html.accessible .link-btn, html.accessible .trip-log,
html.accessible .savings .empty, html.accessible .cell-table td small,
html.accessible .report-table td small { font-size: 15px; }
html.accessible .results h3, html.accessible .gap-side h3 { font-size: 17px; }
html.accessible #map .stn:focus-visible, html.accessible #gap-map .stn:focus-visible { stroke: var(--brand); stroke-width: 6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar i { transition: none; }
}
.hub-key { width: 8px !important; height: 8px !important; transform: rotate(45deg); background: var(--ink); }
.planned-toggle { display: flex; align-items: center; }
.planned-toggle label { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.planned-toggle input { accent-color: #e0457b; }
.savings-card-controls { display: grid; justify-items: start; gap: 10px; margin: 16px 0; }
.savings-card-preview { width: min(100%, 420px); }
.savings-card-preview img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 18px #241a2b24; }

.foot { max-width: 1200px; margin: 0 auto; padding: 0 16px 24px; font-size: 12px; color: var(--muted); }
