/* SeorakTrack v4 — 도착을 먼저 (Astra v3, smaller type per Gavin 2026-11-16) */
:root { --st-ink: #17324D; --st-mut: #66788C; --st-card: #fff; --st-cardline: #E3E9EF; --st-road: #E3EAF2; --st-dash: #fff; --st-chev: #8EA2B8;
  --st-tick: #B8C9D8; --st-tick-on: #5F93B5; --st-live-bg: #EAF6EF; --st-live: #2E7A5E; --st-est-bg: #FBF3E4; --st-est: #8F611A;
  --st-sched-bg: #EFF2F6; --st-sched: #596A7E; --st-rec-bg: #EEF0FA; --st-rec: #5A5F9A; --st-status: #F4F7FA; }
@media (prefers-color-scheme: dark) { :root { --st-ink: #E6EDF6; --st-mut: #A3B1C4; --st-card: #1B2636; --st-cardline: #2C3B50; --st-road: #2B3A50; --st-dash: #172131;
  --st-chev: #7F90A8; --st-tick: #44566E; --st-tick-on: #7FB2D6; --st-live-bg: #12382A; --st-live: #7FE3AE; --st-est-bg: #3D2E10; --st-est: #F5B14C;
  --st-sched-bg: #243146; --st-sched: #A3B1C4; --st-rec-bg: #262A4A; --st-rec: #B4B8F0; --st-status: #1E2A3B; } }
.st-wrap { position: relative; width: 100%; max-width: 520px; margin: 0 auto; font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--st-ink); -webkit-font-smoothing: antialiased; }
.st-stage { position: relative; width: 100%; min-height: 160px; -webkit-tap-highlight-color: transparent; }
.st-svg { position: absolute; left: 0; top: 0; display: block; overflow: visible; }
.st-road { fill: none; stroke: var(--st-road); stroke-width: 12; stroke-linejoin: round; }
.st-lane { fill: none; stroke: var(--st-road); stroke-width: 5; }
.st-road-dash { fill: none; stroke: var(--st-dash); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.st-chev { fill: none; stroke: var(--st-chev); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-term { fill: var(--st-ink); }
.st-center { fill: var(--st-card); stroke: var(--accent, #4A154B); stroke-width: 2.4; }
.st-xtick { stroke: var(--st-mut); stroke-width: 1.6; stroke-linecap: round; }
.st-dock { fill: none; stroke: var(--st-tick); stroke-width: 1.1; stroke-linejoin: round; }
.st-dock-on { stroke: var(--st-tick-on); stroke-width: 1.5; }
.st-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.st-bus { cursor: pointer; outline: none; }
.st-body { filter: drop-shadow(0 1.5px 2.5px rgba(10, 37, 64, .22)); }
.st-win { fill: rgba(255, 255, 255, .88); }
.st-sel-ring { fill: none; stroke: var(--st-ink); stroke-width: 1.8; opacity: 0; }
.st-bus.st-sel .st-sel-ring, .st-bus:focus-visible .st-sel-ring { opacity: .85; }
.st-parked .st-icon { opacity: .35; }
.st-parked .st-body { fill: #8A97A8; filter: none; }

/* labels (HTML, positioned by track.js) */
.st-labels { position: absolute; inset: 0; pointer-events: none; }
.st-labels > div { position: absolute; line-height: 1.25; }
.st-ko, .st-en { display: block; white-space: nowrap; }
.st-en { font-size: 9px; font-weight: 450; color: var(--st-mut); margin-top: 1px; letter-spacing: 0; }
.st-station .st-ko { font-size: 12px; font-weight: 700; letter-spacing: -.02em; }
.st-station-right { text-align: right; }
.st-exit { font-size: 9.5px; color: var(--st-mut); font-weight: 550; text-align: right; }
.st-exit .st-en { font-size: 8.5px; }
.st-sub { font-size: 10px; color: var(--accent-text, #4A154B); font-weight: 600; }
.st-village { font-size: 9.5px; color: var(--st-mut); }
.st-empty { text-align: center; font-size: 12px; color: var(--st-mut); }
.st-empty .st-ko, .st-empty .st-en { white-space: normal; }

/* cards */
.st-cards { position: absolute; inset: 0; pointer-events: none; }
.st-card { position: absolute; pointer-events: auto; display: block; box-sizing: border-box; margin: 0; text-align: left; font: inherit; color: var(--st-ink);
  background: var(--st-card); border: 1px solid var(--st-cardline); border-radius: 11px; padding: 7px 8px 7px; box-shadow: 0 3px 10px rgba(43, 71, 96, .05);
  cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: manipulation; transition: border-color .15s, box-shadow .15s; }
.st-card:focus-visible { outline: 2px solid var(--accent, #4A154B); outline-offset: 2px; }
.st-card.st-exp { border-color: #8BBBD3; box-shadow: 0 5px 16px rgba(56, 108, 141, .10); z-index: 2; }
.st-card > span { display: block; }
.st-id { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 5px; line-height: 1; margin-bottom: 5px; }
.st-rdot { width: 5px; height: 5px; border-radius: 50%; background: var(--rc, #8A97A8); flex: none; }
.st-route { font-size: 13.5px; font-weight: 740; letter-spacing: -.3px; }
.st-plate { font-size: 9.5px; font-weight: 500; color: var(--st-mut); letter-spacing: .04em; }
.st-tag { white-space: nowrap; font-size: 9.5px; font-weight: 650; color: var(--st-mut); border: 1px dashed var(--st-tick); border-radius: 4px; padding: 1px 4px; }
.st-more { margin-left: auto; font-size: 13px; line-height: 1; font-weight: 400; color: #91A3B3; }
.st-act { display: flex !important; align-items: center; gap: 4px; flex-wrap: wrap; }
.st-act-tx { font-size: 10px; font-weight: 520; color: #536B81; letter-spacing: -.15px; }
.st-big { display: block; font-size: 25px; line-height: 1.12; font-weight: 680; letter-spacing: -.8px; margin: 1px 0 3px; }
.st-sec { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 4px; min-height: 17px; line-height: 1.25; }
.st-sec-l { font-size: 9.5px; font-weight: 460; color: #536B81; white-space: nowrap; letter-spacing: -.2px; }
.st-sec-v { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; white-space: nowrap; }
.st-sec-t { font-size: 11.5px; font-weight: 600; letter-spacing: -.2px; }
.st-pill { display: inline-block; border-radius: 4px; font-size: 8.5px; font-weight: 600; line-height: 1.35; padding: 0 3.5px; white-space: nowrap; border: 1px solid transparent; letter-spacing: 0; }
.st-pill-live { color: var(--st-live); background: var(--st-live-bg); border-color: color-mix(in srgb, var(--st-live) 45%, transparent); }
.st-pill-est { color: var(--st-est); background: var(--st-est-bg); border-color: color-mix(in srgb, var(--st-est) 40%, transparent); }
.st-pill-sched { color: var(--st-sched); background: var(--st-sched-bg); border-color: color-mix(in srgb, var(--st-sched) 30%, transparent); }
.st-pill-rec { color: var(--st-rec); background: var(--st-rec-bg); border-color: color-mix(in srgb, var(--st-rec) 30%, transparent); }
.st-sec .st-pill { font-size: 8px; padding: 0 3px; }
.st-l2 { font-size: 10px; color: var(--st-mut); }
.st-card-mini { padding: 6px 8px; }
.st-card-mini .st-id { margin-bottom: 0; }
.st-card-parked { border-style: dashed; background: transparent; box-shadow: none; }
/* expanded: every row gets a large time; label (+ English) on top, time + pill below — fits narrow docks */
.st-xrow { display: block; padding: 4px 0 3px; border-top: 1px solid var(--st-cardline); }
.st-xrow.st-xprim { border-top: 0; padding-top: 0; }
.st-xlab { display: flex !important; align-items: center; column-gap: 4px; row-gap: 1px; flex-wrap: wrap; }
.st-xen { flex-basis: 100%; }
.st-xko { font-size: 10px; font-weight: 560; color: #536B81; }
.st-xen { font-size: 8.5px; color: var(--st-mut); }
.st-xval { display: flex !important; align-items: center; gap: 5px; }
.st-xt { font-size: 21px; line-height: 1.15; font-weight: 660; letter-spacing: -.6px; }
.st-xprim .st-xt { font-size: 25px; font-weight: 680; }
@media (prefers-color-scheme: dark) { .st-act-tx, .st-sec-l, .st-xko { color: #B4C1D3; } }
/* ≤ 345px stage (≈360px phones) */
.st-narrow .st-big, .st-narrow .st-xprim .st-xt { font-size: 23px; }
.st-narrow .st-xt { font-size: 19px; }
.st-narrow .st-card { padding: 6px 7px; }

/* status box: top-left of the circuit */
.st-status { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin: 0 0 6px; padding: 7px 9px; background: var(--st-status); border-radius: 10px; font-size: 11.5px; line-height: 1.35; }
.st-status-main { display: flex; gap: 7px; align-items: flex-start; }
.st-dot { width: 6px; height: 6px; border-radius: 50%; background: #8A97A8; margin-top: 5px; flex: none; }
.st-status-live .st-dot { background: #2B9875; box-shadow: 0 0 0 3px rgba(43, 152, 117, .15); }
.st-status-mode { font-weight: 700; font-size: 12px; }
.st-status-win, .st-status-upd { color: var(--st-mut); font-size: 10.5px; }
.st-status-upd { text-align: right; white-space: nowrap; }
.st-status .i18n-en { display: block; font-size: 9px; color: var(--st-mut); font-weight: 450; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .st-card { transition: none; } }

/* ---- v5 draft: palette, terminals at 9/3 o'clock, exit plaques, first-bus emphasis ---- */
:root { --rc-7000: #6A62A8; --rc-7001: #3F7FA8; --rc-7002: #A8567D; --rc-P7001: #B3604F; --rc-8005: #2F8A87; --rc-202: #6D7885; --rc-610: #6D7885;   /* 마을버스(20-2, 6-10)는 같은 회색 */
  --st-navy: #223F5E; --st-mcard: #F0F3F7; --st-mtext: #596A7E; --st-mpill: #E5EAF0; --st-micon: #65778C; --st-mline: #D5DDE7; }
@media (prefers-color-scheme: dark) { :root { --rc-7000: #8F88C4; --rc-7001: #6A9CC2; --rc-7002: #C77F9F; --rc-P7001: #CC8473; --rc-8005: #5AA7A3; --rc-202: #8C97A3; --rc-610: #8C97A3;
  --st-navy: #CBD7E5; --st-mcard: #141E2B; --st-mtext: #91A1B5; --st-mpill: #263446; --st-micon: #73859B; --st-mline: #334155; } }
.st-stopbar { stroke: var(--st-navy); stroke-width: 3; stroke-linecap: round; }
.st-termblk { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.15; color: var(--st-navy); }
.st-termblk .st-ko { font-size: 9.5px; font-weight: 700; letter-spacing: -.03em; color: var(--st-ink); }
.st-termblk .st-en { font-size: 7px; }
.st-termico { display: block; margin-bottom: 2px; color: var(--st-navy); }
.st-termico-fg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-exit { text-align: right; line-height: 1.2; }
.st-exit-l1 { display: inline-flex !important; align-items: center; gap: 3px; white-space: nowrap; }
.st-exitnum { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 4px; font-size: 10px; font-weight: 700; box-sizing: border-box; }
.st-exit-on .st-exitnum { background: var(--st-navy); color: var(--st-card); }
.st-exit-off .st-exitnum { border: 1.5px solid var(--st-navy); color: var(--st-navy); }
.st-exit-tx { font-size: 10px; font-weight: 650; color: var(--st-ink); }
.st-exit .st-en { font-size: 8px; }
.st-xtick { stroke: var(--st-navy); stroke-width: 2.2; }
.st-xtick-off { stroke-dasharray: 3 2; }
.st-firsttag { font-size: 8.5px; font-weight: 700; color: var(--st-card); background: var(--st-navy); border-radius: 4px; padding: 1px 4px; white-space: nowrap; }
.st-card.st-first { border-color: color-mix(in srgb, var(--st-navy) 35%, transparent); box-shadow: 0 4px 14px rgba(23, 50, 77, .10); }
/* secondary (not the first arrival, not tapped): opaque grey, still legible, clearly behind */
.st-card.st-dim { background: var(--st-mcard); border-color: var(--st-mline); color: var(--st-mtext); box-shadow: none; }
.st-card.st-dim * { color: var(--st-mtext) !important; }
.st-card.st-dim .st-big { font-weight: 560; }
.st-card.st-dim .st-pill { background: var(--st-mpill) !important; border-color: transparent !important; }
.st-card.st-dim .st-rdot { background: var(--st-micon); }
.st-bus.st-dimbus .st-body { fill: var(--st-micon) !important; filter: none; }
.st-dock[data-dim="1"] { opacity: .55; }

/* v5 draft — smaller bus-card text (pt164u) */
.st-card { padding: 6px 7px; border-radius: 10px; }
.st-id { margin-bottom: 4px; gap: 3px 4px; }
.st-route { font-size: 12px; }
.st-plate { font-size: 8.5px; }
.st-tag { font-size: 8.5px; padding: 1px 3px; }
.st-more { font-size: 12px; }
.st-act-tx { font-size: 9px; }
.st-big { font-size: 20.5px; letter-spacing: -.6px; margin: 0 0 2px; }
.st-sec { min-height: 15px; }
.st-sec-l { font-size: 8.5px; }
.st-sec-t { font-size: 10px; }
.st-pill { font-size: 8px; padding: 0 3px; }
.st-sec .st-pill { font-size: 8px; padding: 0 2.5px; }
.st-l2 { font-size: 9px; }
.st-xko { font-size: 9px; }
.st-xen { font-size: 8px; }
.st-xt { font-size: 17px; letter-spacing: -.5px; }
.st-xprim .st-xt { font-size: 20.5px; }
.st-firsttag { font-size: 8px; padding: 1px 3.5px; }
.st-card-mini { padding: 5px 7px; }
.st-narrow .st-big, .st-narrow .st-xprim .st-xt { font-size: 19px; }
.st-narrow .st-xt { font-size: 16px; }
.st-narrow .st-card { padding: 5px 6px; }

/* v5 draft — reservation-only P7001, window strip + replay scrubber (past / timetable windows) */
.st-resv { display: flex !important; flex-direction: column; gap: 1px; margin-top: 1px; }
.st-resv-ko { font-size: 10px; font-weight: 650; color: var(--st-ink); }
.st-resv-en { font-size: 8px; color: var(--st-mut); }
.st-card.st-dim .st-resv-ko { color: var(--st-mtext); }
.win-strip { margin: 0 0 6px; }
.win-strip-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; color: var(--st-mut); margin: 0 2px 4px; }
.win-strip-h b { font-weight: 650; color: var(--st-ink); font-size: 10.5px; }
.win-chips { display: flex; gap: 4px; overflow-x: auto; padding: 1px 1px 3px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.win-chips::-webkit-scrollbar { display: none; }
.win-chip { flex: none; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 3px 6px 3px 5px; border-radius: 8px; border: 1px solid var(--st-cardline); background: var(--st-card); color: var(--st-ink); font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
.win-chip-t { font-size: 11.5px; font-weight: 680; letter-spacing: -.3px; line-height: 1.1; }
.win-chip-r { display: inline-flex; align-items: center; gap: 3px; font-size: 8.5px; font-weight: 600; color: var(--st-mut); line-height: 1.1; }
.win-chip-r i { width: 5px; height: 5px; border-radius: 50%; background: var(--rc, #8A97A8); display: inline-block; }
.win-chip.past { background: var(--st-mcard); border-color: var(--st-mline); }
.win-chip.past .win-chip-t { color: var(--st-mtext); }
.win-chip.next { border-color: var(--st-navy); box-shadow: inset 0 0 0 1px var(--st-navy); }
.win-chip.on { background: var(--st-navy); border-color: var(--st-navy); }
.win-chip.on .win-chip-t, .win-chip.on .win-chip-r { color: var(--st-card); }
.win-chip.resv .win-chip-t { font-size: 10px; font-weight: 650; }
.win-chip:focus-visible { outline: 2px solid var(--accent, #4A154B); outline-offset: 1px; }
.win-scrub { margin: 6px 2px 0; }
.win-scrub-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; color: var(--st-mut); }
.win-scrub-h b { font-size: 14px; font-weight: 700; color: var(--st-ink); letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.win-scrub input[type=range] { width: 100%; margin: 2px 0 0; accent-color: var(--st-navy); height: 24px; }
.win-scrub-ends { display: flex; justify-content: space-between; font-size: 9px; color: var(--st-mut); font-variant-numeric: tabular-nums; }
.win-scrub-note { font-size: 9px; color: var(--st-mut); margin-top: 2px; }
.st-wait { white-space: nowrap; font-size: 8px; font-weight: 700; color: var(--st-navy); background: transparent; border: 1px solid var(--st-navy); border-radius: 4px; padding: 0 3.5px; line-height: 1.35; }
.st-card.st-dim .st-wait { color: var(--st-mtext); border-color: var(--st-micon); }

/* v5.1 draft — smaller bus cards (pt176u): text and rectangles ~15-20% smaller */
.st-card { padding: 5px 6px; border-radius: 8px; }
.st-id { margin-bottom: 3px; gap: 2px 3px; }
.st-rdot { width: 4px; height: 4px; }
.st-route { font-size: 10.5px; }
.st-plate { font-size: 8px; }
.st-tag { font-size: 8px; padding: 0 3px; }
.st-more { font-size: 10px; }
.st-act { gap: 3px; }
.st-act-tx { font-size: 8px; }
.st-big { font-size: 17px; line-height: 1.08; letter-spacing: -.5px; margin: 0 0 1px; }
.st-sec { min-height: 13px; line-height: 1.2; }
.st-sec-l { font-size: 8px; }
.st-sec-t { font-size: 9px; }
.st-pill, .st-sec .st-pill { font-size: 7.5px; padding: 0 2.5px; border-radius: 3px; }
.st-l2 { font-size: 8.5px; }
.st-xrow { padding: 3px 0 2px; }
.st-xko { font-size: 8px; }
.st-xen { font-size: 7.5px; }
.st-xt { font-size: 14.5px; }
.st-xprim .st-xt { font-size: 17px; }
.st-firsttag, .st-wait { font-size: 7.5px; padding: 0 3px; }
.st-resv-ko { font-size: 9px; }
.st-resv-en { font-size: 7.5px; }
.st-card-mini { padding: 4px 6px; }
.st-narrow .st-big, .st-narrow .st-xprim .st-xt { font-size: 16px; }
.st-narrow .st-xt { font-size: 13.5px; }
.st-narrow .st-card { padding: 4px 5px; }
.st-wait.st-late { color: #8A4B08; border-color: #C98A3A; background: #FFF6E8; }
.st-card.st-dim .st-wait.st-late { color: #7A4A12; border-color: #D3AE7E; background: #F8EFE2; }
@media (prefers-color-scheme: dark) { .st-wait.st-late, .st-card.st-dim .st-wait.st-late { color: #F3C98B; border-color: #8A6634; background: #33240F; } }
/* v5.1 friendly bus face: eyes look toward the direction of travel */
.st-eye { fill: #fff; }
.st-pupil { fill: #0E2236; }
.st-smile { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 1.1; stroke-linecap: round; }
.st-bus.st-dimbus .st-eye { fill: #F4F6F9; }
.st-bus.st-dimbus .st-pupil { fill: #4E5E70; }
.st-bus.st-dimbus .st-smile { stroke: rgba(255, 255, 255, .75); }
@media (prefers-color-scheme: dark) { .st-pupil { fill: #0B1724; } .st-bus.st-dimbus .st-eye { fill: #C9D3DE; } .st-bus.st-dimbus .st-pupil { fill: #2A3747; } }
/* P7001 reservation-only: notice + timetable departure (list, timetable) */
#list .resv { font-size: 15px; font-weight: 700; }
#list .resv-t { font-size: 12px; color: var(--st-ink, #10233A); font-weight: 600; margin-right: 4px; }
.tt-resv { font-size: 9px; color: #8A4B08; font-weight: 650; }
/* v5.1 leader lines: route-coloured, clearly visible; the tapped one is thick */
.st-dock { stroke: var(--dock, var(--st-tick)); stroke-width: 1.5; opacity: .85; }
.st-dock[data-dim="1"] { stroke: var(--st-micon); opacity: .7; }
.st-dock.st-dock-on, .st-dock.st-dock-on[data-dim="1"] { stroke: var(--dock, var(--st-tick-on)); stroke-width: 3.5; opacity: 1; }

/* v5.1b: 설악 너머 spur (side road off the right cap) + spur cards */
.st-spur-road { fill: none; stroke: var(--st-road); stroke-width: 9; stroke-linecap: round; }
.st-spur-dash { fill: none; stroke: var(--st-dash); stroke-width: 1.2; stroke-dasharray: 2 6; stroke-linecap: round; }
.st-spurlbl { position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; color: var(--st-mut); pointer-events: none; }
.st-spurlbl .st-ko { font-size: 9px; font-weight: 650; }
.st-spurlbl .st-en { font-size: 7.5px; margin-top: 0; white-space: normal; }
.st-spur-c { display: block; margin-top: 2px; line-height: 1.2; }
.st-spur-h { display: block; font-size: 8.5px; font-weight: 650; color: var(--st-ink); white-space: normal; }
.st-spur-en { display: block; font-size: 7.5px; color: var(--st-mut); white-space: normal; }
.st-spur-s { display: block; font-size: 8px; color: var(--st-mut); white-space: normal; }

/* v5.1b-2: spur copy on one line (pill + direction), never broken mid-word; board-first bus with no position */
.st-spur-c { margin-top: 1px; }
.st-spur-h { display: flex; align-items: center; gap: 3px; white-space: nowrap; word-break: keep-all; overflow: hidden; }
.st-spur-pill { flex: none; font-size: 7.5px; font-weight: 700; color: var(--st-card); background: var(--st-mut); border-radius: 4px; padding: 0 3px; }
.st-spur-d { font-size: 8px; font-weight: 650; color: var(--st-ink); overflow: hidden; text-overflow: ellipsis; }
.st-spur-en, .st-spur-s { font-size: 7.5px; white-space: nowrap; word-break: keep-all; overflow: hidden; text-overflow: ellipsis; }
.st-ghost { margin: 0 0 6px; padding: 6px 9px; border: 1.5px dashed var(--st-navy); border-radius: 10px; color: var(--st-ink); word-break: keep-all; }
.st-ghost[hidden] { display: none; }
.st-ghost-l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-ghost-rt { font-weight: 800; font-size: 12px; }
.st-ghost-t { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.st-ghost-k, .st-ghost-l2 { font-size: 10px; color: var(--st-mut); }
.st-ghost-l2 { margin-top: 2px; }
.st-ghost-en { display: block; font-size: 9px; color: var(--st-mut); margin-top: 1px; }
.st-ghost .st-firsttag { font-size: 8.5px; padding: 1px 4px; }
#list .firstpill { display: inline-block; font-size: 10px; font-weight: 700; color: #fff; background: var(--st-navy, #17324D); border-radius: 4px; padding: 1px 5px; margin-right: 3px; vertical-align: 1px; white-space: nowrap; }

.st-pill-past{color:var(--muted,#64748b);border:1px solid currentColor}

/* v6 draft (pt222u, 2026-11-18): only the board-first card is big; every other card is one small line
   (route · plate · main time + badge). Tap a small card to open it (same as before). */
.st-card.st-cmp { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 0; padding: 2.5px 5px 2.5px 5px; border-radius: 6px; line-height: 1.2; }
.st-card.st-cmp > span { display: inline-flex; }
.st-card.st-cmp > .st-offmap, .st-card.st-cmp > .st-lastseen { display: block; flex-basis: 100%; }   /* 한글·영어 줄이 가로로 붙지 않게 세로로 */
.st-cmp .st-id { margin: 0; gap: 0 3px; flex: none; line-height: 1.2; }
.st-cmp .st-rdot { width: 4px; height: 4px; }
.st-cmp .st-route { font-size: 9px; font-weight: 700; letter-spacing: -.1px; }
.st-cmp .st-plate { font-size: 7px; letter-spacing: .02em; }
.st-cmp .st-cprim { display: inline-flex !important; align-items: center; gap: 3px; white-space: nowrap; }
.st-cmp .st-cp-l { font-size: 7.5px; font-weight: 500; letter-spacing: -.15px; }
.st-cmp .st-cp-t { font-size: 9.5px; font-weight: 650; letter-spacing: -.2px; }
.st-cmp .st-pill { font-size: 6.5px; line-height: 1.3; padding: 0 2px; border-radius: 3px; }
.st-cmp .st-more { font-size: 8.5px; line-height: 1; margin-left: 1px; opacity: .8; }
.st-cmp .st-spur-pill { font-size: 6.5px; line-height: 1.35; padding: 0 2.5px; border-radius: 3px; }
.st-cmp .st-tag, .st-cmp .st-wait, .st-cmp .st-firsttag { font-size: 6.5px; line-height: 1.35; padding: 0 2.5px; border-radius: 3px; }
.st-card.st-cmp.st-card-mini { padding: 2.5px 5px; }
.st-cmp .st-l2, .st-cmp .st-resv-ko { font-size: 7.5px; }
.st-cmp .st-resv-en { font-size: 6.5px; }
.st-card.st-dim.st-cmp { background: var(--st-mcard); border-color: var(--st-mline); }
.st-card.st-dim.st-cmp .st-spur-pill { color: var(--st-mcard) !important; background: var(--st-micon); }
/* the board-first card: a slightly firmer outline so it reads first */
.st-card.st-first { border: 1.5px solid color-mix(in srgb, var(--st-navy) 70%, transparent); box-shadow: 0 6px 18px rgba(23, 50, 77, .16); }
.st-ghost { margin-bottom: 20px; }   /* cardhier: keep the pinned line clear of the "6 하차" label above the circuit */


/* 2026-11-19 seorak clarity: one big next-bus answer; everything else small + dim */
.st-nextboard { margin: 0 0 16px; padding: 10px 12px 9px; border: 1.5px solid color-mix(in srgb, var(--st-navy, #17324D) 55%, transparent); border-radius: 14px; background: var(--st-card); box-shadow: 0 8px 22px rgba(23, 50, 77, .12); }
.st-nb-title { font-size: 11.5px; font-weight: 750; letter-spacing: -.2px; margin: 0 0 6px; line-height: 1.3; }
.st-nb-title .st-nb-en, .st-nb-enline { display: block; font-size: 9px; font-weight: 500; color: var(--st-mut); margin-top: 1px; }
.st-nb-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.st-nb-rt { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.st-nb-time { display: inline-flex; align-items: baseline; gap: 4px; }
.st-nb-hm { font-size: 26px; font-weight: 750; letter-spacing: -.8px; font-variant-numeric: tabular-nums; line-height: 1; }
.st-nb-lab { font-size: 12px; font-weight: 650; }
.st-nb-cd { margin-left: auto; font-size: 13.5px; font-weight: 750; color: var(--st-ink); letter-spacing: -.2px; }
.st-nb-arr { font-size: 11px; color: var(--st-mut); margin-top: 4px; }
.st-nb-unk, .st-nb-nd { font-size: 10.5px; color: var(--st-mut); margin-top: 3px; }
.st-nb-next { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--st-cardline); font-size: 10.5px; font-weight: 550; color: var(--st-mut); opacity: 0.72; line-height: 1.35; }
.st-nb-next .st-nb-en { font-size: 9px; opacity: 0.9; }
@media (prefers-color-scheme: dark) {
  .st-nextboard { box-shadow: 0 8px 22px rgba(0, 0, 0, .28); border-color: color-mix(in srgb, #8BBBD3 45%, transparent); }
}

/* dim non-focus cards / icons / chrome: small and faded, still readable */
.st-card.st-dim, .st-card.st-dim.st-cmp { opacity: 0.46; filter: grayscale(0.28); }
.st-bus.st-dimbus { opacity: 0.62; filter: grayscale(0.2); }   /* 다음 버스가 아닌 버스: 한 번만 62%로 흐리게 */
.st-wrap.st-quiet .st-status { opacity: 0.45; filter: grayscale(0.2); }
.st-wrap.st-quiet .st-labels > div:not(.st-exit-hot):not(.st-termblk-jamsil) { opacity: 0.45; filter: grayscale(0.15); }
.st-wrap.st-quiet .st-nextboard, .st-wrap.st-quiet .st-ghost:not(.st-nextboard) { opacity: 1; filter: none; }
body.st-focusmode header .titlebar,
body.st-focusmode header .updated,
body.st-focusmode .day,
body.st-focusmode .tabs,
body.st-focusmode .stops,
body.st-focusmode .track-note,
body.st-focusmode #trip,
body.st-focusmode .card:not(.track-card),
body.st-focusmode footer { opacity: 0.45; filter: grayscale(0.18); }
body.st-focusmode #banner { opacity: 1; filter: none; }

.st-nb-lines { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.st-nb-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12.5px; font-weight: 650; letter-spacing: -.2px; }
.st-nb-line .st-nb-en { display: block; width: 100%; font-size: 9.5px; font-weight: 500; color: var(--st-mut); margin-top: 0; }
.st-nb-pill2 { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.st-nb-unk { font-size: 10.5px; color: var(--st-mut); margin-top: 5px; }
.st-card-off .st-offmap { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 600; color: var(--st-mut); line-height: 1.3; }
.st-card-off .st-offmap .st-xen { display: block; font-size: 9px; font-weight: 500; opacity: .85; }
.st-card.st-cmp .st-offmap, .st-card.st-dim .st-offmap { font-size: 9.5px; }

.st-nb-arrs { font-size: 11.5px; font-weight: 600; color: var(--st-mut); }
.st-nb-line .cong, .st-xval .cong, .st-sec-v .cong, .st-prim .cong, .st-cprim .cong { margin-left: 4px; vertical-align: middle; padding: 2px 7px; font-size: 9.5px; }
.st-nb-line .cong .cong-en, .st-xval .cong .cong-en { font-size: 7.5px; }

.st-nb-rt, .st-ghost-rt, .st-id { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 5px; }
.st-dim .plt, .st-cmp .plt { opacity: 0.38; }
.st-cmp .plt { margin-left: 3px; padding: 0 3px 0 2px; }
.st-cmp .plt-ko { font-size: 4.5px; }
.st-cmp .plt-en { font-size: 3.5px; }
.st-cmp .plt-no { font-size: 6.5px; letter-spacing: .02em; }
.st-first .plt, .st-exp .plt, .st-nextboard .plt { opacity: 0.55; transform: none; }
.st-nb-rt .plt, .st-ghost-rt .plt { margin-left: 2px; }

/* ---- align-20261119 ---- */
/* plate badge never moves the route baseline */
.plt { vertical-align: middle; align-self: center; flex: none; }
.st-nb-rt, .st-ghost-rt, .st-id { align-items: center; }
/* 설악 next-bus board: route number is the biggest, boldest thing; time beside it on the same baseline */
.st-nb-main { align-items: baseline; gap: 4px 8px; }
.st-nb-rt .st-route { font-size: 25px; font-weight: 850; letter-spacing: -.6px; line-height: 1; }
.st-nb-hm { font-size: 24px; font-weight: 700; }
.st-nb-main .st-nb-pill { align-self: center; }
.st-nb-cd { align-self: baseline; }
/* detail rows: [label ko / en] [time] [pills] in shared columns */
.st-nb-lines { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: 10px; row-gap: 7px; align-items: center; margin-top: 9px; }
.st-nb-line { display: contents; }
.st-nb-k { display: flex; flex-direction: column; line-height: 1.2; }
.st-nb-k .st-ko { font-size: 12px; font-weight: 650; }
.st-nb-line .st-nb-k .st-nb-en { width: auto; font-size: 9px; font-weight: 500; color: var(--st-mut); margin-top: 1px; }
.st-nb-t { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.3px; line-height: 1; }
.st-nb-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 5px; }
.st-nb-tags .cong { margin-left: 0; }
.st-nb-arrs .st-nb-k .st-ko, .st-nb-arrs .st-nb-t { color: var(--st-mut); font-size: 11px; }
.st-nb-unk .st-ko, .st-nb-unk .st-nb-en { display: block; }
.st-nb-unk .st-nb-en { font-size: 9px; }
.st-nb-next .st-ko, .st-nb-next .st-nb-en { display: block; }
/* Jamsil ghost line: tag, route, time on one centre line; route larger than the time label */
.st-ghost-l1 { align-items: baseline; }
.st-ghost .st-firsttag { align-self: center; }
.st-ghost-rt .st-route { font-size: 17px; font-weight: 850; letter-spacing: -.4px; line-height: 1; }
.st-ghost-t { font-size: 16px; }
/* off-map note: Korean line, English line below (never squeezed beside it) */
.st-offmap .st-ko, .st-offmap .st-xen { display: block; white-space: normal; }
.st-offmap .st-xen { font-size: 8.5px; font-weight: 500; opacity: .85; margin-top: 1px; }
/* card rows: label left, time + pills share one centre line */
.st-xval .st-xt { font-variant-numeric: tabular-nums; }
.st-xval .cong { align-self: center; }
/* focus mode: selected day / time / boarding-stop stay fully lit; only the unselected options dim */
body.st-focusmode .day, body.st-focusmode .tabs, body.st-focusmode .stops { opacity: 1; filter: none; }
body.st-focusmode .day button:not(.on), body.st-focusmode .tabs button:not(.on), body.st-focusmode .stops button:not(.on) { opacity: 0.45; filter: grayscale(0.18); }
body.st-focusmode .stops-lab { opacity: 0.85; }
/* ---- delayed runs (지연 N분 + cause) ---- */
.dly-wrap { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
.dly { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; padding: 2px 6px; line-height: 1.15; font-weight: 750; border: 1px solid transparent; white-space: nowrap; }
.dly .dly-ko { font-size: 11px; letter-spacing: -.02em; }
.dly .dly-en { font-size: 8px; font-weight: 600; opacity: .9; }
.dly-min { background: #FDECEC; color: #B42318; border-color: #F2B4B0; }
.dly-jam { background: #FFF4D6; color: #8A5A00; border-color: #F0D48A; }
.dly-brk { background: #F3E8FF; color: #6B21A8; border-color: #D8B4FE; }
@media (prefers-color-scheme: dark) {
  .dly-min { background: #3A1717; color: #FF9C94; border-color: #6B2A28; }
  .dly-jam { background: #3D2E10; color: #F5D76E; border-color: #6A4E16; }
  .dly-brk { background: #2E1A47; color: #D8B4FE; border-color: #5B3A82; }
}
.st-nb-delay { margin: 6px 0 2px; }
.st-nb-delay .dly .dly-ko { font-size: 12.5px; }
.st-nb-delay .dly .dly-en { font-size: 9px; }
.st-nb-next .dly-wrap { margin-top: 3px; }
.st-nb-next .dly .dly-ko { font-size: 10px; }
.st-cmp .dly { padding: 0 3px; border-radius: 4px; }
.st-cmp .dly .dly-ko { font-size: 7.5px; }
.st-cmp .dly .dly-en { font-size: 5.5px; }
.st-id .dly-wrap { margin-left: 2px; }
/* late-run board: timetable minute small next to the 지연 pill (big time = expected departure) */
.st-nb-delay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-nb-sched { display: inline-flex; flex-direction: column; line-height: 1.2; font-size: 12px; font-weight: 600; color: var(--st-mut); }
.st-nb-sched .st-nb-en { font-size: 9.5px; font-weight: 500; }
/* focus mode keeps dimming the list, but a delay / cause pill stays at full strength (dim the row's other parts instead) */
body.st-focusmode .card:not(.track-card):has(.dly) { opacity: 1; filter: none; }
body.st-focusmode .card:not(.track-card):has(.dly) > :not(:has(.dly)),
body.st-focusmode .card:not(.track-card):has(.dly) li:not(:has(.dly)),
body.st-focusmode .card:not(.track-card):has(.dly) :is(h2, h3, .note, .list-note) { opacity: 0.45; filter: grayscale(0.18); }
body.st-focusmode .card:not(.track-card) li:has(.dly) :is(.badge, .sub, .right, .big > :not(.dly)) { opacity: 0.5; filter: grayscale(0.18); }
body.st-focusmode .card:not(.track-card) li:has(.dly) .dly { opacity: 1; filter: none; }

/* ---- lastseen-20261119: estimated (GPS dropped) buses, exit-5 tip, rows by boarding stop ---- */
/* estimated position: hollow dashed icon (the plate is a GPS fact from earlier today, the position is not) */
.st-bus.st-est .st-body { fill-opacity: .35; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 2.6 1.8; }
.st-bus.st-est { color: var(--st-ink); }
.st-bus.st-est .st-eye, .st-bus.st-est .st-pupil, .st-bus.st-est .st-win { opacity: .7; }
.st-wait-est { display: inline-flex !important; flex-direction: column; line-height: 1.25; padding: 1px 4px; white-space: normal; word-break: keep-all; max-width: 100%; box-sizing: border-box; }
.st-wait-est .st-wait-en { font-size: 7px; font-weight: 600; opacity: .85; }
.st-lastseen { display: block; margin-top: 3px; font-size: 8.5px; line-height: 1.3; color: var(--st-mut); opacity: .8; }
.st-lastseen .st-xen { display: block; font-size: 7.5px; }
.st-ghost-seen { margin-top: 2px; font-size: 9px; color: var(--st-mut); opacity: .8; }
.st-ghost-seen .st-ghost-en { font-size: 8px; margin-top: 0; }
.st-ghost-est { border-style: dashed; }
.st-nb-est { opacity: .8; font-size: 9.5px; }
/* exit-5 tip: inside the oval, lower-left, next to '5 승차' */
.st-tip { position: absolute; display: flex; align-items: flex-start; gap: 5px; box-sizing: border-box; padding: 4px 7px; border-radius: 8px;
  background: color-mix(in srgb, var(--st-navy) 9%, transparent); border: 1px solid color-mix(in srgb, var(--st-navy) 28%, transparent);
  color: var(--st-ink); word-break: keep-all; pointer-events: none; }
.st-tip-ico { flex: none; margin-top: 1px; fill: none; stroke: var(--st-navy); stroke-width: 2.2; stroke-linecap: round; }
.st-tip-tx { display: flex; flex-direction: column; min-width: 0; }
.st-tip-ko { font-size: 8.5px; font-weight: 650; line-height: 1.3; }
.st-tip-en { font-size: 7px; color: var(--st-mut); line-height: 1.25; }
@media (prefers-color-scheme: dark) {
  .st-tip { background: rgba(155, 178, 214, .10); border-color: rgba(155, 178, 214, .30); }
  .st-tip-ico { stroke: #9FB6D9; }
}
/* card rows (Gavin pt288): only my stop's departure (first row) is lit; the other rows are smaller and dimmed */
.st-xrow:not(.st-xprim) { opacity: .58; }
.st-card .st-xrow:not(.st-xprim) .st-xt { font-size: 13px; font-weight: 600; }
.st-narrow .st-card .st-xrow:not(.st-xprim) .st-xt { font-size: 12.5px; }
.st-xrow:not(.st-xprim) .st-xko { font-size: 9.5px; }
.st-sec { opacity: .62; }
.st-sec .st-sec-t { font-size: 10.5px; }
#list .ls-note { font-size: 10px; opacity: .75; }

/* ---- 천안1리: 2차선 도로 (상행 서울행 ← 위 / 하행 유명산행 → 아래). 선택된 도로가 떠 있고 나머지는 흐리게 ---- */
.st-lane-road { fill: none; stroke: var(--st-road); stroke-width: 11; }
.st-lane-on .st-lane-road { stroke: color-mix(in srgb, var(--st-navy) 30%, var(--st-road)); stroke-width: 15; filter: drop-shadow(0 4px 3px rgba(10, 37, 64, .35)); }
.st-lane-off { opacity: .3; filter: saturate(.4); }
.st-lane-g { cursor: pointer; outline: none; }
.st-lane-hit { fill: transparent; pointer-events: all; }
.st-lane-stop { fill: var(--st-card); stroke: var(--st-navy); stroke-width: 1.5; }
.st-lane-g .st-termico-fg { fill: none; stroke: var(--st-navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-bus.st-lane-faded { opacity: .35; filter: saturate(.4); }
.st-bus-tag { position: absolute; text-align: center; font-size: 9.5px; font-weight: 700; color: var(--st-ink); white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px var(--st-card), 0 0 3px var(--st-card), 0 0 2px var(--st-card); font-variant-numeric: tabular-nums; }
.st-bus-tag-on { font-weight: 800; }
.st-lane-label { text-align: center; line-height: 1.2; }
.st-lane-label .st-ll1 { font-size: 10px; }
.st-lane-label .st-ll1 b { font-weight: 750; }
.st-lane-label .st-ll1 span { font-weight: 550; font-size: 9px; color: var(--st-mut); }
.st-lane-label .st-ll2 { font-size: 7.5px; color: var(--st-mut); }
.st-lane-label-off { opacity: .3; }
.st-cend .st-ko { font-size: 10px; font-weight: 700; color: var(--st-ink); }
.st-cend .st-en { display: block; font-size: 7.5px; font-weight: 500; color: var(--st-mut); line-height: 1.15; }
.st-lane-hint { text-align: center; font-size: 9.5px; color: var(--st-mut); opacity: .65; }
.st-lane-hint .st-en { display: inline; margin-left: 4px; font-size: 8.5px; }
.st-lane-empty { text-align: center; font-size: 11px; color: var(--st-mut); }
.st-lane-empty .st-en { display: block; font-size: 9px; }
.st-cboard.st-nextboard { margin: 14px 0 0; }
.st-cboard[hidden] { display: none; }


/* ---- 고양이 버스 아이콘 ---- */
.st-cat { filter: drop-shadow(0 1.5px 2px rgba(10, 37, 64, .28)); pointer-events: none; }
.st-bus.st-est .st-cat { opacity: .85; }
.st-bus.st-parked .st-cat { filter: grayscale(1); opacity: .6; }

/* ---- 잠실역: Line 2 표시, 켜진 출구(5번 승차 / 6번 하차), 사진 안내 카메라 ---- */
:root { --st-cam: #223F5E; }
@media (prefers-color-scheme: dark) { :root { --st-cam: #FFFFFF; } }
.st-line2 { font-size: 8px; font-weight: 800; color: #fff; background: #00A84D; border-radius: 7px; padding: 0 5px; line-height: 13px; margin: 2px 0 1px; }
.st-exit-hot, .st-exit-dim { text-align: left; white-space: nowrap; }
.st-exit-hot .st-exit-tx { font-size: 10px; font-weight: 750; }
.st-exit-sub { display: block; font-size: 10px; font-weight: 800; color: var(--st-ink); margin-top: 1px; }
.st-exit-tx2 { display: block; font-size: 10px; font-weight: 750; color: var(--st-ink); margin-top: 1px; }
.st-exit-dim { opacity: .45; }
.st-exit-dim .st-exitnum { background: transparent !important; color: var(--st-navy) !important; border: 1.5px solid var(--st-navy) !important; }
.st-exit-hot .st-exitnum { background: var(--st-navy); color: var(--st-card); border: 0; position: relative; overflow: visible; }
.st-exit-hot .st-en { font-size: 7px; letter-spacing: -.1px; }
.st-exit-go { pointer-events: auto; cursor: pointer; text-shadow: 0 0 4px var(--st-card), 0 0 4px var(--st-card); }
.st-exit-go:focus-visible { outline: 2px solid var(--accent, #4A154B); outline-offset: 2px; border-radius: 6px; }
.st-exit-cam { position: absolute; right: -9px; top: -9px; width: 15px; height: 15px; border-radius: 50%; box-sizing: border-box; color: var(--st-cam); border: 1px solid currentColor; background: color-mix(in srgb, currentColor 16%, var(--st-card)); display: flex; align-items: center; justify-content: center; }
.st-exit-cam svg { width: 9px; height: 9px; display: block; }
.st-exit-cam path { fill: currentColor; }
.st-exit-cam circle { fill: var(--st-card); opacity: .7; }
.st-exit-cam i { position: absolute; inset: -4px; border-radius: 50%; border: 1.4px solid currentColor; opacity: 0; pointer-events: none; }
.st-cam-new i { animation: st-ripple 2.4s ease-out infinite; }
.st-cam-new i:nth-of-type(2) { animation-delay: .8s; }
.st-cam-new i:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes st-ripple { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .st-cam-new i { animation: none; } .st-cam-new i:nth-of-type(1) { opacity: .5; } }

/* ---- 승차장 찾아가기 팝업 ---- */
.xg-ov { position: fixed; inset: 0; background: rgba(5, 10, 18, .62); z-index: 9998; }
.xg-sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 9999; box-sizing: border-box; background: var(--st-card); color: var(--st-ink); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.xg-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--st-cardline); margin: 2px auto 8px; }
.xg-head { display: flex; justify-content: space-between; align-items: flex-start; }
.xg-title { font-size: 15px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; }
.xg-ko { display: block; } .xg-en { display: block; font-size: .72em; font-weight: 500; color: var(--st-mut); letter-spacing: 0; margin-top: 1px; }
.xg-x { flex: none; width: 28px; height: 28px; border-radius: 14px; border: 0; background: var(--st-sched-bg); color: var(--st-mut); font-size: 13px; cursor: pointer; }
.xg-x:focus-visible { outline: 2px solid var(--accent, #4A154B); outline-offset: 2px; }
.xg-step { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; }
.xg-num { flex: none; display: inline-flex; width: 24px; height: 24px; border-radius: 7px; background: #FFD666; color: #1b2430; font-weight: 800; font-size: 14px; align-items: center; justify-content: center; box-shadow: 0 0 0 3px rgba(255, 214, 102, .28), 0 0 10px rgba(255, 214, 102, .55); }
.xg-stx .xg-ko { font-size: 13px; font-weight: 750; }
.xg-warn { background: rgba(245, 177, 76, .14); border: 1px solid rgba(245, 177, 76, .45); border-radius: 10px; padding: 7px 10px; margin-bottom: 10px; }
.xg-warn .xg-ko { font-size: 11.5px; font-weight: 750; color: var(--st-est); }
.xg-warn .xg-en { color: var(--st-est); opacity: .85; }
.xg-map { display: block; width: 100%; height: auto; background: #1e2a3b; border-radius: 12px; }   /* 약도는 어두운 카드 기준으로 그려서 밝은 화면에서도 같게 */
.xg-sheet:focus { outline: none; }
.xg-figs { display: flex; gap: 8px; margin-top: 10px; }
.xg-fig { flex: 1; min-width: 0; margin: 0; }
.xg-phw { position: relative; }
.xg-ph { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--st-cardline); background: #0c1520; }
.xg-badge { position: absolute; top: 5px; right: 5px; font-size: 8.5px; font-weight: 800; border-radius: 9px; padding: 2px 6px; }
.xg-yes { background: #FFD666; color: #1b2430; } .xg-no { background: #E8776A; color: #fff; }
.xg-fig figcaption { margin-top: 4px; }
.xg-fig figcaption b { display: block; font-size: 10.5px; font-weight: 750; }
.xg-c { display: block; font-size: 9px; color: var(--st-mut); line-height: 1.25; }
.xg-ce { font-size: 8px; opacity: .8; }
.xg-foot { margin-top: 9px; font-size: 9px; color: var(--st-mut); text-align: center; opacity: .85; }
.xg-foot .xg-en { display: inline; margin-left: 4px; }
