:root { --ink:#142236; --navy:#071b32; --navy2:#0d3155; --paper:#f2f5f7; --white:#fff; --line:#dce3e9; --muted:#687586; --yellow:#ffd84d; --green:#20cc8d; --red:#e64646; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard","Malgun Gothic",sans-serif; -webkit-font-smoothing:antialiased; }
button, input, select { font:inherit; }
button { cursor:pointer; }
.app-shell { min-height:100vh; max-width:720px; margin:0 auto; padding-bottom:28px; }
.board-header { color:#fff; background:linear-gradient(145deg,var(--navy),var(--navy2)); padding:6px 6px 25px; box-shadow:inset 0 -1px 0 rgba(255,255,255,.12); }
.brand-row { display:flex; justify-content:space-between; align-items:center; }
.brand { color:#fff; font-size:13px; letter-spacing:.12em; font-weight:800; text-decoration:none; display:inline-flex; align-items:center; gap:8px; }
.brand-mark { width:24px; height:24px; display:grid; place-items:center; border-radius:7px; background:var(--yellow); color:var(--navy); letter-spacing:0; }
.live-status { display:flex; align-items:center; gap:7px; font-size:12px; font-variant-numeric:tabular-nums; color:#dceafb; }
.live-status i { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(32,204,141,.16); }
.board-kicker { color:#90c8ff; font-size:12px; font-weight:700; letter-spacing:.08em; margin:27px 0 7px; }
h1 { font-size:30px; line-height:1.22; letter-spacing:-.06em; margin:0; }
.board-description { color:#c2d4e7; margin:11px 0 21px; font-size:14px; line-height:1.5; }
.search-board { scroll-margin-top:58px; padding:10px; border:1px solid rgba(255,255,255,.18); border-radius:15px; background:rgba(2,14,28,.23); }
.field-label { display:block; color:#d5e6f7; font-size:11px; font-weight:700; margin:0 0 6px; }
.search-mode-tabs { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; margin:0 0 14px; padding:4px; border-radius:10px; background:rgba(255,255,255,.1); }
.search-mode { height:36px; border:0; border-radius:7px; color:#c7dbee; background:transparent; font-size:13px; font-weight:800; }
.search-mode.active { color:#15324d; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.13); }
.search-mode-panel[hidden] { display:none; }
.route-search-row { position:relative; }.route-search-icon { position:absolute; z-index:1; top:10px; left:12px; color:#65809a; font-size:19px; line-height:20px; }
.route-input { width:100%; height:43px; padding:0 12px 0 38px; border:1px solid #b6c5d4; border-radius:9px; color:#182b40; background:#fff; outline:0; font-size:15px; font-weight:700; }.route-input:focus { border-color:#5ba8ff; box-shadow:0 0 0 3px rgba(91,168,255,.22); }
.route-search-results { max-height:300px; margin-top:10px; overflow:auto; border-radius:10px; background:#f7fbff; }.route-search-empty { min-height:64px; display:grid; place-content:center; gap:4px; padding:12px; color:#7890a7; text-align:center; font-size:12px; }.route-search-empty strong { color:#536e88; }
.route-city-group { border-bottom:1px solid #dce7f0; }.route-city-group:last-child { border-bottom:0; }.route-city-group h3 { display:flex; justify-content:space-between; align-items:center; margin:0; padding:10px 12px 6px; color:#315977; font-size:12px; }.route-city-group h3 small { color:#7e96aa; font-size:11px; font-weight:600; }
.route-result { display:grid; grid-template-columns:56px minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; padding:9px 12px; border:0; border-top:1px solid #e7eef4; color:#243c54; background:#fff; text-align:left; }.route-result:active { background:#edf7ff; }.route-result-no { padding:6px 3px; border-radius:6px; color:#fff; text-align:center; font-size:13px; font-weight:850; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.route-result-no.blue { background:#2365bf; }.route-result-no.green { background:#199768; }.route-result-no.red { background:#dd3f3f; }.route-result-no.purple { background:#7650af; }.route-result-no.orange { background:#d77920; }.route-result b { display:block; font-size:12px; }.route-result small { display:block; margin-top:3px; color:#73869a; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.route-result em { color:#2876b5; font-size:11px; font-style:normal; font-weight:800; white-space:nowrap; }
.region-label-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }.region-label-row .field-label { margin:0 0 6px; }.region-label-row .field-label span { margin-left:5px; color:#91c7f7; font-weight:600; }
.sort-cities-btn { border:0; padding:2px 0 6px; background:transparent; color:#a8cdf1; font-size:11px; font-weight:700; }
.other-cities-btn { flex:0 0 auto; border:1px solid rgba(193,220,244,.6); border-radius:6px; padding:5px 7px; background:rgba(255,255,255,.09); color:#d9ebfb; font-size:11px; font-weight:700; }
.city-trigger { width:100%; height:45px; display:flex; align-items:center; justify-content:space-between; border:1px solid #b6c5d4; border-radius:9px; padding:0 12px; color:#182b40; background:#fff; text-align:left; font-size:15px; }.city-trigger span:last-child { color:#72879e; font-size:18px; }
.city-panel { margin-top:8px; border:1px solid rgba(177,210,240,.65); border-radius:10px; padding:10px; background:#f9fcff; }.city-panel[hidden] { display:none; }
.region-search { width:100%; height:38px; padding:0 10px; color:#182b40; background:#fff; border:1px solid #d4e0eb; border-radius:7px; outline:none; font-size:13px; }.region-search:focus { border-color:#5ba8ff; }
.city-panel-title,.city-panel-heading { display:flex; align-items:center; justify-content:space-between; color:#5b738d; font-size:11px; font-weight:800; }.city-panel-title { margin:11px 1px 6px; }.city-panel-heading { margin:12px 1px 6px; }
.city-panel .region-label-row strong { color:#38536e; font-size:12px; }.city-panel .sort-cities-btn { color:#3177b9; }.popular-cities { display:flex; flex-wrap:wrap; gap:6px; }.city-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; max-height:185px; overflow-y:auto; padding-right:2px; }
.area-explorer { margin-top:10px; padding:10px; border:1px solid rgba(193,220,244,.62); border-radius:10px; background:rgba(2,15,29,.28); }.area-explorer[hidden] { display:none; }.area-explorer-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 1px 8px; }.area-explorer-heading strong { color:#e4f2ff; font-size:12px; }.area-explorer-heading button { border:0; padding:3px 0; color:#91caff; background:transparent; font-size:11px; font-weight:700; }.area-list { display:flex; flex-wrap:wrap; gap:6px; }.area-choice { border:1px solid rgba(206,227,246,.35); border-radius:6px; padding:7px 8px; color:#e7f3ff; background:rgba(255,255,255,.09); font-size:12px; font-weight:650; }.area-choice:hover,.area-choice:focus { border-color:#90c8fa; background:rgba(75,158,230,.28); }.area-empty { margin:3px 0; color:#b5cee6; font-size:12px; }
.city-choice { min-width:0; border:1px solid #d5e0ea; border-radius:6px; padding:8px 7px; background:#fff; color:#2b4056; text-align:left; font-size:12px; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.city-choice:hover,.city-choice:focus { border-color:#5b9fe4; background:#eef7ff; }.city-choice.selected { color:#fff; border-color:#1972bd; background:#1972bd; }.popular-city { background:#e8f3ff; border-color:#8abce9; color:#175887; }.city-choice.unavailable { color:#738397; background:#f4f6f8; border-color:#d7dde4; }.city-choice.unavailable.selected { color:#738397; background:#f4f6f8; border-color:#d7dde4; }.city-choice small { margin-left:4px; color:#9a6170; font-size:9px; font-weight:600; }.no-city { grid-column:1/-1; padding:12px; text-align:center; color:#8ca0b3; font-size:12px; }
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.city-select,.search-input { width:100%; height:45px; border:1px solid #b6c5d4; border-radius:9px; background:#fff; color:#182b40; padding:0 12px; outline:none; font-size:15px; }
.city-select:focus,.search-input:focus { border-color:#5ba8ff; box-shadow:0 0 0 3px rgba(91,168,255,.22); }
.search-row { display:flex; gap:8px; margin-top:8px; }
.search-btn { border:0; min-width:58px; padding:0 10px; border-radius:9px; color:#132238; background:var(--yellow); font-weight:800; }.map-search-btn { border:1px solid #8dbce9; min-width:48px; padding:0 9px; border-radius:9px; color:#fff; background:#226da9; font-size:12px; font-weight:800; }
.search-help { min-height:16px; margin:8px 1px 0; color:#a9c3dd; font-size:11px; }
.section { margin:19px 16px 0; }
.section-heading { display:flex; align-items:center; gap:7px; margin-bottom:9px; color:#26394e; }
.section-heading span { color:#e5a500; font-size:16px; }.section-heading h2 { font-size:15px; margin:0; letter-spacing:-.03em; }
.station-list { display:grid; gap:8px; }
.station-card { border:1px solid var(--line); border-radius:12px; width:100%; display:flex; align-items:center; justify-content:space-between; padding:13px 13px 13px 15px; text-align:left; color:var(--ink); background:var(--white); box-shadow:0 1px 2px rgba(12,36,60,.03); }
.station-card:active { transform:scale(.995); background:#f7fbff; }.station-card-main { min-width:0; display:grid; gap:3px; }.station-card-main strong { font-size:15px; }.station-card-main small { color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.station-card-side { display:flex; align-items:center; gap:10px; }.star { color:#b4c0cc; font-size:18px; }.star.active { color:#f4b000; }.chevron { color:#8794a2; font-size:26px; line-height:18px; }
.empty-state,.loading { padding:30px 18px; display:grid; text-align:center; gap:6px; border-radius:12px; color:var(--muted); font-size:13px; background:rgba(255,255,255,.65); border:1px dashed #ced8e1; }.empty-state strong { color:#435366; font-size:14px; }.loading.error { color:#be3636; }
.arrivals-panel { margin:16px 16px 0; }.stop-board { overflow:hidden; border-radius:15px; color:#e7f2ff; background:#061a30; box-shadow:0 10px 24px rgba(8,35,60,.18); }.stop-board-top { display:flex; justify-content:space-between; gap:8px; padding:19px 18px 15px; }.board-label { color:#89b8e5; margin:0 0 6px; font-size:11px; font-weight:700; }.stop-board h2 { margin:0; color:#fff; font-size:23px; letter-spacing:-.05em; }.stop-number { margin:5px 0 0; color:#a8c3df; font-size:12px; }.board-actions { display:flex; gap:5px; }.favorite-btn,.close-btn { border:0; width:34px; height:34px; border-radius:9px; background:rgba(255,255,255,.1); color:#cfe2f6; font-size:19px; }.favorite-btn.active { color:var(--yellow); }.close-btn { font-size:23px; }.board-rule { height:3px; background:var(--yellow); }.board-caption { display:flex; justify-content:space-between; padding:12px 18px; font-size:11px; color:#a7c7e7; }.board-caption span:first-child { color:#fff; font-weight:800; letter-spacing:.03em; }.arrival-rows { background:#fff; }.arrival-row { display:flex; align-items:center; gap:11px; min-height:78px; padding:11px 13px; border-bottom:1px solid #e5ebf1; color:#1d2e40; }.arrival-row:last-child { border-bottom:0; }.route-pill { min-width:55px; max-width:74px; border-radius:7px; padding:7px 5px; color:#fff; text-align:center; font-size:14px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.route-pill.blue { background:#2365bf; }.route-pill.green { background:#199768; }.route-pill.red { background:#dd3f3f; }.route-pill.purple { background:#7650af; }.route-pill.orange { background:#d77920; }.arrival-main { flex:1; min-width:0; }.route-topline { display:flex; align-items:center; gap:7px; }.route-topline strong { font-size:15px; }.route-topline span { color:#708094; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.arrival-detail { margin-top:6px; color:#728195; font-size:12px; }.arrival-detail em { font-style:normal; margin-left:5px; color:#15825f; padding:2px 4px; border-radius:3px; background:#e7f8f1; font-size:10px; }.arrival-time { display:grid; justify-items:end; gap:5px; }.arrival-time strong { color:#e23d31; font-size:16px; letter-spacing:-.05em; white-space:nowrap; }.vehicle-btn { padding:3px 5px; color:#4b6986; border:1px solid #d6e0e8; border-radius:4px; background:#f8fafc; font-size:10px; }.arrival-rows .loading { margin:0; border:0; border-radius:0; background:#fff; }.vehicle-notice { margin-top:8px; padding:10px 12px; color:#315370; border:1px solid #cfe1ef; border-radius:9px; background:#eaf5ff; font-size:12px; }.app-footer { margin:30px 22px 0; color:#8390a0; font-size:11px; text-align:center; line-height:1.55; }
@media (min-width:721px) { .app-shell { box-shadow:0 0 42px rgba(17,44,71,.1); background:var(--paper); }.board-header { border-radius:0 0 18px 18px; }.section,.arrivals-panel { margin-left:22px; margin-right:22px; } }
.arrival-time { gap:3px; }
.arrival-time small { color:#758398; font-size:10px; white-space:nowrap; }
.vehicle-btn { margin-top:2px; }
.city-dropdown { position:relative; }.city-dropdown-trigger { width:100%; height:45px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; border:1px solid #b6c5d4; border-radius:9px; color:#182b40; background:#fff; text-align:left; font-size:15px; }.city-dropdown-trigger span:last-child { color:#72879e; font-size:18px; }.quick-city-menu { position:absolute; z-index:30; top:51px; right:0; left:0; padding:10px; border:1px solid #b8d3ea; border-radius:10px; background:#f9fcff; box-shadow:0 12px 24px rgba(0,20,43,.26); }.quick-city-menu[hidden] { display:none; }.quick-city-menu .popular-cities { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }.quick-city-menu .city-choice { text-align:center; }.all-cities-btn { display:flex; align-items:center; justify-content:space-between; width:100%; margin-top:10px; padding:10px 3px 2px; border:0; border-top:1px solid #dbe6ef; color:#166caf; background:transparent; font-size:13px; font-weight:800; }.all-cities-btn span { font-size:20px; line-height:11px; }
.city-panel { position:fixed; z-index:1200; inset:0; overflow-y:auto; margin:0; padding:20px; border:0; border-radius:0; background:#f5f8fb; color:#253a50; }.city-panel[hidden] { display:none; }.city-panel .region-label-row { max-width:700px; margin:20px auto 8px; }.city-panel .region-search,.city-panel .city-list,.city-panel .city-panel-heading { max-width:700px; margin-right:auto; margin-left:auto; }.city-panel .city-list { max-height:none; padding-bottom:30px; }.city-modal-header { display:flex; align-items:flex-start; justify-content:space-between; max-width:700px; margin:0 auto; padding:4px 0 16px; border-bottom:1px solid #d9e2ea; }.city-modal-header strong { display:block; color:#172d45; font-size:21px; }.city-modal-header span { display:block; margin-top:5px; color:#718398; font-size:12px; }.city-modal-header button { width:36px; height:36px; border:0; border-radius:9px; color:#48647e; background:#e7eef4; font-size:25px; }
.map-finder { position:fixed; z-index:1000; inset:0; display:grid; align-items:end; background:rgba(5,20,37,.58); }.map-finder[hidden] { display:none; }.map-finder-card { width:100%; max-width:720px; margin:0 auto; overflow:hidden; border-radius:18px 18px 0 0; background:#fff; box-shadow:0 -10px 30px rgba(0,0,0,.24); }.map-finder-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:16px 18px 13px; }.map-finder-header strong { display:block; color:#172c43; font-size:17px; }.map-finder-header span { display:block; margin-top:4px; color:#6e7e90; font-size:12px; }.map-finder-header button { width:32px; height:32px; border:0; border-radius:8px; color:#4d6277; background:#edf3f8; font-size:23px; }.station-map { height:min(58vh,520px); min-height:330px; background:#e6edf2; }.map-finder-status { min-height:48px; padding:14px 18px; color:#46627c; background:#f5f9fc; font-size:12px; }.leaflet-tooltip { border:0; border-radius:5px; padding:4px 6px; color:#fff; background:#173a5c; font-family:inherit; font-size:11px; font-weight:700; box-shadow:none; }.leaflet-tooltip-top:before { border-top-color:#173a5c; }
.route-diagram { position:fixed; z-index:1100; inset:0; display:grid; align-items:end; background:rgba(4,18,32,.64); }.route-diagram[hidden] { display:none; }.route-diagram-card { width:100%; max-width:720px; max-height:88vh; margin:0 auto; overflow:hidden; border-radius:18px 18px 0 0; background:#f6f9fc; box-shadow:0 -10px 30px rgba(0,0,0,.26); }.route-diagram-header { display:flex; justify-content:space-between; align-items:center; padding:15px 18px; color:#fff; background:#102d4a; }.route-diagram-header span { display:block; color:#a9cfee; font-size:11px; }.route-diagram-header strong { display:block; margin-top:2px; font-size:20px; }.route-diagram-header button { width:32px; height:32px; border:0; border-radius:8px; color:#e1f0ff; background:rgba(255,255,255,.12); font-size:23px; }.route-diagram-body { max-height:calc(88vh - 77px); overflow-y:auto; }.diagram-loading { padding:44px 18px; color:#6d8194; text-align:center; font-size:13px; }.diagram-loading.error { color:#bd3c3c; }.diagram-summary { display:flex; gap:8px; padding:12px 18px; color:#4f6880; border-bottom:1px solid #dce5ec; background:#fff; font-size:12px; }.diagram-summary span + span:before { content:'·'; margin-right:8px; color:#9aabba; }.diagram-line { padding:8px 18px 22px; background:#fff; }.diagram-stop { position:relative; display:grid; grid-template-columns:38px 1fr; min-height:43px; }.diagram-stop:after { content:''; position:absolute; top:25px; bottom:-4px; left:18px; width:3px; background:#3e82c4; }.diagram-stop:last-child:after { display:none; }.diagram-node { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:center; padding-top:9px; }.diagram-node i { width:14px; height:14px; border:3px solid #3e82c4; border-radius:50%; background:#fff; }.diagram-node b { min-width:28px; padding:3px 4px; transform:translateY(-3px); border-radius:9px; color:#fff; background:#e4493c; font-size:10px; text-align:center; white-space:nowrap; }.diagram-stop-name { padding:8px 0 9px; color:#243c54; font-size:14px; font-weight:650; }.diagram-stop-name small { display:block; margin-top:2px; color:#1f75bb; font-size:10px; }.diagram-stop.current .diagram-node i { width:18px; height:18px; border-color:#f4a900; box-shadow:0 0 0 4px rgba(244,169,0,.14); }.diagram-stop.current .diagram-stop-name { color:#0f66ac; font-weight:800; }
.live-vehicles { padding:12px 18px; border-bottom:1px solid #dce5ec; background:#edf7ff; }.live-vehicles > strong { display:block; margin-bottom:7px; color:#26536f; font-size:12px; }.live-vehicle { display:flex; align-items:center; justify-content:space-between; gap:9px; padding:7px 0; border-top:1px solid rgba(106,153,187,.22); color:#51708a; font-size:11px; }.live-vehicle b { color:#1b5d91; font-size:12px; }.live-vehicle span { text-align:right; }.no-live-vehicle { padding:12px 18px; color:#778b9d; border-bottom:1px solid #dce5ec; background:#f8fbfd; font-size:12px; }

.station-search-results .station-card { border-radius:0; }
.near-map-wrap { position:relative; margin-top:10px; overflow:hidden; border-radius:10px; }.near-map-wrap[hidden] { display:none; }.near-map { height:240px; background:#e8eef4; }.near-locate-btn { position:absolute; z-index:500; right:8px; bottom:8px; height:32px; padding:0 12px; border:0; border-radius:16px; color:#15324d; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.25); font-size:12px; font-weight:800; }
.board-header > .clock-row,.board-header > .board-kicker,.board-header > h1,.board-header > .board-description { padding-left:14px; padding-right:14px; }
body { padding-top:52px; }
.top-bar { position:fixed; z-index:1200; top:0; left:0; right:0; height:52px; color:#fff; background:var(--navy); box-shadow:0 1px 0 rgba(255,255,255,.12),0 2px 10px rgba(0,0,0,.25); }
.top-bar-inner { position:relative; display:flex; align-items:center; justify-content:space-between; max-width:720px; height:100%; margin:0 auto; padding:0 8px 0 14px; }
.top-actions { display:flex; gap:2px; }.top-icon-btn { width:42px; height:42px; display:grid; place-items:center; border:0; border-radius:10px; color:#fff; background:transparent; }.top-icon-btn:active { background:rgba(255,255,255,.14); }
.top-search-form { position:absolute; top:7px; bottom:7px; left:8px; right:100px; margin:0; }.top-search-form[hidden] { display:none; }
.top-search-form input { width:100%; height:100%; padding:0 14px; border:1px solid #5ba8ff; border-radius:20px; color:#182b40; background:#fff; outline:0; font-size:15px; font-weight:700; }
.clock-row { display:flex; justify-content:flex-end; padding-top:4px; padding-bottom:4px; }
.side-backdrop { position:fixed; z-index:1300; inset:0; background:rgba(5,20,37,.55); }.side-backdrop[hidden] { display:none; }
.side-menu { position:fixed; z-index:1400; top:0; right:0; bottom:0; width:min(300px,82vw); display:flex; flex-direction:column; padding:0 0 20px; color:#fff; background:var(--navy2); box-shadow:-6px 0 24px rgba(0,0,0,.35); }.side-menu[hidden] { display:none; }
.side-menu-head { display:flex; align-items:center; justify-content:space-between; height:52px; padding:0 8px 0 18px; border-bottom:1px solid rgba(255,255,255,.14); }.side-menu-head button { width:42px; height:42px; border:0; color:#fff; background:transparent; font-size:26px; }
.side-menu > button[data-menu] { padding:16px 18px; border:0; border-bottom:1px solid rgba(255,255,255,.08); color:#fff; background:transparent; text-align:left; font-size:15px; font-weight:700; }.side-menu > button[data-menu]:active { background:rgba(255,255,255,.1); }
.bus-pin { width:28px; height:28px; display:grid; place-items:center; border:2px solid #fff; border-radius:8px; background:#3d8bff; box-shadow:0 2px 6px rgba(0,0,0,.35); }
.me-dot { width:22px; height:22px; border:3px solid #fff; border-radius:50%; background:#1b6cff; box-shadow:0 0 0 9px rgba(27,108,255,.2),0 1px 4px rgba(0,0,0,.4); }

/* 정거장 탭: 전체 화면 지도 */
body.map-open { overflow:hidden; }
.map-screen { position:fixed; z-index:1000; top:52px; left:0; right:0; bottom:0; background:#dfe6ec; }.map-screen[hidden] { display:none; }
.map-screen .near-map-wrap { position:absolute; inset:0; margin:0; border-radius:0; }.map-screen .near-map { height:100%; }
.map-pill { position:absolute; z-index:20; top:10px; left:10px; right:10px; max-width:700px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr 1fr; gap:4px; padding:4px; border-radius:14px; background:rgba(255,255,255,.96); box-shadow:0 3px 12px rgba(0,0,0,.25); }
.map-pill button { height:38px; border:0; border-radius:10px; color:#4a5d72; background:transparent; font-size:14px; font-weight:800; }.map-pill button.active { color:#fff; background:#1b6cff; }
.map-toast { position:absolute; z-index:20; left:50%; bottom:max(18px,env(safe-area-inset-bottom)); transform:translateX(-50%); max-width:calc(100% - 150px); margin:0; padding:9px 14px; border-radius:18px; color:#fff; background:rgba(8,24,44,.88); font-size:12px; font-weight:700; text-align:center; }
.map-screen .near-locate-btn { z-index:20; right:12px; bottom:max(14px,env(safe-area-inset-bottom)); height:40px; padding:0 14px; font-size:13px; }
/* 전광판 */
.led-screen { position:fixed; z-index:1100; inset:0; display:flex; flex-direction:column; padding:62px 8px max(12px,env(safe-area-inset-bottom)); background:linear-gradient(180deg,#1b2733,#0b1119 70%); overflow:auto; }.led-screen[hidden] { display:none; }
.led-top { display:flex; align-items:center; gap:4px; padding:4px 6px 10px; color:#fff; }.led-station { flex:1; min-width:0; }.led-station b { display:block; font-size:19px; letter-spacing:-.02em; }.led-station small { color:#9db2c8; font-size:12px; }
.led-top button { width:42px; height:42px; border:0; border-radius:10px; color:#fff; background:rgba(255,255,255,.1); font-size:24px; }.led-top button.active { color:var(--yellow); }
.led-sign { position:relative; padding:14px 12px 12px; border-radius:10px; background:#050607; border:6px solid #2a3139; box-shadow:0 0 0 2px #0d1115,0 14px 30px rgba(0,0,0,.6),inset 0 0 22px rgba(0,0,0,.9); overflow:hidden; }
.led-sign::after { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle,transparent 58%,rgba(0,0,0,.5) 78%) 0 0/3px 3px; }
.led-head,.led-row { display:grid; grid-template-columns:1.1fr 1fr 1.25fr; align-items:center; column-gap:6px; }
.led-head { padding-bottom:8px; margin-bottom:6px; border-bottom:2px solid #1d2630; color:#cfd6df; font-size:13px; font-weight:800; letter-spacing:.14em; text-align:center; text-shadow:0 0 6px rgba(255,255,255,.45); }
.led-rows { min-height:306px; }
.led-row { height:51px; font-weight:900; letter-spacing:-.01em; }
.led-no { display:flex; align-items:center; justify-content:center; gap:5px; font-size:30px; text-shadow:0 0 9px currentColor,0 0 2px currentColor; white-space:nowrap; }.led-wc { font-style:normal; color:#4ee27f; font-size:20px; text-shadow:0 0 7px #4ee27f; }
.led-time { text-align:center; font-size:27px; color:#4ee27f; text-shadow:0 0 9px #4ee27f; }.led-time.near { color:#ffd84d; text-shadow:0 0 9px #ffd84d; }.led-time.soon { color:#ff5d4f; text-shadow:0 0 9px #ff5d4f; animation:ledBlink 1s steps(2,jump-none) infinite; }.led-time.dim { color:#6d7a88; text-shadow:none; font-size:18px; }
.led-pos { text-align:center; font-size:21px; color:#ffb347; text-shadow:0 0 8px #ffb347; white-space:nowrap; }
.led-empty { padding:70px 10px; color:#ffd84d; text-align:center; font-size:17px; font-weight:800; text-shadow:0 0 8px #ffd84d; }
.led-soon { margin-top:8px; padding:9px 10px; border:2px dotted #e8d44a; border-radius:3px; color:#ffe55a; text-align:center; font-size:21px; font-weight:900; text-shadow:0 0 8px #ffe55a; }.led-soon b { color:#5be3ff; text-shadow:0 0 8px #5be3ff; letter-spacing:.02em; }.led-soon b.dim { color:#6d7a88; text-shadow:none; }
.led-meta { display:flex; justify-content:space-between; padding:10px 6px 0; color:#8da2b8; font-size:12px; }
@keyframes ledBlink { 50% { opacity:.25; } }
.led-screen > * { width:100%; max-width:560px; margin-left:auto; margin-right:auto; }
.bus-marker { position:relative; width:28px; height:44px; }.bus-marker .bus-pin { position:absolute; top:0; left:0; }
.bus-marker .bus-pin::after { content:""; position:absolute; left:50%; bottom:-7px; margin-left:-6px; border:6px solid transparent; border-top-color:#3d8bff; border-bottom:0; }
.bus-pin-dot { position:absolute; left:50%; top:34px; width:10px; height:10px; margin-left:-5px; border:2px solid #fff; border-radius:50%; background:#e5484d; box-shadow:0 1px 4px rgba(0,0,0,.5); }
.led-top button.spin { animation:ledSpin .8s linear infinite; }
@keyframes ledSpin { to { transform:rotate(360deg); } }
.led-row { cursor:pointer; }.led-row:active .led-no { opacity:.6; }
/* 노선도: 전체 화면 */
.route-diagram { z-index:1500; align-items:stretch; background:#f6f9fc; }
.route-diagram-card { max-width:none; max-height:none; height:100%; display:flex; flex-direction:column; border-radius:0; box-shadow:none; }
.route-diagram-header { flex:none; padding-top:max(15px,env(safe-area-inset-top)); }
.route-diagram-body { flex:1; max-height:none; min-height:0; }
.route-diagram-card > * { width:100%; max-width:720px; margin-left:auto; margin-right:auto; }
.route-diagram-header { max-width:none; }
.route-diagram { overflow:hidden; }

/* 노선도: 실시간 버스 아이콘 + 진행 방향(아래쪽) 애니메이션 */
.diagram-node .bus-run { position:absolute; top:-2px; left:50%; width:26px; margin-left:-13px; z-index:3; filter:drop-shadow(0 2px 3px rgba(0,0,0,.35)); animation:busDrive 2.2s linear infinite; }
.diagram-node .bus-run svg { display:block; }
.diagram-node .bus-run em { position:absolute; top:-6px; right:-10px; min-width:16px; padding:1px 4px; border-radius:8px; color:#fff; background:#26313c; font-style:normal; font-size:10px; font-weight:800; text-align:center; }
.diagram-node .bus-run::after { content:""; position:absolute; left:50%; bottom:-11px; margin-left:-5px; border:5px solid transparent; border-top:7px solid currentColor; border-bottom:0; opacity:.75; animation:busArrow 1.2s ease-in-out infinite; }
@keyframes busDrive { 0% { transform:translateY(-6px); opacity:0; } 18% { opacity:1; } 82% { opacity:1; } 100% { transform:translateY(16px); opacity:0; } }
@keyframes busArrow { 0%,100% { transform:translateY(0); opacity:.2; } 50% { transform:translateY(4px); opacity:.85; } }
.diagram-stop:after { background:repeating-linear-gradient(180deg,#3e82c4 0 8px,#8db9e2 8px 12px); background-size:100% 12px; animation:lineFlow 1.1s linear infinite; }
@keyframes lineFlow { to { background-position:0 12px; } }
@media (prefers-reduced-motion:reduce) { .diagram-node .bus-run,.diagram-node .bus-run::after,.diagram-stop:after { animation:none; } }

/* 노선도: 회차 지점 */
.diagram-stop.turn { margin:6px -18px; padding:6px 18px; min-height:56px; border-top:2px dashed #ffb25e; border-bottom:2px dashed #ffb25e; background:linear-gradient(90deg,#fff3e4,#fffaf4); }
.diagram-stop.turn:after { top:42px; left:36px; }
.diagram-stop.turn .diagram-node { padding-top:4px; }
.diagram-stop.turn .diagram-stop-name { padding-top:6px; color:#a24c00; font-weight:800; }
.uturn-ico { display:block; filter:drop-shadow(0 2px 4px rgba(255,138,31,.55)); animation:uturnPulse 2.4s ease-in-out infinite; }.uturn-ico svg { display:block; }
@keyframes uturnPulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.12); } }
.stop-tag { display:inline-block; margin-left:7px; padding:1px 7px; border-radius:9px; color:#fff; background:#6b7f93; font-style:normal; font-size:10px; font-weight:800; vertical-align:2px; }.stop-tag.turn { background:#ff8a1f; }
.diagram-stop-name small.turn-note { color:#c76a10; font-weight:700; }
@media (prefers-reduced-motion:reduce) { .uturn-ico { animation:none; } }
.stop-tag.turn svg { display:inline-block; vertical-align:-1px; }
.map-research-btn { position:absolute; z-index:25; top:64px; left:50%; transform:translateX(-50%); height:40px; padding:0 18px; border:0; border-radius:20px; color:#fff; background:#1b6cff; box-shadow:0 4px 14px rgba(27,108,255,.5); font-size:14px; font-weight:800; white-space:nowrap; animation:researchIn .25s ease-out; }.map-research-btn[hidden] { display:none; }.map-research-btn:active { background:#1458d1; }
@keyframes researchIn { from { opacity:0; transform:translate(-50%,-8px); } to { opacity:1; transform:translate(-50%,0); } }
.map-research-btn { overflow:hidden; }
.map-research-btn.counting::after { content:""; position:absolute; left:0; bottom:0; height:4px; width:100%; background:rgba(255,255,255,.75); transform-origin:left; animation:researchCount 1s linear forwards; }
@keyframes researchCount { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.led-time { flex-direction:column; justify-content:center; line-height:1.02; display:flex; align-items:center; }
.led-time small { margin-top:2px; font-size:13px; font-weight:800; color:#8fe9ae; text-shadow:none; opacity:.8; animation:none; }
.led-soon i.cg { font-style:normal; font-size:15px; margin-left:1px; }.led-soon i.cg-여유 { color:#5be3ff; }.led-soon i.cg-보통 { color:#ffe55a; }.led-soon i.cg-혼잡 { color:#ff6a5c; }
.led-wc { padding:1px 4px; border:1px solid #4ee27f; border-radius:3px; font-size:11px !important; line-height:1.1; letter-spacing:0; }
.led-t1 { display:inline-flex; align-items:center; justify-content:center; gap:5px; white-space:nowrap; }
.led-cg { font-style:normal; font-size:14px; font-weight:900; letter-spacing:-.02em; text-shadow:0 0 6px currentColor; }
.led-cg.cg-여유 { color:#4ee27f; }.led-cg.cg-보통 { color:#ffe55a; }.led-cg.cg-혼잡 { color:#ff6a5c; }
.led-time small .led-cg { font-size:11px; margin-right:3px; }
.led-pos { display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1.05; }
.led-pos small { margin-top:2px; font-size:12px; font-weight:800; color:#9fdcff; text-shadow:none; opacity:.85; }.led-pos small.seat { color:#5be3ff; }

/* 노선도: 버스 좌측 좌석·혼잡도 */
.diagram-line { padding-left:66px; }
.diagram-stop.turn { margin-left:-66px; padding-left:66px; }
.diagram-stop.turn:after { left:84px; }
.bus-info { position:absolute; top:50%; right:calc(100% + 4px); transform:translateY(-50%); display:flex; flex-direction:column; align-items:flex-end; gap:2px; white-space:nowrap; pointer-events:none; }
.bus-info b { padding:1px 6px; border-radius:8px; color:#fff; background:#26313c; font-size:10px; font-weight:800; line-height:1.35; box-shadow:0 1px 3px rgba(0,0,0,.25); }
.bus-info b.seat { background:#1b6cff; }.bus-info b.cg-여유 { background:#1fae63; }.bus-info b.cg-보통 { background:#e0a100; }.bus-info b.cg-혼잡,.bus-info b.cg-매우혼잡 { background:#e5484d; }
.led-cg.cg-매우혼잡 { color:#ff6a5c; }
/* 전광판 가독성: 굵기·번짐을 줄여 글자가 또렷하게 */
.led-sign::after { background:radial-gradient(circle,transparent 62%,rgba(0,0,0,.3) 82%) 0 0/3px 3px; }
.led-head { font-weight:700; text-shadow:0 0 3px rgba(255,255,255,.35); }
.led-row { font-weight:700; letter-spacing:.01em; }
.led-no { font-weight:700; text-shadow:0 0 4px currentColor; }
.led-time { font-weight:700; text-shadow:0 0 4px currentColor; }
.led-time.near { text-shadow:0 0 4px #ffd84d; }.led-time.soon { text-shadow:0 0 4px #ff5d4f; }
.led-pos { font-weight:700; text-shadow:0 0 4px #ffb347; }
.led-time small,.led-pos small { font-weight:700; }
.led-cg { font-weight:700; text-shadow:0 0 3px currentColor; }
.led-wc { font-weight:700; text-shadow:none; }
.led-soon { font-weight:700; text-shadow:0 0 4px #ffe55a; }.led-soon b { font-weight:700; text-shadow:0 0 4px #5be3ff; }
.led-empty { font-weight:700; text-shadow:0 0 4px #ffd84d; }

/* 전광판: 폰 화면 가로폭 확대 · 정렬 · 글자 크기 · 전체 보기 · 길게 누르기 메뉴 */
.led-screen { padding-left:3px; padding-right:3px; }
.led-screen > * { max-width:760px; }
.led-top { padding-left:8px; padding-right:4px; }
.led-sign { padding:12px 8px 10px; border-width:4px; }
.led-head,.led-row { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto; column-gap:8px; }
.led-head { text-align:left; letter-spacing:.08em; }
.led-head span:nth-child(3) { text-align:right; }
.led-head,.led-rows,.led-soon { zoom:var(--led-scale,1); }
.led-no { justify-content:flex-start; }
.led-time { align-items:flex-start; }.led-t1 { justify-content:flex-start; }
.led-pos { align-items:flex-end; text-align:right; }
.led-time small { text-align:left; }
.led-mk { font-style:normal; font-size:11px; line-height:1.1; padding:1px 4px; border-radius:3px; letter-spacing:0; text-shadow:none; }
.led-mk.fav { color:#ffd84d; font-size:15px; padding:0; }.led-mk.pin { color:#0b1119; background:#ffd84d; font-weight:800; }
.led-row.marked { background:linear-gradient(90deg,rgba(255,216,77,.12),transparent 70%); }
.led-tools { display:flex; align-items:center; gap:8px; margin-top:10px; padding:0 2px; }
.led-tools button { height:40px; min-width:44px; padding:0 12px; border:1px solid rgba(255,255,255,.18); border-radius:10px; color:#fff; background:rgba(255,255,255,.1); font-size:14px; font-weight:700; }
.led-tools button b { font-size:16px; }.led-tools button i { font-style:normal; margin-left:2px; color:#ffd84d; font-weight:800; }
.led-tools #ledExpand { margin-left:auto; padding:0 16px; }.led-tools #ledExpand.on { color:#0b1119; background:#ffd84d; border-color:#ffd84d; }
.led-menu { position:fixed; z-index:1700; inset:0; display:flex; align-items:flex-end; justify-content:center; background:rgba(2,10,20,.6); }.led-menu[hidden] { display:none; }
.led-menu-card { width:100%; max-width:480px; padding:16px 14px max(16px,env(safe-area-inset-bottom)); border-radius:18px 18px 0 0; background:#fff; }
.led-menu-card strong { display:block; padding:2px 6px 12px; color:#142236; font-size:18px; }
.led-menu-card button { display:block; width:100%; margin-top:8px; padding:15px; border:0; border-radius:12px; color:#142236; background:#eef3f8; font-size:16px; font-weight:700; text-align:left; }
.led-menu-card button[data-act="cancel"] { color:#687586; background:#fff; border:1px solid #dce3e9; text-align:center; }
/* 전체 보기: 패널이 줄어들며 내용이 잘리지 않게 하고, 화면 전체를 스크롤한다 */
.led-screen { overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
.led-screen > * { flex:none; }
.led-sign { overflow:visible; }
.led-sign::after { border-radius:4px; }
.led-rows { min-height:0; }
.led-tools #ledFontReset { padding:0 12px; font-size:13px; }.led-tools #ledFontReset:disabled { opacity:.4; cursor:default; }

/* 전광판 도구줄: 좌·멈춤·우·새로고침 */
.led-tools { flex-wrap:wrap; justify-content:space-between; row-gap:8px; }
.led-tg { display:flex; align-items:center; gap:8px; }
.led-nav { margin-left:auto; }
.led-tools #ledExpand { margin-left:0; }
.led-nav button { min-width:42px; padding:0 10px; }
.led-nav #ledPause { min-width:84px; }.led-nav #ledPause.on { color:#0b1119; background:#ff8a1f; border-color:#ff8a1f; }
.led-nav button:disabled { opacity:.35; }
.led-nav #ledRefresh2.spin { animation:ledSpin .8s linear infinite; }
/* 현재통과위치: 오른쪽 안쪽 여백 */
.led-pos, .led-head span:nth-child(3) { padding-right:10px; }
.led-nav #ledRefresh2 { font-size:24px; line-height:1; padding:0 10px; }

.diagram-stop.mine { background:linear-gradient(90deg,rgba(27,108,255,.12),transparent 75%); }
.diagram-stop.mine .diagram-stop-name { color:#1259d6; font-weight:800; }
.stop-tag.me { background:#1b6cff; }
.bus-info b.none { color:#6b7f93; background:#e6edf3; box-shadow:none; font-weight:700; }

/* 전광판: 세 칸이 글자 길이에 맞춰 탄력적으로 늘고 줄어든다(헤더와 모든 행이 하나의 격자를 공유) */
.led-grid { display:grid; grid-template-columns:minmax(min-content,1.25fr) minmax(min-content,1fr) minmax(min-content,.9fr); column-gap:8px; align-items:stretch; zoom:calc(var(--led-scale,1) * var(--led-fit,1)); }
.led-head,.led-rows,.led-row { display:contents; zoom:1; }
.led-head span { padding-bottom:8px; margin-bottom:6px; border-bottom:2px solid #1d2630; color:#cfd6df; font-size:13px; font-weight:700; letter-spacing:.08em; text-align:left; text-shadow:0 0 3px rgba(255,255,255,.35); white-space:nowrap; }
.led-head span:nth-child(3) { text-align:right; padding-right:10px; }
.led-row > span { min-height:51px; display:flex; align-items:center; white-space:nowrap; }
.led-row > .led-no { justify-content:flex-start; }
.led-row > .led-time { flex-direction:column; align-items:flex-start; justify-content:center; }
.led-row > .led-pos { flex-direction:column; align-items:flex-end; justify-content:center; padding-right:10px; }
.led-row.marked > span { background:rgba(255,216,77,.10); }
.led-row.marked > span:first-child { border-radius:4px 0 0 4px; }.led-row.marked > span:last-child { border-radius:0 4px 4px 0; }
.led-grid .led-empty { grid-column:1 / -1; white-space:normal; }
.led-soon { zoom:var(--led-scale,1); }
.led-rows { min-height:0; }

/* 장애인(휠체어) 아이콘: 전광판 초록색 */
.led-wc { display:inline-flex; align-items:center; justify-content:center; padding:0 !important; border:0 !important; width:.82em; height:.82em; font-size:inherit !important; color:#3dff7a; filter:drop-shadow(0 0 4px rgba(61,255,122,.75)); }
.led-wc svg { width:100%; height:100%; display:block; }
.led-wc { width:.98em; height:.98em; }

/* 노선도 헤더: 지도·즐겨찾기 */
.rd-actions { display:flex; align-items:center; gap:8px; }
.rd-actions button { display:grid; place-items:center; }
#routeFavBtn { font-size:20px; }#routeFavBtn.active { color:#ffd84d; }
#routeMapBtn.on { color:#102d4a; background:#ffd84d; }
.route-diagram-body[hidden] { display:none; }
.route-map-view { flex:1; min-height:0; position:relative; background:#e8eef4; }.route-map-view[hidden] { display:none; }
.route-map { position:absolute; inset:0; }
.route-map-note { position:absolute; z-index:5; left:50%; bottom:max(14px,env(safe-area-inset-bottom)); transform:translateX(-50%); margin:0; padding:8px 14px; border-radius:18px; color:#fff; background:rgba(8,24,44,.88); font-size:12px; font-weight:700; white-space:nowrap; }
.rm-stop { width:8px; height:8px; border:2px solid #3e82c4; border-radius:50%; background:#fff; }
.rm-label { padding:3px 8px; border-radius:10px; color:#fff; font-size:11px; font-weight:800; white-space:nowrap; box-shadow:0 2px 6px rgba(0,0,0,.35); }.rm-label.start { background:#1b6cff; }.rm-label.end { background:#e5484d; }
.rm-turn { display:flex; align-items:center; gap:3px; }.rm-turn b { padding:2px 6px; border-radius:9px; color:#fff; background:#ff8a1f; font-size:10px; box-shadow:0 2px 6px rgba(0,0,0,.35); }
.rm-bus { filter:drop-shadow(0 2px 3px rgba(0,0,0,.45)); animation:busArrow 1.6s ease-in-out infinite; }.rm-bus svg { display:block; }
.rm-divicon { background:none; border:0; }
/* 메인 즐겨찾기: 노선 */
.fav-routes:empty { display:none; }
.fav-sub { margin:14px 2px 6px; color:#4f6880; font-size:13px; font-weight:800; }
.route-fav-card { display:flex; align-items:center; gap:12px; width:100%; margin-top:8px; padding:12px 14px; border:1px solid #dce3e9; border-radius:14px; color:#142236; background:#fff; text-align:left; }
.route-fav-no { min-width:54px; padding:8px 8px; border-radius:10px; color:#fff; text-align:center; font-size:15px; font-weight:800; white-space:nowrap; }
.route-fav-no.blue { background:#2f7de1; }.route-fav-no.green { background:#2fae5a; }.route-fav-no.red { background:#e5484d; }.route-fav-no.orange { background:#f2a21b; }.route-fav-no.purple { background:#8b5cf6; }
.route-fav-main { flex:1; min-width:0; }.route-fav-main strong { display:block; font-size:16px; }.route-fav-main small { color:#687586; font-size:12px; }
.route-fav-card .chevron { color:#9aa8b6; font-size:22px; }
.route-map { position:relative; inset:auto; width:100%; height:100%; }

/* 초성 검색 안내 */
.chosung-hint { max-width:700px; margin:8px auto 4px; padding:9px 12px; border-radius:10px; color:#3d556e; background:#e8f2fc; font-size:12px; line-height:1.5; }
.chosung-hint b { margin-right:6px; padding:1px 7px; border-radius:8px; color:#fff; background:#1b6cff; font-size:11px; }
.chosung-hint i { font-style:normal; font-weight:800; color:#1259d6; }

/* 구·동 선택 화면 */
.dong-panel { position:fixed; z-index:1250; inset:0; display:flex; flex-direction:column; background:#f5f8fb; color:#253a50; }.dong-panel[hidden] { display:none; }
.dong-head { flex:none; display:flex; align-items:center; gap:8px; padding:calc(10px + env(safe-area-inset-top)) 10px 10px; background:var(--navy); color:#fff; }
.dong-head button { width:40px; height:40px; border:0; border-radius:10px; color:#fff; background:rgba(255,255,255,.12); font-size:22px; }
.dong-title { flex:1; min-width:0; }.dong-title strong { display:block; font-size:18px; }.dong-title span { display:block; color:#a9cfee; font-size:11px; }
.dong-body { flex:1; overflow-y:auto; padding:12px 12px 28px; -webkit-overflow-scrolling:touch; }
.dong-body > * { max-width:700px; margin-left:auto; margin-right:auto; }
.dong-citymap { display:block; width:100%; padding:13px; border:1px solid #bcd3ea; border-radius:12px; color:#1259d6; background:#fff; font-size:15px; font-weight:800; }
.dong-gus { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }.dong-gus:empty { display:none; }
.dong-gu { padding:8px 14px; border:1px solid #cfdbe7; border-radius:18px; color:#38536e; background:#fff; font-size:14px; font-weight:700; }.dong-gu.on { color:#fff; background:#1b6cff; border-color:#1b6cff; }
.dong-search { display:block; width:100%; height:44px; margin-top:12px; padding:0 14px; border:1px solid #b6c5d4; border-radius:10px; color:#182b40; background:#fff; outline:0; font-size:15px; font-weight:700; }.dong-search:focus { border-color:#5ba8ff; box-shadow:0 0 0 3px rgba(91,168,255,.22); }
.dong-progress { margin:12px 2px 0; color:#5b738d; font-size:13px; font-weight:700; }.dong-progress:empty { display:none; }
.dong-group { display:flex; justify-content:space-between; align-items:baseline; margin:18px 2px 8px; color:#1f3b57; font-size:15px; }.dong-group small { color:#7d93a8; font-size:12px; font-weight:600; }
.dong-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.dong-btn { padding:13px 6px; border:1px solid #dce3e9; border-radius:12px; color:#142236; background:#fff; font-size:14px; font-weight:700; word-break:keep-all; }.dong-btn:active { background:#e8f2fc; border-color:#9cc3ee; }

/* 주요 대도시(1단계) · 목록 불러오기 안내 */
#majorBlock[hidden] { display:none; }
.city-panel .major-title { max-width:700px; margin:12px auto 8px; }
#majorCities { max-width:700px; margin:0 auto 14px; }
#majorCities .popular-city { padding:9px 14px; border:1px solid #bcd3ea; border-radius:18px; color:#1259d6; background:#eef5ff; font-size:14px; font-weight:800; }
#majorCities .popular-city.selected { color:#fff; background:#1b6cff; border-color:#1b6cff; }
.city-notice { max-width:700px; margin:8px auto; padding:9px 12px; border-radius:10px; color:#8a4b00; background:#fff3dd; font-size:12px; font-weight:700; }.city-notice[hidden] { display:none; }
.city-notice button { margin-left:6px; padding:3px 10px; border:0; border-radius:12px; color:#fff; background:#e08a00; font-size:12px; font-weight:800; }
.city-panel .region-search { display:block; width:100%; max-width:700px; margin:0 auto 4px; }

/* 전국 운행 지역: 지도로 찾기 */
.cmh-actions { display:flex; align-items:center; gap:8px; }
.cmh-actions button { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; }
#cityMapToggle.on { color:#fff; background:#1b6cff; }
.city-panel.map-mode { display:flex; flex-direction:column; padding:0; overflow:hidden; }
.city-panel.map-mode > .city-modal-header { flex:none; margin:0; padding:14px 14px 10px; }
.city-panel.map-mode > :not(.city-modal-header):not(.city-map-view) { display:none !important; }
.city-map-view { flex:1; min-height:0; position:relative; }.city-map-view[hidden] { display:none; }
.korea-map { position:relative; width:100%; height:100%; background:#e8eef4; }
.kmap-bar { position:absolute; z-index:20; left:10px; right:60px; bottom:max(14px,env(safe-area-inset-bottom)); display:flex; align-items:center; gap:8px; }
.kmap-bar span { padding:9px 14px; border-radius:18px; color:#fff; background:rgba(8,24,44,.88); font-size:12px; font-weight:700; }
.kmap-bar button { padding:9px 14px; border:0; border-radius:18px; color:#1259d6; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.3); font-size:13px; font-weight:800; }.kmap-bar button[hidden] { display:none; }
.kmap-pin { position:relative; width:0; height:0; }
.kmap-pin > div { position:absolute; left:0; top:0; transform:translate(-50%,-50%); white-space:nowrap; }
.kmap-city { padding:8px 14px; border-radius:20px; color:#fff; background:#1b6cff; border:2px solid #fff; box-shadow:0 3px 10px rgba(0,0,0,.4); font-size:15px; font-weight:800; }
.kmap-gu { padding:7px 13px; border-radius:18px; color:#fff; background:#7a4dff; border:2px solid #fff; box-shadow:0 3px 8px rgba(0,0,0,.35); font-size:13px; font-weight:800; }
.kmap-dong { padding:5px 10px; border-radius:14px; color:#142236; background:rgba(255,255,255,.95); border:1.5px solid #1b6cff; box-shadow:0 2px 6px rgba(0,0,0,.3); font-size:12px; font-weight:800; }

.kmap-cluster { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; max-width:150px; padding:6px; border-radius:16px; background:rgba(255,255,255,.92); border:2px solid #1b6cff; box-shadow:0 3px 10px rgba(0,0,0,.4); }
.kmap-city.sm { padding:5px 10px; border-width:1.5px; border-radius:14px; font-size:13px; box-shadow:none; cursor:pointer; }
.kmap-city { cursor:pointer; }

/* 광역 지역(도) → 시·군 */
#majorCities .popular-city.province { color:#0a6a4a; background:#e6f7ef; border-color:#a9dcc5; }
.city-list-toggle { display:block; margin:12px auto 4px; padding:9px 16px; border:1px dashed #9fb6cc; border-radius:18px; color:#38536e; background:transparent; font-size:13px; font-weight:700; }
.prov-bar { display:flex; align-items:center; gap:12px; max-width:700px; margin:12px auto 6px; }
.prov-bar button { padding:8px 14px; border:1px solid #bcd3ea; border-radius:18px; color:#1259d6; background:#fff; font-size:13px; font-weight:800; }.prov-bar strong { color:#1f3b57; font-size:15px; }.prov-bar[hidden] { display:none; }
.city-panel.collapsed .region-label-row,.city-panel.collapsed .city-panel-heading:not(.major-title),.city-panel.collapsed .city-list { display:none; }
.kmap-do { color:#fff; background:#0f9d6b; }
#stationSection[hidden] { display:none; }

/* 지도 위 실시간 버스 */
.live-bus { position:relative; width:26px; filter:drop-shadow(0 2px 3px rgba(0,0,0,.45)); }.live-bus svg { display:block; }
.live-bus b { position:absolute; left:50%; top:30px; transform:translateX(-50%); padding:1px 5px; border-radius:8px; color:#fff; background:rgba(20,34,54,.88); font-size:10px; font-weight:800; white-space:nowrap; }
#cityListView.on { color:#fff; background:#1b6cff; }

.toast { position:fixed; z-index:2000; left:50%; bottom:max(24px,env(safe-area-inset-bottom)); transform:translateX(-50%); max-width:calc(100% - 40px); padding:11px 18px; border-radius:20px; color:#fff; background:rgba(8,24,44,.92); font-size:13px; font-weight:700; text-align:center; }.toast[hidden] { display:none; }
/* 숨김(hidden)이 항상 이기도록: 전국 지도 모드의 display:flex가 닫힌 패널을 다시 보이게 하던 문제 */
.city-panel[hidden],.dong-panel[hidden],.led-screen[hidden],.map-screen[hidden],.route-diagram[hidden],.side-menu[hidden],.side-backdrop[hidden],.led-menu[hidden],.city-map-view[hidden],.route-map-view[hidden],.toast[hidden] { display:none !important; }
.route-search-more { padding:10px 12px; color:#7890a7; text-align:center; font-size:12px; }

/* 버스번호 검색: 지역 칩 */
.route-region-chips { display:flex; gap:6px; margin-top:10px; padding-bottom:2px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }.route-region-chips::-webkit-scrollbar { display:none; }.route-region-chips[hidden] { display:none; }
.rr-chip { flex:none; padding:8px 13px; border:1px solid rgba(255,255,255,.35); border-radius:18px; color:#e6f1ff; background:rgba(255,255,255,.1); font-size:13px; font-weight:800; white-space:nowrap; }
.rr-chip b { margin-left:3px; color:#ffd84d; font-weight:800; }
.rr-chip.on { color:#15324d; background:#fff; border-color:#fff; }.rr-chip.on b { color:#1259d6; }
.led-ad-content { display: flex; align-items: center; min-width: 0; width: 100%; }
.led-ad-content.icon-top { flex-direction: column; align-items: flex-start; }
.led-ad-content.icon-right .led-ad-icon { order: 2; margin: 0 0 0 7px; }
.led-ad-icon { flex: 0 0 auto; align-self: center; margin-right: 7px; font-size: 22px; line-height: 1; }
.led-ad-content.icon-top .led-ad-icon { align-self: flex-start; margin: 1px 0 4px; }
.led-ad-icon img { display: block; width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.led-ad-copy { min-width: 0; width: 100%; }
.led-ad-copy span, .led-ad-copy b { display: block; }
/* 공통 신청 문구는 관리자가 저장한 효과로 첫째·둘째 줄을 순서대로 노출한다. */
.led-ad-copy:not(.promo-animation-none) span, .led-ad-copy:not(.promo-animation-none) b { animation-fill-mode: both; }
.promo-animation-typing span, .promo-animation-typing b { overflow: hidden; white-space: nowrap; width: 0; }
.promo-animation-typing span { animation: bus-promo-type .72s steps(var(--promo-steps-one, 12), end) .10s forwards; }
.promo-animation-typing b { animation: bus-promo-type .72s steps(var(--promo-steps-two, 8), end) .95s forwards; }
.promo-animation-fade-up span { animation: bus-promo-fade-up .45s ease-out .10s both; }
.promo-animation-fade-up b { animation: bus-promo-fade-up .45s ease-out .55s both; }
.promo-animation-slide-left span { animation: bus-promo-slide-left .46s ease-out .10s both; }
.promo-animation-slide-left b { animation: bus-promo-slide-left .46s ease-out .56s both; }
.promo-animation-pop span { animation: bus-promo-pop .38s cubic-bezier(.2,1.45,.45,1) .10s both; }
.promo-animation-pop b { animation: bus-promo-pop .38s cubic-bezier(.2,1.45,.45,1) .54s both; }
.promo-animation-shimmer span { animation: bus-promo-shimmer .85s ease-out .10s both; }
.promo-animation-shimmer b { animation: bus-promo-shimmer .85s ease-out .62s both; }
@keyframes bus-promo-type { to { width: 100%; } }
@keyframes bus-promo-fade-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bus-promo-slide-left { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bus-promo-pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes bus-promo-shimmer { from { opacity: .15; filter: brightness(1.8); } to { opacity: 1; filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .led-ad-copy span, .led-ad-copy b { animation: none !important; width: auto !important; } }

.led-ad-caption { position: absolute; right: 0; left: 0; display: flex; align-items: center; justify-content: flex-start; box-sizing: border-box; height: var(--cap-h, 28px); padding: 0 10px; overflow: hidden; color: var(--cap-color, #fff); font-size: var(--cap-size, 13px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; text-align: left; pointer-events: none; }
.led-ad-caption > span { display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; word-break: keep-all; }
.led-ad-caption.cap-light { text-shadow: 0 0 3px rgba(0, 0, 0, .95), 0 1px 2px rgba(0, 0, 0, .9), 1px 0 0 rgba(0, 0, 0, .8), -1px 0 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(0, 0, 0, .8), 0 -1px 0 rgba(0, 0, 0, .8); }
.led-ad-caption.cap-dark { text-shadow: 0 0 3px rgba(255, 255, 255, .95), 0 1px 2px rgba(255, 255, 255, .9), 1px 0 0 rgba(255, 255, 255, .85), -1px 0 0 rgba(255, 255, 255, .85), 0 1px 0 rgba(255, 255, 255, .85), 0 -1px 0 rgba(255, 255, 255, .85); }
.led-ad-caption.pos-tl, .led-ad-caption.pos-tc, .led-ad-caption.pos-tr { top: 0; }
.led-ad-caption.pos-bl, .led-ad-caption.pos-bc, .led-ad-caption.pos-br { bottom: 0; }
.led-ad-caption.cap-light.pos-tl, .led-ad-caption.cap-light.pos-tc, .led-ad-caption.cap-light.pos-tr { background: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .62) 65%, rgba(0, 0, 0, 0)); }
.led-ad-caption.cap-light.pos-bl, .led-ad-caption.cap-light.pos-bc, .led-ad-caption.cap-light.pos-br { background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .62) 65%, rgba(0, 0, 0, 0)); }
.led-ad-caption.cap-dark.pos-tl, .led-ad-caption.cap-dark.pos-tc, .led-ad-caption.cap-dark.pos-tr { background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .66) 65%, rgba(255, 255, 255, 0)); }
.led-ad-caption.cap-dark.pos-bl, .led-ad-caption.cap-dark.pos-bc, .led-ad-caption.cap-dark.pos-br { background: linear-gradient(0deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .66) 65%, rgba(255, 255, 255, 0)); }
.led-ad-caption.pos-tc, .led-ad-caption.pos-bc { justify-content: center; text-align: center; }
.led-ad-caption.pos-tr, .led-ad-caption.pos-br { justify-content: flex-end; text-align: right; }
/* 광고주 링크 안의 일반 span 규칙(.led-ad-link span: 작은 회색 글씨)이 캡션에 덮어쓰이지 않도록 한 단계 더 구체적으로 지정한다. */
.led-ad-link .led-ad-caption { color: var(--cap-color, #fff); font-size: var(--cap-size, 13px); font-weight: 800; line-height: 1.2; }
.led-ad-link .led-ad-caption > span { color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }


.promo-textbanner { display: flex; align-items: center; justify-content: flex-start; box-sizing: border-box; width: 100%; height: 100%; min-height: 58px; padding: 6px 12px; background: var(--tb-bg, #2f6bff); color: var(--tb-color, #fff); font-size: var(--tb-size, 13px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; text-align: left; }
.promo-textbanner > span { display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; word-break: keep-all; }
.led-ad-link .promo-textbanner { color: var(--tb-color, #fff); font-size: var(--tb-size, 13px); font-weight: 800; line-height: 1.25; }
.led-ad-link .promo-textbanner > span { color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.promo-textbanner.tb-tl, .promo-textbanner.tb-tc, .promo-textbanner.tb-tr { align-items: flex-start; }
.promo-textbanner.tb-bl, .promo-textbanner.tb-bc, .promo-textbanner.tb-br { align-items: flex-end; }
.promo-textbanner.tb-tc, .promo-textbanner.tb-bc { justify-content: center; text-align: center; }
.promo-textbanner.tb-tr, .promo-textbanner.tb-br { justify-content: flex-end; text-align: right; }


/* ===== 정류소 전광판 배너 광고: 관리자가 고른 한 곳(이름 위 / 이름 아래 / 버튼 아래)에 가로 전체 너비로 표시 ===== */
.led-ad { position:relative; display:block; box-sizing:border-box; width:100%; min-height:58px; margin:8px 0; border:1px dashed #93c5fd; border-radius:14px; background:#eff6ff; color:#64748b; overflow:hidden; text-align:left; }
.led-ad[hidden] { display:none !important; }
.led-ad:not(.is-sponsor) { display:flex; align-items:center; padding:8px 14px; cursor:pointer; line-height:1.35; }
.led-ad:not(.is-sponsor):active { transform:scale(.99); }
.led-ad.is-sponsor { border:1px solid rgba(255,255,255,.18); background:#0b1119; aspect-ratio:4/1; max-height:112px; min-height:56px; }
.led-ad.is-sponsor .led-ad-link { position:relative; display:block; width:100%; height:100%; color:inherit; text-decoration:none; }
.led-ad.is-sponsor .led-ad-link img { display:block; width:100%; height:100%; object-fit:cover; }
.led-ad .led-ad-label { position:absolute; top:3px; right:5px; padding:1px 5px; border-radius:6px; background:rgba(0,0,0,.45); color:#fff; font-size:9.5px; font-weight:700; pointer-events:none; }
.led-ad.is-sponsor .led-ad-link > span.plain { display:flex; align-items:center; justify-content:center; height:100%; color:#fff; font-weight:800; }
.led-ad .promo-textbanner { min-height:0; }
.led-top + .led-ad, .led-ad + .led-top { margin-top:2px; }
.led-ad-apply { position:fixed; z-index:1300; inset:0; display:grid; place-items:center; padding:16px; overflow-y:auto; background:rgba(8,13,24,.66); }
.led-ad-apply[hidden] { display:none !important; }
.led-ad-apply form, .led-ad-apply .led-ad-guide { width:100%; max-width:440px; box-sizing:border-box; padding:20px 18px; border-radius:18px; background:#fff; color:#172033; }
.led-ad-apply h2 { margin:0 0 6px; font-size:18px; letter-spacing:-.02em; }
.led-ad-apply p { margin:0 0 12px; color:#5b6472; font-size:13px; line-height:1.55; }
.led-ad-apply label { display:block; margin:10px 0 0; font-size:12px; font-weight:700; color:#334155; }
.led-ad-apply input:not([type=checkbox]), .led-ad-apply select, .led-ad-apply textarea { display:block; width:100%; box-sizing:border-box; margin-top:4px; padding:10px 11px; border:1px solid #cbd5e1; border-radius:10px; font-size:14px; background:#fff; color:#172033; }
.led-ad-apply .chk { display:flex; gap:8px; align-items:flex-start; font-weight:500; }
.led-ad-apply .chk input { margin-top:3px; }
.led-ad-apply .row { display:flex; gap:8px; margin-top:16px; }
.led-ad-apply .row button { flex:1; height:44px; border:0; border-radius:12px; font-size:15px; font-weight:800; background:#e2e8f0; color:#334155; }
.led-ad-apply .row button.go { background:#2d6cdf; color:#fff; }
.led-ad-apply .err { min-height:16px; margin:8px 0 0; color:#dc2626; font-size:12px; }
.led-screen > .led-ad { margin-left:auto; margin-right:auto; }
/* 정거장 지도: 지역 탭처럼 상단 헤더를 없애고 지도가 화면 가득 차게 한다(전광판이 열리면 헤더가 다시 보임). */
body:has(#mapScreen:not([hidden])):not(:has(#ledScreen:not([hidden]))) .top-bar { display:none; }
body:has(#mapScreen:not([hidden])) .map-screen { top:0; }
body:has(#mapScreen:not([hidden])) .map-pill { top:max(10px,env(safe-area-inset-top)); }

.svc-notice { margin:8px 14px 0; padding:9px 12px; border-radius:12px; background:#fff7e6; border:1px solid #ffd591; color:#7a4b00; font-size:13px; line-height:1.45; cursor:pointer; }
.svc-notice.emergency { background:#fff1f0; border-color:#ffa39e; color:#a8071a; }
.svc-notice[hidden] { display:none !important; }
.svc-notice b { display:block; font-size:13px; }.svc-notice .body { display:none; margin-top:4px; white-space:pre-wrap; }.svc-notice.open .body { display:block; }
.led-screen > .led-notice { margin-left:auto; margin-right:auto; }
.side-menu .side-link { display:block; padding:12px 16px; color:#8aa0b8; font-size:13px; text-decoration:none; }
.auth-box { width:100%; max-width:380px; box-sizing:border-box; padding:20px 18px; border-radius:18px; background:#fff; color:#172033; }
.auth-box h2 { margin:0 0 6px; font-size:18px; }.auth-box p { margin:0 0 8px; color:#5b6472; font-size:13px; }
.auth-box label { display:block; margin:10px 0 0; font-size:12px; font-weight:700; color:#334155; }
.auth-box input { display:block; width:100%; box-sizing:border-box; margin-top:4px; padding:10px 11px; border:1px solid #cbd5e1; border-radius:10px; font-size:14px; }
.auth-box .row { display:flex; gap:8px; margin-top:14px; }.auth-box .row button { flex:1; height:44px; border:0; border-radius:12px; font-size:15px; font-weight:800; background:#e2e8f0; color:#334155; }.auth-box .row button.go { background:#2d6cdf; color:#fff; }
.auth-box .err { min-height:16px; margin:8px 0 0; color:#dc2626; font-size:12px; }
.auth-box .auth-link { display:block; margin:12px auto 0; border:0; background:none; color:#2d6cdf; font-size:13px; font-weight:700; }
.auth-sns { display:flex; align-items:center; gap:8px; margin-top:14px; font-size:12px; color:#64748b; flex-wrap:wrap; }.auth-sns a { padding:7px 12px; border-radius:18px; background:#f1f5f9; color:#172033; text-decoration:none; font-weight:700; }

/* 사이드 메뉴 상단: 좌측 로그인 버튼, 우측 닫기 (메트로온과 동일 배치) */
.side-menu-head { justify-content:space-between; gap:10px; padding:calc(8px + env(safe-area-inset-top)) 10px 8px 14px; height:auto; min-height:56px; background:linear-gradient(155deg,#10305a,#1b5fb8); }
.side-menu-head .login-btn { width:auto; height:38px; padding:0 20px; border-radius:12px; background:#fff; color:#10305a; font-size:14px; font-weight:800; }
.side-menu-head .login-btn.is-logout { background:rgba(255,255,255,.18); color:#fff; }
.side-menu-head #sideCloseBtn { width:38px; height:38px; border-radius:12px; background:rgba(255,255,255,.18); font-size:24px; line-height:1; }
.side-account { padding:10px 18px 12px; color:#a9bdd3; font-size:12.5px; border-bottom:1px solid rgba(255,255,255,.14); }
/* 전광판 화면: 최상단 헤더를 숨기고 본문을 그 자리로 올린다. */
body:has(#ledScreen:not([hidden])) .top-bar { display:none; }
.led-screen { padding-top:max(10px,calc(env(safe-area-inset-top) + 6px)); }

/* 전광판 → 리스트 아이콘: 즐겨찾기를 눌렀을 때와 같은 버스 리스트 화면(지역 칩 + 도착 리스트 + 광고) */
.led-tools .led-tg:first-child { flex:1 1 auto; }
.led-tools .led-listbtn { margin-left:auto; padding:0 12px; }
.ll-screen { position:fixed; z-index:1150; inset:0; display:flex; flex-direction:column; padding:max(10px,calc(env(safe-area-inset-top) + 6px)) 10px max(12px,env(safe-area-inset-bottom)); background:#f3f6fa; color:#172033; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.ll-screen[hidden] { display:none !important; }
.ll-screen > * { width:100%; max-width:760px; margin-left:auto; margin-right:auto; flex:none; }
.ll-top { display:flex; align-items:center; gap:8px; padding:2px 0 8px; }
.ll-top button { width:40px; height:40px; border:0; border-radius:12px; background:#e3eaf3; color:#10305a; font-size:26px; line-height:1; }
.ll-top strong { flex:1; min-width:0; font-size:18px; letter-spacing:-.02em; }.ll-top span { color:#64748b; font-size:11.5px; }
.ll-screen > .led-ad { margin-left:auto; margin-right:auto; }
.ll-regions { display:flex; flex-wrap:nowrap; gap:8px; margin:8px auto; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }.ll-regions::-webkit-scrollbar { display:none; }
.ll-regions button { flex:0 0 auto; height:36px; padding:0 14px; border:1px solid #cbd5e1; border-radius:18px; background:#fff; color:#334155; font-size:14px; font-weight:800; white-space:nowrap; }
.ll-regions button.on { border-color:#1b6cff; background:#1b6cff; color:#fff; }
.ll-sec { margin:0 0 12px; border-radius:14px; background:#fff; box-shadow:0 1px 6px rgba(15,35,60,.08); overflow:hidden; }
.ll-sec > h3 { margin:0; padding:12px 14px; font-size:16px; border-bottom:1px solid #eef2f6; }.ll-sec > h3 small { margin-left:6px; color:#64748b; font-size:12px; font-weight:600; }
.ll-sec .loading { padding:16px; color:#64748b; font-size:13px; text-align:center; }
/* 리스트 화면: 최상단 배너는 스크롤해도 화면 위에 고정 */
.ll-screen > #llAdTop { position:sticky; top:max(4px,env(safe-area-inset-top)); z-index:5; box-shadow:0 4px 12px rgba(15,35,60,.18); background-clip:padding-box; }
.ll-screen > #llAdTop:not(.is-sponsor) { background-color:#eff6ff; }

/* 리스트 화면: 뒤로가기·지역명 + 배너 + 지역 칩을 한 덩어리로 상단에 고정 */
.ll-screen > .ll-head { position:sticky; top:calc(-1 * max(10px,calc(env(safe-area-inset-top) + 6px))); z-index:5; padding-top:max(10px,calc(env(safe-area-inset-top) + 6px)); background:#f3f6fa; box-shadow:0 4px 10px rgba(15,35,60,.12); }
.ll-head > .led-ad { margin-left:auto; margin-right:auto; position:static; box-shadow:none; }
.ll-head .ll-regions { margin:8px 0 6px; }

.ll-regions[hidden] { display:none !important; }
/* 노선도 버튼: 눈에 띄는 파란 채움 버튼 */
.arrival-time .vehicle-btn, .vehicle-btn { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-width:76px; height:32px; margin-top:4px; padding:0 12px; border:0; border-radius:16px; background:#1b6cff; color:#fff; font-size:13px; font-weight:800; letter-spacing:-.02em; box-shadow:0 2px 6px rgba(27,108,255,.35); cursor:pointer; }
.vehicle-btn::before { content:""; width:14px; height:14px; background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='6' r='2'/%3E%3Ccircle cx='19' cy='18' r='2'/%3E%3Cpath d='M7 6h6a4 4 0 0 1 0 8h-2a4 4 0 0 0 0 8'/%3E%3C/svg%3E"); }
.vehicle-btn:active { transform:scale(.96); background:#1457d4; }

/* 노선도 버튼 강화: 더 크고 진하게 + 버스 한 줄 전체를 눌러도 열림 */
.arrival-time .vehicle-btn, .vehicle-btn { min-width:96px; height:40px; padding:0 16px; border-radius:20px; background:linear-gradient(135deg,#1b6cff,#0a4fd6); font-size:15px; box-shadow:0 3px 10px rgba(27,108,255,.45); }
.vehicle-btn::before { width:17px; height:17px; }
.arrival-row { cursor:pointer; }.arrival-row:active { background:#f1f6ff; }
/* 노선도 화면 개선: 큰 글씨·굵은 노선·강조된 내 정류소·큰 버스 아이콘 */
.diagram-summary { position:sticky; top:0; z-index:6; padding:14px 18px; font-size:13.5px; font-weight:700; color:#10305a; box-shadow:0 2px 8px rgba(15,35,60,.08); }
.diagram-stop { grid-template-columns:44px 1fr; min-height:54px; }
.diagram-stop:after { left:20px; width:5px; border-radius:3px; top:28px; }
.diagram-node i { width:18px; height:18px; border-width:4px; }
.diagram-stop-name { padding:12px 0 12px; font-size:16px; font-weight:700; letter-spacing:-.02em; }
.diagram-stop-name small { font-size:11.5px; }
.diagram-stop.mine, .diagram-stop.current { margin:4px -10px; padding:0 10px; border-radius:12px; background:linear-gradient(90deg,#e4eeff,#f6f9ff); box-shadow:inset 4px 0 0 #1b6cff; }
.diagram-stop.mine .diagram-stop-name:after, .diagram-stop.current:not(.mine) .diagram-stop-name:after { content:'내 정류소'; display:inline-block; margin-left:8px; padding:2px 8px; border-radius:10px; background:#1b6cff; color:#fff; font-size:11px; font-weight:800; vertical-align:2px; }
.diagram-stop.current:not(.mine) .diagram-stop-name:after { content:'현재 정류소'; background:#f4a900; }
.diagram-node .bus-run { width:34px; margin-left:-17px; }
.diagram-node .bus-run em { min-width:20px; font-size:11.5px; padding:2px 5px; }
.rd-locate { position:absolute; z-index:20; right:16px; bottom:max(18px,env(safe-area-inset-bottom)); height:44px; padding:0 18px; border:0; border-radius:22px; background:#1b6cff; color:#fff; font-size:14px; font-weight:800; box-shadow:0 4px 14px rgba(27,108,255,.5); }
.route-diagram[hidden] .rd-locate { display:none; }

/* 메인 화면: 내 주변 정류소 카드 */
.home-near .section-heading { justify-content:flex-start; }
.home-near-refresh { margin-left:auto; width:34px; height:34px; border:0; border-radius:50%; background:#e3eaf3; color:#10305a; font-size:18px; }.home-near-refresh.spin { animation:ledSpin .8s linear infinite; }
.home-near-list { display:grid; gap:10px; }
.hn-card { display:block; width:100%; padding:13px 14px; border:1px solid #dbe5ee; border-radius:14px; background:#fff; text-align:left; color:#172033; box-shadow:0 1px 6px rgba(15,35,60,.07); cursor:pointer; }
.hn-card:active { background:#f1f6ff; }
.hn-top { display:flex; align-items:baseline; gap:8px; }.hn-top strong { flex:1; min-width:0; font-size:16px; letter-spacing:-.02em; }.hn-top small { color:#64748b; font-size:11.5px; white-space:nowrap; }
.hn-sub { margin:2px 0 8px; color:#64748b; font-size:12px; }
.hn-buses { display:flex; flex-wrap:wrap; gap:6px; }
.hn-bus { display:inline-flex; align-items:center; gap:6px; padding:5px 10px 5px 6px; border-radius:16px; background:#f3f6fa; font-size:13px; }.hn-bus b { padding:2px 8px; border-radius:10px; color:#fff; background:#1b6cff; font-size:12.5px; }.hn-bus em { font-style:normal; font-weight:800; color:#e23d31; }
.hn-empty, .hn-note { padding:14px; border-radius:14px; background:#fff; border:1px dashed #cbd5e1; color:#64748b; font-size:13px; text-align:center; line-height:1.55; }
.hn-note button { display:inline-block; margin-top:8px; height:38px; padding:0 18px; border:0; border-radius:19px; background:#1b6cff; color:#fff; font-size:14px; font-weight:800; }
.hn-skel { height:84px; border-radius:14px; background:linear-gradient(90deg,#eef2f6,#f7f9fb,#eef2f6); background-size:200% 100%; animation:hnSk 1.2s linear infinite; }@keyframes hnSk { to { background-position:-200% 0; } }

/* ===== 다크 모드 (사이드 메뉴 토글, html[data-theme="dark"]) — 항상 파일 끝에 둔다 ===== */
.side-menu .theme-row { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:16px 18px; border:0; border-bottom:1px solid rgba(255,255,255,.08); color:#fff; background:transparent; text-align:left; font-size:15px; font-weight:700; }
.side-menu .theme-row:active { background:rgba(255,255,255,.1); }
.theme-switch { position:relative; flex:0 0 auto; width:46px; height:26px; border-radius:13px; background:rgba(255,255,255,.28); transition:background .2s; }
.theme-switch::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:transform .2s; }
html[data-theme="dark"] .theme-switch { background:#4ea1ff; }
html[data-theme="dark"] .theme-switch::after { transform:translateX(20px); }

html[data-theme="dark"] { color-scheme:dark; --ink:#e6edf5; --paper:#0e141c; --white:#172230; --line:#2b3a4d; --muted:#9bacc0; }
html[data-theme="dark"] body { background:var(--paper); color:var(--ink); }
@media (min-width:721px) { html[data-theme="dark"] .app-shell { box-shadow:0 0 42px rgba(0,0,0,.6); } }
/* 입력창 */
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { color-scheme:dark; }
html[data-theme="dark"] .route-input, html[data-theme="dark"] .city-trigger, html[data-theme="dark"] .city-select, html[data-theme="dark"] .search-input,
html[data-theme="dark"] .city-dropdown-trigger, html[data-theme="dark"] .region-search, html[data-theme="dark"] .dong-search, html[data-theme="dark"] .top-search-form input,
html[data-theme="dark"] .led-ad-apply input:not([type=checkbox]), html[data-theme="dark"] .led-ad-apply select, html[data-theme="dark"] .led-ad-apply textarea,
html[data-theme="dark"] .auth-box input { background:#0f1824; color:#e6edf5; border-color:#3a4c62; }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color:#7f93a9; opacity:1; }
html[data-theme="dark"] .route-search-icon, html[data-theme="dark"] .city-trigger span:last-child, html[data-theme="dark"] .city-dropdown-trigger span:last-child { color:#8ea3ba; }
/* 검색 결과·목록 카드 */
html[data-theme="dark"] .route-search-results { background:#121c28; }
html[data-theme="dark"] .route-search-empty { color:#8ea3ba; }
html[data-theme="dark"] .route-search-empty strong, html[data-theme="dark"] .route-city-group h3 { color:#a9c4de; }
html[data-theme="dark"] .route-city-group h3 small { color:#8ea3ba; }
html[data-theme="dark"] .route-city-group { border-bottom-color:#2b3a4d; }
html[data-theme="dark"] .route-result { background:#172230; color:#dbe6f2; border-top-color:#2b3a4d; }
html[data-theme="dark"] .route-result:active { background:#1f2f42; }
html[data-theme="dark"] .route-result em { color:#6fb6f2; }
html[data-theme="dark"] .section-heading { color:#d3deea; }
html[data-theme="dark"] .station-card { background:#172230; border-color:#2b3a4d; box-shadow:none; }
html[data-theme="dark"] .station-card:active, html[data-theme="dark"] .hn-card:active, html[data-theme="dark"] .arrival-row:active { background:#1f2f42; }
html[data-theme="dark"] .star { color:#6f8197; }
html[data-theme="dark"] .empty-state, html[data-theme="dark"] .loading { background:rgba(23,34,48,.7); border-color:#3a4c62; color:#9bacc0; }
html[data-theme="dark"] .empty-state strong { color:#c5d3e2; }
html[data-theme="dark"] .loading.error, html[data-theme="dark"] .diagram-loading.error { color:#ff8a80; }
html[data-theme="dark"] .hn-card { background:#172230; border-color:#2b3a4d; color:#e6edf5; }
html[data-theme="dark"] .hn-top small, html[data-theme="dark"] .hn-sub { color:#9bacc0; }
html[data-theme="dark"] .hn-bus { background:#0f1824; }
html[data-theme="dark"] .hn-bus em { color:#ff7a6e; }
html[data-theme="dark"] .hn-empty, html[data-theme="dark"] .hn-note { background:#172230; border-color:#3a4c62; color:#9bacc0; }
html[data-theme="dark"] .hn-skel { background:linear-gradient(90deg,#172230,#22324a,#172230); background-size:200% 100%; }
html[data-theme="dark"] .home-near-refresh, html[data-theme="dark"] .ll-top button { background:#243447; color:#cfe2f7; }
/* 도착 정보 */
html[data-theme="dark"] .arrival-rows, html[data-theme="dark"] .arrival-rows .loading { background:#172230; }
html[data-theme="dark"] .arrival-row { border-bottom-color:#2b3a4d; color:#e1ebf5; }
html[data-theme="dark"] .route-topline span, html[data-theme="dark"] .arrival-detail, html[data-theme="dark"] .arrival-time small { color:#9bacc0; }
html[data-theme="dark"] .arrival-detail em { background:#12352b; color:#4fe0a6; }
html[data-theme="dark"] .arrival-time strong { color:#ff7a6e; }
html[data-theme="dark"] .vehicle-btn { background:#1c2a3b; border-color:#3a4c62; color:#a9c8e6; }
html[data-theme="dark"] .vehicle-notice { background:#142a40; border-color:#2f4d6b; color:#a9c8e6; }
html[data-theme="dark"] .fav-sub { color:#a9c8e6; }
html[data-theme="dark"] .route-fav-card { background:#172230; border-color:#2b3a4d; color:#e6edf5; }
html[data-theme="dark"] .route-fav-main small { color:#9bacc0; }
/* 지역 선택 / 도시 패널 */
html[data-theme="dark"] .city-panel, html[data-theme="dark"] .dong-panel { background:#0e141c; color:#d3deea; }
html[data-theme="dark"] .quick-city-menu { background:#172230; border-color:#3a4c62; }
html[data-theme="dark"] .all-cities-btn { border-color:#3a4c62; color:#6fb6f2; }
html[data-theme="dark"] .city-modal-header { border-bottom-color:#2b3a4d; }
html[data-theme="dark"] .city-modal-header strong { color:#e6edf5; }
html[data-theme="dark"] .city-modal-header button { background:#243447; color:#cfe2f7; }
html[data-theme="dark"] .city-panel-title, html[data-theme="dark"] .city-panel-heading, html[data-theme="dark"] .dong-progress { color:#9bacc0; }
html[data-theme="dark"] .city-panel .region-label-row strong, html[data-theme="dark"] .city-list-toggle { color:#c5d3e2; }
html[data-theme="dark"] .city-panel .sort-cities-btn { color:#6fb6f2; }
html[data-theme="dark"] .city-choice { background:#172230; border-color:#3a4c62; color:#d3deea; }
html[data-theme="dark"] .city-choice:hover, html[data-theme="dark"] .city-choice:focus { background:#1f2f42; border-color:#5b9fe4; }
html[data-theme="dark"] .city-choice.selected { background:#1972bd; border-color:#1972bd; color:#fff; }
html[data-theme="dark"] .city-choice.unavailable, html[data-theme="dark"] .city-choice.unavailable.selected { background:#141d28; border-color:#2b3a4d; color:#7f93a9; }
html[data-theme="dark"] .city-choice small { color:#ff9db0; }
html[data-theme="dark"] .popular-city { background:#16314a; color:#9fd0f7; }
html[data-theme="dark"] #majorCities .popular-city { background:#16314a; border-color:#2f5b86; color:#9fd0f7; }
html[data-theme="dark"] #majorCities .popular-city.province { background:#11352a; border-color:#2c6b52; color:#5fe0b0; }
html[data-theme="dark"] .chosung-hint { background:#142a40; color:#a9c8e6; }
html[data-theme="dark"] .chosung-hint i, html[data-theme="dark"] .rr-chip.on b { color:#6fb6f2; }
html[data-theme="dark"] .city-notice { background:#3a2a0c; color:#ffd48a; }
html[data-theme="dark"] .prov-bar button, html[data-theme="dark"] .dong-citymap, html[data-theme="dark"] .kmap-bar button { background:#172230; border-color:#3a4c62; color:#6fb6f2; }
html[data-theme="dark"] .prov-bar strong, html[data-theme="dark"] .dong-group { color:#d3deea; }
html[data-theme="dark"] .dong-gu { background:#172230; border-color:#3a4c62; color:#c5d3e2; }
html[data-theme="dark"] .dong-btn { background:#172230; border-color:#2b3a4d; color:#e6edf5; }
html[data-theme="dark"] .dong-btn:active { background:#1f2f42; }
html[data-theme="dark"] .kmap-dong { color:#e6edf5; }
html[data-theme="dark"] .korea-map, html[data-theme="dark"] .near-map, html[data-theme="dark"] .route-map-view, html[data-theme="dark"] .station-map, html[data-theme="dark"] .map-screen { background:#1a2533; }
html[data-theme="dark"] .rr-chip.on { background:#e6edf5; border-color:#e6edf5; color:#15324d; }
/* 지도 / 노선도 / 모달 */
html[data-theme="dark"] .map-finder-card, html[data-theme="dark"] .route-diagram-card, html[data-theme="dark"] .route-diagram { background:#0e141c; }
html[data-theme="dark"] .map-finder { background:rgba(0,0,0,.7); }
html[data-theme="dark"] .map-finder-card { background:#172230; }
html[data-theme="dark"] .map-finder-header strong { color:#e6edf5; }
html[data-theme="dark"] .map-finder-header span { color:#9bacc0; }
html[data-theme="dark"] .map-finder-header button { background:#243447; color:#cfe2f7; }
html[data-theme="dark"] .map-finder-status { background:#121c28; color:#a9c8e6; }
html[data-theme="dark"] .diagram-loading { color:#9bacc0; }
html[data-theme="dark"] .diagram-summary { background:#172230; border-color:#2b3a4d; color:#a9c8e6; }
html[data-theme="dark"] .diagram-line, html[data-theme="dark"] .diagram-node i, html[data-theme="dark"] .rm-stop { background:#172230; }
html[data-theme="dark"] .diagram-stop-name { color:#dbe6f2; }
html[data-theme="dark"] .diagram-stop-name small { color:#6fb6f2; }
html[data-theme="dark"] .diagram-stop.current .diagram-stop-name, html[data-theme="dark"] .diagram-stop.mine .diagram-stop-name { color:#7db8ff; }
html[data-theme="dark"] .diagram-stop.mine, html[data-theme="dark"] .diagram-stop.current { background:linear-gradient(90deg,#17304f,#122236); }
html[data-theme="dark"] .diagram-stop.turn { background:linear-gradient(90deg,#3a2a14,#2a1f12); }
html[data-theme="dark"] .diagram-stop.turn .diagram-stop-name { color:#ffb673; }
html[data-theme="dark"] .diagram-stop-name small.turn-note { color:#ffa057; }
html[data-theme="dark"] .live-vehicles { background:#142a40; border-color:#2b3a4d; }
html[data-theme="dark"] .live-vehicles > strong { color:#a9c8e6; }
html[data-theme="dark"] .live-vehicle { color:#a9c8e6; }
html[data-theme="dark"] .live-vehicle b { color:#7db8ff; }
html[data-theme="dark"] .no-live-vehicle { background:#121c28; border-color:#2b3a4d; }
html[data-theme="dark"] .bus-info b.none { background:#243447; color:#9bacc0; }
html[data-theme="dark"] .near-locate-btn { background:#172230; color:#cfe2f7; }
html[data-theme="dark"] .map-pill { background:rgba(23,34,48,.96); }
html[data-theme="dark"] .map-pill button { color:#a9bdd3; }
html[data-theme="dark"] .map-pill button.active { color:#fff; }
/* 지도 타일(Leaflet OSM) 어둡게 */
html[data-theme="dark"] .leaflet-tile-pane { filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.92); }
html[data-theme="dark"] .leaflet-container { background:#1a2533; }
html[data-theme="dark"] .leaflet-control-zoom a, html[data-theme="dark"] .leaflet-bar a { background:#172230; color:#e6edf5; border-color:#3a4c62; }
html[data-theme="dark"] .leaflet-control-attribution { background:rgba(14,20,28,.8) !important; color:#9bacc0; }
html[data-theme="dark"] .leaflet-control-attribution a { color:#7db8ff; }
/* 전광판 메뉴·리스트·광고·알림 */
html[data-theme="dark"] .led-menu-card { background:#172230; }
html[data-theme="dark"] .led-menu-card strong { color:#e6edf5; }
html[data-theme="dark"] .led-menu-card button { background:#243447; color:#e6edf5; }
html[data-theme="dark"] .led-menu-card button[data-act="cancel"] { background:#172230; border-color:#3a4c62; color:#9bacc0; }
html[data-theme="dark"] .ll-screen, html[data-theme="dark"] .ll-screen > .ll-head { background:#0e141c; color:#e6edf5; }
html[data-theme="dark"] .ll-top span, html[data-theme="dark"] .ll-sec > h3 small, html[data-theme="dark"] .ll-sec .loading { color:#9bacc0; }
html[data-theme="dark"] .ll-regions button { background:#172230; border-color:#3a4c62; color:#c5d3e2; }
html[data-theme="dark"] .ll-sec { background:#172230; }
html[data-theme="dark"] .ll-sec > h3 { border-color:#2b3a4d; }
html[data-theme="dark"] .led-ad, html[data-theme="dark"] .ll-screen > #llAdTop:not(.is-sponsor) { background:#142a40; color:#9bacc0; }
html[data-theme="dark"] .led-ad-apply form, html[data-theme="dark"] .led-ad-apply .led-ad-guide, html[data-theme="dark"] .auth-box { background:#172230; color:#e6edf5; }
html[data-theme="dark"] .led-ad-apply p, html[data-theme="dark"] .auth-box p, html[data-theme="dark"] .auth-sns { color:#a9bdd3; }
html[data-theme="dark"] .led-ad-apply label, html[data-theme="dark"] .auth-box label { color:#c5d3e2; }
html[data-theme="dark"] .led-ad-apply .row button, html[data-theme="dark"] .auth-box .row button { background:#2b3a4d; color:#e6edf5; }
html[data-theme="dark"] .led-ad-apply .row button.go, html[data-theme="dark"] .auth-box .row button.go { background:#2d6cdf; color:#fff; }
html[data-theme="dark"] .led-ad-apply .err, html[data-theme="dark"] .auth-box .err { color:#ff8a80; }
html[data-theme="dark"] .auth-box .auth-link { color:#7db8ff; }
html[data-theme="dark"] .auth-sns a { background:#243447; color:#e6edf5; }
html[data-theme="dark"] .app-footer { color:#8ea3ba; }
html[data-theme="dark"] .toast { background:rgba(40,56,76,.96); }
html[data-theme="dark"] .side-menu { background:#111a26; box-shadow:-6px 0 24px rgba(0,0,0,.6); }
html[data-theme="dark"] .side-menu .side-link { color:#a9bdd3; }

/* 공지·긴급 알림: 모드별 색을 변수로 자동 조절 (홈은 화면 모드, 전광판은 항상 어두운 화면이라 어두운 톤 고정) */
.svc-notice { --sn-bg:#fff6e0; --sn-bd:#f3cf86; --sn-ac:#e8a317; --sn-fg:#6b4200; --sn-b:#4a2d00; position:relative; padding:10px 12px 10px 16px; border:1px solid var(--sn-bd); border-left:4px solid var(--sn-ac); border-radius:12px; background:var(--sn-bg); color:var(--sn-fg); box-shadow:0 1px 3px rgba(60,40,0,.08); transition:background .2s,border-color .2s,color .2s; }
.svc-notice b { color:var(--sn-b); }
.svc-notice.emergency { background:var(--sn-bg); border-color:var(--sn-bd); border-left-color:var(--sn-ac); color:var(--sn-fg); --sn-bg:#fff0ee; --sn-bd:#f5b4ad; --sn-ac:#e5392e; --sn-fg:#8e1a12; --sn-b:#6e0f09; box-shadow:0 1px 3px rgba(120,20,10,.1); }
html[data-theme="dark"] .svc-notice { --sn-bg:rgba(255,193,63,.12); --sn-bd:rgba(255,193,63,.28); --sn-ac:#ffc23f; --sn-fg:#f1d9a6; --sn-b:#ffe3a3; box-shadow:none; }
html[data-theme="dark"] .svc-notice.emergency { --sn-bg:rgba(255,92,80,.14); --sn-bd:rgba(255,110,100,.36); --sn-ac:#ff5c50; --sn-fg:#ffcfca; --sn-b:#ffe1de; }
.led-screen .svc-notice, html[data-theme="dark"] .led-screen .svc-notice { --sn-bg:rgba(255,193,63,.14); --sn-bd:rgba(255,193,63,.3); --sn-ac:#ffc23f; --sn-fg:#f1d9a6; --sn-b:#ffe3a3; box-shadow:none; }
.led-screen .svc-notice.emergency, html[data-theme="dark"] .led-screen .svc-notice.emergency { --sn-bg:rgba(255,92,80,.16); --sn-bd:rgba(255,110,100,.4); --sn-ac:#ff5c50; --sn-fg:#ffcfca; --sn-b:#ffe1de; }

/* 홈 상단 공지: 상단바·네이비 헤더와 한 덩어리로 이어지는 전폭 띠(모드와 무관하게 네이비 톤) */
.app-shell > .svc-notice { --sn-bg:#14263c; --sn-bd:rgba(255,194,63,.35); --sn-ac:#ffc23f; --sn-fg:#f1d9a6; --sn-b:#ffe3a3; margin:0; padding:11px 16px; border:0; border-bottom:1px solid var(--sn-bd); border-radius:0; box-shadow:none; background:var(--sn-bg); color:var(--sn-fg); }
.app-shell > .svc-notice::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--sn-ac); }
.app-shell > .svc-notice.emergency { --sn-bg:#3a1b22; --sn-bd:rgba(255,110,100,.4); --sn-ac:#ff5c50; --sn-fg:#ffcfca; --sn-b:#ffe1de; border:0; border-bottom:1px solid var(--sn-bd); background:var(--sn-bg); color:var(--sn-fg); }
.app-shell > .svc-notice b { font-size:13.5px; }
html[data-theme="dark"] .app-shell > .svc-notice { --sn-bg:#14263c; --sn-bd:rgba(255,194,63,.35); --sn-ac:#ffc23f; --sn-fg:#f1d9a6; --sn-b:#ffe3a3; border:0; border-bottom:1px solid var(--sn-bd); }
html[data-theme="dark"] .app-shell > .svc-notice.emergency { --sn-bg:#3a1b22; --sn-bd:rgba(255,110,100,.4); --sn-ac:#ff5c50; --sn-fg:#ffcfca; --sn-b:#ffe1de; border:0; border-bottom:1px solid var(--sn-bd); }

/* 라이트 모드 본문 상단(실시간 버스 도착 안내): 밝은 하늘색 배경 + 어두운 글자. 다크 모드는 기존 네이비 유지 */
html:not([data-theme="dark"]) .board-header { color:#10305a; background:linear-gradient(145deg,#eef6ff,#d9eafc); box-shadow:inset 0 -1px 0 rgba(16,48,90,.1); }
html:not([data-theme="dark"]) .live-status { color:#38536e; }
html:not([data-theme="dark"]) .board-kicker { color:#1f6fc9; }
html:not([data-theme="dark"]) .board-description { color:#4a6480; }
html:not([data-theme="dark"]) .search-board { border-color:rgba(16,48,90,.14); background:rgba(255,255,255,.72); box-shadow:0 2px 10px rgba(16,48,90,.06); }
html:not([data-theme="dark"]) .field-label { color:#38536e; }
html:not([data-theme="dark"]) .search-mode-tabs { background:rgba(16,48,90,.08); }
html:not([data-theme="dark"]) .search-mode { color:#4a6480; }
html:not([data-theme="dark"]) .search-mode.active { color:#fff; background:#1b6cff; box-shadow:0 2px 6px rgba(27,108,255,.3); }
html:not([data-theme="dark"]) .search-help { color:#5b738d; }
html:not([data-theme="dark"]) .region-label-row .field-label span { color:#1f6fc9; }
html:not([data-theme="dark"]) .sort-cities-btn { color:#1f6fc9; }
html:not([data-theme="dark"]) .other-cities-btn { border-color:#bcd3ea; background:#fff; color:#1f5f9e; }
html:not([data-theme="dark"]) .area-explorer { border-color:#cfe0f1; background:rgba(255,255,255,.7); }
html:not([data-theme="dark"]) .area-explorer-heading strong { color:#172d45; }
html:not([data-theme="dark"]) .area-explorer-heading button { color:#1f6fc9; }
html:not([data-theme="dark"]) .area-choice { border-color:#cfdbe7; background:#fff; color:#2b4056; }
html:not([data-theme="dark"]) .area-choice:hover, html:not([data-theme="dark"]) .area-choice:focus { border-color:#5b9fe4; background:#eef7ff; }
html:not([data-theme="dark"]) .area-empty { color:#5b738d; }
html:not([data-theme="dark"]) .rr-chip { border-color:#bcd3ea; background:#fff; color:#2b4a6a; }
html:not([data-theme="dark"]) .rr-chip b { color:#1259d6; }
html:not([data-theme="dark"]) .rr-chip.on { background:#1b6cff; border-color:#1b6cff; color:#fff; }
html:not([data-theme="dark"]) .rr-chip.on b { color:#fff; }
html:not([data-theme="dark"]) .app-shell > .svc-notice { --sn-bg:#fff4d6; --sn-bd:#efce82; --sn-ac:#e8a317; --sn-fg:#6b4200; --sn-b:#4a2d00; }
html:not([data-theme="dark"]) .app-shell > .svc-notice.emergency { --sn-bg:#ffe9e6; --sn-bd:#f2b0a9; --sn-ac:#e5392e; --sn-fg:#8e1a12; --sn-b:#6e0f09; }

/* ===== 라이트 모드 상단 영역 리디자인 (밝은 상단바 + 소프트 히어로 + 화이트 검색 카드) ===== */
html:not([data-theme="dark"]) .top-bar { color:#10305a; background:rgba(255,255,255,.9); -webkit-backdrop-filter:saturate(1.6) blur(14px); backdrop-filter:saturate(1.6) blur(14px); box-shadow:0 1px 0 #e1e9f2; }
html:not([data-theme="dark"]) .top-bar .brand { color:#10305a; }
html:not([data-theme="dark"]) .top-bar .brand-mark { background:#1b6cff; color:#fff; box-shadow:0 2px 6px rgba(27,108,255,.35); }
html:not([data-theme="dark"]) .top-icon-btn { color:#28425e; }
html:not([data-theme="dark"]) .top-icon-btn:active { background:rgba(16,48,90,.08); }
html:not([data-theme="dark"]) .board-header { position:relative; overflow:hidden; color:#0f2742; padding:8px 8px 24px; background:radial-gradient(120% 90% at 100% 0%,rgba(27,108,255,.16),rgba(27,108,255,0) 60%),radial-gradient(90% 70% at 0% 100%,rgba(32,204,141,.12),rgba(32,204,141,0) 60%),linear-gradient(180deg,#f6f9ff,#eaf2ff); border-radius:0 0 26px 26px; box-shadow:0 1px 0 #dfe8f3; }
html:not([data-theme="dark"]) .live-status { padding:4px 10px 4px 9px; border-radius:999px; background:#fff; box-shadow:0 1px 3px rgba(16,48,90,.1); color:#38536e; font-weight:700; }
html:not([data-theme="dark"]) .board-kicker { display:inline-block; margin:18px 14px 10px; padding:5px 11px; border-radius:999px; background:#dfeaff; color:#1b6cff; font-size:12px; letter-spacing:.02em; }
html:not([data-theme="dark"]) .board-header > .board-kicker { padding-left:11px; padding-right:11px; }
html:not([data-theme="dark"]) h1 { color:#0f2742; font-size:29px; font-weight:800; letter-spacing:-.055em; }
html:not([data-theme="dark"]) .board-description { color:#566f89; margin:10px 0 20px; }
html:not([data-theme="dark"]) .search-board { margin:0 6px; padding:12px; border:1px solid #e3ebf4; border-radius:20px; background:#fff; box-shadow:0 10px 30px rgba(20,60,120,.12); }
html:not([data-theme="dark"]) .search-mode-tabs { padding:4px; border-radius:13px; background:#eef3f9; }
html:not([data-theme="dark"]) .search-mode { height:38px; border-radius:10px; color:#6a8099; font-size:13.5px; }
html:not([data-theme="dark"]) .search-mode.active { color:#1b6cff; background:#fff; box-shadow:0 2px 8px rgba(20,60,120,.14); }
html:not([data-theme="dark"]) .field-label { color:#5b738d; font-size:12px; }
html:not([data-theme="dark"]) .route-input, html:not([data-theme="dark"]) .search-input, html:not([data-theme="dark"]) .city-dropdown-trigger { height:48px; border:1px solid #d9e3ee; border-radius:13px; background:#f5f8fc; color:#0f2742; }
html:not([data-theme="dark"]) .route-input:focus, html:not([data-theme="dark"]) .search-input:focus, html:not([data-theme="dark"]) .city-dropdown-trigger:focus { border-color:#1b6cff; background:#fff; box-shadow:0 0 0 3px rgba(27,108,255,.16); }
html:not([data-theme="dark"]) .search-btn { min-width:62px; border-radius:13px; background:#1b6cff; color:#fff; box-shadow:0 4px 12px rgba(27,108,255,.3); }
html:not([data-theme="dark"]) .map-search-btn { min-width:52px; border:1px solid #cfe0f5; border-radius:13px; background:#eaf2ff; color:#1b6cff; }
html:not([data-theme="dark"]) .search-help { color:#7189a2; }
html:not([data-theme="dark"]) .route-search-results { background:#f5f8fc; border-radius:13px; }
html:not([data-theme="dark"]) .app-shell > .svc-notice { margin:0; }
html:not([data-theme="dark"]) .section-heading span { color:#f0a800; }
@media (min-width:721px) { html:not([data-theme="dark"]) .board-header { border-radius:0 0 26px 26px; } }

/* 라이트 모드: 버스번호·정거장·지역 탭을 눈에 띄는 3분할 버튼으로, 패널이 닫혀 있으면 카드 위아래 여백을 균등하게 */
html:not([data-theme="dark"]) .search-board { padding:14px; }
html:not([data-theme="dark"]) .search-mode-tabs { gap:8px; padding:0; background:transparent; margin:0 0 16px; }
html:not([data-theme="dark"]) .search-mode { height:48px; border:1.5px solid #cfdcec; border-radius:14px; background:linear-gradient(180deg,#fff,#f3f7fc); color:#15324d; font-size:15px; font-weight:800; letter-spacing:-.02em; box-shadow:0 2px 0 #dbe5f1, 0 4px 10px rgba(20,60,120,.06); transition:transform .08s, background .15s; }
html:not([data-theme="dark"]) .search-mode:active { transform:translateY(1px); box-shadow:0 1px 0 #dbe5f1; }
html:not([data-theme="dark"]) .search-mode.active { border-color:#1b6cff; background:linear-gradient(180deg,#3b82ff,#1b6cff); color:#fff; box-shadow:0 2px 0 #1555c9, 0 6px 14px rgba(27,108,255,.32); }
html:not([data-theme="dark"]) .search-board:not(:has(.search-mode-panel:not([hidden]))):not(:has(#cityPanel:not([hidden]))) .search-mode-tabs { margin-bottom:0; }

/* 라이트 모드: 탭 아이콘 + 히어로 노선 일러스트 */
html:not([data-theme="dark"]) .search-mode { height:68px; display:grid; align-content:center; justify-items:center; gap:5px; padding:6px 4px; }
html:not([data-theme="dark"]) .search-mode::before { content:""; width:24px; height:24px; background:currentColor; -webkit-mask:var(--ic) center/contain no-repeat; mask:var(--ic) center/contain no-repeat; opacity:.9; }
html:not([data-theme="dark"]) #routeModeBtn { --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='15' rx='3'/%3E%3Cpath d='M4 11h16M8 18v2.5M16 18v2.5'/%3E%3Ccircle cx='8' cy='14.6' r='.6'/%3E%3Ccircle cx='16' cy='14.6' r='.6'/%3E%3C/svg%3E"); }
html:not([data-theme="dark"]) #stationModeBtn { --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
html:not([data-theme="dark"]) #regionModeBtn { --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6.5v13.5l6-2.5 6 2.5 6-2.5V4l-6 2.5z'/%3E%3Cpath d='M9 4v13.5M15 6.5V20'/%3E%3C/svg%3E"); }
html:not([data-theme="dark"]) .search-mode:not(.active)::before { color:#1b6cff; }
html:not([data-theme="dark"]) .search-mode:not(.active) { color:#15324d; }
html:not([data-theme="dark"]) .board-header::after { content:""; position:absolute; right:-6px; top:46px; width:210px; height:143px; background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 150' fill='none'><path d='M6 140C50 140 60 90 100 90S150 40 214 18' stroke='%231b6cff' stroke-opacity='.28' stroke-width='3' stroke-dasharray='2 9' stroke-linecap='round'/><g fill='%23fff' stroke='%231b6cff' stroke-opacity='.45' stroke-width='3'><circle cx='42' cy='128' r='6'/><circle cx='100' cy='90' r='6'/><circle cx='160' cy='50' r='6'/></g><rect x='168' y='4' width='40' height='26' rx='7' fill='%231b6cff' fill-opacity='.9'/><rect x='173' y='9' width='14' height='9' rx='2' fill='%23fff' fill-opacity='.85'/><rect x='190' y='9' width='14' height='9' rx='2' fill='%23fff' fill-opacity='.85'/><circle cx='180' cy='31' r='3.5' fill='%2310305a'/><circle cx='198' cy='31' r='3.5' fill='%2310305a'/></svg>") center/contain no-repeat; pointer-events:none; z-index:0; }
html:not([data-theme="dark"]) .board-header > * { position:relative; z-index:1; }
html:not([data-theme="dark"]) .board-header h1 { background:linear-gradient(90deg,#0f2742 55%,#1b6cff); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }

/* 헤더 좌측 로고: 앱 아이콘과 같은 파랑 그라데이션 + 버스 심볼 (메트로온과 같은 구성) */
.top-bar .brand { gap:9px; }
.top-bar .brand-mark, html:not([data-theme="dark"]) .top-bar .brand-mark { width:32px; height:32px; border-radius:10px; background:linear-gradient(140deg,#2f7bff 0%,#0f3d8f 100%); box-shadow:0 4px 12px rgba(27,108,255,.38); }
.top-bar .brand-mark svg { width:24px; height:24px; }

/* 헤더 워드마크: BUS(굵은 글자) + LIVE(실시간 표시 알약) */
.top-bar .brand-word { display:inline-flex; align-items:center; gap:5px; letter-spacing:0; line-height:1; }
.top-bar .brand-word b { font-size:19px; font-weight:900; letter-spacing:-.045em; color:#fff; transform:skewX(-6deg); }
.top-bar .brand-word i { position:relative; display:inline-flex; align-items:center; gap:4px; height:19px; padding:0 7px 0 6px; border-radius:6px; font-style:normal; font-size:11.5px; font-weight:900; letter-spacing:.06em; color:#fff; background:linear-gradient(135deg,#2f7bff,#1b4fd6); box-shadow:0 2px 6px rgba(27,108,255,.4); }
.top-bar .brand-word i::before { content:""; width:6px; height:6px; border-radius:50%; background:#ffd84d; box-shadow:0 0 0 0 rgba(255,216,77,.7); animation:brandLive 1.8s ease-out infinite; }
@keyframes brandLive { 0% { box-shadow:0 0 0 0 rgba(255,216,77,.7); } 70%,100% { box-shadow:0 0 0 5px rgba(255,216,77,0); } }
html:not([data-theme="dark"]) .top-bar .brand-word b { color:#0f2742; }
@media (prefers-reduced-motion:reduce) { .top-bar .brand-word i::before { animation:none; } }

/* LIVE 알약: 4초 주기 — 빛 줄기가 한 번 훑고 지나가며 알약이 살짝 커지고 빛남 */
.top-bar .brand-word i { background:linear-gradient(105deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.65) 50%,rgba(255,255,255,0) 62%) no-repeat -160% 0/250% 100%,linear-gradient(135deg,#2f7bff,#1b4fd6); animation:brandLivePill 4s ease-in-out infinite; }
@keyframes brandLivePill {
    0% { background-position:-160% 0,0 0; transform:scale(1); box-shadow:0 2px 6px rgba(27,108,255,.4); }
    12% { transform:scale(1.08); box-shadow:0 0 0 3px rgba(79,150,255,.28),0 4px 14px rgba(27,108,255,.7); }
    38% { background-position:160% 0,0 0; transform:scale(1.08); }
    50%,100% { background-position:160% 0,0 0; transform:scale(1); box-shadow:0 2px 6px rgba(27,108,255,.4); }
}
@media (prefers-reduced-motion:reduce) { .top-bar .brand-word i { animation:none; } }

/* ===== 사이드 메뉴 하단 3항목 + 전체 화면 페이지(사용방법·앱 소개·개발자의 다른 앱) ===== */
.side-menu .side-menu-item { display:flex; align-items:center; gap:12px; width:100%; padding:14px 18px; border:0; border-bottom:1px solid rgba(255,255,255,.08); color:#fff; background:transparent; text-align:left; font-size:14.5px; font-weight:700; }
.side-menu .side-menu-item:active { background:rgba(255,255,255,.1); }
.side-menu .side-menu-dev { margin-top:auto; border-top:1px solid rgba(255,255,255,.14); }
.side-menu .mi-icon { flex:0 0 auto; display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:rgba(255,255,255,.12); }
.side-menu .mi-icon svg { width:18px; height:18px; fill:none; stroke:#bfe0ff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.side-menu .mi-label { flex:1; min-width:0; }
.side-menu .mi-chevron { color:#8aa0b8; font-size:20px; line-height:1; }
.side-menu .side-link { padding-bottom:4px; }

.fs-page { position:fixed; z-index:1500; inset:0; display:flex; flex-direction:column; background:var(--paper); color:var(--ink); }
.fs-page[hidden] { display:none !important; }
body.fs-page-open { overflow:hidden; }
.fs-page-head { flex:none; display:flex; align-items:center; gap:6px; height:calc(54px + env(safe-area-inset-top)); padding:env(safe-area-inset-top) 8px 0; background:linear-gradient(155deg,#0a2547,#1b5fb8); color:#fff; box-shadow:0 2px 10px rgba(0,0,0,.2); }
.fs-page-head strong { flex:1; text-align:center; font-size:16px; letter-spacing:-.02em; }
.fs-page-head button { width:40px; height:40px; border:0; border-radius:12px; background:rgba(255,255,255,.16); color:#fff; font-size:24px; line-height:1; }
.fs-page-body { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; width:100%; max-width:720px; margin:0 auto; padding:16px 16px calc(32px + env(safe-area-inset-bottom)); }
.fs-hero { display:flex; align-items:center; gap:14px; padding:16px; border-radius:18px; color:#fff; background:linear-gradient(135deg,#1b6cff,#0a2547); box-shadow:0 10px 24px rgba(27,108,255,.22); }
.fs-hero strong { display:block; font-size:17px; letter-spacing:-.03em; }.fs-hero p { margin:4px 0 0; font-size:13px; line-height:1.5; color:#d3e6ff; }
.fs-hero-icon { flex:0 0 auto; display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:rgba(255,255,255,.18); }
.fs-hero-icon svg { width:26px; height:26px; fill:none; stroke:#fff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.fs-steps { list-style:none; margin:16px 0 0; padding:0; display:grid; gap:10px; }
.fs-steps li { display:flex; gap:13px; padding:15px; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.fs-steps li > b { flex:0 0 auto; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#1b6cff; color:#fff; font-size:14px; box-shadow:0 3px 8px rgba(27,108,255,.35); }
.fs-steps h3 { margin:0 0 4px; font-size:15px; letter-spacing:-.03em; }.fs-steps p { margin:0; font-size:13px; line-height:1.6; color:var(--muted); }
.fs-page em { font-style:normal; font-weight:800; color:#1b6cff; }
.fs-section { margin-top:22px; }
.fs-label { display:block; color:#1b6cff; font-size:11px; font-weight:900; letter-spacing:.14em; }
.fs-section > h3 { margin:5px 0 11px; font-size:18px; letter-spacing:-.04em; }
.fs-card { margin-top:8px; padding:13px 15px; border:1px solid var(--line); border-radius:14px; background:var(--white); }
.fs-card b { display:block; font-size:14px; }.fs-card p { margin:5px 0 0; font-size:13px; line-height:1.6; color:var(--muted); }.fs-card a { color:#1b6cff; font-weight:700; }
.fs-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.fs-feature { padding:14px; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.fs-feature > span { display:grid; place-items:center; width:38px; height:38px; margin-bottom:9px; border-radius:12px; background:#e4eeff; }
.fs-feature svg { width:21px; height:21px; fill:none; stroke:#1b6cff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.fs-feature h4 { margin:0 0 4px; font-size:14px; letter-spacing:-.03em; }.fs-feature p { margin:0; font-size:12px; line-height:1.55; color:var(--muted); }
.fs-brandcard { padding:26px 20px; text-align:center; border-radius:22px; color:#fff; background:radial-gradient(120% 90% at 100% 0%,rgba(255,255,255,.18),rgba(255,255,255,0) 60%),linear-gradient(145deg,#1b6cff,#0a2547); box-shadow:0 12px 28px rgba(27,108,255,.25); }
.fs-appicon { display:block; margin:0 auto 12px; border-radius:20px; box-shadow:0 8px 20px rgba(0,0,0,.3); }
.fs-eyebrow { display:block; color:#9fd0ff; font-size:11px; font-weight:900; letter-spacing:.16em; }
.fs-brandcard h2 { margin:6px 0 8px; font-size:26px; letter-spacing:-.05em; }.fs-brandcard p { margin:0 auto; max-width:360px; font-size:13.5px; line-height:1.6; color:#d3e6ff; }
.fs-dev-icon { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 12px; border-radius:20px; background:rgba(255,255,255,.18); }
.fs-dev-icon svg { width:32px; height:32px; fill:none; stroke:#fff; stroke-width:1.8; }
.fs-go { display:inline-block; margin-top:18px; padding:13px 24px; border-radius:14px; background:#ffd84d; color:#10305a; font-weight:900; text-decoration:none; box-shadow:0 6px 16px rgba(0,0,0,.25); }
.fs-dev small { display:block; margin:14px auto 0; max-width:320px; font-size:11.5px; line-height:1.55; color:#aecbea; }
.fs-foot { margin:20px 0 0; text-align:center; font-size:12px; color:var(--muted); }
html[data-theme="dark"] .fs-feature > span { background:#16314a; }
html[data-theme="dark"] .fs-page em, html[data-theme="dark"] .fs-label, html[data-theme="dark"] .fs-card a { color:#7db8ff; }
html[data-theme="dark"] .fs-page-head { background:linear-gradient(155deg,#0b121b,#12315c); }
html[data-theme="dark"] .fs-feature svg { stroke:#7db8ff; }

/* 헤더 앱 전환 아이콘(메트로온) */
.top-icon-btn.app-switch { text-decoration:none; }
.top-actions .app-switch { margin-right:2px; }
html:not([data-theme="dark"]) .top-icon-btn.app-switch { color:#1b6cff; }
