:root {
  --bg: #070a0f;
  --bg-soft: #0e131b;
  --line: #1d2530;
  --text: #f2f5f9;
  --muted: #7d8896;
  --accent: #ffb020;
  --accent-soft: rgba(255, 176, 32, 0.14);
  --danger: #ff4d4d;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 任何明確 display 嘅元素都會蓋過 hidden 屬性，所以要在最前面強制生效 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
  padding: calc(var(--safe-top) + 10px) 18px calc(var(--safe-bottom) + 28px);
  display: flex;
  flex-direction: column;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 176, 32, 0.10), transparent 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(60, 130, 246, 0.08), transparent 65%);
}

/* ---------- top bar ---------- */
.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.clock {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.status {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.icon-btn:active { background: #151c26; }

/* ---------- hero ---------- */
main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 0 4px;
  min-height: 42dvh;
}

.hero-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-indent: 0.35em;
  margin-bottom: 2px;
}

.hero-number {
  font-size: clamp(6.5rem, 40vw, 20rem);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: color 0.25s ease;
  padding: 0.06em 0;
}

.hero-unit {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-top: 6px;
}

.hero-sub {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 22em;
}

.hero.is-urgent .hero-number { color: var(--accent); }
.hero.is-now .hero-number { color: var(--danger); animation: pulse 1s ease-in-out infinite; }
.hero.is-idle .hero-number { color: var(--muted); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.97); }
}

/* ---------- route list ---------- */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px 13px;
}

.card.is-primary { border-color: rgba(255, 176, 32, 0.45); background: linear-gradient(180deg, rgba(255,176,32,0.08), rgba(14,19,27,1) 70%); }

.card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.badge {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.dest {
  flex: 1;
  font-size: 0.86rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-min {
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.card-min span { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.card-min.is-na { font-size: 1rem; color: var(--muted); font-weight: 600; }

.stop {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chips {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.74rem;
  color: #c9d2dd;
  background: #151d27;
  border: 1px solid #202a36;
  border-radius: 999px;
  padding: 4px 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chip.is-next { color: var(--accent); border-color: rgba(255,176,32,0.4); background: var(--accent-soft); }
.chip.is-empty { color: var(--muted); }

.card-foot {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card-foot b { color: var(--text); font-weight: 700; }

/* ---------- empty ---------- */
.empty {
  text-align: center;
  padding: 28px 12px 8px;
}
.empty-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.empty-body { font-size: 0.86rem; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }

/* ---------- buttons ---------- */
.primary {
  background: var(--accent);
  color: #14100a;
  border: 0;
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.primary:active { filter: brightness(0.9); }
.primary.wide { width: 100%; margin-top: 14px; }

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- sheet ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 20;
  backdrop-filter: blur(2px);
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  background: #0b1017;
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-bottom);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }

.sheet-body {
  padding: 16px 18px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-sub {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 22px 0 10px;
  font-weight: 700;
}

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(29, 37, 48, 0.6);
}
.field label { font-size: 0.9rem; color: #c9d2dd; }

.stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #121924;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  flex: none;
}
.stepper button {
  width: 38px;
  height: 40px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
}
.stepper button:active { background: #1a2331; }
.stepper input {
  width: 54px;
  height: 40px;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.watch-list { display: flex; flex-direction: column; gap: 8px; }

.watch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #121924;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
}
.watch-row .wr-main { flex: 1; min-width: 0; }
.watch-row .wr-title { font-size: 0.92rem; font-weight: 700; }
.watch-row .wr-sub { font-size: 0.74rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-row .wr-del {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
  font-family: inherit;
}

.adder { margin-top: 6px; }

.company-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.company-toggle button {
  flex: 1;
  background: #121924;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.company-toggle button.active { background: var(--accent-soft); border-color: rgba(255,176,32,0.5); color: var(--accent); }

.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1;
  background: #121924;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  min-width: 0;
}
.search-row input::placeholder { color: #55616f; }

.results { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }

.result {
  text-align: left;
  background: #121924;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: baseline;
  width: 100%;
}
.result:active { background: #18212e; }
.result .r-route { font-weight: 800; color: var(--accent); font-size: 0.98rem; flex: none; }
.result .r-desc { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .r-seq { margin-left: auto; font-size: 0.72rem; color: #55616f; flex: none; font-variant-numeric: tabular-nums; }

.adder-hint { font-size: 0.82rem; color: var(--muted); margin: 0 0 4px; line-height: 1.5; }
.result-note { font-size: 0.8rem; color: var(--muted); padding: 10px 2px; }

@media (min-width: 620px) {
  body { max-width: 560px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
  .sheet { left: 50%; right: auto; transform: translateX(-50%); width: 560px; border-radius: 22px 22px 0 0; }
}

/* ---------- trip prep ---------- */
.prep {
  margin-top: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.prep-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.prep-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38424f;
  flex: none;
}
.prep-dot.is-running { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,176,32,0.16); animation: pulse 1.4s ease-in-out infinite; }
.prep-dot.is-done { background: #34c759; }

.prep-summary-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.prep-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.prep-meta {
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-chevron { color: var(--muted); font-size: 0.85rem; flex: none; }

.prep-body {
  padding: 0 15px 15px;
  border-top: 1px solid rgba(29, 37, 48, 0.7);
}

.prep-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 4px;
}

.pt-cell {
  background: #121924;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pt-k { font-size: 0.66rem; color: var(--muted); letter-spacing: 0.06em; }
.pt-v { font-size: 0.94rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.prep-items { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }

.prep-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #121924;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  touch-action: none;
}
.prep-item.is-done { opacity: 0.45; }
.prep-item.is-done .pi-name { text-decoration: line-through; }
.prep-item.is-current { border-color: rgba(255,176,32,0.55); background: rgba(255,176,32,0.08); }
.prep-item.is-dragging { opacity: 0.9; border-color: var(--accent); background: #18212e; }
.prep-item.is-editing { padding: 7px 9px; }

.drag-handle {
  background: transparent;
  border: 0;
  color: #46505e;
  font-size: 0.8rem;
  letter-spacing: -2px;
  padding: 4px 2px;
  cursor: grab;
  flex: none;
  touch-action: none;
  font-family: inherit;
}
.drag-handle:active { cursor: grabbing; color: var(--accent); }

.pi-name {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  text-align: left;
  padding: 2px 0;
  cursor: text;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pi-min {
  background: #1a2331;
  border: 1px solid #202a36;
  border-radius: 8px;
  color: #c9d2dd;
  font-size: 0.76rem;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  padding: 4px 8px;
  cursor: text;
  flex: none;
}

.pi-del {
  background: transparent;
  border: 0;
  color: #6b7684;
  font-size: 1.05rem;
  line-height: 1;
  padding: 4px 2px;
  cursor: pointer;
  flex: none;
  font-family: inherit;
}
.pi-del:active { color: var(--danger); }

.pi-edit {
  flex: 1;
  min-width: 0;
  background: #0b1017;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  padding: 7px 9px;
}

.prep-actions { display: flex; gap: 8px; margin-top: 12px; }
.prep-actions .primary.wide { margin-top: 0; }
.prep-actions .ghost { flex: none; }

.prep-running {
  padding: 0 15px 15px;
  border-top: 1px solid rgba(29, 37, 48, 0.7);
}

.pr-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 13px 0 10px;
}
.pr-label { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.06em; }
.pr-total { font-size: 1.05rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

.pr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #121924;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.pr-item.is-done { opacity: 0.4; }
.pr-item.is-done .pr-name { text-decoration: line-through; }
.pr-item.is-current { border-color: rgba(255,176,32,0.55); background: rgba(255,176,32,0.1); }

.pr-name { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-remain { font-size: 0.86rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #c9d2dd; flex: none; }
.pr-item.is-current .pr-remain { color: var(--accent); }

.pr-done { text-align: center; padding: 18px 0 6px; }
.pr-done-title { font-size: 1.05rem; font-weight: 800; color: #34c759; }
.pr-done-sub { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.ghost.wide { width: 100%; margin-top: 10px; }

.time-input {
  background: #121924;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  padding: 10px 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 360px) {
  .prep-times { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- prep opt-in ---------- */
.prep-enable {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.prep-enable:active { background: #151c26; }

.prep-enable-plus {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 176, 32, 0.4);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex: none;
}

.prep-enable-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prep-enable-title { font-size: 0.9rem; font-weight: 800; }
.prep-enable-sub { font-size: 0.72rem; color: var(--muted); }

/* ---------- switch ---------- */
.toggle {
  width: 50px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #121924;
  padding: 2px;
  cursor: pointer;
  flex: none;
  display: flex;
  align-items: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.toggle span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4a5563;
  transition: transform 0.18s ease, background 0.18s ease;
}
.toggle.is-on { background: var(--accent-soft); border-color: rgba(255, 176, 32, 0.5); }
.toggle.is-on span { transform: translateX(20px); background: var(--accent); }

/* ---------- prep mode toggle ---------- */
.mode-toggle {
  display: flex;
  gap: 4px;
  background: #121924;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  flex: none;
}
.mode-toggle button {
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.mode-toggle button.active { background: var(--accent-soft); color: var(--accent); }

/* ---------- two-tap confirm ---------- */
.wr-del.is-armed,
.pi-del.is-armed {
  background: rgba(255, 77, 77, 0.16);
  border: 1px solid rgba(255, 77, 77, 0.55);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.72rem;
  color: #ff8a8a;
  white-space: nowrap;
}

/* ---------- service status warning ---------- */
.svcwarn {
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #ffb020;
  background: rgba(255, 176, 32, 0.10);
  border-left: 2px solid rgba(255, 176, 32, 0.6);
  border-radius: 6px;
  padding: 5px 9px;
}

/* ---------- focus mode ---------- */
.hero { cursor: pointer; }

.focus {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: radial-gradient(120% 80% at 50% 0%, #1a1205, #070a0f 65%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 16px) 20px calc(var(--safe-bottom) + 20px);
  text-align: center;
}

.focus-top {
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.focus-route {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-stage {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--accent);
  margin-bottom: 4px;
}

.focus-number {
  font-size: clamp(7rem, 46vw, 22rem);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.focus-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 10px;
}

.focus-detail {
  margin-top: 16px;
  font-size: 0.95rem;
  color: #c9d2dd;
  line-height: 1.6;
  max-width: 20em;
}

.focus-timeline {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.ft-cell {
  background: #121924;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 76px;
}
.ft-cell.is-past { opacity: 0.45; }
.ft-k { font-size: 0.66rem; color: var(--muted); letter-spacing: 0.06em; }
.ft-v { font-size: 0.98rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- familiar stops ---------- */
.result.is-home {
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.06);
}
.r-home {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(255, 176, 32, 0.45);
  border-radius: 999px;
  padding: 2px 7px;
  flex: none;
}

/* ---------- grouped routes at one stop ---------- */
.grp-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 0;
  border-top: 1px solid rgba(29, 37, 48, 0.8);
}
.grp-row:first-of-type { margin-top: 8px; }
.grp-route { font-size: 0.86rem; font-weight: 800; color: var(--accent); flex: none; min-width: 3.2em; }
.grp-dest { flex: 1; font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-min { font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.grp-min.is-na { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.grp-row.is-lead .grp-min { color: var(--accent); }

/* ---------- text scale ---------- */
html.text-large { font-size: 18px; }
html.text-huge { font-size: 20px; }

html.text-large .hero-number { font-size: clamp(7rem, 44vw, 22rem); }
html.text-huge .hero-number { font-size: clamp(7.5rem, 48vw, 24rem); }
html.text-huge .hero-sub,
html.text-huge .card-foot,
html.text-huge .prep-meta { color: #a7b2bf; }
html.text-huge .chip { font-size: 0.8rem; }
html.text-huge .stop { font-size: 0.84rem; }

/* ---------- profiles ---------- */
.profiles {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.profiles::-webkit-scrollbar { display: none; }

.prof-chip {
  flex: none;
  background: #121924;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.prof-chip.is-on { background: var(--accent-soft); border-color: rgba(255, 176, 32, 0.5); color: var(--accent); }
