:root {
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-family);
  color: var(--text);
  background: var(--background);
  color-scheme: dark;
  font-synthesis: none;
  --background: #000000;
  --text: #f4f4f5;
  --muted: #a8adb7;
  --surface: #1c1f24;
  --surface-raised: #262a31;
  --surface-hover: #30353d;
  --surface-inset: #121417;
  --line: #34383f;
  --control-line: #78818e;
  --accent: #ffd23f;
  --accent-hover: #ffdf72;
  --accent-soft: #ffd23f1f;
  --on-accent: #000000;
  --danger: #ffa0a0;
  --sidebar: 260px;
  --input-font-size: max(16px, 1rem);
  scrollbar-width: none;
}
:root::-webkit-scrollbar {
  display: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
:root[data-input-modality="pointer"] :focus-visible {
  outline: none;
}
button {
  border: 0;
}
button,
a,
input {
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
button[hidden],
[hidden] {
  display: none !important;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
}
button .icon {
  pointer-events: none;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  background: var(--surface);
  padding: 15px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: inherit;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
kbd {
  font: 12px var(--font-family);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 22px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 36px 20px 24px;
  background: var(--background);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}
.sidebar > :not(#favorites) {
  flex-shrink: 0;
}
.sidebar #favorites {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.055em;
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -1.1px;
  padding-left: 10px;
  width: fit-content;
}
.brand-mark {
  display: block;
  /* Match the H-shaped window (y=41–80) to the letters, not the full tram. */
  width: 1.61468em;
  height: 2em;
  flex-shrink: 0;
  transform: translateY(0.12em);
}
.brand-dot {
  color: var(--accent);
}
.region-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--muted);
  margin: 14px 0 42px 10px;
}
.sidebar-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sidebar-section-title .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
  fill: var(--accent);
}
.favorite-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 9px;
  margin: 3px 0;
  min-height: 46px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.favorite-link:hover {
  background: var(--surface-hover);
}
.favorite-link[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.favorite-link .small-stop {
  flex: 0 0 19px;
  color: var(--muted);
  border-color: var(--control-line);
  font-size: 11px;
  width: 19px;
  height: 19px;
  border-width: 1.5px;
}
.favorite-link[aria-current="page"] .small-stop {
  color: var(--on-accent);
  border-color: var(--on-accent);
}
.small-stop {
  height: 24px;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--control-line);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}
.add-stop {
  justify-content: flex-start;
  padding: 15px 12px;
  font-size: 14px;
  background: transparent;
  color: var(--muted);
  margin-top: 7px;
}
.add-stop:hover {
  color: var(--text);
  background: var(--surface-raised);
  border-radius: 8px;
}
.add-stop .icon {
  width: 17px;
}
.sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}
.coffee-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 10px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.coffee-link:hover {
  background: var(--accent-hover);
}
.coffee-link > [data-icon] {
  flex-shrink: 0;
}
.main {
  --content-gutter: 44px;
  margin-left: var(--sidebar);
  padding: 0 var(--content-gutter) 22px;
}
.main > .station-card {
  margin-inline: calc(-1 * var(--content-gutter));
  padding-inline: var(--content-gutter);
  border-radius: 0;
}
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--muted);
  margin-bottom: 9px;
}
h1 {
  font-size: 33px;
  letter-spacing: -1.4px;
  font-weight: 800;
  line-height: 1.25;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.search-trigger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--muted);
  font-size: 13px;
  gap: 9px;
  box-shadow: 0 2px 2px #00000010;
}
.search-trigger:hover {
  border-color: var(--control-line);
}
.search-trigger > .icon {
  width: 17px;
  height: 17px;
}
.search-trigger kbd {
  margin-left: 19px;
}
.clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 130px;
}
.clock time {
  font: 650 29px var(--font-family);
  letter-spacing: -0.7px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.clock > span {
  font-size: 11px;
  color: var(--muted);
}
.station-card {
  background: var(--surface);
  color: var(--text);
  border-radius: 19px;
  position: sticky;
  top: 0;
  z-index: 4;
  overflow: hidden;
  min-height: 260px;
  padding: 27px 30px 0;
}
.station-content {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 115px);
}
.station-eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  margin-bottom: 15px;
}
.stop-symbol {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.station-content h1 {
  font-size: clamp(27px, 2.7vw, 42px);
  font-weight: 750;
  letter-spacing: -1.35px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.station-place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 11px;
}
.station-place .icon {
  width: 15px;
  height: 15px;
}
.change-stop {
  border-radius: 7px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 11px 15px;
  margin-top: 23px;
  box-shadow: 0 1px 0 #0001;
}
.change-stop > .icon {
  width: 15px;
  height: 15px;
}
.change-stop:hover {
  background: var(--accent-hover);
}
.station-actions {
  position: absolute;
  right: 24px;
  top: 26px;
  display: flex;
  gap: 7px;
  z-index: 1;
}
.icon-button {
  padding: 9px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-raised);
  width: 36px;
  height: 36px;
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.icon-button:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.on-dark {
  border: 1px solid var(--control-line);
  color: var(--text);
  background: var(--surface-raised);
}
.on-dark:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.on-dark[aria-pressed="true"] {
  color: var(--accent);
}
.on-dark[aria-pressed="true"] svg {
  fill: var(--accent);
  stroke: var(--accent);
}
.station-card-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 13px 0;
  font-size: 10px;
  letter-spacing: 0.2px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  z-index: 1;
}
/* The station scene follows Dresden's clock independently of the app theme. */
.station-card {
  --station-art-width: max(70%, calc(100% - var(--content-gutter) - 240px));
  --station-art-mask: linear-gradient(to right, transparent, #0003 20%, #0009 50%, #000);
}
.station-road-art {
  --sky-top: #182332;
  --sky-bottom: #2b3945;
  --city-distant: #303e4c;
  --city-front: #344654;
  --city-outline: #586777;
  --city-window: #e6c67b;
  --tree-crown: #2c4c49;
  --tree-outline: #59786c;
  --scene-ink: #c4d2d4;
  container: station-art / inline-size;
  --country-hills: #2b4146;
  --country-meadow: #34463f;
  --country-pasture: #3a4d40;
  --country-crop: #4a4b38;
  --country-field-line: #69705a;
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--station-art-width);
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  /* Let the sky cover wrapped titles too; only the street has a fixed height. */
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
  mask-image: var(--station-art-mask);
}
@media (min-width: 1200px) {
  .station-card {
    --station-art-mask: linear-gradient(to right, transparent, #0005 15%, #000b 40%, #000 75%);
  }
}
.station-road-art[data-period="day"] {
  --sky-top: #2e4b59;
  --sky-bottom: #455b59;
  --city-distant: #415764;
  --city-front: #506770;
  --city-outline: #7b9095;
  --city-window: #96afb6;
  --tree-crown: #3e6c58;
  --tree-outline: #88a17b;
  --scene-ink: #d5dfd5;
  --country-hills: #435b55;
  --country-meadow: #4c6250;
  --country-pasture: #566c52;
  --country-crop: #77775a;
  --country-field-line: #a39d76;
}
/* Countryside uses only the spare width left of the city's first buildings. */
.station-countryside {
  display: none;
  position: absolute;
  left: 0;
  right: 440px;
  bottom: 0;
  height: 240px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 80px, #000 calc(100% - 40px), transparent);
}
/* Low greenery joins the two landscapes without extending fields into buildings. */
.station-country-transition {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 680px;
  height: 240px;
  mask-image: linear-gradient(to right, transparent 22%, #000 34%, #000 42%, transparent 51%);
}
@container station-art (min-width: 700px) {
  .station-countryside,
  .station-country-transition { display: block; }
}
@container station-art (700px <= width < 1000px) {
  /* Keep the village near the city at laptop widths, with roots on the same ground. */
  .country-settlement {
    transform-origin: 0 0;
    transform: translate(220px, 41.8px) scale(0.78);
  }
}
.station-country-fields,
.station-country-details {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 240px;
}
.station-country-fields { width: 100%; }
.station-country-details { width: 800px; }
.country-hills { fill: var(--country-hills); opacity: 0.65; }
.country-meadow { fill: var(--country-meadow); }
.country-pasture { fill: var(--country-pasture); }
.country-crop { fill: var(--country-crop); opacity: 0.65; }
.country-furrows { stroke: var(--country-field-line); stroke-width: 0.8; opacity: 0.25; }
.country-hedgerow { stroke: var(--tree-crown); stroke-width: 2; stroke-linecap: round; }
.country-verge { fill: var(--tree-crown); }
.country-transition-hedge { fill: var(--tree-crown); stroke: var(--tree-outline); stroke-width: 0.7; opacity: 0.6; }
.country-tree { opacity: 0.75; }
.country-tree-crown {
  fill: var(--tree-crown);
  stroke: var(--tree-outline);
  stroke-width: 1;
  transform-box: view-box;
  transform-origin: 0 0;
  animation: tree-sway 11s ease-in-out infinite;
}
.country-tree:nth-of-type(2n) .country-tree-crown { animation-delay: -4s; animation-duration: 9s; }
.country-tree:nth-of-type(3n) .country-tree-crown { animation-delay: -7s; animation-duration: 13s; }
.country-tree-trunk { stroke: var(--tree-outline); stroke-width: 1.5; stroke-linecap: round; }
.country-farmhouses { opacity: 0.65; }
.country-house-wall { fill: #aaa58c; }
.country-house-side { fill: #7d8475; }
.country-house-roof { fill: #806f5f; }
.country-house-window { fill: var(--city-window); opacity: 0.65; }
.country-house-door { stroke: #465852; stroke-width: 3; }
.country-distant-hedge { fill: var(--tree-crown); opacity: 0.7; }
.country-fence { stroke: #91a08d; stroke-width: 1; stroke-linecap: round; opacity: 0.35; }
.station-road-scene {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 680px;
  height: 240px;
  /* Fade the SVG's own edge even when its container grows wider than it. */
  mask-image: linear-gradient(to right, transparent, #0003 15%, #0009 32%, #000 52%);
}
.scene-day,
.scene-night {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.station-road-art[data-period="day"] .scene-day,
.station-road-art[data-period="night"] .scene-night {
  opacity: 1;
}
.scene-sun-halo {
  fill: url(#sun-halo);
  opacity: 0.8;
  transform-box: fill-box;
  transform-origin: center;
  animation: sun-glow 8s ease-in-out infinite;
}
.scene-sun { fill: url(#sun-disc); filter: drop-shadow(0 0 6px #ffe5a1bb); }
@media (min-width: 961px) {
  /* Leave room for the desktop station actions, including fullscreen. */
  .scene-orb { transform: translateX(-72px); }
}
.scene-clouds { fill: #b4cbd0; opacity: 0.27; }
.scene-clouds > path { animation: cloud-drift 28s ease-in-out infinite alternate; }
.scene-clouds > path:nth-child(2) { animation-duration: 39s; animation-delay: -19s; }
.scene-birds {
  stroke: #b4cbd0;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene-bird { opacity: 0; }
.bird-near { animation: bird-flight-near 27s linear -8s infinite; }
.bird-middle { animation: bird-flight-middle 34s linear -15s infinite; }
.bird-far { animation: bird-flight-far 41s linear -23s infinite; }
.bird-wings { animation: bird-wingbeat 1.8s ease-in-out infinite; }
.bird-middle .bird-wings { animation-duration: 2.1s; animation-delay: -0.6s; }
.bird-far .bird-wings { animation-duration: 1.6s; animation-delay: -1s; }
.scene-moon-halo {
  fill: url(#moon-halo);
  opacity: 0.8;
  transform-box: fill-box;
  transform-origin: center;
  animation: moon-glow 11s ease-in-out infinite;
}
.scene-moon {
  fill: #e2ebf2;
  filter: drop-shadow(0 0 3px #d9e6ec99) drop-shadow(0 0 9px #cbdff566);
}
.scene-stars {
  fill: #c6d8e8;
  stroke: none;
  opacity: 0.75;
  filter: drop-shadow(0 0 2px #c6d8e8aa) drop-shadow(0 0 5px #c6d8e866);
}
.scene-stars > * { animation: star-glimmer 6s ease-in-out infinite; }
.scene-stars > :nth-child(2n) { animation-duration: 8s; animation-delay: -3s; }
.scene-stars > :nth-child(3n) { animation-duration: 5s; animation-delay: -1.5s; }
.station-road-art:not([data-period="day"]) .scene-day *,
.station-road-art:not([data-period="night"]) .scene-night * {
  animation-play-state: paused;
}
@keyframes cloud-drift {
  from { transform: translateX(-18px); }
  to { transform: translateX(22px); }
}
@keyframes bird-flight-near {
  0% { transform: translate(100px, 65px) rotate(-6deg); opacity: 0; }
  10% { opacity: 0.65; }
  30% { transform: translate(286px, 42px) rotate(-4deg); }
  55% { transform: translate(443px, 52px) rotate(4deg); }
  80% { transform: translate(600px, 31px) rotate(-6deg); opacity: 0.65; }
  100% { transform: translate(730px, 26px); opacity: 0; }
}
@keyframes bird-flight-middle {
  0% { transform: translate(80px, 38px) scale(0.8); opacity: 0; }
  12% { opacity: 0.5; }
  35% { transform: translate(309px, 63px) rotate(5deg) scale(0.8); }
  65% { transform: translate(504px, 44px) rotate(-5deg) scale(0.8); }
  85% { opacity: 0.5; }
  100% { transform: translate(730px, 55px) scale(0.8); opacity: 0; }
}
@keyframes bird-flight-far {
  0% { transform: translate(90px, 25px) scale(0.6); opacity: 0; }
  12% { opacity: 0.4; }
  40% { transform: translate(345px, 35px) rotate(3deg) scale(0.6); }
  70% { transform: translate(537px, 19px) rotate(-4deg) scale(0.6); }
  88% { opacity: 0.4; }
  100% { transform: translate(730px, 29px) scale(0.6); opacity: 0; }
}
/* Two wingbeats, then a short glide; translation lives on the parent bird. */
@keyframes bird-wingbeat {
  0%, 38%, 76%, 100% { transform: scaleY(1); }
  19%, 57% { transform: scaleY(-0.65); }
  84%, 94% { transform: scaleY(0.65); }
}
@keyframes sun-glow {
  0%, 100% { opacity: 0.65; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.09); }
}
@keyframes moon-glow {
  0%, 100% { opacity: 0.65; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes star-glimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.95; }
}
.city-skyline { opacity: 0.45; }
.city-distant { fill: var(--city-distant); opacity: 0.65; }
.city-buildings {
  fill: var(--city-front);
  stroke: var(--city-outline);
  stroke-width: 1;
  stroke-linejoin: round;
}
.city-window { fill: var(--city-window); opacity: 0.48; }
.city-rooflines { stroke: var(--city-outline); stroke-width: 2; }
.tree-crown,
.scene-shrub {
  fill: var(--tree-crown);
  stroke: var(--tree-outline);
  stroke-width: 1.3;
}
.scene-trees { opacity: 0.7; }
.tree-crown {
  transform-box: view-box;
  transform-origin: 320px 155px;
  animation: tree-sway 8s ease-in-out -2s infinite;
}
.scene-tree-right .tree-crown { transform-origin: 615px 156px; animation-duration: 10s; animation-delay: -5s; }
@keyframes tree-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  35% { transform: rotate(2deg); }
  65% { transform: rotate(-0.5deg); }
}
.tree-trunk {
  stroke: var(--tree-outline);
  stroke-width: 2;
  stroke-linecap: round;
}
.station-road-track {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 240px;
  mask-image: linear-gradient(to right, transparent, #0003 15%, #0009 32%, #000 52%);
}
.road-edge {
  stroke: #617078;
  stroke-width: 48;
  stroke-opacity: 0.5;
}
.road-surface {
  stroke: #20282d;
  stroke-width: 44;
}
.road-divider {
  stroke: #9caaa9;
  stroke-opacity: 0.5;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 12 16;
}
.road-shelter {
  stroke: var(--scene-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.station-foreground { filter: drop-shadow(0 2px 3px #0004); }
.shelter-shadow { fill: #101a20; opacity: 0.5; }
.shelter-reflection { opacity: 0.5; stroke-width: 1; }
.road-pavement {
  stroke: var(--scene-ink);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.6;
}
.shelter-glass {
  fill: #29434a;
  fill-opacity: 0.88;
  stroke-width: 1;
}
.shelter-roof { fill: #30434b; }
.shelter-light { stroke: #ffe2a1; stroke-width: 2.5; }
.shelter-bench { stroke: #d1b884; stroke-width: 2.5; }
.shelter-timetable { fill: #d8e1d6; stroke: none; }
.scene-passengers { stroke-linecap: round; stroke-linejoin: round; }
.passenger-face { fill: #d8b69a; }
.passenger-skin { stroke: #d8b69a; stroke-width: 2; }
.passenger-hair { fill: #35414a; }
.passenger-trousers { stroke: #8b9da6; stroke-width: 3; }
.passenger-seated-legs { fill: #8b9da6; }
.passenger-shoes { stroke: #d0d7d3; stroke-width: 1.8; }
.road-stop-sign {
  stroke: #234c3c;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.road-stop-sign circle { fill: #ffd23f; stroke: #f9df8c; stroke-width: 1.5; }
.station-bus-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: var(--station-art-mask);
  mask-size: var(--station-art-width) 100%;
  mask-position: right bottom;
  mask-repeat: no-repeat;
}
.station-bus-scene {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 680px;
  height: 240px;
  /* The header clips the bus only when it has left the whole road. */
  overflow: visible;
  pointer-events: none;
}
.station-bus-journey {
  transform: translateX(430px);
}
.bus-ground-shadow { fill: #070d12; opacity: 0.5; }
.bus-body {
  transform-origin: 177px 170px;
}
.bus-wheel-rear { transform-origin: 74.75px 169.78px; }
.bus-wheel-front { transform-origin: 291.2px 169.78px; }
@media (prefers-reduced-motion: reduce) {
  .scene-day,
  .scene-night { transition: none; }
  .scene-day *,
  .scene-night *,
  .tree-crown,
  .country-tree-crown { animation: none; }
  .station-bus-journey { animation: none; transform: translateX(430px); }
  .bus-ride,
  .bus-body,
  .bus-wheel { animation: none; }
}
@media (max-width: 960px) {
  .station-card {
    --station-art-width: 100%;
    --station-art-mask: linear-gradient(to right, transparent 15%, #000 65%);
  }
}
@media (max-width: 720px) {
  .station-card {
    --station-art-mask: linear-gradient(to right, transparent, #000 70%);
  }
  .station-countryside,
  .station-country-transition { display: none; }
  .station-road-scene,
  .station-bus-scene {
    right: -55px;
    width: 420px;
    height: auto;
  }
  .scene-tree-right { transform: translateX(-54px); }
  .station-road-track { height: 148px; }
  .station-card h1 {
    /* Keep long station names clear of the foreground shelter on narrow screens. */
    max-width: calc(100% - 110px);
  }
}
@media (min-width: 721px) {
  .station-card-bottom { border-top: 0; }
}
.next-departure {
  margin-top: 17px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 13px;
  padding: 20px 24px;
  min-height: 103px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.next-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  white-space: nowrap;
}
.next-label span {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--muted);
}
.next-divider {
  height: 41px;
  width: 1px;
  background: var(--on-accent);
  flex-shrink: 0;
}
.next-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.next-line > .icon {
  width: 25px;
  height: 25px;
  color: var(--muted);
}
.next-destination {
  font-size: 18px;
  letter-spacing: -0.35px;
  font-family: inherit;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.next-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.line-pill {
  border-radius: 7px;
  display: inline-block;
  padding: 5px 10px;
  background: var(--accent);
  color: var(--on-accent);
  min-width: min(43px, 100%);
  max-width: 100%;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.next-line .line-pill {
  background: var(--surface);
  color: var(--text);
  min-width: 47px;
  height: 38px;
  font-size: 18px;
}
.next-countdown {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: var(--on-accent);
  margin-left: auto;
}
.next-countdown strong {
  font-family: inherit;
  font-size: 35px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -1.3px;
}
.next-countdown span {
  font-size: 13px;
  margin-left: 4px;
}
.next-countdown p {
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted);
}
.next-loading {
  color: var(--muted);
  font-size: 14px;
}
.connection-notice {
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  padding: 13px 17px;
  border-radius: 10px;
  margin-top: 17px;
  line-height: 1.6;
  font-size: 14px;
}
.connection-notice .icon {
  margin-right: 8px;
}
.connection-notice button {
  font-size: 13px;
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  padding: 0 5px;
}
.departures-section {
  margin-top: 32px;
}
.departures-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.departure-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.departure-title h2 {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.count-badge {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 26px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  color: var(--muted);
}
.live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.live-status.live .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.live-status.stale {
  color: var(--accent);
}
.live-status.stale .status-dot {
  background: var(--accent);
}
.departures-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filters button {
  padding: 8px 16px;
  font-size: 12px;
  border: 0;
  background: var(--surface-raised);
  color: var(--text);
  border-radius: 999px;
  min-height: 35px;
  gap: 6px;
}
.filters button > .icon {
  width: 15px;
  height: 15px;
}
.filters button:hover {
  background: var(--surface-hover);
}
.filters button[aria-selected="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.refresh-button {
  font-size: 12px;
  background: transparent;
  color: var(--muted);
  gap: 7px;
  padding: 8px 0 8px 12px;
}
.refresh-button > .icon {
  width: 15px;
  height: 15px;
}
.refresh-button:hover {
  color: var(--text);
}
.refresh-button.loading .icon {
  animation: spin 1s linear infinite;
}
.board {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--background);
  overflow: hidden;
  box-shadow: 0 3px 7px #00000003;
}
.departures-section .board {
  margin-inline: calc(-1 * var(--content-gutter));
  border-inline: 0;
  border-radius: 0;
}
/* Keep desktop departures compact beneath the full-width station scene. */
@media (min-width: 721px) {
  .departures-section {
    max-width: 1120px;
    margin-inline: auto;
  }
  .departures-section .board {
    margin-inline: 0;
  }
  .departures-section .filters {
    width: 100%;
  }
}
table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  text-align: left;
}
thead {
  background: var(--background);
}
th {
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
th:first-child {
  width: 145px;
}
th:nth-child(3) {
  width: 135px;
  text-align: center;
}
th:last-child {
  width: 170px;
  text-align: right;
}
td {
  height: 78px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.line-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.line-cell > .icon {
  width: 21px;
  height: 21px;
  color: var(--muted);
}
.destination {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.row-detail {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 5px;
  line-height: 1.4;
}
.row-detail .icon {
  width: 12px;
  height: 12px;
}
.row-detail.delayed {
  color: var(--accent);
}
.row-detail.cancelled {
  color: var(--danger);
}
.platform-cell {
  text-align: center;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text);
  font-weight: 650;
  min-width: 26px;
  min-height: 27px;
  padding: 2px 7px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
}
.time-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.time-countdown {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.time-countdown.soon {
  color: var(--accent);
}
.time-countdown.cancelled {
  color: var(--danger);
  font-size: 14px;
}
.absolute-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.absolute-time del {
  color: var(--muted);
  margin-right: 5px;
}
.board-message {
  text-align: center;
  padding: 48px 25px;
  color: var(--muted);
}
.board-message h3 {
  font-size: 18px;
  margin: 13px 0 9px;
  color: var(--text);
}
.board-message p {
  font-size: 14px;
  line-height: 1.6;
}
.board-message > .icon {
  width: 30px;
  height: 30px;
}
.loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.board-footer {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 23px;
  border-top: 1px solid var(--line);
  background: var(--background);
}
.board-footer > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.board-footer .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.show-more {
  width: 100%;
  padding: 15px;
  background: var(--background);
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.show-more:hover {
  background: var(--surface-inset);
}
.show-more .icon {
  width: 14px;
  height: 14px;
}
.page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 23px;
}
.page-footer a {
  display: flex;
  align-items: center;
  gap: 7px;
}
.page-footer a:hover {
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  gap: 8px 24px;
}
.footer-links a {
  min-height: 44px;
  padding-block: 10px;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.page-footer strong {
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--muted);
  margin-left: 2px;
  font-style: italic;
}
.vvo-bars {
  width: 16px;
  height: 15px;
  background: linear-gradient(
    to bottom,
    var(--muted) 0 27%,
    transparent 27% 36%,
    var(--control-line) 36% 64%,
    transparent 64% 73%,
    var(--muted) 73% 100%
  );
  border-radius: 5px 0 0 5px;
}
dialog {
  width: min(680px, calc(100% - 32px));
  height: min(82dvh, 720px);
  max-height: calc(100dvh - 16px);
  margin: 0 auto;
  inset: auto 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 28px 28px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 25px 100px #00000066;
  overscroll-behavior: contain;
  overflow: hidden;
}
#search-dialog {
  --drawer-radius: 24px;
  --drawer-close-inset: 12px;
  --drawer-side-border: 1px;
  --search-viewport-height: 100dvh;
  --search-viewport-top: 0px;
  --search-drawer-height: min(82dvh, 720px, calc(var(--search-viewport-height) - 16px));
  position: fixed;
  top: calc(var(--search-viewport-top) + var(--search-viewport-height) - var(--search-drawer-height));
  bottom: auto;
  height: var(--search-drawer-height);
  max-height: calc(var(--search-viewport-height) - 16px);
  border-radius: var(--drawer-radius) var(--drawer-radius) 0 0;
}
dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  animation: drawer-enter 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.search-scroll-area {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}
@keyframes drawer-enter {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
dialog::backdrop {
  background: #000000bf;
  backdrop-filter: blur(5px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
  min-height: 44px;
  padding-right: 44px;
}
.dialog-heading h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
}
.dialog-heading .icon-button {
  background: var(--surface-raised);
  flex-shrink: 0;
}
#close-search {
  position: absolute;
  top: calc(var(--drawer-close-inset) - 1px);
  right: calc(var(--drawer-close-inset) - var(--drawer-side-border));
  width: 44px;
  height: 44px;
  border-radius: calc(var(--drawer-radius) - var(--drawer-close-inset));
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--control-line);
  border-radius: 11px;
  background: var(--surface-inset);
  padding: 0 14px;
}
.search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-input-wrap > .icon {
  color: var(--muted);
  width: 21px;
  height: 21px;
}
.search-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  outline: none !important;
  padding: 17px 0;
  font-size: var(--input-font-size);
  color: var(--text);
}
.search-input-wrap input::placeholder {
  color: var(--muted);
  font-size: 14px;
}
#search-help {
  font-size: 12px;
  color: var(--muted);
  margin: 11px 1px 18px;
}
.search-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px 18px;
}
.search-tools #search-help {
  margin: 0;
  line-height: 1.5;
}
.nearby-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--control-line);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.nearby-search:hover {
  background: var(--surface-hover);
}
.nearby-search .icon {
  width: 18px;
  height: 18px;
}
.nearby-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 10px;
}
.nearby-heading h3 {
  font-size: 14px;
  margin: 0;
}
.nearby-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.nearby-result {
  background: transparent;
  text-align: left;
}
.nearby-logo {
  flex-shrink: 0;
}
.nearby-result .result-text {
  min-width: 0;
}
.nearby-result .result-name,
.nearby-result .result-place {
  display: block;
  overflow-wrap: anywhere;
}
.result-distance {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .search-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .search-tools #search-help {
    text-align: center;
  }
}
.search-status {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.search-status:not(:empty) {
  padding: 14px 0;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  border-radius: 10px;
  cursor: pointer;
  margin: 4px 0;
}
.search-result:hover,
.search-result[aria-selected="true"] {
  background: var(--surface-hover);
}
.search-result > .small-stop {
  height: 29px;
  width: 29px;
  color: var(--muted);
  border-color: var(--control-line);
  flex-shrink: 0;
}
.result-text {
  flex: 1;
}
.result-name {
  font-size: 15px;
  font-weight: 600;
}
.result-place {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.result-id {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dialog-favorites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 4px;
}
#dialog-favorites-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 22px;
}
.favorite-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
}
.favorite-chip:hover {
  background: var(--surface-hover);
}
.favorite-chip .icon {
  width: 12px;
  height: 12px;
}
.dialog-footer {
  display: none;
  border-top: 1px solid var(--line);
}
/* Keep the input and more results visible above a mobile keyboard. */
#search-dialog.compact-search {
  padding-block: 16px 12px;
}
.compact-search .dialog-heading {
  margin-bottom: 12px;
}
.compact-search .search-input-wrap input {
  padding-block: 12px;
}
.compact-search .search-tools {
  padding-block: 10px 12px;
}
#search-dialog.compact-search .dialog-footer {
  display: none;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 5px 25px #00000066;
  z-index: 10;
  max-width: calc(100% - 30px);
  text-align: center;
}
.no-script {
  position: fixed;
  inset: 0;
  background: var(--surface);
  padding: 40px;
  z-index: 20;
  font-size: 20px;
}
.error-retry {
  margin-top: 15px;
  padding: 10px 16px;
  background: var(--surface-raised);
  border-radius: 7px;
  font-size: 14px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .main {
    --content-gutter: 60px;
  }
  .station-card {
    min-height: 280px;
    padding: 32px 36px 0;
  }
  .station-card-bottom {
    margin-top: 30px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 235px;
  }
  .sidebar {
    padding-inline: 14px;
  }
  .brand {
    font-size: 25px;
  }
  .main {
    --content-gutter: 28px;
  }
  .topbar-right {
    gap: 20px;
  }
  .search-trigger {
    padding: 11px;
  }
  .search-trigger > span:not([data-icon]),
  .search-trigger kbd {
    display: none;
  }
  .clock {
    min-width: 115px;
  }
  .station-card {
    padding-inline: 25px;
  }
  .station-card-bottom > span:last-child {
    display: none;
  }
  .next-departure {
    gap: 15px;
    padding: 18px;
  }
  .next-label {
    font-size: 9px;
  }
  .next-label span {
    font-size: 11px;
  }
  .next-destination {
    font-size: 16px;
  }
  .next-line > .icon {
    display: none;
  }
  th,
  td {
    padding-inline: 19px;
  }
  th:first-child {
    width: 119px;
  }
  th:nth-child(3) {
    width: 108px;
  }
  th:last-child {
    width: 143px;
  }
  .line-cell {
    gap: 8px;
  }
  .line-cell > .icon {
    width: 18px;
  }
  .station-content {
    max-width: calc(100% - 85px);
  }
  .station-actions {
    right: 20px;
    gap: 5px;
  }
  .favorite-link {
    padding: 11px 10px;
    font-size: 13px;
    gap: 10px;
  }
  .station-content h1 {
    font-size: 32px;
  }
}
@media (max-width: 960px) {
  :root {
    --sidebar: 210px;
  }
  .sidebar {
    padding-inline: 12px;
  }
  .brand {
    font-size: 23px;
    padding-left: 7px;
  }
  .region-label {
    font-size: 9px;
    margin-left: 7px;
    letter-spacing: 1.3px;
  }
  .sidebar-section-title {
    font-size: 12px;
  }
  .main {
    --content-gutter: 22px;
    padding-bottom: 20px;
  }
  .topbar {
    margin-bottom: 24px;
  }
  h1 {
    font-size: 28px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .clock time {
    font-size: 27px;
  }
  .clock > span {
    font-size: 10px;
  }
  .station-content h1 {
    font-size: 30px;
  }
  .station-content {
    max-width: calc(100% - 40px);
  }
  .station-actions {
    flex-direction: column;
    top: 23px;
  }
  .next-label {
    display: none;
  }
  .next-divider {
    display: none;
  }
  .next-line > .icon {
    display: block;
  }
  .next-countdown strong {
    font-size: 32px;
  }
  .station-card {
    min-height: 254px;
  }
  .departures-heading h2 {
    font-size: 19px;
  }
  .live-status {
    font-size: 10px;
  }
  .line-cell > .icon {
    display: none;
  }
  th:first-child {
    width: 83px;
  }
  th:nth-child(3) {
    width: 90px;
  }
  th:last-child {
    width: 133px;
  }
  th,
  td {
    padding-inline: 16px;
  }
  .destination {
    font-size: 15px;
  }
  .filters button {
    padding-inline: 11px;
  }
  .refresh-button > span:not([data-icon]) {
    display: none;
  }
  .board-footer {
    padding-inline: 16px;
  }
  .board-footer > span:last-child {
    font-size: 9px;
  }
}
@media (max-width: 720px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    display: none;
  }
  .main {
    --content-gutter: 18px;
    margin: 0;
    padding-bottom: 22px;
    max-width: none;
  }
  .topbar {
    gap: 10px;
    margin-bottom: 23px;
  }
  .topbar-right {
    gap: 16px;
  }
  .clock {
    min-width: 102px;
  }
  .clock time {
    font-size: 26px;
  }
  .clock > span {
    font-size: 9px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
  }
  h1 {
    font-size: 29px;
  }
  .search-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 8px;
  }
  .station-card {
    min-height: 260px;
    padding: 25px 23px 0;
    border-radius: 17px;
  }
  .station-content h1 {
    font-size: 32px;
  }
  .station-content {
    max-width: calc(100% - 38px);
  }
  .station-card-bottom {
    margin-top: 25px;
    padding: 14px 0;
  }
  .station-card-bottom > span:last-child {
    display: block;
    font-size: 8px;
    max-width: 155px;
    text-align: right;
  }
  .station-actions {
    right: 18px;
  }
  .station-place {
    font-size: 13px;
  }
  .change-stop {
    font-size: 12px;
    min-height: 39px;
    margin-top: 24px;
  }
  .next-departure {
    margin-top: 13px;
    gap: 10px;
    padding: 18px 19px;
    min-height: 97px;
    border-radius: 12px;
  }
  .next-line {
    gap: 10px;
  }
  .next-line > .icon {
    display: none;
  }
  .next-destination {
    font-size: 16px;
  }
  .next-line .line-pill {
    font-size: 17px;
    min-width: 43px;
    height: 37px;
  }
  .next-countdown strong {
    font-size: 33px;
  }
  .next-countdown span {
    font-size: 11px;
  }
  .next-subtitle {
    font-size: 11px;
  }
  .next-countdown p {
    font-size: 10px;
  }
  .departures-section {
    margin-top: 28px;
  }
  .departure-title h2 {
    font-size: 19px;
  }
  .live-status {
    font-size: 10px;
  }
  .filters {
    gap: 6px;
  }
  .filters button {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 37px;
  }
  .refresh-button {
    min-width: 34px;
    min-height: 36px;
    padding: 8px;
  }
  .refresh-button > .icon {
    width: 18px;
    height: 18px;
  }
  .board {
    border-radius: 12px;
  }
  th,
  td {
    padding-inline: 14px;
  }
  th {
    font-size: 9px;
    letter-spacing: 0.65px;
    padding-block: 14px;
  }
  th:first-child {
    width: 78px;
  }
  th:nth-child(3) {
    width: 64px;
  }
  th:last-child {
    width: 108px;
  }
  .platform-heading {
    font-size: 0;
  }
  .platform-heading:after {
    content: attr(data-short-label);
    font-size: 9px;
  }
  .line-cell > .icon {
    display: none;
  }
  .line-pill {
    font-size: 14px;
    min-width: 40px;
    padding: 5px 8px;
  }
  .destination {
    font-size: 14px;
  }
  .row-detail {
    font-size: 10px;
  }
  .time-countdown {
    font-size: 15px;
  }
  .absolute-time {
    font-size: 10px;
  }
  .platform-badge {
    font-size: 12px;
    min-width: 25px;
    min-height: 25px;
  }
  td {
    height: 77px;
  }
  .board-footer {
    font-size: 9px;
    padding: 13px 14px;
  }
  .board-footer > span:last-child {
    font-size: 9px;
  }
  .page-footer {
    font-size: 10px;
    margin-top: 21px;
  }
  .page-footer strong {
    font-size: 18px;
  }
  .page-footer a {
    gap: 5px;
  }
  .vvo-bars {
    width: 13px;
    height: 13px;
  }
  dialog {
    padding: 22px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: none;
    border-inline: 0;
    border-radius: 20px 20px 0 0;
  }
  #search-dialog {
    --drawer-side-border: 0px;
  }
  .dialog-heading h2 {
    font-size: 22px;
  }
  .dialog-heading {
    gap: 10px;
  }
  .search-input-wrap {
    gap: 9px;
    padding-inline: 12px;
  }
  .search-input-wrap input::placeholder {
    font-size: 12px;
  }
  .result-id {
    font-size: 10px;
  }
  .search-result {
    padding-inline: 7px;
  }
  #search-help {
    font-size: 11px;
  }
  .favorite-chip {
    font-size: 12px;
  }
  .toast {
    bottom: 20px;
    width: max-content;
  }
}
@media (max-width: 390px) {
  .main {
    --content-gutter: 13px;
  }
  .clock {
    min-width: 90px;
  }
  .clock > span {
    font-size: 8px;
  }
  h1 {
    font-size: 25px;
  }
  .topbar-right {
    gap: 10px;
  }
  .station-content h1 {
    font-size: 29px;
  }
  .station-card {
    padding-inline: 20px;
  }
  .station-card-bottom > span:last-child {
    display: none;
  }
  .next-departure {
    padding-inline: 14px;
  }
  .next-destination {
    font-size: 14px;
  }
  .next-subtitle {
    font-size: 10px;
  }
  .next-countdown strong {
    font-size: 29px;
  }
  .live-status {
    font-size: 9px;
  }
  .departure-title h2 {
    font-size: 18px;
  }
  th,
  td {
    padding-inline: 10px;
  }
  th:first-child {
    width: 64px;
  }
  th:nth-child(3) {
    width: 48px;
  }
  th:last-child {
    width: 99px;
  }
  .board-footer > span:last-child {
    display: none;
  }
  .destination {
    font-size: 13px;
  }
  .time-countdown {
    font-size: 14px;
  }
  .filters button {
    padding-inline: 10px;
  }
  .page-footer {
    font-size: 9px;
  }
  .search-input-wrap input::placeholder {
    font-size: 11px;
  }
}
/* Keep everyday controls and journey information legible at every breakpoint. */
.favorite-link,
.add-stop,
.sidebar-section-title {
  font-size: 14px;
}
.search-trigger,
.change-stop,
.filters button,
.refresh-button,
.show-more,
.favorite-chip {
  font-size: 14px;
}
.change-stop {
  min-height: 42px;
}
.filters button {
  min-height: 40px;
}
.destination {
  font-size: 16px;
}
.row-detail,
.absolute-time,
.next-subtitle,
.next-countdown p,
.station-card-bottom,
.live-status,
.board-footer,
.page-footer,
.clock > span,
.result-place,
.result-id,
#search-help,
.search-status {
  font-size: 12px;
}
.board-footer > span:last-child {
  font-size: 12px;
}
th {
  font-size: 12px;
  letter-spacing: 0.4px;
}
.station-eyebrow,
.next-label {
  font-size: 11px;
}
.next-destination-wrap {
  min-width: 0;
}
.empty-favorites {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  padding: 10px 12px;
}
.refresh-button > span {
  white-space: nowrap;
}
@media (max-width: 960px) {
  .clock {
    min-width: 110px;
  }
  .clock > span {
    font-size: 11px;
  }
  .board-footer {
    flex-wrap: wrap;
    gap: 7px;
  }
  .next-subtitle {
    font-size: 12px;
  }
  .live-status {
    font-size: 11px;
  }
}
@media (max-width: 720px) {
  .station-card-bottom > span:last-child {
    display: none;
  }
  .station-card-bottom {
    font-size: 11px;
  }
  .platform-heading {
    font-size: 0;
  }
  .platform-heading:after {
    font-size: 11px;
  }
  .board-footer > span:last-child {
    font-size: 11px;
  }
  .clock {
    min-width: 90px;
  }
  .clock > span {
    font-size: 10px;
  }
  .live-status {
    font-size: 11px;
  }
  th {
    font-size: 11px;
  }
  .row-detail,
  .absolute-time {
    font-size: 11px;
  }
  .next-subtitle {
    font-size: 11px;
  }
  .page-footer {
    font-size: 11px;
  }
  .favorite-chip {
    font-size: 13px;
  }
  .filters button {
    padding-inline: 11px;
  }
  .destination {
    font-size: 15px;
  }
  .next-countdown p {
    font-size: 11px;
  }
  .search-input-wrap input::placeholder {
    font-size: 14px;
  }
}
@media (max-width: 390px) {
  .destination {
    font-size: 14px;
  }
  .row-detail,
  .absolute-time {
    font-size: 11px;
  }
  .live-status {
    font-size: 10px;
  }
  .clock > span {
    font-size: 10px;
  }
  .clock {
    min-width: 83px;
  }
  .filters button {
    padding-inline: 10px;
  }
  .page-footer {
    font-size: 10px;
  }
  .search-input-wrap input::placeholder {
    font-size: 12px;
  }
  .next-subtitle {
    font-size: 10px;
  }
}
/* Compact station summary leaves the departure board in the first viewport. */
.topbar {
  margin-bottom: 22px;
}
.station-card {
  min-height: 0;
  padding-top: 22px;
}
.station-eyebrow {
  margin-bottom: 12px;
}
.station-content h1 {
  font-size: 34px;
}
.station-place {
  margin-top: 9px;
}
.station-card-bottom {
  align-items: center;
  margin-top: 18px;
  padding-block: 11px;
  min-height: 61px;
}
.change-stop {
  margin-top: 0;
  min-height: 38px;
  padding: 9px 12px;
}
.next-departure {
  min-height: 88px;
  padding-block: 16px;
  margin-top: 15px;
}
.next-countdown strong {
  font-size: 32px;
}
.departures-section {
  margin-top: 8px;
}
.station-card-bottom > span:first-child {
  display: inline;
}
@media (max-width: 960px) {
  .station-content h1 {
    font-size: 30px;
  }
  .station-actions {
    flex-direction: row;
  }
  .station-eyebrow {
    margin-bottom: 20px;
  }
  .station-content {
    max-width: 100%;
    padding-right: 10px;
  }
  .station-actions {
    top: 22px;
  }
  .station-card-bottom {
    font-size: 11px;
  }
  .change-stop {
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .topbar {
    margin-bottom: 20px;
  }
  .station-card {
    padding-top: 20px;
  }
  .station-eyebrow {
    margin-bottom: 19px;
  }
  .station-content h1 {
    font-size: 30px;
  }
  .station-content {
    max-width: 100%;
    padding-right: 0;
  }
  .station-actions {
    top: 18px;
    right: 19px;
  }
  .station-card-bottom {
    gap: 10px;
    margin-top: 18px;
    font-size: 10px;
  }
  .change-stop {
    font-size: 12px;
    padding: 8px 10px;
  }
  .next-departure {
    min-height: 88px;
  }
  .next-subtitle {
    white-space: normal;
  }
  .station-card-bottom > span {
    max-width: none !important;
    text-align: left !important;
  }
  .clock > span {
    font-size: 11px;
  }
}
@media (max-width: 390px) {
  .station-card {
    padding-inline: 17px;
  }
  .station-content h1 {
    font-size: 28px;
  }
  .station-card-bottom {
    font-size: 9px;
  }
  .change-stop {
    font-size: 11px;
    gap: 5px;
  }
  .change-stop > .icon {
    width: 13px;
    height: 13px;
  }
}
.station-card .station-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow clock"
    "title clock"
    "place actions";
  align-items: center;
  gap: 8px 24px;
  max-width: none;
  padding-right: 0;
}
.station-card .station-eyebrow {
  grid-area: eyebrow;
  margin: 0;
}
.station-card h1 {
  grid-area: title;
}
.station-card .station-place {
  grid-area: place;
  margin: 0;
}
.station-card .clock {
  grid-area: clock;
  color: var(--text);
}
.station-card .clock > span {
  color: var(--muted);
  font-size: 12px;
}
.station-card .station-actions {
  grid-area: actions;
  position: static;
  flex-direction: row;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .station-card .station-content {
    grid-template-areas:
      "eyebrow clock"
      "title title"
      "place actions";
    column-gap: 12px;
  }
}
.mobile-station-id,
.mobile-stop-bar {
  display: none;
}
@media (max-width: 720px) {
  .station-eyebrow-label,
  .station-card-bottom {
    display: none;
  }
  .mobile-station-id {
    display: inline;
    font-size: 12px;
    letter-spacing: 1px;
  }
  .station-card {
    padding-bottom: 20px;
  }
  .main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-stop-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 44px;
    gap: 10px;
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--background);
    backdrop-filter: blur(12px);
  }
  .mobile-stop-bar > button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 14px;
    gap: 6px;
  }
  .mobile-stop-bar .refresh-button > span {
    display: inline-flex;
  }
  .mobile-stop-bar .icon {
    width: 20px;
    height: 20px;
  }
  body:has(dialog[open]) .mobile-stop-bar {
    visibility: hidden;
  }
  .toast {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}
.station-card-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 0;
}
.station-card-controls .change-stop {
  min-height: 48px;
  border-radius: 10px;
  font-size: 14px;
  padding-inline: 14px;
}
.refresh-button[data-refresh] {
  min-height: 48px;
  padding: 10px 14px;
  gap: 8px;
  border: 1px solid var(--control-line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.refresh-button[data-refresh]:hover {
  background: var(--surface-hover);
}
.refresh-button[data-refresh] > .refresh-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 26px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row-detail,
.absolute-time {
  font-weight: 500;
}
@media (max-width: 720px) {
  .mobile-stop-bar .refresh-button {
    min-height: 44px;
    padding: 6px;
    border-radius: 8px;
    gap: 4px;
  }
  .mobile-stop-bar .refresh-button > .refresh-countdown {
    flex-basis: 2ch;
    width: 2ch;
  }
  .mobile-stop-bar .refresh-button .icon {
    width: 18px;
    height: 18px;
  }
  .mobile-stop-bar .refresh-label {
    font-size: 13px;
  }
}
.drawer-close {
  display: none;
}
/* Named services need more room than route numbers; let labels wrap in full. */
table:has(.long-line) th:first-child {
  width: 220px;
}
@media (max-width: 1200px) {
  table:has(.long-line) th:first-child { width: 180px; }
}
@media (max-width: 960px) {
  table:has(.long-line) th:first-child { width: 140px; }
}
@media (max-width: 720px) {
  .dialog-footer {
    display: flex;
    margin-top: 12px;
    padding-top: 12px;
  }
  .drawer-close {
    display: flex;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--control-line);
    border-radius: 10px;
    background: var(--surface-raised);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
  }
  .drawer-close:hover {
    background: var(--surface-hover);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* Station controls and sidebar language selection. */
.station-card-controls {
  margin-left: 0;
}
.station-card-controls .refresh-button > span {
  display: inline-flex;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: 9px;
  background: var(--surface-inset);
  flex-shrink: 0;
}
.language-switch button {
  width: 44px;
  min-height: 44px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  background: transparent;
  color: var(--muted);
}
.language-switch button:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.language-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.filters {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  width: min(100%, 600px);
}
.filters button {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
}
.favorite-chip .small-stop {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-width: 1.5px;
  font-size: 11px;
}
.mobile-menu-toggle,
.sidebar-close {
  display: none;
}
#sidebar-dialog {
  inset: 0 auto 0 0;
  margin: 0;
  width: min(340px, calc(100% - 24px));
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--background);
}
#sidebar-dialog[open] {
  display: block;
  animation: sidebar-enter 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
#sidebar-dialog .sidebar {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 28px 16px max(20px, env(safe-area-inset-bottom, 0px));
  border: 0;
  overflow: hidden;
}
#sidebar-dialog .brand {
  padding-left: 4px;
}
#sidebar-dialog .add-stop {
  margin-bottom: 0;
}
#sidebar-dialog .sidebar-close {
  display: flex;
  flex-shrink: 0;
  margin-top: 16px;
}
#sidebar-dialog .region-label {
  margin-bottom: 28px;
  margin-left: 4px;
}
@keyframes sidebar-enter {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@media (max-width: 720px) {
  .station-card .station-eyebrow {
    gap: 6px;
  }
  .station-card .station-actions {
    gap: 4px;
  }
  .station-card .station-place {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .station-card .station-place > .icon,
  .station-card .station-place > [data-icon] {
    flex-shrink: 0;
  }
  .station-card .icon-button.on-dark {
    width: 32px;
    min-height: 44px;
    padding: 6px;
    flex-shrink: 0;
  }
  .filters {
    width: 100%;
  }
}

/* Equal-width mode tabs keep the departure board visible in one panel. */
.filters {
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.filters button {
  position: relative;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 8px 14px;
}
.filters button:hover {
  background: var(--surface-inset);
  color: var(--text);
}
.filters button[aria-selected="true"] {
  background: transparent;
  color: var(--accent);
}
.filters {
  position: relative;
}
.filter-indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 1;
  width: calc(100% / var(--tab-count, 4));
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  pointer-events: none;
  transform: translateX(calc(var(--tab-index, 0) * 100%));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), width 260ms ease;
}
.filters button:focus-visible {
  outline-offset: -4px;
}

/* Keep the desktop clock and leave mobile navigation in the bottom bar. */
.station-card .station-content {
  grid-template-areas:
    "clock actions"
    "title title";
}
.station-card .clock {
  align-items: flex-start;
}
@media (max-width: 720px) {
  .station-card .clock {
    display: none;
  }
  .station-card .station-content {
    grid-template-areas:
      "title title"
      "actions actions";
  }
  .station-card h1 {
    margin-bottom: 12px;
  }
  .station-card:has(.station-actions[hidden]) .station-content {
    grid-template-areas: "title title";
  }
  .station-card:has(.station-actions[hidden]) h1 {
    margin-bottom: 0;
  }
}

#sidebar-dialog.is-closing {
  animation: sidebar-leave 200ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
#sidebar-dialog::backdrop {
  animation: sidebar-backdrop-enter 240ms ease-out;
}
#sidebar-dialog.is-closing::backdrop {
  animation: sidebar-backdrop-leave 200ms ease-in forwards;
}
@keyframes sidebar-leave {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@keyframes sidebar-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sidebar-backdrop-leave {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 720px) {
  .station-card .station-actions {
    align-items: center;
    gap: 6px;
  }
  .station-card .icon-button.on-dark {
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    border-radius: 8px;
  }
}
@media (max-width: 720px) {
  .mobile-stop-bar .mobile-menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid var(--control-line);
    color: var(--text);
  }
  .mobile-stop-bar .mobile-menu-toggle .icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 720px) {
  .departures-section {
    margin-top: 4px;
  }
  .filters button {
    flex-direction: row;
    gap: 5px;
    min-height: 40px;
    padding: 8px 4px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .filters [data-icon] {
    display: inline-flex;
  }
  .filters .icon {
    width: 16px;
    height: 16px;
  }
}
@media (max-width: 360px) {
  .filters button { gap: 3px; padding-inline: 1px; font-size: 11px; }
  .filters .icon { width: 14px; height: 14px; }
}

.station-meta {
  grid-area: place;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  min-width: 0;
}
.station-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: 5px;
  white-space: nowrap;
}
.station-directions .icon {
  width: 17px;
  height: 17px;
}
.station-directions:hover,
.directions-fallback:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.station-directions[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
.directions-fallback {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Directions remains a real link while sharing the station button styling. */
.station-directions {
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  line-height: 18px;
}
.station-directions:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.mobile-line-heading,
.line-cell.mobile-line {
  display: none;
}
/* Keep the route and status together above the destination on mobile only. */
@media (max-width: 720px) {
  th.platform-heading {
    width: 44px;
    padding-inline: 4px;
  }
  .platform-cell {
    padding-inline: 4px;
  }
  .line-heading,
  .line-column {
    display: none;
  }
  .mobile-line-heading {
    display: inline;
  }
  .line-cell.mobile-line {
    display: flex;
    grid-column: 1;
    grid-row: 1;
  }
  .departure-info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
  }
  .departure-info > .destination {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .departure-info > .row-detail {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin-top: 0;
    color: var(--accent);
    overflow-wrap: anywhere;
  }
  .departure-info > .row-detail .icon {
    flex: 0 0 12px;
  }
  .line-cell {
    gap: 6px;
  }
  .line-cell > .icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
  .line-cell .line-pill {
    min-width: 40px;
    padding-inline: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 390px) {
  th.platform-heading { width: 40px; }
}
@media (max-width: 360px) {
  .departure-info > .row-detail .icon { display: none; }
}

.station-card .station-actions {
  align-items: center;
  flex-wrap: wrap;
}
@media (min-width: 721px) {
  .station-card .station-actions {
    margin-bottom: 24px;
  }
}
@media (max-width: 720px) {
  .station-card .station-actions {
    justify-content: flex-start;
  }
}

/* Keep editable text large enough to avoid iOS focus zoom; pinch zoom stays enabled. */
@media (max-width: 720px), (pointer: coarse) {
  input,
  textarea,
  select,
  [contenteditable="true"],
  .search-input-wrap input {
    font-size: var(--input-font-size);
  }
  input::placeholder,
  textarea::placeholder,
  .search-input-wrap input::placeholder {
    font-size: inherit;
  }
}

.data-attribution {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.data-attribution summary {
  width: fit-content;
  cursor: pointer;
  padding-block: 8px;
}
.data-attribution p { margin: 6px 0; max-width: 78ch; }
.data-attribution a { text-decoration: underline; text-underline-offset: 3px; }

/* Keep the desktop fullscreen control reachable while navigation is hidden. */
.fullscreen-toggle {
  display: none;
}
@media (min-width: 721px) {
  .fullscreen-toggle {
    display: inline-flex;
    border: 1px solid var(--control-line);
    background: var(--surface-raised);
    color: var(--text);
  }
  .fullscreen-toggle:hover {
    background: var(--surface-hover);
  }
  .fullscreen-toggle[aria-pressed="true"] {
    border-color: var(--accent);
    color: var(--accent);
  }
  :root.is-fullscreen #sidebar-home {
    display: none;
  }
  :root.is-fullscreen .main {
    margin-left: 0;
  }
}
