/* Layout: marketing pages on a 1200px container (hero · feature rows · coverage · pricing),
   app pages as a three-pane workbench. Every size, radius, type step and component anatomy
   follows SEED Design (Daangn); only color values are swapped for Lignums tokens. */
:root {
  /* color · Lignums */
  --fg-neutral: #15171C;
  --fg-neutral-muted: #5B5F68;
  --fg-neutral-subtle: #767A82;
  --fg-disabled: #A9ADB5;
  --fg-placeholder: #969AA2;
  --fg-brand: #2B519C;
  --fg-brand-contrast: #1E3A71;
  --fg-positive: #007D5F;
  --fg-warning: #A86200;
  --fg-critical: #C9302D;
  --fg-on-brand: #FFFFFF;
  --fg-on-solid: #FFFFFF;
  --fg-brand-inverse: #A9C4F7;
  --bg-layer-default: #FFFFFF;
  --bg-layer-fill: #F6F7F9;
  --bg-layer-floating: #FFFFFF;
  --bg-layer-basement: #EEF0F3;
  --bg-neutral-weak: #F1F2F5;
  --bg-neutral-weak-alpha: rgba(21, 23, 28, .05);
  --bg-neutral-solid: #15171C;
  --bg-brand-solid: #2B519C;
  --bg-brand-weak: #D8E5FD;
  --bg-positive-weak: #DDF1EA;
  --bg-warning-weak: #F8ECD9;
  --bg-critical-weak: #FBE4E3;
  --bg-critical-solid: #C9302D;
  --bg-overlay: rgba(14, 15, 17, .48);
  --stroke-neutral-weak: rgba(21, 23, 28, .12);
  --stroke-neutral-muted: rgba(21, 23, 28, .08);
  --stroke-neutral-contrast: #15171C;
  --veil: rgba(21, 23, 28, .05);
  --veil-press: rgba(21, 23, 28, .09);
  --shadow-floating: 0 1px 3px rgba(14, 15, 17, .06), 0 6px 20px rgba(14, 15, 17, .08);
  --shadow-dialog: 0 16px 48px rgba(14, 15, 17, .22);
  --paper: #FFFFFF;
  --paper-ink: #111214;
  --paper-sub: #55585E;
  --paper-rule: #26282C;
  --paper-fill: #F2F3F5;
  --kor: var(--fg-warning);
  --eng: var(--fg-positive);
  --math: var(--fg-brand);
  /* type · SEED font-size / line-height */
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --font-paper: "Noto Serif KR", "AppleMyungjo", "Batang", "Nanum Myeongjo", serif;
  --t1: 11px/15px var(--font); --t2: 12px/16px var(--font); --t3: 13px/18px var(--font); --t4: 14px/19px var(--font);
  --t5: 16px/22px var(--font); --t6: 18px/24px var(--font); --t7: 20px/27px var(--font); --t8: 22px/30px var(--font);
  --t9: 24px/32px var(--font); --t10: 26px/35px var(--font); --t11: 28px/38px var(--font); --t12: 32px/43px var(--font);
  --t13: 40px/53px var(--font); --t14: 48px/64px var(--font);
  /* radius · SEED */
  --r0_5: 2px; --r1: 4px; --r1_5: 6px; --r2: 8px; --r2_5: 10px; --r3: 12px; --r3_5: 14px; --r4: 16px; --r5: 20px; --r6: 24px; --full: 9999px;
  /* motion · SEED */
  --d2: 100ms; --d3: 150ms; --d4: 200ms; --d6: 300ms;
  --easing: cubic-bezier(.35, 0, .35, 1);
  --enter: cubic-bezier(0, 0, .15, 1);
  --exit: cubic-bezier(.35, 0, 1, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fg-neutral: #ECEDEF; --fg-neutral-muted: #A3A7AF; --fg-neutral-subtle: #8A8E96; --fg-disabled: #5E6269; --fg-placeholder: #6E727A;
    --fg-brand: #88AEF4; --fg-brand-contrast: #A2BEF2; --fg-positive: #66C3A4; --fg-warning: #F0B254; --fg-critical: #F26A5F;
    --fg-on-brand: #0E1016; --fg-on-solid: #131417; --fg-brand-inverse: #2B519C;
    --bg-layer-default: #131417; --bg-layer-fill: #18191D; --bg-layer-floating: #1E2024; --bg-layer-basement: #0E0F11;
    --bg-neutral-weak: #272A2F; --bg-neutral-weak-alpha: rgba(255, 255, 255, .07); --bg-neutral-solid: #ECEDEF;
    --bg-brand-solid: #88AEF4; --bg-brand-weak: #1F304F; --bg-positive-weak: #15362D; --bg-warning-weak: #3A2C14; --bg-critical-weak: #3D1D1C; --bg-critical-solid: #F26A5F;
    --bg-overlay: rgba(0, 0, 0, .6);
    --stroke-neutral-weak: rgba(255, 255, 255, .14); --stroke-neutral-muted: rgba(255, 255, 255, .08); --stroke-neutral-contrast: #ECEDEF;
    --veil: rgba(255, 255, 255, .06); --veil-press: rgba(255, 255, 255, .1);
    --shadow-floating: 0 1px 3px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .35); --shadow-dialog: 0 16px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fg-neutral: #ECEDEF; --fg-neutral-muted: #A3A7AF; --fg-neutral-subtle: #8A8E96; --fg-disabled: #5E6269; --fg-placeholder: #6E727A;
  --fg-brand: #88AEF4; --fg-brand-contrast: #A2BEF2; --fg-positive: #66C3A4; --fg-warning: #F0B254; --fg-critical: #F26A5F;
  --fg-on-brand: #0E1016; --fg-on-solid: #131417; --fg-brand-inverse: #2B519C;
  --bg-layer-default: #131417; --bg-layer-fill: #18191D; --bg-layer-floating: #1E2024; --bg-layer-basement: #0E0F11;
  --bg-neutral-weak: #272A2F; --bg-neutral-weak-alpha: rgba(255, 255, 255, .07); --bg-neutral-solid: #ECEDEF;
  --bg-brand-solid: #88AEF4; --bg-brand-weak: #1F304F; --bg-positive-weak: #15362D; --bg-warning-weak: #3A2C14; --bg-critical-weak: #3D1D1C; --bg-critical-solid: #F26A5F;
  --bg-overlay: rgba(0, 0, 0, .6);
  --stroke-neutral-weak: rgba(255, 255, 255, .14); --stroke-neutral-muted: rgba(255, 255, 255, .08); --stroke-neutral-contrast: #ECEDEF;
  --veil: rgba(255, 255, 255, .06); --veil-press: rgba(255, 255, 255, .1);
  --shadow-floating: 0 1px 3px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .35); --shadow-dialog: 0 16px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg-layer-default); color: var(--fg-neutral); font: var(--t4); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--fg-brand); outline-offset: 2px; border-radius: var(--r1); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
svg.i { width: 16px; height: 16px; flex: none; }
mjx-container { color: inherit; }
mjx-container[jax="SVG"] { direction: ltr; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.wide { max-width: 1440px; margin-inline: auto; padding-inline: 20px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- ActionButton ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; font-weight: 700; isolation: isolate; transition: background-color var(--d2) var(--easing), color var(--d2) var(--easing), transform var(--d2) var(--easing); }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: transparent; transition: background-color var(--d2) var(--easing); z-index: -1; pointer-events: none; }
.btn:not(:disabled):hover::after { background: var(--veil); }
.btn:not(:disabled):active::after { background: var(--veil-press); }
.btn:disabled { opacity: .38; }
.btn.xs { min-height: 32px; padding: 6px 14px; border-radius: var(--full); font: var(--t3); font-weight: 700; }
.btn.sm { min-height: 36px; padding: 8px 14px; border-radius: var(--r2); font: var(--t4); font-weight: 700; }
.btn.md { min-height: 40px; padding: 10px 16px; border-radius: var(--r2); font: var(--t4); font-weight: 700; gap: 6px; }
.btn.lg { min-height: 52px; padding: 14px 20px; border-radius: var(--r3); font: var(--t6); font-weight: 700; gap: 8px; }
.btn.block { width: 100%; }
.btn.brand { background: var(--bg-brand-solid); color: var(--fg-on-brand); }
.btn.neutral { background: var(--bg-neutral-solid); color: var(--fg-on-solid); }
.btn.brand:not(:disabled):hover::after, .btn.neutral:not(:disabled):hover::after { background: rgba(127, 127, 127, .14); }
.btn.weak { background: var(--bg-neutral-weak); color: var(--fg-neutral); }
.btn.critical { background: var(--bg-critical-solid); color: var(--fg-on-brand); }
.btn.brand-ol { box-shadow: inset 0 0 0 1px var(--fg-brand); color: var(--fg-brand); }
.btn.ol { box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); color: var(--fg-neutral); }
.btn.ghost { color: var(--fg-neutral-muted); }
.btn.ghost:not(:disabled):hover { color: var(--fg-neutral); }
.btn.ghost[aria-pressed="true"] { color: var(--fg-neutral); background: var(--bg-neutral-weak-alpha); }
.ib { position: relative; width: 32px; height: 32px; border-radius: var(--r2); display: inline-grid; place-items: center; color: var(--fg-neutral-subtle); flex: none; }
.ib:not(:disabled):hover { background: var(--veil); color: var(--fg-neutral); }
.ib:disabled { opacity: .3; }

/* ---------- Chip ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; border-radius: var(--full); font: var(--t4); font-weight: 500; transition: background-color var(--d2) var(--easing), color var(--d2) var(--easing), box-shadow var(--d2) var(--easing); }
.chip:active:not(:disabled) { transform: scale(.97); }
.chip.s { min-height: 32px; padding: 0 12px; }
.chip.m { min-height: 36px; padding: 0 14px; }
.chip.l { min-height: 40px; padding: 0 16px; }
.chip.solid { background: var(--bg-neutral-weak-alpha); color: var(--fg-neutral); }
.chip.solid:hover { background: var(--veil-press); }
.chip.solid[aria-pressed="true"], .chip.solid[aria-selected="true"] { background: var(--bg-neutral-solid); color: var(--fg-on-solid); }
.chip.ow { box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); color: var(--fg-neutral); }
.chip.ow:hover { background: var(--veil); }
.chip.ow[aria-pressed="true"] { background: var(--bg-neutral-weak); box-shadow: inset 0 0 0 1px var(--stroke-neutral-contrast); }
.chip .ct { color: var(--fg-neutral-subtle); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .ct, .chip[aria-selected="true"] .ct { color: inherit; opacity: .7; }
.chip:disabled, .chip.zero { opacity: .5; }

/* ---------- Badge ---------- */
.bdg { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 500; }
.bdg.md { min-height: 20px; padding: 0 6px; border-radius: var(--r1); font: var(--t2); font-weight: 500; }
.bdg.lg { min-height: 24px; padding: 0 8px; border-radius: var(--r1_5); font: var(--t3); font-weight: 500; }
.bdg.n { background: var(--bg-neutral-weak); color: var(--fg-neutral-muted); }
.bdg.b { background: var(--bg-brand-weak); color: var(--fg-brand-contrast); }
.bdg.p { background: var(--bg-positive-weak); color: var(--fg-positive); }
.bdg.w { background: var(--bg-warning-weak); color: var(--fg-warning); }
.bdg.c { background: var(--bg-critical-weak); color: var(--fg-critical); }
.bdg.ol { background: none; box-shadow: inset 0 0 0 1px currentColor; font-weight: 700; }
.bdg.solid { font-weight: 700; color: var(--fg-on-brand); }
.bdg.solid.b { background: var(--bg-brand-solid); color: var(--fg-on-brand); }
.bdg.solid.n { background: var(--bg-neutral-solid); color: var(--fg-on-solid); }
.bdg.kor { background: var(--bg-warning-weak); color: var(--kor); font-weight: 700; }
.bdg.eng { background: var(--bg-positive-weak); color: var(--eng); font-weight: 700; }
.bdg.math { background: var(--bg-brand-weak); color: var(--fg-brand-contrast); font-weight: 700; }

/* ---------- Tabs (line) ---------- */
.tabs { display: flex; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; min-height: 44px; padding: 10px 10px; font: var(--t5); font-weight: 700; color: var(--fg-neutral-subtle); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color var(--d4) var(--easing); }
.tab:hover { color: var(--fg-neutral-muted); }
.tab[aria-selected="true"] { color: var(--fg-neutral); }
.tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--fg-neutral); transform: scaleX(0); transition: transform var(--d4) var(--easing); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab .ct { font: var(--t3); color: var(--fg-neutral-subtle); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: var(--r0_5); display: inline-block; flex: none; }
.dot.kor { background: var(--kor); } .dot.eng { background: var(--eng); } .dot.math { background: var(--math); }

/* ---------- SegmentedControl ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: var(--full); background: var(--bg-neutral-weak-alpha); }
.seg button { min-height: 34px; min-width: 86px; padding: 6px 24px; border-radius: var(--full); font: var(--t5); font-weight: 700; color: var(--fg-neutral-subtle); white-space: nowrap; transition: color var(--d4) var(--easing), background-color var(--d4) var(--easing), box-shadow var(--d4) var(--easing); }
.seg button[aria-pressed="true"] { background: var(--bg-layer-floating); color: var(--fg-neutral); box-shadow: inset 0 0 0 1px var(--stroke-neutral-muted), 0 1px 2px rgba(0, 0, 0, .06); }
.seg.compact button { min-width: 0; padding: 6px 16px; font: var(--t4); font-weight: 700; min-height: 32px; }
.seg.fill { display: flex; }
.seg.fill button { flex: 1; min-width: 0; }

/* ---------- Checkbox ---------- */
.cbx { width: 20px; height: 20px; flex: none; border-radius: var(--r1); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-default); display: grid; place-items: center; color: transparent; transition: background-color var(--d2) var(--easing); }
.cbx svg { width: 14px; height: 14px; }
[aria-checked="true"] > .cbx, .cbx[aria-checked="true"] { background: var(--bg-brand-solid); box-shadow: none; color: var(--fg-on-brand); }
.cbx[aria-checked="mixed"] { background: var(--bg-brand-solid); box-shadow: none; color: transparent; position: relative; }
.cbx[aria-checked="mixed"]::after { content: ""; position: absolute; width: 10px; height: 2px; border-radius: 1px; background: var(--fg-on-brand); }

/* ---------- Switch (size 24, neutral tone) ---------- */
.swl { display: inline-flex; align-items: center; gap: 8px; font: var(--t4); color: var(--fg-neutral); cursor: pointer; }
.sw { width: 38px; height: 24px; padding: 2px; border-radius: var(--full); background: var(--fg-disabled); flex: none; transition: background-color var(--d4) var(--easing); }
.sw::after { content: ""; display: block; width: 20px; height: 20px; border-radius: var(--full); background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform var(--d4) var(--easing); }
[aria-checked="true"] > .sw { background: var(--bg-neutral-solid); }
[aria-checked="true"] > .sw::after { transform: translateX(14px); background: var(--fg-on-solid); }

/* ---------- TextInput (outline) ---------- */
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld > label, .fld > .lb { font: var(--t4); font-weight: 700; }
.fld .ds { font: var(--t3); color: var(--fg-neutral-subtle); }
.tin { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-default); transition: box-shadow var(--d2) var(--easing); }
.tin.md { min-height: 40px; padding: 0 14px; border-radius: var(--r2); gap: 8px; }
.tin:focus-within { box-shadow: inset 0 0 0 2px var(--stroke-neutral-contrast); }
.tin input, .tin textarea { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: var(--t5); color: var(--fg-neutral); }
.tin.md input { font: var(--t4); }
.tin input::placeholder, .tin textarea::placeholder { color: var(--fg-placeholder); }
.tin .pre { color: var(--fg-neutral-subtle); display: grid; }
.tin.area { align-items: flex-start; padding-block: 14px; min-height: 94px; }
.tin textarea { resize: vertical; min-height: 66px; }
.tin .x { width: 20px; height: 20px; border-radius: var(--full); background: var(--fg-disabled); color: var(--bg-layer-default); display: grid; place-items: center; }
.tin .x svg { width: 12px; height: 12px; }

/* ---------- Callout ---------- */
.callout { display: flex; gap: 12px; padding: 14px; min-height: 50px; border-radius: var(--r2_5); font: var(--t4); line-height: 21px; }
.callout svg { width: 16px; height: 16px; flex: none; margin-top: 2.5px; }
.callout b { font-weight: 700; }
.callout.n { background: var(--bg-neutral-weak); color: var(--fg-neutral); }
.callout.i { background: var(--bg-brand-weak); color: var(--fg-brand-contrast); }

/* ---------- Accordion (separated, medium) ---------- */
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc details { border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.acc summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px; font: var(--t5); font-weight: 500; cursor: pointer; border-radius: var(--r3); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary span { flex: 1; }
.acc summary svg { width: 20px; height: 20px; color: var(--fg-neutral-subtle); transition: transform var(--d6) var(--easing); flex: none; }
.acc details[open] summary svg { transform: rotate(180deg); }
.acc .acc-b { padding: 0 20px 20px; font: var(--t4); line-height: 22px; color: var(--fg-neutral-muted); }

/* ---------- misc ---------- */
.hr { height: 1px; background: var(--stroke-neutral-muted); border: 0; margin: 0; }
.eyebrow { font: var(--t4); font-weight: 700; color: var(--fg-brand); }
.link { color: var(--fg-brand); font-weight: 700; }

/* ---------- Global navigation ---------- */
.gnb { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg-layer-default); box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.gnb-in { height: 64px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.logo svg { width: 28px; height: 28px; }
.logo .wm { font: var(--t6); font-weight: 700; }
.logo .wm b { color: var(--fg-brand); font-weight: 700; letter-spacing: .06em; margin-left: 4px; }
.gnb-nav { display: flex; align-self: stretch; gap: 4px; }
.gnb-nav a { position: relative; display: flex; align-items: center; padding: 0 12px; font: var(--t5); font-weight: 700; color: var(--fg-neutral-subtle); transition: color var(--d2) var(--easing); }
.gnb-nav a:hover { color: var(--fg-neutral); }
.gnb-nav a[aria-current="page"] { color: var(--fg-neutral); }
.gnb-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--fg-neutral); }
.gnb-nav .ct { margin-left: 6px; font: var(--t2); font-weight: 700; min-width: 20px; min-height: 20px; padding: 0 6px; border-radius: var(--full); background: var(--bg-neutral-weak); color: var(--fg-neutral-muted); display: inline-grid; place-items: center; }
.gnb-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gnb-menu { display: none; }
.mnav { box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); padding-block: 8px 16px; }
.mnav a { display: flex; align-items: center; min-height: 52px; font: var(--t6); font-weight: 700; }
.mnav a[aria-current="page"] { color: var(--fg-brand); }
.mnav .btn { margin-top: 8px; }

/* ---------- Marketing ---------- */
.sec { padding-block: 112px; }
.sec.tight { padding-block: 80px; }
.sec.fill { background: var(--bg-layer-fill); }
.sec-h { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 48px; }
.sec-h.center { margin-inline: auto; text-align: center; align-items: center; }
.sec-h h2 { font: var(--t12); font-weight: 700; }
.sec-h p { font: var(--t6); color: var(--fg-neutral-muted); line-height: 28px; }

.hero { padding-block: 88px 96px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
.hero h1 { font: var(--t14); font-weight: 700; margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--fg-brand); }
.hero .lead { margin-top: 20px; font: var(--t6); line-height: 30px; color: var(--fg-neutral-muted); max-width: 520px; }
.hero .cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.hero .note { margin-top: 14px; font: var(--t3); color: var(--fg-neutral-subtle); }
.facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts b { font: var(--t9); font-weight: 700; font-variant-numeric: tabular-nums; }
.facts > div > span { font: var(--t3); color: var(--fg-neutral-subtle); }

.shot { position: relative; height: 520px; border-radius: var(--r6); background: var(--bg-layer-basement); overflow: hidden; }
.shot .page { position: absolute; left: 50%; top: 36px; --z: .56; margin-left: -200px; }
.shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(to bottom, transparent, var(--bg-layer-basement)); pointer-events: none; z-index: 1; }
.shot-tray { position: absolute; left: 20px; bottom: 28px; z-index: 2; width: 248px; padding: 16px; border-radius: var(--r4); background: var(--bg-layer-floating); box-shadow: var(--shadow-floating); }
.shot-tray h4 { font: var(--t5); font-weight: 700; }
.shot-tray .row { display: flex; align-items: center; gap: 10px; padding: 8px 0; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); font: var(--t3); }
.shot-tray .row span:last-child { margin-left: auto; color: var(--fg-neutral-subtle); }
.shot-tray .mini-stats { display: flex; gap: 16px; margin: 10px 0 8px; font: var(--t3); color: var(--fg-neutral-subtle); }
.shot-tray .mini-stats b { color: var(--fg-neutral); font: var(--t5); font-weight: 700; margin-left: 4px; }

.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.feat + .feat { margin-top: 112px; }
.feat.rev .feat-t { order: 2; }
.feat-t { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.feat-t h3 { font: var(--t11); font-weight: 700; }
.feat-t p { font: var(--t5); line-height: 26px; color: var(--fg-neutral-muted); }
.feat-t ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feat-t li { display: flex; gap: 8px; font: var(--t4); line-height: 22px; }
.feat-t li svg { color: var(--fg-brand); margin-top: 3px; }
.feat-v { border-radius: var(--r6); background: var(--bg-layer-default); padding: 32px; min-height: 380px; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: hidden; position: relative; }
.mock { background: var(--bg-layer-floating); border-radius: var(--r4); box-shadow: var(--shadow-floating); padding: 16px; }
.mock .tu-row:hover, .mock .ts-row:hover, .mock .tree-all:hover { background: none; }
.mock button { cursor: default; }
.feat-v.paper { padding-bottom: 0; justify-content: flex-start; align-items: center; height: 460px; background: var(--bg-layer-basement); }
.feat-v.paper .page { --z: .5; }
.feat-v.paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(to bottom, transparent, var(--bg-layer-basement)); }

.cov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.cov { padding: 20px; border-radius: var(--r4); background: var(--bg-layer-default); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); display: flex; flex-direction: column; gap: 12px; }
.cov-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cov-h h4 { font: var(--t6); font-weight: 700; margin-right: auto; }
.cov ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font: var(--t4); color: var(--fg-neutral-muted); }
.cov li { display: flex; justify-content: space-between; gap: 8px; }
.cov li span:last-child { color: var(--fg-neutral-subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cov-f { margin-top: auto; padding-top: 12px; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; font: var(--t3); color: var(--fg-neutral-subtle); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { padding: 28px 24px; border-radius: var(--r4); background: var(--bg-layer-default); display: flex; flex-direction: column; gap: 10px; counter-increment: st; }
.steps li::before { content: counter(st); width: 32px; height: 32px; border-radius: var(--full); background: var(--bg-neutral-solid); color: var(--fg-on-solid); font: var(--t4); font-weight: 700; display: grid; place-items: center; margin-bottom: 8px; }
.steps h4 { font: var(--t7); font-weight: 700; }
.steps p { font: var(--t4); line-height: 22px; color: var(--fg-neutral-muted); }

.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.who > div { padding: 28px 24px; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); display: flex; flex-direction: column; gap: 10px; }
.who svg { width: 28px; height: 28px; color: var(--fg-brand); margin-bottom: 8px; }
.who h4 { font: var(--t6); font-weight: 700; }
.who p { font: var(--t4); line-height: 22px; color: var(--fg-neutral-muted); }

.banner { border-radius: var(--r6); background: var(--bg-brand-weak); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.banner h2 { font: var(--t10); font-weight: 700; color: var(--fg-brand-contrast); }
.banner p { margin-top: 8px; font: var(--t5); color: var(--fg-brand-contrast); }

/* about */
.page-h { padding-block: 88px 64px; }
.page-h h1 { font: var(--t13); font-weight: 700; margin-top: 12px; max-width: 760px; }
.page-h .lead { margin-top: 20px; font: var(--t6); line-height: 30px; color: var(--fg-neutral-muted); max-width: 680px; }
.page-h.center { text-align: center; }
.page-h.center h1, .page-h.center .lead { margin-inline: auto; }
.name-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.name-card { padding: 32px; border-radius: var(--r4); background: var(--bg-layer-fill); display: flex; flex-direction: column; gap: 8px; }
.name-card .w { font: var(--t12); font-weight: 700; }
.name-card .pr { font: var(--t3); color: var(--fg-neutral-subtle); }
.name-card p { font: var(--t5); line-height: 26px; color: var(--fg-neutral-muted); margin-top: 8px; }
.princ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.princ h4 { font: var(--t6); font-weight: 700; margin-top: 16px; }
.princ p { font: var(--t4); line-height: 22px; color: var(--fg-neutral-muted); margin-top: 8px; }
.princ .ic { width: 44px; height: 44px; border-radius: var(--r3); background: var(--bg-brand-weak); color: var(--fg-brand-contrast); display: grid; place-items: center; }
.princ .ic svg { width: 22px; height: 22px; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-default); }
.tbl { width: 100%; border-collapse: collapse; font: var(--t4); min-width: 520px; }
.tbl th, .tbl td { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--stroke-neutral-muted); line-height: 22px; }
.tbl thead th { border-top: 0; background: var(--bg-layer-fill); font: var(--t3); font-weight: 700; color: var(--fg-neutral-muted); }
.tbl tbody th { font-weight: 700; white-space: nowrap; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl .mu { color: var(--fg-neutral-muted); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.two h3 { font: var(--t9); font-weight: 700; }
.two .ds { margin-top: 10px; font: var(--t5); line-height: 26px; color: var(--fg-neutral-muted); }

/* pricing */
.price-top { display: flex; justify-content: center; margin-bottom: 40px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { padding: 32px 28px 28px; border-radius: var(--r5); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); display: flex; flex-direction: column; gap: 20px; background: var(--bg-layer-default); }
.plan.pick { box-shadow: inset 0 0 0 2px var(--fg-brand); }
.plan-h { display: flex; flex-direction: column; gap: 6px; }
.plan-h .nm { display: flex; align-items: center; gap: 8px; font: var(--t7); font-weight: 700; }
.plan-h p { font: var(--t4); color: var(--fg-neutral-muted); line-height: 21px; }
.price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price b { font: var(--t13); font-weight: 700; font-variant-numeric: tabular-nums; }
.price span { font: var(--t5); color: var(--fg-neutral-muted); }
.price-sub { font: var(--t3); color: var(--fg-neutral-subtle); min-height: 18px; margin-top: -12px; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; margin: 0; padding: 20px 0 0; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); display: flex; flex-direction: column; gap: 12px; font: var(--t4); line-height: 21px; flex: 1; }
.plan li { display: flex; gap: 8px; }
.plan li svg { color: var(--fg-brand); margin-top: 2.5px; }
.cmp td.c svg { color: var(--fg-brand); width: 18px; height: 18px; vertical-align: middle; }
.cmp td.c svg.no { color: var(--fg-disabled); }
.cmp tbody tr.grp th { background: var(--bg-layer-fill); font: var(--t3); font-weight: 700; color: var(--fg-neutral-muted); }
.faq { max-width: 800px; }

/* footer */
.ft { background: var(--bg-layer-fill); padding-block: 56px 40px; }
.ft-top { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
.ft-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.ft-brand p { font: var(--t3); line-height: 20px; color: var(--fg-neutral-subtle); }
.ft-map { display: flex; gap: 56px; flex-wrap: wrap; }
.ft-col { display: flex; flex-direction: column; gap: 12px; min-width: 120px; }
.ft-col h5 { margin: 0; font: var(--t3); font-weight: 700; color: var(--fg-neutral-subtle); }
.ft-col a { font: var(--t4); color: var(--fg-neutral-muted); }
.ft-col a:hover { color: var(--fg-neutral); }
.ft-hr { margin-block: 32px 24px; }
.ft-info { font: var(--t3); color: var(--fg-neutral-subtle); }
.ft-info .sep { margin-inline: 8px; opacity: .5; }
.ft-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font: var(--t3); color: var(--fg-neutral-subtle); }

/* ---------- App: bank ---------- */
.app-h { padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.app-h .tabs { box-shadow: none; }
.app-h-r { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; flex-wrap: wrap; }
.app-h-r .tin { width: 320px; }
.app-sub { box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted), inset 0 1px 0 var(--stroke-neutral-muted); margin-top: 4px; }
.courses { display: flex; gap: 8px; padding-block: 14px; overflow-x: auto; scrollbar-width: none; }
.courses::-webkit-scrollbar { display: none; }
.work { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-block: 20px 56px; }
.pane-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-bottom: 4px; }
.pane-h h2 { font: var(--t3); font-weight: 700; color: var(--fg-neutral-muted); }
.tree-pane .pane-tog { display: none; }
.tree-pane { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); max-height: calc(100vh - 104px); overflow: auto; padding-right: 4px; }
.tree.muted { opacity: .4; pointer-events: none; }
.tree-note { font: var(--t3); color: var(--fg-neutral-subtle); margin: 0 0 8px; line-height: 20px; }
.tree-all { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 10px; border-radius: var(--r2); font: var(--t4); font-weight: 700; margin-bottom: 4px; }
.tree-all:hover { background: var(--veil); }
.tree-all[aria-pressed="true"] { background: var(--bg-brand-weak); color: var(--fg-brand-contrast); }
.tree-all[aria-pressed="true"] .n { color: inherit; }
.tu-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px; border-radius: var(--r2); }
.tu-row:hover { background: var(--veil); }
.tu-name { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 2px; text-align: left; font: var(--t4); font-weight: 700; }
.tu-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--fg-neutral-subtle); display: grid; transition: transform var(--d6) var(--easing); }
.chev.open { transform: rotate(90deg); }
.n { font: var(--t2); color: var(--fg-neutral-subtle); font-variant-numeric: tabular-nums; }
.ts { list-style: none; margin: 0 0 6px; padding: 0 0 0 18px; }
.ts-row { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; border-radius: var(--r2); font: var(--t4); color: var(--fg-neutral-muted); text-align: left; }
.ts-row:hover { background: var(--veil); }
.ts-row .nm { flex: 1; min-width: 0; }
.ts-row[aria-checked="true"] { color: var(--fg-neutral); font-weight: 500; }
.ts-row.zero .nm, .ts-row.zero .n { color: var(--fg-disabled); }
.fbar { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.frow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.frow .fl { width: 48px; flex: none; font: var(--t3); font-weight: 700; color: var(--fg-neutral-muted); }
.rhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px 14px; }
.rhead h1 { font: var(--t7); font-weight: 700; }
.rhead h1 em { font-style: normal; color: var(--fg-brand); font-variant-numeric: tabular-nums; }
.rhead .crumb { font: var(--t3); color: var(--fg-neutral-subtle); margin-top: 2px; }
.rhead-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qlist { display: flex; flex-direction: column; gap: 12px; }
.q { border-radius: var(--r4); background: var(--bg-layer-default); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); padding: 20px 20px 14px; transition: box-shadow var(--d4) var(--easing); }
.q.in { box-shadow: inset 0 0 0 2px var(--fg-brand); }
.q-head { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font: var(--t2); color: var(--fg-neutral-subtle); margin-bottom: 12px; }
.q-id { font-weight: 700; color: var(--fg-neutral-muted); font-variant-numeric: tabular-nums; }
.q-path b { font-weight: 500; color: var(--fg-neutral-muted); }
.diff { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--fg-neutral-muted); }
.meter { display: inline-flex; gap: 2px; align-items: flex-end; }
.meter i { width: 4px; border-radius: 1px; background: var(--stroke-neutral-weak); }
.meter i:nth-child(1) { height: 6px; } .meter i:nth-child(2) { height: 8px; } .meter i:nth-child(3) { height: 10px; } .meter i:nth-child(4) { height: 12px; } .meter i:nth-child(5) { height: 14px; }
.meter i.on { background: var(--fg-brand); }
.q-lead { font: var(--t5); line-height: 27px; }
.q-body { margin-top: 10px; font: var(--t4); font-size: 15px; line-height: 26px; }
.q-body p { margin: 0 0 6px; }
.q .gbox { box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); border-radius: var(--r1); padding: 10px 14px; margin: 10px 0; font: var(--t4); font-size: 15px; line-height: 26px; }
.gbox .gt { display: block; text-align: center; font: var(--t2); font-weight: 700; margin-bottom: 4px; letter-spacing: .2em; }
.un { font-size: .92em; margin-right: 1px; }
.blank { display: inline-block; width: 130px; border-bottom: 1px solid currentColor; height: 1em; vertical-align: -2px; }
.blank.sm { width: 64px; }
.q-psg { position: relative; background: var(--bg-layer-fill); border-radius: var(--r3); padding: 16px; font: var(--t4); line-height: 26px; }
.q-psg p { margin: 0 0 6px; text-indent: .6em; }
.q-psg.poem p { text-indent: 0; margin-bottom: 12px; }
.q-psg .cite { text-align: right; text-indent: 0; color: var(--fg-neutral-muted); font: var(--t3); margin: 4px 0 0; }
.q-psg-t { font: var(--t2); font-weight: 700; color: var(--fg-neutral-muted); margin-bottom: 8px; }
.q-psg.clamp { max-height: 140px; overflow: hidden; }
.q-psg.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to bottom, transparent, var(--bg-layer-fill)); }
.more { display: inline-flex; margin: 8px 0 14px; font: var(--t3); font-weight: 700; color: var(--fg-neutral-muted); }
.more:hover { color: var(--fg-neutral); }
.opts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px 12px; }
.opts.row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.opts.col { grid-template-columns: minmax(0, 1fr); }
.opts li { display: flex; align-items: baseline; gap: 6px; font: var(--t4); font-size: 15px; line-height: 26px; min-width: 0; }
.opts .cn { flex: none; color: var(--fg-neutral-muted); }
.opts li.ans, .opts li.ans .cn { color: var(--fg-positive); font-weight: 700; }
.q-foot { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.q-sol { margin-top: 14px; padding: 14px 16px; border-radius: var(--r2_5); background: var(--bg-positive-weak); font: var(--t4); line-height: 24px; }
.q-sol .a { display: inline-block; font-weight: 700; color: var(--fg-positive); margin-right: 8px; }
.q-sol .exp { margin-top: 6px; color: var(--fg-neutral); }
.q-sol .rub { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--stroke-neutral-weak); list-style: none; display: grid; gap: 2px; font: var(--t3); line-height: 20px; color: var(--fg-neutral-muted); }
.q-sol .rub b { color: var(--fg-neutral); }
.empty { padding: 64px 20px; text-align: center; color: var(--fg-neutral-subtle); border-radius: var(--r4); background: var(--bg-layer-fill); font: var(--t4); line-height: 22px; }
.empty strong { display: block; color: var(--fg-neutral); font: var(--t6); font-weight: 700; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

.tray { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); max-height: calc(100vh - 104px); display: flex; flex-direction: column; border-radius: var(--r5); background: var(--bg-layer-floating); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.tray-h { padding: 20px 20px 16px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.tray-h .t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tray-h h2 { font: var(--t7); font-weight: 700; }
.tray-sub { font: var(--t3); color: var(--fg-neutral-subtle); margin-top: 2px; }
.tray-x { display: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.stat span { display: block; font: var(--t2); color: var(--fg-neutral-subtle); }
.stat b { font: var(--t8); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat b small { font: var(--t3); color: var(--fg-neutral-muted); margin-left: 1px; }
.dbar { display: flex; gap: 2px; height: 8px; margin-top: 14px; border-radius: var(--r1); overflow: hidden; background: var(--bg-neutral-weak); }
.dbar i { display: block; height: 100%; }
.d1 { background: color-mix(in srgb, var(--fg-brand) 18%, var(--bg-layer-floating)); }
.d2 { background: color-mix(in srgb, var(--fg-brand) 36%, var(--bg-layer-floating)); }
.d3 { background: color-mix(in srgb, var(--fg-brand) 56%, var(--bg-layer-floating)); }
.d4 { background: color-mix(in srgb, var(--fg-brand) 78%, var(--bg-layer-floating)); }
.d5 { background: var(--fg-brand); }
.dleg { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; font: var(--t1); color: var(--fg-neutral-subtle); font-variant-numeric: tabular-nums; }
.dleg span { display: inline-flex; align-items: center; gap: 4px; }
.dleg i { width: 8px; height: 8px; border-radius: var(--r0_5); display: inline-block; }
.tlist { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; min-height: 80px; }
.tlist li { display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 10px; border-radius: var(--r3); }
.tlist li:hover { background: var(--veil); }
.tn { width: 24px; height: 24px; border-radius: var(--r1_5); background: var(--bg-neutral-weak); font: var(--t2); font-weight: 700; display: grid; place-items: center; flex: none; font-variant-numeric: tabular-nums; }
.tt { flex: 1; min-width: 0; }
.tt b { display: block; font: var(--t4); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt span { display: block; font: var(--t2); color: var(--fg-neutral-subtle); font-variant-numeric: tabular-nums; }
.tact { display: flex; }
.tact .ib { width: 28px; height: 28px; }
.tray-empty { padding: 32px 16px; text-align: center; font: var(--t4); line-height: 22px; color: var(--fg-neutral-subtle); }
.tray-f { padding: 16px 20px 20px; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.mbar, .scrim { display: none; }

/* archive */
.arch { max-width: 960px; margin-inline: auto; padding-block: 48px 96px; }
.arch h1 { font: var(--t11); font-weight: 700; }
.arch > p { margin: 8px 0 32px; font: var(--t5); line-height: 24px; color: var(--fg-neutral-muted); }
.alist { list-style: none; margin: 0; padding: 0; box-shadow: inset 0 2px 0 var(--fg-neutral); }
.alist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 24px; padding: 20px 4px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.alist .at { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alist .at b { font: var(--t6); font-weight: 700; }
.alist .am { font: var(--t3); color: var(--fg-neutral-subtle); margin-top: 6px; font-variant-numeric: tabular-nums; }
.alist .ad { font: var(--t3); color: var(--fg-neutral-subtle); font-variant-numeric: tabular-nums; }
.alist .aa { display: flex; gap: 6px; }

/* ---------- Dialog ---------- */
.ov { position: fixed; inset: 0; z-index: 70; background: var(--bg-overlay); display: flex; align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px calc(env(safe-area-inset-bottom, 0px) + 20px); }
.dlg { width: min(480px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: var(--bg-layer-floating); border-radius: var(--r5); box-shadow: var(--shadow-dialog); overflow: hidden; }
.dlg-h { padding: 24px 24px 16px; display: flex; gap: 8px; align-items: flex-start; }
.dlg-h > div { flex: 1; }
.dlg-h h2 { font: var(--t8); font-weight: 700; }
.dlg-h p { margin-top: 8px; font: var(--t5); color: var(--fg-neutral-muted); line-height: 24px; }
.dlg-x { width: 52px; height: 52px; margin: -14px -14px 0 0; border-radius: var(--r3); display: grid; place-items: center; color: var(--fg-neutral); flex: none; }
.dlg-x:hover { background: var(--veil); }
.dlg-x svg { width: 22px; height: 22px; }
.dlg-b { padding: 4px 24px 24px; overflow: auto; display: flex; flex-direction: column; gap: 20px; margin: 0; }
.dlg-f { padding: 16px 24px 24px; display: flex; gap: 8px; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); }
.dlg-f .btn { flex: 1; }
.c-out { width: 100%; min-height: 140px; border-radius: var(--r2); padding: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-fill); color: var(--fg-neutral); font: var(--t3); }

.ov.full { align-items: stretch; }
.sheet { width: min(1320px, 100%); background: var(--bg-layer-floating); border-radius: var(--r5); box-shadow: var(--shadow-dialog); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.sheet-h { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 24px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.sheet-h h2 { font: var(--t7); font-weight: 700; }
.sheet-h .sp { flex: 1; }
.sheet-h .meta { font: var(--t3); color: var(--fg-neutral-subtle); font-variant-numeric: tabular-nums; }
.sheet-b { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 0; }
.pform { padding: 24px; box-shadow: inset -1px 0 0 var(--stroke-neutral-muted); overflow: auto; display: flex; flex-direction: column; gap: 20px; margin: 0; }
.pform .swl { justify-content: space-between; font-weight: 700; }
.pform .acts { margin-top: auto; display: grid; gap: 8px; }
.desk { background: var(--bg-layer-basement); overflow: auto; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.desk .loading { margin: auto; color: var(--fg-neutral-subtle); font: var(--t4); }

/* ---------- Paper (always a white sheet) ---------- */
.page { zoom: var(--z, 1); width: 794px; height: 1123px; flex: none; position: relative; overflow: hidden; background: var(--paper); color: var(--paper-ink); padding: 56px 52px 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 10px 30px rgba(0, 0, 0, .1); }
.pp { font-family: var(--font-paper); font-size: 14px; line-height: 1.78; letter-spacing: -0.015em; color: var(--paper-ink); word-break: keep-all; }
.measure { position: absolute; left: -12000px; top: 0; visibility: hidden; }
.ph-meta { display: flex; justify-content: space-between; font: 500 12px/1.4 var(--font); color: var(--paper-sub); }
.ph-title { text-align: center; font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 8px; line-height: 1.3; }
.ph-subj { display: flex; justify-content: center; }
.ph-subj span { border: 1.5px solid var(--paper-rule); border-radius: 999px; padding: 2px 24px; font-size: 16px; font-weight: 700; }
.ph-info { width: 100%; border-collapse: collapse; margin-top: 18px; font: 12px/1.3 var(--font); color: var(--paper-ink); table-layout: fixed; }
.ph-info th, .ph-info td { border: 1px solid var(--paper-rule); height: 30px; padding: 0 8px; text-align: center; }
.ph-info th { background: var(--paper-fill); font-weight: 700; }
.ph-note { display: flex; justify-content: space-between; margin-top: 8px; padding-bottom: 10px; border-bottom: 2.5px solid var(--paper-rule); font: 12px/1.4 var(--font); color: var(--paper-sub); }
.prun { height: 30px; display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 6px; border-bottom: 1px solid var(--paper-rule); font: 11.5px/1 var(--font); color: var(--paper-sub); }
.pcols { display: grid; gap: 36px; margin-top: 20px; position: relative; }
.pcols.c2 { grid-template-columns: 1fr 1fr; }
.pcols.c2::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #9A9DA3; }
.pcols.c1 { grid-template-columns: 1fr; }
.pcol { min-width: 0; }
.pp .pq { padding-bottom: 30px; }
.pp .pq-lead { margin: 0; }
.pp .pq-n { font: 800 15px/1 var(--font); margin-right: 5px; }
.pp .pq-pt { font: 700 12px/1 var(--font); white-space: nowrap; }
.pp .pq-body { margin-top: 8px; }
.pp .pq-body p { margin: 0 0 4px; text-indent: .7em; }
.pp .gbox { border: 1px solid var(--paper-rule); padding: 8px 12px; margin: 8px 0; }
.pp .gbox p { margin: 0; text-indent: 0; }
.pp .popts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 3px 6px; }
.pp .popts.row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pp .popts.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pp .popts.row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pp .popts.col { grid-template-columns: minmax(0, 1fr); }
.pp .popts li { display: flex; align-items: baseline; gap: 5px; min-width: 0; font: inherit; }
.pp .popts li > span { display: inline-block; }
.pp .popts .cn { color: inherit; }
.pp .popts.probe li > span { white-space: nowrap; }
.pp .pans { border: 1px solid var(--paper-rule); height: 168px; margin-top: 10px; padding: 6px 10px; font: 11px/1 var(--font); color: var(--paper-sub); }
.pp .pg-head { font-weight: 700; margin-bottom: 6px; }
.pp .pg-psg { padding-bottom: 26px; text-align: justify; }
.pp .pg-psg p { margin: 0; text-indent: .7em; }
.pp .pg-psg.poem p { text-indent: 0; margin-bottom: 10px; padding-left: 1.2em; }
.pp .pg-psg .cite { text-align: right; text-indent: 0; font-size: 12.5px; }
.pp .ps { padding-bottom: 20px; font-size: 13px; line-height: 1.75; }
.pp .ps p { margin: 0; }
.pp .ps .psn { font: 800 13px/1 var(--font); margin-right: 6px; }
.pp .ps .psa { font: 700 12px/1 var(--font); border: 1px solid var(--paper-rule); padding: 2px 6px; margin-right: 6px; }
.pp .ps ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 12.5px; }
.akey { width: 100%; border-collapse: collapse; margin-top: 14px; font: 12.5px/1.2 var(--font); text-align: center; table-layout: fixed; color: var(--paper-ink); }
.akey th, .akey td { border: 1px solid var(--paper-rule); height: 28px; padding: 0 2px; }
.akey th { background: var(--paper-fill); font-weight: 700; }
.pcheck { position: absolute; left: 52px; right: 52px; bottom: 58px; padding-top: 7px; border-top: 1px solid var(--paper-rule); font: 11.5px/1.4 var(--font); color: var(--paper-ink); }
.pf { position: absolute; left: 52px; right: 52px; bottom: 24px; display: flex; justify-content: center; align-items: center; font: 12px/1 var(--font); color: var(--paper-ink); }
.pf-n { border: 1px solid var(--paper-rule); min-width: 32px; padding: 3px 8px; text-align: center; font-variant-numeric: tabular-nums; }
.pf-r { position: absolute; right: 0; font-size: 10px; letter-spacing: .08em; color: var(--paper-sub); }
.pf-l { position: absolute; left: 0; font-size: 10px; color: var(--paper-sub); }

/* ---------- Snackbar ---------- */
.snack { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 90; transform: translateX(-50%) scale(.8); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 2px; width: max-content; max-width: min(464px, calc(100% - 32px)); min-height: 44px; padding: 0 0 0 10px; border-radius: var(--r2); background: var(--bg-neutral-solid); color: var(--fg-on-solid); box-shadow: var(--shadow-floating); transition: opacity var(--d2) var(--exit), transform var(--d2) var(--exit); }
.snack.show { opacity: 1; transform: translateX(-50%) scale(1); pointer-events: auto; transition: opacity var(--d3) var(--enter), transform var(--d3) var(--enter); }
.snack .msg { padding: 10px 6px; font: var(--t4); }
.snack svg { width: 24px; height: 24px; color: var(--fg-positive); flex: none; }
.snack button { min-height: 44px; padding: 0 12px 0 8px; font: var(--t4); font-weight: 700; color: var(--fg-brand-inverse); white-space: nowrap; }
.snack:not(.has-act) { padding-right: 10px; }
body.app.bank .snack { bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .work { grid-template-columns: 220px minmax(0, 1fr) 296px; gap: 20px; }
}
@media (max-width: 1024px) {
  .gnb-nav, .gnb-r .hide-m { display: none; }
  .gnb-menu { display: inline-grid; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .shot { height: 460px; }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feat.rev .feat-t { order: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .who, .steps, .princ { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.app.bank { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); }
  body.app.bank .snack { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
  .work { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .app-h-r, .app-h-r .tin { width: 100%; }
  .app-h-r .tin { flex: 1; }
  .tree-pane { position: static; max-height: none; overflow: visible; border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); padding: 6px 10px; }
  .tree-pane .pane-h { margin: 0; }
  .tree-pane .pane-tog { display: inline-flex; }
  .tree-pane .tree-body { display: none; padding-bottom: 8px; }
  .tree-pane.open .tree-body { display: block; }
  .tray { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 55; max-height: 82vh; border-radius: var(--r5) var(--r5) 0 0; box-shadow: var(--shadow-dialog); transform: translateY(105%); transition: transform var(--d6) var(--easing); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tray.open { transform: none; }
  .tray-x { display: inline-grid; }
  .scrim.on { display: block; position: fixed; inset: 0; z-index: 54; background: var(--bg-overlay); }
  body.app.bank .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; gap: 8px; padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 10px); background: var(--bg-layer-default); box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); }
  .mbar .mi { flex: 1; min-width: 0; font: var(--t3); color: var(--fg-neutral-muted); }
  .mbar .mi b { display: block; font: var(--t5); font-weight: 700; color: var(--fg-neutral); }
  .sheet-b { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pform { box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); max-height: 42vh; }
  .pform .acts { margin-top: 0; }
}
@media (max-width: 768px) {
  .sec { padding-block: 72px; }
  .sec.tight { padding-block: 56px; }
  .sec-h { margin-bottom: 32px; }
  .sec-h h2 { font: var(--t10); font-weight: 700; }
  .sec-h p { font: var(--t5); line-height: 24px; }
  .hero { padding-block: 48px 64px; }
  .hero h1 { font: var(--t12); font-weight: 700; }
  .hero .lead { font: var(--t5); line-height: 26px; }
  .hero .cta .btn { flex: 1; }
  .facts { gap: 20px 28px; }
  .shot { height: 400px; }
  .shot .page { --z: .44; margin-left: -175px; }
  .shot-tray { width: 216px; left: 12px; bottom: 16px; }
  .feat + .feat { margin-top: 72px; }
  .feat-t h3 { font: var(--t9); font-weight: 700; }
  .feat-v { padding: 16px; min-height: 0; }
  .feat-v.paper { height: 380px; padding-top: 16px; }
  .feat-v.paper .page { --z: .4; }
  .page-h { padding-block: 56px 40px; }
  .page-h h1 { font: var(--t11); font-weight: 700; }
  .page-h .lead { font: var(--t5); line-height: 26px; }
  .name-grid { grid-template-columns: minmax(0, 1fr); }
  .name-card { padding: 24px; }
  .banner { padding: 32px 24px; }
  .banner h2 { font: var(--t8); font-weight: 700; }
  .opts.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .q { padding: 16px 16px 12px; }
  .alist li { grid-template-columns: minmax(0, 1fr); }
  .ov.full { padding: 0; }
  .sheet { border-radius: 0; }
  .sheet-h { padding-left: 16px; }
  .sheet-h .meta { display: none; }
  .desk { padding: 16px; }
  .dlg { width: 90%; }
  .frow .fl { width: 100%; }
  .seg:not(.compact):not(.fill) button { min-width: 0; padding-inline: 16px; }
  .price-top .seg button { padding-inline: 14px; font: var(--t4); font-weight: 700; }
  .ft-map { gap: 32px 40px; }
}
@media (max-width: 480px) {
  .gnb-in { gap: 12px; }
  .gnb-r { gap: 4px; }
  .gnb-r .btn.sm { padding-inline: 12px; }
  .gnb-menu { width: 36px !important; height: 36px !important; }
  .logo .wm { font: var(--t5); font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* =====================================================================
   v3 · multi-page service, auth, CBT, effects (SEED anatomy, Lignums color)
   ===================================================================== */
.sprog { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 2px; z-index: 50; background: var(--fg-brand); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.rv-in { animation: fx-rise-soft .6s cubic-bezier(.2, .7, .2, 1); }
.btn.brand, .btn.neutral, .btn.critical { overflow: hidden; }
.link-plain { color: inherit; text-decoration: underline; text-decoration-color: var(--stroke-neutral-weak); text-underline-offset: 3px; }
.link-plain:hover { color: var(--fg-brand); text-decoration-color: currentColor; }
.mu { color: var(--fg-neutral-subtle); }
.narrow { max-width: 880px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.count-line { margin: 16px 0; font: var(--t4); color: var(--fg-neutral-muted); }
.count-line b { color: var(--fg-brand); font-variant-numeric: tabular-nums; }
.sub-h { font: var(--t8); font-weight: 700; margin: 48px 0 16px; }
.page-h.sm { padding-block: 64px 32px; }
.page-h.sm h1 { font: var(--t12); font-weight: 700; }
.crumbs { display: flex; align-items: center; gap: 4px; font: var(--t3); color: var(--fg-neutral-subtle); margin-bottom: 16px; }
.crumbs a:hover { color: var(--fg-neutral); }
.kv { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 10px; font: var(--t4); color: var(--fg-neutral-muted); }
.kv b { color: var(--fg-neutral); font-variant-numeric: tabular-nums; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { flex: 1; }
.err-t { font: var(--t3); color: var(--fg-critical); margin: 0; }
.ok-t { color: var(--fg-positive); }
.empty.sm { padding: 32px 16px; }
.ds { font: var(--t3); color: var(--fg-neutral-subtle); }
.tin.is-err { box-shadow: inset 0 0 0 2px var(--fg-critical); animation: fx-shake .45s; }
form.is-err .tin { animation: fx-shake .45s; }
.strip { padding-block: 0 8px; }
.strip .fx-marquee span { min-height: 36px; font: var(--t4); font-weight: 500; }
.about-orbit { position: absolute; right: 20px; top: 50%; transform: translateY(-50%) scale(1.3); }
main[data-view="about"] .page-h .container { position: relative; }
.tray-f .tray-cbt { grid-column: 1 / -1; }

/* header auth */
.auth-area { display: flex; align-items: center; gap: 8px; }
.avatar-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 4px; border-radius: var(--full); font: var(--t4); font-weight: 700; }
.avatar-btn:hover { background: var(--veil); }
.av { width: 32px; height: 32px; border-radius: var(--full); display: inline-grid; place-items: center; background: var(--bg-brand-weak); color: var(--fg-brand-contrast); font: var(--t4); font-weight: 700; flex: none; }
.av.lg { width: 64px; height: 64px; font: var(--t9); font-weight: 700; }
.umenu { position: absolute; right: 20px; top: 60px; width: 240px; padding: 8px; border-radius: var(--r3); background: var(--bg-layer-floating); box-shadow: var(--shadow-dialog); display: flex; flex-direction: column; z-index: 60; }
.umenu .um-h { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 12px 12px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); margin-bottom: 6px; }
.umenu .um-h b { font: var(--t5); font-weight: 700; }
.umenu .um-h span:not(.bdg) { font: var(--t3); color: var(--fg-neutral-subtle); }
.umenu a, .umenu button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r2); font: var(--t4); text-align: left; }
.umenu a:hover, .umenu button:hover { background: var(--veil); }
.mnav-user { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.mnav-user b { display: block; font: var(--t5); font-weight: 700; }
.mnav-user span:not(.av) { font: var(--t3); color: var(--fg-neutral-subtle); }
.mnav-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.theme-tg { position: relative; }
.theme-tg .fx-theme { position: absolute; inset: 0; width: 40px; height: 40px; background: none; color: var(--fg-neutral-muted); pointer-events: none; }
.theme-tg .fx-theme svg { left: 10px; top: 10px; }
.theme-tg:hover .fx-theme { color: var(--fg-neutral); }

/* sets */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.set-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r4); background: var(--bg-layer-default); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.sc-top { display: flex; gap: 4px; flex-wrap: wrap; }
.sc-title { font: var(--t6); font-weight: 700; }
.sc-title:hover { color: var(--fg-brand); }
.sc-meta { font: var(--t3); color: var(--fg-neutral-subtle); font-variant-numeric: tabular-nums; }
.set-card .dbar { margin-top: 2px; }
.sc-act { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.sc-act .btn { flex: 1; }
.set-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); margin-bottom: 8px; }
.set-head h1 { font: var(--t11); font-weight: 700; margin-top: 10px; }
.set-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-qs { list-style: none; margin: 0; padding: 0; }
.mini-qs li { display: flex; gap: 14px; padding: 18px 4px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.mq-b { flex: 1; min-width: 0; }
.mq-b p { font: var(--t5); line-height: 26px; }

/* cbt */
.cbt-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 30; background: var(--bg-layer-default); box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.cbt-bar-in { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.cbt-t { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.cbt-t b { font: var(--t5); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbt-prog { display: flex; align-items: center; gap: 10px; font: var(--t3); color: var(--fg-neutral-muted); font-variant-numeric: tabular-nums; }
.cbt-prog .bar { width: 120px; height: 6px; border-radius: 3px; background: var(--bg-neutral-weak); overflow: hidden; }
.cbt-prog .bar i { display: block; height: 100%; background: var(--fg-brand); transition: width var(--d4) var(--easing); }
.cbt-time { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--full); background: var(--bg-neutral-weak); font: var(--t4); }
.cbt-time b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cbt-time.low { background: var(--bg-critical-weak); color: var(--fg-critical); animation: fx-pulse 1.4s infinite; --c: var(--fg-critical); }
.cbt { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; padding-block: 28px 80px; }
.cbt-main { min-width: 0; }
.cbt-qh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; font: var(--t3); color: var(--fg-neutral-subtle); }
.cbt-no { font: var(--t9); font-weight: 700; color: var(--fg-neutral); font-variant-numeric: tabular-nums; }
.cbt-no small { font: var(--t4); color: var(--fg-neutral-subtle); }
.cbt-main .q-lead { font: var(--t6); line-height: 30px; }
.q-gb { box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); border-radius: var(--r1); padding: 10px 14px; margin: 10px 0; }
.cbt-in { margin-top: 24px; }
.cbt-ch { display: flex; flex-direction: column; gap: 8px; }
.cbt-opt { display: flex; align-items: baseline; gap: 10px; min-height: 52px; padding: 14px 16px; border-radius: var(--r3); text-align: left; font: var(--t5); line-height: 24px; box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); transition: box-shadow var(--d2) var(--easing), background-color var(--d2) var(--easing); }
.cbt-opt:hover { background: var(--veil); }
.cbt-opt .cn { color: var(--fg-neutral-muted); flex: none; }
.cbt-opt[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--fg-brand); background: var(--bg-brand-weak); }
.cbt-opt[aria-checked="true"] .cn { color: var(--fg-brand); font-weight: 700; }
.cbt-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); }
.cbt-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 144px); padding: 20px; border-radius: var(--r5); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); display: flex; flex-direction: column; gap: 14px; }
.cbt-side h2 { font: var(--t5); font-weight: 700; }
.omr { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.omr-b { position: relative; aspect-ratio: 1; border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); font: var(--t4); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.omr-b small { font: var(--t1); min-height: 13px; }
.omr-b:hover { background: var(--veil); }
.omr-b.has { background: var(--bg-brand-weak); color: var(--fg-brand-contrast); box-shadow: none; }
.omr-b.mk::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-warning); }
.omr-b.cur { box-shadow: inset 0 0 0 2px var(--fg-neutral); }
.omr-leg { display: flex; gap: 12px; flex-wrap: wrap; font: var(--t2); color: var(--fg-neutral-subtle); }
.omr-leg span { display: inline-flex; align-items: center; gap: 4px; }
.omr-leg i { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.omr-leg i.has { background: var(--bg-brand-weak); box-shadow: none; }
.omr-leg i.mk { background: var(--fg-warning); border-radius: 50%; box-shadow: none; width: 8px; height: 8px; }

/* result */
.res-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 28px; border-radius: var(--r5); background: var(--bg-layer-fill); margin-bottom: 24px; }
.res-circ { width: 128px; height: 128px; flex: none; }
.res-circ b { font: var(--t11); font-weight: 700; }
.res-t { flex: 1; min-width: 240px; }
.res-t h1 { font: var(--t10); font-weight: 700; margin-top: 8px; }
.res-cta { display: flex; flex-direction: column; gap: 8px; }
.res-tbl td { vertical-align: middle; }
.res-sol td { background: var(--bg-layer-fill); }
.res-sol .q-sol { margin: 0; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hist button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: var(--r3); text-align: left; box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); font: var(--t4); }
.hist button:hover { background: var(--veil); }
.hist button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--fg-neutral); }
.hist b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* curriculum */
.cur-list { display: flex; flex-direction: column; gap: 32px; }
.cur-c header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cur-c h3 { font: var(--t7); font-weight: 700; }
.cur-c .tbl tbody th { vertical-align: top; background: var(--bg-layer-fill); }

/* customer center */
.cs-tabs { margin-bottom: 24px; }
.nlist { list-style: none; margin: 0; padding: 0; box-shadow: inset 0 1px 0 var(--fg-neutral); }
.nlist a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 4px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.nlist a:hover .nt { color: var(--fg-brand); }
.nt { flex: 1; min-width: 0; font: var(--t5); }
.nd { font: var(--t3); color: var(--fg-neutral-subtle); }
.new-ping { padding: 2px 8px; gap: 6px; font: var(--t1); font-weight: 700; color: var(--fg-critical); box-shadow: none; background: var(--bg-critical-weak); }
.doc { font: var(--t5); line-height: 28px; }
.doc p { margin: 0 0 16px; }
.doc h2 { font: var(--t7); font-weight: 700; margin: 36px 0 12px; scroll-margin-top: 84px; }
.doc ul { margin: 0 0 16px; padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc-h { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-bottom: 24px; margin-bottom: 28px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.doc-h h1 { font: var(--t11); font-weight: 700; }
.toc { padding: 20px 24px; border-radius: var(--r4); background: var(--bg-layer-fill); font: var(--t4); }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc a:hover { color: var(--fg-brand); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.pn a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.pn a:hover { background: var(--veil); }
.pn a.r { text-align: right; }
.pn span { font: var(--t3); color: var(--fg-neutral-subtle); }
.pn b { font: var(--t4); font-weight: 700; }
.faq-tools { display: flex; gap: 8px; margin-bottom: 16px; }
.faq-cat { display: inline-block; margin-right: 8px; font: var(--t3); font-weight: 700; color: var(--fg-brand); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.card-form { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: var(--r5); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.card-form h2 { font: var(--t7); font-weight: 700; }
.inq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.inq-list li { padding: 16px; border-radius: var(--r3); background: var(--bg-layer-fill); display: flex; flex-direction: column; gap: 8px; font: var(--t4); }
.inq-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inq-h b { flex: 1; min-width: 0; }
.inq-list p { color: var(--fg-neutral-muted); line-height: 21px; white-space: pre-wrap; }

/* auth */
.auth { display: flex; justify-content: center; padding: 56px 20px 96px; background: var(--bg-layer-fill); min-height: calc(100vh - 64px); }
.auth-card { width: min(440px, 100%); padding: 40px 32px 32px; border-radius: var(--r5); background: var(--bg-layer-floating); box-shadow: var(--shadow-floating); display: flex; flex-direction: column; gap: 20px; align-self: flex-start; }
.auth-card h1 { font: var(--t10); font-weight: 700; }
.auth-sub { font: var(--t4); line-height: 21px; color: var(--fg-neutral-muted); margin-top: -12px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-links { display: flex; justify-content: center; align-items: center; gap: 12px; font: var(--t4); color: var(--fg-neutral-muted); }
.auth-links > span:empty { width: 1px; height: 12px; background: var(--stroke-neutral-weak); }
.auth-links a:hover { color: var(--fg-neutral); }
.auth-links a:last-child { font-weight: 700; color: var(--fg-brand); }
.cbl { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font: var(--t4); cursor: pointer; }
.cbl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cbl input:checked + .cbx { background: var(--bg-brand-solid); box-shadow: none; color: var(--fg-on-brand); }
.cbl input:focus-visible + .cbx { outline: 2px solid var(--fg-brand); outline-offset: 2px; }
.pw-in { padding-right: 6px; }
.pw-eye { min-height: 36px; padding: 0 10px; border-radius: var(--r2); font: var(--t3); font-weight: 700; color: var(--fg-neutral-muted); }
.pw-eye:hover { background: var(--veil); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--bg-neutral-weak); transition: background-color var(--d4) var(--easing); }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--fg-critical); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--fg-warning); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--fg-brand); }
.pw-meter[data-s="4"] i { background: var(--fg-positive); }
.su-step { width: 100%; }
.su-step span { cursor: default; }
.su-lbl { font: var(--t3); font-weight: 700; color: var(--fg-brand); margin-top: -10px; }
.agree { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px; border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.agree-all { min-height: 52px; font: var(--t5); font-weight: 700; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); width: 100%; }
.agree-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agree .req { color: var(--fg-brand); font: var(--t3); }
.agree .opt { color: var(--fg-neutral-subtle); font: var(--t3); }
.su-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 8px; }
.su-done .fx-ok { width: 80px; height: 80px; }
.su-done .row-btns { width: 100%; }
.otp-lg { justify-content: center; }
.otp-lg input { width: 48px; height: 56px; font: var(--t9); font-weight: 700; border-radius: var(--r3); }
.otp-lg.is-err { animation: fx-shake .45s; }

/* my page */
.my-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.my-head h1 { font: var(--t10); font-weight: 700; }
.my-body { padding-top: 28px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.tile span { font: var(--t3); color: var(--fg-neutral-subtle); }
.tile b { font: var(--t11); font-weight: 700; font-variant-numeric: tabular-nums; }
.tile b small { font: var(--t4); color: var(--fg-neutral-muted); margin-left: 2px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; min-height: 52px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); animation: fx-pop .4s both cubic-bezier(.2, .7, .2, 1); font: var(--t4); }
.feed li i { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-brand); flex: none; }
.feed li a { flex: 1; min-width: 0; }
.feed li a:hover { color: var(--fg-brand); }
.plan-now { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; padding: 28px; border-radius: var(--r5); background: var(--bg-layer-fill); }
.plan-now h3 { font: var(--t11); font-weight: 700; margin: 6px 0; }
.usage { min-width: 260px; flex: 1; max-width: 420px; display: flex; flex-direction: column; gap: 8px; }
.u-row { display: flex; justify-content: space-between; font: var(--t4); }
.u-bar { height: 8px; border-radius: 4px; background: var(--bg-neutral-weak); overflow: hidden; margin-bottom: 8px; }
.u-bar i { display: block; height: 100%; background: var(--fg-brand); }
.danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); max-width: 720px; }
.danger:first-of-type { margin-top: 32px; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted), inset 0 -1px 0 var(--stroke-neutral-muted); }
.danger h3 { font: var(--t5); font-weight: 700; }
.danger p { font: var(--t3); margin-top: 4px; }

/* effects library */
.applied { margin-bottom: 24px; border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.applied summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 20px; font: var(--t5); font-weight: 500; cursor: pointer; }
.applied summary::-webkit-details-marker { display: none; }
.applied summary svg { width: 20px; height: 20px; color: var(--fg-neutral-subtle); order: 2; margin-left: auto; transition: transform var(--d6) var(--easing); }
.applied[open] summary svg { transform: rotate(180deg); }
.applied ul { list-style: none; margin: 0; padding: 0 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; font: var(--t4); }
.applied li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.applied li span { font: var(--t3); color: var(--fg-neutral-subtle); }
.fx-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tone-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; flex: none; }
.fxl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.fx-card { display: flex; flex-direction: column; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); overflow: hidden; background: var(--bg-layer-default); }
.fx-stage { position: relative; height: 180px; display: grid; place-items: center; padding: 16px; background: var(--bg-layer-fill); overflow: hidden; }
.fx-stage > .fx-box { position: absolute; inset: 0; border-radius: 0; }
.fx-meta { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.fx-meta h3 { font: var(--t5); font-weight: 700; margin-top: 2px; }
.fx-meta p { font: var(--t3); color: var(--fg-neutral-muted); margin-top: 2px; }
.fx-no { font: var(--t2); font-weight: 700; color: var(--fg-neutral-subtle); }
.fx-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.fx-tags .bdg { gap: 2px; }
.fx-cp { align-self: flex-start; margin-top: auto; }
.fx-cp.done { background: var(--bg-positive-weak); color: var(--fg-positive); }

/* 404 & skeleton */
.nf { text-align: center; padding-block: 120px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nf-code { font: 700 96px/1 var(--font); color: var(--fg-brand); letter-spacing: -.02em; }
.nf h1 { font: var(--t10); font-weight: 700; }
.nf .row-btns { margin-top: 16px; width: min(360px, 100%); }
.sk-page { display: flex; flex-direction: column; gap: 12px; }
.sk-page .sk-line { width: 100%; }
.sk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 24px; }
.sk-cols > div { display: flex; flex-direction: column; gap: 12px; }
.sk-cols .sk-line:nth-child(3n) { width: 60%; }

@media (max-width: 1024px) {
  .cbt { grid-template-columns: minmax(0, 1fr); }
  .cbt-side { position: static; order: -1; }
  .omr { grid-template-columns: repeat(10, 1fr); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-orbit { display: none; }
  .umenu { right: 12px; }
}
@media (max-width: 768px) {
  .page-h.sm { padding-block: 40px 24px; }
  .page-h.sm h1 { font: var(--t10); font-weight: 700; }
  .set-head h1 { font: var(--t9); font-weight: 700; }
  .set-cta, .set-cta .btn { width: 100%; }
  .cbt-prog { display: none; }
  .cbt-bar { top: calc(env(safe-area-inset-top, 0px) + 64px); }
  .omr { grid-template-columns: repeat(6, 1fr); }
  .res-head { padding: 20px; gap: 20px; }
  .res-circ { width: 104px; height: 104px; }
  .res-cta { width: 100%; }
  .auth { padding: 24px 16px 64px; }
  .auth-card { padding: 28px 20px 24px; }
  .toc ol { columns: 1; }
  .pn { grid-template-columns: 1fr; }
  .tiles { gap: 8px; }
  .tile { padding: 16px; }
  .tile b { font: var(--t9); font-weight: 700; }
  .danger { flex-direction: column; align-items: flex-start; }
  .nf-code { font-size: 72px; }
  .otp-lg input { width: 40px; height: 50px; }
}
.hero h1 .fx-rot { --c: var(--fg-brand); color: var(--fg-brand); }

/* ===== v4 · AI 출제, 내 자료실, 레퍼런스 ===== */
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiers3 > div { gap: 12px; }
.tiers3 .bdg { align-self: flex-start; }
.callout.c-err { background: var(--bg-critical-weak); color: var(--fg-critical); }
.callout.c-warn { background: var(--bg-warning-weak); color: var(--fg-warning); }
.callout .link { font: inherit; font-weight: 700; }
.mk { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.mk-card { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--r5); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-default); min-width: 0; }
.mk-step { width: min(420px, 100%); }
.mk-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r5); background: var(--bg-layer-fill); }
.mk-side h3 { font: var(--t5); font-weight: 700; }
.mini-lib { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mini-lib button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r3); text-align: left; }
.mini-lib button:hover { background: var(--veil); }
.mini-lib img, .mini-lib .ph { width: 40px; height: 52px; border-radius: var(--r1_5); object-fit: cover; flex: none; background: var(--bg-layer-floating); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); display: grid; place-items: center; font: var(--t3); font-weight: 700; color: var(--fg-neutral-subtle); }
.mini-lib b { display: block; font: var(--t3); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-lib span span { font: var(--t2); }
.mini-lib > li > button > span { min-width: 0; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; padding: 32px 20px; border-radius: var(--r4); border: 1.5px dashed var(--stroke-neutral-weak); background: var(--bg-layer-fill); text-align: center; cursor: pointer; transition: border-color var(--d2) var(--easing), background-color var(--d2) var(--easing); }
.drop:hover, .drop.over { border-color: var(--fg-brand); background: var(--bg-brand-weak); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop input:disabled { cursor: not-allowed; }
.drop input:disabled + .drop-ic { opacity: .5; }
.drop:has(input:disabled) { cursor: default; border-color: var(--stroke-neutral-weak); background: var(--bg-layer-fill); }
.drop:has(input:focus-visible) { outline: 2px solid var(--fg-brand); outline-offset: 2px; }
.drop-ic { width: 56px; height: 56px; border-radius: var(--r4); display: grid; place-items: center; background: var(--bg-layer-floating); color: var(--fg-brand); box-shadow: var(--shadow-floating); margin-bottom: 4px; }
.drop-ic svg { width: 28px; height: 28px; }
.drop b { font: var(--t6); font-weight: 700; }
.drop > span:last-child { font: var(--t3); color: var(--fg-neutral-subtle); }
.mk-status { font: var(--t3); color: var(--fg-brand); margin-top: -12px; }
.mk-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.mk-thumbs li { position: relative; border-radius: var(--r3); overflow: hidden; box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-fill); }
.mk-thumbs img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mk-thumbs span { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: var(--r1); background: rgba(0, 0, 0, .6); color: #fff; font: var(--t2); }
.mk-thumbs .ib { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; background: rgba(0, 0, 0, .55); color: #fff; }
.mk-thumbs .ib:hover { background: rgba(0, 0, 0, .75); color: #fff; }
.mk-tips { padding: 16px 20px; border-radius: var(--r3); background: var(--bg-layer-fill); font: var(--t3); line-height: 20px; color: var(--fg-neutral-muted); }
.mk-tips b { color: var(--fg-neutral); }
.mk-tips ul { margin: 6px 0 0; padding-left: 1.1em; }
.rights { display: flex; flex-direction: column; gap: 8px; }
.right-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r3); text-align: left; box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); transition: box-shadow var(--d2) var(--easing), background-color var(--d2) var(--easing); }
.right-card:hover { background: var(--veil); }
.right-card[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--fg-brand); background: var(--bg-brand-weak); }
.right-card b { display: block; font: var(--t5); font-weight: 700; }
.right-card span span { display: block; margin-top: 4px; font: var(--t3); line-height: 20px; color: var(--fg-neutral-muted); }
.rc-dot { width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--stroke-neutral-weak); background: var(--bg-layer-default); transition: box-shadow var(--d2) var(--easing); }
.right-card[aria-checked="true"] .rc-dot { box-shadow: inset 0 0 0 6px var(--fg-brand); }
.req { color: var(--fg-brand); font: var(--t3); }
.opt { color: var(--fg-neutral-subtle); font: var(--t3); }
.tier-box { padding: 16px 20px; border-radius: var(--r3); background: var(--bg-layer-fill); font: var(--t4); }
.tier-box ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tier-box li { display: flex; gap: 8px; align-items: baseline; color: var(--fg-neutral-muted); line-height: 21px; }
.tier-box .bdg { flex: none; min-width: 84px; justify-content: center; }
.mk-busy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 32px 0 8px; }
.mk-busy h2 { font: var(--t8); font-weight: 700; }
.mk-busy .fx-skel { margin-top: 8px; }
.rec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.rec-head .bdg { margin-right: 4px; }
.rec-head h2 { font: var(--t9); font-weight: 700; margin: 8px 0 4px; }
.rec-tbl td { vertical-align: middle; }
.rec-tbl .pat { font: var(--t3); line-height: 19px; color: var(--fg-neutral); }
.concepts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.sel { width: 100%; min-width: 180px; min-height: 36px; padding: 0 28px 0 10px; border: 0; border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-default) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23767A82' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center / 12px; color: var(--fg-neutral); font: var(--t3); appearance: none; }
.sel.sm { min-width: 76px; }
.sel:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--stroke-neutral-contrast); }
.gen-opts { display: flex; gap: 20px 32px; flex-wrap: wrap; padding: 20px; border-radius: var(--r3); background: var(--bg-layer-fill); }
.q-sold { margin-top: 12px; }
.q-sold summary { cursor: pointer; font: var(--t3); font-weight: 700; color: var(--fg-neutral-muted); list-style: none; }
.q-sold summary::-webkit-details-marker { display: none; }
.q-sold summary::before { content: "▸ "; }
.q-sold[open] summary::before { content: "▾ "; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; }
.lib-card { display: flex; flex-direction: column; border-radius: var(--r4); overflow: hidden; box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-default); }
.lib-thumb { position: relative; height: 160px; background: var(--bg-layer-fill); display: grid; place-items: center; overflow: hidden; }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lib-thumb .ph { font: var(--t9); font-weight: 700; color: var(--fg-disabled); }
.lib-tag { position: absolute; left: 12px; top: 12px; }
.lib-b { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.lib-b h3 { font: var(--t6); font-weight: 700; }
.lib-withdraw { align-self: flex-start; font: var(--t3); }
.ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ref-card { padding: 24px; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ref-card.wide { grid-column: 1 / -1; }
.ref-card h3 { font: var(--t5); font-weight: 700; }
.ref-chart { width: 100%; height: auto; }
.ref-chart .gl { stroke: var(--stroke-neutral-muted); stroke-width: 1; }
.ref-chart .tl { fill: var(--fg-neutral-subtle); font: 11px var(--font); }
.hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font: var(--t4); }
.hbar > span { display: inline-flex; align-items: center; gap: 6px; }
.hbar > div { height: 10px; border-radius: 5px; background: var(--bg-neutral-weak); overflow: hidden; }
.hbar > div i { display: block; height: 100%; border-radius: 5px; background: var(--fg-brand); }
.hbar b { text-align: right; }
.unit-top { margin: 0; padding-left: 1.4em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; font: var(--t4); }
.unit-top li { display: list-item; }
.unit-top li span { display: inline; }
.unit-top b { float: right; color: var(--fg-neutral-subtle); }
@media (max-width: 1024px) {
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk { grid-template-columns: minmax(0, 1fr); }
  .mk-side { position: static; }
}
@media (max-width: 768px) {
  .steps.four { grid-template-columns: minmax(0, 1fr); }
  .mk-card { padding: 20px 16px; }
  .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .unit-top { grid-template-columns: minmax(0, 1fr); }
  .sel { min-width: 140px; }
  .gen-opts { padding: 16px; }
}

/* ===== 인쇄 · PDF 저장: 미리보기의 A4 쪽만 쪽 단위로 ===== */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  body > *:not(#ov) { display: none !important; }
  #ov { position: static !important; display: block !important; background: none !important; padding: 0 !important; }
  #ov .sheet { display: block !important; width: auto !important; height: auto !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; background: #fff !important; }
  #ov .sheet-h, #ov .pform { display: none !important; }
  #ov .sheet-b { display: block !important; }
  #ov .desk { display: block !important; padding: 0 !important; background: none !important; overflow: visible !important; }
  #ov .page { zoom: 1 !important; box-shadow: none !important; margin: 0 !important; break-after: page; page-break-after: always; }
  #ov .page:last-child { break-after: auto; page-break-after: auto; }
}

/* =====================================================================
   v5 · site effects (js/fxsite.js) — Magic UI·uiverse·shadcn 효과를 실제 화면에
   ===================================================================== */
.fxs .rv-in { animation: none; }
/* 등장 */
.fxs-rv { opacity: 0; transform: translateY(22px); filter: blur(4px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--fxs-i, 0) * 70ms); }
.fxs-rv.fxs-in { opacity: 1; transform: none; filter: none; }
main.fxs-enter { animation: fxs-enter .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes fxs-enter { from { opacity: 0; transform: translateY(8px); } }

/* 스포트라이트 + 떠오름 */
.who > div, .princ > div, .name-card, .steps li, .cov, .tile, .set-card, .plan, .lib-card, .ref-card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, opacity .7s cubic-bezier(.2, .7, .2, 1), filter .7s; transition-delay: calc(var(--fxs-i, 0) * 70ms); }
.fxs-done { transition-delay: 0s !important; }
.who > div:hover, .princ > div:hover, .name-card:hover, .steps li:hover, .cov:hover, .tile:hover, .set-card:hover, .plan:hover, .lib-card:hover, .ref-card:hover,
.feat-v:hover { background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--fg-brand) 11%, transparent), transparent 70%); }
.who > div:hover, .name-card:hover, .cov:hover, .tile:hover, .set-card:hover, .plan:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak), 0 14px 32px color-mix(in srgb, var(--fg-brand) 13%, transparent); }
.princ > div { padding: 4px; border-radius: var(--r4); }
.princ > div .ic { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.princ > div:hover .ic { transform: rotate(-8deg) scale(1.1); }
.who > div svg { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.who > div:hover svg { transform: translateY(-3px) scale(1.12); }

/* 버튼 물결·광택 */
.btn, .chip, .seg button, .tabs [role="tab"] { overflow: hidden; }
.chip, .seg button, .tabs [role="tab"] { position: relative; }
.fxs-rp { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: fxs-rp .65s ease-out forwards; pointer-events: none; z-index: 0; }
@keyframes fxs-rp { to { transform: scale(2.4); opacity: 0; } }
.btn:active:not(:disabled), .chip:active { transform: scale(.97); }
.fxs-sheen::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); animation: fxs-sheen 3.8s 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes fxs-sheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.fxs-leaf { position: fixed; width: 9px; height: 6px; border-radius: 6px 0 6px 0; background: var(--fg-brand); pointer-events: none; z-index: 90; }
.fxs-leaf:nth-child(3n) { background: var(--fg-positive); }
.fxs-leaf:nth-child(5n) { background: var(--bg-brand-weak); }

/* 히어로 배경 */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.fxs-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fxs-hero-bg span { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(80px); opacity: .32; animation: fxs-blob 14s ease-in-out infinite alternate; }
.fxs-hero-bg span:nth-child(1) { background: var(--bg-brand-weak); left: -120px; top: -160px; opacity: .9; }
.fxs-hero-bg span:nth-child(2) { background: var(--fg-brand); right: 6%; top: 20%; opacity: .14; animation-delay: -5s; }
.fxs-hero-bg span:nth-child(3) { background: var(--fg-positive); left: 34%; bottom: -220px; opacity: .1; animation-delay: -9s; }
@keyframes fxs-blob { to { transform: translate(60px, 40px) scale(1.15); } }
.fxs-hero-bg .dots { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--fg-brand) 26%, transparent) 1.1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(340px circle at var(--hx, 70%) var(--hy, 40%), #000, transparent 75%); mask-image: radial-gradient(340px circle at var(--hx, 70%) var(--hy, 40%), #000, transparent 75%); }
.fxs-blur { animation: fxs-blur 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fxs-blur { from { opacity: 0; filter: blur(10px); transform: translateY(10px); } }
.hero .lead, .hero .cta, .hero .note { animation: fxs-enter .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .lead { animation-delay: .15s; } .hero .cta { animation-delay: .28s; } .hero .note { animation-delay: .4s; }
.fxs-tilt { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out, box-shadow .3s; box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--fg-brand) 28%, transparent); }
.fxs-tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .22), transparent 60%); z-index: 3; }

/* 배너: 유성 + 테두리 빛 */
.fxs-banner { position: relative; overflow: hidden; isolation: isolate; }
.fxs-banner > :not(.fxs-meteors) { position: relative; }
.fxs-banner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--fx-a), transparent 0 72%, var(--fg-brand) 88%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: fx-beam 5s linear infinite; }
.fxs-meteors { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fxs-meteors i { position: absolute; top: -8px; width: 2px; height: 2px; border-radius: 50%; background: var(--fg-brand); transform: rotate(215deg); animation: fxs-meteor linear infinite; opacity: 0; }
.fxs-meteors i::before { content: ""; position: absolute; top: 50%; width: 64px; height: 1px; transform: translateY(-50%); background: linear-gradient(90deg, var(--fg-brand), transparent); }
@keyframes fxs-meteor { 0% { transform: rotate(215deg) translateX(0); opacity: .8; } 70% { opacity: .8; } 100% { transform: rotate(215deg) translateX(-520px); opacity: 0; } }

/* 단계: 번호 링 + 연결선 */
.fxs-steps li { position: relative; }
.fxs-steps li::before { position: relative; z-index: 1; transition: background-color .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1), box-shadow .4s; transform: scale(.6); }
.fxs-steps li.fxs-in::before { transform: none; background: var(--bg-brand-solid); color: var(--fg-on-brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--fg-brand) 16%, transparent); transition-delay: calc(var(--fxs-i, 0) * 140ms + .2s); }
.fxs-steps li::after { content: ""; position: absolute; left: 60px; right: 24px; top: 43px; height: 2px; background: linear-gradient(90deg, var(--fg-brand), transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--fxs-i, 0) * 140ms + .35s); opacity: .45; }
.fxs-steps li.fxs-in::after { transform: scaleX(1); }
.fxs-steps li:last-child::after { display: none; }

/* 섹션 머리 점 */
.fxs-eb { display: inline-flex; align-items: center; gap: 8px; }
.fxs-eb::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: fxs-ping 2.4s ease-out infinite; }
@keyframes fxs-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* 헤더 */
.gnb { transition: background-color .3s, box-shadow .3s; }
.gnb.fxs-scrolled { background: color-mix(in srgb, var(--bg-layer-default) 82%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted), 0 6px 20px -12px rgba(0, 0, 0, .25); }
.gnb-nav a:not([aria-current="page"])::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--fg-brand); transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.gnb-nav a:hover::after { transform: scaleX(1); }
.logo .fxs-rings { transform-origin: 13.6px 14.6px; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.logo:hover .fxs-rings { transform: rotate(-200deg); }

/* 맨 위로 */
.fxs-top { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; background: var(--bg-layer-floating, var(--bg-layer-default)); color: var(--fg-neutral); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .3); cursor: pointer; z-index: 45; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.fxs-top.on { opacity: 1; transform: none; pointer-events: auto; }
.fxs-top:hover { color: var(--fg-brand); }
.fxs-top svg { width: 48px; height: 48px; }
.fxs-top circle { fill: none; stroke-width: 2.5; }
.fxs-top .tr { stroke: var(--stroke-neutral-muted); }
.fxs-top .v { stroke: var(--fg-brand); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--k, 0) * 100); transform: rotate(-90deg); transform-origin: 24px 24px; stroke-linecap: round; }
body.bank .fxs-top, body.in-cbt .fxs-top { display: none; }

/* 입력창 포커스 빛, 마퀴 멈춤 */
.tin:focus-within { box-shadow: inset 0 0 0 2px var(--stroke-neutral-contrast), 0 0 0 4px color-mix(in srgb, var(--fg-brand) 14%, transparent); }
.strip .fx-marquee:hover .tr { animation-play-state: paused; }
.strip .fx-marquee span { transition: background-color .2s, color .2s; }
.strip .fx-marquee span:hover { background: var(--bg-brand-solid); color: var(--fg-on-brand); }

/* 푸터 점 격자 */
.ft { position: relative; isolation: isolate; }
.ft::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--fg-neutral) 12%, transparent) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }

@media (prefers-reduced-motion: reduce) {
  .fxs-rv { opacity: 1; transform: none; filter: none; }
  .fxs-hero-bg span, .fxs-meteors, .fxs-sheen::before, .fxs-eb::before, .fxs-banner::after, .fxs-blur, .hero .lead, .hero .cta, .hero .note { animation: none !important; }
  .fxs-meteors { display: none; }
}
@media print { .fxs-top, .fxs-hero-bg, .fxs-meteors { display: none !important; } }

/* =====================================================================
   v6 · 서버 문의 답변, 관리자 화면
   ===================================================================== */
.inq-ans { margin-top: 10px; padding: 12px 14px; border-radius: var(--r3); background: var(--bg-brand-weak); color: var(--fg-brand-contrast); display: flex; flex-direction: column; gap: 4px; }
.inq-ans b { font: var(--t3); font-weight: 700; }
.inq-ans p { font: var(--t4); line-height: 22px; color: var(--fg-neutral); }
button.tile { text-align: left; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
.adm-body { margin-top: 24px; }
.adm-inq li { gap: 6px; }
.adm-nrow { display: flex; align-items: center; gap: 10px; min-height: 52px; box-shadow: inset 0 -1px 0 var(--stroke-neutral-muted); }
.adm-nrow .nt { flex: 1; min-width: 0; font: var(--t5); font-weight: 500; }
.adm-mem td { vertical-align: middle; }
#ftBiz { margin-bottom: 6px; color: var(--fg-neutral-subtle); }

/* v7 · 데모·오프라인 알림 띠, 데모 시작 */
.app-banner { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; font: var(--t3); text-align: center; }
.app-banner.demo { background: var(--bg-brand-weak); color: var(--fg-brand-contrast); }
.app-banner.off { background: var(--bg-warning-weak); color: var(--fg-warning); }
.demo-cta { margin-top: 20px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--stroke-neutral-muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: var(--t3); }

/* v8 소셜 로그인 */
.social { display: flex; flex-direction: column; gap: 10px; }
.social-or { display: flex; align-items: center; gap: 12px; font: var(--t3); color: var(--fg-neutral-muted); }
.social-or::before, .social-or::after { content: ""; flex: 1; height: 1px; background: var(--stroke-neutral-muted); }
.social-btns { display: flex; flex-direction: column; gap: 8px; }
.social-btn { gap: 8px; box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-default); color: var(--fg-neutral); }
.social-btn i { display: inline-flex; width: 20px; height: 20px; }
.social-btn svg { width: 100%; height: 100%; }
.social-btn.sb-kakao { background: #FEE500; color: rgba(0, 0, 0, .85); box-shadow: none; }
.social-btn.sb-apple { background: #000; color: #fff; box-shadow: none; }
:root[data-theme="dark"] .social-btn.sb-apple { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .social-btn.sb-apple { background: #fff; color: #000; } }
.social-btn:disabled { opacity: .6; }
.social-note { text-align: center; }
.social-note a { text-decoration: underline; }

/* v9 계정 종류·우리 반 */
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-card { text-align: left; padding: 16px; border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-default); display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: box-shadow .2s, background .2s, transform .2s; }
.type-card b { font: var(--t5); font-weight: 700; }
.type-card span { font: var(--t3); line-height: 19px; color: var(--fg-neutral-muted); }
.type-card:hover { transform: translateY(-2px); }
.type-card.on { box-shadow: inset 0 0 0 2px var(--fg-brand); background: var(--bg-brand-weak); }
.cls .sub-h .mu { font-weight: 400; margin-left: 4px; }
.cls-new { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 20px; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.cls-new .fld { flex: 1 1 160px; min-width: 0; }
.cls-new select { width: 100%; background: transparent; border: 0; font: inherit; color: inherit; outline: none; }
.cls-join { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; border-radius: var(--r4); background: var(--bg-brand-weak); }
.cls-join label { font: var(--t5); font-weight: 700; }
.cls-join .tin { flex: 0 1 220px; }
.cls-join input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: .18em; text-transform: uppercase; }
.cls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cls-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.cls-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak), 0 12px 28px color-mix(in srgb, var(--fg-brand) 12%, transparent); }
.cls-card-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cls-card-t b { font: var(--t5); font-weight: 700; flex-basis: 100%; margin-top: 2px; }
.cls-card-m { display: flex; gap: 14px; font: var(--t3); color: var(--fg-neutral-muted); }
.cls-card-m b { color: var(--fg-neutral); }
.cls-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 30px; font-weight: 700; letter-spacing: .2em; color: var(--fg-brand); }
.cls-code.sm { position: absolute; right: 16px; bottom: 14px; font-size: 14px; letter-spacing: .14em; }
.cls-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 12px 0 24px; }
.cls-head h1 { font: var(--t11); font-weight: 700; margin-top: 6px; }
.cls-codebox { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: var(--r4); background: var(--bg-brand-weak); }
.asg-list { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.asg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.asg.closed { opacity: .7; }
.asg-m { font: var(--t3); margin-top: 2px; }
.asg-res { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--stroke-neutral-muted); }
.asg-sum { display: flex; gap: 16px; font: var(--t4); margin: 4px 0 12px; }
.asg-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.asg-h { font: var(--t4); font-weight: 700; margin-bottom: 8px; }
.qrate { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.qrate li { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 8px; font: var(--t3); }
.qrate .u-bar { margin: 0; }
.tc { color: var(--fg-critical); }
@media (max-width: 720px) {
  .asg { grid-template-columns: minmax(0, 1fr) auto; }
  .asg > .row-btns, .asg > .btn { grid-column: 1 / -1; }
  .asg-cols { grid-template-columns: minmax(0, 1fr); }
  .type-pick { grid-template-columns: minmax(0, 1fr); }
  .cls-join .tin { flex: 1 1 100%; }
}

/* v10 통합 계정 이용권 */
.ent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ent { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.ent.on { box-shadow: inset 0 0 0 1.5px var(--fg-brand); background: var(--bg-brand-weak); }
.ent-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ent-t b { font: var(--t5); font-weight: 700; }
.ent .mu { font: var(--t3); }
.adm-prod { font: var(--t2); padding: 3px 4px; border-radius: 6px; border: 1px solid var(--stroke-neutral-weak); background: var(--bg-layer-default); color: inherit; }
@media (max-width: 720px) { .ent-grid { grid-template-columns: minmax(0, 1fr); } }

/* v11 학교 고르기 · 우리 학교 기출 · 교재 */
.spick { display: flex; flex-direction: column; gap: 8px; }
.spick-cur { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: var(--r3); background: var(--bg-layer-fill); }
.spick-cur.on { background: var(--bg-brand-weak); }
.spick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.spick-list li.mu { font: var(--t3); padding: 6px 4px; }
.spick-list button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); background: var(--bg-layer-default); cursor: pointer; }
.spick-list button:hover { box-shadow: inset 0 0 0 1.5px var(--fg-brand); }
.spick-list button .mu { font: var(--t2); }
.sch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.sch-head h1 { font: var(--t11); font-weight: 700; margin: 6px 0 6px; }
.sch-head p { max-width: 640px; }
.sch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sch-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.sch-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak), 0 12px 28px color-mix(in srgb, var(--fg-brand) 12%, transparent); }
.sch-card b { font: var(--t5); font-weight: 700; }
.sch-card-t { display: flex; gap: 6px; flex-wrap: wrap; }
.sch-card-m { font: var(--t3); }
.sch-up { padding: 20px; border-radius: var(--r4); background: var(--bg-layer-fill); margin: 16px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.sch-up h2 { font: var(--t6); font-weight: 700; }
.sch-up-f { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sch-up-f select, .cls-new select { width: 100%; background: transparent; border: 0; font: inherit; color: inherit; outline: none; }
.sch-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border-radius: var(--r4); border: 1.5px dashed var(--stroke-neutral-weak); background: var(--bg-layer-default); cursor: pointer; text-align: center; }
.sch-drop:hover { border-color: var(--fg-brand); }
.trend { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding: 18px; border-radius: var(--r4); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.trend h3 { font: var(--t4); font-weight: 700; margin-bottom: 8px; }
.trend-col .qrate { margin-bottom: 16px; }
.trend .tr-u { grid-template-columns: minmax(0, 9em) 1fr 44px; }
.trend .tr-u span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-foot { grid-column: 1 / -1; margin: 0; }
.sch-tbl td:nth-child(5) { min-width: 14em; }
.var-q { margin: 8px 0; padding: 14px; border-radius: var(--r3); background: var(--bg-layer-default); box-shadow: inset 0 0 0 1px var(--stroke-neutral-weak); }
.var-q .opts { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.var-q .opts .cn { margin-right: 6px; }
.var-sol summary, .book-ex summary { cursor: pointer; color: var(--fg-brand); font: var(--t3); font-weight: 600; margin-top: 6px; }
.book { max-width: 760px; }
.book h1 { font: var(--t12); font-weight: 700; margin: 6px 0 12px; }
.book section { margin-top: 28px; }
.book h2 { font: var(--t8, 700 20px/28px inherit); font-weight: 700; margin-bottom: 10px; }
.book p, .book li { font: var(--t5); line-height: 1.8; }
.book ul { padding-left: 1.2em; display: grid; gap: 6px; }
.book-ex { padding: 14px 16px; border-radius: var(--r3); background: var(--bg-layer-fill); margin-bottom: 10px; }
.book-sum { padding: 16px 18px; border-radius: var(--r4); background: var(--bg-brand-weak); }
.book-cta { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; border-radius: var(--r4); box-shadow: inset 0 0 0 1.5px var(--fg-brand); }
.book-cta div { display: flex; flex-direction: column; gap: 2px; }
.adm-tb textarea { width: 100%; min-height: 90px; font: var(--t4); padding: 8px 10px; border-radius: var(--r3); border: 1px solid var(--stroke-neutral-weak); background: var(--bg-layer-default); color: inherit; resize: vertical; }
.adm-tb .tb-sec { display: grid; gap: 6px; padding: 12px; border-radius: var(--r3); background: var(--bg-layer-fill); margin-bottom: 10px; }
.adm-tb input.tb-h { width: 100%; font: var(--t4); font-weight: 700; padding: 6px 10px; border-radius: var(--r3); border: 1px solid var(--stroke-neutral-weak); background: var(--bg-layer-default); color: inherit; }
@media (max-width: 720px) { .sch-up-f { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trend { grid-template-columns: minmax(0, 1fr); } }
