/* 구냥이의 오답노트 — 공부 노트(오답노트) 디자인
   파란 잉크 · 따뜻한 흰 종이 · 24px 모눈 · 왼쪽 빨간 여백선 · 빨간펜은 오답 표시에만 · 형광펜은 애매한 글에만
   CSP: style 속성 없이 — 크기 · 위치는 JS 의 el.style.setProperty('--x') 로만 */

@font-face {
  font-family: "Pretendard Variable";
  src: url(/assets/fonts/PretendardVariable.woff2) format("woff2-variations"), url(/assets/fonts/PretendardVariable.woff2) format("woff2");
  font-weight: 45 920; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------------ 토큰 */
:root {
  --paper: #FBF8F1; --paper-2: #F5F0E4; --sheet: #FFFDF8;
  --ink: #2350C8; --ink-2: #3D6BE0; --ink-soft: rgba(35, 80, 200, .10);
  --text: #1B2440; --text-2: #5B6380; --text-3: #8A90A6;
  --grid-line: rgba(35, 80, 200, .08); --grid-dot: rgba(35, 80, 200, .20);
  --red: #D9483B; --hl: #FFE58A; --ok: #2E8B62; --amber: #C98A12; --margin: rgba(217, 72, 59, .35);

  --on-ink: #FFFFFF;
  --line: rgba(27, 36, 64, .10); --line-2: rgba(27, 36, 64, .18); --line-3: rgba(27, 36, 64, .30);
  --ink-line: rgba(35, 80, 200, .28);
  --red-soft: rgba(217, 72, 59, .10); --ok-soft: rgba(46, 139, 98, .12); --amber-soft: rgba(201, 138, 18, .14);
  --rule: rgba(35, 80, 200, .11);
  --cover: #2350C8; --cover-2: #1A3FA8; --cover-band: #14254F;
  --shadow-paper: 0 1px 1px rgba(27, 36, 64, .05), 0 8px 18px -12px rgba(27, 36, 64, .26), 0 26px 44px -34px rgba(27, 36, 64, .34);
  --shadow-pop: 0 2px 6px rgba(27, 36, 64, .10), 0 18px 40px -16px rgba(27, 36, 64, .36);
  --paper-edge: transparent;
  --c1: #2350C8; --c2: #00917F; --c3: #9A5BC4; --c4: #B0703A; --c-other: #A3A8B8;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --d1: 180ms; --d2: 320ms; --d3: 600ms;
  --r-xs: 4px; --r-sm: 7px; --r: 10px; --r-lg: 14px;
  --gutter: 24px; --maxw: 1240px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0E1322; --paper-2: #121A2E; --sheet: #161E33;
  --ink: #7FA2FF; --ink-2: #9DB8FF; --ink-soft: rgba(127, 162, 255, .12);
  --text: #E7EBF6; --text-2: #A7B0C8; --text-3: #737D98;
  --grid-line: rgba(127, 162, 255, .07); --grid-dot: rgba(127, 162, 255, .16);
  --red: #FF7A6B; --hl: rgba(255, 214, 90, .28); --ok: #5BC79A; --amber: #F0B44A; --margin: rgba(255, 122, 107, .35);
  --on-ink: #0E1322;
  --line: rgba(231, 235, 246, .09); --line-2: rgba(231, 235, 246, .16); --line-3: rgba(231, 235, 246, .28);
  --ink-line: rgba(127, 162, 255, .32);
  --red-soft: rgba(255, 122, 107, .13); --ok-soft: rgba(91, 199, 154, .13); --amber-soft: rgba(240, 180, 74, .14);
  --rule: rgba(127, 162, 255, .09);
  --cover: #23408F; --cover-2: #1A3170; --cover-band: #0A1230;
  --shadow-paper: 0 0 0 1px rgba(127, 162, 255, .07), 0 10px 26px -14px rgba(0, 0, 0, .7), 0 28px 50px -36px rgba(0, 0, 0, .8);
  --shadow-pop: 0 0 0 1px rgba(127, 162, 255, .12), 0 20px 44px -14px rgba(0, 0, 0, .75);
  --c1: #5F88F0; --c2: #1F9F8E; --c3: #A777D2; --c4: #C47A3C; --c-other: #59627C;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1322; --paper-2: #121A2E; --sheet: #161E33;
    --ink: #7FA2FF; --ink-2: #9DB8FF; --ink-soft: rgba(127, 162, 255, .12);
    --text: #E7EBF6; --text-2: #A7B0C8; --text-3: #737D98;
    --grid-line: rgba(127, 162, 255, .07); --grid-dot: rgba(127, 162, 255, .16);
    --red: #FF7A6B; --hl: rgba(255, 214, 90, .28); --ok: #5BC79A; --amber: #F0B44A; --margin: rgba(255, 122, 107, .35);
    --on-ink: #0E1322;
    --line: rgba(231, 235, 246, .09); --line-2: rgba(231, 235, 246, .16); --line-3: rgba(231, 235, 246, .28);
    --ink-line: rgba(127, 162, 255, .32);
    --red-soft: rgba(255, 122, 107, .13); --ok-soft: rgba(91, 199, 154, .13); --amber-soft: rgba(240, 180, 74, .14);
    --rule: rgba(127, 162, 255, .09);
    --cover: #23408F; --cover-2: #1A3170; --cover-band: #0A1230;
    --shadow-paper: 0 0 0 1px rgba(127, 162, 255, .07), 0 10px 26px -14px rgba(0, 0, 0, .7), 0 28px 50px -36px rgba(0, 0, 0, .8);
    --shadow-pop: 0 0 0 1px rgba(127, 162, 255, .12), 0 20px 44px -14px rgba(0, 0, 0, .75);
    --c1: #5F88F0; --c2: #1F9F8E; --c3: #A777D2; --c4: #C47A3C; --c-other: #59627C;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ 바탕 (모눈) */
*, *::before, *::after { box-sizing: border-box; }
html {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle, var(--grid-dot) 1px, transparent 1.6px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -12px -12px, 0 0, 0 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: transparent; color: var(--text);
  font-family: var(--font); font-size: 15.5px; line-height: 1.65; font-weight: 420;
  letter-spacing: -0.005em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss06";
}
body.has-sheet { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; font-weight: 750; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num, .tnum { font-variant-numeric: tabular-nums; }
::selection { background: var(--ink-soft); }
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }

/* 첫 불러오기 */
.boot { min-height: 70vh; display: grid; place-items: center; }
.boot-note { display: flex; gap: 8px; }
.boot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .25; animation: bootdot 1.1s var(--ease) infinite; }
.boot-dot:nth-child(2) { animation-delay: .15s; } .boot-dot:nth-child(3) { animation-delay: .3s; }
@keyframes bootdot { 40% { opacity: 1; transform: translateY(-4px); } }
.noscript { padding: 40px; text-align: center; }

/* ------------------------------------------------------------------ 글자 크기 */
.t-display { font-size: clamp(34px, 5.2vw, 56px); font-weight: 820; letter-spacing: -0.035em; line-height: 1.12; }
.t-h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 780; letter-spacing: -0.03em; line-height: 1.22; }
.t-h2 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 760; letter-spacing: -0.025em; }
.t-h3 { font-size: 18px; font-weight: 720; letter-spacing: -0.015em; }
.t-lead { font-size: 17.5px; color: var(--text-2); line-height: 1.7; }
.t-small { font-size: 14px; }
.t-cap { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.ink { color: var(--ink); }
.red { color: var(--red); }
.okc { color: var(--ok); }

/* ------------------------------------------------------------------ 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r);
  border: 1.5px solid transparent; background: transparent; color: var(--text);
  font-size: 15px; font-weight: 640; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), color var(--d1) var(--ease), transform var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16); }
.btn-primary:hover:not([disabled]) { background: var(--ink-2); color: var(--on-ink); }
.btn-ghost { border-color: var(--line-2); background: var(--sheet); }
.btn-ghost:hover:not([disabled]) { border-color: var(--ink-line); background: var(--ink-soft); color: var(--text); }
.btn-quiet { color: var(--ink); padding: 0 10px; }
.btn-quiet:hover:not([disabled]) { background: var(--ink-soft); color: var(--ink); }
.btn-danger { border-color: color-mix(in srgb, var(--red) 45%, transparent); color: var(--red); background: var(--sheet); }
.btn-danger:hover:not([disabled]) { background: var(--red-soft); color: var(--red); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; gap: 6px; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16.5px; border-radius: 12px; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linkbtn:hover { color: var(--ink-2); }
.linkbtn .ic { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ 종이 */
.paper {
  position: relative; background: var(--sheet); border-radius: 5px 12px 12px 5px;
  box-shadow: var(--shadow-paper); padding: 24px 26px 26px 54px;
}
.paper::before { content: ""; position: absolute; top: 0; bottom: 0; left: 34px; width: 1.5px; background: var(--margin); pointer-events: none; }
.paper.ruled {
  background-image: linear-gradient(var(--sheet), var(--sheet)), repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  background-clip: content-box, padding-box;
}
.paper-flat { padding: 20px 22px 22px 22px; }
.paper-flat::before { display: none; }
.paper-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.paper-title { font-size: 19px; font-weight: 760; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.paper-sub { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.est { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; letter-spacing: 0; }

/* ------------------------------------------------------------------ 인덱스 탭 */
.tabs { display: flex; gap: 4px; align-items: flex-end; padding-left: 40px; position: relative; z-index: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px; min-height: 42px; border: 0; border-radius: 11px 11px 0 0;
  background: var(--paper-2); color: var(--text-2); font-weight: 640; font-size: 15px; white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--line-2), inset 1px 0 0 var(--line), inset -1px 0 0 var(--line);
  transform: translateY(4px); transition: transform var(--d1) var(--ease), background-color var(--d1) var(--ease), color var(--d1) var(--ease);
}
.tab:hover { color: var(--text); transform: translateY(2px); }
.tab[aria-selected="true"], .tab.on {
  background: var(--sheet); color: var(--text); transform: none;
  box-shadow: inset 0 3px 0 var(--ink), 0 -6px 12px -10px rgba(27, 36, 64, .28);
}
.tab .cnt { font-size: 12.5px; font-weight: 700; min-width: 22px; padding: 0 6px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--ink-soft); color: var(--ink); font-variant-numeric: tabular-nums; }
.tab.drop-ok { background: var(--ink-soft); color: var(--ink); transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--ink); }
.tabbed > .paper { border-top-left-radius: 0; }

/* 작은 칩 탭 (보고서 안 등) */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 6px 12px; min-height: 32px; font-size: 14px; font-weight: 620; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--sheet); color: var(--text); box-shadow: 0 1px 2px rgba(27, 36, 64, .12), inset 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ 칩 · 배지 */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 620; background: var(--paper-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip .ic { width: 15px; height: 15px; }
.chip-ink { background: var(--ink-soft); color: var(--ink); box-shadow: none; }
.chip-ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.chip-amber { background: var(--amber-soft); color: var(--amber); box-shadow: none; }
.chip-red { background: var(--red-soft); color: var(--red); box-shadow: none; }
.chip-btn { cursor: pointer; border: 0; }
.chip-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink-line); color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; color: var(--text-2); }

/* ------------------------------------------------------------------ 입력 */
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--line-2); background: var(--sheet); border-radius: var(--r);
  padding: 10px 12px; min-height: 44px; transition: border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-soft); }
.textarea { min-height: 200px; resize: vertical; line-height: 1.7; }
.ruled-input { background-image: repeating-linear-gradient(to bottom, transparent 0 26.4px, var(--rule) 26.4px 27.4px); background-attachment: local; line-height: 27.4px; padding-top: 6px; }
.hint { font-size: 13px; color: var(--text-3); }

/* ------------------------------------------------------------------ 앱 틀 */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: var(--paper-2); box-shadow: inset 0 -1.5px 0 var(--line-2); position: relative; z-index: 20; }
.topbar-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: flex-end; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 12px 0; align-self: center; flex: none; }
.brand:hover { color: var(--text); }
.brand .mascot { width: 34px; height: 34px; }
.brand-name { font-size: 17.5px; font-weight: 820; letter-spacing: -0.035em; line-height: 1.1; }
.brand-name small { display: block; font-size: 11.5px; font-weight: 560; color: var(--text-3); letter-spacing: 0; margin-top: 1px; }
.nav { display: flex; gap: 2px; align-self: flex-end; margin-left: 8px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; height: 44px;
  border-radius: 11px 11px 0 0; text-decoration: none; color: var(--text-2); font-weight: 640; font-size: 15px;
  transition: color var(--d1) var(--ease), background-color var(--d1) var(--ease);
}
.nav a .ic { width: 18px; height: 18px; }
.nav a:hover { color: var(--text); background: var(--ink-soft); }
.nav a[aria-current="page"] {
  color: var(--text); background-color: var(--paper);
  box-shadow: inset 0 3px 0 var(--ink), inset 1.5px 0 0 var(--line-2), inset -1.5px 0 0 var(--line-2);
}
.nav a[aria-current="page"] .ic { color: var(--ink); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; align-self: center; }
.usage-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--sheet); font-size: 13.5px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.usage-pill:hover { border-color: var(--ink-line); }
.usage-pill .meter { width: 34px; height: 6px; border-radius: 999px; background: var(--ink-soft); overflow: hidden; }
.usage-pill .meter i { display: block; height: 100%; width: var(--w, 0%); background: var(--ink); border-radius: inherit; }
.usage-pill.empty .meter i { background: var(--red); }
.usage-pill.free { color: var(--text-2); }
.theme-seg button { padding: 0; width: 32px; min-height: 28px; justify-content: center; }
.theme-seg button .ic { width: 17px; height: 17px; }
.acct-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--sheet); display: grid; place-items: center; font-weight: 760; font-size: 14.5px; color: var(--ink); }
.acct-btn:hover { border-color: var(--ink-line); }
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 30px var(--gutter) 80px; }
main.wide { max-width: 1480px; }
.bottombar { display: none; }
.foot { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter) 40px; width: 100%; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .made { margin-left: auto; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 22px; }
.page-head .t-h1 { display: flex; align-items: center; gap: 12px; }
.page-head p { color: var(--text-2); margin-top: 6px; }
.page-head-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; margin-bottom: 10px; }
.crumb .ic { width: 16px; height: 16px; }
.crumb:hover { color: var(--ink); }

/* 메뉴 (작은 팝오버) */
.menu {
  position: fixed; z-index: 60; min-width: 220px; max-width: min(320px, calc(100vw - 24px)); padding: 6px;
  background: var(--sheet); border-radius: 12px; box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right;
  transition: opacity var(--d1) var(--ease), transform var(--d1) var(--ease);
  left: var(--mx, 0px); top: var(--my, 0px);
}
.menu.open { opacity: 1; transform: none; }
.menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head b { display: block; font-size: 15px; }
.menu-head span { font-size: 13px; color: var(--text-3); }
.menu-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 560; min-height: 40px; }
.menu-item .ic { width: 18px; height: 18px; color: var(--text-2); }
.menu-item:hover, .menu-item:focus-visible { background: var(--ink-soft); color: var(--text); outline-offset: -2px; }
.menu-item[aria-checked="true"] { color: var(--ink); }
.menu-item[aria-checked="true"]::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.menu-item.danger { color: var(--red); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.menu-label { font-size: 12.5px; color: var(--text-3); padding: 8px 12px 4px; font-weight: 600; }
.menu-row { padding: 6px 12px 8px; }
.menu-usage { display: grid; gap: 8px; padding: 6px 12px 10px; font-size: 14px; }
.menu-usage div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.menu-usage b { font-weight: 700; }

/* 알림 */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 16px; border-radius: 12px;
  background: var(--text); color: var(--paper); box-shadow: var(--shadow-pop); font-size: 14.5px; font-weight: 520;
  opacity: 0; transform: translateY(10px); transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(6px); }
.toast-msg { flex: 1; }
.toast-error { box-shadow: var(--shadow-pop), inset 4px 0 0 var(--red); }
.toast-ok { box-shadow: var(--shadow-pop), inset 4px 0 0 var(--ok); }
.toast-act { border: 0; background: transparent; color: var(--ink-2); font-weight: 750; padding: 6px 8px; border-radius: 8px; }
:root[data-theme="dark"] .toast-act { color: #2350C8; }
.toast-act:hover { background: rgba(127, 162, 255, .16); }
.toast-x { border: 0; background: transparent; color: inherit; opacity: .6; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1; }
.toast-x:hover { opacity: 1; background: rgba(127, 127, 127, .2); }

/* 시트 (대화상자) */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(14, 19, 34, .38); opacity: 0; transition: opacity var(--d2) var(--ease); }
.sheet {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain;
  background: var(--sheet); border-radius: 6px 16px 16px 6px; box-shadow: var(--shadow-pop); padding: 26px 26px 22px 56px;
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease);
}
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 34px; width: 1.5px; background: var(--margin); }
.sheet-wrap.open .sheet-scrim { opacity: 1; }
.sheet-wrap.open .sheet { opacity: 1; transform: none; }
.sheet-wrap.closing .sheet { opacity: 0; transform: translateY(10px); }
.sheet-sm .sheet { width: min(440px, 100%); }
.sheet-lg .sheet { width: min(720px, 100%); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-title { font-size: 20px; font-weight: 770; letter-spacing: -0.025em; }
.sheet-text { color: var(--text-2); margin-bottom: 18px; }
.sheet-x { flex: none; margin: -6px -8px 0 0; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.sheet-body { display: grid; gap: 16px; }

/* 빈 상태 · 안내 */
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 44px 24px; }
.empty .mascot { width: 92px; height: 92px; }
.empty h2 { font-size: 20px; }
.empty p { color: var(--text-2); max-width: 460px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--ink-soft); color: var(--text); font-size: 14.5px; }
.note .ic { color: var(--ink); margin-top: 2px; }
.note-amber { background: var(--amber-soft); }
.note-amber .ic { color: var(--amber); }
.err-page { padding: 60px 0; }

/* 빨간펜 · 펜 자국 (그려지는 움직임은 .draw 를 붙이면) */
.pen { width: 22px; height: 22px; flex: none; }
.pen path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.pen-good path { stroke: var(--ok); }
.pen-weak path, .pen-missing path { stroke: var(--red); }
.pen-na path { stroke: var(--text-3); }
.pen.wait path, .pen-circle.wait path { stroke-dashoffset: 1; }
.pen.draw path, .pen-circle.draw path { animation: pendraw var(--dur, 520ms) var(--ease) forwards; stroke-dashoffset: 1; }
@keyframes pendraw { to { stroke-dashoffset: 0; } }
.pen-circle { position: absolute; pointer-events: none; overflow: visible; }
.pen-circle path { stroke: var(--red); stroke-dasharray: 1; }
.pen-circle.ink path { stroke: var(--ink); }

/* 구냥이 */
.mascot .m-head, .mascot .m-line { stroke: var(--ink); stroke-width: 3.6; }
.mascot .m-head { fill: var(--sheet); }
.mascot .m-rays path { stroke: var(--amber); stroke-width: 3.4; }
.mascot .m-cheek { fill: var(--red); opacity: .28; }
.mascot .m-whisker { stroke: var(--ink); stroke-width: 2.4; opacity: .7; }
.mascot .m-pen { stroke: var(--red); stroke-width: 7; }
.mascot .m-pen-tip { stroke: var(--red); stroke-width: 3.2; fill: var(--red); }
.mascot .m-paw { fill: var(--sheet); stroke: var(--ink); stroke-width: 3.4; }
.mascot.mono .m-rays path { stroke: var(--ink); opacity: .5; }

/* ------------------------------------------------------------------ 랜딩 */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.land-top { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.land-hero { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 28px var(--gutter) 40px; display: grid; grid-template-columns: minmax(300px, 470px) minmax(0, 1fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.cover {
  position: relative; aspect-ratio: 5 / 6.6; border-radius: 6px 18px 18px 6px; transform: rotate(-1.6deg);
  background-color: var(--cover);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 5px), linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .12));
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 30px 50px -26px rgba(14, 30, 80, .65), 0 60px 80px -60px rgba(14, 30, 80, .55);
  animation: coverin var(--d3) var(--ease) both;
}
@keyframes coverin { from { opacity: 0; transform: rotate(-4deg) translateY(16px); } }
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 30px; border-radius: 6px 0 0 6px; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .06) 70%, rgba(255, 255, 255, .06)); }
.cover::after { content: ""; position: absolute; top: -2px; bottom: -2px; right: 46px; width: 13px; background: var(--cover-band); box-shadow: 1px 0 0 rgba(255, 255, 255, .08), -2px 0 4px rgba(0, 0, 0, .2); border-radius: 2px; }
.cover-label {
  position: absolute; left: 15%; right: 18%; top: 15%; background: var(--sheet); border-radius: 6px;
  padding: 20px 20px 18px 24px; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 8px 16px -10px rgba(0, 0, 0, .4);
}
.cover-label::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid var(--ink-line); border-radius: 3px; pointer-events: none; }
.cover-sub { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3); font-weight: 600; padding-bottom: 8px; }
.cover-word { font-size: clamp(38px, 4.6vw, 50px); font-weight: 860; letter-spacing: -0.05em; line-height: 1.04; color: var(--text); margin: 4px 0 14px; }
.cover-word span { display: block; font-size: .5em; font-weight: 720; letter-spacing: -0.03em; color: var(--text-2); margin-bottom: 4px; }
.cover-row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--text-3); font-weight: 600; border-bottom: 1.5px solid var(--rule); padding: 8px 0 4px; }
.cover-row b { color: var(--ink); font-weight: 700; font-size: 15px; }
.cover .mascot { position: absolute; right: 22%; bottom: 7%; width: 34%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
.cover-sticker { position: absolute; left: 16%; bottom: 10%; color: rgba(255, 255, 255, .78); font-size: 13px; font-weight: 600; line-height: 1.5; }
.cover-sticker b { display: block; font-size: 22px; color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.land-copy h1 { margin-bottom: 18px; max-width: 15em; }
.land-copy .t-lead { max-width: 33em; margin-bottom: 28px; }
.land-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.land-small { font-size: 13.5px; color: var(--text-3); }
.land-notes { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 8px var(--gutter) 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fnote { padding: 22px 22px 24px 50px; }
.fnote::before { left: 30px; }
.fnote h2 { font-size: 18px; margin: 14px 0 6px; }
.fnote p { color: var(--text-2); font-size: 14.5px; }
.fnote .mini { height: 92px; width: 100%; }
.mini text { font-family: var(--font); }
.mini .m-ink { stroke: var(--ink); }
.mini .m-ink-f { fill: var(--ink); }
.mini .m-soft { stroke: var(--line-3); }
.mini .m-soft-f { fill: var(--ink-soft); }
.mini .m-red { stroke: var(--red); }
.mini .m-ok { stroke: var(--ok); }
.mini .m-t { fill: var(--text-2); font-size: 12px; font-weight: 600; }
.mini .m-t-ink { fill: var(--ink); font-size: 12px; font-weight: 700; }
.mini .m-t-red { fill: var(--red); font-size: 12px; font-weight: 700; }
.mini .m-hl { fill: var(--hl); }
.land-foot { margin-top: auto; }

/* ------------------------------------------------------------------ 내 채널 */
.ch-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; background: var(--ink-soft); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 22px; box-shadow: inset 0 0 0 2px var(--ink-line); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.ch-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.ch-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ch-meta b { color: var(--text); font-weight: 700; }
.ch-tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.connect { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: center; padding: 34px 34px 36px 64px; }
.connect h1 { margin-bottom: 10px; }
.connect .reads { display: grid; gap: 10px; margin: 20px 0 24px; }
.connect .reads li { display: flex; gap: 12px; align-items: flex-start; }
.connect .reads .ic { color: var(--ink); margin-top: 3px; }
.connect .reads b { display: block; font-weight: 700; }
.connect .reads span { color: var(--text-2); font-size: 14.5px; }
.connect-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.connect-art { display: grid; place-items: center; }
.connect-art .mascot { width: min(220px, 70%); height: auto; }

/* 동기화 진행 */
.sync { margin-bottom: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; padding: 20px 24px 20px 54px; }
.sync-steps { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.sync-step { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 620; color: var(--text-3); }
.sync-step .box { width: 20px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line-3); display: grid; place-items: center; }
.sync-step .box .pen { width: 18px; height: 18px; }
.sync-step.done { color: var(--text); }
.sync-step.now { color: var(--ink); }
.sync-step.now .box { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sync-step.now .box::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: bootdot 1s var(--ease) infinite; }
.sync-title { font-weight: 720; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.ruler { position: relative; height: 22px; }
.ruler-track { position: absolute; left: 0; right: 0; top: 4px; height: 10px; border-radius: 3px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ruler-fill { height: 100%; width: var(--p, 0%); background: var(--ink); border-radius: 3px; transition: width var(--d2) var(--ease); }
.ruler-ticks { position: absolute; left: 0; right: 0; top: 14px; height: 6px; background-image: linear-gradient(90deg, var(--line-3) 1px, transparent 1px); background-size: 10% 100%; }
.sync-pct { font-size: 30px; font-weight: 800; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.sync-pct small { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 600; letter-spacing: 0; }

/* 건강지수 묶음 */
.health-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; margin-bottom: 34px; align-items: start; }
.health-side { display: grid; gap: 22px; }
.checkup-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: end; padding-bottom: 14px; border-bottom: 2px solid var(--text); margin-bottom: 18px; }
.checkup-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.checkup-head p { font-size: 13px; color: var(--text-3); }
.form-fields { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.form-fields b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.checkup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: start; }
.gauge { position: relative; display: grid; justify-items: center; }
.gauge svg { width: 220px; height: auto; overflow: visible; }
.gauge .g-track { stroke: var(--paper-2); }
.gauge .g-ticks { stroke: var(--line-3); }
.gauge .g-fill { stroke: var(--ink); transition: stroke-dashoffset 1s var(--ease); }
.gauge .g-num { font-size: 50px; font-weight: 820; fill: var(--text); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; font-family: var(--font); }
.gauge .g-of { font-size: 13px; fill: var(--text-3); font-weight: 600; font-family: var(--font); }
.gauge-label { position: relative; margin-top: -2px; padding: 6px 18px; font-size: 19px; font-weight: 780; color: var(--ink); }
.gauge-label .pen-circle { inset: -10px -14px; width: calc(100% + 28px); height: calc(100% + 20px); }
.gauge-label .pen-circle path { stroke: var(--ink); stroke-width: 2.4; }
.gauge-n { font-size: 12.5px; color: var(--text-3); margin-top: 8px; text-align: center; }
.parts { display: grid; }
.part { display: grid; grid-template-columns: 96px minmax(0, 1fr) 38px; gap: 2px 14px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.part:last-child { border-bottom: 0; }
.part-name { font-weight: 700; font-size: 14.5px; }
.minibar { height: 8px; border-radius: 3px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.minibar i { display: block; height: 100%; width: var(--w, 0%); background: var(--ink); border-radius: 0 3px 3px 0; transition: width var(--d3) var(--ease); }
.minibar.low i { background: var(--red); }
.part-score { font-weight: 780; font-variant-numeric: tabular-nums; text-align: right; font-size: 16px; }
.part-score.low { color: var(--red); }
.part-note { grid-column: 2 / 4; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.part-flag { color: var(--red); font-weight: 700; font-size: 12.5px; }

.next-num { font-size: clamp(34px, 3.6vw, 44px); font-weight: 830; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.next-num small { font-size: 16px; font-weight: 650; color: var(--text-2); letter-spacing: 0; margin-left: 4px; }
.range { position: relative; height: 54px; margin: 18px 0 6px; }
.range-axis { position: absolute; left: 0; right: 0; top: 20px; height: 2px; background: var(--line-2); }
.range-band { position: absolute; top: 13px; height: 16px; left: var(--l, 0%); width: var(--w, 0%); background: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--ink-line); border-radius: 4px; }
.range-mark { position: absolute; top: 7px; left: var(--x, 50%); width: 3px; height: 28px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.range-base { position: absolute; top: 9px; left: var(--x, 50%); width: 2px; height: 24px; margin-left: -1px; background: var(--text-3); }
.range-lbl { position: absolute; top: 34px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateX(-50%); left: var(--x, 0%); }
.range-lbl.base { top: -12px; color: var(--text-3); }
.small-note { font-size: 13px; color: var(--text-3); line-height: 1.55; }

.fanbar { display: flex; height: 26px; gap: 2px; margin: 14px 0 10px; border-radius: 6px; overflow: hidden; }
.fanbar i { display: block; height: 100%; flex: 0 0 var(--w, 0%); min-width: 3px; }
.fanbar .f-active { background: var(--ink); }
.fanbar .f-some { background: var(--ink-line); }
.fanbar .f-dormant { background-color: var(--paper-2); background-image: repeating-linear-gradient(135deg, var(--line-2) 0 1.5px, transparent 1.5px 6px); box-shadow: inset 0 0 0 1px var(--line); }
.legend { display: grid; gap: 7px; font-size: 14px; }
.legend li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.legend b { font-variant-numeric: tabular-nums; font-weight: 700; }
.sw.f-active { background: var(--ink); }
.sw.f-some { background: var(--ink-line); }
.sw.f-dormant { background-color: var(--paper-2); background-image: repeating-linear-gradient(135deg, var(--line-3) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.viewers { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.viewers b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
details.how { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
details.how summary { cursor: pointer; color: var(--ink); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary .ic { width: 16px; height: 16px; }
details.how[open] summary { margin-bottom: 8px; }
details.how p + p { margin-top: 6px; }

/* 영상 보드 */
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }
.board-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.board-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.board-tools .select { min-height: 34px; padding: 4px 30px 4px 10px; font-size: 14px; width: auto; }
.board .paper { padding: 22px 22px 26px 50px; min-height: 260px; }
.board .paper::before { left: 30px; }
.board-hint { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); margin-bottom: 16px; flex-wrap: wrap; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px 18px; }
.vcard { position: relative; display: flex; flex-direction: column; background: var(--sheet); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--d1) var(--ease), transform var(--d1) var(--ease), opacity var(--d1) var(--ease); touch-action: manipulation; }
.vcard:hover { box-shadow: inset 0 0 0 1px var(--ink-line), 0 10px 20px -16px rgba(27, 36, 64, .5); }
.vcard.dragging { opacity: .35; }
.vcard.moved { animation: movedout var(--d2) var(--ease) forwards; }
@keyframes movedout { to { opacity: 0; transform: scale(.94); } }
.vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px 10px 4px 4px; overflow: hidden; background: var(--paper-2); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background-color: var(--paper-2); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 16px 16px; }
.ph-doodle { width: 62%; height: auto; }
.ph-doodle path, .ph-doodle rect, .ph-doodle circle { stroke: var(--ink-line); }
.ph-title { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 12px; font-weight: 650; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdur { position: absolute; right: 8px; bottom: 8px; background: rgba(14, 19, 34, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.vwhy { position: absolute; left: 8px; top: 8px; }
.vwhy .chip { height: 24px; font-size: 12px; background: var(--sheet); }
.vbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vtitle { font-weight: 680; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.vmeta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vstats { display: flex; gap: 6px; flex-wrap: wrap; }
.vact { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 4px; }
.vact .grow { flex: 1; }
.vmenu-btn { margin-left: auto; color: var(--text-2); }
.vgrip { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 7px; background: var(--sheet); color: var(--text-3); display: grid; place-items: center; opacity: 0; transition: opacity var(--d1) var(--ease); box-shadow: inset 0 0 0 1px var(--line); cursor: grab; }
.vcard:hover .vgrip { opacity: 1; }
@media (hover: none) { .vgrip { display: none; } }
.vstamp { position: absolute; right: 10px; top: -6px; z-index: 2; }
.drag-ghost { position: fixed; z-index: 95; pointer-events: none; width: 220px; padding: 10px 12px; border-radius: 10px; background: var(--sheet); box-shadow: var(--shadow-pop), inset 0 0 0 1.5px var(--ink); font-size: 13.5px; font-weight: 650; transform: translate(var(--gx, 0px), var(--gy, 0px)) rotate(-2deg); left: 0; top: 0; }
.drag-ghost small { display: block; color: var(--text-3); font-weight: 600; font-size: 12px; margin-top: 2px; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }
.vboard-empty { padding: 40px 10px; text-align: center; color: var(--text-2); }

/* 등급 도장 (작은) */
.stamp {
  --sz: 44px; width: var(--sz); height: var(--sz); border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); font-weight: 900; font-size: calc(var(--sz) * .5); letter-spacing: -0.04em; line-height: 1;
  box-shadow: inset 0 0 0 2.5px var(--ink), inset 0 0 0 5px var(--sheet), inset 0 0 0 6.5px var(--ink);
  background: var(--sheet); transform: rotate(-10deg); font-variant-numeric: tabular-nums;
}
.stamp.sm { --sz: 34px; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--sheet), inset 0 0 0 5.2px var(--ink); }
.stamp.lg { --sz: 72px; }

/* ------------------------------------------------------------------ 대본 목록 */
.slist { display: grid; gap: 12px; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 16px 18px 16px 50px; text-decoration: none; color: var(--text); }
.srow::before { left: 30px; }
.srow:hover { color: var(--text); box-shadow: var(--shadow-paper), inset 0 0 0 1.5px var(--ink-line); }
.srow-title { font-weight: 700; font-size: 16px; line-height: 1.45; }
.srow-meta { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); margin-top: 4px; font-variant-numeric: tabular-nums; align-items: center; }
.srow-act { display: flex; gap: 6px; align-items: center; }
.drop {
  display: grid; place-items: center; gap: 6px; text-align: center; padding: 26px 16px; border-radius: 12px;
  border: 2px dashed var(--line-3); background: var(--paper-2); color: var(--text-2); cursor: pointer; transition: border-color var(--d1) var(--ease), background-color var(--d1) var(--ease);
}
.drop:hover, .drop.over { border-color: var(--ink); background: var(--ink-soft); color: var(--ink); }
.drop b { color: var(--text); }
.file-chosen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ink-soft); font-size: 14px; }
.file-chosen b { font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ------------------------------------------------------------------ 대본 편집기 */
.ed-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 18px; }
.ed-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; border: 0; background: transparent; width: 100%; padding: 2px 0; border-bottom: 1.5px solid transparent; border-radius: 0; }
.ed-title:hover { border-bottom-color: var(--line-2); }
.ed-title:focus { border-bottom-color: var(--ink); outline: none; }
.ed-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; color: var(--text-2); font-size: 14px; margin-top: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.ed-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.savestate { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-3); font-weight: 600; min-width: 74px; }
.savestate .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.savestate.saving .dot { background: var(--amber); animation: bootdot 1s var(--ease) infinite; }
.savestate.dirty .dot { background: var(--amber); }
.savestate.err { color: var(--red); }
.savestate.err .dot { background: var(--red); }
.ed-bar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; background: var(--paper-2); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.unsure-prog { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; }
.unsure-prog .hlbox { width: 18px; height: 14px; border-radius: 3px; background: var(--hl); box-shadow: inset 0 0 0 1px rgba(201, 138, 18, .35); }
.unsure-prog .minibar { width: 110px; }
.unsure-prog .minibar i { background: var(--amber); }
.ed-bar .sp { flex: 1; }
.lines { position: relative; padding: 14px 16px 18px 0; }
.lines.paper { padding-left: 0; }
.lines.paper::before { left: 76px; }
.line { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 16px; align-items: start; min-height: 34px; border-bottom: 1px solid var(--rule); }
.line:last-child { border-bottom: 0; }
.ln-time { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; padding: 7px 10px 0 0; text-align: right; font-weight: 600; user-select: none; }
.ln-time.est::after { content: "≈"; margin-left: 2px; color: var(--amber); }
.ln-text { padding: 5px 4px 5px 14px; min-height: 33px; border-radius: 4px; line-height: 1.6; white-space: pre-wrap; transition: background-color var(--d1) var(--ease); }
.ln-text:hover { background: var(--ink-soft); }
.ln-text:focus { background: var(--ink-soft); box-shadow: inset 2px 0 0 var(--ink); outline: none; }
.ln-text:empty::before { content: "(빈 줄)"; color: var(--text-3); }
.line.changed .ln-time::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 6px; vertical-align: 2px; opacity: .6; }
.line.flash .ln-text { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: var(--ink-soft); } 100% { background: transparent; } }
mark.unsure {
  background: linear-gradient(transparent 12%, var(--hl) 12%, var(--hl) 92%, transparent 92%); color: inherit; border-radius: 2px; padding: 0 1px;
  cursor: pointer; position: relative; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
mark.unsure::after { content: "?"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 2px; border-radius: 50%; background: var(--amber); color: #fff; font-size: 10.5px; font-weight: 800; vertical-align: 2px; line-height: 1; }
:root[data-theme="dark"] mark.unsure::after { color: #0E1322; }
mark.unsure:hover, mark.unsure.on { box-shadow: 0 0 0 2px var(--amber); }
.accepted { color: var(--ink); background: var(--ink-soft); border-radius: 3px; animation: flash 1.4s var(--ease) forwards; }
.lines.scanning .line { opacity: .55; transition: opacity var(--d2) var(--ease); }
.scanbeam { position: absolute; left: 0; right: 0; height: 90px; top: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--ink-soft) 70%, rgba(35, 80, 200, .22) 96%, transparent); border-bottom: 2px solid var(--ink); animation: scan 2.2s linear infinite; z-index: 3; }
@keyframes scan { from { transform: translateY(-90px); } to { transform: translateY(var(--h, 600px)); } }

.pop {
  position: absolute; z-index: 40; width: min(340px, calc(100vw - 24px)); background: var(--sheet); border-radius: 12px; box-shadow: var(--shadow-pop);
  padding: 16px; left: var(--px, 0px); top: var(--py, 0px); opacity: 0; transform: translateY(-4px); transition: opacity var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.pop.open { opacity: 1; transform: none; }
.pop-cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 10px; }
.pop-cmp div { padding: 8px 10px; border-radius: 8px; background: var(--paper-2); }
.pop-cmp small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 650; margin-bottom: 2px; }
.pop-cmp b { font-weight: 720; }
.pop-cmp .alt { background: var(--ink-soft); }
.pop-cmp .alt b { color: var(--ink); }
.pop-cmp .ic { color: var(--text-3); width: 16px; height: 16px; }
.pop-why { font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; display: flex; gap: 6px; align-items: flex-start; }
.pop-why .ic { width: 16px; height: 16px; color: var(--amber); margin-top: 3px; }
.pop-act { display: flex; gap: 6px; flex-wrap: wrap; }
.pop-act .btn { flex: 1; }

.analyze { margin-top: 28px; padding: 26px 26px 28px 54px; }
.analyze h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.engines { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 22px; }
.engine { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; padding: 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--sheet); cursor: pointer; transition: border-color var(--d1) var(--ease), background-color var(--d1) var(--ease); text-align: left; }
.engine:hover { border-color: var(--ink-line); }
.engine input { position: absolute; opacity: 0; pointer-events: none; }
.engine .radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-3); margin-top: 2px; display: grid; place-items: center; }
.engine b { font-size: 16px; font-weight: 750; }
.engine span.d { grid-column: 2; font-size: 13.5px; color: var(--text-2); }
.engine .cost { grid-column: 2; margin-top: 6px; }
.engine:has(input:checked) { border-color: var(--ink); background: var(--ink-soft); }
.engine:has(input:checked) .radio { box-shadow: inset 0 0 0 1.5px var(--ink); }
.engine:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.engine:has(input:focus-visible) { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.engine.locked { opacity: .78; }
.concepts { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 24px; }
.concept { position: relative; }
.concept input { position: absolute; opacity: 0; pointer-events: none; }
.concept span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--sheet); font-size: 14.5px; font-weight: 620; cursor: pointer; transition: all var(--d1) var(--ease); }
.concept span:hover { border-color: var(--ink-line); }
.concept input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.concept input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.analyze-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* 채점 중 (보고서 만드는 동안) */
.grading { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--paper) 86%, transparent); opacity: 0; transition: opacity var(--d2) var(--ease); }
.grading.open { opacity: 1; }
.grading-sheet { width: min(760px, 100%); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.grading-sheet::before { left: 34px; }
.g-left { position: relative; padding: 26px 22px 26px 56px; border-right: 1px dashed var(--line-2); overflow: hidden; min-height: 380px; }
.g-right { padding: 26px 24px; display: grid; align-content: start; gap: 18px; }
.g-title { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.g-lines { display: grid; gap: 0; font-size: 13.5px; color: var(--text-2); }
.g-lines div { padding: 4px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--d1) var(--ease); }
.g-lines div.read { color: var(--text); }
.g-lines div.hit { text-decoration: underline wavy var(--red); text-underline-offset: 4px; text-decoration-thickness: 1.2px; }
.g-left .scanbeam { animation-duration: 2.6s; }
.g-strats { display: grid; gap: 6px; font-size: 14px; }
.g-strats li { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.g-strats li.on { color: var(--text); }
.g-strats .pen { width: 18px; height: 18px; }
.g-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-count div { padding: 10px; border-radius: 10px; background: var(--paper-2); }
.g-count b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.g-count span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.g-msg { font-size: 14px; color: var(--text-2); min-height: 1.6em; }

/* ------------------------------------------------------------------ 보고서 목록 */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.rcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 20px 20px 18px 50px; text-decoration: none; color: var(--text); }
.rcard::before { left: 30px; }
.rcard:hover { color: var(--text); box-shadow: var(--shadow-paper), inset 0 0 0 1.5px var(--ink-line); }
.rcard-title { font-weight: 720; font-size: 16px; line-height: 1.45; }
.rcard-meta { grid-column: 1 / -1; display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; align-items: center; }
.rcard-score { font-size: 13px; color: var(--text-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.rcard-score b { font-size: 22px; font-weight: 820; color: var(--text); letter-spacing: -0.03em; margin-right: 2px; }
.rcard-secs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rcard-secs div { font-size: 12px; color: var(--text-3); font-weight: 600; }
.rcard-secs .minibar { margin-top: 4px; height: 6px; }

/* ------------------------------------------------------------------ 성장 노트 */
.gw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.gw-grid > .span-12 { grid-column: span 12; }
.gw-grid > .span-8 { grid-column: span 8; }
.gw-grid > .span-6 { grid-column: span 6; }
.gw-grid > .span-4 { grid-column: span 4; }
.deltas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.delta { padding: 14px 16px; border-radius: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.delta small { display: block; font-size: 13px; color: var(--text-2); font-weight: 620; }
.delta b { display: block; font-size: 28px; font-weight: 820; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.delta span { font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.delta.good b { color: var(--ok); }
.delta.bad b { color: var(--red); }
.delta .ic { width: 15px; height: 15px; }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.chart .ax { stroke: var(--line-2); stroke-width: 1; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .lbl-strong { fill: var(--text-2); font-weight: 650; }
.chart .s-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .s-total { stroke-width: 3; }
.chart .c1 { stroke: var(--c1); } .chart .c2 { stroke: var(--c2); } .chart .c3 { stroke: var(--c3); } .chart .c4 { stroke: var(--c4); }
.chart .f1 { fill: var(--c1); } .chart .f2 { fill: var(--c2); } .chart .f3 { fill: var(--c3); } .chart .f4 { fill: var(--c4); }
.chart .dot { stroke: var(--sheet); stroke-width: 2; }
.chart .bar { fill: var(--ink); }
.chart .bar-hl { fill: var(--ink-2); }
.chart .area { fill: var(--ink-soft); stroke: none; }
.chart .xhair { stroke: var(--line-3); stroke-width: 1; }
.chart .hit { fill: transparent; }
.chart .gline { stroke: var(--line); stroke-width: 1; }
.chart .gtxt { font-weight: 750; fill: var(--text-3); }
.chart.drawn .s-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pendraw 1.2s var(--ease) forwards; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; max-width: 260px; padding: 10px 12px; border-radius: 10px; background: var(--sheet); box-shadow: var(--shadow-pop); font-size: 13px; left: var(--tx, 0px); top: var(--ty, 0px); opacity: 0; transition: opacity var(--d1) var(--ease); }
.tip.on { opacity: 1; }
.tip b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.tip-row { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.tip-row i { width: 10px; height: 3px; border-radius: 2px; }
.tip-row span { flex: 1; color: var(--text-2); }
.tip .t-sub { color: var(--text-3); font-size: 12px; margin-bottom: 6px; }
.key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 16px; height: 3px; border-radius: 2px; background: var(--c1); }
.key i.k-total { height: 4px; }
.key i.k2 { background: var(--c2); } .key i.k3 { background: var(--c3); } .key i.k4 { background: var(--c4); }
.bg-c1 { background: var(--c1); } .bg-c2 { background: var(--c2); } .bg-c3 { background: var(--c3); } .bg-c4 { background: var(--c4); } .bg-other { background: var(--c-other); } .bg-ink { background: var(--ink); } .bg-faint { background: var(--text-3); }
.wtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.wtable th { text-align: left; font-size: 12.5px; color: var(--text-3); font-weight: 650; padding: 0 8px 8px; border-bottom: 1.5px solid var(--line-2); }
.wtable td { padding: 9px 8px; border-bottom: 1px dashed var(--line-2); font-variant-numeric: tabular-nums; vertical-align: middle; }
.wtable tr:last-child td { border-bottom: 0; }
.wtable .w { font-weight: 700; }
.spark { width: 110px; height: 28px; }
.spark path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--ink); }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; }
.trend .ic { width: 16px; height: 16px; }
.trend.up { color: var(--amber); }
.trend.down { color: var(--ok); }
.trend.flat { color: var(--text-3); }

/* ------------------------------------------------------------------ 설정 시트 */
.cps { display: flex; gap: 8px; flex-wrap: wrap; min-height: 34px; }
.cp { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--ink-soft); color: var(--ink); font-weight: 650; font-size: 14px; }
.cp button { border: 0; background: transparent; color: inherit; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cp button:hover { background: rgba(35, 80, 200, .16); }
.cp button .ic { width: 14px; height: 14px; }
.addrow { display: flex; gap: 8px; }

/* ------------------------------------------------------------------ 반응형 */
@media (max-width: 1100px) {
  .health-grid { grid-template-columns: 1fr; }
  .health-side { grid-template-columns: 1fr 1fr; }
  .gw-grid > .span-8, .gw-grid > .span-4, .gw-grid > .span-6 { grid-column: span 12; }
}
@media (max-width: 900px) {
  .land-hero { grid-template-columns: 1fr; justify-items: center; text-align: left; padding-top: 10px; }
  .land-hero .cover { width: min(400px, 92%); }
  .land-copy { max-width: 560px; }
  .land-notes { grid-template-columns: 1fr; max-width: 600px; }
  .connect { grid-template-columns: 1fr; }
  .connect-art { display: none; }
  .checkup { grid-template-columns: 1fr; justify-items: stretch; }
  .gauge { justify-self: center; }
  .sync { grid-template-columns: 1fr; }
  .sync-pct { text-align: left; }
  .grading-sheet { grid-template-columns: 1fr; }
  .g-left { min-height: 220px; border-right: 0; border-bottom: 1px dashed var(--line-2); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .nav, .theme-seg.top { display: none; }
  .topbar-in { min-height: 56px; align-items: center; gap: 10px; }
  .brand { padding: 8px 0; }
  .brand .mascot { width: 30px; height: 30px; }
  .brand-name { font-size: 16px; }
  .brand-name small { display: none; }
  main { padding: 22px var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
  .bottombar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--paper-2); box-shadow: inset 0 1.5px 0 var(--line-2); padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  }
  .bottombar a { display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; text-decoration: none; color: var(--text-3); font-size: 11.5px; font-weight: 650; border-radius: 0 0 10px 10px; }
  .bottombar a .ic { width: 22px; height: 22px; }
  .bottombar a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); background: var(--paper); }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .paper { padding: 20px 16px 20px 38px; }
  .paper::before { left: 24px; }
  .board .paper { padding: 16px 12px 18px 30px; }
  .board .paper::before { left: 18px; }
  .tabs { padding-left: 14px; }
  .tab { padding: 8px 12px; font-size: 14px; gap: 6px; }
  .health-side { grid-template-columns: 1fr; }
  .part { grid-template-columns: 84px minmax(0, 1fr) 34px; gap: 2px 10px; }
  .vgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .checkup-head { grid-template-columns: minmax(0, 1fr); }
  .checkup-head h2 { font-size: 19px; }
  .health-grid { gap: 16px; }
  .vcard { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 10px; }
  .vcard .vthumb { grid-row: 1; grid-column: 1; width: 104px; aspect-ratio: 16 / 9; border-radius: 6px; align-self: start; }
  .vcard .vbody { display: contents; }
  .vcard .vtitle { grid-column: 2; grid-row: 1; font-size: 14.5px; min-height: 0; align-self: start; padding-right: 26px; }
  .vcard .vmeta, .vcard .vstats, .vcard .vact { grid-column: 1 / -1; }
  .vcard .vmeta { margin-top: 8px; }
  .vcard .vstats { margin-top: 6px; }
  .vcard .vact { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
  .vcard .ph-title, .vcard .vwhy { display: none; }
  .vcard .ph-doodle { width: 70%; }
  .vcard .vdur { right: 4px; bottom: 4px; font-size: 11px; padding: 0 4px; }
  .vstamp { right: 8px; top: 8px; }
  .board-hint { font-size: 12.5px; }
  .board-hint > .ic { display: none; }
  .connect { padding: 24px 16px 26px 38px; }
  .engines { grid-template-columns: 1fr; }
  .ed-head { grid-template-columns: 1fr; }
  .ed-tools { justify-content: flex-start; }
  .lines.paper::before { left: 52px; }
  .line { grid-template-columns: 52px minmax(0, 1fr); gap: 0 10px; }
  .ln-time { font-size: 11.5px; padding-right: 6px; }
  .ln-text { padding-left: 8px; }
  .analyze { padding: 22px 16px 22px 38px; }
  .sheet-wrap { padding: 0; place-items: end stretch; }
  .sheet { width: 100% !important; max-height: 92dvh; border-radius: 18px 18px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)) 40px; transform: translateY(30px); }
  .sheet::before { left: 24px; }
  .deltas { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .rgrid { grid-template-columns: 1fr; }
  .usage-pill .meter { display: none; }
  .srow { grid-template-columns: 1fr; padding-left: 38px; }
  .srow::before { left: 22px; }
  .rcard { padding-left: 38px; }
  .rcard::before { left: 22px; }
  .ch-tools { margin-left: 0; width: 100%; }
  .foot .made { margin-left: 0; }
}
@media (max-width: 420px) {
  .usage-pill { padding: 0 10px; font-size: 12.5px; }
  .cover-label { left: 12%; right: 15%; padding: 16px 14px 14px 18px; }
  .land-cta .btn { width: 100%; }
}

/* 움직임 줄이기 — 자리 이동 없이 흐려지고 나타나기만 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-property: opacity, background-color, color, border-color !important; scroll-behavior: auto !important; }
  .cover { transform: rotate(-1.6deg); }
  .scanbeam { display: none; }
}
