/* 슝 skin: yellow brand, round and soft UI.
   Linked from <body> so it comes after every <style> the runtime adds to <head> (same specificity → this wins). */

:root{
  --syung:#ffd400;--syung-deep:#f2c200;--syung-soft:#fff6c2;--syung-ink:#141414;
  --board:#fbfaf4;--paper:#fffdf6;--ink:#1d1f21;--secondary:#5d5a4e;--muted:#8a8676;--rule:#ece6cf;
  --control:#f5f1e1;--selected:#fff1a8;--focus:#141414;
  --shadow:0 3px 0 rgba(20,20,20,.08),0 6px 18px rgba(60,50,0,.10);
  --round:"Jua","Noto Sans KR","Apple SD Gothic Neo",sans-serif;
}
html[data-theme=dark]{
  --board:#131416;--paper:#1a1c1f;--ink:#f1efe6;--secondary:#b9b5a6;--muted:#8f8b7d;--rule:#2b2d30;
  --control:#232529;--selected:rgba(255,212,0,.16);--focus:#ffd400;
  --shadow:0 3px 0 rgba(0,0,0,.35),0 6px 18px rgba(0,0,0,.35);
}
::selection{background:var(--syung);color:var(--syung-ink)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:12px}

/* ---- header: the yellow bar ---- */
.mast{background:var(--syung);color:var(--syung-ink);border-bottom:0;box-shadow:0 2px 0 rgba(20,20,20,.12);position:relative;z-index:10}
.brand-icon{width:42px;height:42px;border-radius:12px;box-shadow:0 2px 0 rgba(20,20,20,.18);transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
.identity:hover .brand-icon{transform:translateX(3px) rotate(-6deg)}
.identity h1{font-family:var(--round);font-weight:400;font-size:28px;letter-spacing:.02em;line-height:1}
.identity p{color:#5b4c00;font-size:12.5px;font-weight:600;margin-top:4px}
.source-state{background:rgba(255,255,255,.55);color:var(--syung-ink);font-weight:600;padding:6px 12px 6px 10px;border-radius:999px}
.source-state i{box-shadow:0 0 0 3px rgba(255,255,255,.7)}
.source-state[data-state=ok] i{animation:syung-pulse 2s ease-in-out infinite}
@keyframes syung-pulse{50%{transform:scale(1.35)}}
/* settings (gear); the live status line stays in the DOM, hidden, for the runtime to write to */
.source-state[hidden]{display:none!important}
.settings-button{flex:none;width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:10px;background:transparent;color:inherit;cursor:pointer}
.settings-button svg{width:24px;height:24px;transition:transform .3s}
.settings-button[aria-expanded=true] svg{transform:rotate(60deg)}
.refresh-button{margin-left:auto}
.refresh-button+.settings-button{margin-left:0}
.refresh-button.spin svg{transform:rotate(360deg);transition:transform .6s}
.settings-button:hover{background:rgba(20,20,20,.08)}
html[data-theme=dark] .settings-button:hover{background:rgba(255,212,0,.12)}
.settings-panel{position:absolute;z-index:30;top:calc(100% + 8px);right:12px;width:min(304px,calc(100vw - 24px));padding:8px;border-radius:18px;background:var(--paper);color:var(--ink);box-shadow:var(--shadow)}
.settings-panel[hidden]{display:none}
.settings-panel h2{margin:6px 10px 6px;font-family:var(--round);font-weight:400;font-size:15px;color:var(--secondary)}
.setting-switch{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:inherit;font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer}
.setting-switch:hover{background:var(--control)}
.setting-icon{display:grid;place-items:center;width:20px;height:20px;color:var(--secondary)}
.setting-icon svg{width:18px;height:18px}
.setting-name{flex:1;min-width:0}
.switch{position:relative;flex:none;width:44px;height:26px;border-radius:999px;background:var(--rule);transition:background .2s}
.switch:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
.setting-switch[aria-pressed=true] .switch{background:var(--syung)}
.setting-switch[aria-pressed=true] .switch:after{transform:translateX(18px)}
html[data-theme=dark] .switch{background:#3a3c40}
.setting-row{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 10px;font-size:14px;font-weight:600}
.setting-name small{display:block;white-space:pre-line;margin-top:1px;font-size:11px;font-weight:500;color:var(--muted)}
.setting-value{min-width:34px;padding:3px 10px;border-radius:999px;background:var(--control);font-family:var(--round);font-weight:400;font-size:14px;text-align:center;font-variant-numeric:tabular-nums}
.segmented{flex:none;display:flex;padding:3px;border-radius:999px;background:var(--control)}
.segmented button{white-space:nowrap;padding:5px 9px;border:0;border-radius:999px;background:transparent;color:var(--secondary);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.segmented button[aria-pressed=true]{background:var(--syung);color:var(--syung-ink)}
/* my location: bottom right */
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group{margin:0 10px 18px 0}
html[data-theme=dark] .mast{background:#1b1c1f;color:var(--syung);box-shadow:0 2px 0 rgba(255,212,0,.35)}
html[data-theme=dark] .identity p{color:#c9c2a0}
html[data-theme=dark] .source-state{background:rgba(255,212,0,.1);color:#f1efe6}
html[data-theme=dark] .source-state i{box-shadow:0 0 0 3px rgba(255,212,0,.15)}

/* ---- full-width map; the line filter panel is gone, search floats on the map ---- */
.layout{grid-template-columns:minmax(0,1fr)!important}
.map-search{position:absolute;z-index:6;top:14px;left:14px;width:min(340px,calc(100% - 84px))}
.map-search input{box-shadow:var(--shadow);border-color:transparent!important;background:var(--paper)!important}
.map-search input:focus{border-color:var(--syung-deep)!important}
.maplibregl-ctrl-attrib.maplibregl-compact{border-radius:999px;background:var(--paper);color:var(--secondary);box-shadow:var(--shadow);margin:0 0 14px 12px!important}
.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:14px;padding:4px 30px 4px 10px;max-width:min(520px,calc(100vw - 110px))}
.maplibregl-ctrl-attrib a{color:inherit}
html[data-theme=dark] .maplibregl-ctrl-attrib-button{filter:invert(1)}

/* ---- search ---- */
.rail{background:var(--paper);border-right:0;box-shadow:2px 0 0 var(--rule)}
.search-wrap{border-bottom:0;padding-bottom:6px}
.search input{height:44px;border:2px solid var(--rule);border-radius:999px;background:var(--control);padding-left:42px;transition:border-color .15s,box-shadow .15s}
.search input:focus{outline:0;border-color:var(--syung-deep);box-shadow:0 0 0 4px rgba(255,212,0,.35);background:var(--paper)}
.search svg{left:15px;top:13px;color:var(--muted)}
.filter-head strong{font-family:var(--round);font-weight:400;font-size:15px}
.text-btn{text-decoration:none;background:var(--control);color:var(--secondary);padding:5px 11px;border-radius:999px;font-weight:600}
.text-btn:hover{background:var(--syung);color:var(--syung-ink)}
.line-list{padding:6px 10px 10px;scrollbar-color:var(--rule) transparent}
.line-btn{grid-template-columns:18px 1fr auto;gap:10px;border-radius:14px;min-height:40px;transition:background .15s,transform .15s}
.line-btn:hover{background:var(--control)}
.line-btn:active{transform:scale(.97)}
.line-btn[aria-pressed=true]{background:var(--selected);font-weight:700}
.swatch{width:14px;height:14px;box-shadow:0 0 0 2.5px var(--paper),0 0 0 4px var(--line)}
.count{background:var(--control);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:600}
.line-btn[aria-pressed=true] .count{background:rgba(255,255,255,.7)}
html[data-theme=dark] .line-btn[aria-pressed=true] .count{background:rgba(0,0,0,.3)}
.provenance{border-top:2px dashed var(--rule);font-size:11.5px}
.provenance strong{font-family:var(--round);font-weight:400;font-size:13px}
html[data-theme=dark] .search input{border-color:var(--rule);background:var(--control)}
html[data-theme=dark] .search input:focus{border-color:var(--syung);box-shadow:0 0 0 4px rgba(255,212,0,.2)}

/* ---- map controls: soft rounded pills ---- */
.maplibregl-ctrl-group{border-radius:16px!important;box-shadow:var(--shadow)!important;overflow:hidden;background:var(--paper)!important}
.maplibregl-ctrl-group button{width:34px!important;height:34px!important;transition:background .15s}
.maplibregl-ctrl-group button:hover{background:var(--syung-soft)!important}
.maplibregl-ctrl-group button+button{border-top:1px solid var(--rule)!important}
.maplibregl-ctrl-group .map-toggle,.maplibregl-ctrl-group .train-toggle{width:34px!important;height:34px!important}
.maplibregl-ctrl-group .map-toggle+.map-toggle,.maplibregl-ctrl-group .map-toggle+.train-toggle,.maplibregl-ctrl-group .train-toggle+.map-toggle{border-top:1px solid var(--rule)!important}
.maplibregl-ctrl-group .map-toggle[aria-pressed=true],.maplibregl-ctrl-group .train-toggle[aria-pressed=true]{color:var(--syung-ink)!important}
.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0}
html[data-theme=dark] .maplibregl-ctrl-group button:hover{background:rgba(255,212,0,.14)!important}
html[data-theme=dark] .maplibregl-ctrl-group .map-toggle[aria-pressed=true],html[data-theme=dark] .maplibregl-ctrl-group .train-toggle[aria-pressed=true]{color:var(--syung)!important}
.webgl-zoom{border:0!important;border-radius:999px!important;background:var(--paper)!important;color:var(--ink)!important;box-shadow:var(--shadow);padding:6px 11px!important;font-family:var(--round);font-weight:400!important;font-size:13px!important}
.live-notice{border-radius:999px!important;border:0!important;background:var(--syung)!important;color:var(--syung-ink)!important;box-shadow:var(--shadow)!important;padding:8px 16px!important}
html[data-theme=dark] .live-notice{background:#2a2612!important;color:var(--syung)!important}
.live-notice{top:66px!important;max-width:calc(100% - 28px)!important;text-align:center}   /* under the search bar, not over it */

/* ---- popups (station, train) ---- */
.maplibregl-popup-content{border-radius:18px!important;padding:14px 16px 12px!important;box-shadow:var(--shadow)!important;background:var(--paper);color:var(--ink)}
.maplibregl-popup-tip{border-top-color:var(--paper)!important;border-bottom-color:var(--paper)!important}
.maplibregl-popup-close-button{width:26px;height:26px;border-radius:50%;margin:6px;font-size:18px;line-height:1;color:var(--muted)}
.maplibregl-popup-close-button:hover{background:var(--control)}
.maplibregl-popup-content h3,.maplibregl-popup-content strong:first-child{font-family:var(--round);font-weight:400}
.station-pop .exit{border-radius:8px!important;box-shadow:0 1.5px 0 rgba(20,20,20,.25)}

/* ---- train tags: chunkier pills ---- */
.train-tag{border-radius:999px!important;border-width:2px!important;box-shadow:0 2px 0 rgba(20,20,20,.15)!important}

/* ---- phone ---- */
@media(max-width:720px){
  body{overflow:hidden!important}
  .app{height:100%!important;grid-template-rows:62px minmax(0,1fr)!important}
  .layout{grid-template-rows:minmax(0,1fr)!important}
  .map-search{top:10px;left:10px;width:calc(100% - 20px)}
  .maplibregl-ctrl-top-right{top:54px}   /* +/− under the full-width search bar */
  .identity h1{font-size:24px}
  .brand-icon{width:36px;height:36px;border-radius:10px}
  .line-btn{grid-template-columns:16px auto auto;min-height:34px;border:2px solid var(--rule);border-radius:999px;padding:3px 11px 3px 8px}
  .line-btn[aria-pressed=true]{border-color:var(--syung-deep)}
}

/* live-state dot */
.source-state[data-state=idle] i{background:#b3ad96}
.source-state[data-state=loading] i{background:#ff9f1a}
.source-state[data-state=ok] i{background:#1fbf6a}
.source-state[data-state=error] i{background:#ff5a4a}
html[data-theme=dark] .maplibregl-popup-content{background:var(--paper)}
html[data-theme=dark] .maplibregl-popup-tip{border-top-color:var(--paper);border-bottom-color:var(--paper)}

/* train popup: destination is the headline */
.train-inspect .tp-dest{font-family:var(--round);font-weight:400!important;font-size:22px!important}
html[data-theme=dark] .train-inspect .tp-now,html[data-theme=dark] .train-inspect th{color:var(--secondary)}
html[data-theme=dark] .train-inspect .sec{color:var(--ink);border-bottom-color:var(--rule)}

/* my location is drawn as map layers under the trains (me-* in the runtime); hide the control's DOM dot */
.maplibregl-user-location-dot,.maplibregl-user-location-accuracy-circle{display:none!important}
.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{filter:none}

/* ---- bottom sheet (station / train details): edge to edge, slides up from the bottom of the map ---- */
.sheet{position:absolute;z-index:20;left:0;right:0;bottom:0;max-height:62%;overflow:auto;overscroll-behavior:contain;
  transform:translateY(105%);transition:transform .32s cubic-bezier(.2,.8,.25,1);
  background:var(--paper);color:var(--ink);border-radius:22px 22px 0 0;box-shadow:0 -10px 30px rgba(40,35,0,.18);
  padding:10px max(20px,calc((100% - 760px)/2)) calc(18px + env(safe-area-inset-bottom,0px))}
.sheet.open{transform:none}
.sheet-grab{width:40px;height:5px;border-radius:3px;background:var(--rule);margin:0 auto 8px}
.sheet-close{position:absolute;top:12px;right:14px;width:32px;height:32px;border:0;border-radius:50%;background:var(--control);color:var(--secondary);font-size:14px;cursor:pointer}
.sheet-close:hover{background:var(--syung);color:var(--syung-ink)}
.sheet-body{padding-right:36px}
.sheet h3{font-family:var(--round);font-weight:400;font-size:24px;margin:2px 0 6px}
.sheet-follow{margin-top:12px;width:100%;height:42px;border:0;border-radius:999px;background:var(--syung);color:var(--syung-ink);font-family:var(--round);font-size:16px;cursor:pointer;box-shadow:0 2px 0 rgba(20,20,20,.15)}
.sheet .train-inspect .tp-dest{font-size:26px!important}
.sheet .train-inspect .tp-now{font-size:14px}
.sheet .train-inspect .sec{margin-top:14px;padding:0 0 4px;font-size:12px;font-weight:700;color:var(--secondary);border-bottom:1px solid var(--rule)}
.sheet .kv{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);gap:6px 12px;margin:8px 0 0;font-size:13px;align-items:baseline}
.sheet .kv dt{color:var(--muted);font-weight:600;white-space:nowrap}
.sheet .kv dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.sheet .kv .muted{color:var(--muted);font-weight:500}
.sheet .station-pop table{font-size:13px}
html[data-theme=dark] .sheet{box-shadow:0 -10px 30px rgba(0,0,0,.5)}
@media(prefers-reduced-motion:reduce){.sheet{transition:none}}
.sheet .station-sheet .tp-line{flex-wrap:wrap;gap:6px}
.sheet .station-sheet .chip{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700;color:var(--c)}
.sheet .station-sheet .chip .dot{width:9px;height:9px;border-radius:50%;background:var(--c)}
.sheet .station-sheet .chip+.chip{margin-left:4px}
.sheet .arrs{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px 18px;margin-top:8px}
.sheet .arr{display:grid;gap:3px;padding:8px 0;border-bottom:1px dashed var(--rule)}
.sheet .arr-h{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--c)}
.sheet .arr-h .dot{width:8px;height:8px;border-radius:50%;background:var(--c)}
.sheet .arr-h .muted{color:var(--muted);font-weight:500}
.sheet .arr-t{display:flex;gap:8px;align-items:baseline;font-size:14px;padding-left:14px}
.sheet .arr-t b{min-width:4.5em;font-variant-numeric:tabular-nums}
.sheet .arr-t .muted{color:var(--muted);font-size:13px}
.sheet .station-sheet .empty{margin-top:8px;color:var(--muted);font-size:13px}
.sheet .station-sheet .exits{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.sheet .station-sheet .exit{min-width:24px;height:24px;padding:0 7px;border-radius:8px;background:#ffd200;color:#1d1d1d;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:2px;box-shadow:0 1.5px 0 rgba(20,20,20,.25)}
.sheet .station-sheet .exit i{font-style:normal;font-size:11px}


/* ---- 길찾기 (lib/journey-ui.mjs) ---- */
.map-search{display:flex;align-items:center}
/* the one call to action: bottom middle of the map, between the credits and my location */
.route-cta{position:absolute;z-index:8;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);
  display:inline-flex;align-items:center;justify-content:center;gap:8px;width:min(360px,calc(100% - 132px));height:52px;padding:0 20px;
  border:0;border-radius:999px;background:var(--syung);color:var(--syung-ink);font-family:var(--round);font-size:18px;white-space:nowrap;
  box-shadow:0 3px 0 rgba(20,20,20,.18),0 10px 24px rgba(60,50,0,.22);cursor:pointer;transition:transform .15s}
.route-cta svg{position:static!important;width:22px;height:22px;flex:none}
.route-cta:active{transform:translateX(-50%) scale(.97)}
.route-cta:hover{filter:brightness(.97)}
.map-area:has(.sheet.open) .route-cta,body:has(.jbar:not([hidden])) .route-cta{display:none}
html[data-theme=dark] .route-cta{box-shadow:0 3px 0 rgba(0,0,0,.4),0 10px 24px rgba(0,0,0,.45)}
/* station search: matches under the field */
.search-list{position:absolute;z-index:7;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;border-radius:18px;background:var(--paper);color:var(--ink);box-shadow:var(--shadow);max-height:min(360px,55vh);overflow:auto;overscroll-behavior:contain}
.search-list[hidden]{display:none}
.search-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:6px 12px;border-radius:12px;cursor:pointer}
.search-list li:hover,.search-list li[aria-selected=true]{background:var(--control)}
.search-list b{font-size:16px;font-weight:700;white-space:nowrap}
.search-list span{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.search-list i{font-style:normal;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--c);color:#fff;white-space:nowrap}
.search-list .search-empty{color:var(--muted);font-size:14px;cursor:default}
/* station sheet: start or end a trip here */
.st-journey{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 4px}
.st-journey button{height:46px;border:0;border-radius:999px;background:var(--control);color:var(--ink);font-family:var(--round);font-size:16px;cursor:pointer}
.st-journey button[data-end=to]{background:var(--syung);color:var(--syung-ink)}
.journey{display:flex;flex-direction:column;gap:10px}
.jf{position:relative;display:flex;flex-direction:column;gap:4px}
.jf label{font-size:12px;font-weight:700;color:var(--secondary)}
.jf input,.jf select{width:100%;height:46px;padding:0 12px;border:1.5px solid var(--rule);border-radius:12px;background:var(--control);color:var(--ink);font:inherit;font-size:16px}   /* 16px: iOS zooms the page into smaller fields */
.jf select{width:auto;flex:none;padding-right:8px}
.jf-label{font-size:12px;font-weight:700;color:var(--secondary)}
.jf-when{align-self:flex-start}
.jf-when button{padding:8px 14px;font-size:14px}
.jf-at[hidden]{display:none}
.jf input:focus,.jf select:focus{outline:none;border-color:var(--syung-deep)}
.jf-row{display:flex;gap:6px}.jf-row input{flex:1;min-width:0}
.jf-here{flex:none;height:46px;padding:0 12px;border:0;border-radius:12px;background:var(--control);color:var(--ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.jf-hint{font-size:12px;color:var(--muted)}
.jf-list{position:absolute;z-index:3;left:0;right:0;top:100%;margin:4px 0 0;padding:4px;list-style:none;border-radius:12px;background:var(--paper);box-shadow:var(--shadow);max-height:240px;overflow:auto}
.jf-list button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.jf-list button:hover{background:var(--control)}
.jf-list b{font-size:14px}.jf-list small,.jf-empty{font-size:12px;color:var(--muted)}.jf-empty{padding:8px 10px}
.jf-go{height:50px;border:0;border-radius:999px;background:var(--syung);color:var(--syung-ink);font-family:var(--round);font-size:17px;cursor:pointer}
.jf-status{font-size:13px;color:var(--secondary);min-height:18px}
.jp{padding:12px;border-radius:14px;background:var(--control);display:flex;flex-direction:column;gap:6px}
.jp+.jp{margin-top:8px}
.jp header{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.jp-tag{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--syung);color:var(--syung-ink)}
.jp header strong{font-family:var(--round);font-weight:400;font-size:24px}
.jp header span:last-child{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.jp-meta{margin:0;font-size:12px;color:var(--muted)}
.jl-list{margin:4px 0 0;padding:0;list-style:none;display:flex;flex-direction:column}
.jl{display:grid;grid-template-columns:44px 14px 1fr;gap:8px;align-items:start;padding:6px 0}
.jl-time{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;padding-top:1px}
.jl-dot{width:12px;height:12px;margin-top:4px;border-radius:50%;background:var(--c,var(--muted));box-shadow:0 0 0 3px color-mix(in srgb,var(--c,var(--muted)) 25%,transparent)}
.jl.walk .jl-dot{background:transparent;border:2px dashed var(--muted);box-shadow:none;width:10px;height:10px}
.jl b{display:block;font-size:14px}.jl small{display:block;font-size:12px;color:var(--secondary)}
.jl-live{display:inline-block;margin-top:3px;font-size:11px;font-weight:700;color:#1f8f55}
.jl-est{display:inline-block;margin-top:3px;font-size:11px;color:var(--muted)}
.jp-note{margin:6px 0 0;font-size:11.5px;color:var(--muted)}
.jp{cursor:pointer;border:2px solid transparent;transition:border-color .15s}
.jp.on{border-color:var(--syung-deep);background:var(--paper);box-shadow:var(--shadow)}
.jp:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.jp-lines{display:flex;flex-wrap:wrap;gap:4px}
.jp-line{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--c);color:#fff}
.jp-line.walk{background:var(--rule);color:var(--ink)}
.jp-line.bus::before{content:"";display:inline-block;width:9px;height:9px;margin-right:4px;vertical-align:-1px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 3h14a2 2 0 0 1 2 2v11a2 2 0 0 1-1 1.7V20a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1H7v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2.3A2 2 0 0 1 3 16V5a2 2 0 0 1 2-2zm0 3v5h14V6zm2 8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm10 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z%27/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 3h14a2 2 0 0 1 2 2v11a2 2 0 0 1-1 1.7V20a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1H7v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2.3A2 2 0 0 1 3 16V5a2 2 0 0 1 2-2zm0 3v5h14V6zm2 8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm10 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z%27/%3E%3C/svg%3E") center/contain no-repeat}
.jl-bus{display:inline-block;padding:0 6px;border-radius:5px;background:var(--c);color:#fff;font-size:12px}
/* 길찾기: chosen route bar while the sheet is closed */
.jbar{position:absolute;z-index:15;left:14px;bottom:18px;width:min(460px,calc(100% - 84px));display:flex;align-items:stretch;background:var(--paper);color:var(--ink);border-radius:16px;box-shadow:var(--shadow);border:1.5px solid var(--syung)}
.jbar[hidden]{display:none}
.jbar-open{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:10px 4px 10px 14px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.jbar-lines{display:flex;flex-wrap:wrap;gap:4px;width:100%}
.jbar-open b{font-size:17px}
.jbar-open span{font-size:13px}
.jbar-more{margin-left:auto;font-weight:700;color:var(--syung-deep)}
.jbar-x{width:44px;border:0;background:none;color:var(--muted);font-size:16px;cursor:pointer;border-left:1px solid var(--rule)}
@media(max-width:640px){.jbar{left:10px;bottom:12px;width:calc(100% - 76px)}}
/* 길찾기: route kind tabs */
.jtabs{display:flex;gap:6px;overflow-x:auto;margin:4px 0 10px;padding-bottom:2px;scrollbar-width:none}
.jtabs::-webkit-scrollbar{display:none}
.jt{flex:none;height:32px;padding:0 12px;border:1.5px solid var(--rule);border-radius:999px;background:var(--paper);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.jt b{margin-left:2px;color:var(--muted)}
.jt.on{background:var(--syung);border-color:var(--syung);color:var(--syung-ink)}
.jt.on b{color:inherit}
.jp[hidden]{display:none}
.jp-line i{font-style:normal;opacity:.8;font-size:10px}
.jl-alts{display:block;margin-top:3px}
.jl-alts .jl-bus{font-size:11px;margin-right:2px}
/* many routes: only the chosen one shows its steps */
.jp:not(.on) .jl-list{display:none}
.sheet-body:has(.journey){padding-right:0}
.journey h3{padding-right:40px}

/* 길찾기 sheet: taller, so the routes have room under the form */
.sheet:has(.journey){max-height:86%}
/* no double-tap page zoom on the controls; the map keeps its own gestures */
.mast,.map-search,.route-cta,.sheet,.jbar,.settings-panel{touch-action:manipulation}
@media(max-width:720px){
  .app{grid-template-rows:52px minmax(0,1fr)!important}
  .identity p{display:none}
  .brand-icon{width:32px;height:32px}
  .identity h1{font-size:22px}
}
/* phones: pinch to zoom; the +/− buttons only take room */
@media(pointer:coarse){.maplibregl-ctrl-top-right{display:none}}
