/* Omsi-Hub's website, in the app's own look (launcher/ui/omsihub.css): the night-blue ground,
   sheets floating on it, glass for the bar, the blue accent for the route and the one action,
   orange for the times and "Hub", yellow for the line's plate. Hanken Grotesk for every text. */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/HankenGrotesk-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/HankenGrotesk-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/HankenGrotesk-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/HankenGrotesk-latin-800.woff2") format("woff2"); }

/* --- the colours ------------------------------------------------------------------------ */

:root {
  --ground: #0a142e;
  --ground-deep: #070f24;
  --panel: #121a2c;
  --panel-2: #172036;
  --field: #1b2438;
  --text: #e8ebf2;
  --soft: #c4cad6;
  --dim: #9aa2b4;
  --faint: #66708a;
  --edge: rgba(255, 255, 255, 0.09);
  --edge-strong: rgba(255, 255, 255, 0.18);
  --accent: #2a75f7;
  --accent-hover: #4a8bf9;
  --accent-rgb: 42, 117, 247;
  --on-accent: #ffffff;
  --orange: #f58620;
  --time: #f7a04f;
  --line: #ffd23f;
  --on-line: #1a1400;
  --ok: #34b26e;
  --danger: #e5534b;
  --logo-ink: #eef1f5;
  --glass: rgba(8, 15, 36, 0.62);
  --glass-edge: rgba(var(--accent-rgb), 0.38);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --sheet-glow: 0 0 0 1px rgba(var(--accent-rgb), 0.28), 0 0 40px rgba(var(--accent-rgb), 0.14);
  --tshadow: 0 1px 2px rgba(5, 9, 22, 0.9), 0 4px 18px rgba(5, 9, 22, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.45, 0, 0.55, 1);
  --r: 10px;
  --r-sheet: 16px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ground: #e2ebfb;
  --ground-deep: #d6e2f8;
  --panel: #fbfcff;
  --panel-2: #f2f6fe;
  --field: #eaf0fb;
  --text: #1a1d26;
  --soft: #3e4352;
  --dim: #5b6172;
  --faint: #7d8597;
  --edge: rgba(20, 30, 60, 0.10);
  --edge-strong: rgba(20, 30, 60, 0.2);
  --accent: #1f68ea;
  --accent-hover: #1857c9;
  --accent-rgb: 31, 104, 234;
  --time: #c35f00;
  --logo-ink: #201e24;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --shadow: 0 10px 34px rgba(40, 60, 110, 0.14);
  --sheet-glow: 0 0 0 1px rgba(20, 30, 60, 0.06), 0 12px 40px rgba(40, 60, 110, 0.12);
  --tshadow: none;
  color-scheme: light;
}

/* --- the page --------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; overflow-x: clip;
  background: var(--ground); color: var(--text);
  font: 400 16px/1.6 "Hanken Grotesk", system-ui, sans-serif;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.6s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; transition: top 0.2s var(--ease); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* the one environment behind everything: a faint glow of the accent drifting over the ground */
.env { position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 30% 30%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    radial-gradient(35% 30% at 75% 70%, rgba(245, 134, 32, 0.045), transparent 70%);
  animation: env-drift 70s var(--ease-io) -20s infinite alternate; }
@keyframes env-drift { to { transform: translate3d(6%, -4%, 0) scale(1.06); } }

/* --- the bar (the app's glass top bar) -------------------------------------------------- */

.bar {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1240px, calc(100% - 24px)); height: 58px; padding: 0 10px 0 16px;
  display: flex; align-items: center; gap: 6px;
  border-radius: 14px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--glass-edge), 0 6px 28px rgba(0, 0, 0, 0.18);
  opacity: 0; translate: 0 -10px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}
.bar.on { opacity: 1; translate: 0 0; }
.bar .brand { display: flex; align-items: center; height: 100%; padding-right: 8px; }
.bar .brand svg { height: 30px; width: auto; display: block; }
.bar .beta { font-size: 11px; color: var(--dim); margin: 3px 6px 0 2px; white-space: nowrap; }
.bar nav { display: flex; gap: 2px; margin-left: 10px; }
.bar nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--soft); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.bar nav a:hover { background: var(--edge); color: var(--text); }
.bar .grow { flex: 1; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--soft); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.icon-btn:hover { background: var(--edge); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--edge); }
.langs button { border: 0; background: none; cursor: pointer; padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--dim); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.langs button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.bar .btn { margin-left: 6px; }
.theme-sun { display: none; }
:root[data-theme="light"] .theme-sun { display: block; }
:root[data-theme="light"] .theme-moon { display: none; }

/* --- buttons ---------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.35); }
.btn.primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.45); }
.btn.ghost { background: var(--edge); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge); }
.btn.ghost:hover { background: var(--edge-strong); }
.btn.small { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.big { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
@media (pointer: coarse) { .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } }

/* --- the hero: scroll, and a duty's line draws down through a city into the mark ------- */

.hero { position: relative; height: 800vh; }
.hero .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--ground); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .line, .scene .pulse { stroke: var(--accent); }
.scene .ink { fill: var(--logo-ink); }
.scene .pen { fill: #eaf2ff; }
.scene .lamp { fill: #fff7d6; }
.scene .city-stop { fill: #fff; stroke: var(--accent); stroke-width: 14; }
.scene .label { font-weight: 700; dominant-baseline: central; paint-order: stroke; stroke: var(--ground); stroke-width: 0.35em; stroke-linejoin: round; }
.scene .label .t { fill: var(--time); }
.scene .label .n { fill: var(--text); }
:root[data-theme="light"] .scene .city { filter: invert(1) hue-rotate(180deg) saturate(0.5) brightness(1.1); opacity: 0.6; }
.pen-glow-in { stop-color: #9cc0ff; stop-opacity: 1; }
.pen-glow-out { stop-color: #9cc0ff; stop-opacity: 0; }
.lamp-glow-in { stop-color: #fff3c2; stop-opacity: 0.95; }
.lamp-glow-out { stop-color: #ffd884; stop-opacity: 0; }

/* the duty card over the city (the app's shift sheet, small) */
.duty {
  position: absolute; z-index: 2; left: max(24px, calc(50% - 600px)); top: 104px; width: 272px;
  padding: 14px 16px 12px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow); font-size: 13px;
}
.duty .head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.plate { display: inline-grid; place-items: center; min-width: 40px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--line); color: var(--on-line); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.duty .sub { color: var(--dim); margin-top: 2px; }
.duty .rows { margin-top: 10px; display: grid; gap: 6px; }
.duty .row { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 9px; background: var(--edge); font-weight: 700; }
.duty .row .t { color: var(--time); font-variant-numeric: tabular-nums; }
.duty .row .on { margin-left: auto; color: var(--ok); font-size: 12px; }

/* the cue at the start */
.cue { position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--soft); pointer-events: none; }
.cue svg { width: 22px; height: 22px; animation: cue 2.2s var(--ease-io) -0.4s infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(6px); opacity: 1; } }

/* the words under the mark: they come up at the end of the scroll */
.hero-copy { position: absolute; z-index: 3; left: 50%; width: min(760px, calc(100% - 40px)); top: calc(36% + min(640px, 86vw) * 0.1415 + 26px); transform: translateX(-50%); text-align: center; pointer-events: none; }
.hero-copy > * { opacity: var(--reveal, 0); translate: 0 calc((1 - var(--reveal, 0)) * 16px); }
.hero-copy.shown { pointer-events: auto; }
.hero h1 { margin: 0; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; text-shadow: var(--tshadow); }
.hero .lede { margin: 14px auto 0; max-width: 54ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--soft); text-shadow: var(--tshadow); }
.hero .ctas { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 14px; font-size: 13px; color: var(--dim); }

/* reduced motion: no scroll journey, the mark and its words at once */
.hero.still { height: 100vh; height: 100svh; }
.hero.still .cue, .hero.still .duty { display: none; }

/* --- the page's route: a line down the side, a stop per section ------------------------ */

main { position: relative; }
.page { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-left: 76px; }
.track { position: absolute; left: 25px; top: 0; bottom: 0; width: 8px; pointer-events: none; }
.track::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--edge); }
.track i { position: absolute; inset: 0; border-radius: 4px; background: var(--accent); transform-origin: top; transform: scaleY(var(--drawn, 0)); box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45); }

section.stop { position: relative; padding: 120px 0 40px; scroll-margin-top: 70px; }
.sh { position: relative; margin-bottom: 40px; }
.sh .dot { position: absolute; left: -61px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px var(--accent); transform: scale(0); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sh.reached .dot { transform: scale(1); }
.sh .dot.terminus { background: var(--line); box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--accent); display: grid; place-items: center; }
.sh .dot.terminus::after { content: "H"; font-weight: 800; font-size: 15px; color: #0f7e3a; }
.sh .when { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.sh .when .t { color: var(--time); font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sh h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; max-width: 28ch; text-wrap: balance; }
.sh p { margin: 14px 0 0; max-width: 60ch; color: var(--soft); font-size: 18px; }

/* entrances: the container gets .in, its parts arrive in turn */
.rise .part { opacity: 0; translate: 0 22px; }
.rise.in .part { opacity: 1; translate: 0 0; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
.rise.in .part:nth-child(2) { transition-delay: 0.08s; }
.rise.in .part:nth-child(3) { transition-delay: 0.16s; }
.rise.in .part:nth-child(4) { transition-delay: 0.24s; }
.rise.settled .part, .rise.settled .part:nth-child(n) { transition-delay: 0s !important; }

/* the sheets (the app's cards) */
.sheet { background: var(--panel); border-radius: var(--r-sheet); box-shadow: var(--sheet-glow); }

/* modes: the start page's four photo cards */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode { position: relative; overflow: hidden; border-radius: var(--r-sheet); aspect-ratio: 3 / 4; background: var(--panel); box-shadow: var(--sheet-glow); isolation: isolate; }
.mode img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.mode::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(6, 10, 24, 0) 30%, rgba(6, 10, 24, 0.72) 62%, rgba(6, 10, 24, 0.94)); }
.mode:hover img { transform: scale(1.05); }
.mode .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; }
.mode .chip { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 12px; }
.mode .chip svg { width: 22px; height: 22px; }
.mode:nth-child(3) .chip { background: var(--accent); }
.mode h3 { margin: 0; font-size: 22px; font-weight: 800; }
.mode p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }

/* career: the service record beside its words */
.career { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.record { padding: 26px 28px; }
.record .k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.record .stats { display: flex; gap: 34px; margin-top: 18px; flex-wrap: wrap; }
.record .stat b { display: block; font-size: 34px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.record .stat span { font-size: 13px; color: var(--dim); }
.record .lvl { margin-top: 22px; font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.record .barline { margin-top: 10px; height: 8px; border-radius: 4px; background: var(--edge); overflow: hidden; }
.record .barline i { display: block; height: 100%; width: 85%; border-radius: 4px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) 0.3s; }
.rise.in .record .barline i { transform: scaleX(1); }
.record .eg { margin-top: 18px; font-size: 12px; color: var(--faint); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.14); color: var(--accent); }
:root:not([data-theme="light"]) .points .ic { color: #8db4ff; }
.points .ic svg { width: 22px; height: 22px; }
.points b { display: block; font-size: 17px; }
.points span { color: var(--soft); font-size: 15px; }

/* in the game: wide illustration cards */
.cab { display: grid; gap: 20px; }
.cab .card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; overflow: hidden; }
.cab .card:nth-child(2) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.cab .card:nth-child(2) .art { order: 2; }
.cab .art { background: #0b1124; aspect-ratio: 1080 / 392; }
.cab .art img, .cab .art svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.cab .txt { padding: 28px 32px; }
.cab .key { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 12px; color: var(--dim); }
.cab kbd { font: 700 12px "Hanken Grotesk", sans-serif; padding: 3px 8px; border-radius: 6px; background: var(--field); box-shadow: inset 0 -2px 0 var(--edge-strong); color: var(--text); }
.cab h3 { margin: 0; font-size: 24px; font-weight: 800; }
.cab p { margin: 8px 0 0; color: var(--soft); }

/* online: a two-by-two of what the account brings, and the promise under it */
.online { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feat { padding: 24px 26px; }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.14); color: var(--accent); margin-bottom: 14px; }
:root:not([data-theme="light"]) .feat .ic { color: #8db4ff; }
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { margin: 0; font-size: 19px; font-weight: 800; }
.feat p { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
.promise { margin-top: 16px; padding: 18px 22px; display: flex; gap: 14px; align-items: center; border-radius: var(--r-sheet); background: rgba(var(--accent-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.25); color: var(--soft); font-size: 15px; }
.promise svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
:root:not([data-theme="light"]) .promise svg { color: #8db4ff; }
.promise b { color: var(--text); }

/* the leaderboard */
.board { padding: 8px 8px 12px; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 14px 18px; }
.count { padding: 14px 18px; border-radius: 12px; background: var(--field); }
.count b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.count span { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: live 2.4s var(--ease) -0.6s infinite; }
@keyframes live { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
.table-wrap { overflow-x: auto; padding: 0 6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 15px; }
th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 6px 12px; white-space: nowrap; }
th.r, td.r { text-align: right; }
td { padding: 12px; background: var(--panel-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
td:first-child { border-radius: 10px 0 0 10px; width: 64px; }
td:last-child { border-radius: 0 10px 10px 0; }
tr.new td { animation: row-in 0.6s var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
.place { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--field); font-weight: 800; font-size: 13px; }
tr.podium .place { background: var(--line); color: var(--on-line); }
.driver { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.driver .off { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); opacity: 0.5; flex: none; }
.board .note { padding: 18px 20px 8px; color: var(--dim); font-size: 14px; }
.board .empty { padding: 34px 20px 28px; text-align: center; color: var(--soft); }
.board .empty b { display: block; font-size: 18px; color: var(--text); margin-bottom: 4px; }
.when-upd { font-size: 12px; color: var(--faint); }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 14px 6px; }
.board-foot .btn svg { width: 18px; height: 18px; }

/* --- the leaderboard page ------------------------------------------------------------- */

.solo { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-top: 130px; }
.solo-head .when { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.solo-head .plate { font-size: 11px; letter-spacing: 0.06em; }
.solo-head h1 { margin: 12px 0 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.solo-head p { margin: 14px 0 0; max-width: 60ch; color: var(--soft); font-size: 18px; }
.solo-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.board-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 14px 10px; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border: 0; border-radius: 10px; background: var(--field); color: var(--text); font: 500 15px "Hanken Grotesk", sans-serif; box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow 0.2s var(--ease); }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
th .sort { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; align-items: center; gap: 4px; }
th .sort:hover { color: var(--text); }
th .sort[data-dir]::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
th .sort[data-dir="down"]::after { border-top: 5px solid currentColor; }
th .sort[data-dir="up"]::after { border-bottom: 5px solid currentColor; }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--text); }
.solo .board td { padding-top: 13px; padding-bottom: 13px; }
.how { padding: 24px 24px 26px; position: sticky; top: 92px; }
.how h2 { margin: 0; font-size: 21px; font-weight: 800; }
.how ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.how li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; }
.how li .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #10204a; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 4px var(--accent); z-index: 1; }
.how li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 28px; bottom: -18px; width: 6px; background: var(--accent); }
.how li b { display: block; }
.how li span { color: var(--soft); font-size: 14px; }
.how .privacy { margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--field); color: var(--soft); font-size: 14px; }
.how .privacy b { color: var(--text); }
.how .btn { margin-top: 18px; width: 100%; }
@media (max-width: 960px) {
  .solo-grid { grid-template-columns: minmax(0, 1fr); }
  .how { position: static; }
}
@media (max-width: 640px) {
  .solo { width: calc(100% - 32px); padding-top: 100px; }
  .solo-head p { font-size: 16px; }
  .board-tools { padding: 0 6px 10px; }
  .search { max-width: none; }
}

/* download */
.get { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.get .main { padding: 36px 36px 32px; }
.get .ver { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.get .ver b { color: var(--text); }
.get .tag { padding: 3px 10px; border-radius: 12px; background: rgba(var(--accent-rgb), 0.16); color: var(--text); font-size: 12px; font-weight: 700; }
.get h3 { margin: 14px 0 0; font-size: 28px; font-weight: 800; }
.get .primary-row { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.get .others { margin-top: 18px; display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; }
.get .others a { color: var(--soft); text-decoration-color: var(--edge-strong); text-underline-offset: 3px; }
.get .others a:hover { color: var(--text); }
.get .need { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--field); font-size: 14px; color: var(--soft); display: flex; gap: 12px; }
.get .need svg { width: 20px; height: 20px; flex: none; color: var(--time); margin-top: 2px; }
.get .steps { margin: 0; padding: 36px 32px; list-style: none; background: var(--panel-2); display: grid; gap: 22px; align-content: center; position: relative; }
.get .steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; position: relative; }
.get .steps li .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #10204a; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 4px var(--accent); z-index: 1; }
.get .steps li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 30px; bottom: -22px; width: 6px; background: var(--accent); }
.get .steps b { display: block; }
.get .steps span { color: var(--soft); font-size: 14px; }
.get .mac { margin-top: 12px; font-size: 13px; color: var(--dim); }

/* the questions */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--panel); box-shadow: var(--sheet-glow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--soft); max-width: 70ch; }

/* the footer */
footer { margin-top: 120px; padding: 48px 0 56px; border-top: 1px solid var(--edge); }
footer .in { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; gap: 32px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
footer svg.logo { height: 34px; width: auto; }
footer p { margin: 12px 0 0; max-width: 52ch; color: var(--dim); font-size: 14px; }
footer .links { display: flex; gap: 18px; font-size: 14px; }
footer .links a { color: var(--soft); text-decoration: none; }
footer .links a:hover { color: var(--text); }

/* --- smaller screens ------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .bar nav { display: none; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .mode { aspect-ratio: 4 / 3; }
  .career { grid-template-columns: 1fr; gap: 32px; }
  .duty { left: calc(50% - 136px); top: calc(50% - 90px); }
}
@media (max-width: 820px) {
  .cab .card, .cab .card:nth-child(2) { grid-template-columns: 1fr; }
  .cab .card:nth-child(2) .art { order: 0; }
  .online { grid-template-columns: 1fr; }
  .get { grid-template-columns: minmax(0, 1fr); }
  .counts { grid-template-columns: repeat(3, 1fr); }
  .hide-s { display: none; }
}
@media (max-width: 640px) {
  .bar { top: 10px; height: 52px; padding: 0 6px 0 12px; }
  .bar .beta, .bar .btn { display: none; }
  .bar .beta-pill { margin-left: 2px; }
  .bar .brand svg { height: 26px; }
  .page { width: calc(100% - 32px); padding-left: 40px; }
  .track { left: 9px; width: 6px; }
  .sh .dot { left: -40px; width: 22px; height: 22px; top: 8px; box-shadow: 0 0 0 5px var(--accent); }
  .sh .dot.terminus::after { font-size: 12px; }
  section.stop { padding-top: 88px; }
  .sh p { font-size: 16px; }
  .modes { grid-template-columns: 1fr; }
  .record .stats { gap: 22px; }
  .record .stat b { font-size: 28px; }
  .count { padding: 12px; }
  .count b { font-size: 22px; }
  .get .main, .get .steps { padding: 26px 22px; }
  .hero .ctas .btn { width: 100%; }
  .get .primary-row .btn { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 56px; padding: 12px 18px; line-height: 1.25; }
  td, th { padding-left: 7px; padding-right: 7px; }
  table { font-size: 14px; }
  td:first-child { width: auto; }
  .place { min-width: 28px; padding: 0 6px; }
  .driver span { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
  .board { padding: 4px 2px 10px; }
  .table-wrap { padding: 0 4px; }
  .hide-xs { display: none; }
}
@media (max-height: 560px) { .duty, .cue { display: none !important; } }

/* --- reduced motion: everything in its final state ------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .rise .part { opacity: 1 !important; translate: 0 0 !important; }
  .sh .dot { transform: scale(1); }
  .record .barline i { transform: scaleX(1); }
}
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* --- the account (account.html) -------------------------------------------------------- */

.acct-link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 10px; margin-left: 4px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--text); background: var(--edge); transition: background 0.2s var(--ease); white-space: nowrap; }
.acct-link:hover { background: var(--edge-strong); }
.acct-link svg { width: 20px; height: 20px; color: var(--dim); }
.acct-link.on svg { color: var(--accent); }
@media (max-width: 640px) { .acct-link span { display: none; } .acct-link { padding: 0 9px; } }

.acct { min-height: calc(100vh - 220px); }
.auth-card { width: min(460px, 100%); margin: 0 auto; padding: 32px 32px 26px; }
.auth-card h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.auth-card .sub { margin: 8px 0 22px; color: var(--soft); font-size: 15px; }
.auth-card form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field input { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--field); color: var(--text); font: 500 16px "Hanken Grotesk", sans-serif; box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow 0.2s var(--ease); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field small { font-weight: 400; font-size: 13px; color: var(--dim); }
.field input.code { font-size: 24px; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.eye { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 40px; height: 38px; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; display: grid; place-items: center; }
.eye:hover, .eye.on { color: var(--text); }
.eye svg { width: 20px; height: 20px; }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 2px; }
.meter i { height: 4px; border-radius: 2px; background: var(--edge); transition: background 0.3s var(--ease); }
.meter[data-s="0"] i:nth-child(1) { background: var(--danger); }
.meter[data-s="1"] i:nth-child(-n + 2) { background: #e8aa46; }
.meter[data-s="2"] i { background: var(--ok); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.row-between a, .switch a, .hint a { color: var(--text); text-underline-offset: 3px; }
.msg { font-size: 14px; }
.msg:empty { display: none; }
.msg[data-kind="error"] { padding: 10px 12px; border-radius: 10px; background: rgba(229, 83, 75, 0.12); color: var(--text); box-shadow: inset 3px 0 0 var(--danger); }
.msg[data-kind="ok"] { padding: 10px 12px; border-radius: 10px; background: rgba(52, 178, 110, 0.12); color: var(--text); box-shadow: inset 3px 0 0 var(--ok); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
.btn.busy span { opacity: 0.35; }
.btn.busy { position: relative; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.switch { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--dim); }
.linkish { border: 0; background: none; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.fine { margin: 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.loading-state { display: grid; place-items: center; min-height: 40vh; }
.loading-state[hidden] { display: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--edge-strong); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }

.me-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 28px; font-weight: 800; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.25); flex: none; }
.who .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.who h1 { margin: 2px 0 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.who .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--dim); margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status[data-on="1"]::before { background: var(--ok); }
.me-head .grow { flex: 1; }
.btn svg { width: 20px; height: 20px; }
.tabs { display: flex; gap: 4px; margin: 28px 0 18px; padding: 4px; border-radius: 12px; background: var(--edge); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs [role="tab"] { border: 0; background: none; cursor: pointer; padding: 9px 16px; border-radius: 9px; font: 700 14px "Hanken Grotesk", sans-serif; color: var(--dim); white-space: nowrap; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.tabs [role="tab"][aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px 24px; }
.card h2 { margin: 0; font-size: 18px; font-weight: 800; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card .hint { margin: 10px 0 0; color: var(--soft); font-size: 14px; }
.record-card { grid-column: 1 / -1; }
.record-card .stats { display: flex; gap: 36px; flex-wrap: wrap; }
.record-card .stat b { display: block; font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.record-card .stat span { font-size: 13px; color: var(--dim); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch-row b { display: block; font-size: 15px; }
.switch-row small { display: block; margin-top: 2px; color: var(--dim); font-size: 13px; }
.toggle { position: relative; flex: none; width: 50px; height: 30px; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; border-radius: 15px; background: var(--edge-strong); transition: background 0.25s var(--ease); pointer-events: none; }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: translate 0.25s var(--ease); }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { translate: 20px 0; }
.toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
.toggle input:disabled + i { opacity: 0.5; }
.place-chip { padding: 3px 10px; border-radius: 12px; background: var(--line); color: var(--on-line); font-size: 13px; font-weight: 800; }
.place-chip[hidden] { display: none; }
.board-card .msg { margin-top: 12px; }
.more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--text); text-underline-offset: 3px; }
.code-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.friend-code { font-size: 28px; font-weight: 800; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; padding: 6px 14px; border-radius: 10px; background: var(--field); box-shadow: inset 0 0 0 1px var(--edge); }
.friends { margin-top: 12px; display: grid; gap: 4px; font-size: 14px; color: var(--dim); }
.app-card .btn { margin-top: 16px; }
.facts { margin: 6px 0 0; display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: rgba(52, 178, 110, 0.16); color: var(--ok); font-size: 12px; font-weight: 700; }
.badge[hidden] { display: none; }
.card form { display: grid; gap: 14px; margin-top: 14px; }
.card form .btn { justify-self: start; }
.sessions { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.sessions li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--field); font-size: 14px; }
.sessions li span { color: var(--dim); }
.sessions li em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
:root:not([data-theme="light"]) .sessions li em { color: #8db4ff; }
.sessions li.hint { background: none; padding: 0; }
.danger { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--edge); }
.danger h3 { margin: 0; font-size: 15px; }
.pick { margin-bottom: 16px; box-shadow: inset 0 0 0 2px var(--line), var(--sheet-glow); }
.pick[hidden] { display: none; }
form.inline { display: flex; gap: 10px; align-items: end; margin-top: 12px; }
form.inline .grow-1 { flex: 1; }
@media (max-width: 820px) {
  .me-grid, .me-grid.two { grid-template-columns: minmax(0, 1fr); }
  .record-card .stats { gap: 22px; }
}
@media (max-width: 640px) {
  .auth-card { padding: 24px 20px 20px; }
  .avatar { width: 52px; height: 52px; font-size: 22px; }
  .record-card .stat b { font-size: 26px; }
  form.inline { flex-direction: column; align-items: stretch; }
}

/* --- support (Ko-fi) ---------------------------------------------------------------------- */

.support { padding: 90px 0 10px; }
.support-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 30px; background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.16), rgba(245, 134, 32, 0.08)), var(--panel); }
.support-mark { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.support-mark svg { width: 34px; height: 34px; }
.support h2 { margin: 0; font-size: 24px; font-weight: 800; }
.support p { margin: 6px 0 0; color: var(--soft); max-width: 60ch; }
.support .btn svg { width: 22px; height: 22px; --support-heart: #ffd0cf; }
@media (max-width: 760px) {
  .support-in { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .support .btn { width: 100%; }
}

/* --- the bus company page (company.html) ------------------------------------------------ */

.co { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-top: 120px; }
.co .when { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.co .when .t { color: var(--time); font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.co .when .plate { font-size: 11px; letter-spacing: 0.06em; }
.co-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; min-height: min(78vh, 720px); }
.co-hero h1 { margin: 14px 0 0; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; font-weight: 800; letter-spacing: -0.03em; }
.co-hero .lede { margin: 18px 0 0; font-size: 19px; color: var(--soft); max-width: 50ch; }
.co-hero .ctas, .co-cta .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.co-hero-art { position: relative; }
.co-hero-art .photo { border-radius: 20px; overflow: hidden; box-shadow: var(--sheet-glow), var(--shadow); aspect-ratio: 16 / 11; }
.co-hero-art .photo img { width: 100%; height: 100%; object-fit: cover; }
.co-card { position: absolute; left: -28px; bottom: -28px; width: min(340px, 80%); padding: 16px 18px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow); }
.co-card-head { display: flex; align-items: center; gap: 12px; }
.co-card-head b { display: block; font-size: 16px; }
.co-card-head span { font-size: 12px; color: var(--dim); }
.co-logo { width: 38px; height: 38px; border-radius: 10px; display: grid !important; place-items: center; background: var(--accent); color: #fff !important; font-weight: 800; font-size: 14px !important; }
.co-clock { margin-left: auto; font-size: 18px !important; font-weight: 800; color: var(--time) !important; font-variant-numeric: tabular-nums; }
.co-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.co-card-stats div { padding: 8px 10px; border-radius: 10px; background: var(--edge); }
.co-card-stats b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.co-card-stats span { font-size: 11px; color: var(--dim); }
.co-card-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--soft); }
.co-card-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.warn-chip { margin-left: auto; padding: 2px 9px; border-radius: 10px; background: rgba(255, 166, 38, 0.16); color: #ffb54d; font-size: 12px; font-weight: 700; white-space: nowrap; }
:root[data-theme="light"] .warn-chip { color: #9c5c00; }
.ok-chip { padding: 2px 9px; border-radius: 10px; background: rgba(52, 178, 110, 0.16); color: var(--ok); font-size: 12px; font-weight: 700; }

.co-sec { padding: 120px 0 0; }
.co-head { max-width: 760px; margin-bottom: 36px; }
.co-head h2 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.co-head p { margin: 14px 0 0; color: var(--soft); font-size: 18px; }

/* the four steps on a line, as stops */
.co-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.co-steps::before { content: ""; position: absolute; left: 15px; right: calc(25% - 34px); top: 13px; height: 6px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.4); }
.co-steps li { position: relative; }
.co-steps .n { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #10204a; font-weight: 800; box-shadow: 0 0 0 5px var(--accent); }
.co-steps li:last-child .n { background: var(--line); }
.co-steps h3 { margin: 22px 0 0; font-size: 20px; font-weight: 800; }
.co-steps p { margin: 8px 0 0; color: var(--soft); font-size: 15px; }

/* the game modes */
.co-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.mode-card { position: relative; padding: 26px 26px 22px; }
.mode-card.featured { box-shadow: 0 0 0 2px var(--accent), 0 0 40px rgba(var(--accent-rgb), 0.2); }
.mode-card .tag { position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.mode-card h3 { margin: 0; font-size: 24px; font-weight: 800; }
.mode-card > p { margin: 8px 0 0; color: var(--soft); font-size: 15px; min-height: 3em; }
.mode-card dl { margin: 18px 0 0; display: grid; gap: 0; }
.mode-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--edge); font-size: 14px; }
.mode-card dt { color: var(--dim); }
.mode-card dd { margin: 0; font-weight: 700; text-align: right; }

/* the features */
.co-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.co-grid .feat { padding: 22px 22px 20px; }
.co-grid .feat h3 { font-size: 17px; }
.co-grid .feat p { font-size: 14px; }

/* two halves: words and a screen */
.co-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.co-split .co-head { margin: 0; }
.co-split.rev .co-head { order: 2; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--soft); }
.ticks li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--accent); }

/* the dispatcher */
.disp { padding: 18px; display: grid; gap: 10px; }
.disp-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 6px; }
.disp-head .warn-chip { margin-left: 0; }
.disp-head .mono { margin-left: auto; color: var(--time); font-weight: 800; font-variant-numeric: tabular-nums; }
.disp-case { padding: 14px; border-radius: 12px; background: var(--field); box-shadow: inset 3px 0 0 #ffa626; }
.disp-what { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.disp-what .why { margin-left: auto; color: #ffb54d; font-size: 13px; font-weight: 700; }
:root[data-theme="light"] .disp-what .why { color: #9c5c00; }
.disp-opts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.opt { padding: 6px 11px; border-radius: 9px; background: var(--edge); font-size: 13px; font-weight: 700; color: var(--soft); }
.opt.best { background: var(--accent); color: #fff; }
.opt.bad { color: var(--danger); background: rgba(229, 83, 75, 0.1); }
.disp-no { padding: 4px 6px 0; font-size: 13px; color: var(--dim); }

/* RosterFlow's window, in RosterFlow's own look */
.rf { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.rf-window { --rfbg: #272e38; --rfbar: #212730; --rfline: rgba(255, 255, 255, 0.07); --rftext: #e2e6ec; --rfdim: #969eac; --rfacc: #3fa8ff;
  border-radius: 14px; overflow: hidden; background: var(--rfbg); color: var(--rftext); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.45); font-size: 13px; }
.rf-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--rfbar); border-bottom: 1px solid var(--rfline); }
.rf-brand { font-weight: 800; letter-spacing: 0.02em; }
.rf-tabs { display: flex; gap: 2px; margin-left: 10px; }
.rf-tabs button { border: 0; background: none; cursor: pointer; padding: 8px 12px; color: var(--rfdim); font: 700 13px "Hanken Grotesk", sans-serif; border-bottom: 2px solid transparent; }
.rf-tabs button:hover { color: var(--rftext); }
.rf-tabs button[aria-selected="true"] { color: var(--rftext); border-bottom-color: var(--rfacc); }
.rf-grow { flex: 1; }
.rf-btn { padding: 6px 12px; border-radius: 6px; background: var(--rfacc); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0.04em; }
.rf-btn.ghost { background: #3b4a5c; }
.rf-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--rfline); border-bottom: 1px solid var(--rfline); }
.rf-kpis div { padding: 10px 12px; background: #2c333d; }
.rf-kpis b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.rf-kpis span { color: var(--rfdim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.rf-kpis .ok b { color: #46c478; }
.rf-body { padding: 12px 12px 6px; min-height: 280px; overflow-x: auto; }
.rf-panel[hidden] { display: none; }
.rf-status { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; background: #1f242c; color: var(--rfdim); font-size: 12px; border-top: 1px solid var(--rfline); }
.rf-status .draft { color: #ffa626; font-weight: 700; }
.rf-explain { position: sticky; top: 100px; }
.rf-explain h3 { margin: 0; font-size: 22px; font-weight: 800; }
.rf-explain p { margin: 8px 0 0; color: var(--soft); }

/* the Gantt: blocks and duties */
.gantt { min-width: 640px; display: grid; gap: 6px; }
.g-axis, .g-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: center; }
.g-lab { color: var(--rfdim); font-size: 12px; font-weight: 700; }
.g-scale { position: relative; height: 18px; border-bottom: 1px solid var(--rfline); }
.g-scale .tick { position: absolute; top: 0; translate: -50% 0; font-size: 11px; color: var(--rfdim); font-variant-numeric: tabular-nums; }
.g-scale .tick.half::after { content: ""; position: absolute; left: 50%; top: 10px; width: 1px; height: 7px; background: var(--rfline); }
.g-lane { position: relative; height: 30px; border-radius: 6px; background: #2c333d; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 11 - 1px), var(--rfline) calc(100% / 11 - 1px), var(--rfline) calc(100% / 11)); }
.g-lane > span, .g-drop { position: absolute; top: 4px; height: 22px; }
.g-trip, .g-work { background: var(--c); color: #0b1424; font-weight: 800; font-size: 11px; display: flex; align-items: center; padding-left: 6px; overflow: hidden; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
.g-work { border-radius: 4px; clip-path: none; }
.g-depot { background: #707c8c; border-radius: 4px; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.g-dead { top: 14px !important; height: 2px !important; background: repeating-linear-gradient(90deg, var(--rfdim) 0 4px, transparent 4px 7px); }
.g-break { top: 8px !important; height: 14px !important; border-radius: 4px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 4px, transparent 4px 8px); color: var(--rfdim); font-size: 10px; display: grid; place-items: center; overflow: hidden; }
.g-on, .g-off { top: 9px !important; height: 12px !important; border-radius: 3px; background: #3b4a5c; }
.g-relief { width: 3px !important; top: 0 !important; height: 30px !important; background: #ffa626; }
.g-drop { top: -4px; display: flex; align-items: center; gap: 6px; }
.g-trip.drag { position: relative; width: 58px; height: 22px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); transform: rotate(-3deg); outline: 2px dashed #fff; outline-offset: 3px; }
.g-drop .stars { color: #ffd23f; font-size: 13px; letter-spacing: 1px; text-shadow: 0 1px 2px #000; }

/* the timetable grid and the roster */
.tp-bands { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.band { display: inline-flex; gap: 8px; padding: 5px 10px; border-radius: 7px; background: #2c333d; font-size: 12px; }
.band span { color: var(--rfdim); }
.unsync { margin-left: auto; padding: 4px 9px; border-radius: 6px; background: rgba(255, 166, 38, 0.16); color: #ffa626; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
.tp table, .ros table { border-collapse: separate; border-spacing: 2px; font-size: 12px; min-width: 620px; width: 100%; }
.tp th, .tp td, .ros th, .ros td { padding: 6px 8px; background: #2c333d; border-radius: 4px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--rftext); font-weight: 400; }
.tp thead th, .ros thead th { background: #212730; color: var(--rfdim); font-weight: 700; }
.tp th.stop, .ros th.stop { text-align: left; color: var(--rftext); font-weight: 700; background: #1d2127; }
.tp td.edit { background: rgba(243, 156, 18, 0.22); color: #ffc066; font-weight: 800; box-shadow: inset 0 0 0 1px #f39c12; }
.ros thead th.today { color: var(--rfacc); }
.ros td { background: #262d37; }
.r-duty { display: inline-block; min-width: 34px; padding: 2px 6px; border-radius: 5px; background: rgba(63, 168, 255, 0.2); color: #9fd2ff; font-weight: 800; }
.r-free { color: var(--rfdim); }
.r-hol { display: inline-block; padding: 2px 6px; border-radius: 5px; background: rgba(70, 196, 120, 0.18); color: #7fe0a6; font-weight: 700; }

.rf-more { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.rf-more li { padding: 14px 0; border-top: 1px solid var(--edge); }
.rf-more b { display: block; font-size: 16px; }
.rf-more span { color: var(--soft); font-size: 14px; }

/* the duty */
.duty-card { padding: 22px; display: grid; gap: 14px; max-width: 460px; justify-self: center; width: 100%; }
.dc-head { display: flex; align-items: center; gap: 12px; }
.dc-head b { display: block; font-size: 18px; }
.dc-head span { color: var(--dim); font-size: 13px; }
.dc-trips { list-style: none; margin: 0; padding: 0 0 0 20px; display: grid; gap: 10px; position: relative; }
.dc-trips::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 5px; border-radius: 3px; background: var(--accent); }
.dc-trips li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; position: relative; }
.dc-trips li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent); }
.dc-trips .t { color: var(--time); font-weight: 800; font-variant-numeric: tabular-nums; }
.dc-bus { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--field); font-size: 14px; font-weight: 700; }
.duty-card .btn { cursor: default; }

/* what comes next */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 22px; background: var(--panel); box-shadow: var(--sheet-glow); font-weight: 700; font-size: 15px; }

.co-cta { padding: 110px 0 0; }
.co-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 34px 36px; background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.18), rgba(245, 134, 32, 0.08)), var(--panel); }
.co-cta h2 { margin: 0; font-size: 30px; font-weight: 800; }
.co-cta p { margin: 6px 0 0; color: var(--soft); }
.co-cta .ctas { margin-top: 0; }

@media (max-width: 1100px) {
  .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf { grid-template-columns: minmax(0, 1fr); }
  .rf-explain { position: static; }
}
@media (max-width: 900px) {
  .co-hero, .co-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .co-split.rev .co-head { order: 0; }
  .co-hero { min-height: 0; }
  .co-card { left: 12px; bottom: -24px; }
  .co-modes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .co-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 0; }
  .co-steps::before { left: 13px; right: auto; top: 16px; bottom: 16px; width: 6px; height: auto; }
  .co-steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; }
  .co-steps .n { grid-row: span 2; }
  .co-steps h3 { margin: 4px 0 0; }
  .rf-more { grid-template-columns: minmax(0, 1fr); }
  .rf-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .co { width: calc(100% - 32px); padding-top: 96px; }
  .co-sec { padding-top: 88px; }
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-hero .lede { font-size: 17px; }
  .rf-top { flex-wrap: wrap; }
  .rf-tabs { margin-left: 0; order: 3; width: 100%; overflow-x: auto; }
  .rf-btn { display: none; }
  .co-cta-in { padding: 26px 22px; }
  .co-cta .btn { width: 100%; }
}
.mode-more { display: inline-block; margin-top: 10px; color: #fff; font-size: 14px; font-weight: 800; text-underline-offset: 3px; }
.mode-more:hover { text-decoration: underline; }
.tp th, .ros th { text-transform: none; letter-spacing: 0; font-size: 12px; }
@media (max-width: 640px) { .co-card { width: calc(100% - 24px); padding: 14px; } .co-card-stats b { font-size: 13px; } .co-card-stats div { padding: 7px 8px; } }

/* --- the download page (download.html) ------------------------------------------------- */

.dl-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dl-card { position: relative; padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.dl-card.mine { box-shadow: 0 0 0 2px var(--accent), 0 0 40px rgba(var(--accent-rgb), 0.22); }
.dl-card .yours { display: none; position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.dl-card.mine .yours { display: inline-block; }
.dl-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--field); box-shadow: inset 0 0 0 1px var(--edge); }
.dl-ic svg { width: 28px; height: 28px; }
.dl-card h2 { margin: 6px 0 0; font-size: 26px; font-weight: 800; }
.dl-card .sys { margin: 0; color: var(--dim); font-size: 14px; }
.dl-card .btn.wide { width: 100%; }
.dl-card .btn[hidden], .dl-card [hidden] { display: none !important; }
.dl-card .file { margin: 0; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dl-card .file a { color: var(--soft); }
.dl-card .dl-how { margin: 6px 0 0; padding: 14px 0 0 20px; border-top: 1px solid var(--edge); display: grid; gap: 6px; color: var(--soft); font-size: 14px; }
.dl-card .chip-help { margin: 0; font-size: 13px; color: var(--dim); }
.dl-card.soon .dl-ic, .dl-card.soon h2, .dl-card.soon .sys { opacity: 0.6; }
.soon-tag { position: absolute; top: 22px; right: 22px; padding: 3px 10px; border-radius: 10px; background: rgba(255, 210, 63, 0.16); color: var(--line); font-size: 12px; font-weight: 800; }
:root[data-theme="light"] .soon-tag { color: #8a6a00; }
.btn.disabled { opacity: 0.6; cursor: default; }
.btn.disabled:hover { transform: none; }
.dl-need { margin-top: 20px; padding: 16px 20px; display: flex; gap: 14px; align-items: center; color: var(--soft); font-size: 15px; }
.dl-need svg { width: 22px; height: 22px; flex: none; color: var(--time); }
.dl-need b { color: var(--text); }
.dl-foot { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dl-foot h2 { margin: 0; font-size: 17px; font-weight: 800; }
.dl-foot p { margin: 6px 0 0; color: var(--soft); font-size: 14px; }
.dl-foot a { color: var(--text); text-underline-offset: 3px; }
@media (max-width: 960px) {
  .dl-grid, .dl-foot { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* the light along the mark, on hover once the opening is through (hero.js) */
.scene .mark-hit { pointer-events: all; }
.scene .glint-core { stroke: #f4f8ff; }
.scene .glint-glow { stroke: #8fbaff; opacity: 0.85; }
.scene .pop-streaks line { stroke: #14C6BC; }
.scene .pop-streaks line:nth-child(even) { stroke: var(--logo-ink); }

/* --- the editors page (editors.html) ---------------------------------------------------- */

.ed-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ed-tile { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 16px; background: var(--panel); box-shadow: var(--sheet-glow); text-decoration: none; color: var(--text); font-size: 17px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.ed-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent), 0 10px 30px rgba(var(--accent-rgb), 0.2); }
.ed-tile.wide { grid-column: 1 / -1; }
.ed-tile .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.14); color: var(--accent); flex: none; }
:root:not([data-theme="light"]) .ed-tile .ic { color: #8db4ff; }
.ed-tile .ic svg { width: 26px; height: 26px; }
.ed-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* the line editor */
.le { padding: 12px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.le-map { position: relative; border-radius: 12px; overflow: hidden; min-height: 280px; background: #0a1430 url("img/city.jpg") 40% 35% / 260% auto; }
:root[data-theme="light"] .le-map { background-color: #dfe8f8; }
.le-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.le-route { fill: none; stroke: #3fa8ff; stroke-width: 7; stroke-linecap: round; }
.le-back { fill: none; stroke: rgba(63, 168, 255, 0.35); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 9; }
.le-stops circle { fill: #fff; stroke: #3fa8ff; stroke-width: 4; }
.le-stops circle.end { fill: #ffd23f; stroke: #fff; }
.le-stops circle.off { fill: rgba(255, 255, 255, 0.55); stroke: none; }
.le-via { fill: #fff; stroke: #f58620; stroke-width: 3; }
.le-tip { position: absolute; left: 51%; top: 34%; padding: 3px 8px; border-radius: 6px; background: rgba(8, 15, 36, 0.85); color: #fff; font-size: 12px; font-weight: 700; }
.le-panel { display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.le-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.le-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.le-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--field); font-size: 13px; font-weight: 700; }
.le-list li.on { background: rgba(var(--accent-rgb), 0.2); box-shadow: inset 3px 0 0 var(--accent); }
.le-list .m { color: var(--time); font-variant-numeric: tabular-nums; }
.le-est { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--edge); font-size: 13px; color: var(--dim); }
.le-est b { color: var(--text); }

/* the timetable */
.tt3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tt-col { padding: 14px; }
.tt-col .k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.tt-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tt-col li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--field); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.tt-col li.on { background: rgba(var(--accent-rgb), 0.2); box-shadow: inset 3px 0 0 var(--accent); }
.tt-col li.add { color: var(--accent); background: none; box-shadow: inset 0 0 0 1px dashed var(--edge); border: 1px dashed var(--edge-strong); }
:root:not([data-theme="light"]) .tt-col li.add { color: #8db4ff; }
.tt-col .plate { min-width: 34px; height: 20px; font-size: 11px; }
.tt-col .trips .t { color: var(--time); font-variant-numeric: tabular-nums; }

/* the depot editor: the front matrix, the IBIS, the side sign */
.dp { padding: 16px; display: grid; gap: 12px; }
.matrix { position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 10px; background: #0b0b0d; box-shadow: inset 0 0 0 3px #1c1d22; overflow: hidden; font: 800 34px/1 "Hanken Grotesk", sans-serif; color: #ffb21f; text-shadow: 0 0 10px rgba(255, 170, 30, 0.6); letter-spacing: 0.04em; }
.matrix::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 42%, #0b0b0d 52%) 0 0 / 5px 5px; pointer-events: none; }
.matrix .ln { font-size: 40px; }
.dp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.ibis { padding: 10px 12px; border-radius: 8px; background: #9fc45a; color: #1d2a0c; font: 700 13px/1.3 "Hanken Grotesk", sans-serif; box-shadow: inset 0 0 0 2px #7d9c40; }
.ibis span, .ibis b { display: block; }
.side { display: flex; align-items: center; padding: 10px 14px; border-radius: 8px; background: #0b0b0d; color: #ffb21f; font-weight: 800; font-size: 16px; text-shadow: 0 0 8px rgba(255, 170, 30, 0.5); }
.dp-table { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-size: 13px; }
.dp-table th { font-size: 11px; padding: 4px 10px; text-transform: uppercase; }
.dp-table td { padding: 8px 10px; background: var(--field); }
.dp-table td:first-child { border-radius: 8px 0 0 8px; color: var(--time); font-weight: 800; font-variant-numeric: tabular-nums; width: 56px; }
.dp-table td:last-child { border-radius: 0 8px 8px 0; }
.dp-table tr.on td { background: rgba(var(--accent-rgb), 0.2); }

/* the livery studio */
.lv { padding: 12px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.lv-stage { border-radius: 12px; overflow: hidden; background: #0f1626; display: grid; place-items: center; }
.lv-stage svg { width: 100%; height: auto; display: block; }
.lv-stage .sel { fill: none; stroke: #3fa8ff; stroke-width: 2; stroke-dasharray: 5 4; }
.lv-stage .hdl { fill: #fff; stroke: #3fa8ff; stroke-width: 2; }
.lv-layers { list-style: none; margin: 0; padding: 4px; display: grid; gap: 6px; align-content: start; }
.lv-layers li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; background: var(--field); font-size: 13px; font-weight: 700; }
.lv-layers li.on { background: rgba(var(--accent-rgb), 0.2); box-shadow: inset 3px 0 0 var(--accent); }
.lv-layers .sw { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); flex: none; }

/* the map's objects */
.ob { display: flex; align-items: center; gap: 22px; padding: 26px 28px; }
.ob .ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.14); color: var(--accent); flex: none; }
:root:not([data-theme="light"]) .ob .ic { color: #8db4ff; }
.ob .ic svg { width: 32px; height: 32px; }
.ob h2 { margin: 6px 0 0; font-size: 26px; font-weight: 800; }
.ob p { margin: 6px 0 0; color: var(--soft); }

/* the home page's creator block */
.make { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.make-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.make-tiles a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--panel); box-shadow: var(--sheet-glow); text-decoration: none; color: var(--text); font-weight: 700; transition: transform 0.25s var(--ease); }
.make-tiles a:hover { transform: translateY(-2px); }
.make-tiles .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.14); color: var(--accent); flex: none; }
:root:not([data-theme="light"]) .make-tiles .ic { color: #8db4ff; }
.make-tiles .ic svg { width: 22px; height: 22px; }
.make .btn { margin-top: 20px; }

@media (max-width: 1100px) {
  .ed-why { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .make { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .le, .lv { grid-template-columns: minmax(0, 1fr); }
  .tt3 { grid-template-columns: minmax(0, 1fr); }
  .ed-tiles, .make-tiles { grid-template-columns: minmax(0, 1fr); }
  .ob { flex-direction: column; align-items: flex-start; }
  .matrix { font-size: 24px; gap: 12px; padding: 12px 14px; }
  .matrix .ln { font-size: 28px; }
}

/* the menu stays on one line; on a medium screen the home page's own sections (Career, Online) step out of it */
.bar nav a { white-space: nowrap; }
@media (max-width: 1320px) { .bar nav a { padding: 8px 9px; } }

/* the footer's credit: powered by Pascal Services */
footer .powered { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--edge); display: flex; align-items: center; gap: 12px; justify-content: flex-start; font-size: 13px; color: var(--dim); }
footer .powered-logo { display: inline-flex; align-items: center; }
footer .powered-logo img { height: 30px; width: auto; display: block; }
/* the white logo on the dark look, the coloured one on the light look */
footer .powered-logo .on-light { display: none; }
:root[data-theme="light"] footer .powered-logo .on-dark { display: none; }
:root[data-theme="light"] footer .powered-logo .on-light { display: block; }

/* the account's delete button */
.btn.danger-btn { background: rgba(229, 83, 75, 0.12); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(229, 83, 75, 0.45); }
.btn.danger-btn:hover { background: var(--danger); color: #fff; }
.danger form { margin-top: 12px; }
footer a.powered-logo { opacity: 0.85; transition: opacity 0.2s; }
footer a.powered-logo:hover, footer a.powered-logo:focus-visible { opacity: 1; }

/* the mode tiles: "How it works" opens a panel under the tile's row */
.mode::after { transition: background 0.4s var(--ease); }
.mode.open { box-shadow: 0 0 0 2px var(--accent), var(--sheet-glow); }
.mode-how { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px 6px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.mode-how:hover, .mode-how:focus-visible { background: rgba(255, 255, 255, 0.28); }
.mode-how svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.mode.open .mode-how { background: var(--accent); }
.mode.open .mode-how svg { transform: rotate(180deg); }
.mode .mode-more { display: block; margin-top: 10px; }
.mode-steps { grid-column: 1 / -1; padding: 24px 26px; border-radius: var(--r-sheet); background: var(--panel); box-shadow: var(--sheet-glow); animation: steps-in 0.4s var(--ease); }
.mode-steps h3 { margin: 0 0 16px; font-size: 18px; font-weight: 800; }
.mode-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mode-steps li { counter-increment: step; position: relative; padding-top: 40px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.mode-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; }
.mode-steps li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: 38px; right: -8px; height: 2px; border-radius: 1px; background: rgba(var(--accent-rgb), 0.35); }
.mode-get { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--edge); font-size: 14px; color: var(--soft); }
.mode-get b { color: var(--text); margin-right: 6px; }
@keyframes steps-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 900px) {
  .mode-steps ol { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mode-steps li { padding: 3px 0 0 40px; }
  .mode-steps li:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mode-steps { animation: none; } .mode-how svg { transition: none; } }

/* signing in with Google */
.oauth { display: grid; gap: 10px; margin: 6px 0 4px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 16px; border: 0; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.oauth-btn svg { width: 20px; height: 20px; flex: none; }
.oauth-btn:hover { transform: translateY(-1px); }
.oauth-btn.busy { opacity: 0.6; pointer-events: none; }
.oauth-btn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18); }
.oauth-or { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--dim); font-size: 13px; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }

/* the opening: the taglines first, nothing of the duty yet */
.taglines { position: absolute; z-index: 3; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 22px; padding: 0 20px; text-align: center; pointer-events: none; }
.taglines .kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
:root:not([data-theme="light"]) .taglines .kicker { color: #8db4ff; }
.taglines .dotmark { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.18); }
.tl-stack { margin: 0; display: grid; width: min(1000px, 100%); }
.tl { grid-area: 1 / 1; font-size: clamp(34px, 7vw, 92px); overflow-wrap: break-word; line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: var(--text); text-wrap: balance; opacity: 0; translate: 0 26px; filter: blur(6px); transition: opacity 0.7s var(--ease), translate 0.9s var(--ease), filter 0.7s var(--ease); }
.tl.on { opacity: 1; translate: 0 0; filter: none; }
.hero.still .taglines { display: none; }

/* the duty card signs on: the bar fills with the scroll, then the tick */
.duty { transform-origin: 50% 50%; will-change: translate, scale, opacity; opacity: 0; visibility: hidden; }
.duty .signon { position: relative; margin-top: 12px; height: 36px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--edge); font-weight: 800; font-size: 13px; }
.duty .signon .fill { position: absolute; inset: 0; }
.duty .signon .fill i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sign, 0)); }
.duty .signon .go, .duty .signon .ok { position: relative; grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.3s, transform 0.4s var(--ease); }
.duty .signon .go { color: var(--text); }
.duty .signon .ok { color: #fff; opacity: 0; transform: scale(0.8); }
.duty .signon .ok svg { width: 16px; height: 16px; }
.duty.signed .signon .go { opacity: 0; }
.duty.signed .signon .ok { opacity: 1; transform: none; }
.duty.signed .signon .fill i { background: var(--ok, #2fb36d); transition: background 0.3s; }
@media (prefers-reduced-motion: reduce) { .tl { transition: none; } }

/* the Privacy Statement: a document */
.privacy .doc-head { max-width: 1040px; padding-bottom: 22px; border-bottom: 1px solid var(--edge); }
.privacy .doc-head h1 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.privacy .doc-sub { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.privacy .pv-lang { margin: 8px 0 0; font-size: 14px; color: var(--dim); font-style: italic; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 780px); gap: 48px; align-items: start; margin: 32px 0 96px; }
.doc-toc { position: sticky; top: 104px; font-size: 14px; }
.doc-toc h2 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.doc-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--edge); }
.doc-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--soft); text-decoration: none; line-height: 1.35; }
.doc-toc a:hover { color: var(--text); }
.doc-toc a[aria-current] { color: var(--text); font-weight: 700; border-left-color: var(--accent); }
.prose { font-size: 16px; line-height: 1.7; color: var(--soft); }
.prose > :first-child { margin-top: 0; }
.prose .doc-meta { margin: 0 0 28px; font-size: 14px; color: var(--dim); }
.prose .doc-meta b { color: var(--dim); font-weight: 700; }
.prose h2 { margin: 40px 0 12px; padding-top: 18px; border-top: 1px solid var(--edge); font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; scroll-margin-top: 100px; }
.prose h3 { margin: 24px 0 8px; font-size: 16.5px; font-weight: 800; color: var(--text); scroll-margin-top: 100px; }
.prose p { margin: 10px 0; }
.prose b { color: var(--text); font-weight: 700; }
.prose ul { margin: 10px 0; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose a { color: var(--accent); }
:root:not([data-theme="light"]) .prose a { color: #8db4ff; }
.prose blockquote { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--edge-strong); color: var(--dim); }
.prose blockquote p { margin: 0; }
.prose .table-wrap { margin: 16px 0 20px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th { text-align: left; padding: 10px 14px; background: var(--edge); color: var(--text); font-weight: 700; font-size: 13px; white-space: nowrap; }
.prose td { padding: 10px 14px; border-top: 1px solid var(--edge); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: rgba(127, 140, 170, 0.05); }
.prose td:first-child { color: var(--text); font-weight: 600; }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc-toc { position: static; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 8px; }
  .doc-toc ol { border: 0; columns: 2; column-gap: 20px; }
  .doc-toc a { padding-left: 0; border: 0; }
}
@media (max-width: 560px) { .doc-toc ol { columns: 1; } }
@media print {
  .bar, footer, .doc-toc, .skip, .env { display: none !important; }
  .solo { padding-top: 0; }
  .doc { display: block; margin: 0; }
  .prose { color: #000; }
}

/* the privacy statement's tick, before signing up */
.check.consent { margin: 4px 0 10px; align-items: flex-start; font-size: 14px; }
.check.consent a { color: var(--accent); font-weight: 700; }
:root:not([data-theme="light"]) .check.consent a { color: #8db4ff; }
.oauth .check.consent { margin: 0 0 2px; }
.oauth-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* the taglines that ride along with the line through the city */
.ride-quotes { position: absolute; z-index: 2; right: max(24px, calc(50% - 600px)); top: 50%; translate: 0 -50%; width: min(520px, 42vw); display: grid; pointer-events: none; }
.rq { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; color: var(--text); text-wrap: balance; text-shadow: var(--tshadow); }
.rq:nth-child(2) { color: var(--accent); }
:root:not([data-theme="light"]) .rq:nth-child(2) { color: #8db4ff; }
@media (max-width: 1100px) {
  .ride-quotes { left: 20px; right: 20px; width: auto; top: auto; bottom: 96px; translate: none; }
  .rq { font-size: clamp(30px, 8vw, 44px); text-align: center; padding: 14px 18px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--glass-edge); }
}
.hero.still .ride-quotes { display: none; }

/* the Privacy Statement's dialog (account.html) */
.pv-modal { width: min(860px, calc(100vw - 32px)); height: min(88vh, 920px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--edge); overflow: hidden; }
.pv-modal[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.pv-modal::backdrop { background: rgba(6, 10, 24, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pvm-head { padding: 22px 28px 16px; border-bottom: 1px solid var(--edge); }
.pvm-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.pvm-sub { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.pvm-body { overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px 28px; font-size: 15px; line-height: 1.65; color: var(--soft); }
.pvm-body:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.pvm-body .doc-meta { margin: 0 0 20px; font-size: 13.5px; color: var(--dim); }
.pvm-body h2 { margin: 30px 0 10px; padding-top: 14px; border-top: 1px solid var(--edge); font-size: 18px; font-weight: 800; color: var(--text); }
.pvm-body h3 { margin: 20px 0 6px; font-size: 15.5px; font-weight: 800; color: var(--text); }
.pvm-body p { margin: 8px 0; }
.pvm-body b { color: var(--text); }
.pvm-body ul { margin: 8px 0; padding-left: 22px; }
.pvm-body a { color: var(--accent); }
:root:not([data-theme="light"]) .pvm-body a { color: #8db4ff; }
.pvm-body .table-wrap { margin: 12px 0 16px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 8px; }
.pvm-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; }
.pvm-body th { text-align: left; padding: 9px 12px; background: var(--edge); color: var(--text); font-weight: 700; font-size: 12.5px; }
.pvm-body td { padding: 9px 12px; border-top: 1px solid var(--edge); vertical-align: top; }
.pvm-body td:first-child { color: var(--text); font-weight: 600; }
.pvm-wait { color: var(--dim); }
.pvm-foot { padding: 16px 28px 20px; border-top: 1px solid var(--edge); background: var(--panel); }
.pvm-consent { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--text); }
.pvm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .pv-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .pvm-head, .pvm-body, .pvm-foot { padding-left: 18px; padding-right: 18px; }
  .pvm-actions { flex-direction: column-reverse; }
  .pvm-actions .btn { width: 100%; }
}

.code-note { margin: 6px 0 8px; }

/* Omsi-Hub is an add-on for openOMSI: the hero's line, and the requirements on the download page */
.hero .addon-note { margin: 10px auto 0; max-width: 56ch; font-size: 14px; font-weight: 600; color: var(--soft); text-shadow: var(--tshadow); }
.dl-req { margin-top: 20px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; scroll-margin-top: 100px; }
.dl-req h2 { margin: 0; font-size: 24px; font-weight: 800; }
.dl-req h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.dl-req h3 + ul { margin-bottom: 22px; }
.req-lede { margin: 8px 0 18px; color: var(--soft); font-size: 15px; }
.req-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.req-list li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--edge); }
.req-list b { font-size: 15px; }
.req-list span { font-size: 14px; color: var(--soft); }
.req-list a, .dl-req a { color: var(--accent); font-weight: 700; }
:root:not([data-theme="light"]) .dl-req a { color: #8db4ff; }
.req-files { margin: 14px 0 0; font-size: 14px; color: var(--dim); }
.req-ok, .req-extra { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--soft); }
.req-ok li, .req-extra li { position: relative; padding-left: 26px; }
.req-ok li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.req-extra li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--time); }
.req-note { margin: -4px 0 10px; font-size: 13.5px; color: var(--dim); }
@media (max-width: 900px) { .dl-req { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* the roadmap: the phases as stops on a line, the done, the ideas */
.rm-live { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.rm-live[data-on="1"] { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 178, 110, 0.18); animation: rm-pulse 2.4s ease-in-out infinite; }
@keyframes rm-pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 178, 110, 0.05); } }
.rm-meta { font-size: 14px !important; color: var(--dim) !important; margin-top: 6px !important; }
.rm-stats { margin-top: 26px; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; }
.rm-stat { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--r-sheet); background: var(--panel); box-shadow: var(--sheet-glow); }
.rm-stat b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rm-stat span { font-size: 13px; color: var(--dim); }
.rm-stat.now { box-shadow: 0 0 0 2px var(--accent), var(--sheet-glow); }
.rm-stat.now b { color: var(--accent); }
:root:not([data-theme="light"]) .rm-stat.now b { color: #8db4ff; }
.rm-grid { margin: 26px 0 90px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.rm-phases { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; display: grid; gap: 16px; }
.rm-phases::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 26px; width: 6px; border-radius: 3px; background: linear-gradient(var(--accent) var(--rm-fill, 0%), var(--edge-strong) 0); }
.rm-wait { color: var(--dim); }
.rm-phase { position: relative; padding: 18px 20px; }
.rm-head { display: flex; align-items: flex-start; gap: 12px; }
.rm-stop { position: absolute; left: -32px; top: 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); border: 5px solid var(--edge-strong); box-sizing: border-box; }
.rm-phase.done .rm-stop { border-color: var(--accent); background: var(--accent); }
.rm-phase.now .rm-stop { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.22); }
.rm-phase.now { box-shadow: 0 0 0 2px var(--accent), var(--sheet-glow); }
.rm-phase .plate { margin-top: 3px; }
.rm-titles { min-width: 0; }
.rm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.rm-when { color: var(--dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.rm-st { padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; background: var(--edge); color: var(--soft); }
.rm-st.now { background: var(--accent); color: #fff; }
.rm-st.next { background: rgba(var(--accent-rgb), 0.16); color: var(--accent); }
:root:not([data-theme="light"]) .rm-st.next { color: #8db4ff; }
.rm-st.done { background: rgba(52, 178, 110, 0.16); color: var(--ok); }
.rm-titles h2 { margin: 4px 0 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.rm-bar { margin: 14px 0 2px; height: 6px; border-radius: 3px; background: var(--edge); overflow: hidden; }
.rm-bar::after { content: ""; display: block; height: 100%; width: calc(var(--k) * 100%); background: var(--accent); border-radius: 3px; }
.rm-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rm-list li { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.rm-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--edge-strong); transform: translateY(-1px); }
.rm-phase.now .rm-dot { background: var(--accent); }
.rm-list li.fix .rm-dot { background: var(--danger); }
.rm-name { min-width: 0; overflow-wrap: anywhere; }
.rm-tag { flex: none; margin-left: auto; padding: 1px 8px; border-radius: 9px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--danger); background: rgba(229, 83, 75, 0.12); }
.rm-empty { color: var(--dim); font-style: italic; }
.rm-more { margin-top: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); cursor: pointer; }
:root:not([data-theme="light"]) .rm-more { color: #8db4ff; }
.rm-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.rm-box { padding: 18px 20px; }
.rm-box h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.rm-box .rm-list { margin-top: 6px; }
.rm-box .rm-list li { font-size: 14px; }
.rm-donelist { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.rm-donelist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 14px; color: var(--soft); }
.rm-check { width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg) translate(1px, -2px); }
.rm-ago { font-size: 12px; color: var(--dim); white-space: nowrap; }
.rm-note { margin: 0 0 8px; font-size: 13.5px; color: var(--dim); }
.rm-side > .rm-note a { color: var(--accent); font-weight: 700; }
@media (max-width: 960px) {
  .rm-grid { grid-template-columns: minmax(0, 1fr); }
  .rm-side { position: static; }
  .rm-stats { grid-template-columns: 1fr 1fr; }
  .rm-stat.now { grid-column: 1 / -1; }
}

/* beta: the label in the bar, the notice at the foot of the screen, the note on the download page */
.bar .beta-pill { flex: none; margin: 2px 2px 0 0; padding: 3px 8px; border-radius: 7px; background: #f58620; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; line-height: 1.2; }
.bar .beta-pill:hover { background: #ff9a3d; }
.beta-toast { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: min(460px, calc(100vw - 32px)); display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 0 0 1px rgba(245, 134, 32, 0.55), 0 10px 30px rgba(0, 0, 0, 0.25); opacity: 0; translate: 0 12px; transition: opacity 0.4s var(--ease), translate 0.4s var(--ease); }
.beta-toast.on { opacity: 1; translate: 0 0; }
.beta-toast.gone { opacity: 0; translate: 0 12px; }
.beta-toast p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--soft); }
.beta-toast p b { color: #f58620; }
.beta-toast a { color: var(--accent); font-weight: 700; white-space: nowrap; }
:root:not([data-theme="light"]) .beta-toast a { color: #8db4ff; }
.beta-x { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--edge); color: var(--soft); cursor: pointer; }
.beta-x:hover { background: var(--edge-strong); color: var(--text); }
.beta-x svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .beta-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
@media print { .beta-toast { display: none; } }
.beta-note { margin: 26px 0 0; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; border-radius: var(--r-sheet); background: rgba(245, 134, 32, 0.1); box-shadow: inset 0 0 0 1.5px rgba(245, 134, 32, 0.55); scroll-margin-top: 100px; }
.beta-note > svg { flex: none; width: 24px; height: 24px; color: #f58620; margin-top: 2px; }
.beta-note h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.beta-note p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--soft); }
.beta-note a { color: var(--accent); font-weight: 700; }
:root:not([data-theme="light"]) .beta-note a { color: #8db4ff; }

/* reporting a bug: the button at the foot of every page, and its dialog */
.bug-fab { position: fixed; z-index: 59; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 13px; border: 0; border-radius: 22px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 0 0 1px var(--glass-edge), 0 8px 24px rgba(0, 0, 0, 0.22); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s; }
.bug-fab:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #f58620, 0 10px 28px rgba(0, 0, 0, 0.28); }
.bug-fab svg { width: 20px; height: 20px; color: #f58620; }
@media (max-width: 640px) {
  .bug-fab { width: 46px; height: 46px; padding: 0; justify-content: center; right: 12px; bottom: 12px; }
  .bug-fab span { display: none; }
  .beta-toast { right: 68px; }
}
@media print { .bug-fab { display: none; } }
.bug-modal { width: min(560px, calc(100vw - 24px)); max-height: min(90vh, 760px); padding: 0; border: 0; border-radius: 16px; background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--edge); }
.bug-modal::backdrop { background: rgba(6, 10, 24, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bug-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: inherit; }
.bug-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.bug-head h2 { margin: 0; font-size: 21px; font-weight: 800; }
.bug-body { overflow-y: auto; padding: 4px 20px 6px; display: grid; gap: 12px; }
.bug-who { margin: 0; font-size: 14px; color: var(--soft); }
.bug-body textarea, .bug-body select { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--field); color: var(--text); font: inherit; font-size: 15px; box-shadow: inset 0 0 0 1px var(--edge); }
.bug-body textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.bug-body textarea:focus, .bug-body select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.bug-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bug-note { margin: 0; font-size: 12.5px; color: var(--dim); }
.bug-note a { color: var(--accent); }
.bug-done { justify-items: center; text-align: center; padding: 18px 20px 8px; }
.bug-done svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(52, 178, 110, 0.15); color: var(--ok); }
.bug-done h3 { margin: 4px 0 0; font-size: 19px; }
.bug-done p { margin: 0; color: var(--soft); }
.bug-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }
@media (max-width: 640px) { .bug-modal { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; } .bug-form { height: 100%; } }
.bug-modal [hidden] { display: none !important; }

/* the FAQ page */
.faq-page .solo-head { max-width: 860px; }
.faq-search { margin-top: 22px; display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 0 16px; height: 52px; border-radius: 14px; background: var(--panel); box-shadow: var(--sheet-glow), 0 0 0 1px var(--edge); }
.faq-search:focus-within { box-shadow: var(--sheet-glow), 0 0 0 2px var(--accent); }
.faq-search svg { width: 20px; height: 20px; flex: none; color: var(--dim); }
.faq-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.faq-body { max-width: 860px; margin: 26px 0 90px; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.faq-chip { padding: 7px 14px; border-radius: 18px; background: var(--edge); color: var(--soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.faq-chip:hover { background: var(--edge-strong); color: var(--text); }
.faq-topic { margin-top: 30px; scroll-margin-top: 100px; }
.faq-topic h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.faq-q { border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 1px var(--edge); margin-bottom: 8px; scroll-margin-top: 110px; }
.faq-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; font-size: 16px; font-weight: 700; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2.5px solid var(--dim); border-bottom: 2.5px solid var(--dim); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s var(--ease); }
.faq-q[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-q[open] { box-shadow: 0 0 0 1.5px var(--accent); }
.faq-q p { margin: 0; padding: 0 18px 16px; color: var(--soft); font-size: 15px; line-height: 1.65; }
.faq-q a, .faq-ask a { color: var(--accent); font-weight: 700; }
:root:not([data-theme="light"]) .faq-q a, :root:not([data-theme="light"]) .faq-ask a { color: #8db4ff; }
.faq-q kbd { padding: 1px 6px; border-radius: 5px; background: var(--edge); font: inherit; font-size: 13px; font-weight: 700; }
.faq-none { margin: 24px 0; color: var(--dim); }
.faq-ask { margin-top: 36px; padding: 20px 22px; }
.faq-ask h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.faq-ask p { margin: 0; color: var(--soft); }
.faq-all { margin-top: 16px; }
