/* formato · diseño C (tarjetas blancas flotantes, acento azul) */
:root {
  --bg: #EEF0F4;
  --surface: #FFFFFF;
  --soft: #F4F5F8;
  --soft-2: #E9EBF0;
  --line: #E3E6EC;
  --ink: #14161C;
  --text-2: #4F5563;
  --muted: #6B7180;
  --accent: #2F5BFF;
  --accent-ink: #1E43D9;
  --accent-soft: #EAF0FF;
  --ok: #11683A;
  --ok-soft: #E6F6EC;
  --warn: #8A4B00;
  --warn-soft: #FFF3E0;
  --danger: #B42318;
  --dock: #14161C;
  --r-card: 28px;
  --r-inner: 18px;
  --shadow: 0 1px 2px rgba(20, 22, 28, .04), 0 12px 32px -18px rgba(20, 22, 28, .18);
  --shadow-lift: 0 2px 4px rgba(20, 22, 28, .05), 0 24px 48px -24px rgba(20, 22, 28, .28);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-variation-settings: 'opsz' 32; letter-spacing: -.045em; line-height: 1.04; margin: 0; }
h1 { font-weight: 800; font-size: clamp(38px, 6.4vw, 72px); letter-spacing: -.055em; }
h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 600px; margin: 18px auto 0; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ── Barra de navegación en píldora ─────────────────────── */
.nav {
  position: sticky; top: 14px; z-index: 30;
  width: min(1240px, 100% - 32px); margin: 14px auto 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.045em; text-decoration: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.logo-mark i { width: 9px; height: 9px; border-radius: 2.5px; background: var(--accent); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 9px 15px; border-radius: 999px;
}
.nav-links a:hover { background: var(--soft); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-priv { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ok); padding: 0 10px 0 6px; }
.nav-priv i { width: 7px; height: 7px; border-radius: 50%; background: #1FB25A; box-shadow: 0 0 0 3px rgba(31, 178, 90, .18); }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(47, 91, 255, .75); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn-dark:hover { background: #2A2D36; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; }

/* ── Tarjetas ────────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { text-align: center; padding: clamp(48px, 9vw, 96px) 0 clamp(28px, 4vw, 44px); }
.hero h1 { max-width: 900px; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--accent); }

/* ── Zona para soltar archivos ───────────────────────────── */
.drop {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: 300px; padding: 40px 24px;
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow);
  outline: 2px dashed transparent; outline-offset: -12px;
  transition: outline-color .15s ease, background .15s ease;
  cursor: pointer;
}
.drop::before {
  content: ""; position: absolute; inset: 12px; border-radius: 20px;
  border: 1.5px dashed #CDD2DC; pointer-events: none; transition: border-color .15s;
}
.drop:hover::before, .drop.is-over::before { border-color: var(--accent); }
.drop.is-over { background: var(--accent-soft); }
.drop-icon {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 28px -12px rgba(47, 91, 255, .8);
}
.drop-title { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.drop-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.drop .btn { margin-top: 20px; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.privacy-line { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--ok); background: var(--ok-soft); padding: 7px 12px; border-radius: 999px; }

/* ── Tarjetas de herramientas ────────────────────────────── */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.tool-card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; min-height: 210px;
  text-decoration: none; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tool-card .ti { width: 46px; height: 46px; border-radius: 15px; background: var(--soft); display: grid; place-items: center; margin-bottom: auto; }
.tool-card h3 { margin-top: 26px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }
.tool-card .arrow { position: absolute; top: 24px; right: 24px; color: #A8AEBB; }
.tool-card.dark { background: var(--ink); color: #fff; }
.tool-card.dark .ti { background: rgba(255, 255, 255, .1); }
.tool-card.dark p { color: #A8AEBB; }
.ratio-row { display: flex; gap: 6px; align-items: flex-end; margin-top: 14px; }
.ratio-row i { display: block; border-radius: 4px; background: var(--accent); opacity: .9; }

/* ── Secciones de contenido ──────────────────────────────── */
.section { padding: clamp(56px, 8vw, 96px) 0 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head p { color: var(--text-2); margin: 12px auto 0; max-width: 560px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 24px; }
.step b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; margin-bottom: 18px; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.privacy-block {
  background: var(--ink); color: #fff; border-radius: var(--r-card);
  padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
}
.privacy-block h2 { color: #fff; }
.privacy-block p { color: #A8AEBB; margin: 14px 0 0; }
.vs { display: grid; gap: 8px; }
.vs div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); font-size: 14.5px; }
.vs .no { color: #8C92A0; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.vs .yes { background: rgba(31, 178, 90, .16); color: #9BE7B8; font-weight: 600; }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

.sizes { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sizes th, .sizes td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); }
.sizes th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-top: 0; }
.sizes td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Pie ─────────────────────────────────────────────────── */
.footer { margin-top: clamp(64px, 9vw, 110px); padding: 34px 0 40px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.footer nav a { text-decoration: none; color: var(--text-2); }
.footer nav a:hover { color: var(--ink); }
.footer small { color: var(--muted); font-size: 13px; }

/* ── Espacio de trabajo de las herramientas ──────────────── */
.tool-head { text-align: center; padding: clamp(36px, 6vw, 64px) 0 26px; }
.tool-head h1 { font-size: clamp(34px, 5vw, 56px); }
.tool-head .lead { margin-top: 12px; }

.workspace { scroll-margin-top: 84px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.ws-main { display: flex; flex-direction: column; overflow: hidden; min-height: 620px; }
.ws-bar { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.file-chip { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 600; }
.file-chip img, .file-chip .fi { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; background: var(--soft); flex: none; display: grid; place-items: center; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.file-chip small { font-weight: 400; color: var(--muted); margin-left: 2px; white-space: nowrap; }
.ws-bar .spacer { flex: 1; }

.stage-wrap {
  flex: 1; position: relative; display: flex; flex-direction: column; min-height: 460px;
  background-color: var(--soft);
  background-image: radial-gradient(#D5D9E2 1px, transparent 1px);
  background-size: 18px 18px;
}
.stage { flex: 1; min-height: 420px; position: relative; }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; padding: 20px; }

.cropper { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.cr-box { position: relative; border-radius: 6px; box-shadow: 0 18px 40px -22px rgba(20, 22, 28, .5); }
.cr-img { width: 100%; height: 100%; border-radius: 6px; }
.cr-dim { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; pointer-events: none; }
.cr-hole { position: absolute; box-shadow: 0 0 0 9999px rgba(20, 22, 28, .5); }
.cr-frame { position: absolute; box-shadow: 0 0 0 2px var(--accent) inset; cursor: move; }
.cr-frame .cr-safe-top, .cr-frame .cr-safe-bottom { margin: 0 2px; }
.is-dragging .cr-frame { cursor: grabbing; }
.cr-g { position: absolute; background: rgba(255, 255, 255, .45); pointer-events: none; opacity: 0; transition: opacity .15s; }
.is-dragging .cr-g, .cropper:hover .cr-g { opacity: 1; }
.cr-g.v1, .cr-g.v2 { top: 0; bottom: 0; width: 1px; } .cr-g.v1 { left: 33.33%; } .cr-g.v2 { left: 66.66%; }
.cr-g.h1, .cr-g.h2 { left: 0; right: 0; height: 1px; } .cr-g.h1 { top: 33.33%; } .cr-g.h2 { top: 66.66%; }
.cr-h { position: absolute; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 2px 6px rgba(0, 0, 0, .25); touch-action: none; }
.cr-h::before { content: ""; position: absolute; inset: -12px; }
.cr-h[data-c=nw] { left: 0; top: 0; cursor: nwse-resize; } .cr-h[data-c=se] { left: 100%; top: 100%; cursor: nwse-resize; }
.cr-h[data-c=ne] { left: 100%; top: 0; cursor: nesw-resize; } .cr-h[data-c=sw] { left: 0; top: 100%; cursor: nesw-resize; }
.cr-tag { position: absolute; left: 10px; top: 10px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.cr-tag:empty { display: none; }
.cr-safe { position: absolute; left: 0; right: 0; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255, 79, 31, .38) 0 6px, transparent 6px 12px); }
.cr-safe-top { top: 0; } .cr-safe-bottom { bottom: 0; }

/* Dock oscuro flotante */
.dock-row { display: flex; justify-content: center; padding: 0 14px 16px; }
.dock {
  display: flex; gap: 3px; padding: 5px; border-radius: 999px; background: var(--dock);
  box-shadow: 0 16px 30px -14px rgba(20, 22, 28, .6); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock button {
  flex: none; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #A8AEBB;
  font-size: 13.5px; font-weight: 500; padding: 9px 14px; border-radius: 999px; white-space: nowrap;
}
.dock button:hover { color: #fff; }
.dock button[aria-pressed=true] { background: #fff; color: var(--ink); }
.dock button i { display: block; border: 1.5px solid currentColor; border-radius: 3px; flex: none; }
.zoom-ctrl { position: absolute; right: 14px; top: 14px; display: flex; gap: 6px; z-index: 2; }
.zoom-ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); font-size: 16px; display: grid; place-items: center; }

/* Panel derecho */
.ws-panel { display: grid; gap: 14px; position: sticky; top: 84px; }
.panel { padding: 18px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.panel-title b { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row:first-of-type { border-top: 0; }
.row .ix { width: 28px; display: flex; justify-content: center; flex: none; }
.row .ix i { display: block; border: 1.5px solid var(--ink); border-radius: 3px; }
.row small { display: block; color: var(--muted); font-size: 12px; }
.row .grow { flex: 1; min-width: 0; }
.row label { flex: 1; }

.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #D7DBE3; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.seg { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--soft); }
.seg button { flex: 1; border: 0; background: transparent; padding: 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 28, .12); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.field input, .field select {
  height: 42px; border-radius: 12px; border: 0; background: var(--soft); padding: 0 12px; font-size: 14.5px; color: var(--ink); width: 100%;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; background: #fff; }
.size-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.size-inputs .x { padding-bottom: 11px; color: var(--muted); }
.range { width: 100%; accent-color: var(--ink); }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv span { color: var(--text-2); }
.kv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 12px; }

.note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; border-radius: 12px; padding: 10px 12px; line-height: 1.4; }
.note-ok { color: var(--ok); background: var(--ok-soft); font-weight: 500; }
.note-warn { color: var(--warn); background: var(--warn-soft); }
.note svg { flex: none; margin-top: 1px; }

/* Galería de imágenes del PDF */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 460px; overflow-y: auto; padding: 2px; margin: 0 -2px; }
.thumb { position: relative; border: 0; padding: 0; background: var(--soft); border-radius: 14px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; text-align: left; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { box-shadow: 0 0 0 2.5px var(--accent); }
.thumb .meta { position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: 10.5px; color: #fff; background: rgba(20, 22, 28, .7); border-radius: 8px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; }
.thumb .check input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.thumb .check span { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1.5px #B9BFCB; display: grid; place-items: center; }
.thumb .check input:checked + span { background: var(--accent); box-shadow: none; }
.thumb .check input:checked + span::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; padding: 18px; align-content: start; overflow-y: auto; max-height: 560px; }
.page-th { background: var(--surface); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); font-size: 12px; color: var(--muted); text-align: center; }
.page-th img { width: 100%; border-radius: 6px; margin-bottom: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); }

.progress { height: 6px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .2s; }
.loading { display: grid; gap: 14px; place-items: center; width: min(320px, 100%); text-align: center; }
.loading .progress { width: 100%; }

/* Avisos (toasts) */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(440px, 100% - 32px); }
.toast { background: var(--ink); color: #fff; border-radius: 18px; padding: 14px 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lift); animation: up .25s ease; }
.toast.error { background: var(--danger); }
.toast a { color: #fff; font-weight: 600; }
.toast .x { margin-left: auto; background: none; border: 0; color: #A8AEBB; font-size: 18px; padding: 0 2px; }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }

/* Diálogo */
dialog { border: 0; border-radius: 24px; padding: 24px; width: min(400px, 100% - 32px); box-shadow: var(--shadow-lift); }
dialog::backdrop { background: rgba(20, 22, 28, .4); backdrop-filter: blur(3px); }
dialog h3 { margin-bottom: 8px; }
dialog p { margin: 0 0 16px; color: var(--text-2); font-size: 14px; }
dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* Páginas de texto (legales) */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 48px); }
.prose h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 18px; }
.prose h2 { font-size: 22px; letter-spacing: -.03em; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose .todo { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 0 5px; }

/* ── Adaptación a móvil ──────────────────────────────────── */
@media (max-width: 960px) {
  .workspace { grid-template-columns: 1fr; }
  .ws-panel { position: static; }
  .tools, .steps { grid-template-columns: 1fr 1fr; }
  .privacy-block { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav { padding-left: 12px; }
  .nav-priv { display: none; }
  .nav-links a { padding: 8px 11px; font-size: 13.5px; }
  .tools, .steps { grid-template-columns: 1fr; }
  .tool-card { min-height: 0; }
  .ws-main { min-height: 0; border-radius: 22px; }
  .stage-wrap { min-height: 380px; }
  .stage { min-height: 340px; }
  .ws-bar .btn-label { display: none; }
  .file-chip span { max-width: 140px; }
  .drop { min-height: 260px; }
  .gallery { grid-template-columns: repeat(3, 1fr); max-height: 340px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
