/* SideQuest Bus: product styles (from the approved design demo) */
@font-face{font-family:'Bricolage';font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Bricolage';font-weight:800;font-style:normal;font-display:swap;src:url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2')}
@font-face{font-family:'Jakarta';font-weight:500;font-style:normal;font-display:swap;src:url(/fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Jakarta';font-weight:600;font-style:normal;font-display:swap;src:url(/fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Jakarta';font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Jakarta';font-weight:800;font-style:normal;font-display:swap;src:url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2')}
:root {
  --ink: #17122b; --ink-2: #3b3452; --muted: #77708f; --line: #ece6f5; --bg: #fbf8f3; --surface: #ffffff; --surface-2: #f4f0fa;
  --pink: #ff2d87; --pink-soft: #ffe3ef; --violet: #6c3bff; --violet-deep: #4d22d6; --violet-soft: #eee8ff; --yellow: #ffd23f; --yellow-soft: #fff3c4;
  --live: #0f9d58; --live-soft: #dcf5e7; --est: #b86a00; --est-soft: #ffeccb; --lost: #d92d20; --lost-soft: #fee4e2; --sched: #6b6785; --sched-soft: #ebe8f3;
  --r-s: 12px; --r-m: 20px; --r-l: 28px;
  --shadow: 0 1px 2px rgba(23,18,43,.06), 0 10px 28px rgba(23,18,43,.08);
  --spring: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.2, .8, .2, 1);
  --display: 'Bricolage', 'Avenir Next', system-ui, sans-serif; --text: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font-family: var(--text); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; font: 800 19px var(--display); letter-spacing: -.02em; }
.logo { width: 32px; height: 32px; border-radius: 10px; background: var(--pink); color: #fff; display: grid; place-items: center; font: 800 14px var(--display); transform: rotate(-6deg); }
.brand small { font: 700 12px var(--text); color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.where { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.where.weak i { background: var(--est); box-shadow: 0 0 0 3px var(--est-soft); }

/* ---------- notice ---------- */
.notice { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); background: var(--yellow-soft); font-weight: 700; font-size: 14px; margin-bottom: 12px; animation: pop .55s var(--spring); }
.notice .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; flex: none; font-weight: 800; }
.notice small { display: block; font-weight: 500; color: var(--ink-2); }
@keyframes pop { from { transform: scale(.92) translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- hero ---------- */
.hero { --fg: #fff; --pill: rgba(255,255,255,.2); border-radius: var(--r-l); padding: 18px 20px 18px; color: var(--fg); background: linear-gradient(155deg, #7b4dff 0%, #5428e6 100%); position: relative; overflow: hidden; transition: background .6s var(--ease); box-shadow: 0 14px 34px rgba(84,40,230,.28); }
.hero::before { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 68%); pointer-events: none; }
.hero[data-state="arriving"] { background: linear-gradient(155deg, #ff4f9d 0%, #e0166f 100%); box-shadow: 0 14px 34px rgba(224,22,111,.3); }
.hero[data-state="lost"] { --fg: var(--ink); --pill: rgba(23,18,43,.08); background: #e8e3f2; box-shadow: none; }
.hero[data-state="off"] { --fg: var(--ink); --pill: rgba(23,18,43,.1); background: var(--yellow); box-shadow: 0 14px 34px rgba(255,210,63,.35); }
.hero[data-state="empty"] { --fg: var(--ink); --pill: var(--surface-2); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.hero-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; }
.eyebrow { font: 700 12px var(--text); letter-spacing: .09em; text-transform: uppercase; opacity: .85; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 999px; background: var(--pill); font-weight: 800; font-size: 12.5px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3ee08d; animation: blink 1.6s infinite; }
.status[data-k="est"] i { background: #ffb23f; }
.status[data-k="lost"] i { background: var(--lost); animation: none; }
.status[data-k="sched"] i { background: var(--sched); animation: none; }
.status[data-k="off"] i, .status[data-k="empty"] i { display: none; }
@keyframes blink { 50% { opacity: .35; } }
.hero-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; position: relative; }
.eta { font-family: var(--display); font-weight: 800; display: flex; align-items: baseline; gap: 8px; letter-spacing: -.045em; min-height: 98px; align-items: flex-end; }
.eta b { font-size: 108px; line-height: .86; font-weight: 800; display: inline-block; }
.eta b.word { font-size: 56px; line-height: 1; padding-bottom: 8px; letter-spacing: -.035em; }
.eta span { font-size: 26px; padding-bottom: 6px; letter-spacing: -.02em; }
.eta .tick { animation: tick .45s var(--spring); }
@keyframes tick { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.hbus { display: flex; align-items: center; gap: 9px; padding-bottom: 6px; text-align: right; flex-direction: row-reverse; }
.hbus strong { display: block; font-weight: 800; font-size: 15px; }
.hbus small { display: block; font-size: 12px; opacity: .8; font-weight: 600; letter-spacing: .02em; }
.chip { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 9px; border-radius: 12px; font: 800 17px var(--display); letter-spacing: -.02em; }
.c22 { background: var(--violet); color: #fff; }
.c20 { background: var(--yellow); color: var(--ink); }
.hero .c22 { background: #fff; color: var(--violet-deep); }
.hero[data-state="lost"] .c22, .hero[data-state="off"] .c22 { background: var(--violet); color: #fff; }
.approach { margin-top: 14px; position: relative; }
.track { position: relative; height: 8px; border-radius: 4px; background: var(--pill); }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #fff; opacity: .95; transition: width .6s linear; }
.track .you { position: absolute; right: -2px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--pink); border: 3px solid #fff; }
.hero[data-state="arriving"] .track .you { background: var(--yellow); }
.approach p { margin-top: 9px; font-weight: 600; font-size: 14px; opacity: .92; }
.then { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pill); font-size: 14px; font-weight: 600; position: relative; }
.then b { font-weight: 800; }
.headline { font: 800 30px/1.08 var(--display); letter-spacing: -.03em; margin-top: 14px; position: relative; }
.hero .sub { margin-top: 10px; font-size: 15px; line-height: 1.45; font-weight: 500; opacity: .9; position: relative; }
.rip { position: absolute; left: 50%; top: 52%; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); opacity: 0; pointer-events: none; }
.hero[data-state="arriving"] .rip { animation: rip 2.2s infinite var(--ease); }
.hero[data-state="arriving"] .rip:nth-of-type(2) { animation-delay: .7s; }
@keyframes rip { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(46); opacity: 0; } }

/* ---------- cards, segmented ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; margin-top: 12px; }
.card h3 { font: 800 15px var(--text); }
.sech { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 0; }
.sech h2 { font: 800 18px var(--display); letter-spacing: -.02em; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; }
.seg button { padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23,18,43,.14); }

/* ---------- ribbon ---------- */
.ribbon { padding: 6px 0; overflow: hidden; }
.rin { position: relative; --row: 84px; }
.rrail { position: absolute; left: 33px; width: 4px; border-radius: 2px; background: var(--line); }
.rseg { position: absolute; left: 31px; width: 8px; border-radius: 4px; background: repeating-linear-gradient(to bottom, var(--violet) 0 9px, rgba(108,59,255,.25) 9px 16px); background-size: 100% 16px; animation: flow .9s linear infinite; transition: top .6s linear, height .6s linear; }
@keyframes flow { to { background-position: 0 16px; } }
.rstop { position: absolute; left: 0; right: 0; height: var(--row); display: flex; flex-direction: column; justify-content: center; padding-left: 62px; padding-right: 12px; transform: translateY(-50%); }
.rdot { position: absolute; left: 27px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3.5px solid var(--ink-2); }
.rstop.end .rdot { border-radius: 5px; background: var(--ink); border-color: var(--ink); }
.rstop.nearest .rdot { border-color: var(--violet); box-shadow: 0 0 0 5px var(--violet-soft); }
.rname { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.rsub { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.tagyou { background: var(--pink); color: #fff; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }
.ryou { position: absolute; left: 25px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--pink); border: 3.5px solid #fff; z-index: 3; animation: ping 1.8s infinite; transition: top .3s linear; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,45,135,.55); } 100% { box-shadow: 0 0 0 16px rgba(255,45,135,0); } }
.rbus { position: absolute; left: 17px; margin-top: -19px; z-index: 4; transition: top .6s linear, opacity .4s, transform .4s var(--spring); }
.rbus .chip { box-shadow: 0 0 0 4px var(--surface), 0 6px 14px rgba(23,18,43,.28); min-width: 40px; height: 38px; }
.rbus.lost { opacity: .55; }
.rbus.lost .chip { box-shadow: 0 0 0 4px var(--surface); outline: 2px dashed var(--lost); outline-offset: 3px; }
.rbus.gone { opacity: 0; transform: scale(.6); }

/* ---------- bus list ---------- */
.brow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.brow:first-of-type { border-top: 0; padding-top: 4px; }
.brow .t { flex: 1; min-width: 0; }
.brow .t b { display: block; font-weight: 800; font-size: 15px; }
.brow .t small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.brow .e { text-align: right; }
.brow .e b { font: 800 22px var(--display); letter-spacing: -.03em; display: block; line-height: 1; }
.pill { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 3px 9px; border-radius: 999px; font-weight: 800; font-size: 11.5px; background: var(--live-soft); color: var(--live); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill[data-k="est"] { background: var(--est-soft); color: var(--est); }
.pill[data-k="lost"] { background: var(--lost-soft); color: var(--lost); }
.pill[data-k="sched"], .pill[data-k="passed"] { background: var(--sched-soft); color: var(--sched); }
.pill[data-k="ok"] { background: var(--live-soft); color: var(--live); }
.foot { margin: 18px 4px 0; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* ---------- off-route card ---------- */
.stopcard { display: flex; gap: 12px; align-items: center; }
.pin { width: 44px; height: 44px; border-radius: 14px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; flex: none; }
.walk { margin-top: 12px; padding-top: 6px; }
.cta { width: 100%; padding: 16px; border-radius: 18px; background: var(--pink); color: #fff; font: 800 18px var(--text); box-shadow: 0 10px 24px rgba(255,45,135,.35); transition: transform .25s var(--spring), opacity .2s; }
.cta:active { transform: scale(.97); }
.cta:disabled { opacity: .35; box-shadow: none; }

/* ---------- map ---------- */
.mapcard { padding: 0; overflow: hidden; position: relative; }
.mapcard svg { display: block; width: 100%; height: auto; }
.mapnote { position: absolute; left: 10px; bottom: 8px; font-size: 10.5px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.85); padding: 3px 8px; border-radius: 999px; }
.mbus text { font: 800 15px var(--display); }
.mbus { transition: transform .6s linear; }

/* ---------- conductor (dark, high contrast) ---------- */
.dark { background: #130f24; color: #fff; }
.dark .appbar .brand small { color: #a79fc4; }
.dark .where { background: #211a3b; border-color: #342a58; color: #fff; }
.dark .statusbar { color: #fff; }
.dark .homebar { background: #fff; }
.c-title { font: 800 34px/1.05 var(--display); letter-spacing: -.035em; margin-top: 6px; }
.c-sub { color: #b9b1d3; font-size: 15px; line-height: 1.45; margin-top: 8px; }
.tiles { display: grid; gap: 12px; margin-top: 22px; }
.tile { text-align: left; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 24px; background: #211a3b; border: 2.5px solid #342a58; color: #fff; transition: transform .3s var(--spring), border-color .2s, background .2s; }
.tile .big { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font: 800 32px var(--display); letter-spacing: -.03em; flex: none; }
.tile b { display: block; font-size: 19px; font-weight: 800; }
.tile small { display: block; color: #b9b1d3; font-size: 13px; margin-top: 2px; font-weight: 500; }
.tile .tick { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #4a3f78; display: grid; place-items: center; color: transparent; }
.tile[aria-pressed="true"] { border-color: var(--pink); background: #2a1f4a; transform: scale(1.015); }
.tile[aria-pressed="true"] .tick { background: var(--pink); border-color: var(--pink); color: #fff; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chk { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: #211a3b; font-weight: 700; font-size: 13px; }
.chk i { width: 8px; height: 8px; border-radius: 50%; background: #3ee08d; }
.chk[data-k="warn"] i { background: #ffb23f; }
.chk[data-k="bad"] i { background: #ff6b60; }
.safety { margin: 16px 2px 16px; padding: 12px 14px; border-radius: 16px; background: rgba(255,210,63,.12); color: #ffe48a; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.ring { position: relative; width: 132px; height: 132px; margin: 20px auto 14px; display: grid; place-items: center; }
.ring::before, .ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #3ee08d; opacity: 0; animation: ringp 2.4s infinite var(--ease); }
.ring::after { animation-delay: 1.2s; }
.ring.warn::before, .ring.warn::after { border-color: #ffb23f; }
@keyframes ringp { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.ring .core { width: 86px; height: 86px; border-radius: 50%; background: #3ee08d; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(62,224,141,.18); transition: background .4s; }
.ring.warn .core { background: #ffb23f; box-shadow: 0 0 0 10px rgba(255,178,63,.18); }
.ring .core svg { width: 40px; height: 40px; }
.cdark { background: #211a3b; border-radius: 22px; padding: 16px 18px; margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.cdark small { display: block; color: #a79fc4; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cdark b { display: block; font: 800 22px var(--display); letter-spacing: -.02em; margin-top: 3px; }
.cdark .dist { margin-left: auto; font: 800 28px var(--display); letter-spacing: -.03em; text-align: right; }
.cdark .dist span { display: block; font: 600 12px var(--text); color: #a79fc4; letter-spacing: 0; }
.det { margin-top: 14px; }
.det summary { color: #a79fc4; font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 2px; list-style: none; }
.det summary::-webkit-details-marker { display: none; }
.detgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.detgrid div { background: #1b1530; border-radius: 14px; padding: 10px 12px; }
.detgrid b { display: block; font-size: 17px; font-weight: 800; }
.detgrid small { color: #a79fc4; font-size: 12px; }
.slide { position: relative; height: 68px; border-radius: 34px; background: #2a1f4a; margin-top: 22px; overflow: hidden; touch-action: none; user-select: none; }
.slide .lbl { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #d8d1ee; padding-left: 40px; letter-spacing: .01em; }
.slide .lbl::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 2.4s infinite linear; mix-blend-mode: overlay; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.slide .fillbar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #e11d48; opacity: .9; }
.slide .knob { position: absolute; left: 6px; top: 6px; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #e11d48; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.4); cursor: grab; }
.endok { text-align: center; padding-top: 26px; }
.endok .big { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: #3ee08d; display: grid; place-items: center; animation: pop .6s var(--spring); }
.lockline { display: flex; gap: 9px; align-items: center; justify-content: center; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: #211a3b; font-weight: 700; font-size: 14px; color: #e7e2f7; }
.endstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; text-align: left; }
.endstats div { background: #211a3b; border-radius: 16px; padding: 12px; }
.endstats b { display: block; font: 800 22px var(--display); letter-spacing: -.03em; }
.endstats small { color: #a79fc4; font-size: 12px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* ---------- page layout (real app) ---------- */
html { background: var(--bg); }
body { min-height: 100vh; min-height: 100dvh; }
body.dark { background: #130f24; color: #fff; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.app .appbar { padding: 12px 16px 10px; }
.app main { flex: 1; padding: 6px 16px calc(36px + env(safe-area-inset-bottom)); }
.app a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.banner { margin: 0 0 12px; padding: 11px 14px; border-radius: var(--r-m); background: var(--lost-soft); color: #7a1b13; font-weight: 700; font-size: 14px; }
.dark .banner { background: rgba(217,45,32,.18); color: #ffb4ad; }
.hero .rip { top: 52%; }
.mapcard { height: 420px; background: #f3eff8; }
.gmap { position: absolute; inset: 0; }
.mapmsg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.45; }
.hm { position: absolute; left: 0; top: 0; will-change: transform; pointer-events: none; }
.hm .in { position: absolute; transform: translate(-50%, -50%); }
.hm-bus .chip { box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(23,18,43,.3); min-width: 40px; height: 38px; }
.hm-bus.lost { opacity: .6; }
.hm-you .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--pink); border: 3.5px solid #fff; animation: ping 1.8s infinite; display: block; }
.hm-stop .dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3.5px solid var(--ink-2); display: block; }
.hm-stop .nm { position: absolute; left: 16px; top: -9px; white-space: nowrap; font: 800 12.5px var(--text); color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 5px #fff; }
.hm-stop.end .dot { border-radius: 5px; background: var(--ink); }
.tools { margin-top: 18px; }
.tools summary { color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 4px; list-style: none; }
.tools summary::-webkit-details-marker { display: none; }
.tools .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tbtn { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.tools p { color: var(--muted); font-size: 12.5px; margin-top: 8px; line-height: 1.45; }
.passes { list-style: none; padding: 0; margin-top: 8px; font-size: 13px; }
.passes li { padding: 8px 0; border-top: 1px solid var(--line); font-weight: 700; }
.passes .m { color: var(--muted); font-weight: 500; margin-top: 2px; }
.permit { display: flex; gap: 12px; align-items: flex-start; }
.landing { padding-top: 22px; }
.landing h1 { font: 800 40px/1.02 var(--display); letter-spacing: -.04em; }
.landing p.lead { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 12px; }
.landing .go { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.landing .go a { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font: 800 20px var(--display); letter-spacing: -.02em; }
.landing .go a small { display: block; font: 500 13.5px var(--text); color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.landing .go .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--violet-soft); color: var(--violet); }
.landing .go a.dk { background: #130f24; color: #fff; border-color: #130f24; }
.landing .go a.dk small { color: #b9b1d3; }
.landing .go a.dk .ic { background: #2a1f4a; color: #ffd23f; }
.privacy { margin-top: 26px; color: var(--muted); font-size: 12.5px; line-height: 1.5; display: flex; gap: 8px; }
.admin h1 { font: 800 26px var(--display); letter-spacing: -.03em; }
.admin p, .admin li { color: var(--ink-2); line-height: 1.5; font-size: 14.5px; }
.admin .card + .card { margin-top: 12px; }
.admin pre { background: var(--surface-2); padding: 10px; border-radius: 10px; font-size: 12.5px; overflow: auto; margin-top: 8px; }
.admin .gmap-wrap { position: relative; height: 380px; border-radius: var(--r-m); overflow: hidden; margin-top: 12px; background: #f3eff8; }
.admin .cta { margin-top: 14px; }
.admin .cta.alt { background: var(--ink); box-shadow: none; }

/* ---------- the bus marker ---------- */
.hm-bus2 .in { width: 26px; height: 52px; }
.hm-bus2 .bbody { display: block; transform-origin: 50% 50%; filter: drop-shadow(0 3px 5px rgba(23,18,43,.4)); }
.hm-bus2 .bnum { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 20px; height: 20px; padding: 0 4px; border-radius: 7px; background: #fff; color: var(--ink); font: 800 12px/20px var(--display); text-align: center; box-shadow: 0 1px 4px rgba(23,18,43,.3); }
.hm-bus2.lost { opacity: .55; }
.hm-bus2.lost .bbody { filter: grayscale(.6); }
.mapleg { position: absolute; left: 10px; bottom: 10px; z-index: 5; display: flex; gap: 8px; }
.mapbtn { color: #17122b; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.94); border: 1px solid var(--line); font: 700 12.5px var(--text); box-shadow: 0 2px 8px rgba(23,18,43,.14); }

/* ---------- notices, my stop, sheet ---------- */
.notice { margin-bottom: 10px; }
.notice.late { background: var(--yellow-soft); }
.notice.full { background: var(--violet-soft); }
.notice.full .ic { background: var(--violet); color: #fff; }
.notice.breakdown { background: var(--lost-soft); }
.notice.breakdown .ic { background: var(--lost); color: #fff; }
.mystop { margin-top: 14px; }
.eyebrow2 { font: 700 11.5px var(--text); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.ms-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ms-name { font: 800 20px var(--display); letter-spacing: -.02em; margin-top: 2px; }
.ms-hint { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 8px; }
.ms-bus { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ms-bus:first-child { border-top: 0; margin-top: 4px; }
.ms-bus b { font-weight: 800; font-size: 15px; }
.ms-bus small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ms-bus .e { margin-left: auto; font: 800 22px var(--display); letter-spacing: -.03em; }
.ms-notify { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ms-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.ms-row select { font: 800 14px var(--text); padding: 5px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); margin: 0 3px; }
.ms-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 8px; }
.ms-note.bad { color: var(--lost); font-weight: 600; }
.switch { position: relative; width: 54px; height: 32px; border-radius: 999px; background: #d9d3e8; flex: none; transition: background .25s; }
.switch i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(23,18,43,.3); transition: transform .3s var(--spring); }
.switch[aria-checked="true"] { background: var(--live); }
.switch[aria-checked="true"] i { transform: translateX(22px); }
.sheet-bg { position: fixed; inset: 0; background: rgba(23,18,43,.45); z-index: 40; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 50%; bottom: 0; width: min(480px, 100%); transform: translateX(-50%); z-index: 41; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(23,18,43,.3); animation: up .35s var(--ease); max-height: 86vh; overflow: auto; }
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #d9d3e8; margin: 4px auto 14px; }
.sheet h2 { font: 800 22px var(--display); letter-spacing: -.025em; }
.sheet p { color: var(--muted); font-size: 13.5px; margin: 4px 0 14px; line-height: 1.45; }
.opt { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; margin-top: 8px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); font-weight: 800; font-size: 16px; }
.opt .dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #c9c1de; flex: none; }
.opt[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-soft); }
.opt[aria-pressed="true"] .dot { border-color: var(--pink); background: var(--pink); box-shadow: inset 0 0 0 3px #fff; }

/* ---------- conductor extras ---------- */
.lft { display: flex; align-items: center; gap: 10px; }
.backbtn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px 8px 8px; border-radius: 999px; background: #211a3b; border: 1px solid #342a58; color: #fff; font: 700 13px var(--text); text-decoration: none; }
.livehead { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.ring.sm { width: 64px; height: 64px; margin: 0; flex: none; }
.ring.sm .core { width: 44px; height: 44px; box-shadow: 0 0 0 6px rgba(62,224,141,.18); }
.ring.sm.warn .core { box-shadow: 0 0 0 6px rgba(255,178,63,.18); }
.ring.sm .core svg { width: 22px; height: 22px; }
.c-title2 { font: 800 26px/1.05 var(--display); letter-spacing: -.03em; }
.c-sub2 { color: #b9b1d3; font-size: 13.5px; line-height: 1.4; margin-top: 3px; }
.dkmap { height: 236px; margin-top: 14px; border-color: #342a58; background: #1b1530; }
.notebar { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tellbtn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px; background: #2a1f4a; border: 2px solid #4a3f78; color: #fff; font: 800 14.5px var(--text); }
.notechip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,210,63,.16); color: #ffe48a; font-weight: 700; font-size: 13px; }
.notechip button { color: #fff; text-decoration: underline; font-weight: 700; font-size: 12.5px; }
.sheet.dk { background: #1b1530; color: #fff; box-shadow: 0 -10px 40px rgba(0,0,0,.6); }
.sheet.dk p { color: #b9b1d3; }
.sheet.dk .grab { background: #4a3f78; }
.sheet.dk .opt { background: #261d44; border-color: #342a58; color: #fff; }
.sheet.dk .opt .dot { border-color: #5a4e8a; }
.sheet.dk .opt[aria-pressed="true"] { background: #3a1d3a; border-color: var(--pink); }
.sheet.dk .opt[aria-pressed="true"] .dot { box-shadow: inset 0 0 0 3px #261d44; }
.mins { display: flex; gap: 8px; margin: 8px 0 0 4px; }
.mins button { flex: 1; padding: 12px 0; border-radius: 14px; background: #2a1f4a; border: 2px solid #4a3f78; font: 800 17px var(--display); color: #fff; }
.mins button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
.dkbtn { background: #261d44; border-color: #342a58; color: #ffb4ad; padding: 14px; border-radius: 16px; font-size: 15px; }
