/* ==========================================================================
   Nomi Usability Participant App — styles
   --------------------------------------------------------------------------
   Independent web app styles for the participant session UI. Token blocks
   are copied verbatim from css/styles.css (:root + [data-theme="dark"]) so
   the participant view matches the main product exactly. No hard-coded
   colors — everything reads from tokens.
   ========================================================================== */

/* ---- Design tokens (mirror of css/styles.css) ------------------------- */
:root {
  /* Neutrals */
  --bg-app: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-muted: #F2F2F3;
  --bg-hover: rgba(66,133,244,.08);
  /* Text */
  --text-primary: #202124;
  --text-secondary: #5F6368;
  --text-tertiary: #9AA0A6;
  /* Accent */
  --accent-blue: #4285F4;
  --accent-purple: #7C4DFF;
  --accent-gradient: linear-gradient(135deg, #4285F4, #7C4DFF);
  /* Semantic */
  --success: #34A853; --warning: #FBBC05; --danger: #EA4335;
  /* Borders */
  --border-light: rgba(0,0,0,.06);
  --border-default: rgba(0,0,0,.08);
  --border-focus: rgba(66,133,244,.5);
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.16), 0 8px 20px rgba(0,0,0,.08);
  --shadow-focus: 0 0 0 4px rgba(66,133,244,.15);
  /* Accent (mirror of css/usability-test-mode.css:8) */
  --ut-accent: #10b981;
  /* Overlay veil above the product iframe */
  --overlay-backdrop: rgba(250,250,250,.86);
  /* Radii */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-full: 50%;
  /* Spacing (8px grid) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  /* Typography */
  --font-family: 'Inter', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sm: .75rem; --font-base: .875rem; --font-md: 1rem; --font-lg: 1.125rem; --font-xl: 1.375rem;
  /* Transitions */
  --transition-fast: 200ms cubic-bezier(.2, 0, 0, 1);
  --transition-normal: 250ms cubic-bezier(.2, 0, 0, 1);
}

[data-theme="dark"] {
  --bg-app: #1A1A2E;
  --bg-surface: #1E1E32;
  --bg-muted: #2A2A42;
  --bg-hover: rgba(138,180,248,.1);
  --bg-tertiary: #252540;
  --text-primary: #E8E8ED;
  --text-secondary: #A0A0B8;
  --text-tertiary: #6C6C88;
  --accent-blue: #8AB4F8;
  --accent-purple: #B388FF;
  --accent-gradient: linear-gradient(135deg, #8AB4F8, #B388FF);
  --success: #81C995; --warning: #FDD633; --danger: #F28B82;
  --border-light: rgba(255,255,255,.06);
  --border-default: rgba(255,255,255,.08);
  --overlay-backdrop: rgba(18,18,32,.88);
}

/* ---- Base -------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-family);
  background: var(--bg-app);
  color: var(--text-primary);
  font-size: var(--font-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
[hidden] { display: none !important; }

/* ---- Screens ------------------------------------------------------------ */
.screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.screen[hidden] { display: none; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.card-wide { max-width: 560px; text-align: start; }
.card-center { text-align: center; }
.card h1 { font-size: var(--font-xl); margin: var(--space-4) 0 var(--space-2); }
.card p { margin-bottom: var(--space-4); }
.muted { color: var(--text-secondary); }
.small { font-size: var(--font-sm); }
.error-text { color: var(--danger); font-size: var(--font-sm); margin-top: var(--space-3); }

.logo {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--accent-gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--font-xl); font-weight: 800; margin-bottom: var(--space-4);
}

/* ---- Form controls ------------------------------------------------------ */
.input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  background: var(--bg-surface); color: var(--text-primary);
  font-size: var(--font-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input:focus { outline: none; border-color: var(--border-focus); box-shadow: var(--shadow-focus); }
.textarea { resize: vertical; min-height: 72px; }
.code-form { display: flex; gap: var(--space-3); }
.code-input { text-align: center; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; font-size: var(--font-lg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-size: var(--font-base); font-weight: 600;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-primary { background: var(--accent-gradient); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--bg-surface); border-color: var(--border-default); color: var(--text-primary); }
.btn-secondary:hover { background: var(--bg-muted); }
.btn-danger { background: var(--bg-surface); border-color: rgba(234,67,53,.35); color: var(--danger); }
.btn-danger:hover { background: rgba(234,67,53,.08); }
.btn-sm { padding: 6px 12px; font-size: var(--font-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row-actions { display: flex; gap: var(--space-3); align-items: center; justify-content: center; margin-top: var(--space-4); flex-wrap: wrap; }

/* ---- Spinner ------------------------------------------------------------ */
.spinner {
  width: 32px; height: 32px; margin: 0 auto var(--space-4);
  border: 3px solid var(--border-default); border-top-color: var(--accent-blue);
  border-radius: var(--radius-full); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Consent ------------------------------------------------------------ */
.consent-text {
  background: var(--bg-muted); border-radius: var(--radius-md);
  padding: var(--space-4); font-size: var(--font-base); line-height: 1.7;
  color: var(--text-secondary); margin: var(--space-4) 0;
  max-height: 260px; overflow-y: auto;
}

/* ---- Session header ----------------------------------------------------- */
.session-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-surface); border-bottom: 1px solid var(--border-default);
}
.session-title { font-size: var(--font-md); font-weight: 700; }
.session-product { font-size: var(--font-sm); color: var(--text-tertiary); }
.session-stats { display: flex; align-items: center; gap: var(--space-5); }
.stat { display: flex; flex-direction: column; align-items: flex-start; min-width: 52px; }
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-tertiary); }
.stat-value { font-size: var(--font-md); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- Session layout ----------------------------------------------------- */
.session-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: var(--space-4);
  padding: var(--space-4) var(--space-6); max-width: 1100px; margin: 0 auto;
}
.panel {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--font-sm); font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--text-secondary);
  padding-bottom: var(--space-3); margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}
.badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--bg-hover); color: var(--accent-blue);
}
.badge-warn { background: rgba(251,188,5,.15); color: #B8860B; }
[data-theme="dark"] .badge-warn { color: var(--warning); }

.badge-recording { background: rgba(234,67,53,.12); color: var(--danger); display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(234,67,53,.35); }
.badge-recording::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: rec-pulse 1.2s ease-in-out infinite; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.media-preview { width: 100%; max-width: 240px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); background: #000; border: 1px solid var(--border-light); margin-top: var(--space-2); }

/* ---- Checklist ---------------------------------------------------------- */
.checklist { display: flex; flex-direction: column; gap: var(--space-2); }
.checklist-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3); border-radius: var(--radius-md);
  border: 1px solid var(--border-light); background: var(--bg-surface);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.checklist-item.current { border-color: var(--border-focus); box-shadow: var(--shadow-focus); }
.checklist-item.done { background: rgba(52,168,83,.06); }
/* A skipped/rejected task must read as rejected at a glance: red badge, red
   title, light red fill (replaces the old faint opacity treatment). */
.checklist-item.skipped { background: rgba(234,67,53,.07); }
.checklist-num {
  width: 24px; height: 24px; border-radius: var(--radius-full); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--bg-muted); color: var(--text-secondary);
}
.checklist-item.done .checklist-num { background: var(--success); color: #fff; }
.checklist-item.skipped .checklist-num { background: var(--danger); color: #fff; }
.checklist-item.skipped .checklist-title { color: var(--danger); }
.checklist-title { flex: 1; font-size: var(--font-base); font-weight: 500; }
.checklist-actions { display: flex; gap: var(--space-2); }
.mini-btn {
  padding: 4px 10px; font-size: 11px; font-weight: 700; border-radius: var(--radius-sm);
  border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-secondary);
  transition: background var(--transition-fast);
}
.mini-btn:hover { background: var(--bg-hover); color: var(--accent-blue); }
.mini-btn.done-btn:hover { background: rgba(52,168,83,.1); color: var(--success); border-color: rgba(52,168,83,.35); }
.mini-btn.skip-btn:hover { background: var(--bg-muted); color: var(--text-tertiary); }
.checklist-item.done .mini-btn.done-btn { display: none; }
.checklist-item.skipped .mini-btn.skip-btn { display: none; }

/* ---- Notes -------------------------------------------------------------- */
.notes-panel { margin-top: var(--space-4); }
.notes-panel .textarea { margin-bottom: var(--space-2); }

/* ---- Main area ---------------------------------------------------------- */
.scenario-box {
  background: var(--bg-muted); border-radius: var(--radius-md);
  padding: var(--space-4); margin-bottom: var(--space-4);
  font-size: var(--font-base); line-height: 1.7; color: var(--text-secondary);
  white-space: pre-wrap;
}

.media-panel { margin-top: var(--space-4); }
.media-panel .small { margin-top: var(--space-2); }

.activity-wrap { margin-top: var(--space-5); }
.activity-log {
  max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-1);
  font-size: var(--font-sm); color: var(--text-secondary);
}
.activity-entry { display: flex; align-items: center; gap: var(--space-2); padding: 2px 0; }
.activity-time { color: var(--text-tertiary); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.activity-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; flex-shrink: 0; color: var(--text-secondary);
}
.activity-icon.icon-done, .activity-icon.icon-consent { color: var(--success); }
.activity-icon.icon-skip, .activity-icon.icon-leave, .activity-icon.icon-error, .activity-icon.icon-dead_click { color: var(--danger); }
.activity-icon.icon-idle { color: var(--warning); }

/* ---- Session stage: product iframe + overlay layers ---------------------- */
.session-screen { display: block; padding: 0; }

.stage {
  position: fixed; inset: 0; z-index: 0;
  background: var(--bg-app);
}
.product-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  background: var(--overlay-backdrop);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  overflow-y: auto;
}
.overlay[hidden] { display: none; }
.overlay-card { text-align: center; }
.overlay-card-wide { max-width: 640px; text-align: start; }

/* ---- Preparing overlay ---------------------------------------------------- */
.prep-steps {
  display: flex; flex-direction: column; gap: var(--space-2);
  max-width: 320px; margin: var(--space-5) auto 0; text-align: start;
}
.prep-step {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--font-sm); color: var(--text-tertiary);
}
.prep-step::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--border-default); border-radius: var(--radius-full);
}
.prep-step.active::before { border-color: var(--accent-blue); border-top-color: transparent; animation: spin .8s linear infinite; }
.prep-step.done { color: var(--success); }
.prep-step.done::before { border-color: var(--success); background: var(--success); }

/* ---- Minimized corner widget --------------------------------------------- */
.ut-widget {
  position: fixed; z-index: 50;
  inset-block-end: var(--space-4); inset-inline-end: var(--space-4);
  width: min(340px, calc(100vw - var(--space-8)));
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.widget-head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); }
.widget-timer { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 50px; }
/* Progress timeline: the widget/results progress bar is a timeline of the
   session — task slices (done=green, skipped=red), event dots positioned by
   their timestamp (animated in, hover → tooltip) and a moving current-time
   cursor. Time flows left→right in both LTR and RTL (physical left). */
.widget-progress {
  flex: 1; position: relative; height: 28px;
}
.ut-tl-track {
  position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%);
  height: 6px; border-radius: 3px; background: var(--bg-hover);
  overflow: hidden;
}
/* Time-based fill: each done/skipped task colors ONLY the span from the
   previous completion to the moment its button was pressed. The rest of the
   track stays empty while the current-time cursor moves through it. */
.ut-tl-fill {
  position: absolute; top: 0; bottom: 0;
  background: var(--success);
  transition: left var(--transition-fast), width var(--transition-fast);
}
.ut-tl-fill.skip { background: var(--danger); }
.ut-tl-dot {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: var(--radius-full);
  background: var(--bg-surface); border: 2px solid var(--text-tertiary);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary); z-index: 2; cursor: default;
}
.ut-tl-dot svg { width: 8px; height: 8px; }
.ut-tl-dot.type-done, .ut-tl-dot.type-consent { border-color: var(--success); color: var(--success); }
.ut-tl-dot.type-skip, .ut-tl-dot.type-error, .ut-tl-dot.type-dead_click, .ut-tl-dot.type-leave { border-color: var(--danger); color: var(--danger); }
.ut-tl-dot.type-idle { border-color: var(--warning); color: var(--warning); }
/* New dots animate in (scale+fade); existing dots are not re-animated because
   renderTimeline rebuilds the DOM and only freshly-seen seqs get is-new. */
@keyframes ut-dot-in {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.ut-tl-dot.is-new { animation: ut-dot-in 300ms ease-out; }
.ut-tl-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: var(--bg-surface);
  font-size: 11px; line-height: 1.4; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity var(--transition-fast); z-index: 5;
  direction: inherit; text-align: start;
}
.ut-tl-dot:hover .ut-tl-tip, .ut-tl-dot:focus-visible .ut-tl-tip { opacity: 1; }
.ut-tl-now {
  position: absolute; top: 0; bottom: 0; width: 2px; border-radius: 1px;
  background: var(--accent-blue); z-index: 3; transition: left 1s linear;
}
.ut-tl-now::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: var(--radius-full);
  background: var(--accent-blue); border: 2px solid var(--bg-surface);
}
/* Results screen timeline root (replaces the old 8px track). */
.progress-track {
  position: relative; height: 30px;
  margin: 0 0 var(--space-3);
}
/* Start/end labels flanking the results timeline — the session reads as a
   slice of time: "from X to Y, here is what happened". */
.results-tl-times {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2px; font-size: 11px;
}
.ut-tl-time {
  color: var(--text-tertiary); font-variant-numeric: tabular-nums;
}
/* Tasks slide-toggle — mirrors the extension's usability toggle
   (css/usability-test-mode.css .usability-test-mode-btn). */
.widget-toggle {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: none; border-radius: var(--radius-md);
  background: transparent; color: var(--text-secondary);
  font-size: var(--font-sm); font-weight: 600; white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.widget-toggle:hover { background: var(--bg-hover); color: var(--ut-accent, #10b981); }
.widget-toggle:focus-visible { outline: 2px solid var(--ut-accent, #10b981); outline-offset: 2px; }
.widget-chevron { transition: transform var(--transition-normal); }
.widget-toggle[aria-expanded="true"] .widget-chevron { transform: rotate(180deg); }

/* Tasks panel: slides open/closed via grid-template-rows (open by default).
   The inner keeps overflow-y:auto (scrollable task list); when the row
   collapses to 0fr its content can still paint over the padding, so the
   closed state also flips visibility:hidden (delayed by the slide duration so
   the collapse animation stays visible, instant on open). */
.widget-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-normal);
}
.widget-body.open { grid-template-rows: 1fr; }
.widget-inner {
  overflow: hidden; min-height: 0;
  padding: var(--space-3);
  max-height: 45vh; overflow-y: auto;
  transition: visibility 0s var(--transition-normal);
}
.widget-body.open .widget-inner { visibility: visible; transition-delay: 0s; }
.widget-body:not(.open) .widget-inner { visibility: hidden; }
.widget-tasks { display: flex; flex-direction: column; gap: var(--space-2); }
.widget-media { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.widget-media-row { border-top: 1px solid var(--border-light); padding-top: var(--space-2); }
.widget-media-row:first-child { border-top: none; padding-top: 0; }
.widget-notes { margin-top: var(--space-4); }
.widget-notes-list { display: flex; flex-direction: column; gap: var(--space-2); }
.widget-notes-list .note-item { font-size: 12px; }
.widget-fallback {
  margin-top: var(--space-3); width: 100%; padding: var(--space-2);
  font-size: var(--font-sm); text-align: center;
  background: var(--bg-muted); color: var(--accent-blue);
  border: 1px dashed var(--border-default); border-radius: var(--radius-sm);
}
.widget-fallback:hover { background: var(--bg-hover); }

/* Always-visible actions row: note + leave (labelled buttons, evenly split). */
.widget-actions {
  display: flex; gap: var(--space-2); align-items: center;
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--border-light);
}
.widget-action { flex: 1; min-height: 32px; }

/* ---- Modals (leave reason / note) ----------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  background: rgba(0,0,0,.42);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: 100%; max-width: 400px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-xl);
}
.modal h3 { margin-bottom: var(--space-2); }
.modal .textarea { margin: var(--space-3) 0; }

/* ---- Results -------------------------------------------------------------- */
.results-summary { display: flex; gap: var(--space-8); justify-content: center; margin-bottom: var(--space-3); flex-wrap: wrap; }
.results-summary .stat { align-items: center; }
.progress-track {
  position: relative; height: 30px;
  margin: 0 0 var(--space-3);
}
.results-log { max-height: 220px; }
.notes-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.note-item {
  background: var(--bg-muted); border-radius: var(--radius-md);
  padding: var(--space-3); font-size: var(--font-sm); line-height: 1.6;
}
.note-item .note-time { color: var(--text-tertiary); font-size: 11px; font-variant-numeric: tabular-nums; margin-inline-end: var(--space-2); }

/* ---- Mobile ------------------------------------------------------------- */
@media (max-width: 760px) {
  .session-layout { grid-template-columns: 1fr; padding: var(--space-3); }
  .session-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); }
  .session-stats { width: 100%; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
  .card { padding: var(--space-5); }
  .code-form { flex-direction: column; }
  .ut-widget { inset-block-end: var(--space-2); inset-inline-end: var(--space-2); width: calc(100vw - var(--space-4)); }
  .widget-inner { max-height: 40vh; }
  .widget-actions { flex-wrap: wrap; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
