/* 바로봄 디자인 토큰 — tokens/build.mjs가 만든다. 손으로 고치지 않는다(고칠 것은 build.mjs의 RECIPE).
   층: 원시(--brand-N, --gray-N, --success-N …) → 의미(--bg, --text, --primary …) → 부품(--btn-*, --chip-* …, 아래와 base.css)
   밝기는 data-theme="light|dark"(없으면 기기 설정). 기준: docs/13-디자인-시스템.md */
:root { --fs-xs: 0.8125rem; --fs-sm: 0.875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.25rem; --fs-2xl: 1.5rem; --fs-3xl: 1.625rem; --fs-4xl: 2rem; --lh: 1.6; --lh-tight: 1.3; --lh-ui: 1.4; --fw-regular: 400; --fw-medium: 600; --fw-bold: 700; --fw-heavy: 800; --s0: 2px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px; --tap-sm: 44px; --tap: 48px; --tap-main: 56px; --bar: 56px; --wrap: 640px; --ic-xs: 16px; --ic-sm: 20px; --ic-md: 24px; --ic-lg: 28px; --ic-stroke: 2; --tile: 40px; --tile-big: 48px; --thumb: 72px; --thumb-sm: 64px; --chip-h: 48px; --ad-h: 250px; --dur-fast: 120ms; --dur: 200ms; --ease: cubic-bezier(.2,.7,.3,1);
  --font-ui: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans CJK KR", sans-serif;
  --font-num: var(--font-ui);
  /* 부품 토큰 */
  --btn-h: var(--tap); --btn-h-main: var(--tap-main); --btn-r: var(--r-md); --btn-r-main: var(--r-lg); --btn-px: var(--s4); --btn-fw: var(--fw-medium);
  --chip-r: var(--r-pill); --card-r: var(--r-md); --card-r-big: var(--r-lg); --card-pad: var(--s4); --sheet-r: var(--r-lg); --field-border: 1.5px solid var(--border-input); --focus-ring: 3px solid var(--focus);
}
:root { color-scheme: light; --brand-1: #F8FDFC; --brand-2: #EFF9F6; --brand-3: #E0F3EE; --brand-4: #D0EDE5; --brand-5: #C0E6DC; --brand-6: #ADDED1; --brand-7: #94D0C1; --brand-8: #6CBAA9; --brand-9: #026C5C; --brand-10: #035F51; --brand-11: #005346; --brand-12: #012A23; --gray-1: #F9FDFC; --gray-2: #F2F8F6; --gray-3: #E8F0EE; --gray-4: #E0E7E5; --gray-5: #D7DEDC; --gray-6: #CCD3D1; --gray-7: #BCC3C1; --gray-8: #A4ABA9; --gray-9: #7B8280; --gray-10: #646A69; --gray-11: #515857; --gray-12: #19201E; --success-1: #F9FDF9; --success-2: #F0F9F2; --success-3: #E2F3E5; --success-4: #D4EDD8; --success-5: #C5E7CB; --success-6: #B4DEBB; --success-7: #9CD1A6; --success-8: #79BB87; --success-9: #1D7D3E; --success-10: #067132; --success-11: #025624; --success-12: #012C0F; --warning-1: #FFFBF7; --warning-2: #FCF5EC; --warning-3: #FAEBDA; --warning-4: #F8E1C8; --warning-5: #F5D7B5; --warning-6: #F0CAA0; --warning-7: #E6B883; --warning-8: #D59D58; --warning-9: #F7AC4D; --warning-10: #E9A03E; --warning-11: #633D01; --warning-12: #331D00; --danger-1: #FFFBFA; --danger-2: #FFF3F1; --danger-3: #FEE8E5; --danger-4: #FFDCD7; --danger-5: #FED0C9; --danger-6: #FEC0B8; --danger-7: #FFA79D; --danger-8: #F1867B; --danger-9: #C13C36; --danger-10: #B32E2A; --danger-11: #87070E; --danger-12: #460606; --bg: var(--gray-2); --surface: #FFFFFF; --surface-2: var(--gray-3); --surface-3: var(--gray-4); --text: var(--gray-12); --text-2: var(--gray-11); --text-3: var(--gray-10); --border: var(--gray-6); --border-strong: var(--gray-8); --border-input: var(--gray-9); --primary: var(--brand-9); --primary-hover: var(--brand-10); --primary-active: var(--brand-11); --on-primary: #FFFFFF; --primary-soft: var(--brand-3); --primary-soft-hover: var(--brand-4); --primary-text: var(--brand-11); --primary-border: var(--brand-9); --focus: var(--brand-9); --success: var(--success-9); --on-success: #FFFFFF; --success-text: var(--success-11); --success-soft: var(--success-3); --warning: var(--warning-11); --warning-text: var(--warning-12); --warning-soft: var(--warning-3); --danger: var(--danger-9); --on-danger: #FFFFFF; --danger-text: var(--danger-11); --danger-soft: var(--danger-3); --canvas: var(--gray-4); --paper: #FFFFFF; --placeholder: var(--gray-6); --placeholder-text: var(--gray-10); --notice-bg: var(--gray-3); --tile-bg: var(--gray-3); --ad-bg: var(--gray-4); --inverse-bg: var(--gray-12); --inverse-text: var(--gray-1); --paper-edge: rgba(0,0,0,.10); --photo-edge: rgba(0,0,0,.08); --scrim: rgba(12,16,14,.48); --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08); --shadow-2: 0 -2px 8px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.14); --shadow-paper: 0 1px 3px rgba(0,0,0,.14); --overlay-dim: rgba(0,0,0,.35); --overlay-badge: rgba(0,0,0,.62); --checker: #E3E3E3; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { color-scheme: dark; --success-1: #0C120D; --success-2: #101A12; --success-3: #142819; --success-4: #15311C; --success-5: #183C21; --success-6: #1F492A; --success-7: #2A5B36; --success-8: #367446; --success-9: #75BF85; --success-10: #89CE97; --success-11: #A6E2B2; --success-12: #DAF3DE; --warning-1: #150F08; --warning-2: #1E150C; --warning-3: #301F0A; --warning-4: #3C2405; --warning-5: #482C02; --warning-6: #583603; --warning-7: #6C450A; --warning-8: #8A580C; --warning-9: #EFB063; --warning-10: #FDC17A; --warning-11: #FBC689; --warning-12: #FEE7CE; --danger-1: #190D0C; --danger-2: #221210; --danger-3: #381815; --danger-4: #461B17; --danger-5: #551F1B; --danger-6: #672722; --danger-7: #7E332D; --danger-8: #A1423B; --danger-9: #F98478; --danger-10: #FE9C91; --danger-11: #FFBFB7; --danger-12: #FEE4E1; --bg: var(--gray-1); --surface: var(--gray-2); --surface-2: var(--gray-3); --surface-3: var(--gray-4); --text: var(--gray-12); --text-2: var(--gray-11); --text-3: var(--gray-10); --border: var(--gray-5); --border-strong: var(--gray-7); --border-input: var(--gray-8); --primary: var(--brand-9); --primary-hover: var(--brand-10); --primary-active: var(--brand-11); --on-primary: var(--brand-1); --primary-soft: var(--brand-3); --primary-soft-hover: var(--brand-4); --primary-text: var(--brand-11); --primary-border: var(--brand-9); --focus: var(--brand-9); --success: var(--success-9); --on-success: var(--success-1); --success-text: var(--success-11); --success-soft: var(--success-3); --warning: var(--warning-9); --warning-text: var(--warning-11); --warning-soft: var(--warning-3); --danger: var(--danger-9); --on-danger: var(--danger-1); --danger-text: var(--danger-11); --danger-soft: var(--danger-3); --canvas: #0B0D0C; --paper: #FFFFFF; --placeholder: var(--gray-5); --placeholder-text: var(--gray-10); --notice-bg: var(--gray-3); --tile-bg: var(--gray-3); --ad-bg: var(--gray-3); --inverse-bg: var(--gray-12); --inverse-text: var(--gray-1); --paper-edge: rgba(255,255,255,.22); --photo-edge: rgba(255,255,255,.22); --scrim: rgba(0,0,0,.6); --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.4); --shadow-2: 0 -2px 8px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.5); --shadow-paper: 0 0 0 1px rgba(255,255,255,.18); --overlay-dim: rgba(0,0,0,.45); --overlay-badge: rgba(0,0,0,.72); --checker: #E3E3E3; }
:root:not([data-theme="light"]) { --brand-1: #0B1210; --brand-2: #0F1A17; --brand-3: #102823; --brand-4: #0E312A; --brand-5: #0E3B33; --brand-6: #13483E; --brand-7: #1D5A4E; --brand-8: #257365; --brand-9: #6DC4B1; --brand-10: #82D3C1; --brand-11: #9CE1D1; --brand-12: #D6F3EB; --gray-1: #0B1210; --gray-2: #121917; --gray-3: #1B2220; --gray-4: #232928; --gray-5: #2B312F; --gray-6: #353B39; --gray-7: #454A49; --gray-8: #646A69; --gray-9: #7B8280; --gray-10: #939A98; --gray-11: #BABFBE; --gray-12: #E6EBE9; }
}
:root[data-theme="dark"] { color-scheme: dark; --success-1: #0C120D; --success-2: #101A12; --success-3: #142819; --success-4: #15311C; --success-5: #183C21; --success-6: #1F492A; --success-7: #2A5B36; --success-8: #367446; --success-9: #75BF85; --success-10: #89CE97; --success-11: #A6E2B2; --success-12: #DAF3DE; --warning-1: #150F08; --warning-2: #1E150C; --warning-3: #301F0A; --warning-4: #3C2405; --warning-5: #482C02; --warning-6: #583603; --warning-7: #6C450A; --warning-8: #8A580C; --warning-9: #EFB063; --warning-10: #FDC17A; --warning-11: #FBC689; --warning-12: #FEE7CE; --danger-1: #190D0C; --danger-2: #221210; --danger-3: #381815; --danger-4: #461B17; --danger-5: #551F1B; --danger-6: #672722; --danger-7: #7E332D; --danger-8: #A1423B; --danger-9: #F98478; --danger-10: #FE9C91; --danger-11: #FFBFB7; --danger-12: #FEE4E1; --bg: var(--gray-1); --surface: var(--gray-2); --surface-2: var(--gray-3); --surface-3: var(--gray-4); --text: var(--gray-12); --text-2: var(--gray-11); --text-3: var(--gray-10); --border: var(--gray-5); --border-strong: var(--gray-7); --border-input: var(--gray-8); --primary: var(--brand-9); --primary-hover: var(--brand-10); --primary-active: var(--brand-11); --on-primary: var(--brand-1); --primary-soft: var(--brand-3); --primary-soft-hover: var(--brand-4); --primary-text: var(--brand-11); --primary-border: var(--brand-9); --focus: var(--brand-9); --success: var(--success-9); --on-success: var(--success-1); --success-text: var(--success-11); --success-soft: var(--success-3); --warning: var(--warning-9); --warning-text: var(--warning-11); --warning-soft: var(--warning-3); --danger: var(--danger-9); --on-danger: var(--danger-1); --danger-text: var(--danger-11); --danger-soft: var(--danger-3); --canvas: #0B0D0C; --paper: #FFFFFF; --placeholder: var(--gray-5); --placeholder-text: var(--gray-10); --notice-bg: var(--gray-3); --tile-bg: var(--gray-3); --ad-bg: var(--gray-3); --inverse-bg: var(--gray-12); --inverse-text: var(--gray-1); --paper-edge: rgba(255,255,255,.22); --photo-edge: rgba(255,255,255,.22); --scrim: rgba(0,0,0,.6); --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.4); --shadow-2: 0 -2px 8px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.5); --shadow-paper: 0 0 0 1px rgba(255,255,255,.18); --overlay-dim: rgba(0,0,0,.45); --overlay-badge: rgba(0,0,0,.72); --checker: #E3E3E3; }
:root[data-theme="dark"] { --brand-1: #0B1210; --brand-2: #0F1A17; --brand-3: #102823; --brand-4: #0E312A; --brand-5: #0E3B33; --brand-6: #13483E; --brand-7: #1D5A4E; --brand-8: #257365; --brand-9: #6DC4B1; --brand-10: #82D3C1; --brand-11: #9CE1D1; --brand-12: #D6F3EB; --gray-1: #0B1210; --gray-2: #121917; --gray-3: #1B2220; --gray-4: #232928; --gray-5: #2B312F; --gray-6: #353B39; --gray-7: #454A49; --gray-8: #646A69; --gray-9: #7B8280; --gray-10: #939A98; --gray-11: #BABFBE; --gray-12: #E6EBE9; }
:root[data-theme="light"] { color-scheme: light; }

/* 바로봄 화면 규칙. 색·크기 값은 tokens.css(tokens/build.mjs가 만든다)에 있고, 빌드가 이 파일 앞에 붙인다.
   시안 spike/prototype-tools/css/base.css + tools.css(2026-11-18, 디자인 규칙 docs/13-디자인-시스템.md)에서 옮겼다. 시안 표시·디자인 규칙 페이지·광고 상자는 뺐다. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: var(--fs-md); line-height: var(--lh);
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--primary-text); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s2); top: var(--s2); z-index: 100; background: var(--surface); padding: var(--s2) var(--s3); }
[hidden] { display: none !important; }
svg.ic { width: var(--ic-md); height: var(--ic-md); flex: none; fill: none; stroke: currentColor; stroke-width: var(--ic-stroke); stroke-linecap: round; stroke-linejoin: round; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--btn-h); padding: 0 var(--btn-px); border-radius: var(--btn-r);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: var(--btn-fw); line-height: var(--lh-ui); text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:active { background: var(--surface-3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.btn.sm { min-height: var(--tap-sm); padding: 0 var(--s3); font-size: var(--fs-sm); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.primary:active { background: var(--primary-active); border-color: var(--primary-active); }
.btn.primary:disabled { opacity: .5; background: var(--primary); }
.btn.big { min-height: var(--btn-h-main); font-size: var(--fs-lg); border-radius: var(--btn-r-main); }
.btn.block { width: 100%; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--primary-text); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.ghost:active { background: var(--primary-soft-hover); }
.btn.grow { flex: 1; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--text); flex: none;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { background: var(--surface-3); }
.icon-btn.boxed { border: 1px solid var(--border); background: var(--surface); }
.icon-btn.small { width: var(--tap-sm); height: var(--tap-sm); }
.link-btn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s3); color: var(--text); text-decoration: none; font-weight: var(--fw-medium); border-radius: var(--r-md); }
.link-btn:hover { background: var(--surface-2); }

/* ── 머리줄 ── */
.appbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  height: var(--bar); padding: 0 var(--s2) 0 var(--s4); background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--border);
}
.logo { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); color: var(--text); text-decoration: none; font-weight: var(--fw-heavy); font-size: var(--fs-xl); letter-spacing: -.01em; }
.logo-mark { width: 24px; height: 24px; flex: none; }
.logo-mark .bg { fill: var(--primary); }
.logo-mark .fg { fill: var(--on-primary); }
.appbar-right { display: flex; align-items: center; gap: var(--s1); }
/* 앱 안 브라우저 띠 */
.band { background: var(--notice-bg); color: var(--text); font-size: var(--fs-sm); padding: var(--s2) var(--s4); display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.band .btn { min-height: var(--tap-sm); font-size: var(--fs-sm); }

/* ── 첫 화면 ── */
.hero { padding: var(--s5) 0 var(--s4); }
.hero h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); margin: 0 0 var(--s3); letter-spacing: -.02em; }
.hero .lead { margin: 0 0 var(--s4); color: var(--text-2); display: flex; gap: var(--s2); align-items: flex-start; }
.hero .lead svg { color: var(--primary); margin-top: 2px; width: var(--ic-sm); height: var(--ic-sm); }
.drop {
  border: 2px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface);
  padding: var(--s4); text-align: center; transition: border-color var(--dur-fast), background var(--dur-fast);
}
.drop.over { border-color: var(--primary); border-style: solid; background: var(--primary-soft); }
.drop .pc-hint { display: none; color: var(--text-2); margin: var(--s2) 0 var(--s3); }
.drop .over-hint { display: none; font-weight: var(--fw-bold); color: var(--primary-text); }
.drop.over .over-hint { display: block; }
.drop.over .pc-hint, .drop.over .pick-row, .drop.over .formats { visibility: hidden; }
.drop .formats { margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--text-3); }
.engine-line { min-height: var(--s5); margin-top: var(--s3); font-size: var(--fs-sm); color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: var(--s2); }
.engine-line:empty { display: none; }
.engine-line .bar { width: 96px; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.engine-line .bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width var(--dur); }
.engine-line button { border: 0; background: none; color: var(--primary-text); font-weight: var(--fw-bold); min-height: var(--tap-sm); padding: 0 var(--s2); }
.after-note { margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--text-2); text-align: center; }

section.block { padding: var(--s5) 0 var(--s2); }
section.block h2 { font-size: var(--fs-xl); line-height: var(--lh-tight); margin: 0 0 var(--s3); letter-spacing: -.01em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); counter-reset: st; }
.steps li { display: flex; gap: var(--s3); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s3) var(--s4); counter-increment: st; }
.steps li::before { content: counter(st); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font-weight: var(--fw-bold); display: grid; place-items: center; font-size: var(--fs-sm); margin-top: 1px; }
.steps b { display: block; }
.steps span { color: var(--text-2); font-size: var(--fs-sm); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.card-link { display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--card-r); background: var(--surface); color: var(--text); text-decoration: none; }
.card-link:hover { border-color: var(--primary-border); }
.card-link b { font-size: var(--fs-md); }
.card-link span { font-size: var(--fs-sm); color: var(--text-2); }

.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; min-height: var(--tap); padding: var(--s3) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-weight: var(--fw-medium); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); flex: none; margin-right: var(--s2); transition: transform var(--dur-fast); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .ans { padding: 0 0 var(--s4); color: var(--text-2); }
.faq .ans p { margin: 0 0 var(--s2); }

/* 푸터 */
.footer { margin-top: var(--s6); padding: var(--s5) 0 var(--s6); border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-sm); }
.footer p { margin: 0 0 var(--s2); }
.footer-links { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--text-2); display: inline-flex; align-items: center; min-height: var(--tap-sm); font-weight: var(--fw-medium); }

/* 오류 카드 */
.err { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: var(--s5) var(--s4) var(--s4); text-align: center; }
.err-ic { width: var(--tile-big); height: var(--tile-big); border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--s3); background: var(--surface-2); color: var(--text-2); }
.err-ic svg { width: var(--ic-lg); height: var(--ic-lg); }
.err h2 { font-size: var(--fs-lg); margin: 0 0 var(--s1); line-height: var(--lh-ui); }
.err p { margin: 0 0 var(--s4); color: var(--text-2); }
.err .row { display: flex; flex-direction: column; gap: var(--s2); }

/* 문서 페이지(도움말·방침·소개·착지) */
.doc-page { padding-top: var(--s5); padding-bottom: var(--s5); }
.doc-page h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); margin: 0 0 var(--s3); letter-spacing: -.02em; }
.doc-page h2 { font-size: var(--fs-xl); line-height: var(--lh-tight); margin: var(--s6) 0 var(--s3); }
.doc-page p, .doc-page li { color: var(--text-2); }
.doc-page ul { padding-left: 1.2em; }
.summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); margin: var(--s4) 0; }
.summary-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.summary-box li { display: flex; gap: var(--s2); color: var(--text); }
.summary-box li svg { color: var(--primary); width: var(--ic-sm); height: var(--ic-sm); margin-top: 2px; }
.quote { border-left: 3px solid var(--border-strong); padding: var(--s1) var(--s3); margin: var(--s3) 0; color: var(--text); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.muted { color: var(--text-3); font-size: var(--fs-sm); }

/* ── 보기 화면 ── */
.viewer { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--canvas); }
.v-top {
  position: relative; z-index: 3; display: flex; align-items: center; gap: var(--s1); height: var(--bar);
  padding: 0 var(--s1); background: var(--surface); border-bottom: 1px solid var(--border); transition: margin-top .2s;
}
.viewer.bar-hidden .v-top { margin-top: calc(-1 * var(--bar)); }
.v-name { flex: 1; min-width: 0; display: flex; font-weight: var(--fw-medium); white-space: nowrap; }
.v-name .a { overflow: hidden; text-overflow: ellipsis; }
.v-name .b { flex: none; }
.v-tools-pc { display: none; align-items: center; gap: var(--s1); }
.zoom-val { min-width: 72px; text-align: center; font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.page-btn {
  min-height: var(--tap); min-width: 84px; padding: 0 var(--s3); border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.v-chips { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s2) var(--s3); background: var(--surface); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.chip { flex: none; min-height: var(--tap-sm); padding: 0 var(--s3); border-radius: var(--chip-r); border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--fs-sm); font-weight: var(--fw-medium); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip[aria-current="true"] { border-color: var(--primary-border); color: var(--primary-text); background: var(--primary-soft); }
.chip.off { opacity: .55; }
.v-body { flex: 1; min-height: 0; display: flex; }
.v-scroll { flex: 1; min-width: 0; overflow: auto; overscroll-behavior: contain; touch-action: manipulation; -webkit-overflow-scrolling: touch; }
.v-scroll:focus-visible { outline-offset: -3px; }
.v-pages { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s3) var(--s3) calc(var(--s6) + var(--bar)); width: max-content; min-width: 100%; }
.page { position: relative; background: var(--paper); box-shadow: var(--shadow-paper); flex: none; }
.page svg { display: block; width: 100%; height: 100%; }
.page.ph { background: var(--placeholder); box-shadow: none; }
.page.ph::after { content: attr(data-label); position: absolute; top: 12%; left: 0; right: 0; text-align: center; color: var(--placeholder-text); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.v-notice { max-width: 720px; margin: var(--s3) auto 0; width: calc(100% - 2 * var(--s3)); background: var(--notice-bg); border-radius: var(--r-md); display: flex; flex-wrap: wrap; align-items: center; position: sticky; left: var(--s3); }
.v-notice-main { flex: 1; display: flex; align-items: center; gap: var(--s2); min-height: var(--tap-sm); border: 0; background: none; text-align: left; padding: 0 var(--s3); font-size: var(--fs-sm); color: var(--text); }
.v-notice-more { flex-basis: 100%; margin: 0; padding: 0 var(--s4) var(--s3); font-size: var(--fs-sm); color: var(--text-2); }
.i-info { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--text-2); position: relative; }
.i-info::before { content: "i"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--font-ui); color: var(--text-2); }
.v-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; gap: var(--s2); align-items: center;
  padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border);
}
.zoom-bubble { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: var(--inverse-bg); color: var(--inverse-text); padding: var(--s2) var(--s4); border-radius: var(--r-pill); font-weight: var(--fw-heavy); pointer-events: none; opacity: 0; transition: opacity var(--dur); z-index: 4; }
.zoom-bubble.on { opacity: .92; }
.menu { position: absolute; right: var(--s2); top: calc(var(--bar) - 4px); z-index: 6; min-width: 260px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: var(--s1) 0; }
.menu button, .menu a { display: flex; color: var(--text); text-decoration: none; width: 100%; align-items: center; gap: var(--s3); min-height: var(--tap); padding: 0 var(--s4); border: 0; background: none; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }
.menu button small { margin-left: auto; color: var(--text-3); font-size: var(--fs-sm); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: var(--s1) 0; }

@media (min-width: 840px) {
  .v-tools-pc { display: flex; }
  .v-bottom { display: none; }
  .v-pages { padding-bottom: var(--s6); gap: var(--s4); padding-top: var(--s4); }
  .v-top { padding: 0 var(--s2); }
  .drop { padding: var(--s6) var(--s5); }
  .drop .pc-hint { display: block; }
  .hero { padding-top: var(--s6); }
  .hero h1, .doc-page h1 { font-size: var(--fs-4xl); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .err .row { flex-direction: row; justify-content: center; }
  .seg { flex-wrap: wrap; }
}

/* ── 시트·덮개 ── */
.layer { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--surface); color: var(--text);
  border-radius: var(--sheet-r) var(--sheet-r) 0 0; padding: var(--s2) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-2); animation: up var(--dur) var(--ease); overscroll-behavior: contain;
}
.sheet .grab { width: 40px; height: 4px; border-radius: var(--r-xs); background: var(--border-strong); margin: 0 auto var(--s3); }
.sheet-head { display: flex; align-items: flex-start; gap: var(--s2); }
.sheet-head h2 { flex: 1; font-size: var(--fs-xl); margin: var(--s3) 0 var(--s2); line-height: var(--lh-tight); }
.sheet p { margin: 0 0 var(--s3); color: var(--text-2); }
.sheet .actions { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s4); }
.layer.center { align-items: center; padding: var(--s4); }
.layer.center .sheet { border-radius: var(--r-lg); max-width: 420px; }
@media (min-width: 840px) {
  .layer { align-items: center; padding: var(--s4); }
  .sheet { border-radius: var(--r-lg); max-height: 88vh; }
  .sheet .grab { display: none; }
}
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 기기 고르기 칩 */
.seg { display: flex; gap: var(--s2); overflow-x: auto; margin: 0 calc(-1 * var(--s4)) var(--s3); padding: 2px var(--s4); scrollbar-width: none; }
.seg button { flex: none; min-height: var(--tap-sm); padding: 0 var(--s3); border-radius: var(--chip-r); border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.seg button[aria-pressed="true"] { background: var(--inverse-bg); color: var(--inverse-text); border-color: var(--inverse-bg); }
.guide { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.guide li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s2) var(--s3); align-items: start; }
.guide .n { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font-weight: var(--fw-bold); display: grid; place-items: center; font-size: var(--fs-sm); }
.guide .t { padding-top: 2px; }
.guide .pic { grid-column: 2; }
.guide .pic { margin-bottom: var(--s2); }
.guide .pic svg { width: 100%; max-width: 280px; height: auto; display: block; }
.check { display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); margin-top: var(--s2); font-size: var(--fs-sm); color: var(--text-2); }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }
.note { background: var(--notice-bg); border-radius: var(--r-md); padding: var(--s3); font-size: var(--fs-sm); color: var(--text-2); margin: var(--s3) 0 0; }

/* 비밀번호 */
.field { display: flex; align-items: center; border: var(--field-border); border-radius: var(--r-md); background: var(--surface); }
.field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.field input { flex: 1; min-width: 0; border: 0; background: none; min-height: var(--tap); padding: 0 var(--s3); font-size: var(--fs-md); outline: none; }
.field .icon-btn { border-radius: 0 var(--r-md) var(--r-md) 0; }
.field-msg { margin: var(--s2) 0 0; font-size: var(--fs-sm); color: var(--text); display: flex; gap: var(--s2); align-items: center; }
.field-msg::before { content: "!"; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--danger); color: var(--on-danger); display: grid; place-items: center; font-weight: var(--fw-heavy); font-size: 12px; }

/* 여는 중 */
.busy { background: var(--surface); border-radius: var(--r-lg); padding: var(--s5) var(--s4) var(--s4); width: 100%; max-width: 360px; text-align: center; box-shadow: var(--shadow-2); }
.busy .fname { display: flex; align-items: center; justify-content: center; gap: var(--s2); font-weight: var(--fw-medium); margin-bottom: var(--s3); min-width: 0; }
.busy .fname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftype { flex: none; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .02em; padding: var(--s0) var(--s2); border-radius: var(--r-xs); background: var(--primary-soft); color: var(--primary-text); text-transform: uppercase; }
.busy .msg { margin: 0 0 var(--s3); color: var(--text-2); }
.busy .bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 0 0 var(--s4); }
.busy .bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width var(--dur); }
.busy .bar.ind i { width: 35%; animation: ind 1.2s ease-in-out infinite; }
.busy .row { display: flex; gap: var(--s2); }
.busy .row .btn { flex: 1; }
@keyframes ind { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); margin: 0; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: calc(var(--bar) + var(--s5) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: max-content; max-width: calc(100vw - 32px); background: var(--inverse-bg); color: var(--inverse-text); padding: var(--s2) var(--s2) var(--s2) var(--s4); border-radius: var(--r-md); box-shadow: var(--shadow-1); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: var(--fs-sm); }
.toast .btn { min-height: var(--tap-sm); background: transparent; color: var(--inverse-text); border-color: color-mix(in srgb, var(--inverse-text) 40%, transparent); font-size: var(--fs-sm); }

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

/* ── 인쇄(PDF로 저장): 문서 쪽만, 늘 밝은 판 ── */
#print-root { display: none; }
@media print {
  html, body { background: #fff !important; color: #000; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  .pp { overflow: hidden; break-after: page; page-break-after: always; background: #fff; }
  .pp:last-child { break-after: auto; page-break-after: auto; }
  .pp svg { display: block; width: 100%; height: 100%; }
}

/* ── 정적 페이지에서 더한 것 ── */
.hero h1 .sub { display: block; margin-top: var(--s1); font-weight: var(--fw-medium); color: var(--text-2); font-size: var(--fs-lg); line-height: var(--lh-ui); letter-spacing: 0; }
.noscript { margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.cards.next { grid-template-columns: 1fr !important; }
.more-link { padding-left: 0; }
.guide-static { padding-left: 1.2em; }
.guide-static li { margin-bottom: var(--s1); }
.doc-page h3 { font-size: var(--fs-lg); margin: var(--s5) 0 var(--s2); }
main table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); margin: var(--s3) 0; }
main th, main td { border: 1px solid var(--border); padding: var(--s2); text-align: left; vertical-align: top; color: var(--text-2); }
main th { background: var(--surface); color: var(--text); }
.table-wrap { overflow-x: auto; }
.field .unit { padding: 0 var(--s3); color: var(--text-3); }
.sheet .after { margin-top: var(--s2); }
.err-layer { width: 100%; max-width: 420px; }
.ops-flag { position: fixed; left: var(--s2); bottom: var(--s2); z-index: 70; font-size: var(--fs-xs); padding: var(--s0) var(--s2); border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }

/* ════ 도구 모음 (시안 tools.css) ════ */
:root { --dock-h: 0px; }   /* 아래 고정 막대 높이 (image.js가 바꾼다) */

body { padding-bottom: var(--dock-h); }

/* ── 머리줄: 로고 · 지금 도구 이름 · [도구 ▾] [도움말] ── */
.appbar { gap: var(--s2); }
.brand { display: flex; align-items: center; min-width: 0; gap: 2px; }
.tool-name { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s2) 0 var(--s0); color: var(--text-2); font-weight: var(--fw-medium); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tool-name::before { content: "·"; margin-right: var(--s2); color: var(--text-3); }
.tool-name:empty { display: none; }
.tools-btn { gap: var(--s1); border: 0; background: none; }
.tools-btn svg.ic { width: var(--ic-xs); height: var(--ic-xs); transition: transform var(--dur-fast); }
.tools-btn[aria-expanded="true"] svg.ic { transform: rotate(180deg); }
.tools-btn[aria-expanded="true"] { background: var(--surface-2); }
@media (max-width: 359px) { .logo-text { display: none; } .tool-name::before { display: none; } }

/* 도구 표시: 모양(선 아이콘)으로 가르고 색은 회색 하나. 지금 도구만 청록 */
.tile { width: var(--tile); height: var(--tile); flex: none; border-radius: var(--r-md); display: grid; place-items: center; background: var(--tile-bg); color: var(--text); }
.tile svg.ic { width: var(--ic-md); height: var(--ic-md); }
.tile.on { background: var(--primary-soft); color: var(--primary-text); }
.tile.big { width: var(--tile-big); height: var(--tile-big); }
.tile.big svg.ic { width: var(--ic-lg); height: var(--ic-lg); }

/* 도구 메뉴: PC는 머리줄 아래 펼침, 휴대폰은 시트 */
.tools-pop { position: fixed; z-index: 30; top: calc(var(--bar) - 2px); right: var(--s2); width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: var(--s2); }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s0); }
.tool-item { display: flex; align-items: center; gap: var(--s3); min-height: 64px; padding: var(--s2) var(--s3); border-radius: var(--r-md); color: var(--text); text-decoration: none; }
.tool-item:hover { background: var(--surface-2); }
.tool-item .tx { flex: 1; min-width: 0; }
.tool-item b { display: block; font-size: var(--fs-md); font-weight: var(--fw-bold); }
.tool-item span.d { display: block; font-size: var(--fs-sm); color: var(--text-2); line-height: var(--lh-ui); }
.here { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--primary-text); white-space: nowrap; }
.here::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.tools-foot { margin: var(--s2) var(--s3) var(--s1); font-size: var(--fs-sm); color: var(--text-3); }

/* ── 홈 도구 카드 ── */
.tool-cards { display: grid; gap: var(--s2); }
.tool-card { display: flex; align-items: center; gap: var(--s3); padding: var(--card-pad); min-height: 88px; border: 1px solid var(--border); border-radius: var(--card-r); background: var(--surface); color: var(--text); text-decoration: none; }
.tool-card:hover { border-color: var(--primary-border); }
.tool-card:active { background: var(--surface-2); }
.tool-card .tx { flex: 1; min-width: 0; }
.tool-card b { display: block; font-size: var(--fs-lg); line-height: var(--lh-ui); }
.tool-card span.d { display: block; font-size: var(--fs-sm); color: var(--text-2); line-height: var(--lh-ui); }
.tool-card .go { color: var(--text-3); }
.quick { display: flex; flex-wrap: wrap; gap: 0 var(--s4); margin: var(--s3) 0 0; font-size: var(--fs-sm); }
.quick span.l { color: var(--text-3); flex-basis: 100%; font-weight: var(--fw-medium); }
.quick a { display: inline-flex; align-items: center; min-height: var(--tap-sm); padding: 0; color: var(--text-2); font-weight: var(--fw-medium); }
.pick-sub { margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--text-3); }
.defaults-line { display: inline-flex; align-items: center; gap: var(--s1); margin-top: var(--s2); min-height: var(--tap-sm); padding: 0 var(--s2); border: 0; background: none; color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); border-radius: var(--r-sm); }
.defaults-line:hover { background: var(--surface-2); }
.defaults-line svg.ic { width: var(--ic-xs); height: var(--ic-xs); }
.pre-settings { margin-top: var(--s3); text-align: left; border-top: 1px solid var(--border); padding-top: var(--s3); }

/* ── 작업 화면 ── */
.ws { padding-top: var(--s4); }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: var(--tap); }
.ws-head b { font-size: var(--fs-lg); }
.ws-head .btn { min-height: var(--tap-sm); padding: 0 var(--s3); }
.ws-head .btn.dim { opacity: .5; }
.strip { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s2) 0 var(--s1); margin: 0 calc(-1 * var(--s4)); padding-left: var(--s4); padding-right: var(--s4); scrollbar-width: thin; }
.thumb { position: relative; flex: none; width: var(--thumb); }
.thumb .sq { width: var(--thumb); height: var(--thumb); border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--photo-edge); }
.thumb .sq img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .sq .ph, .rcard .im .ph, .one .big .ph { font-size: var(--fs-xs); font-weight: var(--fw-heavy); color: var(--text-3); }
.thumb .cap { display: block; margin-top: var(--s0); font-size: var(--fs-xs); color: var(--text-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.thumb .x { position: absolute; top: -6px; right: -6px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); background: var(--inverse-bg); color: var(--inverse-text); display: grid; place-items: center; padding: 0; }
.thumb .x svg.ic { width: var(--ic-xs); height: var(--ic-xs); stroke-width: 3; }
.thumb .x::after { content: ""; position: absolute; inset: -8px; } /* 누를 곳 48px */
.thumb .badge { position: absolute; left: var(--s1); bottom: 24px; font-size: var(--fs-xs); line-height: 1.3; font-weight: var(--fw-bold); padding: 0 var(--s1); border-radius: var(--r-xs); background: var(--overlay-badge); color: #FFFFFF; }
.thumb.wait .sq { opacity: .45; }
.thumb .st { position: absolute; inset: 0 0 auto 0; height: var(--thumb); display: grid; place-items: center; border-radius: var(--r-sm); }
.thumb.run .st { background: var(--overlay-dim); }
.thumb.done .st { background: var(--overlay-dim); }
.thumb.done .st svg.ic, .thumb.fail .st svg.ic { color: #FFFFFF; width: var(--ic-lg); height: var(--ic-lg); stroke-width: 3; }
.thumb.fail .st { background: var(--overlay-badge); }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin.on-surface { border-color: var(--border); border-top-color: var(--primary); }
.one { margin-top: var(--s2); }
.one .big { height: 200px; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--photo-edge); position: relative; }
.one .big img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.one .meta { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); font-size: var(--fs-sm); color: var(--text-2); }
.one .meta .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: var(--fw-medium); }
.one .meta .btn { min-height: var(--tap-sm); padding: 0 var(--s3); font-size: var(--fs-sm); }
.checker { background-color: var(--paper); background-image: linear-gradient(45deg, var(--checker) 25%, transparent 25%, transparent 75%, var(--checker) 75%), linear-gradient(45deg, var(--checker) 25%, transparent 25%, transparent 75%, var(--checker) 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }

/* 띠 (목록 위 안내) */
.strip-band { display: flex; gap: var(--s2); align-items: flex-start; background: var(--notice-bg); border-radius: var(--r-md); padding: var(--s3); margin: var(--s2) 0; font-size: var(--fs-sm); color: var(--text); }
.strip-band .i-info { margin-top: 3px; }
.strip-band .tx { flex: 1; }
.strip-band b { display: block; }
.strip-band a, .strip-band button.lk { color: var(--primary-text); font-weight: var(--fw-bold); border: 0; background: none; padding: 0; font-size: inherit; }
.strip-band .icon-btn { width: var(--tap-sm); height: var(--tap-sm); margin: -10px -10px -10px 0; }
.strip-band .icon-btn svg.ic { width: var(--ic-sm); height: var(--ic-sm); }

/* 설정: 칩(라디오) */
.set { margin-top: var(--s4); border-top: 1px solid var(--border); padding-top: var(--s2); }
.chips { border: 0; margin: 0; padding: var(--s2) 0 0; min-width: 0; }
.chips legend { font-weight: var(--fw-bold); padding: 0; margin-bottom: var(--s2); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chipr { position: relative; }
.chipr input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chipr span { display: inline-flex; align-items: center; justify-content: center; min-height: var(--chip-h); min-width: 64px; padding: 0 var(--s4); border-radius: var(--chip-r); border: 1px solid var(--border-input); background: var(--surface); font-weight: var(--fw-medium); white-space: nowrap; }
.chipr:hover input:not(:checked):not(:disabled) + span { background: var(--surface-2); }
.chipr input:checked + span { border-color: var(--primary-border); background: var(--primary-soft); color: var(--primary-text); box-shadow: inset 0 0 0 1px var(--primary-border); }
.chipr input:checked + span::before { content: ""; width: 12px; height: 7px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); margin-right: var(--s2); }
.chipr input:focus-visible + span { outline: var(--focus-ring); outline-offset: 2px; }
.chipr input:disabled + span { opacity: .45; }
.chip-help { margin: var(--s2) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.chip-help.warn::before { content: "ⓘ "; }
.num-row { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.num-row .field { width: 160px; }
.num-row .field input { text-align: right; font-variant-numeric: tabular-nums; }
.num-row .unit-l { color: var(--text-2); }
.num-msg { margin: var(--s2) 0 0; font-size: var(--fs-sm); color: var(--text); display: flex; gap: var(--s2); align-items: center; }
.num-msg::before { content: "!"; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--danger); color: var(--on-danger); display: grid; place-items: center; font-weight: var(--fw-heavy); font-size: 12px; }
.fold { margin-top: var(--s3); border-top: 1px solid var(--border); }
.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); cursor: pointer; font-weight: var(--fw-bold); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .v { color: var(--text-2); font-weight: var(--fw-medium); margin-left: var(--s2); }
.fold > summary .l { flex: 1; }
.fold > summary svg.ic { width: var(--ic-sm); height: var(--ic-sm); color: var(--text-3); transition: transform var(--dur-fast); }
.fold[open] > summary svg.ic { transform: rotate(180deg); }
.fold .chips { padding-top: 0; }
.info { border-top: 1px solid var(--border); }
.info > summary { list-style: none; display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); cursor: pointer; font-size: var(--fs-sm); color: var(--text-2); }
.info > summary::-webkit-details-marker { display: none; }
.info p { margin: 0 0 var(--s2); font-size: var(--fs-sm); color: var(--text-2); }

/* 아래 고정 막대 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--border); padding: var(--s2) var(--s4) calc(var(--s2) + env(safe-area-inset-bottom)); }
.dock .in { max-width: var(--wrap); margin: 0 auto; }
.dock .row { display: flex; gap: var(--s2); }
.dock .row .btn { flex: 1; }
.dock .row .btn.primary { flex: 1.4; }
.dock .links { display: flex; justify-content: center; gap: var(--s1); margin-top: var(--s0); font-size: var(--fs-sm); }
.dock .links button { border: 0; background: none; color: var(--text-2); font-weight: var(--fw-medium); min-height: var(--tap-sm); padding: 0 var(--s2); text-decoration: underline; text-underline-offset: 3px; }
.dock .links span { color: var(--text-3); display: inline-flex; align-items: center; }

/* 변환 중 */
.run-head { display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); font-weight: var(--fw-bold); font-size: var(--fs-lg); }
.run-bar { height: 6px; border-radius: var(--r-xs); background: var(--surface-2); overflow: hidden; margin: var(--s1) 0 var(--s3); }
.run-bar i { display: block; height: 100%; background: var(--primary); transition: width var(--dur); }
.slow { display: block; font-size: var(--fs-xs); color: var(--text-2); text-align: center; line-height: var(--lh-tight); }

/* 결과 */
.sum { padding: var(--s4) 0 var(--s2); }
.sum .t { display: flex; align-items: center; gap: var(--s2); font-weight: var(--fw-bold); font-size: var(--fs-lg); margin: 0; }
.sum .t .ok { width: 28px; height: 28px; border-radius: 50%; background: var(--success); color: var(--on-success); display: grid; place-items: center; flex: none; }
.sum .t .ok svg.ic { width: var(--ic-xs); height: var(--ic-xs); stroke-width: 3; }
.sum .t .part { width: 28px; height: 28px; border-radius: 50%; background: var(--warning-soft); color: var(--warning-text); display: grid; place-items: center; flex: none; font-weight: var(--fw-heavy); }
.sum .big-n { margin: var(--s2) 0 0; font-size: var(--fs-2xl); font-weight: var(--fw-heavy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: var(--lh-tight); }
.sum .big-n small { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text-2); }
.sum .sub { margin: var(--s1) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.rcards { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); }
.rcard { display: grid; grid-template-columns: var(--thumb-sm) 1fr auto; align-items: center; gap: var(--s2) var(--s3); padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.rcard .im { width: var(--thumb-sm); height: var(--thumb-sm); border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--photo-edge); display: grid; place-items: center; }
.rcard .im img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rcard .tx { min-width: 0; }
.rcard .nm { margin: 0; font-weight: var(--fw-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard .sz { margin: 0; font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.rcard .sz b { color: var(--text); }
.rcard .nt { font-size: var(--fs-sm); color: var(--text-2); margin: var(--s0) 0 0; }
.rcard .miss { display: flex; gap: var(--s1); align-items: flex-start; font-size: var(--fs-sm); color: var(--text); margin: var(--s1) 0 0; }
.rcard .miss .w { flex: none; width: var(--ic-sm); height: var(--ic-sm); margin-top: 1px; color: var(--warning); }
.rcard .acts { grid-column: 3; display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }
.rcard .acts .btn { min-height: var(--tap-sm); padding: 0 var(--s3); font-size: var(--fs-sm); }
.rcard .tx .acts { margin-top: var(--s2); }
.rcard.fail { border-color: var(--border-strong); }
.rcard.fail .im { border-radius: 50%; }
.rcard.fail h3 { font-size: var(--fs-md); margin: 0; }
.rcard.fail .nm { font-weight: var(--fw-regular); color: var(--text-3); }
.rcard.fail p { margin: var(--s0) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.single .big { height: auto; max-height: 56vh; min-height: 160px; }
.single .big img { max-height: 56vh; }
.single .cmp { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.where { margin-top: var(--s5); }
.where h2 { font-size: var(--fs-xl); margin: 0 0 var(--s3); }
.where ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.where li { font-size: var(--fs-sm); color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s3); }
.where li b { color: var(--text); display: block; }

/* 저장 안내 그림 */
.guide .pic svg { max-width: 300px; }
.sheet .lead2 { color: var(--text-2); }

/* hwp 자리 */
.hwp-ready { margin-top: var(--s3); }
.busy .ok-line { margin: 0 0 var(--s3); color: var(--text); font-weight: var(--fw-medium); }
.busy .row.col { flex-direction: column; }

@media (min-width: 840px) {
  .tool-cards { grid-template-columns: 1fr 1fr; }
  .strip { flex-wrap: wrap; overflow: visible; margin: 0; padding: var(--s2) 0; }
  .one .big { height: 280px; }
  .dock .row { justify-content: flex-end; }
  .dock .row .btn, .dock .row .btn.primary { flex: none; min-width: 200px; }
  .dock .in { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: var(--s4); }
  .dock .links { margin: 0; }
}

.rcard.has-miss .acts, .rcard.fail .acts { grid-column: 1 / -1; }
.rcard.fail { grid-template-columns: var(--thumb-sm) 1fr; align-items: start; }
.rcard .tx { grid-column: 2; }
.chips + .chips { margin-top: var(--s3); }
.single .acts { display: flex; gap: var(--s2); }

/* 알림은 아래 버튼 줄(dock) 위에 띄운다 — 저장 버튼을 가리지 않게 */
.toast { bottom: calc(var(--dock-h, 0px) + var(--s3) + env(safe-area-inset-bottom)); }

/* ── 디자인 규칙 정돈(13 문서)에서 더한 것: 인라인 스타일을 옮김 ── */
.body-2 { color: var(--text-2); margin: 0; }
.mt-2 { margin-top: var(--s2); } .mt-4 { margin-top: var(--s4); }
.one .big .st-c { position: absolute; inset: 0; display: grid; place-items: center; }
.one .big img.dim { opacity: .5; }
.note .btn.ghost { min-height: var(--tap-sm); padding: 0 var(--s2); }

/* ── 배포 사이트에서 더한 것 (2026-11-18) ── */
.ws-head .ws-title { font-size: var(--fs-lg); line-height: var(--lh-ui); margin: 0; }
h1.run-head { margin: 0; }
.sum h1.t { line-height: var(--lh-ui); }
section.block h2.mt-h, .mt-h { font-size: var(--fs-xl); line-height: var(--lh-tight); margin: var(--s5) 0 var(--s3); }
p.defaults-line { justify-content: center; margin-bottom: 0; }
.foot-tools { display: grid; gap: var(--s2); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border); }
.foot-group b { display: block; color: var(--text-2); font-weight: var(--fw-bold); }
.foot-group .footer-links { margin: 0; gap: 0 var(--s4); }
.tool-list .here[hidden] { display: none; }
.err-layer .err .row { flex-direction: column; }
@media (min-width: 840px) { .foot-tools { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
