/* ============================================================================
   E-book IA — Design Direction: BOOKPRESS LIBRARY  (Hard Rule #16, unique)
   ----------------------------------------------------------------------------
   Direction: a refined book-publishing / library aesthetic — warm ivory paper,
     deep espresso ink, a single antique-gold foil accent.
   Palette / type / layout: ivory paper (#f4efe4) + espresso ink (#2a2118) +
     antique-gold foil (#a8842c); treated book-serif display (Iowan/Palatino/
     Georgia) with fine tracking + humanist sans body + mono colophon labels;
     generous book margins, hairline gold rules, soft paper shadows (no slop).
   Signature element: a 3D book object (cover + visible spine) as the brand-mark
     on the gate and the studio empty state — the generated e-book literally
     "becomes a book" — plus a small-caps colophon plate of metadata.
   ============================================================================ */

:root {
  /* paper + ink */
  --paper:      #f4efe4;   /* base ivory page */
  --paper-2:    #fbf8f1;   /* raised paper (cards/inputs) */
  --paper-3:    #ece3d2;   /* sunk parchment (wells, chips) */
  --ink:        #2a2118;   /* espresso text */
  --ink-soft:   #6b5d49;   /* muted brown text */
  --ink-faint:  #776650;   /* faint labels (darkened for AA contrast on paper) */
  --rule:       #d8ccb4;   /* hairline rule */
  --rule-soft:  #e6dcc7;

  /* foil accent */
  --gold:       #a8842c;   /* antique gold */
  --gold-deep:  #785a17;   /* darkened from #8a6a1f — old value read 4.06:1 on gold-tint / 4.4:1 on paper, below AA; this clears 4.5:1 on every surface it's used against */
  --gold-tint:  #efe6cf;   /* gold wash for chip-active bg */

  --oxblood:    #8a2f2a;   /* danger / errors */

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* shape */
  --r-sm: 5px;
  --r-md: 9px;
  --r-lg: 14px;
  --shadow-page: 0 1px 0 #fff inset, 0 14px 34px -22px rgba(42,33,24,.55), 0 2px 6px -3px rgba(42,33,24,.25);
  --shadow-soft: 0 10px 30px -20px rgba(42,33,24,.5);
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background-color: var(--paper);
  /* faint paper grain + warm vignette — replaces the retired purple blobs */
  background-image:
    radial-gradient(1200px 700px at 100% -10%, rgba(168,132,44,.07), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(138,47,42,.05), transparent 60%);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* repurposed: a hairline "ruled paper" wash behind everything, very subtle */
.bg-gradient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--rule-soft) 1px, transparent 1px);
  background-size: 100% 30px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
}

/* ---------------- screens ---------------- */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
#gate-screen.active, #key-screen.active { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }

/* ---------------- shared type / buttons ---------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.18; }

.subtitle { color: var(--ink-soft); font-size: 15.5px; }

.btn-primary, .btn-secondary, .btn-danger {
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  border-radius: var(--r-md);
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(180deg, #b8923a, var(--gold-deep));
  color: #fff7e6;
  border-color: var(--gold-deep);
  box-shadow: 0 10px 22px -12px rgba(138,106,31,.8), 0 1px 0 rgba(255,255,255,.35) inset;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(138,106,31,.9); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: var(--paper-2); color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { background: var(--paper-3); }
.btn-danger { background: transparent; color: var(--oxblood); border-color: rgba(138,47,42,.4); }
.btn-danger:hover { background: rgba(138,47,42,.08); }

.error-message {
  color: var(--oxblood); background: rgba(138,47,42,.07);
  border: 1px solid rgba(138,47,42,.25); border-radius: var(--r-sm);
  padding: 11px 14px; font-size: 14px; margin-top: 6px;
}

/* form fields */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; letter-spacing: .01em; }
input[type="email"], input[type="tel"], input[type="text"], input[type="password"], textarea, select {
  width: 100%;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168,132,44,.18);
}
::placeholder { color: var(--ink-faint); }

/* unified keyboard focus ring — echoes the gold input-focus treatment */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* =========================================================================
   GATE SCREEN  — a library card / book cover
   ========================================================================= */
.gate-container, .key-container {
  width: 100%; max-width: 470px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 40px 38px 30px;
  box-shadow: var(--shadow-page);
  position: relative;
}
/* a binding stitch down the left edge */
.gate-container::before, .key-container::before {
  content: ""; position: absolute; left: 14px; top: 18px; bottom: 18px; width: 2px;
  background: repeating-linear-gradient(var(--gold) 0 6px, transparent 6px 12px);
  opacity: .5; border-radius: 2px;
}
.gate-header { text-align: center; margin-bottom: 26px; }

/* 3D BOOK signature mark */
.book-mark { width: 76px; height: 92px; margin: 0 auto 20px; position: relative; perspective: 600px; }
.book-mark .book { position: absolute; inset: 0; transform: rotateY(-22deg); transform-style: preserve-3d; }
.book-mark .cover {
  position: absolute; inset: 0; border-radius: 3px 6px 6px 3px;
  background: linear-gradient(135deg, #34281b, #20180f);
  border: 1px solid #15100a; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
}
.book-mark .cover::after {
  content: "M"; font-family: var(--serif); font-size: 30px; color: var(--gold);
  font-weight: 600; text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.book-mark .cover::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(168,132,44,.5); border-radius: 2px; }
.book-mark .spine {
  position: absolute; left: -7px; top: 1px; bottom: 1px; width: 8px;
  background: linear-gradient(90deg, #15100a, #2a2014);
  transform: rotateY(58deg); transform-origin: right center; border-radius: 2px 0 0 2px;
}

.gradient-text { /* gate title — letterpress serif, NOT a gradient (anti-slop) */
  font-family: var(--serif); font-weight: 600;
  font-size: 30px; color: var(--ink); letter-spacing: -.015em;
  display: inline-block; padding-bottom: 8px; position: relative;
}
.gradient-text::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 54px; height: 2px; background: var(--gold);
}
.gate-header .subtitle { margin-top: 12px; }

.community-badge {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--gold-tint);
  border: 1px solid rgba(168,132,44,.35); border-radius: 999px;
  padding: 6px 14px;
}

.gate-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.gate-form .btn-primary { width: 100%; margin-top: 4px; }

.gate-footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.gate-footer a, .key-info a, a.link { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.gate-footer a:hover { color: var(--ink); }

/* =========================================================================
   KEY SCREEN
   ========================================================================= */
.key-container { max-width: 540px; text-align: left; }
.key-container > h2 { font-size: 24px; margin-bottom: 6px; text-align: center; }
.key-container > .subtitle { text-align: center; margin-bottom: 22px; }
.key-inputs { display: flex; flex-direction: column; gap: 18px; }
.key-input-group label { margin-bottom: 8px; }
.key-input-wrapper { display: flex; gap: 8px; }
.key-input-wrapper input { flex: 1; }
.key-toggle {
  background: var(--paper-3); border: 1px solid var(--rule); color: var(--ink-soft);
  border-radius: var(--r-md); padding: 0 14px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.key-toggle:hover { background: var(--paper); }
.key-status { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; font-family: var(--mono); }
.key-status.saved { color: var(--gold-deep); }
.key-actions { display: flex; gap: 12px; margin-top: 24px; }
.key-actions .btn-primary { flex: 1; }
.key-info { margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 16px; }
.key-info summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.key-info-content { margin-top: 12px; font-size: 14px; color: var(--ink-soft); display: grid; gap: 7px; }
.key-info code { font-family: var(--mono); background: var(--paper-3); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* =========================================================================
   APP SCREEN  — the bindery / studio
   ========================================================================= */
#app-screen.active { display: flex; flex-direction: column; }

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 30;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.app-title {
  font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 11px;
}
.app-title::before { /* tiny gold book glyph */
  content: ""; width: 16px; height: 20px; border-radius: 2px 3px 3px 2px;
  background: linear-gradient(135deg, #34281b, #20180f);
  border-left: 3px solid var(--gold); display: inline-block;
}
.header-right { display: flex; align-items: center; gap: 8px; }
.btn-icon {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--r-md);
  color: var(--ink-soft); cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-icon:hover { background: var(--paper-3); color: var(--ink); border-color: var(--gold); }

.app-main { flex: 1; padding: clamp(16px, 3vw, 30px) clamp(16px, 4vw, 40px); width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* studio grid */
.studio { display: grid; grid-template-columns: 410px 1fr; gap: 26px; align-items: start; }
.studio > * { min-width: 0; }  /* COR-026: let the 1fr stage shrink; inner scrollers handle overflow */

/* ---- left: spec sheet ---- */
.spec-sheet {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-soft);
  position: sticky; top: 88px;
}
.spec-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.spec-title span.num { color: var(--gold-deep); }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field .hint { font-size: 12px; color: var(--ink-faint); margin-top: 6px; line-height: 1.45; }

/* chip rows */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--paper-3); border: 1px solid var(--rule); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; transition: all .14s; user-select: none;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active {
  background: var(--gold-tint); border-color: var(--gold); color: var(--gold-deep);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}

.generate-row { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
#generate-btn { width: 100%; font-size: 16px; padding: 15px; }
.byok-note { font-size: 12px; color: var(--ink-faint); margin-top: 11px; text-align: center; line-height: 1.5; }
.byok-note a { color: var(--gold-deep); cursor: pointer; text-decoration: underline; }

/* ---- right: book stage ---- */
.book-stage {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column;
  min-height: 560px;
}
.stage-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--paper);
}
.tabs { display: flex; gap: 4px; }
.tab {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 7px 14px; cursor: pointer; transition: all .14s;
}
.tab:hover:not(:disabled) { background: var(--paper-3); }
.tab.active { background: var(--ink); color: var(--paper); }
.tab:disabled { opacity: .4; cursor: not-allowed; }
.stage-actions { margin-left: auto; display: flex; gap: 8px; }
.stage-actions .btn-mini {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink);
  border-radius: var(--r-sm); padding: 7px 13px; cursor: pointer; transition: all .14s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-mini:hover:not(:disabled) { border-color: var(--gold); background: var(--paper-3); }
.btn-mini:disabled { opacity: .4; cursor: not-allowed; }
.btn-mini.primary { background: linear-gradient(180deg, #b8923a, var(--gold-deep)); color: #fff7e6; border-color: var(--gold-deep); }
.btn-mini.primary:hover:not(:disabled) { filter: brightness(1.05); }

.stage-body { flex: 1; position: relative; background: var(--paper-3); }

/* empty + loading states */
.stage-state {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px; gap: 16px;
}
.stage-state .big-book { width: 120px; height: 150px; position: relative; perspective: 800px; margin-bottom: 4px; }
.stage-state .big-book .cv {
  position: absolute; inset: 0; transform: rotateY(-20deg); border-radius: 4px 9px 9px 4px;
  background: linear-gradient(135deg, #34281b, #20180f); box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
}
.stage-state .big-book .cv::before { content: ""; position: absolute; inset: 12px; border: 1.5px solid rgba(168,132,44,.45); border-radius: 3px; }
.stage-state .big-book .cv::after { content: "M"; font-family: var(--serif); font-size: 46px; color: var(--gold); }
.stage-state .big-book .sp {
  position: absolute; left: -10px; top: 2px; bottom: 2px; width: 12px;
  background: linear-gradient(90deg,#15100a,#2a2014); transform: rotateY(58deg); transform-origin: right center; border-radius: 3px 0 0 3px;
}
.stage-state h3 { font-size: 22px; }
.stage-state p { color: var(--ink-soft); font-size: 15px; max-width: 420px; }

.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#loading-step { font-family: var(--mono); font-size: 13px; color: var(--gold-deep); }

/* preview iframe — framed like a book block */
.preview-wrap { position: absolute; inset: 0; padding: 22px; overflow: auto; display: flex; justify-content: center; }
#preview-frame {
  width: 100%; max-width: 720px; height: 100%; min-height: 480px; border: none;
  background: #fff; border-radius: 6px;
  box-shadow: 0 20px 50px -24px rgba(42,33,24,.6), 0 0 0 1px var(--rule);
}

/* outline (sumário) tab */
.outline-wrap { position: absolute; inset: 0; overflow: auto; padding: 24px clamp(16px,3vw,32px); }
.colophon {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 16px 18px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 18px;
}
.colophon .cell { display: flex; flex-direction: column; gap: 2px; }
.colophon .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.colophon .v { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); }
.outline-item { border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; margin-bottom: 18px; }
.outline-item .oi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.oi-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.oi-copy { margin-left: auto; font-size: 11.5px; background: var(--paper-3); border: 1px solid var(--rule); border-radius: 4px; padding: 3px 9px; cursor: pointer; color: var(--ink-soft); font-weight: 600; }
.oi-copy:hover { border-color: var(--gold); color: var(--ink); }
.outline-item h4 { font-size: 17px; margin: 2px 0 4px; }
.outline-item p { font-size: 14px; color: var(--ink-soft); }
.outline-item .ch-list { margin-top: 6px; display: grid; gap: 5px; }
.outline-item .ch-list .ci { font-size: 13.5px; color: var(--ink-soft); padding-left: 14px; position: relative; }
.outline-item .ch-list .ci::before { content: "§"; position: absolute; left: 0; color: var(--gold); }

/* code (HTML) tab */
.code-wrap { position: absolute; inset: 0; overflow: auto; }
#code-pre {
  margin: 0; padding: 20px clamp(16px,3vw,28px); font-family: var(--mono); font-size: 12.5px;
  line-height: 1.55; color: #cdbfa6; background: #211a12; min-height: 100%; white-space: pre-wrap; word-break: break-word;
}

/* =========================================================================
   FOOTER / MODAL / TOAST
   ========================================================================= */
.app-footer {
  text-align: center; padding: 26px 20px; border-top: 1px solid var(--rule);
  color: var(--ink-faint); font-size: 13px; background: var(--paper-2); margin-top: auto;
}
.app-footer strong { color: var(--ink-soft); }
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--gold-deep); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-sep { color: var(--rule); margin: 0 8px; }

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(42,33,24,.5); backdrop-filter: blur(2px); }
.modal-content {
  position: relative; width: 100%; max-width: 480px; background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-page);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-header h3 { font-size: 20px; }
.modal-actions { display: flex; gap: 12px; margin-top: 22px; }
.modal-actions .btn-primary { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 80px);
  background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-page); z-index: 200; opacity: 0;
  transition: transform .3s ease, opacity .3s ease; max-width: 90vw; border: 1px solid #15100a;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--oxblood); border-color: #6a221d; }
.toast::before { content: "✦ "; color: var(--gold); }
.toast.err::before { content: "! "; color: #ffd9d4; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .studio { grid-template-columns: 1fr; gap: 18px; }
  .spec-sheet { position: static; }
  .book-stage { min-height: 70vh; }
}
@media (max-width: 768px) {
  .app-main { padding-top: 20px; }
  .colophon { gap: 14px 20px; padding: 14px 16px; }
  .key-actions, .modal-actions { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .gate-container, .key-container { padding: 30px 22px; }
  .app-header { padding: 12px 16px; }
  .app-title { font-size: 18px; }
  .stage-bar { gap: 10px; }
  .stage-actions {
    width: 100%; margin-left: 0;
    flex-wrap: wrap;
  }
  .stage-actions .btn-mini { flex: 1 1 auto; justify-content: center; padding: 8px 10px; }
  #preview-frame { min-height: 420px; }
  .community-badge { font-size: 10px; padding: 6px 12px; line-height: 1.5; }
  .chip { padding: 8px 14px; }
  /* stack action pairs so long PT-BR labels get full-width tap targets */
  .key-actions, .modal-actions { flex-direction: column; }
  .key-actions .btn-primary, .key-actions .btn-secondary,
  .modal-actions .btn-primary, .modal-actions .btn-danger { flex: none; width: 100%; }
}
@media (max-width: 400px) {
  .gate-container, .key-container { padding: 26px 18px; }
  .gradient-text { font-size: 26px; }
  .book-mark { width: 64px; height: 78px; }
  .spec-sheet { padding: 18px 16px; }
  .stage-state { padding: 28px 20px; }
  .stage-state h3 { font-size: 19px; }
  .colophon { padding: 12px 14px; gap: 12px 16px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
