/* pdf24tools.org — "violet workbench": warm paper background, violet tool cards with a lime signal colour,
   Sora headings + Figtree text. Mobile first, logical properties everywhere (RTL safe), light + dark tokens. */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f1eefb;
  --ink: #17151f;
  --muted: #5d5970;
  --line: #e2dfec;
  --brand: #5b2bd6;
  --brand-ink: #ffffff;
  --brand-soft: #ece6fd;
  --signal: #d4f55a;
  --signal-ink: #1d2400;
  --ok: #18794e;
  --err: #c2262d;
  --shadow: 0 1px 2px rgba(23, 21, 31, .06), 0 10px 30px rgba(60, 30, 140, .08);
  --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 14px;
  --r-s: 9px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121019; --surface: #1b1826; --surface-2: #231f33; --ink: #ece9f5; --muted: #a9a3bd; --line: #332e47;
    --brand: #a58bff; --brand-ink: #120d24; --brand-soft: #2b2448; --signal: #c8ec4a; --signal-ink: #141a00;
    --ok: #5fd39a; --err: #ff8c87; --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121019; --surface: #1b1826; --surface-2: #231f33; --ink: #ece9f5; --muted: #a9a3bd; --line: #332e47;
  --brand: #a58bff; --brand-ink: #120d24; --brand-soft: #2b2448; --signal: #c8ec4a; --signal-ink: #141a00;
  --ok: #5fd39a; --err: #ff8c87; --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); overflow-x: hidden; }
img, canvas, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
/* visually hidden but readable; clip, never a far negative offset (an RTL page would grow sideways) */
.vh, .skip { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
a.skip:focus { position: fixed !important; inset-block-start: 8px; inset-inline-start: 8px; width: auto; height: auto; clip: auto; clip-path: none;
  z-index: 50; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: var(--r-s); }
.mono { font-family: var(--f-mono); font-size: .86em; unicode-bidi: plaintext; }
.small { font-size: 14px; }

/* ---------------------------------------------------------------- header */
header.top { background: var(--surface); border-block-end: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.top > .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.logo .word { font: 800 21px/1 var(--f-head); letter-spacing: -.02em; }
.logo .word b { color: var(--brand); font-weight: 800; }
.hsearch { flex: 1; min-width: 0; }
.hsearch input, .find input { width: 100%; font: inherit; font-size: 15px; padding: 9px 14px 9px 38px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23857fa0' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 14px 50%; color: var(--ink); }
[dir="rtl"] .hsearch input, [dir="rtl"] .find input { padding: 9px 38px 9px 14px; background-position: calc(100% - 14px) 50%; }
.lang select { font: inherit; font-size: 14px; padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); max-width: 120px; }
.theme { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; position: relative; }
.theme::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 2px solid var(--ink); }
nav.chips { border-block-start: 1px solid var(--line); }
nav.chips .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
nav.chips a { flex: none; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 999px; background: var(--surface-2); }
nav.chips a:hover { background: var(--brand-soft); }
nav.chips a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }
@media (max-width: 640px) { .hsearch { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: 28px 30px; }
.hero > .wrap { display: grid; gap: 22px; }
.after:empty { display: none; }
@media (min-width: 960px) {
  .hero-tool > .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "intro tool" "after tool"; align-items: start; column-gap: 40px; row-gap: 16px; }
  .hero-tool .intro { grid-area: intro; }
  .hero-tool .after { grid-area: after; }
  .hero-tool .tool { grid-area: tool; }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-block-end: 10px; }
.crumbs a { color: var(--muted); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 800; margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 16px; max-width: 62ch; }
.byline { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.tldr { background: var(--surface); border: 1px solid var(--line); border-inline-start: 6px solid var(--signal); border-radius: var(--r); padding: 14px 18px; }
.tldr .tl-h { font: 700 13px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 0 0 6px; }
.tldr p { margin: 0 0 8px; }
.tldr ol { margin: 0; padding-inline-start: 22px; }
.tldr li { margin: 2px 0; }

/* ---------------------------------------------------------------- tool card (app.js renders inside) */
.tool { background: var(--surface); border-radius: calc(var(--r) + 6px); box-shadow: var(--shadow); border: 1px solid var(--line); border-block-start: 6px solid var(--brand); padding: 18px; }
.drop { border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: var(--r); background: var(--surface-2); padding: 34px 16px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { background: var(--brand-soft); border-color: var(--brand); }
.drop .ico { display: block; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; background: var(--brand)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 18V6M7 11l6-6 6 6M5 21h16'/%3E%3C/svg%3E") no-repeat center; }
.drop .pick, .go, .download { font: 700 17px/1 var(--f-body); background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 999px; padding: 15px 26px; cursor: pointer; text-decoration: none; display: inline-block; }
.drop .pick:hover, .go:hover, .download:hover { filter: brightness(1.08); }
.drop .or { margin: 10px 0 4px; color: var(--muted); font-size: 15px; }
.drop .spec { margin: 0; font-size: 13px; color: var(--muted); }
.zero { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.zero li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.files { display: grid; gap: 8px; margin-block-end: 12px; }
.file { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.file .thumb { width: 44px; height: 58px; background: #fff; border: 1px solid var(--line); border-radius: 4px; flex: none; }
.file .meta { flex: 1; min-width: 0; display: grid; }
.file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.file .mono { color: var(--muted); }
.move { display: flex; gap: 4px; }
.move button, .file .x, .pg button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 16px; }
.move button:hover, .file .x:hover, .pg button:hover { background: var(--brand-soft); }
.move button:disabled { opacity: .35; cursor: default; }
.opts { display: grid; gap: 12px; margin-block: 12px; padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.opt { display: grid; gap: 6px; }
.opt > label, .opt legend { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.opt select, .opt input[type=text], .opt input[type=number], .opt input[type=password], .opt input[type=email], .opt input[type=date], .opt textarea {
  font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
.opt input[type=number] { max-width: 160px; }
.opt.check { display: flex; align-items: center; gap: 8px; }
.opt.check label { font-size: 15px; color: var(--ink); font-weight: 500; }
.suffix { display: inline-flex; align-items: center; gap: 6px; }
fieldset.radio { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
fieldset.radio legend { margin-block-end: 6px; }
fieldset.radio label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 15px; }
fieldset.radio label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
fieldset.radio input { accent-color: var(--brand); }
.hint { font-size: 14px; color: var(--muted); margin: 4px 0; }
.pages .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; max-height: 460px; overflow: auto; padding: 4px; }
.pg { position: relative; display: grid; justify-items: center; gap: 4px; }
.pg .sheet { background: #fff; box-shadow: var(--shadow); transition: transform .2s; }
.pg canvas { display: block; }
.pg.del .sheet { opacity: .3; }
.pg.del::after { content: "×"; position: absolute; inset-block-start: 20%; font: 800 44px/1 var(--f-head); color: var(--err); }
.pg button[aria-pressed="true"] { background: var(--err); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.go:disabled { opacity: .45; cursor: not-allowed; }
.busy .go { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .6; } }
.ghost, .ed-go { font: 600 15px/1 var(--f-body); background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; cursor: pointer; }
.ed-go { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.ghost:hover { border-color: var(--brand); }
.status { min-height: 1.4em; font-size: 15px; margin: 10px 0 0; }
.status.err, .err { color: var(--err); }
.result { margin-block-start: 12px; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--signal) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--signal) 60%, var(--line)); display: grid; gap: 10px; }
.out { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.out .mono { color: var(--muted); }
.proof { font-size: 12px; color: var(--muted); margin: 0; }
.result textarea, .result pre { width: 100%; max-height: 360px; overflow: auto; font: 14px/1.5 var(--f-mono); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px; color: var(--ink); }
.result canvas, .result img { display: block; margin: 8px auto; box-shadow: var(--shadow); background: #fff; }

/* ---------------------------------------------------------------- home */
.k-home .hero > .wrap { max-width: 1180px; }
.find { max-width: 640px; margin-block-end: 8px; }
.find input { font-size: 17px; padding-block: 14px; }
.hub { display: grid; gap: 26px; margin-block-start: 10px; }
.cat h2 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.cat h2::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--dot, var(--brand)); flex: none; }
#cat-organize { --dot: #5b2bd6; } #cat-optimize { --dot: #0f9d76; } #cat-edit { --dot: #e8590c; } #cat-security { --dot: #1c7ed6; }
#cat-read { --dot: #9c36b5; } #cat-to-pdf { --dot: #2b8a3e; } #cat-from-pdf { --dot: #c2255c; } #cat-create { --dot: #e67700; } #cat-images { --dot: #0b7285; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.card { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card b { font: 700 16px/1.3 var(--f-head); }
.card span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------------------------------------------------------------- content */
main { padding-block: 10px 40px; }
.content { max-width: 780px; }
.content h2 { font-size: clamp(23px, 4vw, 30px); margin: 46px 0 12px; }
.content h3 { font-size: 21px; margin: 28px 0 8px; }
.content h4 { font-size: 18px; margin: 22px 0 6px; }
.content h5 { font-size: 16px; margin: 18px 0 6px; }
.content h6 { font-size: 15px; margin: 16px 0 6px; color: var(--muted); }
.content p, .content li { max-width: 70ch; }
.content p.answer { font-size: 18px; border-inline-start: 4px solid var(--brand); padding-inline-start: 14px; }
.sub { margin-inline-start: 0; }
.sub .sub { padding-inline-start: 14px; border-inline-start: 2px solid var(--line); }
.steps { padding-inline-start: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 48px; min-height: 36px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; inset-block-start: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font: 700 16px/34px var(--f-head); text-align: center; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-block: 18px 6px; }
.toc strong { font-family: var(--f-head); font-size: 15px; }
.toc ol { margin: 6px 0 0; padding-inline-start: 20px; columns: 2 260px; font-size: 15px; }
.note { background: var(--surface-2); border-radius: var(--r-s); padding: 12px 14px; }
.table-wrap { overflow-x: auto; margin-block: 14px; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
th, td { padding: 9px 12px; text-align: start; border-block-end: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; }
caption { caption-side: bottom; padding: 8px 12px; font-size: 13px; color: var(--muted); text-align: start; }
details.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-block: 8px; }
details.faq summary { cursor: pointer; padding: 12px 16px; list-style-position: inside; }
details.faq summary h3 { display: inline; font-size: 17px; margin: 0; }
details.faq p { margin: 0; padding: 0 16px 14px; }
blockquote { margin: 18px 0; padding: 14px 18px; border-radius: var(--r); background: var(--surface-2); border-inline-start: 4px solid var(--signal); }
blockquote p { margin: 0 0 6px; font-size: 17px; }
blockquote footer { font-size: 14px; color: var(--muted); }
figure { margin: 18px 0; }
figure img { border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
figcaption { font-size: 14px; color: var(--muted); margin-block-start: 6px; }
nav.related ul, .sources { padding-inline-start: 20px; }
.content nav.cards { margin-block: 14px; }

/* ---------------------------------------------------------------- footer */
footer.foot { background: #17151f; color: #d9d5e8; padding-block: 34px 26px; margin-block-start: 30px; }
footer.foot a { color: #fff; text-decoration: none; }
footer.foot a:hover { text-decoration: underline; }
footer .cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
footer .fh { font: 700 14px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--signal); margin: 0 0 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
footer ul.langs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.disc { font-size: 13px; color: #b3adc8; margin-block-start: 24px; max-width: 80ch; }
.copy { font-size: 13px; color: #b3adc8; }

/* ---------------------------------------------------------------- page editor, signature, forms (editor.js, forms.js, make.js, pages.js) */
.ed-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; top: 0; z-index: 3; background: var(--surface); padding: 8px 0; }
.ed-bar .ghost { padding: 10px 14px; }
.ed-bar [aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.ed-ctl { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.ed-ctl select, .ed-find input { font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); }
.ed-find { display: inline-flex; gap: 6px; }
.ed-hint { margin: 4px 0 8px; }
.ed-pages, .fc-grid { display: grid; gap: 18px; justify-items: center; background: var(--surface-2); padding: 16px; border-radius: var(--r); max-height: 78vh; overflow: auto; }
.ed-page { position: relative; width: min(100%, 820px); background: #fff; box-shadow: var(--shadow); }
.ed-page canvas { display: block; width: 100%; height: 100%; }
.ed-layer { position: absolute; inset: 0; touch-action: none; }
.mode-text .ed-layer, .mode-stamp .ed-layer { cursor: copy; }
.mode-rect .ed-layer, .mode-hl .ed-layer, .mode-redact .ed-layer, .mode-box .ed-layer, .mode-draw .ed-layer { cursor: crosshair; }
.ed-num { position: absolute; bottom: -18px; right: 0; font-size: 11px; color: var(--muted); }
.ed-item { position: absolute; touch-action: none; cursor: move; outline: 1px dashed transparent; }
.ed-item:hover, .ed-item.sel, .ed-item:focus-within { outline-color: var(--brand); }
.ed-item img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.ed-item.k-redact, .ed-item.ghost.k-redact { background: #000; }
.ed-item.ghost { border: 1px dashed var(--brand); pointer-events: none; }
.ed-item.ghost.k-hl { background: rgba(212, 245, 90, .55); }
.ed-item.ghost.k-rect { background: rgba(255, 255, 255, .85); }
.ed-text { font-family: "Noto Sans", Arial, sans-serif; line-height: 1.3; padding: 0 .1em; white-space: pre-wrap; outline: 0; cursor: text; min-width: 1ch; color: #111; }
.ed-x { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--err); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: none; }
.ed-h { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; background: var(--brand); border-radius: 2px; cursor: nwse-resize; display: none; }
.ed-item:hover .ed-x, .ed-item.sel .ed-x, .ed-item:hover .ed-h, .ed-item.sel .ed-h, .crop-box .ed-h { display: block; }
.ed-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.crop-box { position: absolute; border: 2px solid var(--brand); cursor: move; touch-action: none; }
.crop-shade { position: absolute; inset: 0; background: rgba(23, 21, 31, .45); pointer-events: none; }
.sig { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 12px; background: var(--surface); }
.sig-tabs { display: flex; gap: 6px; }
.sig-tabs button { font: 600 15px/1 var(--f-body); padding: 10px 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; }
.sig-tabs [aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); }
.sig-body { display: grid; gap: 10px; }
.sig-body input[type=text] { font: inherit; font-size: 18px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); }
.sig-pad { width: 100%; aspect-ratio: 3 / 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); touch-action: none; cursor: crosshair; }
.sig-row, .sig-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.sig-foot { justify-content: flex-end; }
.sig-fonts { display: grid; gap: 8px; }
.sig-font { font-size: 34px; padding: 10px 14px; text-align: start; background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sig-font[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent); }
.sig-prev { max-width: 100%; max-height: 140px; justify-self: start; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.formfields, .inv-form, .inv-parties { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px 18px; margin-block-start: 10px; }
.formfields input[type=text], .formfields textarea, .formfields select, .inv-form input, .inv-form textarea, .inv-form select {
  font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); width: 100%; }
.formfields .opt > label { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.inv-preview, .qr-preview, .se-view, .cp-view, .pv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; overflow: auto; max-height: 70vh; }
.inv-sheet { background: #fff; color: #111; padding: 18px; font-size: 14px; }
.pw-list, .se-hits, .bm-list, .fc-list { display: grid; gap: 6px; padding: 0; list-style: none; font-family: var(--f-mono); font-size: 14px; overflow-wrap: anywhere; }
.fc-page { box-shadow: var(--shadow); background: #fff; }
.fc-mark { border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand) 18%, transparent); }
.drop .cam { margin-block-start: -2px; }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .tool { padding: 12px; border-radius: var(--r); }
  .drop { padding: 26px 12px; }
  .file .move { flex-direction: column; }
  .ed-pages { padding: 8px; max-height: 70vh; }
  .sig-font { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* independence banner (Safe Browsing review 2026-11-04): visible on every page, above the header */
.indep { background: #fff7d6; color: #3d3300; border-block-end: 1px solid #e8d98a; font-size: 13px; line-height: 1.45; padding-block: 8px; }
.indep .wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .indep { background: #2d2810; color: #f3e7a8; border-color: #5a4f1c; } }
:root[data-theme="dark"] .indep { background: #2d2810; color: #f3e7a8; border-color: #5a4f1c; }
