/* SheetChange v2. Tokens from the design canvas (D-Tokens). */
:root {
  --bg: #F7F7F5; --canvas: #EBEBE7; --surface: #FFFFFF; --surface-2: #F1F1EE;
  --ink: #16171A; --ink-2: #3D4046; --muted: #5A5D63; --line: #E0E0DB; --line-strong: #BDBEB8;
  --hover: rgba(22, 23, 26, .05);
  --accent: #2251C8; --accent-hover: #1B44AB; --on-accent: #FFFFFF; --accent-ink: #1C46B0; --accent-soft: #E8EEFC;
  --focus: #2251C8; --ok: #1F7A4D; --ok-soft: #E5F3EC;
  --warn-bg: #FFF4D9; --warn-ink: #5C3A00; --warn-line: #DDAA3E; --warn-dot: #C98A12;
  --err-bg: #FCECEB; --err-ink: #8E1F1A; --err-line: #E5A9A4; --err-dot: #C8372D;
  --disabled-bg: #EEEEEB; --disabled-ink: #8C8F94;
  --paper: #FFFFFF;
  --paper-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 20px rgba(0, 0, 0, .08);
  --float-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #16171A; --canvas: #0D0E10; --surface: #202227; --surface-2: #1A1C20;
  --ink: #EEEFF1; --ink-2: #C9CCD1; --muted: #A6AAB1; --line: #2D3035; --line-strong: #484C53;
  --hover: rgba(255, 255, 255, .06);
  --accent: #8CAEFF; --accent-hover: #A6C0FF; --on-accent: #0A1733; --accent-ink: #A9C3FF; --accent-soft: #1C2843;
  --focus: #A9C3FF; --ok: #6FD0A0; --ok-soft: #163327;
  --warn-bg: #33270E; --warn-ink: #F5D07F; --warn-line: #8A6420; --warn-dot: #E3AE45;
  --err-bg: #3A1A1A; --err-ink: #FFB9B4; --err-line: #7C3934; --err-dot: #FF7A70;
  --disabled-bg: #24262B; --disabled-ink: #6E727A;
  --paper-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .6);
  --float-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, a { font-family: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font-size: inherit; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, p, figure, ul, ol { margin: 0; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon.s16 { width: 16px; height: 16px; }
.icon.s20 { width: 20px; height: 20px; }
.thin { stroke-width: 1.7; }
.spin { animation: sc-spin 1s linear infinite; }
.indet { width: 40%; animation: sc-slide 1.4s ease-in-out infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .spin, .indet { animation: none; } }

/* ---------------------------------------------------------------- controls */
.b-pri, .b-sec, .b-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; white-space: nowrap; }
.b-pri { background: var(--accent); color: var(--on-accent); border: 0; font-weight: 700; }
.b-pri:hover:not(:disabled) { background: var(--accent-hover); }
.b-pri:disabled { background: var(--disabled-bg); color: var(--disabled-ink); }
.b-sec { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.b-sec:hover:not(:disabled) { border-color: var(--ink); }
.b-sec:disabled { color: var(--disabled-ink); background: var(--disabled-bg); border-color: var(--line); }
.b-ghost { background: transparent; border: 0; color: var(--ink); border-radius: 8px; }
.b-ghost:hover:not(:disabled) { background: var(--hover); }
.b-ghost:disabled { color: var(--disabled-ink); }
.h52 { height: 52px; padding: 0 24px; font-size: 16px; }
.h44 { height: 44px; padding: 0 14px; font-size: 14px; }
.h40 { height: 40px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.wide { width: 100%; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.chip[data-tone="run"] { background: var(--accent-soft); color: var(--accent-ink); }
.chip[data-tone="ok"] { background: var(--ok-soft); color: var(--ok); }
.chip[data-tone="warn"] { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.chip[data-tone="err"] { background: var(--err-bg); color: var(--err-ink); }

.key { position: relative; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); height: 52px; padding: 0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
.key:hover:not(:disabled) { border-color: var(--accent); }
.key[data-state="sel"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.key[data-state="pending"] { background: var(--accent-soft); color: var(--accent-ink); border: 2px dashed var(--accent); }
.key[data-state="err"] { border-color: var(--err-dot); color: var(--err-ink); }
.key:disabled { background: var(--disabled-bg); color: var(--disabled-ink); border-color: var(--line); }
.key small { font-size: 10.5px; font-weight: 500; line-height: 1.2; }
.key .icon { width: 11px; height: 11px; margin-top: 2px; stroke-width: 3; }
.key .dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 4px; background: var(--err-dot); }

.seg-group { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.seg { background: transparent; color: var(--muted); border: 0; height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.seg:hover:not(:disabled) { color: var(--ink); }
.seg[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.seg:disabled { color: var(--disabled-ink); }

.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }
.bar.warn > div { background: var(--warn-dot); }

.warn-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--warn-ink); text-decoration: none; font-size: 13.5px; line-height: 1.45; background: none; border: 0; width: 100%; text-align: left; }
.warn-row:hover { background: rgba(201, 138, 18, .12); }
.warn-row .icon { margin-top: 2px; }
.lnk { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--muted); }
.scroll-x { scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------------ layout */
.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.top { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 6px; flex-shrink: 0; }
.logo span { display: block; height: 2.5px; width: 11px; border-radius: 2px; background: var(--on-accent); }
.logo span + span { margin-left: 5px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand-div { width: 1px; height: 16px; background: var(--line-strong); }
.brand-sub { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 4px; }
.top-actions .b-ghost { height: 40px; padding: 0 10px; font-size: 13px; gap: 6px; }
.m-file { display: none; }

/* landing */
.landing { flex: 1; min-height: 0; overflow-y: auto; background: var(--canvas); }
.landing-grid { max-width: 1200px; margin: 0 auto; padding: 56px 40px 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
.hero { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.hero p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.compare { margin-top: 8px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.compare figcaption { font-size: 13px; font-weight: 600; color: var(--muted); }
.compare-row { display: flex; align-items: center; gap: 12px; }
.compare-row .chip { min-width: 64px; justify-content: center; }
.compare-img { flex: 1; min-width: 0; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--line); overflow: hidden; }
.compare-img img { display: block; width: 100%; height: auto; }
.drop { padding: 48px 40px 32px; border: 2px dashed var(--line-strong); border-radius: 24px; background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; transition: border-color .15s, background .15s; }
.drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { width: 64px; height: 64px; border-radius: 32px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.drop-icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.drop h2 { font-size: 22px; font-weight: 700; }
.drop .types { font-size: 14.5px; color: var(--muted); }
.examples { width: 100%; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.examples > span { font-size: 13px; color: var(--muted); }
.example-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rights { font-size: 12.5px; color: var(--muted); }
.rate { padding: 40px; border: 1px solid var(--warn-line); border-radius: 24px; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rate-icon { width: 52px; height: 52px; border-radius: 26px; background: var(--warn-bg); color: var(--warn-ink); display: flex; align-items: center; justify-content: center; }
.rate-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.rate h2 { font-size: 22px; font-weight: 700; }
.rate p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.rate p strong { color: var(--ink); }
.rate .bar { width: 100%; }
.rate .b-pri { font-variant-numeric: tabular-nums; }
.rate .note { font-size: 13px; color: var(--muted); }
.landing-foot { max-width: 1200px; margin: 0 auto; padding: 8px 40px 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.policy { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.foot-note .policy { margin-left: 4px; }

/* work */
.work { flex: 1; min-height: 0; display: flex; }
.panel { width: 360px; flex-shrink: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.panel-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 28px; }
.panel section { display: flex; flex-direction: column; gap: 12px; }
.step-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.step-n { width: 20px; height: 20px; border-radius: 10px; font-size: 11px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.step-n[data-tone="on"] { background: var(--accent); color: var(--on-accent); }
.step-n[data-tone="done"] { background: var(--ok-soft); color: var(--ok); }
.file-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.thumb { width: 40px; height: 59px; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--line); background: #FFFFFF; flex-shrink: 0; }
.file-text { flex: 1; min-width: 0; }
.file-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.card { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.card-title .icon { color: var(--accent-ink); width: 16px; height: 16px; stroke-width: 2.4; }
.remain { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.steps li.done, .steps li.now { color: var(--ink); }
.steps li.now { font-weight: 600; }
.mark { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.mark .icon { color: var(--ok); width: 16px; height: 16px; stroke-width: 2.4; }
.mark i { width: 8px; height: 8px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.now .mark i { background: var(--accent); border: 0; }
.page-list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.page-list li { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.card-note { padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.fail-line { padding: 12px 14px; border-radius: 12px; background: var(--err-bg); color: var(--err-ink); font-size: 13.5px; font-weight: 600; }
.keypair { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 4px; }
.keybox { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid transparent; }
.keybox.target { background: transparent; border-color: var(--line); }
.keybox.target.open { border-color: var(--line-strong); }
.keybox.target.on { border-color: var(--accent); background: var(--accent-soft); }
.keybox-cap { font-size: 12px; color: var(--muted); }
.keybox-val { font-size: 21px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--disabled-ink); }
.keybox-val.ink { color: var(--ink); }
.keybox-val.accent { color: var(--accent-ink); }
.keypair-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .b-sec { gap: 6px; border-radius: 10px; }
.shift { flex: 1; min-width: 0; text-align: center; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--muted); }
.shift.ink { color: var(--ink); }
.shift.accent { color: var(--accent-ink); }
.key-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.hint { font-size: 13px; line-height: 1.55; color: var(--muted); }
.hint.accent { color: var(--accent-ink); }
.hint.err { color: var(--err-ink); }
.panel-foot { flex-shrink: 0; padding: 16px 20px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.warn-box { padding: 8px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); }
.warn-box-title { padding: 4px 6px 6px; font-size: 14px; font-weight: 700; color: var(--warn-ink); }
.clean { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.clean .icon { color: var(--ok); margin-top: 2px; }
.foot-note { font-size: 12px; color: var(--muted); }
.dl { min-height: 52px; padding: 0 16px; font-size: 16px; }

.viewer { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--canvas); position: relative; }
.toolbar { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.toolbar:empty { display: none; }
.tool-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.view-label { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zoom { display: flex; align-items: center; gap: 2px; }
.zoom .b-ghost { width: 40px; height: 40px; padding: 0; }
.zoom .fit { width: auto; padding: 0 12px; font-size: 13px; }
.zoom-label { min-width: 48px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.chip .spin { width: 12px; height: 12px; stroke-width: 3; }
.viewer-body { flex: 1; min-height: 0; display: flex; }
.rail { width: 112px; flex-shrink: 0; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; }
.rail:empty { display: none; }
.rail-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border-radius: 10px; color: var(--ink); background: none; border: 0; }
.rail-item:hover { background: var(--hover); }
.rail-item img { width: 60px; height: 88px; object-fit: cover; object-position: top; border-radius: 3px; border: 1px solid var(--line); background: #FFFFFF; }
.rail-item > span:not(.chip) { font-size: 12.5px; font-weight: 600; }
.rail-item .chip { font-size: 11px; height: 20px; padding: 0 6px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.scroll { flex: 1; min-width: 0; overflow: auto; position: relative; }
.scroll.drag { outline: 3px dashed var(--accent); outline-offset: -12px; }
.pages { padding: 24px 24px 64px; display: flex; flex-direction: column; align-items: center; align-items: safe center; gap: 28px; width: max-content; min-width: 100%; }
.pages:empty { display: none; }
.pg { display: flex; flex-direction: column; scroll-margin-top: 16px; width: min-content; }
.pg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pg-warn { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px 10px 0 0; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-bottom: 0; font-size: 13.5px; font-weight: 600; }
.pg-row { display: flex; gap: 24px; align-items: flex-start; }
.pg figure { display: flex; flex-direction: column; gap: 6px; position: relative; }
.pg figcaption { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pg figcaption.accent { color: var(--accent-ink); }
.paper { display: block; max-width: none; height: auto; background: var(--paper); box-shadow: var(--paper-shadow); transition: opacity .2s; }
.overlay { position: absolute; top: 12px; left: 12px; height: 28px !important; padding: 0 12px !important; font-size: 13px !important; box-shadow: var(--float-shadow); }
.fail-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; }
.fail-card { width: 660px; max-width: 100%; display: flex; gap: 28px; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--err-line); }
.fail-card img { width: 150px; height: 220px; object-fit: cover; object-position: top; border-radius: 8px; flex-shrink: 0; background: #FFFFFF; }
.fail-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fail-title { display: flex; align-items: center; gap: 8px; color: var(--err-ink); }
.fail-title .icon { width: 22px; height: 22px; }
.fail-title h1 { font-size: 21px; font-weight: 700; }
.fail-body p { font-size: 15px; line-height: 1.6; }
.fail-body ul { padding-left: 18px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.floats { display: none; }
.dock { display: none; }

/* toast */
.toast-slot { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; width: max-content; max-width: min(640px, calc(100% - 24px)); }
.toast-slot.fixed { position: fixed; }
.toast { padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; line-height: 1.45; display: flex; align-items: center; gap: 10px; box-shadow: var(--float-shadow); }
.toast.err { background: var(--err-bg); color: var(--err-ink); }
.toast .b-ghost { width: 36px; height: 36px; padding: 0; color: inherit; }

/* ------------------------------------------------------------------ phone */
@media (max-width: 899px) {
  .top { padding: 0 6px 0 14px; gap: 8px; }
  .brand-div, .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
  .logo { width: 26px; height: 26px; border-radius: 7px; padding: 0 5px; gap: 3.5px; }
  .logo span { width: 10px; }
  .top.has-file .brand { display: none; }
  .top.has-file .m-file { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; }
  .m-file .thumb { width: 28px; height: 41px; border-radius: 3px; }
  .m-file .file-name { font-size: 14px; }
  .m-file .file-meta { font-size: 12px; margin-top: 0; white-space: nowrap; }
  .m-file .b-ghost { height: 44px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
  .top-actions .b-ghost { height: 44px; min-width: 44px; padding: 0 8px; }
  .top-actions .pc-label { display: none; }

  .landing-grid { grid-template-columns: 1fr; padding: 24px 16px; gap: 16px; }
  .hero { gap: 16px; display: contents; }
  .hero h1 { font-size: 26px; line-height: 1.3; order: 1; }
  .hero p { display: none; }
  .compare { order: 3; margin: 0; padding: 12px; border-radius: 14px; gap: 8px; }
  .compare figcaption { font-size: 12.5px; }
  .compare-row { gap: 8px; }
  .compare-row .chip { min-width: 52px; }
  .landing-main { order: 2; }
  .drop { padding: 0; border: 0; background: none; align-items: stretch; gap: 8px; }
  .drop .drop-icon, .drop h2 { display: none; }
  .drop .types { font-size: 13px; order: 3; }
  .drop .b-pri, .drop .b-sec { height: 52px; border-radius: 14px; }
  .drop .camera { height: 56px; font-size: 17px; order: 1; }
  .drop .choose { order: 2; font-size: 16px; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
  .drop .choose:hover { background: var(--surface); border-color: var(--ink); }
  .drop .examples { order: 5; align-items: flex-start; margin-top: 8px; padding-top: 0; border-top: 0; }
  .example-list { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; }
  .example-list .b-sec { height: 44px; font-size: 14px; }
  .drop .rights { order: 6; text-align: left; }
  .rate { padding: 24px 20px; border-radius: 18px; gap: 12px; }
  .rate h2 { font-size: 20px; }
  .rate .b-pri { width: 100%; }
  .landing-foot { padding: 0 16px 24px; justify-content: flex-start; }

  .work { flex-direction: column; }
  .panel, .toolbar, .rail { display: none !important; }
  .viewer { flex: 1; min-height: 0; }
  .pages { padding: 64px 16px 24px; gap: 20px; }
  .pg { scroll-margin-top: 60px; }
  .pg-warn { padding: 8px 12px; font-size: 13px; }
  .overlay { top: 10px; left: 10px; }
  .fail-wrap { padding: 20px 16px; align-items: center; }
  .fail-card { flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; }
  .fail-card img { width: 100%; height: 150px; }
  .fail-title h1 { font-size: 18px; }
  .fail-body { gap: 12px; }
  .pc-reupload { display: none; }
  .floats { display: flex; position: absolute; top: 10px; left: 12px; right: 12px; justify-content: space-between; align-items: center; pointer-events: none; z-index: 5; }
  .floats:empty { display: none; }
  .float-group { pointer-events: auto; display: flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--float-shadow); }
  .float-group .seg { height: 38px; border-radius: 9px; }
  .float-group .b-ghost { width: 38px; height: 38px; padding: 0; border-radius: 9px; }
  .m-conv { position: absolute; left: 50%; top: 62px; transform: translateX(-50%); height: 34px; padding: 0 14px; font-size: 13px; box-shadow: var(--float-shadow); z-index: 5; }
  .toast-slot { left: 12px; right: 12px; bottom: 12px; transform: none; width: auto; max-width: none; }
  .toast-slot.fixed { left: 12px; right: 12px; }
  .toast { padding: 6px 6px 6px 14px; gap: 8px; }
  .toast span { flex: 1; }
  .toast .b-ghost { width: 40px; height: 40px; }

  .dock { display: flex; flex-shrink: 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); flex-direction: column; gap: 12px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
  .dock:empty { display: none; }
  .m-read { display: flex; flex-direction: column; gap: 8px; }
  .m-read .card-title { font-size: 15px; }
  .m-read .sub { font-size: 13px; color: var(--muted); }
  .m-shift { display: flex; align-items: center; gap: 8px; }
  .m-shift .b-sec { width: 48px; height: 48px; padding: 0; border-radius: 12px; }
  .m-shift-text { flex: 1; min-width: 0; text-align: center; }
  .m-shift-keys { font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
  .m-shift-keys .icon { width: 16px; height: 16px; color: var(--muted); }
  .m-shift-keys .off { color: var(--disabled-ink); }
  .m-shift-keys .accent { color: var(--accent-ink); }
  .m-shift .shift { font-size: 12.5px; margin-top: 2px; font-weight: 400; }
  .key-row { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; }
  .key-row .key { width: 52px; flex-shrink: 0; border-radius: 12px; }
  .key-row .key small { font-size: 10px; }
  .dock .warn-row { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 10px 12px; align-items: center; }
  .dock .warn-row span { flex: 1; }
}
@media (min-width: 900px) {
  .m-only { display: none !important; }
}
