/* Ladestation, design system
   Direction: Swiss timetable. Warm paper, deep ink, hairline rules instead of cards,
   a wide technical grotesk (Hubot Sans) for names and figures, Mona Sans for text.
   Colour is reserved for status: free = green, occupied = blue, fault = red, no data = hatch.
   Palette validated with the dataviz six-checks (CVD + contrast) for both modes. */

@font-face { font-family: "Mona Sans"; src: url("fonts/mona-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Hubot Sans"; src: url("fonts/hubot-sans.woff2") format("woff2"); font-weight: 500 800; font-stretch: 100% 125%; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-2: #e9e7df;
  --raise: #fbfaf7;
  --ink: #0b0b0b;
  --ink-2: #4f4e4a;
  --ink-3: #66645e;
  --line: #d9d7cf;
  --line-2: #bdbbb1;
  --free: #0ca30c;
  --busy: #2a78d6;
  --fault: #d03b3b;
  --signal: #f2c200;
  --bar: #b7d3f6;
  --bar-now: #2a78d6;
  --heat-0: #cde2fb; --heat-1: #9ec5f4; --heat-2: #6da7ec; --heat-3: #3987e5; --heat-4: #256abf; --heat-5: #184f95;
  --hatch-ink: #c9c7bd;
  --shadow: 0 10px 30px -12px rgb(20 18 10 / .28);

  --font-text: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-disp: "Hubot Sans", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --gutter: 16px;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f0f0e; --paper-2: #1c1c1a; --raise: #171716;
    --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #9a978f;
    --line: #2a2a27; --line-2: #3d3d39;
    --busy: #3987e5; --bar: #1c5cab; --bar-now: #6da7ec;
    --heat-0: #104281; --heat-1: #1c5cab; --heat-2: #2a78d6; --heat-3: #5598e7; --heat-4: #86b6ef; --heat-5: #b7d3f6;
    --hatch-ink: #34342f;
    --shadow: 0 12px 34px -10px rgb(0 0 0 / .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f0f0e; --paper-2: #1c1c1a; --raise: #171716;
  --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #9a978f;
  --line: #2a2a27; --line-2: #3d3d39;
  --busy: #3987e5; --bar: #1c5cab; --bar-now: #6da7ec;
  --heat-0: #104281; --heat-1: #1c5cab; --heat-2: #2a78d6; --heat-3: #5598e7; --heat-4: #86b6ef; --heat-5: #b7d3f6;
  --hatch-ink: #34342f;
  --shadow: 0 12px 34px -10px rgb(0 0 0 / .7);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--paper); color: var(--ink);
  font: 450 15px/1.45 var(--font-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--busy); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-3); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.page { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom)); }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; gap: 4px; height: 56px; }
.bar .back { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; padding: 8px 10px 8px 4px;
  text-decoration: none; font-weight: 550; color: var(--ink-2); border-radius: 999px; }
.bar .back:hover { color: var(--ink); background: var(--paper-2); }
.bar .spacer { flex: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn[aria-busy="true"] svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* ---------- type ---------- */
.eyebrow { margin: 0; font: 650 11px/1.2 var(--font-disp); font-stretch: 125%; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); }
.title { margin: 6px 0 8px; font-family: var(--font-disp); font-weight: 760; font-stretch: 112%;
  font-size: clamp(30px, 8vw, 46px); line-height: 1; letter-spacing: -.02em; word-spacing: .06em; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--font-disp); font-weight: 720; font-stretch: 110%; font-size: 19px;
  letter-spacing: -.005em; word-spacing: .08em; line-height: 1.15; }
.lede { margin: 0; color: var(--ink-2); }
.lede a { color: var(--ink); font-weight: 550; }

/* ---------- status glyphs & bays ---------- */
.glyph { display: inline-block; width: 12px; height: 12px; flex: none; }
.glyph.A { background: var(--free); border-radius: 50%; }
.glyph.O { background: var(--busy); border-radius: 3px; }
.glyph.F { background: var(--fault); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.glyph.U { border: 1.5px solid var(--line-2); border-radius: 50%; }

.bays { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: flex-end; }
.bay-group { display: grid; gap: 6px; justify-items: start; }
.bay-cells { display: flex; gap: 3px; }
.bay { display: block; width: var(--bay-w, 12px); height: var(--bay-h, 30px); border-radius: 3px; background: var(--line-2); }
.bay.A { background: var(--free); }
.bay.O { background: var(--busy); }
.bay.F { background: repeating-linear-gradient(135deg, var(--fault) 0 3px, color-mix(in srgb, var(--fault) 55%, var(--paper)) 3px 5px); }
.bay.U { background: repeating-linear-gradient(135deg, var(--hatch-ink) 0 1.5px, transparent 1.5px 5px); box-shadow: inset 0 0 0 1px var(--line-2); }
.bay-label { font: 600 11px/1 var(--font-text); color: var(--ink-3); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .bays.enter .bay { animation: bay-in .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); transform-origin: bottom; }
  .bay.changed, .pt.changed { animation: flash 1.6s ease-out; }
  .live-dot { animation: live 2.4s ease-in-out infinite; }
}
@keyframes bay-in { from { transform: scaleY(.25); opacity: 0; } }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--signal); } 100% { box-shadow: 0 0 0 3px transparent; } }
@keyframes live { 50% { opacity: .35; } }

/* ---------- station: hero ---------- */
.hero { padding: 8px 0 20px; }
.hero .lede { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.route { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.route:hover { text-decoration: underline; }
.route svg.i { width: 16px; height: 16px; }
.store { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 5px 11px 5px 9px;
  border-radius: 999px; background: var(--paper-2); font-size: 13px; font-weight: 600; }
.store .glyph { width: 8px; height: 8px; }
.store-note { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }

.board { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 22px;
  padding-top: 16px; border-top: 2px solid var(--ink); }
.tally { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.tally b { font: 700 68px/.8 var(--font-text); letter-spacing: -.05em; }
.tally .of { font: 600 24px/1 var(--font-text); letter-spacing: -.02em; color: var(--ink-3); }
.tally .word { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.board .bays { --bay-w: 13px; --bay-h: 40px; justify-content: flex-end; }
.fresh { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--free); }
.fresh.stale { color: var(--ink); font-weight: 600; }
.fresh.stale .live-dot { background: var(--signal); animation: none; }

/* ---------- station: groups ---------- */
.group { border-top: 1px solid var(--ink); padding: 14px 0 10px; }
.group + .group { margin-top: 10px; }
.group-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.group-head .h2 { font-family: var(--font-text); font-weight: 700; letter-spacing: -.015em; }
.group-head .h2 small { font-weight: 550; color: var(--ink-3); margin-left: 5px; letter-spacing: 0; }
.group-count { margin-left: auto; font: 700 15px var(--font-text); white-space: nowrap; }
.group-count .muted { font-weight: 560; }
.bell { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, border-color .15s, color .15s; }
.bell svg.i { width: 17px; height: 17px; }
.bell:hover { border-color: var(--ink); color: var(--ink); }
.bell[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #0b0b0b; }
.bell[aria-pressed="true"] svg.i { fill: #0b0b0b; }
.alarm-note { margin: 2px 0 6px; font-size: 13px; color: var(--ink-2); }

.points { list-style: none; margin: 6px 0 0; padding: 0; }
.pt { display: grid; grid-template-columns: 14px minmax(52px, auto) 1fr auto; align-items: center; column-gap: 12px;
  min-height: 44px; padding: 6px 4px; margin: 0 -4px; border-top: 1px solid var(--line); border-radius: 6px; }
.pt:first-child { border-top: 0; }
.pt .id { font: 700 15px var(--font-text); letter-spacing: -.01em; }
.pt .st { font-weight: 580; }
.pt .since { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.pt.U .st { color: var(--ink-3); font-weight: 500; }
.eta { display: flex; gap: 8px; align-items: baseline; margin: 6px 0 0; padding: 10px 12px; border-radius: 8px;
  background: var(--paper-2); font-size: 14px; }
.eta b { font-weight: 650; }
.eta .muted { font-size: 12.5px; }

/* ---------- insights ---------- */
.insights { padding-top: 28px; }
.insights-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.seg { display: inline-flex; gap: 2px; max-width: 100%; padding: 3px; border-radius: 999px; background: var(--paper-2);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); white-space: nowrap; min-height: 34px; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.kpis { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.kpi { padding: 14px 12px 16px 0; border-bottom: 1px solid var(--line); }
.kpi:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.kpi:nth-child(even) { padding-left: 16px; }
.kpi dt { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.kpi dd { margin: 6px 0 0; }
.kpi .v { font: 700 30px/1 var(--font-text); letter-spacing: -.03em; }
.kpi .v small { font-size: 15px; font-weight: 620; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.kpi .d { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.basis { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); }

.chart { margin: 30px 0 0; }
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 4px; }
.chart-sub { margin: 2px 0 10px; font-size: 13px; color: var(--ink-2); }
.callout { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; font-weight: 580; }
.callout .glyph { width: 9px; height: 9px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.key-bar { width: 10px; height: 12px; border-radius: 2px 2px 0 0; background: var(--bar); }
.key-line { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }
.key-hatch { width: 12px; height: 12px; border-radius: 2px; background: repeating-linear-gradient(135deg, var(--hatch-ink) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.linkish { border: 0; background: none; padding: 4px 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linkish:hover { color: var(--ink); }
.empty { margin: 8px 0 0; padding: 16px; border-radius: 8px; background: var(--paper-2); color: var(--ink-2); font-size: 14px; }

.plot { position: relative; width: 100%; touch-action: pan-y; }
.plot svg { display: block; width: 100%; overflow: visible; }
.plot text { font: 500 11px var(--font-text); fill: var(--ink-3); }
.plot .grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.plot .base { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.plot .now-line { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.plot .now-text { fill: var(--ink); font-weight: 650; }
.plot .cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.is-loading { opacity: .45; transition: opacity .2s; }

/* heatmap (CSS grid) */
.heat { display: grid; grid-template-columns: 22px repeat(24, minmax(0, 1fr)); gap: 2px; }
.heat .hh { font: 500 10.5px/1 var(--font-text); color: var(--ink-3); height: 14px; white-space: nowrap; }
.heat .dl { font: 650 11px/1 var(--font-text); color: var(--ink-2); align-self: center; }
.heat .c { height: 18px; border-radius: 2px; background: var(--heat-0); }
.heat .c[data-b="1"] { background: var(--heat-1); } .heat .c[data-b="2"] { background: var(--heat-2); }
.heat .c[data-b="3"] { background: var(--heat-3); } .heat .c[data-b="4"] { background: var(--heat-4); }
.heat .c[data-b="5"] { background: var(--heat-5); }
.heat .c.na { background: repeating-linear-gradient(135deg, var(--hatch-ink) 0 1px, transparent 1px 4px); }
.heat .c.now { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); position: relative; z-index: 1; }
.heat .c.hover { box-shadow: 0 0 0 2px var(--ink); position: relative; z-index: 2; }
.scale { display: inline-flex; align-items: center; gap: 2px; }
.scale i { width: 16px; height: 10px; border-radius: 2px; }

/* timeline */
.tl-controls { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 12px; }
.date-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.date-btn:hover, .date-btn:focus-within { border-color: var(--ink); color: var(--ink); }
.date-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.date-btn svg.i { width: 16px; height: 16px; }

.events { list-style: none; margin: 18px 0 0; padding: 0; }
.events li { display: grid; grid-template-columns: 74px 14px minmax(44px, auto) 1fr; align-items: center; column-gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.events time { color: var(--ink-2); }
.events .id { font: 700 14px var(--font-text); }
.events .what b { font-weight: 600; }
.events .what span { color: var(--ink-3); }

/* data table twin of a chart */
.dtable { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.dtable th, .dtable td { padding: 4px 3px; text-align: right; border-bottom: 1px solid var(--line); }
.dtable th { color: var(--ink-3); font-weight: 600; }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable-wrap { overflow-x: auto; }

/* tooltip */
.tip { position: fixed; z-index: 60; left: 0; top: 0; max-width: 260px; padding: 9px 11px; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-size: 12.5px; line-height: 1.35; box-shadow: var(--shadow);
  pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.tip.on { opacity: 1; transform: none; }
.tip .t-head { font-weight: 650; margin-bottom: 4px; }
.tip .t-row { display: flex; align-items: center; gap: 8px; }
.tip .t-row b { font-weight: 700; }
.tip .t-row span { opacity: .75; }
.tip .t-key { width: 12px; height: 2px; border-radius: 2px; flex: none; }

/* footer */
.foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 12.5px; color: var(--ink-3); }
.foot a, .foot button { color: var(--ink-2); }
.foot button { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; transform: translate(-50%, 12px);
  padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 550;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- station layout ---------- */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi, .kpi:nth-child(odd), .kpi:nth-child(even) { padding: 14px 18px 16px; border-right: 1px solid var(--line); }
  .kpi:first-child { padding-left: 0; }
  .kpi:last-child { border-right: 0; }
  .heat .c { height: 22px; }
}
@media (min-width: 1040px) {
  .station { display: grid; grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); gap: 64px; align-items: start; }
  .station > .live { position: sticky; top: 0; padding-bottom: 24px; }
  .insights { padding-top: 64px; }
  .title { font-size: 48px; }
}

/* ---------- overview ---------- */
.ov-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 0 18px; }
.ov-head .title { margin-bottom: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper); font-weight: 650; font-size: 14px; white-space: nowrap; }
.btn:hover { opacity: .88; }
.btn svg.i { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

.st-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.st-item { border-bottom: 1px solid var(--line); }
.st-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: end; padding: 18px 0 16px;
  color: inherit; text-decoration: none; }
.st-name { margin: 0; font: 740 22px/1.08 var(--font-disp); font-stretch: 112%; letter-spacing: -.01em; word-spacing: .08em; }
.st-link:hover .st-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.st-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.st-groups { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.st-groups li { display: inline-flex; align-items: baseline; gap: 5px; }
.st-groups b { font: 700 15px var(--font-text); }
.st-groups .muted { font-size: 12.5px; }
.st-side { display: grid; justify-items: end; gap: 10px; }
.st-side .bays { --bay-w: 10px; --bay-h: 28px; justify-content: flex-end; }
.st-meta { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.st-meta.stale { color: var(--ink); font-weight: 600; }
.st-meta.stale .live-dot { background: var(--signal); animation: none; }
@media (min-width: 960px) {
  .st-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .ov-head { padding-top: 34px; }
}

/* add-station dialog */
dialog.sheet { width: min(560px, 100vw - 24px); max-height: min(720px, 100dvh - 24px); padding: 0; border: 0; border-radius: 16px;
  background: var(--raise); color: var(--ink); box-shadow: var(--shadow); }
dialog.sheet::backdrop { background: rgb(10 10 8 / .45); backdrop-filter: blur(2px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 20px; }
.sheet-body { padding: 4px 20px 20px; overflow: auto; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--paper); outline: none; font-size: 16px; }
.search .btn { height: 44px; }
@media (max-width: 459px) { .search .btn .label { display: none; } .search .btn { padding: 0 13px; } }
.search input:focus { border-color: var(--ink); }
.hits { list-style: none; margin: 14px 0 0; padding: 0; }
.hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.hit-name { font: 700 15.5px/1.2 var(--font-disp); font-stretch: 106%; word-spacing: .06em; }
.hit-meta { font-size: 12.5px; color: var(--ink-2); }
.hit-groups { font-size: 12.5px; color: var(--ink-2); }
.hit-groups b { color: var(--ink); font-weight: 650; }
.hit .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.hit .btn[disabled] { background: var(--paper-2); color: var(--ink-3); cursor: default; opacity: 1; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.note.err { color: var(--fault); font-weight: 600; }

@media print { .bar, .bell, .seg, .tl-controls, .foot, .linkish { display: none !important; } }
@media (forced-colors: active) { .bay, .glyph, .heat .c { forced-color-adjust: none; } }
