/* =============================================================
   FirmaPDF Express — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography
   5. Components  6. Sections  7. Tool  8. Responsive
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-panel: #ffffff;
  --ink: #0b2540;
  --ink-soft: #4a5b6e;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #1a4fd6;
  --accent-dark: #1740ad;
  --accent-soft: #eaf0ff;
  --ok: #1a9c52;
  --danger: #c0392b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11,37,64,.06), 0 10px 30px rgba(11,37,64,.08);
  --wrap: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141c;
    --bg-soft: #131c27;
    --bg-panel: #16202c;
    --ink: #eef3f8;
    --ink-soft: #a9b7c6;
    --line: #263241;
    --line-strong: #33414f;
    --accent: #5b8bff;
    --accent-dark: #7ba3ff;
    --accent-soft: #1b2740;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}

/* 2. Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 3. Utilities ---------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--accent); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.is-hidden { display: none !important; }

/* 4. Typography -------------------------------------------- */
h1 { font-size: clamp(1.75rem, 4.4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; margin-top: 2.4em; }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.6em; }
.content p { margin-top: .9em; color: var(--ink-soft); }
.content p strong { color: var(--ink); }

/* 5. Components -------------------------------------------- */
.btn-primary, .btn-cta, .btn-ghost, .btn-link {
  border-radius: var(--radius-sm); font-weight: 600; transition: background .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease);
}
.btn-primary {
  background: var(--accent); color: #fff; padding: .7rem 1.1rem;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-cta {
  background: var(--accent); color: #fff; padding: .95rem 1.4rem; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  box-shadow: 0 8px 20px rgba(26,79,214,.28);
}
.btn-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-cta:disabled { background: var(--line-strong); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost {
  border: 1px solid var(--line-strong); padding: .35rem .7rem; color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-link { color: var(--accent); padding: .4rem; font-weight: 500; text-decoration: underline; }
.btn-block { display: block; width: 100%; }

.notice, .side-note { font-size: .9rem; color: var(--ink-soft); }
.notice { background: var(--accent-soft); padding: .7rem .9rem; border-radius: var(--radius-sm); }

/* 6. Sections --------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--accent); }
.brand span { color: var(--ink); }
.brand strong { color: var(--accent); }
.header-nav { display: flex; gap: 1.3rem; font-size: .93rem; color: var(--ink-soft); }
.header-nav a:hover { color: var(--accent); }
@media (max-width: 460px) { .header-nav { display: none; } }

.hero { padding: 2.4rem 20px 1rem; text-align: center; }
.subtitle { max-width: 620px; margin: .9rem auto 0; color: var(--ink-soft); font-size: 1.05rem; }

.privacy-badge { margin-top: 1rem; font-weight: 600; color: var(--ok); font-size: .95rem; }
.limits-note { margin-top: .3rem; font-size: .87rem; color: var(--ink-soft); }

.content { padding-bottom: 3rem; }
.content h2 { text-align: left; }

.steps { list-style: none; display: grid; gap: 1rem; margin-top: 1.4rem; grid-template-columns: 1fr; }
.steps li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; color: var(--accent); }
.steps h3 { margin-top: .6rem; color: var(--ink); }
.steps p { margin-top: .3rem; color: var(--ink-soft); }

.faq { margin-top: 1.2rem; display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-panel); }
.faq summary { padding: .95rem 1.1rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.1rem 1.05rem; color: var(--ink-soft); }

.tools-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; margin-top: 1.2rem; }
.tool-card-link { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: block; background: var(--bg-panel); transition: border-color .2s var(--ease), transform .15s var(--ease); }
.tool-card-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card-link strong { display: block; color: var(--accent); }
.tool-card-link span { font-size: .92rem; color: var(--ink-soft); }

.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); margin: 1.6rem 0; overflow: hidden;
}
.ad-slot[hidden] { display: none; }
.ad-slot .adsbygoogle { display: block; width: 100%; }
.ad-label {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); opacity: .7; margin-bottom: .35rem;
}
.ad-leaderboard { min-height: 100px; }
.ad-incontent { min-height: 250px; margin: 2rem 0; }
.ad-footer { min-height: 120px; }
.ad-sidebar { min-height: 250px; margin: .8rem 0 0; }
@media (max-width: 959px) { .ad-sidebar { display: none; } }

/* Aviso de cookies */
.cookie-consent {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(680px, calc(100% - 1.6rem)); z-index: 200;
  background: var(--bg-panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent p { font-size: .86rem; color: var(--ink-soft); flex: 1 1 260px; margin: 0; }
.cookie-consent a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; margin-left: auto; }
.cookie-actions .btn-primary,
.cookie-actions .btn-ghost { padding: .5rem .9rem; font-size: .9rem; }

/* Aviso tras la descarga (interstitial no bloqueante) */
.ad-dialog {
  border: 0; border-radius: var(--radius); padding: 1.4rem; max-width: 380px; width: calc(100% - 2rem);
  background: var(--bg-panel); color: var(--ink); box-shadow: var(--shadow); text-align: center;
  position: relative; margin: auto;
}
.ad-dialog::backdrop { background: rgba(11, 37, 64, .45); backdrop-filter: blur(2px); }
.ad-dialog-x {
  position: absolute; top: .5rem; right: .6rem; width: 30px; height: 30px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; color: var(--ink-soft); background: var(--bg-soft);
}
.ad-dialog-x:hover { color: var(--ink); }
.ad-dialog-title { font-weight: 700; font-size: 1.05rem; color: var(--ok); }
.ad-dialog-sub { font-size: .88rem; color: var(--ink-soft); margin-top: .3rem; }
.ad-modal { min-height: 250px; margin: 1rem 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 1.8rem 0; margin-top: 2rem; }
.footer-inner { text-align: center; font-size: .9rem; color: var(--ink-soft); display: grid; gap: .7rem; }
.footer-nav { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: var(--accent); }
.footer-nav a:hover { text-decoration: underline; }
.footer-fine { font-size: .82rem; }

/* 7. Tool ------------------------------------------------- */
.tool {
  max-width: 900px; margin: 1.6rem auto 0; background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem; text-align: left;
}
.panel { display: none; }
.tool[data-state="idle"]    .panel-idle,
.tool[data-state="editing"] .panel-editing,
.tool[data-state="ready"]   .panel-ready,
.tool[data-state="picker"]  .panel-picker,
.tool[data-state="password"] .panel-password,
.tool[data-state="working"] .panel-working,
.tool[data-state="done"]    .panel-done,
.tool[data-state="error"]   .panel-error { display: block; }

.panel-working, .panel-done, .panel-error { text-align: center; padding: 2.4rem 1rem; }
.panel-done svg, .panel-working .spinner { margin: 0 auto 1rem; }
.done-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.panel-done .btn-cta { margin-bottom: .6rem; }
.err-title { font-weight: 700; color: var(--danger); font-size: 1.1rem; }
.err-msg { margin: .5rem 0 1.2rem; color: var(--ink-soft); }

.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Dropzone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 2.6rem 1.2rem; border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--bg-soft); color: var(--accent); text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dz-title { font-weight: 600; color: var(--ink); }
.dz-hint { font-size: .87rem; color: var(--ink-soft); }

/* Editor layout */
.editor { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.page-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: .7rem; font-size: .92rem; color: var(--ink-soft); }
.page-bar button { width: 34px; height: 34px; border-radius: 8px; font-size: 1.1rem; }

.stage-scroll { overflow: auto; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; max-height: 62vh; }
.stage { position: relative; margin: 0 auto; background: #fff; box-shadow: 0 2px 10px rgba(11,37,64,.12); }
.stage canvas#pageCanvas { display: block; }
.stage-hint { font-size: .82rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; }

/* Signature placement box */
.sig-box { position: absolute; border: 1.5px dashed var(--accent); cursor: grab; touch-action: none; background: rgba(26,79,214,.04); }
.sig-box img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.sig-box.is-active { border-style: solid; box-shadow: 0 0 0 2px var(--accent-soft); }
.sig-box .handle {
  position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px;
  background: var(--accent); border: 2px solid #fff; border-radius: 50%; cursor: nwse-resize;
}
.redact-box { background: rgba(10,10,10,.85); border-color: #000; cursor: default; }
.field-ctl {
  font: 12px/1.2 var(--sans); border: 1.5px solid var(--accent); border-radius: 3px;
  background: rgba(234,240,255,.85); color: var(--ink); padding: 0 3px; box-sizing: border-box;
}
select.field-ctl { padding: 0; }
input[type="checkbox"].field-ctl { accent-color: var(--accent); background: #fff; }

.compare-zones { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .compare-zones { grid-template-columns: 1fr 1fr; } }
.compare-zones .dropzone { padding: 1.6rem 1rem; }
.diff-grid { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.diff-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem; background: var(--bg-panel); }
.diff-num { font-size: .85rem; font-weight: 600; margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.diff-badge { font-size: .72rem; padding: .1rem .5rem; border-radius: 20px; font-weight: 700; }
.diff-badge.diff-same { background: #e6f6ec; color: var(--ok); }
.diff-badge.diff-diff { background: #fde8e8; color: var(--danger); }
.diff-canvas { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.text-diff { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .8rem; margin-top: .6rem; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .82rem; background: var(--bg-panel); }
.diff-line { white-space: pre-wrap; padding: 1px 4px; border-radius: 3px; }
.diff-line-add { background: #e6f6ec; color: #1a6b3a; }
.diff-line-del { background: #fde8e8; color: #942424; }
.sig-box .del {
  position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 13px; line-height: 18px; text-align: center;
}

/* Signature side panel */
.editor-side { display: grid; gap: .8rem; align-content: start; }
.sig-tabs { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.sig-tab { flex: 1; padding: .55rem; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.sig-tab.is-active { background: var(--accent); color: #fff; }
.sig-pad {
  width: 100%; height: 180px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; touch-action: none; cursor: crosshair;
}
.sig-row { display: flex; align-items: center; justify-content: space-between; }
.pen-colors { display: flex; gap: .4rem; }
.pen { width: 24px; height: 24px; border-radius: 50%; background: var(--pen); border: 2px solid var(--line); }
.pen.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.mini-drop { display: block; padding: 1.4rem 1rem; border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); text-align: center; font-size: .9rem; color: var(--accent); background: var(--bg-soft); }
.mini-drop:hover { border-color: var(--accent); }
.check { display: flex; align-items: center; gap: .5rem; font-size: .87rem; color: var(--ink-soft); }
.sig-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem; background: #fff; }
.sig-preview img { max-height: 90px; margin: 0 auto; }
.side-note { min-height: 1.2em; }

/* 8. Responsive ------------------------------------------ */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .editor { grid-template-columns: 1fr 300px; }
  .editor-side { position: sticky; top: 76px; }
}

/* ==============================================================
   10. Suite multi-herramienta (hub + páginas de herramienta)
   ============================================================== */

/* Cabecera con navegación */
.header-nav .nav-links { display: flex; gap: 1.3rem; }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; }
.nav-toggle svg { display: block; }
@media (max-width: 780px) {
  .header-nav { position: relative; }
  .nav-toggle { display: inline-flex; }
  .header-nav .nav-links {
    position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; gap: 0;
    background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); min-width: 200px; padding: .4rem; display: none;
  }
  .header-nav.is-open .nav-links { display: flex; }
  .header-nav .nav-links a { padding: .6rem .8rem; border-radius: 6px; }
  .header-nav .nav-links a:hover { background: var(--bg-soft); }
}

/* Hub: rejilla de herramientas */
.hub-hero { text-align: center; padding: 2.6rem 20px 1rem; }
.hub-hero p.subtitle { margin-inline: auto; }
.tool-grid {
  display: grid; gap: 1rem; margin: 1.8rem auto 0; max-width: var(--wrap);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-tile {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-panel);
  transition: border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.tool-tile:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-tile .tt-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.tool-tile h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.tool-tile p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.tool-tile[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.tt-soon { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

/* Página de herramienta: migas + cabecera */
.crumbs { font-size: .85rem; color: var(--ink-soft); padding: 1rem 20px 0; max-width: var(--wrap); margin-inline: auto; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }

/* Miniaturas de páginas (dividir / eliminar / rotar / a-jpg) */
.thumbs {
  display: grid; gap: .8rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  max-height: 58vh; overflow: auto; padding: 4px;
}
.thumb {
  position: relative; border: 2px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: #fff; cursor: pointer; display: flex; flex-direction: column;
}
.thumb.is-sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.thumb canvas, .thumb img { width: 100%; height: auto; display: block; }
.thumb .tnum {
  position: absolute; left: 6px; top: 6px; background: rgba(11,37,64,.78); color: #fff;
  font-size: .72rem; padding: 1px 7px; border-radius: 20px;
}
.thumb .tcheck {
  position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
}
.thumb.is-sel .tcheck { background: var(--accent); border-color: var(--accent); color: #fff; }
.thumb .trot {
  position: absolute; right: 6px; bottom: 6px; background: rgba(255,255,255,.9); border: 1px solid var(--line);
  border-radius: 6px; width: 26px; height: 26px; font-size: .8rem; line-height: 1;
}
.thumb .tframe { transition: transform .2s var(--ease); }

/* Lista de archivos (unir / jpg-a-pdf) */
.file-list { display: grid; gap: .5rem; margin-top: 1rem; }
.file-row {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-panel);
}
.file-row .fr-grip { cursor: grab; color: var(--ink-soft); touch-action: none; }
.file-row .fr-name { flex: 1; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fr-meta { font-size: .8rem; color: var(--ink-soft); }
.file-row .fr-del { color: var(--danger); width: 26px; height: 26px; border-radius: 6px; font-size: 1rem; }
.file-row.is-dragging { opacity: .5; }
.file-row .fr-thumb { width: 34px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }

/* Controles de herramienta */
.field { display: grid; gap: .35rem; margin-top: 1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input[type="text"], .field input[type="number"], .field select {
  padding: .6rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg-panel); color: var(--ink); font: inherit; width: 100%;
}
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg button {
  padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}
.seg button.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.result-figure { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin: .4rem 0 1rem; font-size: .9rem; color: var(--ink-soft); }
.result-figure b { display: block; color: var(--ink); font-size: 1.15rem; }
.savings { color: var(--ok); font-weight: 700; }
.warn-box {
  display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .9rem; border-radius: var(--radius-sm);
  background: #fff6e6; border: 1px solid #f0d090; color: #7a5200; font-size: .88rem; margin: .8rem 0;
}
@media (prefers-color-scheme: dark) { .warn-box { background: #332a12; border-color: #6b551f; color: #e8c775; } }
.file-meta-row { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .88rem; color: var(--ink-soft); margin: .4rem 0; }
.file-meta-row b { color: var(--ink); }

/* 9. Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 1.6s; }
}
