/* ============================================================
   SIMULADOR OCE — LAUNCHER (componente reutilizable)
   Aesthetic: "Lightbox / clinical instrument"
   Dark precision chassis framing the slide as a luminous
   specimen. Blue Menopur/OCE accent · IBM Plex · crop-mark viewer.
   Estetica heredada del simulador Veeva, re-acentuada a azul.
============================================================ */

:root {
  --bg:          #0c0d11;
  --bg-grid:     rgba(255, 255, 255, 0.022);
  --panel:       #14161d;
  --panel-2:     #1a1d26;
  --elev:        #1f232e;
  --line:        rgba(255, 255, 255, 0.075);
  --line-soft:   rgba(255, 255, 255, 0.045);

  --ink:         #e9ebf1;
  --ink-dim:     #9aa0ad;
  --ink-faint:   #5e6470;

  --accent:       #0e9bd6;
  --accent-bright:#38b4ec;
  --accent-deep:  #0a76a3;
  --accent-glow:  rgba(14, 155, 214, 0.55);
  --accent-veil:  rgba(14, 155, 214, 0.10);

  --font-sans: "IBM Plex Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET / BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
}

/* Blueprint grid — fine engineered backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
  mask-image: radial-gradient(ellipse 120% 120% at 50% 45%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 120% 120% at 50% 45%, #000 55%, transparent 100%);
}

/* Film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
}

/* ============================================================
   VIEWER WRAPPER — luminous spotlight stage
============================================================ */
#viewer-wrapper {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 64px 40px 40px;
  touch-action: none;
}

/* Accent spotlight pooling behind the slide */
#viewer-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, var(--accent-veil), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(80, 120, 200, 0.05), transparent 75%);
  animation: stageBreath 9s var(--ease) infinite alternate;
}

@keyframes stageBreath {
  from { opacity: 0.75; }
  to   { opacity: 1; }
}

/* ============================================================
   SLIDE SCALER + CONTAINER
   OCE: el slide se autoescala (deck responsive). launcher.js fija
   el tamaño del #slide-container al mayor escenario 4:3 que quepa.
============================================================ */
#slide-scaler {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#slide-container {
  width: 1024px;   /* placeholder — launcher.js lo recalcula al espacio libre */
  height: 768px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 90px -20px var(--accent-glow);
}

#viewer {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
  display: block;
}

/* Crop / registration marks — the signature instrument detail.
   Four accent L-brackets painted at the viewer corners. */
#slide-container::after {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  --c: var(--accent);
  --len: 26px;
  --th: 2px;
  background:
    linear-gradient(var(--c), var(--c)) 0    0    / var(--len) var(--th) no-repeat,
    linear-gradient(var(--c), var(--c)) 0    0    / var(--th)  var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0    / var(--len) var(--th) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0    / var(--th)  var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) 0    100% / var(--len) var(--th) no-repeat,
    linear-gradient(var(--c), var(--c)) 0    100% / var(--th)  var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--len) var(--th) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--th)  var(--len) no-repeat;
  filter: drop-shadow(0 0 4px var(--accent-glow));
  opacity: 0.92;
}

/* ============================================================
   FLOATING TOGGLES — technical pills with status LED
============================================================ */
#slides-toggle,
#console-toggle,
#guide-toggle,
#fullscreen-toggle,
#zip-download {
  position: fixed;
  top: 16px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 22, 29, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
  animation: dropIn 0.55s var(--ease) both;
}
#slides-toggle     { left: 16px;  animation-delay: 0.1s; }
#console-toggle    { right: 16px; animation-delay: 0.18s; }
#guide-toggle      { top: 62px;  right: 16px; animation-delay: 0.26s; }
#fullscreen-toggle { top: 108px; right: 16px; animation-delay: 0.34s; }
#zip-download      { top: 168px; right: 16px; animation-delay: 0.42s; }

#slides-toggle:hover,
#console-toggle:hover,
#guide-toggle:hover,
#fullscreen-toggle:hover,
#zip-download:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 155, 214, 0.5);
  background: rgba(26, 29, 38, 0.92);
}

#console-toggle { color: var(--accent-bright); }

.toggle-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: ledPulse 2.4s ease-in-out infinite;
}
#slides-toggle .toggle-led {
  background: #5b9dff;
  box-shadow: 0 0 8px rgba(91, 157, 255, 0.6);
}
#guide-toggle .toggle-led {
  background: #5fd08a;
  box-shadow: 0 0 8px rgba(95, 208, 138, 0.6);
}
#fullscreen-toggle .toggle-led {
  background: #c08bff;
  box-shadow: 0 0 8px rgba(192, 139, 255, 0.6);
}
#zip-download { color: var(--accent-bright); }
#zip-download .toggle-led {
  background: #5fd08a;
  box-shadow: 0 0 8px rgba(95, 208, 138, 0.6);
}
#fullscreen-toggle .toggle-label {
  line-height: 1.12;
  text-align: center;
}

@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SLIDES PANEL — left instrument rail
============================================================ */
#slides-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 256px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border-right: 1px solid var(--line);
  box-shadow: 30px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(-100%);
  transition: transform 0.42s var(--ease);
  z-index: 500;
}
#slides-panel.open { transform: translateX(0); }

#slides-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 14px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-heading { display: flex; flex-direction: column; gap: 3px; }

.kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-title .reg { font-size: 9px; vertical-align: super; color: var(--ink-dim); }

#slides-close {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  font-size: 11px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
#slides-close:hover {
  color: var(--ink);
  border-color: rgba(14, 155, 214, 0.5);
  background: var(--accent-veil);
}

/* Backdrop — closes panel on outside click */
#slides-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(6, 7, 10, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
#slides-backdrop.active { display: block; }

/* ============================================================
   SLIDE LIST — filmstrip with index registers
============================================================ */
#slide-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px 14px;
  counter-reset: reg;
}

#slide-list::-webkit-scrollbar { width: 5px; }
#slide-list::-webkit-scrollbar-track { background: transparent; }
#slide-list::-webkit-scrollbar-thumb {
  background: rgba(14, 155, 214, 0.35);
  border-radius: 3px;
}
#slide-list::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.slide-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px 9px;
  margin: 4px 0;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink-faint);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease);
}

/* Index register badge (CSS counter — no JS change) */
.slide-item::before {
  counter-increment: reg;
  content: counter(reg, decimal-leading-zero);
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 5px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.slide-item img {
  width: 100%;
  max-width: 210px;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.18s, border-color 0.18s, filter 0.18s;
  filter: saturate(0.92) brightness(0.94);
}

.slide-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--ink-dim);
  transform: translateX(2px);
}
.slide-item:hover img {
  filter: saturate(1) brightness(1);
  border-color: rgba(255, 255, 255, 0.18);
}

.slide-item.active {
  background: var(--accent-veil);
  border-color: rgba(14, 155, 214, 0.4);
  color: var(--accent-bright);
  font-weight: 600;
}
.slide-item.active::before {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent-bright);
}
.slide-item.active img {
  filter: saturate(1) brightness(1);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 6px 22px rgba(14, 155, 214, 0.3);
}

/* Staggered reveal when the deck opens */
#slides-panel.open .slide-item {
  animation: itemIn 0.45s var(--ease) both;
}
@keyframes itemIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}
#slides-panel.open .slide-item:nth-child(1)  { animation-delay: 0.04s; }
#slides-panel.open .slide-item:nth-child(2)  { animation-delay: 0.08s; }
#slides-panel.open .slide-item:nth-child(3)  { animation-delay: 0.12s; }
#slides-panel.open .slide-item:nth-child(4)  { animation-delay: 0.16s; }
#slides-panel.open .slide-item:nth-child(5)  { animation-delay: 0.20s; }
#slides-panel.open .slide-item:nth-child(6)  { animation-delay: 0.24s; }
#slides-panel.open .slide-item:nth-child(7)  { animation-delay: 0.28s; }
#slides-panel.open .slide-item:nth-child(8)  { animation-delay: 0.32s; }
#slides-panel.open .slide-item:nth-child(9)  { animation-delay: 0.36s; }
#slides-panel.open .slide-item:nth-child(n+10) { animation-delay: 0.40s; }

/* ============================================================
   PANEL FOOTER
============================================================ */
#sim-footer {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ============================================================
   CONSOLE PANEL — right diagnostic rail
============================================================ */
#console-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  color: var(--ink-dim);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
  z-index: 500;
}
#console-panel.open { transform: translateX(0); }

#console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

#console-actions { display: flex; gap: 6px; align-items: center; }

#console-clear,
#console-close {
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
#console-clear { padding: 4px 9px; }
#console-close {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#console-clear:hover,
#console-close:hover {
  color: var(--ink);
  border-color: rgba(14, 155, 214, 0.5);
  background: var(--accent-veil);
}

#console-log {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55em;
}
#console-log::-webkit-scrollbar { width: 5px; }
#console-log::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }

.console-line {
  padding: 3px 14px;
  border-bottom: 1px solid var(--line-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink-dim);
}
.console-line .ts    { color: var(--ink-faint); margin-right: 8px; }
.console-line .slide { color: #5b9dff; margin-right: 8px; }
.console-line.warn   { color: #e9c46a; }
.console-line.error  { color: #f4795b; }
.console-line.info   { color: #6fb8ff; }

#console-empty {
  padding: 14px;
  color: var(--ink-faint);
  font-style: italic;
  font-size: 11px;
}

/* ============================================================
   VIDEO OVERLAY
============================================================ */
#video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 10, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
#video-overlay.active { display: flex; animation: fade 0.25s var(--ease); }

#video-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(14, 155, 214, 0.25),
    0 30px 90px rgba(0, 0, 0, 0.7);
}

#video-player {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  background: #000;
}

#video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 17, 0.82);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s, border-color 0.15s;
}
#video-close:hover { background: var(--accent); border-color: var(--accent-bright); color: #ffffff; }

/* ============================================================
   GUIDE OVERLAY — visor de la guía de cliente (iframe)
============================================================ */
#guide-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 10, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2500;
  justify-content: center;
  align-items: center;
}
#guide-overlay.active { display: flex; animation: fade 0.25s var(--ease); }

#guide-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 92vw;
  max-width: 900px;
  height: 92vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(14, 155, 214, 0.25),
    0 30px 90px rgba(0, 0, 0, 0.7);
  animation: liftIn 0.42s var(--ease);
}

#guide-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-bottom: 1px solid var(--line);
}
#guide-bar .guide-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
#guide-actions { display: flex; align-items: center; gap: 10px; }
#guide-download {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: rgba(14, 155, 214, 0.14);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
#guide-download:hover { background: var(--accent); border-color: var(--accent-bright); color: #ffffff; }
#guide-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 17, 0.82);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
#guide-close:hover { background: var(--accent); border-color: var(--accent-bright); color: #ffffff; }
#guide-frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }

/* ============================================================
   HELP OVERLAY
============================================================ */
#help-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 10, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}
#help-overlay.active { display: flex; animation: fade 0.3s var(--ease); }

#help-box {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--ink);
  max-width: 460px;
  width: 88%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 30px 26px;
  box-shadow:
    0 0 0 1px rgba(14, 155, 214, 0.12),
    0 30px 90px rgba(0, 0, 0, 0.6);
  animation: liftIn 0.42s var(--ease);
  overflow: hidden;
}
#help-box::before {
  content: "GUÍA · NAVEGACIÓN";
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--accent);
  opacity: 0.8;
}

#help-box h2 {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

#help-box ul {
  margin: 0 0 26px;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.7em;
  color: var(--ink-dim);
  list-style: none;
}
#help-box li { margin-bottom: 11px; position: relative; padding-left: 16px; }
#help-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}
#help-box li strong { color: var(--ink); font-weight: 600; }

#help-box kbd {
  display: inline-block;
  background: var(--elev);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-bright);
}

#help-close {
  display: block;
  margin-left: auto;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 11px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s var(--ease);
}
#help-close:hover { background: var(--accent-bright); transform: translateY(-1px); }

/* ============================================================
   SHARED KEYFRAMES
============================================================ */
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes liftIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
}
