:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;

  --radius-sm: 6px; --radius: 10px; --radius-lg: 16px;

  --color-bg: #f2f1ec;
  --color-surface: #fbfaf7;
  --color-surface-2: #ffffff;
  --color-offset: #ebe9e2;
  --color-border: #d9d6cd;
  --color-divider: #e4e1d9;
  --color-text: #17181b;
  --color-muted: #5f6066;
  --color-faint: #9a9a9e;
  --color-ink: #14161a;
  --color-on-ink: #f4f3ee;

  --color-accent: #f0d722;       /* BVG-Gelb */
  --color-accent-hover: #e2c812;
  --color-on-accent: #17181b;

  --color-ok: #187a43;
  --color-ok-bg: #e2f1e7;
  --color-late: #b3261e;
  --color-late-bg: #fbe7e4;
  --color-warn: #8a5a00;
  --color-warn-bg: #fbf0d4;
  --color-info: #1f5aa6;
  --color-info-bg: #e3ecf8;

  --c-s: #008d4f; --c-u: #115d91; --c-t: #cc0a22; --c-b: #95276e;

  --shadow-sm: 0 1px 2px rgb(20 22 26 / .06);
  --shadow: 0 1px 2px rgb(20 22 26 / .05), 0 6px 20px -8px rgb(20 22 26 / .18);
  --font: 'General Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111215;
    --color-surface: #1a1b1f;
    --color-surface-2: #202126;
    --color-offset: #26272d;
    --color-border: #34353c;
    --color-divider: #2b2c32;
    --color-text: #ecebe6;
    --color-muted: #a3a3a8;
    --color-faint: #6f6f75;
    --color-ink: #0b0c0e;
    --color-ok: #5fcb8b; --color-ok-bg: #16301f;
    --color-late: #ff8a7f; --color-late-bg: #3a1a18;
    --color-warn: #f3c355; --color-warn-bg: #352a10;
    --color-info: #8db8f2; --color-info-bg: #172538;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -10px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--text-base); line-height: 1.45;
  color: var(--color-text); background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-info); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--color-accent); color: #000; padding: var(--space-2) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-2); }

.wrap { width: min(1240px, 100% - 2 * var(--space-4)); margin-inline: auto; }

/* Topbar */
.topbar { background: var(--color-ink); color: var(--color-on-ink); padding-top: env(safe-area-inset-top); border-bottom: 4px solid var(--color-accent); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); }
.brand { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.brand__mark { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--color-accent); position: relative; }
.brand__mark::after { content: ''; position: absolute; inset: 9px 7px; border-radius: 3px; background: var(--color-ink); box-shadow: inset 0 -5px 0 0 var(--color-accent), inset 0 -7px 0 0 var(--color-ink); }
.brand__title { margin: 0; font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.brand__sub { margin: 0; font-size: var(--text-xs); color: #b9b8b2; letter-spacing: .02em; }

.status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); padding: var(--space-1) var(--space-3); border: 1px solid #3a3c42; border-radius: 999px; white-space: nowrap; }
.status__short { display: none; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #888; flex: none; }
.status[data-state="ok"] .status__short { display: none; }
.status__dot { background: #39d17a; box-shadow: 0 0 0 0 rgb(57 209 122 / .7); animation: pulse 2s infinite; }
.status[data-state="err"] .status__short { display: none; }
.status__dot { background: #ff5b4f; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(57 209 122 / 0); } 100% { box-shadow: 0 0 0 0 rgb(57 209 122 / 0); } }

/* Layout */
.layout { display: grid; gap: var(--space-6); padding-block: var(--space-6) var(--space-12); }
@media (min-width: 960px) {
  .layout { grid-template-columns: 390px 1fr; align-items: start; gap: var(--space-8); }
  .search { position: sticky; top: var(--space-4); }
}

.panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
form { display: grid; gap: var(--space-5); }

.field { display: grid; gap: var(--space-2); min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > .label, legend { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); display: flex; align-items: center; gap: var(--space-2); padding: 0; }
legend { margin-bottom: var(--space-2); }
.optional { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--color-faint); }
.hint { margin: 0; font-size: var(--text-xs); color: var(--color-muted); }

input[type="text"], input[type="datetime-local"], input[type="number"] {
  width: 100%; min-height: 48px; padding: var(--space-3); border: 1.5px solid var(--color-border);
  border-radius: var(--radius); background: var(--color-surface-2); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--color-text); box-shadow: 0 0 0 3px rgb(240 215 34 / .55); }
input::placeholder { color: var(--color-faint); }

/* Stops */
.stops { position: relative; display: grid; gap: var(--space-3); padding-right: 52px; }
.stops::before { content: ''; position: absolute; left: 5px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(var(--color-border) 0 4px, transparent 4px 8px); display: none; }
.pin { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 3px solid var(--color-text); background: var(--color-surface); }
.pin--end { background: var(--color-text); }
.pin--via { border-style: dotted; }
.swap { position: absolute; right: 0; top: 50%; transform: translateY(-30%); width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--color-border); background: var(--color-surface-2); display: grid; place-items: center; transition: transform .25s var(--ease), background .15s; }
.swap:hover { background: var(--color-offset); }
.swap.spin { transform: translateY(-30%) rotate(180deg); }

.combo { position: relative; }
.combo input { padding-right: 48px; }
.icon-btn { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-muted); display: grid; place-items: center; }
.icon-btn:hover { background: var(--color-offset); color: var(--color-text); }
.icon-btn.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: var(--space-1); list-style: none; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 320px; overflow: auto; }
.suggest li { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--color-offset); }
.suggest .s-name { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.suggest .s-modes { display: flex; gap: 3px; flex: none; }
.suggest .s-empty { color: var(--color-muted); cursor: default; font-size: var(--text-sm); }
.dotm { width: 18px; height: 18px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dotm--s { background: var(--c-s); border-radius: 50%; } .dotm--u { background: var(--c-u); } .dotm--t { background: var(--c-t); } .dotm--b { background: var(--c-b); }

/* Row */
.row-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 640px) and (max-width: 959px) { .row-2 { grid-template-columns: auto 1fr; } }
.seg { display: flex; background: var(--color-offset); border-radius: var(--radius); padding: 3px; min-height: 48px; }
.seg label { display: flex; flex: 1; }
.seg span { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; padding: 0 var(--space-3); border-radius: 8px; font-size: var(--text-sm); font-weight: 500; cursor: pointer; color: var(--color-muted); }
.seg input:checked + span { background: var(--color-surface-2); color: var(--color-text); box-shadow: var(--shadow-sm); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--color-info); }
.when { display: flex; gap: var(--space-2); min-width: 0; }
.panel { min-width: 0; overflow: visible; }
.when input { min-width: 0; }

.chip-btn { border: 1.5px solid var(--color-border); background: var(--color-surface-2); border-radius: 999px; padding: var(--space-1) var(--space-3); font-size: var(--text-sm); font-weight: 500; min-height: 36px; white-space: nowrap; }
.when .chip-btn { border-radius: var(--radius); min-height: 48px; }
.chip-btn:hover { background: var(--color-offset); }
.chip-btn[aria-pressed="true"] { background: var(--color-text); color: var(--color-surface); border-color: var(--color-text); }

.stepper { display: flex; align-items: center; gap: var(--space-2); }
.stepper input { width: 76px; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.step { width: 48px; height: 48px; border-radius: var(--radius); border: 1.5px solid var(--color-border); background: var(--color-surface-2); font-size: 22px; line-height: 1; }
.step:hover { background: var(--color-offset); }
.unit { color: var(--color-muted); font-size: var(--text-sm); margin-right: auto; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (min-width: 520px) and (max-width: 959px) { .modes { grid-template-columns: repeat(4, 1fr); } }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode > span { display: flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: var(--space-2) var(--space-3); border: 1.5px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface-2); font-weight: 500; font-size: var(--text-sm); cursor: pointer; transition: all .15s; user-select: none; }
.mode__icon { width: 26px; height: 26px; display: grid; place-items: center; color: #fff; font-size: 14px; border-radius: 5px; flex: none; transition: filter .15s, opacity .15s; }
.mode--s .mode__icon { background: var(--c-s); border-radius: 50%; }
.mode--u .mode__icon { background: var(--c-u); }
.mode--t .mode__icon { background: var(--c-t); }
.mode--b .mode__icon { background: var(--c-b); }
.mode input:checked + span { border-color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-text); }
.mode input:not(:checked) + span { color: var(--color-faint); text-decoration: line-through; background: transparent; }
.mode input:not(:checked) + span .mode__icon { filter: grayscale(1); opacity: .35; }
.mode input:focus-visible + span { outline: 3px solid var(--color-info); outline-offset: 2px; }

/* Toggle */
.toggle { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle__track { width: 46px; height: 28px; border-radius: 999px; background: var(--color-border); flex: none; position: relative; transition: background .2s; margin-top: 2px; }
.toggle__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.toggle input:checked + .toggle__track { background: var(--color-ok); }
.toggle input:checked + .toggle__track::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__track { outline: 3px solid var(--color-info); outline-offset: 2px; }
.toggle__text { font-weight: 500; font-size: var(--text-sm); display: grid; }
.toggle__text small { font-weight: 400; color: var(--color-muted); font-size: var(--text-xs); }

.form-error { margin: 0; padding: var(--space-3); border-radius: var(--radius); background: var(--color-late-bg); color: var(--color-late); font-size: var(--text-sm); font-weight: 500; }

.primary { min-height: 54px; border: 0; border-radius: var(--radius); background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; font-size: var(--text-base); letter-spacing: .01em; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .12); transition: background .15s, transform .1s; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
.primary:hover { background: var(--color-accent-hover); }
.primary:active { transform: translateY(1px); }
.primary[disabled] { opacity: .7; cursor: progress; }
.primary .spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

/* Results */
.results { display: grid; gap: var(--space-3); min-width: 0; outline: none; }
.results__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-2); }
.results__route { font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; min-width: 0; }
.results__route small { display: block; font-size: var(--text-xs); color: var(--color-muted); font-weight: 500; margin-top: var(--space-1); letter-spacing: 0; }
.results__route .arrow { color: var(--color-faint); font-weight: 500; margin-inline: .3em; }

.refresh { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: var(--text-xs); color: var(--color-muted); }
.refresh__ring { width: 22px; height: 22px; flex: none; }
.refresh__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.refresh__ring circle { fill: none; stroke: var(--color-border); stroke-width: 4; }
.refresh__ring .refresh__prog { stroke: var(--color-ok); stroke-dasharray: 94.25; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; stroke-linecap: round; }
.refresh.paused .refresh__prog { stroke: var(--color-faint); }
.refresh.checking .refresh__ring svg { animation: spin 1s linear infinite; }
.refresh__text { min-width: 9.5em; }
.refresh .chip-btn { font-size: var(--text-xs); min-height: 32px; }

.list { display: grid; gap: var(--space-3); }

.pager { justify-self: center; border: 1.5px dashed var(--color-border); background: transparent; border-radius: 999px; padding: var(--space-2) var(--space-5); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); min-height: 40px; }
.pager:hover { color: var(--color-text); border-color: var(--color-text); }

/* Journey card */
.jcard { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.jcard:hover { box-shadow: var(--shadow); }
.jcard.is-open { box-shadow: var(--shadow); border-color: var(--color-text); }
.jcard.is-cancelled { opacity: .78; }
.jcard.flash { animation: flash 2.4s var(--ease); }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px var(--color-accent); } 100% { box-shadow: var(--shadow-sm); } }

.jhead { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); width: 100%; padding: var(--space-4) var(--space-5); background: none; border: 0; text-align: left; }
.jtimes { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-2); font-size: var(--text-xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.jtimes .sep { color: var(--color-faint); font-weight: 400; }
.t { display: inline-flex; align-items: baseline; gap: .3em; }
.t__plan { font-size: .55em; font-weight: 500; color: var(--color-muted); text-decoration: line-through; letter-spacing: 0; }
.t--late .t__rt { color: var(--color-late); }
.t--ok .t__rt { color: var(--color-ok); }
.jmeta { text-align: right; display: grid; gap: 2px; align-content: start; font-size: var(--text-sm); }
.jmeta strong { font-size: var(--text-base); }
.jmeta span { color: var(--color-muted); font-size: var(--text-xs); }
.jlines { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.jlines .walk-i { color: var(--color-faint); font-size: var(--text-xs); display: inline-flex; align-items: center; gap: 2px; }
.jlines .chev { color: var(--color-faint); }
.jbadges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }

.lb { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 4px; font-size: 13px; font-weight: 700; color: #fff; background: #555; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.lb--s { background: var(--c-s); border-radius: 999px; }
.lb--u { background: var(--c-u); border-radius: 3px; }
.lb--t { background: var(--c-t); }
.lb--b { background: var(--c-b); }
.lb--dark { color: #17181b; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; line-height: 1.3; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--live { background: var(--color-ok-bg); color: var(--color-ok); }
.badge--partial { background: var(--color-warn-bg); color: var(--color-warn); }
.badge--plan { background: var(--color-offset); color: var(--color-muted); }
.badge--late { background: var(--color-late-bg); color: var(--color-late); }
.badge--warn { background: var(--color-warn-bg); color: var(--color-warn); }
.badge--change { background: var(--color-info-bg); color: var(--color-info); }
.badge--live::before { animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Details */
.jdetail { border-top: 1px solid var(--color-divider); padding: var(--space-4) var(--space-5) var(--space-5); display: grid; gap: var(--space-4); }
.changes { border-radius: var(--radius); background: var(--color-info-bg); color: var(--color-info); padding: var(--space-3) var(--space-4); font-size: var(--text-sm); }
.changes h4 { margin: 0 0 var(--space-1); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; }
.changes ul { margin: 0; padding-left: 1.1em; display: grid; gap: 2px; }
.changes time { font-weight: 600; }

.legs { list-style: none; margin: 0; padding: 0; display: grid; }
.leg { display: grid; grid-template-columns: 58px 22px 1fr; column-gap: var(--space-3); }
.leg__time { text-align: right; font-weight: 700; font-size: var(--text-sm); display: grid; align-content: start; line-height: 1.25; padding-top: 2px; }
.leg__time .plan { font-weight: 500; color: var(--color-muted); text-decoration: line-through; font-size: var(--text-xs); }
.leg__time .late { color: var(--color-late); }
.leg__time .ok { color: var(--color-ok); }
.leg__rail { position: relative; display: flex; justify-content: center; }
.leg__rail::before { content: ''; position: absolute; top: 8px; bottom: -8px; width: 4px; border-radius: 2px; background: var(--leg-color, var(--color-border)); }
.leg__rail::after { content: ''; position: relative; margin-top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--leg-color, var(--color-text)); box-sizing: border-box; }
.leg--end .leg__rail::before { display: none; }
.leg--walk .leg__rail::before { background: repeating-linear-gradient(var(--color-faint) 0 4px, transparent 4px 9px); width: 3px; }
.leg__body { padding-bottom: var(--space-4); min-width: 0; }
.leg__stop { font-weight: 600; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: baseline; }
.plat { font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); border: 1px solid var(--color-border); border-radius: 4px; padding: 0 6px; white-space: nowrap; }
.plat--changed { color: var(--color-late); border-color: currentColor; font-weight: 700; }
.leg__ride { margin-top: var(--space-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-muted); }
.leg__ride .dir { color: var(--color-text); font-weight: 500; }
.leg__walk { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-muted); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.leg__flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-2); }
.remarks { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-1); }
.remarks li { font-size: var(--text-xs); color: var(--color-warn); background: var(--color-warn-bg); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
.remarks li b { display: block; }
.remarks a { text-decoration: underline; }

.jfoot { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between; font-size: var(--text-xs); color: var(--color-muted); }

/* Empty / error / skeleton */
.empty { text-align: center; padding: var(--space-12) var(--space-6); border: 1.5px dashed var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.empty h2 { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-lg); }
.empty p { margin: 0 auto; max-width: 46ch; color: var(--color-muted); font-size: var(--text-sm); }
.empty__art { display: flex; justify-content: center; gap: 6px; }
.empty .chip-btn { margin-top: var(--space-4); }
.empty--err { border-color: var(--color-late); }

.skel { height: 116px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--color-surface) 0%, var(--color-offset) 50%, var(--color-surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border: 1px solid var(--color-border); }
@keyframes shimmer { to { background-position: -200% 0; } }

.filtered-note { font-size: var(--text-xs); color: var(--color-muted); text-align: center; margin: 0; }

.legal { font-size: var(--text-xs); color: var(--color-faint); margin: var(--space-4) 0 0; text-align: center; }

.toast { position: fixed; left: 50%; bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--color-ink); color: var(--color-on-ink); padding: var(--space-3) var(--space-5); border-radius: var(--radius); box-shadow: var(--shadow); font-size: var(--text-sm); z-index: 50; max-width: calc(100% - 2 * var(--space-4)); border-left: 4px solid var(--color-accent); }

@media (max-width: 600px) {
  .panel { padding: var(--space-4); border-radius: var(--radius); }
  .jhead { padding: var(--space-4); }
  .jdetail { padding: var(--space-4); }
  .leg { grid-template-columns: 48px 18px 1fr; column-gap: var(--space-2); }
  .refresh { width: 100%; }
  .refresh__text { flex: 1; }
  .brand__title { font-size: 1.05rem; }
  .brand__sub { display: none; }
  .status__text { display: none; }
  .status__short { display: inline; }
  .brand__mark { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
