@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/83f39dae133a5017.ttf") format('truetype');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/1ee63bd45c1ae1a6.ttf") format('truetype');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/853dd7057b1a8a2d.ttf") format('truetype');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/971addc6f1a627a3.ttf") format('truetype');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/c83c88dd6bad45e9.ttf") format('truetype');
}

@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/1e522418020a55cc.ttf") format('truetype');
}
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/fcaf1b5f5d1bf953.ttf") format('truetype');
}
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/80187a0f4d4008b3.ttf") format('truetype');
}
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/474ba1482d61e1e6.ttf") format('truetype');
}
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../kgo-5-6-15/fonts/a474ec352f9f61db.ttf") format('truetype');
}


/* ============ KGO Design System v4.1 ============ */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
:root{
 /* brand — deep pine. 유사 서비스의 블루 계열을 피한 신뢰색 */
 --brand:#123A2D; --brand-2:#1F6F4A; --brand-3:#2E8C62; --brand-soft:#E8F1EC; --brand-line:#C6DCD0;
 --accent:#A8650B; --accent-soft:#FBF3E6;
 /* surface */
 --bg:#E9E6DE; --surface:#FFFFFF; --surface-2:#F8F6F1; --surface-3:#F2EFE8;
 --line:#E6E2D9; --line-2:#D5D0C4;
 /* text */
 --ink:#15181A; --ink-2:#394046; --muted:#6B7177; --muted-2:#9BA1A7;
 /* signal */
 --ok:#1F6F4A; --ok-bg:#EDF5F0; --ok-line:#C6DCD0;
 --warn:#A8650B; --warn-bg:#FBF3E6; --warn-line:#EBD9B8;
 --chk:#A6332C; --chk-bg:#FBEEED; --chk-line:#EBCBC7;
 --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,"Roboto Mono",monospace;
 --numbers:"Be Vietnam Pro","Noto Sans KR",system-ui,sans-serif;
 --sh-1:0 1px 2px rgba(21,24,26,.05);
 --sh-2:0 2px 6px rgba(21,24,26,.06),0 1px 2px rgba(21,24,26,.04);
 --sh-3:0 10px 30px rgba(21,24,26,.12);
 --r-s:7px; --r-m:11px; --r-l:16px;
 --tb:calc(60px + env(safe-area-inset-bottom,0px));
}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Noto Sans KR","Segoe UI",Roboto,sans-serif;
 background:var(--bg);color:var(--ink);line-height:1.62;font-size:15px;letter-spacing:-.011em;
 -webkit-font-smoothing:antialiased}
#shell{max-width:680px;margin:0 auto;background:var(--surface-2);min-height:100vh;display:flex;flex-direction:column;
 box-shadow:0 0 0 1px var(--line),0 24px 60px rgba(21,24,26,.07)}

/* ---------- header ---------- */
header{background:var(--surface);border-bottom:1px solid var(--line);padding:calc(9px + env(safe-area-inset-top,0px)) 16px 9px;
 position:sticky;top:0;z-index:40;box-shadow:var(--sh-1)}
.hr1{display:flex;align-items:center;gap:9px}
.lg{display:flex;align-items:center;gap:7px;cursor:pointer}
.lgm{width:25px;height:25px;border-radius:7px;background:var(--brand);color:#fff;display:flex;align-items:center;
 justify-content:center;font-size:11.5px;font-weight:800;letter-spacing:.02em;flex:0 0 auto}
.lgt{font-weight:800;font-size:15.5px;letter-spacing:-.03em;color:var(--ink);line-height:1.1}
.lgs{display:block;font-size:10.5px;color:var(--muted);font-weight:500;letter-spacing:-.01em;margin-top:-1px}
.sp{flex:1}
.chip{background:var(--surface);color:var(--muted);border:1px solid var(--line-2);border-radius:999px;padding:4px 10px;
 font-size:11px;font-weight:700;cursor:pointer;font-family:inherit;letter-spacing:.02em;transition:all .14s}
.chip:active{transform:scale(.95)}
.chip.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.vtag{font-family:var(--mono);font-size:9.5px;color:var(--muted-2);margin-top:3px;letter-spacing:0}

/* ---------- main ---------- */
main{flex:1;padding:18px 16px calc(var(--tb) + 26px);animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* ---------- tab bar ---------- */
nav.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:680px;
 background:rgba(255,255,255,.94);backdrop-filter:saturate(1.6) blur(12px);-webkit-backdrop-filter:saturate(1.6) blur(12px);
 border-top:1px solid var(--line);display:flex;z-index:40;padding-bottom:env(safe-area-inset-bottom,0px);
 box-shadow:0 -1px 10px rgba(21,24,26,.04)}
nav.tabs a{flex:1;text-align:center;padding:8px 2px 7px;font-size:10.5px;color:var(--muted-2);text-decoration:none;
 font-weight:700;letter-spacing:-.03em;position:relative;transition:color .14s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
nav.tabs a svg{width:21px;height:21px;display:block;margin:0 auto 2px}
nav.tabs a.on{color:var(--brand)}
nav.tabs a.on:before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:26px;height:2.5px;
 background:var(--brand);border-radius:0 0 3px 3px}
nav.tabs a:active{opacity:.6}

/* ---------- type ---------- */
h1{font-size:25px;line-height:1.26;letter-spacing:-.04em;font-weight:800;margin-bottom:7px;color:var(--ink)}
h2{font-size:11.5px;color:var(--muted);margin:28px 0 10px;letter-spacing:.09em;text-transform:uppercase;font-weight:800;
 display:flex;align-items:center;gap:9px}
h2:after{content:"";flex:1;height:1px;background:var(--line)}
h3{font-size:15px;color:var(--ink);margin:0 0 4px;font-weight:700;letter-spacing:-.025em;line-height:1.38}
h4{font-size:10.5px;letter-spacing:.07em;color:var(--muted);margin-bottom:7px;text-transform:uppercase;font-weight:800}
p{margin-bottom:9px}
.lead{color:var(--muted);font-size:13.5px;margin-bottom:18px;line-height:1.64}
.note{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.56}
.foot{margin-top:28px;padding-top:13px;border-top:1px solid var(--line);font-size:11px;color:var(--muted-2);line-height:1.64}

/* ---------- hero ---------- */
.hero{background:var(--brand);color:#fff;border-radius:var(--r-l);padding:22px 20px 20px;margin-bottom:14px;
 position:relative;overflow:hidden;box-shadow:var(--sh-2)}
.hero:after{content:"";position:absolute;right:-54px;top:-54px;width:190px;height:190px;border-radius:50%;
 background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.14),rgba(255,255,255,0) 70%)}
.hero h1{color:#fff;font-size:26px;margin-bottom:9px;position:relative}
.hero p{color:rgba(255,255,255,.82);font-size:13.5px;line-height:1.6;margin:0;position:relative}
.hero .hb{margin-top:16px;display:flex;gap:8px;position:relative;flex-wrap:wrap}
.hero .hm{display:inline-flex;align-items:center;gap:5px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);
 border-radius:999px;padding:4px 11px;font-size:11.5px;color:rgba(255,255,255,.92);font-weight:600}

/* ---------- cards ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);padding:14px 15px;margin-bottom:10px;
 box-shadow:var(--sh-1)}
.card>b{font-size:14.5px;letter-spacing:-.025em;font-weight:700}
.card.p{background:var(--surface-3);box-shadow:none}
.card.b{background:var(--surface-3);box-shadow:none}
.card.w{background:var(--surface)}
.card.l{background:var(--ok-bg);border-color:var(--ok-line);box-shadow:none}
.card.g{background:var(--warn-bg);border-color:var(--warn-line);box-shadow:none}
.card.r{background:var(--chk-bg);border-color:var(--chk-line);box-shadow:none}

/* ---------- buttons ---------- */
.btn{border:1px solid transparent;border-radius:var(--r-s);padding:10px 15px;font-size:14px;font-weight:700;cursor:pointer;
 font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;
 letter-spacing:-.02em;transition:transform .1s,background .14s,box-shadow .14s;user-select:none}
.btn:active{transform:scale(.975)}
.bp{background:var(--brand);color:#fff;box-shadow:0 1px 2px rgba(18,58,45,.25)}
.bp:active{background:var(--brand-ink,#0B241C)}
.bs{background:var(--surface);color:var(--ink);border-color:var(--line-2);box-shadow:var(--sh-1)}
.bn{background:var(--brand-2);color:#fff}
.btn:disabled{opacity:.4;cursor:default;box-shadow:none}
.bw{width:100%;padding:13px;font-size:15px}
.row{display:flex;gap:7px;flex-wrap:wrap}

/* ---------- progress / question ---------- */
.prog{height:3px;background:var(--line);border-radius:3px;margin:7px 0 20px;overflow:hidden}
.prog i{display:block;height:100%;background:var(--brand);border-radius:3px;transition:width .3s cubic-bezier(.4,0,.2,1)}
.qn{font-family:var(--mono);font-size:11px;color:var(--muted);letter-spacing:.05em;text-transform:uppercase}
.qt{font-size:21px;font-weight:800;color:var(--ink);margin:7px 0 16px;line-height:1.36;letter-spacing:-.035em}
.opt{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:var(--surface);
 border:1px solid var(--line-2);border-radius:var(--r-m);padding:13px 15px;margin-bottom:7px;font-size:15px;cursor:pointer;
 font-family:inherit;color:var(--ink);letter-spacing:-.02em;box-shadow:var(--sh-1);transition:all .13s;line-height:1.45}
.opt:before{content:"";width:17px;height:17px;border-radius:50%;border:1.6px solid var(--line-2);flex:0 0 auto;transition:all .13s}
.opt:active{transform:scale(.99)}
.opt.sel{border-color:var(--brand);background:var(--brand-soft);font-weight:700;box-shadow:0 0 0 1px var(--brand)}
.opt.sel:before{border-color:var(--brand);background:var(--brand);box-shadow:inset 0 0 0 3px var(--brand-soft)}
.why{font-size:13px;color:var(--ink-2);background:var(--surface-3);border-radius:var(--r-s);border-left:2.5px solid var(--line-2);
 padding:10px 13px;margin-top:5px;display:none}
.why.show{display:block;animation:fade .18s ease}
.whyb{background:none;border:0;color:var(--muted);font-size:12.5px;cursor:pointer;padding:6px 0;font-family:inherit;
 text-decoration:underline;text-underline-offset:3px;font-weight:600}

/* ---------- verdict ---------- */
.verdict{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);padding:0;margin-bottom:12px;
 overflow:hidden;box-shadow:var(--sh-2)}
.verdict .vbar{height:5px}
.verdict .vin{padding:16px 17px 15px}
.verdict .vk{font-family:var(--mono);font-size:10px;letter-spacing:.11em;color:var(--muted-2);text-transform:uppercase}
.verdict .t{font-size:24px;font-weight:800;letter-spacing:-.04em;margin-top:5px;line-height:1.22}
.verdict .d{font-size:13.5px;color:var(--ink-2);margin-top:6px}
.s-ok .vbar{background:var(--ok)}.s-ok .t{color:var(--ok)}
.s-warn .vbar{background:var(--warn)}.s-warn .t{color:var(--warn)}
.s-chk .vbar{background:var(--chk)}.s-chk .t{color:var(--chk)}
.meter{margin-top:14px;border-top:1px solid var(--line);padding-top:11px}
.mh{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);font-family:var(--mono)}
.bar{height:8px;background:var(--surface-3);border-radius:999px;margin-top:5px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--brand);border-radius:999px;transition:width .5s cubic-bezier(.4,0,.2,1)}

/* ---------- badge / pill ---------- */
.badge{display:inline-block;font-size:10px;font-weight:800;padding:1.5px 6px;border-radius:999px;vertical-align:middle;
 border:1px solid;letter-spacing:.01em;white-space:nowrap}
.b-of,.b-ok{background:var(--ok-bg);color:var(--ok);border-color:var(--ok-line)}
.b-un{background:var(--chk-bg);color:var(--chk);border-color:var(--chk-line)}
.b-2{background:var(--surface-3);color:var(--muted);border-color:var(--line-2)}
.pill{display:inline-block;background:var(--surface-3);border:1px solid var(--line);border-radius:999px;padding:2.5px 9px;
 font-size:11.5px;margin:0 4px 4px 0;color:var(--ink-2);font-weight:500}
.pill b{font-weight:700;color:var(--ink)}
.pill.pw{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand);font-weight:700}
.pill.pr{background:var(--chk-bg);border-color:var(--chk-line);color:var(--chk);font-weight:700}
.pill.pa{background:var(--accent-soft);border-color:var(--warn-line);color:var(--accent);font-weight:700}

/* ---------- table ---------- */
.tw{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--r-m);
 background:var(--surface);margin:8px 0 11px;box-shadow:var(--sh-1)}
table{width:100%;border-collapse:collapse;font-size:13px}
.tw table{margin:0}
th{background:var(--surface-3);color:var(--ink);text-align:left;padding:9px 11px;font-weight:800;font-size:10.5px;
 letter-spacing:.05em;text-transform:uppercase;border-bottom:1px solid var(--line-2);white-space:nowrap}
th.thon{background:var(--brand);color:#fff;border-bottom-color:var(--brand)}
td{padding:9px 11px;border-bottom:1px solid var(--line);vertical-align:top}
tr:last-child td{border-bottom:0}
td b{font-family:var(--numbers);font-variant-numeric:lining-nums tabular-nums;font-weight:650}
ul{padding-left:18px;margin-bottom:9px}li{margin-bottom:4px}
a{color:var(--brand-2);text-underline-offset:2px}

/* ---------- list rows ---------- */
.lk{display:flex;align-items:center;gap:11px;padding:13px 14px;background:var(--surface);border:1px solid var(--line);
 border-radius:var(--r-m);margin-bottom:7px;font-size:14px;text-decoration:none;color:var(--ink);box-shadow:var(--sh-1);
 transition:transform .1s}
.lk:active{transform:scale(.99)}
.lk .ln{font-family:var(--mono);font-size:10.5px;color:var(--muted-2);min-width:19px;font-weight:700}
.lk b{font-weight:700;letter-spacing:-.025em}
.lk .ch{color:var(--muted-2);font-size:17px;line-height:1}

/* ---------- key-value ---------- */
.kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13.5px;
 align-items:baseline}
.kv>span{color:var(--muted)}
.kv b{color:var(--ink);font-family:var(--numbers);font-variant-numeric:lining-nums tabular-nums;font-weight:650;text-align:right}
.kv:last-child{border-bottom:0}

/* ---------- stats grid ---------- */
.scope{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}
.scope>div{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);padding:12px 13px;box-shadow:var(--sh-1)}
.scope .sl{font-size:10.5px;color:var(--muted);letter-spacing:.03em;font-weight:600;text-transform:uppercase}
.scope .sv{font-family:var(--numbers);font-variant-numeric:lining-nums tabular-nums;font-size:18px;font-weight:700;color:var(--ink);margin-top:3px}
.scope .su{font-size:11px;color:var(--muted-2);margin-top:1px}

/* ---------- split ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}
.split>div{border:1px solid var(--line);border-radius:var(--r-m);padding:13px;background:var(--surface);box-shadow:var(--sh-1)}
.split ul{padding-left:16px;font-size:13px;margin:0}
.split ul li{margin-bottom:5px;color:var(--ink-2)}
@media(max-width:470px){.split{grid-template-columns:1fr}}

/* ---------- school card ---------- */
.ucard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);padding:13px 14px;margin-bottom:8px;
 box-shadow:var(--sh-1);transition:transform .1s}
.ucard:active{transform:scale(.995)}
.ucard .un{font-size:16px;font-weight:800;color:var(--ink);letter-spacing:-.03em;line-height:1.32}
.ucard .uv{font-family:var(--numbers);font-variant-numeric:lining-nums tabular-nums;font-size:16.5px;font-weight:700;color:var(--ink)}
.ucard .acts{display:flex;gap:6px;margin-top:11px;padding-top:11px;border-top:1px solid var(--line);flex-wrap:wrap}
.ucard .acts .btn{padding:7px 11px;font-size:12.5px;border-radius:var(--r-s)}

/* ---------- timeline ---------- */
.tl{display:flex;gap:13px;padding:12px 0;border-bottom:1px solid var(--line);position:relative}
.tl:last-child{border-bottom:0}
.tl .m{min-width:86px;font-family:var(--numbers);font-variant-numeric:lining-nums tabular-nums;font-weight:700;color:var(--ink);font-size:12.5px;padding-top:1px}
.tl .m small{display:block;font-weight:500;font-size:10.5px;color:var(--muted-2);letter-spacing:0;margin-top:1px}
.tl .c{flex:1;font-size:13.5px}
.tl.past .m{color:var(--chk)}

/* ---------- accordion ---------- */
.acc{border:1px solid var(--line);border-radius:var(--r-m);margin-bottom:7px;background:var(--surface);overflow:hidden;
 box-shadow:var(--sh-1)}
.acc>b{display:flex;align-items:center;gap:7px;padding:13px 14px;cursor:pointer;font-size:14.5px;color:var(--ink);
 font-weight:600;letter-spacing:-.025em;line-height:1.45}
.acc>b:after{content:"";margin-left:auto;width:8px;height:8px;border-right:1.8px solid var(--muted-2);
 border-bottom:1.8px solid var(--muted-2);transform:rotate(45deg) translateY(-2px);transition:transform .18s;flex:0 0 auto}
.acc.open>b:after{transform:rotate(225deg) translateY(-2px)}
.acc>div{padding:0 14px 14px;font-size:14px;display:none}
.acc.open>div{display:block;animation:fade .18s ease}
.acc.hit{border-color:var(--ok-line)}
.acc.hit>b{background:var(--ok-bg)}

/* ---------- checkbox ---------- */
.chk{display:flex;gap:10px;align-items:flex-start;padding:11px 13px;border:1px solid var(--line-2);border-radius:var(--r-m);
 margin-bottom:7px;cursor:pointer;background:var(--surface);font-size:13.5px;box-shadow:var(--sh-1);transition:all .13s}
.chk.on{border-color:var(--brand);background:var(--brand-soft)}
.chk input{margin-top:2px;width:17px;height:17px;flex:0 0 auto;accent-color:var(--brand)}

/* ---------- inputs ---------- */
select,input[type=text],input[type=number]{padding:9px 11px;border-radius:var(--r-s);border:1px solid var(--line-2);
 font-size:14px;background:var(--surface);color:var(--ink);font-family:inherit;box-shadow:var(--sh-1);
 -webkit-appearance:none;appearance:none}
select{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%239BA1A7' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 10px center;background-size:9px;padding-right:27px}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
textarea{width:100%;min-height:150px;font-family:var(--mono);font-size:11.5px;border:1px solid var(--line-2);
 border-radius:var(--r-m);padding:12px;resize:vertical;line-height:1.65;background:var(--surface);color:var(--ink)}

/* ---------- sheet ---------- */
.sheet{position:fixed;inset:0;background:rgba(21,24,26,.45);z-index:60;display:flex;align-items:flex-end;justify-content:center;
 animation:fade .18s ease;backdrop-filter:blur(2px)}
.sheet .inner{background:var(--surface);width:100%;max-width:680px;max-height:88vh;overflow-y:auto;
 border-radius:var(--r-l) var(--r-l) 0 0;padding:10px 16px calc(28px + env(safe-area-inset-bottom,0px));
 animation:up .24s cubic-bezier(.3,1,.4,1);box-shadow:var(--sh-3)}
@keyframes up{from{transform:translateY(22px);opacity:.6}to{transform:none;opacity:1}}
.grab{width:36px;height:4px;border-radius:999px;background:var(--line-2);margin:0 auto 12px}
.shh{display:flex;align-items:flex-start;gap:9px;margin-bottom:12px}
.x{background:var(--surface-3);border:1px solid var(--line);border-radius:999px;width:30px;height:30px;font-size:15px;
 cursor:pointer;color:var(--muted);font-family:inherit;flex:0 0 auto;line-height:1}

/* ---------- misc ---------- */
.stepn{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;font-family:var(--mono);
 font-size:10.5px;font-weight:800;color:#fff;background:var(--ink);border-radius:999px;margin-right:7px;vertical-align:1px}
.toast{position:fixed;left:50%;bottom:calc(var(--tb) + 18px);transform:translateX(-50%);background:var(--ink);color:#fff;
 padding:11px 18px;border-radius:999px;font-size:13px;z-index:99;box-shadow:var(--sh-3);font-weight:600;
 animation:up .2s ease;max-width:84%;text-align:center}
.empty{text-align:center;padding:46px 18px;color:var(--muted-2);font-size:14px}
.empty svg{width:38px;height:38px;stroke:var(--line-2);stroke-width:1.4;fill:none;margin:0 auto 12px;display:block}
.hide{display:none}
.skel{background:linear-gradient(90deg,var(--surface-3) 25%,#EDEAE3 37%,var(--surface-3) 63%);
 background-size:400% 100%;animation:sh 1.3s infinite;border-radius:var(--r-m);height:68px;margin-bottom:9px}
@keyframes sh{0%{background-position:100% 50%}100%{background-position:0 50%}}
@media(min-width:681px){main{padding:24px 26px calc(var(--tb) + 30px)}}

/* v5.0 */
.s-exp .vbar{background:var(--brand-2)}.s-exp .t{color:var(--brand-2)}
.prompt{background:var(--brand-soft);border:1px solid var(--brand-line);border-radius:var(--r-m);padding:13px 14px;margin-bottom:10px;
 display:flex;gap:11px;align-items:flex-start}
.prompt .pt{flex:1}
.prompt b{font-size:14px;color:var(--brand);letter-spacing:-.025em}
.prompt .xx{background:none;border:0;color:var(--muted-2);font-size:16px;cursor:pointer;line-height:1;padding:2px 4px;font-family:inherit}
.chips{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 10px}
.chipb{background:var(--surface);border:1px solid var(--line-2);border-radius:999px;padding:8px 14px;font-size:13.5px;
 font-weight:600;cursor:pointer;font-family:inherit;color:var(--ink);box-shadow:var(--sh-1);transition:all .13s;letter-spacing:-.02em}
.chipb:active{transform:scale(.97)}
.chipb.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.skipb{background:none;border:0;color:var(--muted);font-size:13px;cursor:pointer;font-family:inherit;
 text-decoration:underline;text-underline-offset:3px;padding:10px 0;width:100%;font-weight:600}
.two{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}
.two>div{border:1px solid var(--line);border-radius:var(--r-m);padding:13px;background:var(--surface);box-shadow:var(--sh-1)}
.two h4{color:var(--brand);font-size:12.5px;letter-spacing:-.02em;text-transform:none;margin-bottom:8px}
.fold{border:1px solid var(--line);border-radius:var(--r-m);background:var(--surface);margin-bottom:10px;overflow:hidden;box-shadow:var(--sh-1)}
.fold>b{display:flex;align-items:center;gap:7px;padding:13px 14px;cursor:pointer;font-size:14px;color:var(--ink);font-weight:700}
.fold>b:after{content:"";margin-left:auto;width:8px;height:8px;border-right:1.8px solid var(--muted-2);
 border-bottom:1.8px solid var(--muted-2);transform:rotate(45deg) translateY(-2px);transition:transform .18s}
.fold.open>b:after{transform:rotate(225deg) translateY(-2px)}
.fold>div{padding:0 14px 14px;display:none}
.fold.open>div{display:block}
.sent{background:var(--ok-bg);border:1px solid var(--ok-line);border-radius:var(--r-m);padding:14px;text-align:center;margin-bottom:10px}


:root {
  --brand: #c8102e;
  --brand-2: #a80d27;
  --brand-3: #df2848;
  --brand-ink: #931024;
  --brand-soft: #fff0f3;
  --brand-line: #f0bfca;
  --bg: #eaedf2;
  --surface-2: #f5f6f8;
  --surface-3: #eff1f5;
  --line: #e4e7ed;
  --line-2: #d7dce6;
  --ink: #182333;
  --ink-2: #364357;
  --muted: #59677a;
  --muted-2: #647187;
  --grey: var(--muted);
  --grey2: var(--muted-2);
  --white: #fff;
  --r-s: 10px;
  --r-m: 15px;
  --r-l: 21px;
  --sh-1: 0 1px 2px #16233808;
  --sh-2: 0 8px 24px #1623380a;
  --tb: calc(68px + env(safe-area-inset-bottom, 0px));
  --shell-width: 560px;
}

body {
  font-family: 'Be Vietnam Pro', 'Noto Sans KR', system-ui, sans-serif;
  letter-spacing: -.015em;
}

html[lang="ko"] body { font-family: 'Noto Sans KR', 'Be Vietnam Pro', system-ui, sans-serif; }
button, input, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
#mn:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#shell { max-width: var(--shell-width); min-height: 100dvh; }
#hd { padding: env(safe-area-inset-top, 0px) 20px 0; }
.hr1 { min-height: 62px; gap: 9px; }
.lg { color: inherit; text-decoration: none; gap: 8px; }
.lg img { width: 33px; height: 33px; }
.lgt { font-size: 24px; color: #263446; letter-spacing: -.065em; }
.lgs { display: inline; margin: 0 0 0 3px; padding-left: 11px; border-left: 1px solid var(--line-2); font-size: 11px; }
.head-title { min-width: 0; font-size: 15px; line-height: 1.3; }
.ic { width: 21px; height: 21px; fill: currentColor; flex: none; vertical-align: middle; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; flex: none; padding: 0; color: var(--muted); border: 1px solid transparent; background: transparent; border-radius: 12px; cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn[aria-pressed="true"] { color: var(--brand); background: var(--brand-soft); }
main { padding: 25px 20px calc(var(--tb) + 26px); min-width: 0; animation: none; }
main[data-route="diagnose"] { padding-top: 23px; }
.assessment-mode main { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.assessment-mode .opt { min-height: 52px; padding-block: 9px; }
nav.tabs[hidden] { display: none; }
nav.tabs { max-width: var(--shell-width); min-height: var(--tb); z-index: 40; }
nav.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 9px 2px 8px; font-size: 10px; line-height: 1.3; }
nav.tabs a svg { margin: 0; width: 22px; height: 22px; }
nav.tabs a.on:before { width: 22px; }
h1 { font-size: clamp(23px, 6vw, 29px); line-height: 1.35; overflow-wrap: anywhere; }
h2 { text-transform: none; letter-spacing: -.02em; font-size: 16px; color: var(--ink); }
h2:after { display: none; }
h4 { text-transform: none; letter-spacing: -.01em; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
.foot, .note, .lead { overflow-wrap: anywhere; }
.btn { min-height: 44px; border-radius: 12px; }
.bw { min-height: 50px; }
.chipb { min-height: 39px; }
.chipb.on { background: var(--ink-2); border-color: var(--ink-2); }
.btn .ic { width: 18px; height: 18px; }
.bp { box-shadow: 0 2px 4px #a8052720; }
.empty .ic { margin: 0 auto 12px; }
.toast { animation: fade .18s ease; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lk .ic { color: var(--muted); }
.lk .ch { margin-left: auto; }
.tw { max-width: 100%; }
.kv > b { overflow-wrap: anywhere; }

.home-intro { margin: 1px 0 22px; }
.home-intro h1 { margin: 0 0 8px; font-size: clamp(29px, 8vw, 39px); line-height: 1.28; letter-spacing: -.05em; }
.home-intro p { color: var(--muted); margin: 0; font-size: 13px; }
.journey { padding: 20px 18px 17px; border-radius: 20px; }
.journey-head { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 16px; }
.journey-copy { min-width: 0; }
.journey-label { color: var(--brand-2); font-size: 11px; font-weight: 700; }
.journey h2 { margin: 4px 0 0; font-size: 17px; line-height: 1.4; }
.journey .btn { justify-content: space-between; }
.home-ring { color: var(--ink-2); display: grid; place-items: center; flex: none; width: 60px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--brand) var(--progress), var(--surface-3) 0); position: relative; font-size: 20px; font-weight: 800; }
.home-ring:before { content: ""; position: absolute; inset: 5px; border-radius: inherit; background: var(--surface); }
.home-ring span { position: relative; }
.home-ring small { font-size: 11px; color: var(--muted); font-weight: 500; }
.home-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 22px 0 0; }
.home-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 70px; color: var(--ink-2); text-decoration: none; text-align: center; font-size: 11px; line-height: 1.45; font-weight: 600; }
.shortcut-icon, .task-icon, .school-icon { display: grid; place-items: center; flex: none; background: var(--surface); color: var(--muted); width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; }
.task-menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.task-menu .lk { border: 0; box-shadow: none; margin: 0; border-radius: 0; background: transparent; min-height: 67px; }
.task-menu .lk + .lk { border-top: 1px solid var(--line); }
.task-menu .lk:first-child { border-radius: var(--r-m) var(--r-m) 0 0; }
.task-menu .lk:last-child { border-radius: 0 0 var(--r-m) var(--r-m); }
.task-icon { width: 36px; height: 36px; border: 0; background: var(--surface-3); border-radius: 11px; }
.task-icon .ic { width: 18px; height: 18px; }
.home-info { margin-top: 22px; }
.home-info summary, .filter-budget summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.home-info[open] > summary, .filter-budget[open] > summary { margin-bottom: 12px; }
.home-info h2 { margin-top: 12px; }

.qn { display: flex; justify-content: space-between; color: var(--muted); font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 12px; }
.qn b { color: var(--brand-2); }
.qt { font-size: clamp(23px, 6.4vw, 29px); margin: 6px 0 18px; }
.prog { height: 4px; margin: 8px 0 22px; }
.opt { justify-content: space-between; gap: 12px; min-height: 58px; padding: 13px 15px; margin-bottom: 9px; font-weight: 600; }
.opt:before { order: 1; }
.whyb, .skipb { min-height: 44px; }
.question-actions { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: stretch; gap: 8px; margin-top: 12px; }
.question-actions.equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.question-actions .btn { min-width: 0; min-height: 50px; padding: 9px 13px; text-align: center; line-height: 1.35; }
.question-actions .question-back { white-space: nowrap; }
.private-note { display: flex; gap: 7px; align-items: center; margin-top: 17px; }
.private-note .ic { width: 15px; height: 15px; }
.path-actions { margin-top: 14px; }
.result-title { margin: 0 0 4px; font-size: clamp(21px,6vw,26px); line-height: 1.32; }
.result-first { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); font-weight: 650; }
.result-first li:last-child { margin-bottom: 0; }
.result-detail { margin-top: 12px; }
.result-detail summary, .plan-settings summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.result-detail[open] summary, .plan-settings[open] summary { margin-bottom: 10px; }
.jump-target { scroll-margin-top: calc(77px + env(safe-area-inset-top,0px)); }
.s-exp .vbar { background: #33455f; }
.s-exp .t { color: #273b56; }
.verdict .t { font-size: clamp(23px, 7vw, 30px); }

.school-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin: 13px 0 9px; }
.search-box { display: flex; align-items: center; min-width: 0; position: relative; }
.search-box > .ic { color: var(--muted); width: 18px; height: 18px; position: absolute; left: 13px; pointer-events: none; }
.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 11px 9px 39px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.filter-button { background: var(--surface); border-color: var(--line-2); min-width: 49px; position: relative; }
.filter-button em { position: absolute; right: 4px; top: 3px; border-radius: 10px; background: var(--brand); color: white; font-size: 10px; padding: 0 4px; font-style: normal; }
.school-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 9px 0; }
.saved-link { min-width: 48px; min-height: 48px; margin-left: auto; display: inline-flex; justify-content: center; gap: 3px; align-items: center; padding-inline: 5px; color: var(--brand-2); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 600; text-decoration: none; }
.saved-link .ic { width: 16px; height: 16px; }
.school-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; align-items: baseline; margin: 17px 0 10px; }
.school-summary .note { margin: 0; }
.school-summary button { padding: 5px 0; }
.school-group { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 12px; }
.school-group .ucard { background: transparent; box-shadow: none; border: 0; border-radius: 0; margin: 0; }
.school-group .ucard + .ucard { border-top: 1px solid var(--line); }
.school-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.school-open { display: flex; align-items: flex-start; gap: 10px; text-align: left; background: none; border: none; color: inherit; font: inherit; cursor: pointer; min-width: 0; padding: 2px 0; }
.school-open > span:last-child { min-width: 0; }
.school-open .un { display: block; overflow-wrap: anywhere; }
.school-icon { background: #edf1f6; color: #405573; width: 42px; height: 45px; border-radius: 11px; font-size: 15px; font-weight: 800; }
.school-alternate-name { font-weight: 600; }
.school-open small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.55; }
.school-save { min-width: 48px; min-height: 48px; margin: -3px -6px 0 0; }
.ucard .acts { justify-content: space-between; align-items: center; margin: 9px 0 0; padding-top: 7px; gap: 3px 10px; }
.school-price { font-size: 12px; color: var(--muted); }
.school-price strong { color: var(--ink); }
.ucard .acts .school-compare { color: var(--muted); font-size: 11px; background: none; min-height: 48px; border: 0; }
.ucard .acts .school-compare[aria-pressed="true"] { color: var(--brand-2); background: var(--brand-soft); }
.school-compare .ic { width: 15px; height: 15px; }
.compare-dock { position: fixed; z-index: 41; bottom: var(--tb); left: 50%; width: min(calc(100% - 22px), calc(var(--shell-width) - 22px)); transform: translateX(-50%); margin-bottom: 6px; box-shadow: 0 4px 20px #86112630; }
main[data-route="schools"].with-compare, main[data-route="kept"].with-compare { padding-bottom: calc(var(--tb) + 80px); }
.filter-budget { padding-block: 7px; }
.filter-budget summary { min-height: 44px; padding: 11px 0; }
.filter-budget[open] > summary { margin-bottom: 0; }
.filter-budget[open] { padding-bottom: 12px; }
.tuition-chart-instruction { margin: 0 0 9px; }
.tuition-band-chart { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.tuition-band-choice { display: grid; grid-template-rows: 49px auto auto; gap: 3px; min-width: 0; min-height: 83px; padding: 4px 2px; border: 1px solid transparent; border-radius: 8px; background: var(--surface); color: var(--ink-2); cursor: pointer; font: inherit; font-size: 12px; line-height: 1.25; text-align: center; }
.tuition-band-choice:disabled { color: var(--muted); opacity: .65; cursor: default; }
.tuition-band-choice[aria-pressed="true"] { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }
.tuition-band-track { display: flex; align-items: end; border-bottom: 1px solid var(--line); }
.tuition-band-track i { display: block; width: 100%; background: var(--brand-2); border-radius: 4px 4px 0 0; }
.tuition-band-range, .tuition-band-choice strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tuition-band-selected { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; padding: 0 8px 0 12px; border: 1px solid var(--brand-line); border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; }
.tuition-band-selected > div { padding: 6px 0; }
.tuition-band-selected small { display: block; }
.tuition-band-selected button { flex: none; min-height: 44px; padding: 0 5px; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.compare-switch { display: grid; gap: 5px; margin-bottom: 12px; font-size: 12px; font-weight: 650; }
.compare-switch select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
.compare-frame { background: white; border: 1px solid var(--line); border-radius: var(--r-m); }
.compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.one-school .compare-grid { grid-template-columns: minmax(0,1fr); }
.compare-head { background: var(--surface-3); border-radius: var(--r-m) var(--r-m) 0 0; }
.compare-head > div { display: grid; grid-template-rows: 1fr auto; justify-items: center; min-width: 0; padding: 10px; }
.compare-grid > * + * { border-left: 1px solid var(--line); }
.compare-school-name { width: 100%; background: none; border: 0; color: var(--ink); font: inherit; font-size: 13px; font-weight: 750; display: grid; align-content: start; justify-items: center; gap: 6px; overflow-wrap: anywhere; cursor: pointer; min-height: 48px; }
.compare-remove { min-height: 48px; background: transparent; border: 0; box-shadow: none; color: var(--muted); font-size: 12px; }
.compare-field { border-top: 1px solid var(--line); }
.compare-field-label { text-align: center; background: #f7f8fb; color: var(--muted); padding: 6px 8px; font-size: 11px; font-weight: 650; }
.compare-field .compare-grid > span { text-align: center; font-size: 13px; font-weight: 650; padding: 8px 9px; overflow-wrap: anywhere; min-width: 0; }
.compare-cost-settings { padding: 11px 12px 12px; border-top: 1px solid var(--line); }
.compare-cost-settings h2 { margin: 0 0 8px; font-size: 15px; }
.compare-cost .compare-grid > span { padding-inline: 6px; }
.compare-cost-total .compare-grid > span { padding-block: 10px; font-size: 15px; font-weight: 750; }
.compare-more { border-top: 1px solid var(--line); }
.compare-more summary { min-height: 48px; padding: 14px 12px; font-size: 13px; font-weight: 650; cursor: pointer; }

.app-dialog { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: var(--shell-width); max-height: 89vh; max-height: 89dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--ink); border: 0; border-radius: 23px 23px 0 0; padding: 10px 20px calc(19px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--sh-3); }
.app-dialog[open] { animation: up .19s ease-out; }
.app-dialog:not([open]) { display: none; }
.app-dialog::backdrop { background: #17243d59; backdrop-filter: blur(2px); }
body:has(dialog[open]) { overflow: hidden; }
.sheet-fallback-open { overflow: hidden; }
.sheet-fallback-open .app-dialog { display: block; z-index: 92; }
#sheet-fallback-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 91; background: #2c1a2062; }
.shh { align-items: center; justify-content: space-between; gap: 9px; }
.shh h2 { margin: 0; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.sheet-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.filter-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 9px; }
.filter-form label, .date-field { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.filter-form select, .date-field input { width: 100%; min-width: 0; min-height: 47px; font-size: 16px; color: var(--ink); }
.filter-form .wide { grid-column: 1 / -1; }
@media (max-width: 420px) {
  .filter-form .filter-line-small { grid-column: 1 / -1; }
}
.filter-form .chk { display: flex; margin: 1px 0 0; }
.budget-options { border: 0; min-width: 0; }
.budget-options legend { color: var(--ink-2); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.budget-options label { position: relative; display: inline-flex; }
.budget-options input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.budget-options span { padding: 5px 8px; min-height: 37px; display: flex; align-items: center; gap: 3px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; }
.budget-options input:checked + span { border-color: var(--brand-line); color: var(--brand-ink); background: var(--brand-soft); }
.budget-options input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.budget-options small { color: var(--muted); font-size: 10px; }
.filter-actions { display: flex; gap: 8px; margin-top: 14px; }
.filter-actions .bp { flex: 1; }
.filter-actions .bs { white-space: nowrap; }
.app-settings { margin: 12px 0 4px; border-top: 1px solid var(--line); }
.app-settings summary { min-height: 44px; padding: 12px 2px; color: var(--muted); font-size: 14px; cursor: pointer; }
.app-settings-body { display: grid; gap: 9px; }
.language-trigger { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; }
.language-trigger > .ic { width: 18px; height: 18px; color: var(--brand-ink); }
.language-caret { display: grid; color: var(--muted); transform: rotate(90deg); }
.language-caret .ic { width: 12px; height: 12px; }
.language-choices { display: grid; gap: 8px; margin-top: 6px; }
.language-choice { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: 16px; font-weight: 650; text-align: start; }
.language-choice[aria-pressed="true"] { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }
.language-choice .ic { width: 18px; height: 18px; }
.lead-fields { display: grid; gap: 10px; }
.lead-fields label { display: grid; gap: 5px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.lead-fields input, .lead-fields select { width: 100%; min-height: 45px; font-size: 16px; }
.date-field input { font-family: inherit; border: 1px solid var(--line-2); padding: 9px 12px; border-radius: 10px; background: white; }
.date-field input::-webkit-date-and-time-value { text-align: left; }
.date-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
.plan-summary { margin-top: 14px; padding: 16px; }
.plan-summary h2 { margin: 0; line-height: 1.4; font-size: 20px; }
.plan-summary .journey-label { margin-bottom: 4px; }
.plan-summary .btn { margin-top: 5px; }
.plan-next-date { font-size: 15px; font-weight: 750; margin: 4px 0 7px; }
.plan-check { display: flex; gap: 9px; align-items: flex-start; min-height: 48px; cursor: pointer; }
.plan-check input { flex: none; height: 18px; width: 18px; margin-top: 4px; accent-color: var(--brand); }
.cost-fields summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.cost-fields[open] summary { margin-bottom: 10px; }
.cost-fields input, .cost-dorm input { width: min(52%, 160px); min-height: 44px; font-size: 16px; text-align: right; }
.cost-fields input[aria-invalid="true"], .cost-dorm input[aria-invalid="true"] { border-color: var(--chk); }
.cost-school h2, .cost-dorm h2, #cost-total h2 { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
.cost-school-option { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; text-align: left; color: var(--ink); background: var(--surface); border: 0; border-bottom: 1px solid var(--line); font: inherit; cursor: pointer; }
.cost-school-option > span { min-width: 0; overflow-wrap: anywhere; }
.cost-school-option small { display: block; margin-top: 2px; color: var(--muted); }
.cost-school-option > .ic { flex: none; width: 16px; height: 16px; color: var(--brand-ink); }
.cost-school-button { margin-bottom: 4px; border: 1px solid var(--line); border-radius: 10px; }
.cost-school-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cost-clear { margin: -8px 0 0; padding: 4px 0; border: 0; background: transparent; box-shadow: none; color: var(--brand-ink); font-size: 12px; }
.cost-school .kv, .cost-dorm .kv { gap: 8px; align-items: center; }
.cost-school .kv b { overflow-wrap: anywhere; }
.dorm-controls { display: grid; gap: 8px; }
.dorm-controls.with-duration { grid-template-columns: minmax(0, 1fr) minmax(112px, .58fr); }
.dorm-controls label { display: grid; gap: 4px; min-width: 0; color: var(--ink-2); font-size: 12px; font-weight: 650; }
.dorm-controls select { width: 100%; min-width: 0; min-height: 46px; font-size: 16px; }
.cost-rate { margin-top: 9px; padding: 8px 10px; border-radius: 9px; background: var(--paper); }
.cost-rate p { margin: 0; color: var(--muted); font-size: 12px; }
.cost-rate strong { display: block; margin: 2px 0; font-size: 17px; overflow-wrap: anywhere; }
.cost-rate a { color: var(--brand-ink); }
#cost-total { background: var(--brand-soft); border-color: var(--brand-line); }
#cost-total .note { margin: 4px 0 0; }
.cost-value, .cost-rate strong { font-family: var(--numbers); font-variant-numeric: lining-nums tabular-nums; }
.cost-value { color: var(--brand-ink); margin: 3px 0; font-size: clamp(19px, 5.5vw, 24px); font-weight: 750; overflow-wrap: anywhere; }
.cost-error { color: var(--chk); }
.plan-options .chipb { margin: 0; }
.plan-options { padding-bottom: 8px; }
.timeline-check { gap: 8px; }

@media (max-width: 400px) {
  main { padding-inline: 17px; }
  #hd { padding-inline: 17px; }
  .lgs { margin-left: 0; padding-left: 8px; }
}

@media (max-width: 350px) {
  #hd .lgs { display: none; }
}

@media (max-width: 340px) {
  .dorm-controls.with-duration { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

:root {
  --ink: #241d1f;
  --ink-2: #493e41;
  --muted: #695c61;
  --muted-2: #716267;
  --brand: #bd1636;
  --brand-2: #a70d2d;
  --brand-3: #ce2847;
  --brand-ink: #91132d;
  --brand-soft: #fcebed;
  --brand-line: #edcbd2;
  --paper: #f8f7f6;
  --bg: #efecea;
  --surface-2: var(--paper);
  --surface-3: #f2efee;
  --line: #e8e2e2;
  --line-2: #d8cdcf;
  --sh-1: 0 1px 2px #40202b05;
  --sh-2: 0 5px 16px #40202b0a;
  --sh-3: 0 10px 30px #40202b23;
  --r-m: 16px;
  --r-l: 20px;
  --tb: calc(72px + env(safe-area-inset-bottom, 0px));
}

#shell { background: var(--paper); }
#hd { background: var(--paper); border: 0; box-shadow: none; }
.hr1 { min-height: 62px; }
.lg img { width: 32px; height: 32px; }
.lgt { color: var(--ink); font-size: 23px; letter-spacing: -.06em; }
.lgs { color: var(--muted); }
.assessment-mode #hd .icon-btn {
  color: var(--ink-2);
  background: var(--surface);
  border-color: var(--line);
  border-radius: 50%;
}
main { padding-top: 17px; }
h1 { font-weight: 700; }
h2 { margin-top: 22px; }
.bp { background: var(--brand); box-shadow: none; }
.bp:hover { background: var(--brand-2); }
.bs { color: var(--brand-ink); }
.btn { border-radius: 11px; }

nav.tabs {
  gap: 4px;
  padding: 7px 14px calc(7px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  box-shadow: none;
}
nav.tabs a {
  min-width: 0;
  min-height: 53px;
  padding: 6px 3px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}
nav.tabs a svg { width: 21px; height: 21px; }
nav.tabs a.on { color: var(--brand-2); font-weight: 700; }
nav.tabs a.on:before { display: none; }
nav.tabs a:focus-visible { outline-offset: -2px; }

.home-heading { margin-bottom: 17px; font-size: clamp(25px, 8vw, 34px); line-height: 1.2; }
.home-hero {
  margin: 0;
  padding: 20px 17px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--brand);
  color: white;
  box-shadow: 0 7px 16px #a70d2d20;
}
.home-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; }
.home-hero-copy { min-width: 0; }
.home-hero h2 { margin: 0 0 6px; color: white; font-size: clamp(18px, 5.2vw, 21px); font-weight: 650; line-height: 1.25; }
.home-hero p { margin: 0; max-width: 25ch; color: #fff2f4; font-size: 13px; line-height: 1.55; }
:lang(ko) .home-hero p { word-break: keep-all; }
.hero-meter {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 65px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#fff var(--answered), #e17488 0);
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-meter::before { position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); content: ""; }
.hero-meter span { position: relative; }
.hero-meter small { color: #fff2f4; font-size: 11px; font-weight: 500; }
.home-hero .home-start {
  width: 100%;
  min-height: 47px;
  padding: 6px 7px 6px 13px;
  color: var(--brand-ink);
  background: var(--surface);
  border-radius: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.home-hero .home-start:hover { background: var(--brand-soft); }
.home-hero .home-start:focus-visible { outline-color: white; }
.home-restart { width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 12px; border: 1px solid #ffffff80; border-radius: 11px; background: transparent; color: white; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.home-restart:hover { background: #ffffff1a; }
.home-restart:focus-visible { outline-color: white; }
.start-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  background: var(--brand);
}

.home-schools { margin-top: 21px; }
.home-visa { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.home-visa h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.home-visa > p, .visa-roadmap-detail p { margin: 5px 0 10px; color: var(--muted); font-size: 14px; }
.visa-roadmap { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.visa-roadmap li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 9px; background: var(--paper); }
.visa-roadmap li b { color: var(--brand-ink); font-size: 15px; }
.visa-roadmap li span { line-height: 1.35; font-size: 13px; }
.visa-roadmap-detail summary { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; cursor: pointer; }
.visa-roadmap-detail summary::after { content: '▾'; margin-inline-start: auto; color: var(--brand-ink); }
.visa-roadmap-detail[open] summary::after { transform: rotate(180deg); }
.visa-roadmap-detail dl, .assessment-profile dl { margin: 0; }
.visa-roadmap-detail dl > div, .assessment-profile dl > div { padding: 8px 0; border-top: 1px solid var(--line); }
.visa-roadmap-detail dt, .assessment-profile dt { color: var(--ink); font-weight: 700; font-size: 14px; }
.visa-roadmap-detail dd, .assessment-profile dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; }
.assessment-profile { margin: 14px 0; padding: 12px 14px 5px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.assessment-profile h2 { margin: 0 0 8px; font-size: 17px; }
.assessment-profile dt { display: flex; flex-wrap: wrap; gap: 2px 9px; align-items: baseline; }
.assessment-profile dt > span { color: var(--brand-ink); }
.result-visa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 5px 0 0; font-size: 14px; }
.result-visa b { font-size: 16px; color: var(--brand-ink); background: var(--brand-soft); border-radius: 8px; padding: 3px 8px; }
.result-sources { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 10px; }
.verdict .result-first { font-weight: 500; }
.result-sources a { display: inline-flex; align-items: center; min-height: 34px; color: var(--brand-ink); font-size: .8125rem; text-underline-offset: 3px; }

.consultation-preview { margin-top: 12px; }
.consultation-preview-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-size: .875rem; line-height: 1.5; }
.consultation-fields { display: grid; gap: 12px; margin-bottom: 12px; }
.consultation-fields label { display: grid; align-content: start; gap: 5px; min-width: 0; color: var(--ink); font-size: .9375rem; font-weight: 650; }
.consultation-fields input { width: 100%; min-width: 0; min-height: 48px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; }
.consultation-fields small { color: var(--muted); font-size: .875rem; font-weight: 400; }
.consultation-privacy { border-bottom: 1px solid var(--line); margin: 0 0 12px; }
.consultation-privacy summary { min-height: 44px; padding-block: 10px; color: var(--brand-ink); font-size: .9375rem; font-weight: 650; cursor: pointer; }
.consultation-privacy p { margin: 0 0 12px; color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.consultation-consent { min-height: 44px; font-size: .875rem; line-height: 1.5; cursor: pointer; }
.consultation-consent:has(input:checked) { border-color: var(--brand); }
.consultation-preview .btn { margin-top: 12px; }
.consultation-status { margin: 0; color: var(--brand-ink); font-size: .9375rem; }
.consultation-status:not(:empty) { margin-top: 12px; }
@media (min-width: 760px) {
  .consultation-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.verdict .path-actions { display: grid; gap: 8px; }
.result-admissions { margin: 20px 0; }
.result-admissions h2 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.3; }
.assessment-admissions-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 6px; }
.assessment-admissions-heading h2 { margin: 0; }
.assessment-change-level { min-height: 44px; padding: 6px 9px; font-size: .875rem; }
.result-admissions > p { margin: 0 0 8px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.result-admissions > .result-admissions-meta { margin-bottom: 12px; font-size: .875rem; }
.result-school-list { display: grid; gap: 10px; }
.result-school-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.result-school-name { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.result-school-name > span:last-child { min-width: 0; }
.result-school-name strong { display: block; font-size: 1.0625rem; line-height: 1.3; }
.result-school-name small { display: block; margin-top: 2px; color: var(--muted); font-size: .875rem; }
.result-school-term { margin: 10px 0 0; color: var(--ink-2); font-size: .875rem; font-weight: 650; }
.result-school-window { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 4px 0 0; color: var(--ink-2); font-size: .875rem; }
.result-school-window b { color: var(--brand-ink); }
.result-school-deadline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 4px 0 0; color: var(--ink-2); font-size: .875rem; line-height: 1.4; }
.result-school-deadline strong { color: var(--ink); }
.result-school-deadline .is-soon { color: var(--brand-ink); }
.result-school-card dl { margin: 10px 0 0; border-top: 1px solid var(--line); }
.result-school-card dl > div { margin: 10px 0 0; }
.result-school-card dt { color: var(--ink-2); font-size: .875rem; font-weight: 650; }
.result-school-card dd { margin: 2px 0 0; font-size: 1rem; line-height: 1.45; }
.result-school-card dd span { display: block; margin-top: 2px; color: var(--ink-2); }
.result-school-award { color: var(--brand-ink); }
.result-school-price { display: grid; gap: 2px; margin: 10px 0 0; padding: 9px 10px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); }
.result-school-price p, .result-school-price small { margin: 0; font-size: .875rem; line-height: 1.35; }
.result-school-price p { font-weight: 650; }
.result-school-price small { color: var(--ink-2); }
.result-school-actions { display: grid; gap: 6px; margin-top: 12px; }
.result-school-actions.has-comparison { grid-template-columns: repeat(2,minmax(0,1fr)); }
.result-school-actions .btn { min-width: 0; min-height: 44px; padding: 8px 5px; white-space: normal; text-align: center; font-size: .875rem; }
.result-school-cost, .assessment-compare-add[aria-pressed="true"] { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }
.result-school-sources { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 5px; }
.result-school-sources a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-ink); font-size: .875rem; text-underline-offset: 3px; }
.result-admissions-more { margin-top: 10px; }
.result-admissions-more summary { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--brand-ink); font-weight: 650; cursor: pointer; }
.result-admissions-more .result-school-list { margin-top: 10px; }
.result-admission-actions { display: grid; gap: 8px; margin-top: 12px; }
.assessment-term-compare { margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.assessment-term-compare > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-height: 48px; padding: 11px 12px; border-radius: inherit; cursor: pointer; }
.assessment-term-compare > summary::marker { content: ''; }
.assessment-term-compare > summary::-webkit-details-marker { display: none; }
.assessment-term-compare > summary::after { content: ''; width: 8px; height: 8px; margin: 0 4px 4px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.assessment-term-compare[open] > summary::after { transform: rotate(225deg); margin-block: 4px 0; }
.assessment-compare-count { margin-inline-start: auto; color: var(--brand-ink); font-size: .875rem; font-weight: 650; white-space: nowrap; }
.assessment-compare-content { padding: 12px; border-top: 1px solid var(--line); }
.assessment-ranking { margin: 0 0 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.assessment-ranking p { margin: 7px 0 0; color: var(--ink-2); font-size: .875rem; line-height: 1.45; }
.assessment-compare-schools, .assessment-compare-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.assessment-compare-settings { margin-top: 8px; }
.assessment-compare-content label, .assessment-ranking label { display: grid; min-width: 0; gap: 4px; font-size: .875rem; line-height: 1.3; }
.assessment-ranking .assessment-open-only { display: flex; align-items: center; min-height: 44px; gap: 8px; cursor: pointer; }
.assessment-open-only input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--brand-ink); }
.assessment-ranking-empty { padding: 12px; color: var(--ink-2); }
.assessment-compare-content select, .assessment-ranking select { width: 100%; min-width: 0; min-height: 44px; padding: 6px 27px 6px 8px; border: 1px solid var(--line); border-radius: 8px; background-color: var(--surface); color: var(--ink); font-size: 1rem; text-overflow: ellipsis; }
.assessment-compare-hint, .assessment-compare-summary { margin: 10px 0 0; color: var(--ink-2); font-size: .875rem; line-height: 1.45; }
.assessment-compare-summary p { margin: 0 0 6px; }
.assessment-compare-table { width: 100%; margin-top: 10px; border-collapse: collapse; table-layout: fixed; text-align: start; }
.assessment-compare-table th { white-space: normal; overflow-wrap: anywhere; letter-spacing: normal; text-transform: none; background: transparent; }
.assessment-compare-table thead th { padding: 8px; border: 1px solid var(--line); vertical-align: top; text-align: start; }
.assessment-compare-table thead strong { display: block; margin-top: 4px; font-size: .9375rem; line-height: 1.32; overflow-wrap: anywhere; }
.assessment-compare-table tbody th { padding: 8px 8px 0; border-inline: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; font-weight: 650; text-align: start; }
.assessment-compare-table td { padding: 5px 8px 9px; border: 1px solid var(--line); border-top: 0; vertical-align: top; }
.assessment-compare-table .term-cost-amount { font-size: clamp(.9rem,4vw,1.05rem); }
.assessment-compare-table .after { background: var(--brand-soft); color: var(--brand-ink); }
.assessment-compare-table .after th { color: var(--brand-ink); }
.assessment-compare-missing { display: block; color: var(--ink-2); font-size: .875rem; line-height: 1.35; }
.assessment-compare-sources { margin-top: 10px; color: var(--ink-2); }
.assessment-compare-sources summary { padding: 10px 0; color: var(--brand-ink); font-size: .875rem; font-weight: 650; cursor: pointer; }
.assessment-compare-sources > div { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .875rem; }
.assessment-compare-sources p { margin: 4px 0 0; }
@media (min-width: 800px) {
  .result-school-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .result-school-list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .result-admission-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.cost-track { margin: 0 0 10px; color: var(--ink-2); overflow-wrap: anywhere; }
.cost-track strong { color: var(--brand-ink); }
.term-cost { margin-bottom: 14px; }
.term-cost h2 { margin-top: 0; }
.term-cost-school { display: grid; gap: 2px; margin: 0 0 12px; }
.term-cost-school strong { color: var(--ink); font-size: 1rem; }
.term-cost-school span, .term-cost-included, .term-cost-note, .term-cost-scope {
  margin: 0; color: var(--ink-2); font-size: .875rem; line-height: 1.5;
}
.term-cost-pair { display: grid; gap: 6px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.term-cost-pair > div { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-3); }
.term-cost-pair > div:last-child { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }
.term-cost-pair dt { font-size: .875rem; line-height: 1.35; font-weight: 650; }
.term-cost-pair dd { margin: 6px 0 0; }
.term-cost-amount { display: flex; flex-wrap: wrap; column-gap: 5px; font-size: clamp(.94rem,4vw,1.2rem); line-height: 1.3; font-variant-numeric: tabular-nums; }
.term-cost-amount > span { max-width: 100%; overflow-wrap: anywhere; }
.term-cost-high { display: inline-flex; align-items: baseline; column-gap: 4px; }
.term-cost-high > span { font-weight: 500; }
.term-cost-unknown { font-size: .9375rem; }
.term-cost-savings { margin: 9px 0 5px; color: var(--brand-ink); font-size: .875rem; }
.term-cost-savings strong { font-variant-numeric: tabular-nums; }
.term-cost-included, .term-cost-note, .term-cost-scope { margin-top: 7px; }
.term-cost-months { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; font-size: .875rem; }
.term-cost-months select { min-width: 6.25rem; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.cost-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 13px; }
.cost-modes button { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 7px; min-height: 48px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.cost-modes button[aria-pressed="true"] { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }
.cost-modes button b { white-space: nowrap; }
.d4-cost-controls { margin-top: 10px; }
.cost-school .kv input { width: min(48%,11rem); min-width: 0; font-size: 16px; }
.home-schools-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 10px; }
.home-schools-heading h2 { margin: 0; font-size: 17px; font-weight: 650; }
.home-all-schools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 3px 0 3px 3px;
  background: transparent;
  border: 0;
  color: var(--brand-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.home-all-schools .ic { width: 12px; height: 12px; }
.home-school-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.home-school-search input { border-color: var(--line); background: var(--surface); }
.home-school-search .btn { min-width: 58px; min-height: 48px; padding-inline: 12px; }
.home-overview, .home-tools { margin-top: 24px; }
.home-overview h2, .home-tools h2 { margin: 0 0 10px; font-size: 16px; font-weight: 650; }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.overview-item { display: grid; min-height: 51px; align-content: center; gap: 4px; padding: 0 11px; color: var(--ink); text-decoration: none; }
.overview-item + .overview-item { border-left: 1px solid var(--line); }
.overview-item span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.overview-item .ic { width: 16px; height: 16px; }
.overview-item strong { font-size: 16px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.overview-item:hover strong, .quick-grid a:hover { color: var(--brand-2); }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.quick-grid a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 11px;
  align-items: center;
  min-height: 56px;
  gap: 9px;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
}
.quick-grid a:nth-child(even) { border-left: 1px solid var(--line); }
.quick-grid a:nth-child(n + 3) { border-top: 1px solid var(--line); }
.quick-grid a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.quick-grid a:focus-visible { outline-offset: -3px; }
.quick-grid .ic { width: 22px; height: 22px; }
.quick-grid .ic:last-child { width: 11px; height: 11px; color: var(--muted); }
@media (max-width: 360px) {
  .quick-grid a { gap: 7px; padding-inline: 9px; }
}
.home-info { margin-top: 19px; }
[data-route="home"] .home-info summary { color: var(--muted); font-weight: 550; }
[data-route="home"] > .foot { margin-top: 12px; }

[data-route="schools"] { padding-top: 14px; }
.school-band {
  margin-bottom: 12px;
}
.school-band-heading { display: flex; align-items: center; gap: 8px; }
.school-band-heading h1 { margin: 0; font-size: clamp(25px, 8vw, 34px); line-height: 1.2; }
.school-band .saved-link {
  padding-inline: 9px;
  color: var(--brand-ink);
  background: var(--surface);
  border-color: var(--line);
  border-radius: 50%;
}
.school-band .school-toolbar { margin: 12px 0 0; }
.school-toolbar input, .filter-button { border-color: var(--line); border-radius: 12px; }
.filter-button { display: inline-flex; gap: 5px; justify-content: center; align-items: center;
  padding-inline: 9px; font: inherit; font-size: 13px; font-weight: 650; color: white;
  background: var(--brand); border-color: var(--brand); white-space: nowrap; }
.filter-button:hover { background: var(--brand-2); }
.filter-button em { position: static; color: var(--brand-2); background: white; }
.filter-button .ic { width: 16px; height: 16px; }
#school-search { padding-right: 44px; }
#school-search::-webkit-search-cancel-button { display: none; }
.school-search-clear { position: absolute; right: 2px; border: 0; }
.school-search-clear[hidden] { display: none; }
.school-search-clear .ic { width: 16px; height: 16px; }
.school-view {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 13px;
  background: var(--surface-3);
}
.school-view button {
  min-height: 44px;
  padding: 5px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.school-view button[aria-pressed="true"] { color: var(--brand-ink); background: var(--surface); border-color: var(--line); }
.school-tabs .chipb { padding-inline: 12px; color: var(--ink-2); }
.school-tabs .chipb.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); }
.school-summary { color: var(--ink); }
.school-order { position: relative; width: min(220px,100%); }
.school-order.fee-order { width: min(240px,100%); }
.school-order.annual-order { width: min(200px,100%); }
.school-order .ic { position: absolute; right: 11px; top: 15px; width: 14px; height: 14px; transform: rotate(90deg); pointer-events: none; }
#school-order { min-height: 44px; width: 100%; padding-right: 30px; font-size: 14px; background: var(--surface); }
.school-intl-scope { margin: 0 0 8px; }
.school-major-scope label { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; margin-bottom: 8px; font-weight: 700; }
.school-major-scope select { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
.school-major-scope a, .school-jobs-scope a { color: var(--brand-ink); text-underline-offset: 2px; }
.school-program-budget-note { margin: 0; color: var(--muted); }
.school-program-badge { color: var(--brand-ink); font-size: 13px; font-weight: 700; }
.school-program-detail { margin: 8px 0; padding: 10px 12px 0; border: 1px solid var(--line); border-radius: var(--r-m); }
.school-program-detail h3 { margin: 0; font-size: 16px; }
.school-program-detail p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.school-fee-scope { margin: 0 0 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; }
.school-fee-scope p { margin: 0; }
.school-fee-scope p + p { margin-top: 3px; }
.school-fee-scope strong, .school-open .school-dorm-price b { color: var(--brand-ink); }
.school-annual-scope .dorm-controls { margin-bottom: 8px; }
@media (min-width: 310px) {
  .school-annual-scope .dorm-controls.with-duration { grid-template-columns: minmax(0,1fr) minmax(112px,.58fr); }
}
.school-open .school-annual-price { margin-top: 6px; }
.school-annual-price b { display: block; color: var(--brand-ink); font-family: var(--numbers); font-variant-numeric: lining-nums tabular-nums; font-size: 14px; overflow-wrap: anywhere; }
.school-group { border-radius: var(--r-m); }
.school-group .ucard { padding-inline: 13px; }
.school-icon { width: 48px; height: 48px; background: var(--surface-3); border: 0; color: var(--muted); }
.school-icon.has-logo { background: white; border: 1px solid var(--line); }
.school-icon.has-logo.logo-contrast { background: #303038; border-color: #303038; }
.school-icon.school-monogram { background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.school-icon img { display: block; width: 40px; height: 40px; object-fit: contain; }
.school-logo-frame { display: block; position: relative; width: 40px; height: 40px; overflow: hidden; }
.school-logo-frame img { position: absolute; left: var(--logo-left); top: var(--logo-top); width: var(--logo-width); height: var(--logo-height); max-width: none; }
.school-open .un { color: var(--ink); font-weight: 650; }
.school-open .school-region { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 650; margin-top: 5px; }
.school-region .ic { width: 14px; height: 14px; color: var(--brand-2); }
.school-open .school-type { margin-top: 1px; }
.school-open .school-intl { color: var(--brand-ink); margin-top: 4px; }
.school-statistics { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.school-statistics h3 { margin: 0 0 4px; font-size: 15px; }
.school-statistics .kv { gap: 8px; }
.school-statistics .kv h3 { margin: 0; }
.school-statistics .kv b { flex-shrink: 0; }
.school-statistics .note { margin: 5px 0 0; }
.school-stat-source a { color: var(--brand-ink); }
.school-fees { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.school-fees h4 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin: 0 0 4px; font-size: 13px; }
.school-fees h4 small { color: var(--muted); font-weight: 550; }
.school-intl b, .school-price strong, .school-stat-source, .school-dorm-price b, .compare-dorm .compare-grid > span, .compare-cost .compare-grid > span { font-family: var(--numbers); font-variant-numeric: lining-nums tabular-nums; }
.polytechnic-group { margin: 11px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.polytechnic-group > summary { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; }
.polytechnic-group > summary::-webkit-details-marker { display: none; }
.polytechnic-group summary strong { flex: 1; font-size: 14px; }
.polytechnic-group summary span { flex: none; color: var(--muted); font-size: 12px; }
.polytechnic-group summary .ic { width: 14px; height: 14px; color: var(--muted); }
.polytechnic-group[open] summary .ic { transform: rotate(90deg); }
.polytechnic-group > .school-group { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.school-logo-credit { margin-top: 5px; }
.school-save[aria-pressed="true"] { color: var(--brand-2); }
.school-price strong { color: var(--ink); }
.ucard .acts .school-compare, .school-detail-actions [data-compare-school] {
  color: var(--brand-ink); border: 1px solid var(--brand-line);
  margin: 2px 0; min-height: 44px; font-size: 13px;
}
.school-detail-actions { margin: 8px 0; }
.school-official-links { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.school-official-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.school-official-buttons > .btn { justify-content: center; gap: 6px; min-height: 48px; padding: 7px 8px; font-size: 13px; text-align: center; line-height: 1.3; overflow-wrap: anywhere; }
.school-official-buttons > .btn:only-child { grid-column: 1 / -1; }
.school-official-buttons .ic { width: 16px; height: 16px; }
.school-official-links .note { margin: 6px 0 0; }
.school-official-links a:not(.btn), .school-profile-source a { color: var(--brand-ink); }
.school-profile { margin: 15px 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--surface); }
.school-profile > h3 { margin: 0; padding: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.school-profile-section { border-top: 1px solid var(--line); }
.school-profile-section summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; min-height: 44px; font-weight: 650; cursor: pointer; }
.school-profile-section summary::-webkit-details-marker { display: none; }
.school-profile-section summary:focus-visible { outline-offset: -3px; }
.school-profile-section summary .ic { width: 15px; height: 15px; color: var(--brand-ink); }
.school-profile-section[open] summary .ic { transform: rotate(90deg); }
.school-profile-section > div { padding: 0 12px 12px; }
.school-profile-section p { margin: 0; overflow-wrap: anywhere; }
.school-profile-section .note { margin-top: 6px; }
.school-fact { margin: 12px 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--surface); }
.school-fact > h3 { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 16px; }
.school-fact-body { padding: 10px 14px 12px; }
.school-fact-body + .school-fact-body { border-top: 1px solid var(--line); }
.school-fact-body > p { margin: 0; overflow-wrap: anywhere; }
.school-fact-body ul { display: grid; gap: 5px; margin: 4px 0 8px; padding-inline-start: 18px; font-size: 14px; }
.school-fact-context { color: var(--brand-ink); font-weight: 650; }
.school-fact a:not(.btn) { color: var(--brand-ink); }
.school-fact-body .school-fact-source { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.school-fact-source span { white-space: nowrap; }
.school-fact-source a, .school-fact-map-source a { display: inline-flex; align-items: center; min-height: 44px; }
.school-fact-map-source { padding: 0 14px; margin: 0; }
.school-campus + .school-campus { border-top: 1px solid var(--line); }
.school-campus summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; min-height: 52px; cursor: pointer; list-style: none; }
.school-campus summary::-webkit-details-marker { display: none; }
.school-campus summary:focus-visible { outline-offset: -3px; }
.school-campus summary span { display: grid; gap: 3px; min-width: 0; }
.school-campus summary small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.school-campus summary .ic { flex: 0 0 15px; width: 15px; height: 15px; color: var(--brand-ink); }
.school-campus[open] summary .ic { transform: rotate(90deg); }
.school-campus-body { padding: 0 14px 10px; }
.school-campus-map { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #edf2f4; }
.school-campus-map svg { display: block; width: 100%; max-height: 220px; }
.campus-boundaries { fill: #f9f7f4; fill-rule: evenodd; stroke: #c5bfc0; stroke-width: .8px; }
.campus-map-labels { fill: #4c4144; text-anchor: middle; font-size: 12px; font-weight: 600; paint-order: stroke; stroke: #f9f7f4; stroke-width: 2px; }
.campus-marker-halo { fill: var(--brand); opacity: .19; }
.campus-marker { fill: var(--brand); stroke: white; stroke-width: 2px; }
.campus-map-credit { margin: 4px 0; font-size: 11px; }
.school-location .btn { margin-top: 4px; min-height: 44px; font-size: 13px; }
.school-guide { margin: 12px 0 16px; }
.school-guide > h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.25; }
.school-guide-group { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.school-guide-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.school-guide-group > summary::-webkit-details-marker { display: none; }
.school-guide-group > summary .ic { color: var(--brand-ink); flex: 0 0 17px; width: 17px; height: 17px; }
.school-guide-group > summary:focus-visible { outline-offset: -3px; }
.school-guide-group[open] > summary { background: var(--brand-soft); color: var(--brand-ink); }
.school-guide-group[open] > summary .ic { transform: rotate(90deg); }
.school-guide-grid { display: grid; }
.school-guide-grid:empty { display: none; }
.school-guide-fact { min-width: 0; border-top: 1px solid var(--line); padding: 10px 13px; }
.school-guide-fact h4 { margin: 0 0 6px; color: var(--ink); font-size: 16px; line-height: 1.35; }
.school-guide-panel { padding: 10px 13px; border-top: 1px solid var(--line); }
.school-guide-panel .note { margin: 5px 0; }
.school-guide-panel > .school-location:first-child { margin-top: 0; }
.school-guide-entry { padding: 2px 0 3px; }
.school-guide-entry + .school-guide-entry { padding-top: 7px; border-top: 1px dashed var(--line); }
.school-guide-entry p, .school-guide-list { margin: 0; font-size: 16px; line-height: 1.55; overflow-wrap: break-word; }
.school-guide-list { padding-inline-start: 1.15em; }
.school-guide-list li + li { margin-top: 3px; }
.school-guide-status { margin: 0; padding: 10px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.school-guide-status-inline { padding: 5px 0 0; border: 0; }
.school-guide-entry .school-admission-term { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.school-admission-schedule > ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.school-admission-schedule li { min-width: 0; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.school-admission-window { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1px 12px; }
.school-admission-window h5 { margin: 0; color: var(--brand-ink); font-size: 15px; }
.school-admission-dates { font-size: 16px; font-weight: 700; line-height: 1.5; }
.school-admission-schedule time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.school-admission-schedule dl { margin: 7px 0 0; padding-top: 5px; border-top: 1px solid var(--line); }
.school-admission-schedule dl > div { display: flex; flex-wrap: wrap; gap: 0 10px; justify-content: space-between; }
.school-admission-schedule dl > div + div { margin-top: 3px; }
.school-admission-schedule dt, .school-admission-schedule dd { margin: 0; font-size: 14px; line-height: 1.45; }
.school-admission-schedule dt { color: var(--muted); }
.school-admission-schedule .school-admission-scope, .school-admission-schedule .school-admission-note { margin-top: 4px; color: var(--muted); font-size: 14px; }
.school-admission-schedule .school-admission-scope { color: var(--brand-ink); }
.school-admission-schedule > .school-admission-note:first-of-type { margin-top: 8px; }
.school-guide-meta { display: flex; flex-wrap: wrap; column-gap: 10px; align-items: center; color: var(--muted); font-size: 12px; line-height: 1.3; }
.school-guide-meta a { display: inline-flex; min-height: 44px; align-items: center; color: var(--brand-ink); text-underline-offset: 2px; }
.school-guide-scholarship .school-fact-body { padding: 5px 0 0; }
.school-guide-scholarship .school-fact-body ul { margin-bottom: 0; }
.school-guide-scholarship .school-fact-body .note { font-size: 12px; }
.school-guide-scholarship a { color: var(--brand-ink); }
#dialog[data-screen=u] .shh { position: sticky; top: -10px; z-index: 1; padding-block: 6px; background: var(--surface); }
@media (min-width: 800px) {
  .school-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .school-guide-group:not([data-school-guide-group="admissions"]) .school-guide-grid > .school-guide-fact:nth-child(even) { border-left: 1px solid var(--line); }
  .school-guide-group[data-school-guide-group="admissions"] .school-guide-grid { grid-template-columns: minmax(0,1fr); }
  .school-guide-scholarship { grid-column: 1 / -1; border-left: 0; }
}
@media (max-width: 360px) { .school-official-buttons .ic { display: none; } }
[data-compare-school][aria-pressed="true"] { background: var(--brand-soft); }
.compare-dock { justify-content: center; min-height: 48px; text-align: center; }
.compare-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.compare-title h1 { margin: 0; }
.compare-title .btn { font-size: 13px; padding: 7px 10px; }
.compare-head { background: var(--brand-soft); }
.compare-field-label { background: var(--paper); }
.compare-cost-total { background: var(--brand-soft); color: var(--brand-ink); }
.compare-cost-total .compare-field-label { background: transparent; color: inherit; }
.compare-dorm-heading { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; justify-content: space-between; padding: 9px 12px; border-top: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }
.compare-dorm-heading h2 { margin: 0; font-size: 14px; }
.compare-dorm-heading span { font-size: 12px; }
.compare-dorm .compare-grid > span { padding-inline: 6px; }
.compare-dorm-note { margin: 0; padding: 6px 12px; border-top: 1px solid var(--line); }
.compare-dorm-note a { color: var(--brand-ink); }

.question-band { margin-bottom: 15px; }
.question-band .prog { margin: 8px 0 20px; height: 5px; background: var(--line-2); }
.question-band .qt { margin: 0; font-size: clamp(21px, 6vw, 26px); line-height: 1.35; }
.assessment-mode .opt { border-radius: 12px; }
.assessment-mode .opt.sel { background: var(--brand-soft); border-color: var(--brand); }
.assessment-complete-actions { display: grid; gap: 8px; margin-top: 18px; }
.assessment-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.assessment-links .skipb { margin: 0; color: var(--brand-ink); font-weight: 600; }
#question-next { justify-content: center; }
.assessment-mode .two > div:first-child { background: var(--brand-soft); border-color: var(--brand-line); }
.assessment-mode .two > div + div { background: var(--surface); border-color: var(--line); }

.verdict { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--sh-1); }
.verdict.s-ok { --result-mark: var(--ok-bg); --result-ink: var(--ok); }
.verdict.s-exp { --result-mark: var(--brand-soft); --result-ink: var(--brand-2); }
.verdict.s-warn { --result-mark: var(--warn-bg); --result-ink: #8c540e; }
.verdict.s-chk { --result-mark: var(--chk-bg); --result-ink: var(--chk); }
.verdict .vbar { display: none; }
.verdict .vin { position: relative; padding: 16px; }
.verdict .result-title { color: var(--ink); padding-right: 40px; font-size: clamp(20px, 5.8vw, 25px); }
.result-mark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--result-mark);
  color: var(--result-ink);
}
.result-mark .ic { width: 19px; height: 19px; }
.verdict .path-actions { margin-top: 12px; }
#result-checks .card { border-left: 3px solid var(--brand-line); }
#result-checks .card.g { border-left-color: var(--warn-line); }

.plan-summary.card { background: var(--brand-soft); border-color: var(--brand-line); border-radius: var(--r-l); }
.plan-summary.r { background: var(--chk-bg); border-color: var(--chk-line); }
.plan-summary.r .journey-label { color: var(--chk); }
.plan-settings { border-color: var(--line); background: var(--surface); }
.filter-form .budget-options input:checked + span { background: var(--brand-soft); color: var(--brand-ink); }
.app-dialog::backdrop { background: #2c1a2062; }

@media (max-width: 360px) {
  #hd { padding-inline: 15px; }
  main { padding-inline: 15px; }
}
@media (min-width: 470px) {
  main { padding-inline: 25px; }
  .home-hero { padding: 22px; }
}

#shell { max-width: none; box-shadow: none; }
nav.tabs { max-width: none; }
.compare-dock { width: calc(100% - 22px); }
main { width: 100%; }

@media (min-width: 580px) {
  #hd .hr1, #mn { max-width: 46rem; margin-inline: auto; }
}

@media (min-width: 800px) {
  :root {
    --tb: 0px;
    --site-width: 75rem;
    --site-gutter: clamp(24px, 4vw, 48px);
  }
  body { font-size: 1rem; background: var(--paper); }
  #hd { background: var(--surface); border-bottom: 1px solid var(--line); padding-inline: var(--site-gutter); }
  #hd .hr1 {
    max-width: var(--site-width);
    min-height: 72px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
  }
  #hd .sp { display: none; }
  #hd .lg { justify-self: start; white-space: nowrap; }
  #hd .lgs { display: none; }
  #settings-button { justify-self: end; }
  nav.tabs {
    position: static;
    width: auto;
    transform: none;
    gap: 4px;
    padding: 0;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  nav.tabs a {
    flex: none;
    flex-direction: row;
    gap: 6px;
    min-height: 44px;
    padding: 7px 12px;
    font-size: .9rem;
    font-weight: 600;
  }
  nav.tabs a svg { width: 18px; height: 18px; }
  nav.tabs a:hover { color: var(--brand-ink); background: var(--paper); }
  nav.tabs a.on { background: var(--brand-soft); }
  #mn { width: calc(100% - 2 * var(--site-gutter)); max-width: 54rem; padding: 38px 0 56px; }
  #mn[data-route="home"], #mn[data-route="schools"], #mn[data-route="kept"], #mn[data-route="money"] {
    max-width: var(--site-width);
  }
  #mn h1 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); }
  #mn[data-route="home"] {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 20px 24px;
    align-content: start;
  }
  .home-heading, .home-tools, .home-info, .home-visa, [data-route="home"] > .foot { grid-column: 1 / -1; margin: 0; }
  .home-visa { padding-inline: 18px; }
  .visa-roadmap { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .home-hero {
    grid-column: 1;
    grid-row: 2 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3vw, 40px);
  }
  .home-hero h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
  .home-hero p { max-width: 36ch; font-size: .95rem; }
  .hero-meter { width: 76px; }
  .home-hero .home-start { margin-top: 8px; }
  .home-schools, .home-overview {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--surface);
  }
  .home-schools-heading h2, .home-overview h2, .home-tools h2 { font-size: 1.1rem; }
  .home-school-search input { background: var(--paper); }
  .home-overview .overview-grid { border: 0; border-radius: 0; padding: 0; }
  .overview-item:first-child { padding-left: 0; }
  .overview-item span { font-size: .83rem; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-grid a { min-height: 62px; padding-inline: 16px; font-size: .9rem; }
  .quick-grid a:nth-child(n + 3) { border-top: 0; }
  .quick-grid a:last-child:nth-child(odd) { grid-column: auto; border-left: 1px solid var(--line); }

  .school-band .school-toolbar { max-width: 42rem; }
  .school-view { max-width: 28rem; }
  .school-summary { margin-top: 12px; }
  #school-results > .school-group, [data-route="kept"] > .school-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    background: transparent;
    overflow: visible;
    border: 0;
  }
  #school-results > .school-group > .ucard, [data-route="kept"] > .school-group > .ucard {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--surface);
  }
  #school-results > .school-group > .ucard .acts, [data-route="kept"] > .school-group > .ucard .acts {
    margin-top: auto;
    padding-top: 10px;
  }
  .school-open .un { font-size: 1rem; }
  .school-open .school-region, .ucard .acts .school-compare { font-size: .875rem; }
  .compare-school-name { font-size: 1rem; }
  .compare-field-label { font-size: .875rem; }
  .compare-field .compare-grid > span { font-size: 1rem; }
  .compare-cost-total .compare-grid > span { font-size: 1.2rem; }
  .compare-dock {
    left: auto;
    right: var(--site-gutter);
    bottom: 14px;
    width: auto;
    max-width: 25rem;
    transform: none;
  }
  .cost-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }
  .cost-school h2, .cost-dorm h2, #cost-total h2 { font-size: 1.05rem; }

  .assessment-mode #hd .hr1 { display: flex; max-width: 42rem; }
  .assessment-mode #hd .sp { display: block; }
  .assessment-mode #mn { max-width: 42rem; }
  .app-dialog {
    inset: 0;
    margin: auto;
    width: min(calc(100% - 48px), 42rem);
    max-height: 84vh;
    max-height: 84dvh;
    border-radius: var(--r-l);
    padding: 20px 24px;
  }
  .app-dialog[open] { animation: none; }
}

@media (min-width: 1024px) {
  #hd .lgs { display: inline; }
}
