/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #faf9fc;
  --bg-alt: #f1eef9;
  --surface: #ffffff;
  --surface-2: #f5f3fb;
  --border: #e3ddf1;
  --text: #1c1730;
  --text-dim: #5b5470;
  --text-faint: #8b84a0;
  --accent: #6d4bf0;
  --accent-2: #ff5c8a;
  --accent-ink: #ffffff;
  --green: #1f9d55;
  --green-bg: #e7f8ee;
  --yellow: #a5720a;
  --yellow-bg: #fdf3d8;
  --red: #d1293d;
  --red-bg: #fbe6e9;
  --blue: #1f6fd1;
  --blue-bg: #e7f1fd;
  --shadow-sm: 0 1px 2px rgba(28, 23, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 23, 48, 0.08);
  --shadow-lg: 0 20px 48px rgba(28, 23, 48, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", var(--sans);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131022;
    --bg-alt: #17132a;
    --surface: #1c1732;
    --surface-2: #221c3c;
    --border: #322a4d;
    --text: #f1eefb;
    --text-dim: #b9b2d3;
    --text-faint: #837bab;
    --accent: #9b83ff;
    --accent-2: #ff85a8;
    --accent-ink: #16112a;
    --green: #4cd383;
    --green-bg: #123322;
    --yellow: #e3b34c;
    --yellow-bg: #3a2f10;
    --red: #ff6b7d;
    --red-bg: #3a1620;
    --blue: #6fa8ff;
    --blue-bg: #122238;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-family: var(--display); font-weight: 600; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
input, select, textarea { font: inherit; color: inherit; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 1.25rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border);
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.visually-hide-below-720 { display: none; }
@media (min-width: 720px) { .visually-hide-below-720 { display: inline; } }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .9rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-dim); max-width: 62ch; }
.prose { max-width: 68ch; color: var(--text-dim); }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--text); }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-link { color: var(--accent); font-weight: 600; padding: 0; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.6rem; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.main-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.main-nav a { font-size: .92rem; font-weight: 600; color: var(--text-dim); transition: color .15s var(--ease-out); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }

/* Language switcher (ES / EN) */
.header-tools { display: flex; align-items: center; gap: .8rem; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: var(--surface-2); }
.lang-switch a { font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--text-dim); padding: .25rem .5rem; border-radius: 6px; line-height: 1; transition: color .15s var(--ease-out), background .15s var(--ease-out); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--accent); color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); margin-top: 4rem; }
.footer-grid {
  display: grid; gap: 2rem; padding-block: 2.6rem 1.6rem;
  grid-template-columns: 1fr; text-align: left;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--text-dim); font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-block: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between;
  font-size: .82rem; color: var(--text-faint);
}

/* Hero */
.hero { padding-block: 2.6rem 1.8rem; }
.hero .eyebrow { display: block; }
.hero-subtitle { margin-top: .9rem; }

/* Tool card shell */
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.1rem, 3vw, 1.9rem);
  margin-top: 1.6rem;
}
.tool-card[data-state="error"] .tool-error { display: flex; }
.tool-error {
  display: none; align-items: flex-start; gap: .6rem; margin-top: 1rem;
  background: var(--red-bg); color: var(--red); border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-size: .9rem; font-weight: 600;
}

/* Dropzone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  text-align: center; border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: clamp(1.6rem, 5vw, 2.6rem) 1.2rem; cursor: pointer;
  background: var(--surface-2); transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface-2)); }
.dropzone svg { color: var(--accent); }
.dropzone-title { font-weight: 700; }
.dropzone-hint { font-size: .85rem; color: var(--text-faint); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Privacy badge + limits */
.tool-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.tool-meta .badge svg { width: 14px; height: 14px; }
.limit-note { font-size: .82rem; color: var(--text-faint); margin-top: .6rem; }

/* Progress */
.progress-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 1rem; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s var(--ease-out); }
.progress-label { font-size: .85rem; color: var(--text-dim); margin-top: .5rem; }

/* Form controls (calculators/generators) */
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-dim); }
.field select, .field input[type="text"], .field input[type="number"], .field textarea {
  width: 100%; padding: .7rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.field textarea { min-height: 160px; resize: vertical; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .88rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 540px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--text-dim);
  transition: all .15s var(--ease-out);
}
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; flex-wrap: wrap; }
.tab-btn {
  padding: .7rem 1rem; font-weight: 600; font-size: .9rem; color: var(--text-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }

/* Result zone */
.result-zone { margin-top: 1.3rem; display: none; }
.result-zone.is-visible { display: block; }
.result-figure { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.result-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; align-items: center; }
.reset-link { font-size: .88rem; color: var(--text-faint); }
.reset-link:hover { color: var(--accent); }
.copy-feedback { font-size: .85rem; color: var(--green); font-weight: 600; opacity: 0; transition: opacity .2s; }
.copy-feedback.is-shown { opacity: 1; }

/* Semaphore badges */
.sem { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.sem-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sem-green { background: var(--green-bg); color: var(--green); }
.sem-green .sem-dot { background: var(--green); }
.sem-yellow { background: var(--yellow-bg); color: var(--yellow); }
.sem-yellow .sem-dot { background: var(--yellow); }
.sem-red { background: var(--red-bg); color: var(--red); }
.sem-red .sem-dot { background: var(--red); }
.sem-blue { background: var(--blue-bg); color: var(--blue); }
.sem-blue .sem-dot { background: var(--blue); }

/* Steps */
.steps { display: grid; gap: 1.1rem; grid-template-columns: 1fr; counter-reset: step; margin-top: 1.4rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.3rem; position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: .8rem;
}

/* Cards (más herramientas / home) */
.card-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-link-card {
  display: flex; flex-direction: column; gap: .7rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.4rem;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out);
}
.tool-link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.tool-link-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--accent); flex: none;
}
.tool-link-card h3 { margin-bottom: .1rem; }
.tool-link-card p { color: var(--text-dim); font-size: .92rem; }
.tool-link-card .btn-link { margin-top: auto; }

/* FAQ */
.faq { display: grid; gap: .7rem; margin-top: 1.2rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .95rem 1.1rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .7rem; color: var(--text-dim); font-size: .93rem; }

/* Sections */
.section { padding-block: 2.4rem; }
.section-tight { padding-block: 1.6rem; }

/* Ad slots — placeholders only */
.ad-slot {
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-2); margin-block: 1.6rem;
}
.ad-slot--leaderboard { min-height: 100px; }
.ad-slot--incontent { min-height: 120px; }
.ad-slot--footer { min-height: 90px; }

/* Corner ad toast */
.corner-toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50; max-width: 260px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: .9rem 1rem; display: none; gap: .6rem;
  opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.corner-toast.is-visible { display: flex; }
.corner-toast.is-shown { opacity: 1; transform: translateY(0); }
.corner-toast-close { position: absolute; top: .4rem; right: .5rem; color: var(--text-faint); font-size: 1rem; line-height: 1; padding: .2rem; }
.corner-toast-close:hover { color: var(--text); }
.corner-toast-body { font-size: .78rem; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 539px) { .corner-toast { left: 1rem; right: 1rem; max-width: none; } }

/* ---- Herramienta 1: safe zones ---- */
.phone-frame {
  position: relative; width: min(100%, 380px); aspect-ratio: 9 / 16;
  margin-inline: auto; background: #0b0b12; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.phone-frame img, .phone-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-frame .sz-overlay { position: absolute; inset: 0; pointer-events: none; }
.sz-legend { list-style: none; padding: 0; display: grid; gap: .45rem; margin-top: 1.1rem; font-size: .85rem; color: var(--text-dim); }
.sz-legend li { display: flex; align-items: center; gap: .55rem; }
.sz-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.platform-row { margin-top: 1.1rem; }
.frame-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; align-items: center; }

/* ---- Herramienta 2: cropper ---- */
.video-picker { margin-top: 1rem; }
.video-picker video { width: 100%; border-radius: var(--radius-md); background: #000; max-height: 50vh; }
.video-picker-controls { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.video-picker-controls input[type="range"] { flex: 1; }
.crop-layout { display: grid; gap: 1.6rem; grid-template-columns: 1fr; margin-top: 1.1rem; }
@media (min-width: 960px) { .crop-layout { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.crop-stage { position: relative; touch-action: none; user-select: none; line-height: 0; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.crop-stage img { width: 100%; display: block; }
.crop-box {
  position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 2000px rgba(6, 4, 16, 0.55);
  pointer-events: none;
}
.focal-dot {
  position: absolute; width: 22px; height: 22px; border-radius: 50%; touch-action: none;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4);
  transform: translate(-50%, -50%); cursor: grab; z-index: 3;
}
.focal-dot:active { cursor: grabbing; }
.crop-side { display: grid; gap: 1.1rem; }
.preview-frame { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: .8rem; display: flex; align-items: center; justify-content: center; min-height: 140px; }
.preview-frame canvas { max-width: 100%; max-height: 260px; border-radius: 8px; }
.coords-box textarea {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .82rem; min-height: 130px;
}

/* ---- Herramienta 3: subtítulos ---- */
.stat-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.2rem; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.stat-value { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .78rem; color: var(--text-faint); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); margin-top: 1.2rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 640px; }
.data-table th, .data-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td.cell-text, .data-table th:nth-child(2) { white-space: normal; min-width: 220px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }
.cps-legend { display: grid; gap: .5rem; margin-top: 1rem; }
.cps-legend-row { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text-dim); }

/* Legal pages */
.legal .prose h2 { margin-top: 1.8rem; color: var(--text); font-size: 1.2rem; }
.legal .prose ul { color: var(--text-dim); }

/* =============================================================
   8. Responsive helpers
   ============================================================= */
@media (max-width: 719px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex; position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem 1.4rem; gap: .2rem;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open a { padding: .6rem 0; }
  .nav-toggle { display: inline-flex; }
}
.nav-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--surface-2); }

/* =============================================================
   9. Reduced motion — only the truly intrusive stuff
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .corner-toast { transition: none; }
}

/* =============================================================
   10. Cookie consent banner (Google Consent Mode v2)
   ============================================================= */
.vk-consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 9999;
  max-width: 640px; margin-inline: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.25rem;
  display: none;
}
.vk-consent.is-open { display: block; }
.vk-consent p { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.5; color: var(--text-dim); }
.vk-consent p a { color: var(--accent); font-weight: 600; }
.vk-consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.vk-consent-btn {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .55rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.vk-consent-btn:hover { background: var(--border); }
.vk-consent-btn.is-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.vk-consent-btn.is-primary:hover { filter: brightness(1.05); }
.vk-consent-link {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--text-dim); text-decoration: underline;
}
.vk-consent-link:hover { color: var(--accent); }
@media (max-width: 480px) {
  .vk-consent-actions { flex-direction: column-reverse; }
  .vk-consent-btn { width: 100%; }
}

/* =============================================================
   11. Mobile media: camera capture + loading indicator
   ============================================================= */
.dz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .7rem; }
.dz-camera { font-size: .9rem; padding: .6rem 1.1rem; }
.dz-camera svg { width: 18px; height: 18px; }
.vk-loading {
  display: none; align-items: center; justify-content: center; gap: .65rem;
  padding: 1.3rem; color: var(--text-dim); font-size: .92rem; font-weight: 600; text-align: center;
}
.vk-loading.is-on { display: flex; }
.vk-spinner {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: vk-spin .8s linear infinite;
}
@keyframes vk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vk-spinner { animation-duration: 2s; } }
/* Hide the camera action once a file is loaded — only the idle/error (dropzone) states show it */
.tool-card:not([data-state="idle"]):not([data-state="error"]) .dz-actions { display: none; }
