/* ==========================================================================
   PixKit — design system
   paper / ink / cobalt. Instrument-panel details, editorial documents.
   ========================================================================== */

:root {
  --paper: #f2efe8;
  --paper-2: #e8e4d9;
  --surface: #fffdf7;
  --ink: #121417;
  --ink-2: #34383e;
  --muted: #6b6e74;
  --line: #d9d3c5;
  --line-2: #c3bcab;
  --blue: #2743ff;
  --blue-ink: #122bd6;
  --blue-soft: #e6e9ff;
  --verm: #d63a21;
  --green: #0a7d5a;
  --night: #101216;
  --night-2: #171a1f;
  --night-line: #2b2f36;
  --r: 18px;
  --r-sm: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 24px 50px -34px rgba(18, 20, 23, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 420px),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ko"] body { word-break: keep-all; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] h4 { line-height: 1.24; }
html[lang="ko"] .eyebrow { font-family: var(--sans); font-weight: 700; letter-spacing: .06em; }
html[lang="ko"] .field label,
html[lang="ko"] .field-label,
html[lang="ko"] .tb-k,
html[lang="ko"] .split-sum { font-family: var(--sans); font-weight: 600; letter-spacing: 0; font-size: 12px; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 26px; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 14px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

/* ── top bar ─────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 239, 232, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(18, 20, 23, 0.09);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 19px;
}
.brand svg { width: 24px; height: 24px; }
.brand .tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 2px 5px;
  transform: translateY(-1px);
}
.nav { display: flex; gap: 22px; margin-left: 6px; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-color: var(--ink); color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 6px 11px;
}
.pill-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 125, 90, 0.16);
}
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  color: var(--muted);
}
.lang a[aria-current="true"] { background: var(--ink); color: var(--surface); }

/* ── hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--night);
  color: #f4f1e9;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(120% 90% at 78% 10%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 10%, #000 0%, transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -180px; top: -280px;
  background: radial-gradient(circle, rgba(39, 67, 255, 0.55), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 54px;
  align-items: center;
  padding: 70px 26px 122px;
}
.hero .eyebrow { color: #9fb0ff; }
.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.05rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
  max-width: 16ch;
  text-wrap: balance;
}
.lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.06rem;
  line-height: 1.55;
  color: #b9bcc2;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--night-line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font-size: 15px; letter-spacing: -0.01em; color: #f4f1e9; }
.hero-facts span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f848d;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s, box-shadow 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 8px 20px -12px rgba(39, 67, 255, 0.9);
}
.btn-primary:hover { background: var(--blue-ink); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
  color: #f4f1e9;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.05); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-ghost.on-paper { border-color: var(--line-2); color: var(--ink); }
.btn-ghost.on-paper:hover { border-color: var(--ink); background: #fff; }

/* readout */
.readout {
  background: linear-gradient(180deg, #171b21, #12151a);
  border: 1px solid var(--night-line);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 30px 60px -30px #000, 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  font-family: var(--mono);
  transform: rotate(-0.6deg);
}
.readout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #767c87;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--night-line);
}
.readout-head .live { color: #a9b4c4; display: inline-flex; align-items: center; gap: 7px; }
.readout-head .live i {
  width: 6px; height: 6px; border-radius: 50%; background: #35d39a;
  box-shadow: 0 0 10px #35d39a; animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.readout-body { padding: 14px 0 10px; display: grid; gap: 11px; }
.ro-row { display: grid; grid-template-columns: 32px 1fr 1fr 118px; align-items: center; gap: 8px; }
.ro-k { font-size: 9.5px; letter-spacing: 0.1em; color: #7f848d; }
.ro-bar { height: 7px; border-radius: 2px; background: #23272e; overflow: hidden; }
.ro-bar i { display: block; height: 100%; border-radius: 2px; }
.ro-bar.in i { background: #3a3f48; }
.ro-bar.out i { background: linear-gradient(90deg, #2d53ff, #6f8bff); }
.ro-v { font-size: 10px; color: #c9ccd3; text-align: right; letter-spacing: -0.02em; }
.ro-v em { font-style: normal; color: #5b616b; margin: 0 2px; }
.readout-foot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px solid var(--night-line);
  padding-top: 11px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #767c87;
}
.readout-foot b { font-size: 20px; letter-spacing: -0.02em; color: #f4f1e9; font-weight: 600; }
.ro-note { margin-left: auto; font-size: 8.5px; color: #5c626c; letter-spacing: 0.06em; }

/* ── ads ─────────────────────────────────────────────────── */
.adslot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 16px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.ad-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-note { font-size: 11.5px; color: #96999f; }
.ad-inner { width: 100%; }
.ad-inner:empty { display: none; margin: 0; }
.ad-first { margin-top: 40px; }
.ad-first + .strip { margin-top: 0; border-top: 0; padding-top: 40px; }
.ad-second { margin: 64px auto 0; }

/* ── workbench ───────────────────────────────────────────── */
.bench-wrap { position: relative; z-index: 2; margin-top: -74px; padding-bottom: 0; }
.bench {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow), 0 1px 0 #fff inset;
  padding: 28px;
}
.bench-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.bench-head .eyebrow { margin-bottom: 8px; color: var(--muted); }
.bench-head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.bench-note { max-width: 34ch; font-size: 13px; color: var(--muted); text-align: right; }

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--paper-2);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.tab {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  text-align: left;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.tab .n {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 3px 5px;
}
.tab-t { font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; color: #4a4e55; }
.tab-s {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: 0 2px 8px -4px rgba(18, 20, 23, 0.35);
}
.tab[aria-selected="true"] .n { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tab[aria-selected="true"] .tab-t { color: var(--ink); }
.tab[aria-selected="true"] .tab-s { color: var(--blue-ink); }

.panel { padding-top: 26px; }

/* canvas pattern for empty states */
.checker {
  background-image:
    linear-gradient(45deg, #e7e3d9 25%, transparent 25%, transparent 75%, #e7e3d9 75%),
    linear-gradient(45deg, #e7e3d9 25%, transparent 25%, transparent 75%, #e7e3d9 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}

/* image panel: grid areas so results sit above the controls on phones */
#panel-image {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-areas: "drop controls" "queue queue" "note note";
  gap: 20px;
}
#panel-image .tool-grid { display: contents; }
#panel-image .drop { grid-area: drop; }
#panel-image .controls { grid-area: controls; }
#panel-image .queue { grid-area: queue; margin-top: 0; }
#panel-image .tool-note { grid-area: note; margin-top: 0; }

/* tool grid */
.tool-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  min-height: 236px;
  padding: 28px 22px;
  border: 1.5px dashed var(--line-2);
  border-radius: 16px;
  background: #fbf9f3;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.drop:hover, .drop:focus-visible { border-color: var(--blue); background: #f7f7ff; }
.drop.is-over {
  border-color: var(--blue);
  border-style: solid;
  background: var(--blue-soft);
  transform: scale(0.995);
}
.drop-icon {
  color: var(--ink-2);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px -3px rgba(0, 0, 0, 0.3);
}
.drop-icon svg { width: 26px; height: 26px; }
.drop-t { font-size: 15.5px; color: var(--ink-2); }
.drop-t b { color: var(--ink); font-weight: 800; }
.drop-s { font-size: 12.5px; color: var(--muted); max-width: 34ch; margin-top: 2px; }
.drop-hint {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 14px;
}
.drop-sm { min-height: 156px; padding: 20px; }
.drop-sm .drop-icon { width: 38px; height: 38px; margin-bottom: 8px; }
.drop-sm .drop-icon svg { width: 22px; height: 22px; }

.controls {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fffefb;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.field-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-top output { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--blue-ink); }
.field-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.field-row label { flex: 1; }
.hint { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.hint.warn { color: var(--verm); font-weight: 600; }
.field-row select, .split-grid select {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  max-width: 150px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) var(--fill, 50%), #ded9cd var(--fill, 50%));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: #ded9cd; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: grab;
}
input[type="range"][disabled] { opacity: 0.4; }
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue);
}

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  background: var(--paper-2);
  border-radius: 9px;
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 7px 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--surface); }
.seg-wide button { font-size: 11.5px; }

/* queue + results */
.queue { margin-top: 20px; }
.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.linkbtn {
  background: none;
  border: 0;
  padding: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
}
.linkbtn:hover { color: var(--verm); }

.rlist { display: grid; }
.rrow {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid #ece7da;
}
.thumb {
  width: 46px; height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff center/cover no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.rname {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rmeta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
  flex-wrap: wrap;
}
.rmeta .save { color: var(--green); font-weight: 600; }
.rmeta .grow { color: var(--verm); font-weight: 600; }
.bars { position: relative; margin-top: 8px; height: 5px; max-width: 420px; border-radius: 3px; background: #e8e3d6; overflow: hidden; }
.bar { display: block; height: 100%; }
.bar i { display: block; height: 100%; background: var(--blue); transition: width .4s var(--ease); }
.bar i.grow { background: var(--verm); }
.racts { display: flex; gap: 6px; align-items: center; }
.iconbtn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1;
}
.iconbtn:hover { border-color: var(--ink); color: var(--ink); }
.iconbtn[disabled] { opacity: 0.32; cursor: default; }
.iconbtn[disabled]:hover { border-color: var(--line); color: var(--ink-2); }
.iconbtn.del:hover { border-color: var(--verm); color: var(--verm); }
.iconbtn svg { width: 15px; height: 15px; }

.badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef7f3;
  color: var(--green);
  border: 1px solid #cfe6dc;
}
.badge.neutral { background: #f1eee6; color: var(--muted); border-color: var(--line); }

.totalbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 16px;
  background: #f7f5ee;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tb-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tb-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.split-sum { font-size: 13px; color: var(--ink-2); }
.tb-v { font-size: 13px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tb-v b { font-family: var(--mono); font-size: 13px; letter-spacing: -0.02em; }
.tb-v .arr { color: var(--muted); }
.tb-save {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: #e6f4ee;
  border: 1px solid #c9e6da;
  border-radius: 5px;
  padding: 2px 6px;
}
.tb-save.neg { color: var(--verm); background: #fdeeea; border-color: #f3cdc3; }
.tool-note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 88ch;
}

/* pdf rows */
.pdf-list .rrow { grid-template-columns: 26px 34px minmax(0, 1fr) auto; }
.ord {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.pdf-glyph {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: #fdf0ed;
  border: 1px solid #f0d4cd;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  color: var(--verm);
  font-weight: 700;
}
.pdf-acts { display: flex; gap: 4px; }
.pdf-acts .iconbtn { width: 28px; height: 28px; }
.pdf-acts .iconbtn.rot { font-family: var(--mono); font-size: 9.5px; }
.modes {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 16px;
}
.modes .mode {
  border: 0; background: transparent; border-radius: 6px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.modes .mode.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.split-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf9f3;
}
.split-file .rname { flex: 1; }
.split-file .rmeta { margin: 0; }
#splitBox .totalbar { margin-top: 16px; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { resize: vertical; min-height: 62px; line-height: 1.45; }

/* qr */
.qr-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  grid-template-areas: "top preview" "more preview";
  gap: 16px 26px;
  align-items: start;
}
.qr-top { grid-area: top; }
.qr-more { grid-area: more; }
.qr-preview { grid-area: preview; }
.qr-form { display: flex; flex-direction: column; gap: 16px; }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swatch {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  background: #fff;
  cursor: pointer;
}
.swatch input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0;
  background: none;
  cursor: pointer;
}
.swatch input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.swatch input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.swatch span { font-size: 12px; color: var(--muted); }
.swatch b { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-2); }
.presets { display: flex; gap: 7px; margin-top: 2px; }
.presets button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  font-size: 0;
}
.presets button:hover { transform: scale(1.08); }
.qr-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fffefb;
}
.qr-stage {
  aspect-ratio: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 12px;
  background-color: #f4f1e9;
  background-image:
    linear-gradient(45deg, #eae6db 25%, transparent 25%, transparent 75%, #eae6db 75%),
    linear-gradient(45deg, #eae6db 25%, transparent 25%, transparent 75%, #eae6db 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.qr-stage canvas {
  width: 100%; height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.5);
}
.qr-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  min-height: 15px;
}
.qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qr-actions .btn { width: 100%; }
.qr-actions #qrCard { grid-column: 1 / -1; }
.qr-actions .btn-ghost { border-color: var(--line-2); color: var(--ink); }
.qr-actions .btn-ghost:hover { border-color: var(--ink); }

/* ── privacy strip ───────────────────────────────────────── */
.strip {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}
.strip-head { display: flex; flex-direction: column; gap: 4px; }
.strip-head .eyebrow { margin-bottom: 6px; color: var(--muted); }
.strip h2 { font-size: clamp(1.45rem, 3vw, 2rem); max-width: 26ch; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 22px 26px 0 0;
  border-right: 1px solid var(--line);
}
.steps li:last-child { border-right: 0; }
.steps li + li { padding-left: 26px; }
.step-n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--blue-ink);
  display: block;
  margin-bottom: 12px;
}
.steps h3 { font-size: 16px; letter-spacing: -0.02em; margin-bottom: 7px; }
.steps p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.strip-foot {
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 12px 16px;
  border-left: 3px solid var(--green);
  background: #eef5f0;
  border-radius: 0 8px 8px 0;
}

/* ── affiliate ───────────────────────────────────────────── */
.aff { margin-top: 72px; }
.aff-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.aff-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.aff-sub { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 52ch; }
.aff-note {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 30ch;
  text-align: right;
}
.aff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.aff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s;
}
.aff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.aff-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.aff-card h3 { font-size: 17px; letter-spacing: -0.03em; }
.aff-card p { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.aff-price {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: auto;
  padding-top: 8px;
}
.aff-card a {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--blue-ink);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.aff-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── guides teaser ───────────────────────────────────────── */
.guides-teaser { margin-top: 64px; }
.gt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.gt-head .eyebrow { margin-bottom: 6px; color: var(--muted); }
.gt-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.g-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.g-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.18s, background 0.18s;
}
.g-grid a:hover { border-color: var(--ink); background: #fff; }
.g-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 10px;
}
.g-grid h3 { font-size: 17px; line-height: 1.25; letter-spacing: -0.025em; }
.g-grid p { margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── faq ─────────────────────────────────────────────────── */
.faq { margin-top: 72px; }
.faq .eyebrow { color: var(--muted); margin-bottom: 6px; }
.faq h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.faq-list { margin-top: 22px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 36px 17px 0;
  position: relative;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  padding: 0 56px 20px 0;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 76ch;
}

/* ── crosslinks + footer ─────────────────────────────────── */
.cross { margin-top: 72px; }
.cross-title { font-size: 12px; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cross-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cross-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.18s, border-color 0.18s;
}
.cross-grid a:hover { background: #fff; border-color: var(--line-2); }
.cross-grid b { font-size: 15px; letter-spacing: -0.02em; }
.cross-grid span { font-size: 12px; color: var(--muted); }

.foot {
  margin-top: 64px;
  background: var(--night);
  color: #c3c6cc;
  padding: 44px 0 32px;
}
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; max-width: 40ch; }
.foot-brand .brand { color: #f4f1e9; font-size: 22px; }
.foot-brand p { font-size: 13px; color: #8b9099; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot-links a { font-size: 12.5px; text-decoration: none; color: #c3c6cc; }
.foot-links a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #6e737c;
  text-transform: uppercase;
}

/* ── document pages (about / privacy / guides) ───────────── */
.doc-wrap { padding: 52px 26px 0; }
.doc-wide { max-width: 980px; }
.doc {
  max-width: 740px;
  margin: 0 auto;
}
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 34px; }
.doc h1 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}
html[lang="ko"] .doc h1 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.04em; }
.doc .lead {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.doc .updated {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}
.doc h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 38px 0 12px;
  padding-top: 2px;
}
.doc h3 { font-size: 17px; margin: 26px 0 8px; letter-spacing: -0.02em; }
.doc p { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); margin: 12px 0; }
.doc li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); margin: 7px 0; padding-left: 20px; position: relative; }
.doc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--blue);
}
.doc ul, .doc ol { margin: 12px 0; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a.inline { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b9c2ff; }
.doc a.inline:hover { text-decoration-color: var(--blue-ink); }
.doc .box {
  margin: 22px 0;
  padding: 16px 18px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.doc .box b { color: var(--ink); }
.doc table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.doc th:nth-child(1), .doc td:nth-child(1) { width: 32%; }
.doc th:nth-child(2), .doc td:nth-child(2) { width: 23%; }
.doc th:nth-child(3), .doc td:nth-child(3) { width: 45%; }
.doc th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: #f8f6ef; }
.doc td { color: var(--ink-2); }
.doc .doc-foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.doc .doc-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.doc .back { font-size: 13px; color: var(--muted); text-decoration: none; }
.doc .back:hover { color: var(--ink); }
.doc-cta {
  margin-top: 40px;
  padding: 22px;
  background: var(--night);
  color: #f4f1e9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.doc-cta p { color: #b9bcc2; font-size: 13.5px; margin: 0; }
.doc-cta b { display: block; color: #fff; font-size: 16px; letter-spacing: -0.02em; margin-bottom: 3px; }

/* guides hub */
.gh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.gh-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.18s, transform 0.18s var(--ease);
}
.gh-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.gh-card .g-k { margin: 0; }
.gh-card h2 { font-size: 19px; margin: 0; letter-spacing: -0.03em; }
.gh-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.gh-card .more { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--blue-ink); margin-top: auto; padding-top: 10px; text-transform: uppercase; }

/* article extras */
.toc {
  margin: 22px 0 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f2;
}
.toc p { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { margin: 0; counter-reset: t; }
.toc li { font-size: 13.5px; margin: 4px 0; padding-left: 22px; counter-increment: t; }
.toc li::before { content: counter(t) "."; width: auto; height: auto; background: none; border-radius: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; top: 0.15em; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.note-inline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  background: #f1eee6;
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 60;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--verm); }

/* busy overlay state on drop */
.is-busy { pointer-events: none; opacity: 0.6; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-bottom: 118px; }
  .readout { max-width: 460px; transform: none; }
  .tool-grid { grid-template-columns: 1fr; }
  #panel-image { grid-template-columns: 1fr; grid-template-areas: "drop" "queue" "controls" "note"; }
  .qr-grid { grid-template-columns: 1fr; grid-template-areas: "top" "preview" "more"; }
  .aff-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr 1fr; }
  .split-grid .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .wrap { padding: 0 18px; }
  .top-in { height: 58px; gap: 14px; }
  .nav { display: none; }
  .pill-live { display: none; }
  .hero-in { padding: 48px 18px 104px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .lede { font-size: 15.5px; }
  .hero-facts { gap: 20px; margin-top: 30px; }
  .hero-facts li { min-width: 84px; }
  .bench-wrap { margin-top: -66px; }
  .bench { padding: 18px; border-radius: 18px; }
  .bench-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
  .bench-note { text-align: left; max-width: none; }
  .tabs { gap: 4px; padding: 4px; }
  .tab { grid-template-columns: 1fr; padding: 9px 8px; row-gap: 1px; }
  .tab .n { display: none; }
  .tab-t { font-size: 12.5px; }
  .tab-s { font-size: 8.5px; letter-spacing: 0.06em; }
  .panel { padding-top: 20px; }
  .drop { min-height: 186px; }
  #panel-image.has-items .drop { min-height: 92px; padding: 14px; }
  #panel-image.has-items .drop-icon { width: 30px; height: 30px; margin-bottom: 4px; }
  #panel-image.has-items .drop-icon svg { width: 18px; height: 18px; }
  #panel-image.has-items .drop-t { font-size: 14px; }
  #panel-image.has-items .drop-s,
  #panel-image.has-items .drop-hint { display: none; }
  .controls { padding: 15px; }
  .rrow { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .thumb { width: 40px; height: 40px; }
  .racts { gap: 5px; }
  .racts .iconbtn { width: 28px; height: 28px; }
  .rmeta { font-size: 10px; gap: 6px; }
  .rmeta .badge { display: none; }
  .pdf-list .rrow { grid-template-columns: 20px 30px minmax(0, 1fr); }
  .pdf-list .racts { grid-column: 2 / -1; justify-content: flex-end; margin: 2px 0 0; }
  .totalbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .totalbar .btn { width: 100%; }
  .split-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li { border-right: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .steps li + li { padding-left: 0; }
  .aff-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .aff-note { text-align: left; max-width: none; }
  .aff-grid { grid-template-columns: 1fr; }
  .aff-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; }
  .aff-card h3, .aff-card p, .aff-price, .aff-card a, .aff-badge { grid-column: 1 / -1; }
  .aff-card a { padding-top: 10px; }
  .g-grid { grid-template-columns: 1fr; }
  .gt-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cross-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 26px; }
  .foot-links { justify-content: flex-start; }
  .foot-bottom { flex-direction: column; gap: 6px; }
  .doc-wrap { padding-top: 34px; }
  .doc h1 { font-size: 2rem; }
  .doc .lead { font-size: 15.5px; }
  .gh-grid { grid-template-columns: 1fr; }
  .qr-actions .btn { padding: 12px 10px; font-size: 13px; }
  .qr-preview { padding: 14px; }
  .qr-stage { max-width: 300px; }
  #pdfMergePane.has-items .drop-sm,
  #pdfSplitPane.has-file .drop-sm { min-height: 88px; padding: 12px; }
  #pdfMergePane.has-items .drop-icon,
  #pdfSplitPane.has-file .drop-icon { width: 32px; height: 32px; margin-bottom: 4px; }
  #pdfMergePane.has-items .drop-icon svg,
  #pdfSplitPane.has-file .drop-icon svg { width: 19px; height: 19px; }
  #pdfMergePane.has-items .drop-s,
  #pdfSplitPane.has-file .drop-s { display: none; }
  #pdfMergePane.has-items .drop-t,
  #pdfSplitPane.has-file .drop-t { font-size: 14px; }
  .faq-list details p { padding-right: 24px; }
  .doc th, .doc td { font-size: 12.5px; padding: 7px 6px; }
  .ad-second { margin-top: 44px; }
}

@media (max-width: 420px) {
  .hero-facts { gap: 14px 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .readout { padding: 14px; }
  .ro-row { grid-template-columns: 28px 1fr 1fr; }
  .ro-v { grid-column: 2 / -1; text-align: left; margin-top: -4px; }
  .ro-note { display: none; }
  .tab-t { font-size: 12px; }
  .tab-s { display: none; }
  .tab { padding: 11px 6px; }
  .swatch b { display: none; }
  .doc .box { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .top, .adslot, .aff, .hero-cta, .tabs, .bench, .cross, .foot { display: none !important; }
  body { background: #fff; }
  .doc-wrap { padding: 0; }
}
