/* KOREA Go (new): Seoul subway wayfinding. Navy station sign is the one loud element;
   line colors encode place categories (food = Line 3, hospital = Line 1, sight = Line 2, clinic = Line 5). */
:root{
  --paper:#FFFFFF; --tile:#F1F3F6; --ink:#1A1F29; --sub:#5E6573; --rule:#DEE2E8;
  --sign:#1F2A44; --onSign:#FFFFFF; --signSub:#AEB8CC; --taxi:#F5C400; --onTaxi:#1A1F29;
  --l1:#0052A4; --l2:#00A84D; --l3:#EF7C1C; --l4:#00A5DE; --l5:#996CAC; --l6:#CD7C2F; --l8:#E6186C; --l9:#BDB092;
  --danger:#C62F2F; --ok:#00875A; --you:#2E7CF6; --ground:#F6F7F4;
  --font:"Gothic A1","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;
  --tabh:64px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --paper:#12161D; --tile:#1B212B; --ink:#E8ECF2; --sub:#9AA3B2; --rule:#2A323E;
  --sign:#26324F; --signSub:#AEB8CC;
  --l1:#4D8FE0; --l2:#2CC26E; --l3:#F2913F; --l4:#33BCEB; --l5:#B48ACB;
  --danger:#F07070; --ok:#3CC48F; --you:#5A9BFF; --ground:#161B22; color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#12161D; --tile:#1B212B; --ink:#E8ECF2; --sub:#9AA3B2; --rule:#2A323E;
  --sign:#26324F; --signSub:#AEB8CC;
  --l1:#4D8FE0; --l2:#2CC26E; --l3:#F2913F; --l4:#33BCEB; --l5:#B48ACB;
  --danger:#F07070; --ok:#3CC48F; --you:#5A9BFF; --ground:#161B22; color-scheme:dark}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--tile);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.5;font-variant-numeric:tabular-nums;-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--l4);outline-offset:2px}
p{margin:0}
a{color:inherit}
img,video{max-width:100%;display:block}
[hidden]{display:none!important}

.app{max-width:520px;margin:0 auto;min-height:100%;background:var(--paper);display:flex;flex-direction:column;position:relative}
.bar{position:sticky;top:0;z-index:4;background:var(--paper);display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:calc(12px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) 10px max(18px,env(safe-area-inset-left,0px));border-bottom:1px solid transparent}
/* Brush-calligraphy wordmark (made in Higgsfield). The dark copy shows in dark mode. */
.mark{display:flex;align-items:center;gap:8px;text-decoration:none;font-weight:800}
.mark .logo{height:42px;width:auto;display:block}
.on-dark{display:none!important}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .on-light{display:none!important}:root:not([data-theme="light"]) .on-dark{display:block!important}}
:root[data-theme="dark"] .on-light{display:none!important}
:root[data-theme="dark"] .on-dark{display:block!important}
.admin-tag{font-size:13px;color:var(--sub);font-weight:600}
/* shown until the first screen draws */
.boot{min-height:60vh;display:grid;place-items:center}
.boot img{width:min(300px,72vw);height:auto}
.points{border:0;background:none;font-weight:800;color:var(--l3);padding:6px 0;font-size:15px}
.signin{border:1px solid var(--rule);background:var(--paper);border-radius:999px;padding:6px 14px;font-weight:600;font-size:14px}
main.screen{flex:1;padding:4px max(18px,env(safe-area-inset-right,0px)) calc(var(--tabh) + 28px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px))}
.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:520px;z-index:5;display:grid;grid-template-columns:repeat(5,1fr);
  border-top:1px solid var(--rule);background:var(--paper);padding-bottom:env(safe-area-inset-bottom,0px)}
.tabs button{border:0;background:none;height:var(--tabh);font-size:11.5px;color:var(--sub);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.tabs svg{width:23px;height:23px}
.tabs [aria-current="page"]{color:var(--ink);font-weight:800}

/* type scale 12 / 13 / 15 / 17 / 22 / 30 */
h1,h2,h3,h4{margin:0;text-wrap:balance;letter-spacing:-.01em}
.h1{font-size:22px;font-weight:800;margin:8px 0 12px}
.sec{margin-top:26px}
.sech{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px}
.sech h3{font-size:17px;font-weight:800}
.link{font-size:13px;color:var(--sub);background:none;border:0;padding:4px 0;text-decoration:none}
.sub{color:var(--sub);font-size:13.5px}
.small{font-size:12.5px;color:var(--sub)}
.note{font-size:13px;color:var(--sub);background:var(--tile);border-radius:12px;padding:10px 12px}

/* station sign: the signature */
.station{display:block;width:100%;text-align:left;border:0;background:var(--sign);color:var(--onSign);border-radius:16px;padding:16px}
.station .now{display:flex;align-items:center;gap:12px}
.badges{display:flex;gap:4px;flex:none}
.badge{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:14px;color:#fff;background:var(--c,var(--l4))}
.station .ko{font-size:30px;font-weight:800;line-height:1.05;letter-spacing:-.02em}
.station .en{font-size:13.5px;color:var(--signSub)}
.station .foot{display:flex;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.18);font-size:13.5px;color:var(--signSub)}
.station .foot b{color:var(--onSign);font-weight:600}

.seg{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--rule);border-radius:10px;overflow:hidden;margin:6px 0 12px}
.seg button{border:0;background:var(--paper);padding:9px 4px;font-size:13.5px;color:var(--sub)}
.seg button+button{border-left:1px solid var(--rule)}
.seg [aria-pressed="true"]{background:var(--ink);color:var(--paper);font-weight:600}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:12px;padding:12px 16px;font-weight:600;background:var(--sign);color:var(--onSign);text-align:center;text-decoration:none;min-height:44px}
.btn.quiet{background:var(--tile);color:var(--ink)}
.btn.taxi{background:var(--taxi);color:var(--onTaxi)}
.btn.danger{background:none;color:var(--danger);border:1px solid var(--rule)}
.btn.full{width:100%}
.btn.sm{padding:8px 12px;min-height:36px;font-size:14px}
.btn:disabled{opacity:.5;cursor:default}

.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:14px}
.act{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12.5px;padding:4px 0}
.act span{width:52px;height:52px;border-radius:16px;background:var(--tile);display:grid;place-items:center}
.act svg{width:23px;height:23px}

.rows{display:flex;flex-direction:column}
.r{display:flex;gap:12px;align-items:center;padding:12px 0;border:0;border-bottom:1px solid var(--rule);min-width:0;text-align:left;background:none;width:100%}
.rows>.r:last-child{border-bottom:0}
.r .t{flex:1;min-width:0}
.r .t b{display:block;font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.r .end{text-align:right;flex:none}
.dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--c)}
.tag{display:inline-block;font-size:11px;font-weight:400;color:var(--sub);border:1px solid var(--rule);border-radius:4px;padding:0 5px;margin-left:6px;vertical-align:2px;white-space:nowrap}
.tag.ok{color:var(--ok);border-color:currentColor}
.stars{color:#F5A400;letter-spacing:1px}

.check{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--rule);cursor:pointer}
.check:last-child{border-bottom:0}
.check input{margin-top:3px;width:19px;height:19px;accent-color:var(--l2);flex:none}
.check b{font-weight:600}
.done b{text-decoration:line-through;color:var(--sub)}

.phrase{border:1px solid var(--rule);border-radius:16px;padding:18px}
.phrase .k{font-size:30px;font-weight:800;line-height:1.2;letter-spacing:-.02em;word-break:keep-all}
.pills{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.pills::-webkit-scrollbar{display:none}
.pill{border:1px solid var(--rule);background:var(--paper);border-radius:999px;padding:7px 13px;font-size:13.5px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.pill[aria-pressed="true"]{border-color:var(--ink);background:var(--ink);color:var(--paper)}

.help{display:flex;gap:12px;align-items:center;padding:14px;border-radius:16px;background:var(--tile)}
.help .t{flex:1;min-width:0}
.help b{font-weight:800}

/* welcome */
.welcome{padding:8px 0 4px}
.welcome h1{font-size:30px;font-weight:800;line-height:1.15;letter-spacing:-.02em;margin:6px 0 10px}

/* moments */
.compose{display:flex;gap:12px;align-items:center;border:1px dashed var(--rule);border-radius:16px;padding:14px;cursor:pointer;width:100%;background:none;text-align:left}
.compose .plus{width:42px;height:42px;border-radius:50%;background:var(--sign);color:#fff;display:grid;place-items:center;font-size:24px;flex:none}
.post{margin-top:22px}
.who{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.ava{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#fff;background:var(--c,var(--l1));font-size:14px;flex:none}
.who .t{flex:1;min-width:0}
.who b{font-weight:600;display:block}
.more{border:0;background:none;padding:6px;color:var(--sub);font-size:20px;line-height:1}
.media{border-radius:16px;overflow:hidden;background:var(--tile);aspect-ratio:4/5;max-width:100%}
.media img,.media video{width:100%;height:100%;object-fit:cover}
.likebar{display:flex;align-items:center;gap:12px;margin-top:8px}
.like{border:0;background:none;padding:4px 0;display:inline-flex;align-items:center;gap:6px;font-weight:600}
.like svg{width:26px;height:26px}
.like[aria-pressed="true"] svg{fill:#E5484D;stroke:#E5484D}
.prog{flex:1;text-align:right;font-size:12.5px;color:var(--sub)}
.prog b{color:var(--l3)}
.track{height:3px;background:var(--tile);border-radius:2px;margin-top:6px;overflow:hidden}
.track i{display:block;height:100%;background:var(--l3)}
.seg.two{grid-template-columns:repeat(2,1fr)}
.cmlist{margin-top:10px;max-height:50vh;overflow-y:auto}
.cm{display:flex;gap:8px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--rule)}
.cm .t{flex:1;min-width:0;overflow-wrap:anywhere}
.cm b{font-weight:600}
.cmform{margin-top:12px}
.cmform .row{display:flex;gap:8px;margin-top:5px}
.cmform input{flex:1;min-width:0;border:1px solid var(--rule);background:var(--paper);border-radius:12px;padding:9px 12px;font-size:16px}
.cmform input:focus{border-color:var(--ink);outline:none}

/* translation note under other travelers' text */
.trnote{display:block;border:0;background:none;padding:4px 0;font-size:12.5px;color:var(--sub);text-align:left;text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:3px}

/* ask */
.q{padding:14px 0;border-bottom:1px solid var(--rule)}
.q:first-child{margin-top:6px}
.qcat{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--sub)}
.qcat .tag{margin-left:2px}
.qcat .more{margin-left:auto}
.qt{display:block;width:100%;border:0;background:none;padding:4px 0 0;text-align:left;font-size:17px;font-weight:800;line-height:1.35;letter-spacing:-.01em;overflow-wrap:anywhere}
.qbody{color:var(--sub);font-size:14px;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.q .small{margin-top:6px}
.qtitle{font-size:20px;font-weight:800;line-height:1.3;margin:6px 0 4px;overflow-wrap:anywhere}
.qtext{margin-top:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.qimg{border-radius:12px;margin-top:12px;max-height:360px;object-fit:contain;background:var(--tile)}
.qplace{display:flex;align-items:center;gap:4px;margin-top:10px}
.qplace svg{width:16px;height:16px}
.anh{font-size:15px;font-weight:800;margin:22px 0 4px;padding-top:14px;border-top:1px solid var(--rule)}
.ans{padding:12px 0;border-bottom:1px solid var(--rule)}
.ans.acc{border:1px solid var(--ok);border-radius:12px;padding:12px;margin:8px 0}
.accl{font-size:12.5px;font-weight:600;color:var(--ok);margin-bottom:6px}
.atext{white-space:pre-wrap;overflow-wrap:anywhere}
.abar{display:flex;align-items:center;gap:12px;margin-top:8px}
.abar .pill:disabled{opacity:.5;cursor:default}
.anform{margin-top:16px;display:flex;flex-direction:column;gap:5px}
.anform textarea{border:1px solid var(--rule);background:var(--paper);border-radius:12px;padding:11px 12px;width:100%;font-size:16px}
.anform textarea:focus{border-color:var(--ink);outline:none}
.preview{border-radius:12px;overflow:hidden;background:var(--tile);max-height:320px;display:grid;place-items:center}
.preview img,.preview video{max-height:320px;object-fit:contain}
/* Moments: swipeable photos, tags, comments */
.media{position:relative}
.slides{display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.slides::-webkit-scrollbar{display:none}
.slides:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.slide{flex:0 0 100%;height:100%;scroll-snap-align:center;scroll-snap-stop:always}
.slide img{width:100%;height:100%;object-fit:cover;display:block;user-select:none;-webkit-user-drag:none}
.media .count{position:absolute;top:10px;right:10px;background:rgba(18,22,29,.68);color:#fff;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;pointer-events:none}
.media .count b{font-weight:600}
.dots{display:flex;justify-content:center;gap:6px;margin-top:8px}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--rule)}
.dots i.on{background:var(--ink)}
.tagline{display:inline-flex;align-items:center;gap:3px;max-width:100%;vertical-align:bottom}
.tagline svg{width:13px;height:13px;flex:none}
.tagcard{display:flex;align-items:center;gap:10px;margin-top:12px;background:var(--tile);border-radius:12px;padding:10px 12px}
.tagcard>svg{width:22px;height:22px;flex:none;color:var(--l3)}
.tagcard .t{flex:1;min-width:0}
.tagcard b{display:block;font-weight:600;overflow-wrap:anywhere}
.btn svg{width:18px;height:18px}
.back{display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:8px 0;font-weight:600;color:var(--ink);font-size:15px}
.back svg{width:20px;height:20px}
.ava.sm{width:28px;height:28px;font-size:12px}
.cm .t{overflow-wrap:anywhere}
.cm .t b.nm{display:inline;font-weight:600;color:var(--ink);font-size:12.5px}
.thumbs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.thumbs img{width:76px;height:76px;object-fit:cover;border-radius:10px;flex:none;background:var(--tile)}
.thumbs video{max-height:240px;width:100%;border-radius:10px;background:var(--tile)}
.seg.four{grid-template-columns:repeat(4,1fr);margin:0 0 8px}
.seg.four button{padding:9px 2px;font-size:13px;line-height:1.2}
.lbl{font-size:13.5px;color:var(--sub)}

/* map */
.search{display:flex;gap:8px;align-items:center;border:1px solid var(--rule);border-radius:12px;padding:4px 4px 4px 12px;background:var(--paper)}
.search input{flex:1;min-width:0;border:0;background:none;padding:9px 0;outline:none}
.search:focus-within{border-color:var(--ink)}
.mapbox{position:relative;border-radius:16px;overflow:hidden;margin-top:10px;background:var(--ground);border:1px solid var(--rule);height:340px}
#naverMap{width:100%;height:100%}
.fallback{position:absolute;inset:0}
.fallback svg{width:100%;height:100%;display:block}
.pin{position:absolute;transform:translate(-50%,-50%);width:22px;height:22px;border-radius:50%;border:3px solid var(--paper);background:var(--c);padding:0;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.pin.sp{outline:2px solid var(--c);outline-offset:1px}
.you{position:absolute;width:14px;height:14px;border-radius:50%;background:var(--you);border:3px solid #fff;box-shadow:0 0 0 7px rgba(46,124,246,.22);transform:translate(-50%,-50%)}
.crosshair{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;border:3px solid #fff;background:var(--l3);box-shadow:0 0 0 2px var(--l3),0 2px 8px rgba(0,0,0,.35);pointer-events:none;z-index:5}
.mapnote{position:absolute;left:8px;bottom:8px;right:8px;font-size:12px;background:var(--paper);color:var(--sub);border-radius:8px;padding:4px 8px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* sheets */
.sheet{position:fixed;inset:0;background:rgba(10,14,22,.45);display:flex;align-items:flex-end;justify-content:center;z-index:20}
.sheet .in{background:var(--paper);width:100%;max-width:520px;border-radius:22px 22px 0 0;padding:10px max(18px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));max-height:90vh;overflow-y:auto}
.grab{width:38px;height:4px;border-radius:2px;background:var(--rule);margin:0 auto 14px}
.sheet h4{font-size:22px;font-weight:800}
.field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.field label{font-size:13.5px;color:var(--sub)}
.field input,.field select,.field textarea{border:1px solid var(--rule);background:var(--paper);border-radius:12px;padding:11px 12px;width:100%;min-width:0;font-size:16px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--ink);outline:none}
.err{color:var(--danger);font-size:13.5px;margin:6px 0}
.opt{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--rule);border-radius:12px;margin-bottom:8px;cursor:pointer}
.opt:has(input:checked){border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.opt input{accent-color:var(--ink);width:18px;height:18px}
.opt .t{flex:1;min-width:0}
.opt b{font-weight:600}
.sum{display:flex;justify-content:space-between;padding:3px 0}
.sum.total{border-top:1px solid var(--rule);margin-top:6px;padding-top:10px;font-weight:800;font-size:17px}
.chat{display:flex;flex-direction:column;gap:8px;margin:12px 0;min-height:80px}
.bub{max-width:84%;padding:9px 13px;border-radius:16px;font-size:15px;white-space:pre-wrap;word-break:break-word}
.bub.them{background:var(--tile);align-self:flex-start;border-bottom-left-radius:4px}
.bub.me{background:var(--sign);color:var(--onSign);align-self:flex-end;border-bottom-right-radius:4px}
.toast{position:fixed;left:50%;bottom:calc(var(--tabh) + 16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--paper);border-radius:12px;padding:10px 16px;font-size:14px;z-index:30;max-width:min(88%,460px);text-align:center}
@media (prefers-reduced-motion:no-preference){.sheet .in{animation:rise .22s ease-out}@keyframes rise{from{transform:translateY(24px);opacity:.6}}}

/* clinics & shop */
.clinic{padding:16px 0;border-bottom:1px solid var(--rule)}
.clinic:last-child{border-bottom:0}
.clinic .top{display:flex;justify-content:space-between;gap:10px}
.clinic .n{font-size:16px;font-weight:600}
.clinic dl{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;margin:8px 0 12px;font-size:14px}
.clinic dt{color:var(--sub)}
.clinic dd{margin:0}
.feature{border-radius:16px;background:var(--tile);padding:16px;display:grid;grid-template-columns:1fr 84px;gap:12px;align-items:center}
.feature h4{font-size:22px;font-weight:800;margin:0 0 4px}
.feature svg{width:84px;height:104px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px}
.prod{display:flex;flex-direction:column;gap:5px;min-width:0}
.prod .img{aspect-ratio:1;max-width:100%;border-radius:14px;background:var(--tile);display:grid;place-items:center}
.prod .img svg{width:58%;height:58%}
.prod b{font-weight:600;font-size:14px;line-height:1.35}
.prod .price{font-weight:800}
.prod .add{border:1px solid var(--rule);background:var(--paper);border-radius:10px;padding:8px;font-size:14px;font-weight:600;margin-top:2px}
.cartbtn{border:1px solid var(--rule);background:var(--paper);border-radius:999px;padding:7px 13px;font-weight:600;font-size:14px}
.cartbtn b{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:10px;background:var(--l3);color:#fff;font-size:11.5px;margin-left:5px;padding:0 5px}
.qty{display:inline-flex;align-items:center;border:1px solid var(--rule);border-radius:10px}
.qty button{border:0;background:none;width:34px;height:34px;font-size:18px}
.qty span{min-width:22px;text-align:center;font-weight:600}

/* me */
.prof{display:flex;gap:12px;align-items:center}
.prof .ava{width:52px;height:52px;font-size:20px}
.balance{margin-top:16px;border-radius:16px;background:var(--sign);color:var(--onSign);padding:16px}
.balance .n{font-size:30px;font-weight:800;letter-spacing:-.02em}
.balance .s{color:var(--signSub);font-size:13.5px}
.status{font-size:12px;border-radius:999px;padding:2px 8px;background:var(--tile);color:var(--sub);white-space:nowrap}
.status.ok{color:var(--ok)}
.status.warn{color:var(--l3)}
.empty{padding:24px 0;text-align:center;color:var(--sub)}

/* help levels: a subway line bullet in the level's line color */
.lvl{display:inline-flex;align-items:center;gap:4px;margin-left:6px;vertical-align:1px;font-size:11px;font-weight:600;line-height:16px;color:var(--ink);
  border:1.5px solid var(--c,var(--l4));border-radius:999px;padding:0 7px 0 3px;white-space:nowrap}
.lvl::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--c,var(--l4))}
.lvl.best{--c:var(--taxi)}
.levelbox{margin-top:12px;border:1px solid var(--rule);border-radius:16px;padding:14px}
.levelbox .n{font-size:22px;font-weight:800}
.levelbox .track{height:6px;border-radius:3px;margin-top:10px}
.levelbox .track i{background:var(--c)}
.levelbox .ends{display:flex;justify-content:space-between;margin-top:6px}

/* board: pinned best and questions */
.bestbox{border:1.5px solid var(--ink);border-radius:16px;padding:6px 14px;margin-bottom:12px}
.bestbox h3{font-size:15px;font-weight:800}
.bestbox .sech{margin:8px 0 0}
.bestbox .thumb{width:48px;height:48px;border-radius:10px;object-fit:cover;flex:none;background:var(--tile)}
.q .t b{white-space:normal}
.qd h4{font-size:17px;line-height:1.35}
.qd .body{margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.ans{padding:12px 0;border-bottom:1px solid var(--rule)}
.ans:last-child{border-bottom:0}
.ans .body{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}
.ans.accepted{border:1.5px solid var(--ok);border-radius:12px;padding:12px;margin-bottom:8px}
.acts{display:flex;gap:14px;align-items:center;margin-top:6px}
.helpful{border:1px solid var(--rule);background:var(--paper);border-radius:999px;padding:4px 11px;font-size:13px;font-weight:600}
.helpful[aria-pressed="true"]{border-color:var(--l2);color:var(--l2)}

/* Direction A: white cards on the light grey ground (home and travel tools) */
main.screen.tinted{background:var(--tile)}
.tinted .rows{background:var(--paper);border-radius:16px;padding:0 14px}
.tinted .help{background:var(--paper)}
.tinted .act span{background:var(--paper)}
.tinted .seg{background:var(--paper);border:0;border-radius:12px;padding:3px;gap:3px}
.tinted .seg button{border-radius:10px;background:none}
.tinted .seg button+button{border-left:0}
.tinted .seg [aria-pressed="true"]{background:var(--sign);color:var(--onSign)}
.tinted .search{background:var(--paper)}
.card{display:block;background:var(--paper);border-radius:16px;padding:14px 16px;margin-top:12px;border:0;text-align:left;width:100%;color:var(--ink)}
.card h3{font-size:17px;font-weight:800}
.card.sec{margin-top:26px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the station sign: main area, then weather · air · map cells */
.station{overflow:hidden}
.station .stmain{display:block;width:100%;border:0;background:none;color:inherit;text-align:left;padding:0}
.station .cells{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:14px -16px -16px;border-top:1px solid rgba(255,255,255,.16)}
.station .cells button{border:0;background:none;color:var(--onSign);text-align:left;padding:10px 14px;display:flex;flex-direction:column;gap:2px;min-width:0;min-height:52px}
.station .cells button+button{border-left:1px solid rgba(255,255,255,.16)}
.station .cells span{font-size:11.5px;color:var(--signSub)}
.station .cells b{font-weight:700;font-size:14.5px;display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.station button.foot{width:100%;border:0;border-top:1px solid rgba(255,255,255,.18);background:none;text-align:left;cursor:pointer}
.act.taxi span{background:var(--taxi);color:var(--onTaxi)}

/* air grade marks differ in shape as well as color */
.airmark{display:inline-block;width:9px;height:9px;flex:none;background:var(--ok);border-radius:50%}
.airmark.moderate{background:var(--l3);border-radius:2px}
.airmark.bad{background:var(--danger);border-radius:0;clip-path:polygon(50% 0,100% 100%,0 100%);width:11px;height:10px}
.airmark.very-bad{background:var(--l8);border-radius:0;transform:rotate(45deg);width:8px;height:8px}
.airmark.none{background:var(--sub)}

/* home nudges */
.card.nudge{display:flex;gap:12px;align-items:center;cursor:pointer}
.nudge .ic{width:40px;height:40px;border-radius:12px;background:var(--tile);color:var(--l1);display:grid;place-items:center;flex:none}
.nudge .ic svg{width:22px;height:22px}
.nudge .t{flex:1;min-width:0}
.nudge b{display:block;font-weight:700}

/* planner */
.plhead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.okchip{font-size:12px;color:var(--ok);border:1px solid currentColor;border-radius:999px;padding:3px 9px;font-weight:600;white-space:nowrap}
.days .pill{flex-direction:column;align-items:flex-start;gap:0;border-radius:12px;padding:6px 12px;line-height:1.25}
.days .pill small{font-size:11.5px;opacity:.8}
.days .pill[aria-pressed="true"]{background:var(--sign);border-color:var(--sign);color:var(--onSign)}
.stops{display:flex;flex-direction:column}
.stop{display:grid;grid-template-columns:46px 1fr auto;gap:8px;align-items:center;background:var(--paper);border-radius:14px;padding:8px 6px 8px 12px;min-height:56px}
.card .stop{padding:4px 0;min-height:44px}
.stime{font-weight:700;font-size:14px}
.sname{display:flex;gap:8px;align-items:center;border:0;background:none;text-align:left;padding:4px 0;min-width:0}
.sname b{display:block;font-weight:600;font-size:15px;overflow-wrap:anywhere}
.sname .small{display:block}
.leg{margin-left:28px;border-left:3px solid var(--rule);padding:6px 0 6px 28px;font-size:12.5px;color:var(--sub)}
.card .leg{margin-left:20px;padding-left:34px}
.tip{display:flex;gap:10px;align-items:center}
.tip svg{width:22px;height:22px;color:var(--l3);flex:none}

/* weather */
.station.wx{padding:18px 16px}
.wxtop{display:flex;justify-content:space-between;gap:12px}
.station.wx .ko{font-size:52px}
.wxsky{font-weight:600;margin-top:6px}
.wxicon svg{width:52px;height:52px;color:var(--taxi)}
.hours{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:16px;text-align:center;font-size:12.5px}
.hours div{display:flex;flex-direction:column;gap:2px;padding:4px 0;border-radius:8px}
.hours span{color:var(--signSub)}
.hours .wet{background:rgba(255,255,255,.08)}
.hours .wet span:last-child{color:#8FC3FF;font-weight:700}
.airbox{border:1px solid var(--rule);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:2px}
.airbox b{font-size:17px;display:flex;align-items:center;gap:6px}

/* money */
.station.fx label.en{display:block}
.fxin{display:flex;align-items:baseline;gap:8px;margin-top:2px}
.fxin span{font-size:22px;color:var(--signSub)}
.fxin input{flex:1;min-width:0;border:0;background:none;color:var(--onSign);font-size:34px;font-weight:800;letter-spacing:-.02em;padding:0;outline:none}
.fxin input:focus-visible{outline:2px solid var(--l4);outline-offset:4px;border-radius:4px}
.fxout{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid rgba(255,255,255,.16);margin-top:12px;padding-top:12px}
.fxout b{font-size:26px;font-weight:800}
.fxout select{border:1px solid rgba(255,255,255,.3);background:var(--sign);color:var(--onSign);border-radius:999px;padding:6px 12px;font-size:14px}
.station.fx p.en{margin-top:8px;font-size:12.5px}
.steps{margin:12px 0 0;padding:0;list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:10px}
.steps li{display:grid;grid-template-columns:28px 1fr;gap:10px;counter-increment:s}
.steps li::before{content:counter(s);width:28px;height:28px;border-radius:50%;background:var(--l1);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px;grid-row:span 2}
.steps b{font-weight:700}
.steps span{font-size:13.5px;color:var(--sub)}
.tinted>.btn.quiet{background:var(--paper)}

/* legal links and consent checkboxes */
.legal-links{display:flex;flex-wrap:wrap;gap:4px 16px;justify-content:center;margin-top:14px}
.legal-links a{color:var(--sub)}
.consents{border:1px solid var(--rule);border-radius:12px;padding:0 12px;margin:4px 0 8px}
.consents .check{padding:10px 0;font-size:14px}
.consents .check.all{font-size:15px}
.consents a{color:var(--l1);font-weight:600}

/* Home, In Korea (taste-skill pass, editorial greeting): white ground, grey panels, figures at regular weight.
   The line hue is the one data colour; place-type colours mark the stops. One 12px gutter. */
:root{--hm-line:#0052A4;--hm-past:#C2C7D0;--hm-rain:#D6E4F5}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--hm-line:#4D8FE0;--hm-past:#3A4250;--hm-rain:#1E2E45}}
:root[data-theme="dark"]{--hm-line:#4D8FE0;--hm-past:#3A4250;--hm-rain:#1E2E45}
.hm-title{font-size:26px;font-weight:400;line-height:1.2;letter-spacing:-.02em;margin:14px 0 0}
.hm-fact{margin:8px 0 0;font-size:16px;line-height:1.5}
.hm-actions{display:flex;gap:12px;margin-top:16px}
.hm-actions .btn{height:48px}
.hm-actions .hm-go{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-more{display:flex;gap:18px;margin-top:6px}
.hm-more .link{font-size:14px;color:var(--ink);padding:8px 0}
.hm-panel{display:block;width:100%;background:var(--tile);border:0;border-radius:12px;padding:16px;margin-top:12px;text-align:left;color:var(--ink)}
.hm-actions+.hm-more+.hm-panel{margin-top:20px}
.hm-ph{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.hm-ph h2{margin:0;font-size:16px;font-weight:600}
.hm-line{margin-top:12px;background:var(--paper);border-radius:10px;padding:14px 14px 2px}
.hm-stop{display:grid;grid-template-columns:44px 22px 1fr;column-gap:8px}
.hm-stop .t{font-size:13px;color:var(--sub);padding-top:1px}
.hm-stop.here .t{color:var(--hm-line);font-weight:600}
.hm-stop .rail{position:relative}
.hm-stop svg{position:absolute;inset:0;width:22px;height:100%;overflow:visible}
.hm-stop .nm{display:block;border:0;background:none;padding:0 0 14px;text-align:left;color:var(--ink);min-height:44px}
.hm-stop .nm b{display:block;font-size:15px;font-weight:600}
.hm-stop.next .nm b{font-weight:800}
.hm-stop.past .nm b{color:var(--sub)}
.hm-stop .n{display:block;font-size:13px;color:var(--sub);margin-top:2px}
.hm-key{display:flex;gap:16px;margin-top:10px;font-size:12.5px;color:var(--sub)}
.hm-key span{display:flex;align-items:center;gap:6px}
.hm-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.hm-tiles .hm-tile:last-child:nth-child(odd){grid-column:1/-1}
.hm-tile{background:var(--tile);border:0;border-radius:12px;padding:14px;min-height:100px;display:flex;flex-direction:column;justify-content:space-between;gap:4px;text-align:left;color:var(--ink)}
.hm-tile .l,.hm-tile .c{font-size:12.5px;color:var(--sub)}
.hm-tile .l{font-size:13px}
.hm-tile .v{font-size:24px;letter-spacing:-.01em}
.hm-tile .v small{font-size:14px;color:var(--sub)}
.hm-rows{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.hm-row{height:64px;padding:0 14px;border-radius:10px;background:var(--paper);border:1px solid var(--rule);display:flex;align-items:center;gap:12px;text-align:left;color:var(--ink);width:100%}
.hm-row i{width:10px;height:10px;border-radius:50%;flex:none}
.hm-row .nm{flex:1;min-width:0}
.hm-row .nm b{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-row .nm span,.hm-row .d span{display:block;font-size:13px;color:var(--sub)}
.hm-row .d{text-align:right;font-size:14px;flex:none}
.hm-nudge{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hm-nudge b{display:block;font-size:15px;font-weight:600}
.hm-nudge .small{display:block;margin-top:2px}
.hm-credit{margin-top:14px}
.hm .seg{margin-top:10px}
.hm-panel .btn.quiet{background:var(--paper)}
