:root { color-scheme: dark; --bg: #1C2027; --panel: #14171C; --ink: #F4F6F8; --muted: #B3BBC6; --line: #424750; --amber: #FFB23F; --red: #DF6268; --mint: #9DD1B3; --body: 'IBM Plex Sans KR', system-ui, sans-serif; --title: 'Do Hyeon', var(--body); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; min-height: 46px; border: 1px solid var(--line); border-radius: 9px; background: #292F38; color: var(--ink); padding: 12px 16px; text-align: left; }
button:hover { background: #353C47; } button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
input, select { width: 100%; min-width: 0; background: var(--panel); border: 1px solid var(--line); color: var(--ink); border-radius: 7px; min-height: 46px; padding: 10px 12px; }
input::placeholder { color: var(--muted); }
input[type=range] { accent-color: var(--amber); padding: 0; border: 0; }
h1, h2, p { margin: 0; } h1 { font: 36px/1.15 var(--title); } h2 { font-size: 18px; font-weight: 600; }
.masthead, main, footer { width: min(100%, 640px); margin-inline: auto; padding-inline: 22px; }
.masthead { min-height: 83px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.masthead a { text-decoration: none; } .brand { font: 29px/1 var(--title); color: var(--amber); } .region { font-size: 12px; color: var(--muted); }
main { padding-block: 28px 36px; min-height: 65vh; } section > h1 { margin-block: 12px 24px; }
.bus-sign, .wake-sign { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid #B52D35; border-radius: 14px; padding: 26px 24px; box-shadow: 0 8px 30px #0002; }
.bus-sign h1 { color: var(--amber); font-size: clamp(44px, 10vw, 64px); margin-top: 12px; }
.sign-small { color: var(--muted); font-size: 15px; }
.dawn { display: flex; align-items: center; gap: 9px; margin-top: 30px; color: var(--muted); font-size: 13px; border-top: 1px solid #302719; padding-top: 14px; }
.seat-icon { color: #B52D35; font-size: 22px; } .sign-number { margin-left: auto; color: var(--amber); font: 40px/1 var(--title); letter-spacing: 4px; }
.intro { color: #CBD1D8; font-size: 15px; line-height: 1.8; margin: 24px 0; }
.entry { display: grid; gap: 10px; } .entry button { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.primary { background: var(--amber); color: #181C22; border-color: var(--amber); font-weight: 600; } .primary:hover { background: #FFC76F; }
.text-button { border: 0; background: none; padding: 8px 0; min-height: 40px; color: var(--muted); font-size: 14px; } .text-button:hover { background: none; color: var(--ink); }
.list { display: grid; gap: 8px; margin-top: 16px; } .list button { width: 100%; display: flex; gap: 12px; align-items: center; } .list button span { min-width: 0; }
.list .row-content { flex: 1; display: grid; gap: 4px; } .list strong { font-size: 17px; } .list small { color: var(--muted); font-size: 12px; line-height: 1.5; }
#recent-section { margin-top: 34px; } .search-row { display: flex; gap: 8px; margin-top: 8px; } .search-row input { flex: 1; width: 0; } .search-row button { white-space: nowrap; } #map-open { margin-top: 16px; width: 100%; }
.segments { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .segments button { flex: 1; text-align: center; font-size: 14px; } .segments [aria-pressed=true] { background: var(--amber); color: var(--panel); border-color: var(--amber); }
.prob-dot { width: 10px; height: 10px; border-radius: 100%; background: var(--line); flex-shrink: 0; } .prob-dot.good { background: var(--mint); } .prob-dot.low { background: var(--red); } .prob-dot.provisional { opacity: .55; }
.route-heading { display: flex; gap: 12px; align-items: center; margin: 10px 0 22px; } .route-heading > div { min-width: 0; } .route-heading h1 { font: 26px/1.35 var(--title); } .route-heading p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.badge { background: #B52D35; padding: 9px 10px; border-radius: 6px; font-weight: 600; font-size: 19px; flex-shrink: 0; max-width: 42%; }
.wake-sign { text-align: center; padding: 22px 14px; } #wake-led svg { display: block; width: 100%; height: auto; margin-top: 12px; } .wake-unit { color: var(--amber); font: 32px/1.15 var(--title); } .wake-sign.is-state #wake-led { display: none; } .wake-sign.is-state .wake-unit { margin-block: 24px; font-size: 28px; } #deadline-line { font-size: 14px; line-height: 1.7; margin-top: 13px; } .warning { color: var(--amber); font-size: 13px; margin-top: 12px; }
.controls { padding: 20px 0; margin: 10px 0 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .controls label { display: block; font-size: 13px; } .controls output { float: right; color: var(--amber); } .controls select { margin-top: 8px; font-size: 13px; }
.chart-section, .passed, #upstream-section { padding-block: 24px; border-top: 1px solid var(--line); } .section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chart-scroll { overflow-x: auto; padding-top: 12px; padding-bottom: 8px; }
.chart { display: flex; align-items: end; gap: 3px; min-width: 0; height: 132px; border-bottom: 1px solid var(--line); }
.chart.full { min-width: 1400px; } .chart button { padding: 0; width: 0; flex: 1; min-width: 0; min-height: 10px; height: calc(var(--prob) * 110px + 12px); border: 0; border-radius: 3px 3px 0 0; background: var(--mint); }
.chart button.low { background: var(--red); } .chart button.PROVISIONAL { opacity: .55; } .chart button.PENDING, .chart button.NONE { height: 24px; background: repeating-linear-gradient(135deg,#727A86 0 2px,transparent 2px 6px); border: 1px solid #626A75; }
.chart button.NONE { background: #343B45; } .chart button[aria-pressed=true] { outline: 2px solid var(--amber); outline-offset: 3px; }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding-top: 8px; } .axis.full { min-width: 1400px; }
.micro, .disclosure { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 8px; } .reading { margin-top: 18px; line-height: 1.8; font-size: 15px; } .passed #full-share { font: 40px/1.3 var(--title); color: var(--amber); margin-top: 10px; }
.share-button { width: 100%; text-align: center; margin-top: 16px; } footer { border-top: 1px solid var(--line); padding-block: 24px 40px; display: grid; gap: 18px; font-size: 13px; color: var(--muted); }
.incoming, .error { border: 1px solid var(--line); padding: 16px; border-radius: 9px; margin-bottom: 18px; font-size: 14px; line-height: 1.7; } .incoming button, .error button { margin-top: 12px; } .incoming { background: #292F38; } .error { border-color: var(--red); }
.status { color: var(--amber); font-size: 14px; margin-top: 20px; } .status:empty { margin: 0; }
.sheet { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--bg); color: var(--ink); width: min(100% - 24px, 620px); max-height: 92dvh; overflow: auto; } .sheet::backdrop { background: #000b; } .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sheet > button { margin-top: 10px; width: 100%; text-align: center; } .sheet-head button { font-size: 13px; min-height: 40px; }
#map { height: 340px; margin-top: 12px; border-radius: 8px; overflow: hidden; background: #292F38; } .map-credit { font-size: 12px; display: block; margin-top: 8px; } #map-status, #share-status { font-size: 13px; line-height: 1.6; color: var(--amber); margin-top: 10px; }
.map-marker { min-height: 30px; width: 30px; padding: 0; border: 3px solid white; border-radius: 50%; background: #B52D35; color: white; box-shadow: 0 2px 8px #0006; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 360px) { .masthead, main, footer { padding-inline: 16px; } .region { font-size: 10px; } .brand { font-size: 26px; } .bus-sign { padding: 24px 18px; } .controls { gap: 12px; } .chart { gap: 2px; } }
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s ease; } }
.clamp-two { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }
#examples-section { margin-top: 30px; }
.examples small { color: var(--amber); font: 23px/1.3 var(--title); }
.recovery { color: var(--mint); font-size: 13px; line-height: 1.7; margin-top: 12px; }
.situation { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 12px; }
.passed #full-share { font: 22px/1.6 var(--title); }

.share-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.share-actions .share-button { margin-top: 0; flex: 1; width: auto; }
#share-copy { flex-shrink: 0; }

.sites-links { display: grid; gap: 8px; }
.sites-links a { display: flex; align-items: center; min-height: 44px; line-height: 1.5; }
