/* ============================================================
   DigitPDF — house stylesheet
   Clean, light, calm: white surfaces, one warm accent, soft
   depth. Light is the default; dark is one click away.
   Written by hand — no framework, no build step.

   Tool scripts write inline styles against these variables:
   --ink, --muted, --accent, --paper, --line, --mono, --bad.
   Keep them defined.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* surfaces */
  --page:    #f6f7f9;   /* the page behind everything        */
  --paper:   #ffffff;   /* cards, inputs, anything you touch */
  --paper-2: #f8f9fb;
  --paper-3: #ffffff;

  /* ink */
  --ink:     #15171c;
  --ink-2:   #3d434e;
  --muted:   #5e6572;

  /* lines */
  --line:        #e3e6ec;
  --line-strong: #cfd5de;
  --rule:        var(--line);

  /* the one strong accent — the old shop sign, polished */
  --accent:      #e8482b;
  --accent-2:    #c93a1d;
  --accent-soft: #fdf0ec;
  --hl:          #ffedd2;

  --good:      #15803d;
  --good-soft: #ecfdf3;
  --bad:       #d92d20;
  --bad-soft:  #fef2f1;

  /* soft, modern depth */
  --sh-sm: 0 1px 2px rgb(16 24 40 / .05), 0 1px 3px rgb(16 24 40 / .05);
  --sh-md: 0 8px 20px -8px rgb(16 24 40 / .14), 0 2px 6px -2px rgb(16 24 40 / .07);
  --sh-lg: 0 28px 56px -20px rgb(16 24 40 / .22), 0 10px 24px -12px rgb(16 24 40 / .12);

  --r:    12px;
  --r-sm: 9px;
  --r-lg: 16px;

  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-hand:    "Caveat", cursive;

  --mono: var(--f-mono);   /* alias kept for tool scripts     */
  --wrap: 1180px;
}

html[data-theme="dark"] {
  --page:    #0f1115;
  --paper:   #171a20;
  --paper-2: #1c2027;
  --paper-3: #1c2027;

  --ink:     #e9ebef;
  --ink-2:   #c6cbd4;
  --muted:   #99a1ad;

  --line:        #262b34;
  --line-strong: #363d49;

  --accent:      #ff6b47;
  --accent-2:    #ff8f72;
  --accent-soft: rgb(255 107 71 / .13);
  --hl:          rgb(255 107 71 / .2);

  --good:      #4ade80;
  --good-soft: rgb(74 222 128 / .12);
  --bad:       #ff7b70;
  --bad-soft:  rgb(255 123 112 / .12);

  --sh-sm: 0 1px 2px rgb(0 0 0 / .45);
  --sh-md: 0 8px 22px -10px rgb(0 0 0 / .65), 0 2px 8px -2px rgb(0 0 0 / .4);
  --sh-lg: 0 30px 60px -24px rgb(0 0 0 / .8), 0 12px 28px -14px rgb(0 0 0 / .5);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }   /* the hero glow may peek, but never scrolls */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"]  { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
body {
  font: 400 16px/1.62 var(--f-body);
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--hl); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
a:hover { text-decoration-color: var(--accent); }

.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--sm { width: 15px; height: 15px; }
.ic--lg { width: 34px; height: 34px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 56px 0; }
.section--tight { padding: 34px 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.hand { font-family: var(--f-hand); font-size: 1.25em; }
.center { text-align: center; }
.hidden { display: none !important; }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--page);
  padding: 10px 16px; border-radius: 0 0 var(--r) 0;
  text-decoration: none; font-weight: 600;
}
.skip:focus { left: 0; }

.label {
  font: 700 11px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
}
.label--block { display: block; margin-bottom: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font: 750 19px/1 var(--f-display); letter-spacing: -.02em;
  text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.brand .brand__mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .14), var(--sh-sm);
  font: 700 17px/1 var(--f-display);
}
.brand .brand__sub {
  font: 500 9.5px/1.3 var(--f-mono); text-transform: uppercase;
  letter-spacing: .13em; color: var(--muted); margin-top: 2px;
}
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a {
  font: 570 13.5px/1 var(--f-body);
  text-decoration: none; padding: 9px 12px; border-radius: var(--r-sm);
}
.nav a:hover { background: var(--paper); color: var(--accent-2); }
.nav a[aria-current="page"] { background: var(--paper); color: var(--accent-2); box-shadow: var(--sh-sm); }
.theme-btn, .nav-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.theme-btn:hover, .nav-toggle:hover { border-color: var(--line-strong); }
.theme-btn .ic { width: 17px; height: 17px; color: var(--muted); }
.theme-btn:hover .ic, .nav-toggle:hover .ic { color: var(--accent); }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
.theme-btn .i-sun { display: none; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--page); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; box-shadow: var(--sh-md);
  }
  .nav--open { display: flex; }
  .nav a { padding: 13px 12px; }
  .nav .theme-btn { margin-top: 6px; }
  .nav-toggle { display: grid; }
  .header-in { position: relative; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 46px 0 30px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.footer-grid h3 { font: 700 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; font-size: 13.5px; color: var(--ink-2); }
.footer-grid a:hover { color: var(--accent-2); text-decoration: underline; }
.brand--footer { margin-bottom: 14px; }
.footer-blurb { font-size: 13.5px; color: var(--muted); max-width: 300px; }
.footer-note { border-top: 1px solid var(--line); padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
.footer-note p { font: 400 11.5px/1.7 var(--f-mono); color: var(--muted); }
.running { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }
.running i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--f-body);
  padding: 12px 18px; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: var(--sh-sm);
  text-decoration: none; user-select: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { background: var(--paper-2); border-color: var(--muted); text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost { box-shadow: none; border-color: var(--line); background: transparent; }
.btn--ghost:hover { background: var(--paper); border-color: var(--line-strong); }
.btn--sm { padding: 8px 12px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn--danger { color: var(--bad); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row--center { justify-content: center; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); overflow: hidden; padding: 3px; gap: 3px; }
.seg button {
  padding: 7px 13px; background: transparent; border: 0; cursor: pointer;
  border-radius: 7px; color: var(--muted);
  font: 600 12.5px/1.2 var(--f-body);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--accent-2); box-shadow: var(--sh-sm); }

.field { display: grid; gap: 7px; }
.field > label, .field > .label { font: 700 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.field .hint { font: 400 12.5px/1.55 var(--f-body); color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; padding: 10px 12px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font: 400 14px/1.5 var(--f-body);
  transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover { border-color: var(--muted); }
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.input { resize: vertical; min-height: 90px; font-family: var(--f-mono); font-size: 13px; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235e6572' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.inline-num { display: flex; align-items: center; gap: 10px; }
.inline-num .input { width: 92px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.022em; line-height: 1.14; }
h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 750; letter-spacing: -.03em; }
h2 { font-size: clamp(23px, 2.7vw, 29px); }
h3 { font-size: 18.5px; }
mark, .hl {
  background: var(--accent-soft); color: var(--accent-2);
  padding: 0 7px; border-radius: 7px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.dek { font: 400 17px/1.6 var(--f-body); color: var(--muted); max-width: 640px; }
.rule-d { position: relative; height: 1px; background: var(--line); margin: 0; border: 0; }
.rule-d--first { margin: 44px 0 0; }
.rule-d::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 0 4px var(--page);
}

/* ---------- hero ---------- */
.hero { padding: 62px 0 40px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; } .floatchip--b { left: 8px; } }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: var(--sh-sm); }
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 18%, transparent); flex: none; }
.hero h1 { font-size: clamp(36px, 4.8vw, 54px); font-weight: 760; letter-spacing: -.035em; line-height: 1.05; }
.hero h1 mark { white-space: nowrap; }
.hero__dek { margin: 20px 0 26px; font-size: 17.5px; max-width: 540px; color: var(--muted); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; font: 500 12.5px/1 var(--f-mono); color: var(--muted); }
.hero__stats span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.hero__stats b { color: var(--ink); font-weight: 700; }

/* hero visual — a quiet mock of the app itself */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1;
  background: radial-gradient(58% 58% at 68% 34%, var(--accent-soft), transparent 72%);
}
.appwin { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.appwin__bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.appwin__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.appwin__dot:first-child { background: color-mix(in srgb, var(--accent) 60%, var(--line-strong)); }
.appwin__url {
  margin-left: 10px; flex: 1; text-align: center;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .01em; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appwin__body { padding: 18px; }
.minidz {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  border: 2px dashed var(--line-strong); border-radius: 14px;
  padding: 24px 18px;
}
.minidz__ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.minidz__ico .ic { width: 22px; height: 22px; }
.minidz__t { font: 650 15.5px/1.3 var(--f-body); }
.minidz__h { font: 400 12px/1.5 var(--f-mono); color: var(--muted); }
.minirow { display: flex; align-items: center; gap: 11px; margin-top: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.minirow__ico { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.minirow__name { flex: 1; min-width: 0; font: 600 13px/1.3 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minirow__size { font: 500 11.5px/1 var(--f-mono); color: var(--muted); }
.minirow__go { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.minirow__go .ic { stroke-width: 2; }
.miniprog { margin-top: 15px; height: 8px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.miniprog span {
  display: block; height: 100%; width: 72%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-size: 200% 100%;
  animation: miniprog 2.6s ease-in-out infinite;
}
@keyframes miniprog { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.floatchip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 13px; font: 650 12.5px/1 var(--f-body); box-shadow: var(--sh-md);
  white-space: nowrap;
}
.floatchip .ic { width: 14px; height: 14px; color: var(--accent); }
.floatchip--a { top: -16px; right: 26px; transform: rotate(2deg); }
.floatchip--b { bottom: 44px; left: -30px; transform: rotate(-3deg); }
.floatchip--c { bottom: -16px; right: 76px; transform: rotate(-1.5deg); }
@media (max-width: 760px) { .floatchip { display: none; } }

/* ---------- tool cards & grids ---------- */
.cat-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.cat-head h2 { display: flex; align-items: center; gap: 12px; }
.cat-head h2 .ic { color: var(--accent); width: 24px; height: 24px; }
.count-chip { font: 600 11px/1 var(--f-mono); letter-spacing: .04em; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: var(--paper); color: var(--muted); }
.cat-dek { color: var(--muted); font-size: 14.5px; max-width: 680px; margin: 10px 0 24px; }
.cat-dek--center { margin: 14px auto 24px; }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 14px; }
.tcard {
  position: relative; display: block; text-decoration: none;
  border: 1px solid var(--line); background: var(--paper);
  padding: 17px 17px 16px; border-radius: 14px;
  box-shadow: var(--sh-sm);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.tcard:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-strong); text-decoration: none; }
.tcard__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tcard__ico .ic { width: 21px; height: 21px; }
.tcard__t { display: block; font: 650 15.5px/1.3 var(--f-body); letter-spacing: -.01em; margin-top: 12px; }
.tcard__d { display: block; font: 400 13px/1.55 var(--f-body); color: var(--muted); margin-top: 5px; }
.tcard__go { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; opacity: 0; transition: opacity .14s, transform .14s; transform: translateX(-4px); }
.tcard__go .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.tcard:hover .tcard__go { opacity: 1; transform: none; }
.tcard--wide { grid-column: span 2; }
@media (max-width: 620px) { .tcard--wide { grid-column: span 1; } }

/* ---------- tool page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12.5px/1.4 var(--f-body); color: var(--muted); padding-top: 30px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-2); text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.tool-head { padding: 20px 0 6px; max-width: 800px; }
.trust { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); padding: 7px 13px;
  font: 650 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em;
}
.pill .ic { width: 13px; height: 13px; color: var(--muted); }
.pill--ok { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); background: var(--good-soft); color: var(--good); }
.pill--ok .ic { color: var(--good); }

.board { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: 28px; align-items: start; padding: 30px 0 10px; }
@media (max-width: 960px) { .board { grid-template-columns: 1fr; } }
.board__side { position: sticky; top: 88px; display: grid; gap: 16px; }
@media (max-width: 960px) { .board__side { position: static; } }

.panel { border: 1px solid var(--line); background: var(--paper); border-radius: 14px; box-shadow: var(--sh-sm); padding: 20px; position: relative; }
.panel > .label { display: block; margin-bottom: 14px; }
.panel-note { font-size: 13.5px; color: var(--muted); }
.panel .fields { display: grid; gap: 16px; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* dropzone */
.dz {
  position: relative; min-height: 270px; width: 100%;
  border: 2px dashed var(--line-strong); border-radius: 18px;
  background: var(--paper);
  display: grid; place-items: center; text-align: center;
  padding: 44px 26px 34px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dz:hover, .dz:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--paper)); }
.dz--over { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.dz--compact { min-height: 190px; padding: 30px 20px 24px; }
.dz__scissors, .dz__corner { display: none; }   /* the paper props retired with the old theme */
.dz__inner { display: grid; gap: 10px; justify-items: center; max-width: 460px; }
.dz__icon { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.dz__icon .ic { width: 28px; height: 28px; stroke-width: 1.6; }
.dz__t { font: 650 18px/1.3 var(--f-body); letter-spacing: -.01em; }
.dz__hint { font: 400 12.5px/1.6 var(--f-mono); color: var(--muted); }
.dz__browse { color: var(--accent-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-decoration-thickness: 2px; }
.dz input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* file chips */
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filechip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 10px; font: 500 12px/1 var(--f-mono); max-width: 100%; box-shadow: var(--sh-sm); }
.filechip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filechip b { color: var(--muted); font-weight: 500; }
.filechip button { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--muted); display: grid; place-items: center; border-radius: 6px; }
.filechip button:hover { color: var(--bad); background: var(--bad-soft); }
.filechip--thumb img { width: 26px; height: 26px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* results */
.results { display: grid; gap: 10px; margin-top: 18px; }
.rcard { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; box-shadow: var(--sh-sm); padding: 12px 14px; }
.rcard__thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); background: var(--paper-2); flex: none; }
.rcard__body { min-width: 0; flex: 1; }
.rcard__name { font: 600 14px/1.35 var(--f-body); word-break: break-all; }
.rcard__meta { font: 500 11px/1.5 var(--f-mono); color: var(--muted); margin-top: 3px; }
.rcard__actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) { .rcard { flex-wrap: wrap; } .rcard__actions { width: 100%; justify-content: flex-end; } }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 2px; }
.result-head h3 { font-size: 19px; }

/* progress */
.prog { border: 0; background: var(--line); height: 8px; border-radius: 999px; overflow: hidden; }
.prog__bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .18s ease; }
.prog-wrap { display: grid; gap: 8px; margin-top: 16px; }
.prog__label { font: 500 12px/1.5 var(--f-mono); color: var(--muted); }
.spinner { width: 15px; height: 15px; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* text output + log */
.tout { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 14px; font: 400 12.5px/1.6 var(--f-mono); white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow: auto; }
.log { font: 400 11.5px/1.7 var(--f-mono); color: var(--muted); white-space: pre-wrap; max-height: 170px; overflow: auto; border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; background: var(--paper-2); }

/* empty state / errors */
.empty { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.err-box { border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--line)); color: var(--bad); background: var(--bad-soft); border-radius: 12px; padding: 13px 15px; font-size: 14px; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--paper); border-radius: 12px; box-shadow: var(--sh-sm); padding: 17px 19px; font-size: 14.5px; }
.callout p, .prose .callout p { margin: 0; }
.callout .contact-mail, .prose .callout .contact-mail { margin: 0; font-size: 17px; }
.callout .contact-note, .prose .callout .contact-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* how-it-works steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 18px; margin-top: 26px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2);
  border-radius: 50%; font: 700 12.5px/1 var(--f-mono);
  margin-top: 1px;
}
.steps b { display: block; font-weight: 650; margin-bottom: 3px; }
.steps p { color: var(--muted); font-size: 14.5px; }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq-more { margin-top: 18px; }
.faq details { border: 1px solid var(--line); background: var(--paper); border-radius: 14px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; font: 650 15px/1.45 var(--f-body); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .18s ease; color: var(--accent); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .a { padding: 14px 18px 17px; font-size: 14.5px; color: var(--ink-2); }
.faq .a p + p { margin-top: 10px; }

/* prose pages */
.prose { max-width: 780px; }
.prose h2 { margin: 40px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p { margin: 0 0 14px; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 7px; font-size: 15.5px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose .updated { display: inline-block; margin-bottom: 26px; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 0 0 18px; padding: 4px 0 4px 18px; font-size: 17px; color: var(--muted); }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* toast */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 10px; max-width: 340px; }
.toast {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--paper); color: var(--ink);
  padding: 12px 15px; border-radius: 12px; font: 500 13px/1.5 var(--f-body);
  box-shadow: var(--sh-lg);
  display: flex; gap: 10px; align-items: flex-start;
  animation: toast-in .18s ease;
}
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.toast--err { border-left-color: var(--bad); }
.toast--err span { color: var(--bad); }
.toast__x { border: 0; background: none; color: var(--muted); cursor: pointer; opacity: .8; padding: 0; }
.toast__x:hover { opacity: 1; color: var(--ink); }

/* 404 */
.lost { text-align: center; padding: 70px 0 40px; }
.lost .code { font: 780 clamp(88px, 17vw, 160px)/1 var(--f-display); letter-spacing: -.05em; }
.lost .cutline { border-top: 2px dashed var(--line-strong); margin: 8px auto 26px; max-width: 460px; position: relative; }
.lost .cutline .ic { position: absolute; top: -15px; left: 12%; background: var(--page); padding: 0 8px; width: 30px; height: 30px; color: var(--accent); }
.lost h1 { font-size: clamp(22px, 3vw, 30px); }
.lost .dek { margin: 14px auto 26px; }
.lost .code__spark { color: var(--accent); }

/* utilities page */
.util-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.util-bar .input { max-width: 380px; }

/* home page bits */
.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.strip__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-sm); }
.strip__item .ic { color: var(--accent); width: 23px; height: 23px; margin-top: 0; }
.strip__item .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); }
.strip__item b { display: block; font: 650 15.5px/1.3 var(--f-body); margin-bottom: 5px; }
.strip__item p { font-size: 13px; color: var(--muted); line-height: 1.62; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr; } }

.stamp {
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 16px;
  font: 700 10px/1.55 var(--f-mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-2); background: var(--accent-soft);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transform: rotate(-7deg);
}
.stamp--ink { color: var(--ink); background: var(--paper); border-color: var(--line-strong); }
.stamp--sm { width: 86px; height: 86px; font-size: 8.5px; }
.stamp--inline { display: inline-grid; margin-bottom: 26px; }
.h-lg { font-size: clamp(28px, 4vw, 40px); }

section[id], h2[id], div[id] { scroll-margin-top: 88px; }

/* reduced chrome on print */
@media print {
  .site-header, .site-footer, .board__side, .dz, .toasts { display: none !important; }
}
