:root {
  --paper: #f3efe4;
  --paper-2: #ebe4d4;
  --ink: #1c1914;
  --muted: #6d675c;
  --rule: #d4cbb8;
  --verified: #0f6b45;
  --verified-bg: #dceee4;
  --mismatch: #8a5a00;
  --mismatch-bg: #f3e6c8;
  --inconclusive: #5f5b55;
  --inconclusive-bg: #e7e2d8;
  --hallucinated: #9f1f1a;
  --hallucinated-bg: #f3d6d2;
  --accent: #9c2b1a;
  --focus: #1f4e79;
  --shadow: 0 18px 40px rgba(40, 28, 12, 0.08);
}

.busy {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(28, 25, 20, 0.45);
}
.busy[hidden] { display: none; }
.busy-card {
  width: min(28rem, calc(100% - 2rem));
  background: #fbf7ee;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.3rem 1.2rem;
  text-align: center;
}
.busy-card p { margin: 0.7rem 0 0; font-size: 1.05rem; }
.busy-sub { color: var(--muted); font-size: 0.9rem !important; }
.busy-spin {
  width: 1.8rem;
  height: 1.8rem;
  margin: 0 auto;
  border: 3px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.drop .text-btn { margin-top: 0.55rem; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
button:focus-visible, summary:focus-visible, textarea:focus-visible, #results:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button:disabled { cursor: wait; opacity: 0.55; }
body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, #fffaf0 0%, transparent 50%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.top-actions { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fbf7ee;
  font: 600 0.9rem/1.3 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.github-link svg { flex-shrink: 0; }
.github-arrow { opacity: 0.7; font-size: 1rem; }
.github-link:hover { background: var(--focus); border-color: var(--focus); }
.github-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand strong { display: block; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand em { display: block; font-style: normal; font-size: 0.78rem; color: var(--muted); }
.stamp {
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: ui-sans-serif, "Figtree", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  transform: rotate(-8deg);
}
.lang, .text-btn, .primary, .scholar {
  font-family: ui-sans-serif, "Figtree", system-ui, sans-serif;
}
.lang, .text-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.lang:hover, .text-btn:hover { background: var(--paper-2); }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto 3rem; }
.lede { padding: 2rem 0 1.2rem; max-width: 42rem; }
.kicker {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
}
.panel {
  background: #fbf7ee;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  min-height: 28rem;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  gap: 0.8rem;
  flex-shrink: 0;
}
.panel-head h2 { margin: 0; font-size: 1rem; }
.input-panel, .results-panel { display: flex; flex-direction: column; }
.results-panel {
  height: min(36rem, 72vh);
  max-height: min(36rem, 72vh);
  min-height: 22rem;
}
.drop {
  position: relative;
  margin: 0.9rem 1rem 0;
  border: 1px dashed var(--rule);
  padding: 0.8rem;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
}
.drop.over { background: #fff; border-color: var(--ink); }
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.load-status {
  margin: 0.45rem 1rem 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  color: var(--verified);
}
.load-status.err { color: var(--hallucinated); }
.bib-preview { display: flex; flex-direction: column; min-height: 0; }
.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.preview-head > div { min-width: 0; }
.preview-head strong { display: block; font-size: 0.86rem; overflow-wrap: anywhere; }
.preview-head span { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.75rem; }
.preview-head button { flex-shrink: 0; font-size: 0.75rem; }
.preview-list { max-height: 24rem; overflow-y: auto; overscroll-behavior: contain; padding: 0 1rem 0.8rem; }
.bib-entry { border: 1px solid var(--rule); background: #fffdf8; margin-bottom: 0.45rem; }
.bib-entry summary { display: flex; gap: 0.6rem; padding: 0.65rem; cursor: pointer; list-style: none; }
.bib-entry summary::-webkit-details-marker, .source-warnings summary::-webkit-details-marker { display: none; }
.bib-entry summary::after, .source-warnings summary::after { content: '+'; margin-left: auto; flex-shrink: 0; font-family: ui-monospace, monospace; }
.bib-entry[open] > summary::after, .source-warnings[open] > summary::after { content: '−'; }
.entry-number { color: var(--muted); font: 0.72rem/1.6 ui-monospace, monospace; min-width: 1.1rem; }
.entry-label { min-width: 0; }
.entry-label strong { display: block; font-size: 0.94rem; line-height: 1.3; overflow-wrap: anywhere; }
.entry-label .key { display: block; margin-top: 0.25rem; overflow-wrap: anywhere; }
.bib-entry pre { margin: 0; border-top: 1px dashed var(--rule); padding: 0.7rem; white-space: pre-wrap; overflow-wrap: anywhere; font: 0.76rem/1.5 ui-monospace, monospace; }
.bib-entry.selected { border-color: var(--focus); }
textarea {
  margin: 0.8rem 1rem;
  min-height: 18rem;
  flex: 1;
  resize: vertical;
  border: 1px solid var(--rule);
  background: #fffdf8;
  padding: 0.8rem;
  font: 0.86rem/1.45 ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, monospace;
  color: var(--ink);
}
textarea.flash {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.card.on, .live.on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.card .evidence { display: none; }
.card.on .evidence { display: block; }
.hint { margin: 0 1rem; color: var(--muted); font-size: 0.88rem; }
.actions { display: flex; gap: 0.65rem; align-items: center; padding: 1rem; flex-wrap: wrap; }
.actions .text-btn { padding: 0.65rem 0.8rem; font-size: 0.86rem; }
.primary {
  background: var(--ink);
  color: #f6f0e4;
  border: 0;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.primary:disabled { opacity: 0.55; cursor: wait; }
.progress { color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.85rem; }

.badge {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge[data-state="done"] { padding: 0.3rem 0.5rem; color: var(--verified); background: var(--verified-bg); font-weight: 700; }
.badge[data-state="scanning"] { color: var(--accent); }
.badge[data-state="error"] { color: var(--hallucinated); }
.completion {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--verified-bg);
  color: var(--verified);
  padding: 0.75rem 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  flex-shrink: 0;
}
.completion strong { font-size: 0.95rem; text-transform: capitalize; }
.completion p { margin: 0.2rem 0 0; font-size: 0.75rem; line-height: 1.4; }
.completion-icon { display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; width: 1.6rem; height: 1.6rem; flex-shrink: 0; }
.completion-toast { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30; display: flex; align-items: center; gap: 0.8rem; padding: 1rem; max-width: min(32rem, calc(100vw - 4.4rem)); background: #fbf7ee; border: 1px solid var(--verified); border-top: 3px solid var(--verified); box-shadow: var(--shadow); font-family: ui-sans-serif, system-ui, sans-serif; }
.completion-toast .completion-icon, .completion-toast strong { color: var(--verified); }
.completion-toast strong { text-transform: capitalize; }
.completion-toast p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.8rem; }
.completion-toast .text-btn { flex-shrink: 0; }
.dismiss-toast { align-self: start; background: none; border: 0; padding: 0.2rem; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.run-error { margin: 0.7rem 1rem 0; padding: 0.65rem; background: var(--hallucinated-bg); color: var(--hallucinated); font-size: 0.86rem; max-height: 6rem; overflow-y: auto; flex-shrink: 0; }
.summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.summary-btn {
  background: #fbf7ee;
  padding: 0.7rem 0.6rem;
  text-align: center;
  border: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
.summary-btn:hover { background: var(--paper-2); }
.summary-btn.on { background: var(--paper-2); box-shadow: inset 0 -3px 0 var(--focus); }
.summary-btn:focus-visible { outline-offset: -3px; }
.summary b { display: block; font-size: 1.3rem; white-space: nowrap; }
.summary-total { font-size: 0.7em; font-weight: 400; color: var(--muted); }
.summary span {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
}

.feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.55rem 0.8rem 0.9rem;
  overscroll-behavior: contain;
}
.live {
  border: 1px solid var(--ink);
  background: #fffdf8;
  margin: 0.45rem 0;
  padding: 0.7rem 0.8rem;
}
.live-h {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
}
.pulse {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.pulse::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.src.querying span:last-child { color: var(--accent); }
.empty { padding: 2.5rem 1.2rem; color: var(--muted); }
.empty-mark {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.card {
  border: 1px solid var(--rule);
  background: #fffdf8;
  margin: 0.55rem 0;
}
.card-h {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: start;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 0.8rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.mark {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.4rem;
  white-space: nowrap;
}
.mark.verified { background: var(--verified-bg); color: var(--verified); }
.mark.metadata_mismatch { background: var(--mismatch-bg); color: var(--mismatch); }
.mark.inconclusive { background: var(--inconclusive-bg); color: var(--inconclusive); }
.mark.likely_hallucinated { background: var(--hallucinated-bg); color: var(--hallucinated); }
.card h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.card-aside { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.card-toggle { flex-shrink: 0; color: var(--focus); font: 1rem ui-monospace, monospace; }
.card-toggle::before { content: '+'; }
.card-h[aria-expanded="true"] .card-toggle::before { content: '−'; }
.meta { margin: 0; color: var(--muted); font-size: 0.88rem; }
.key { font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--muted); }
.evidence { padding: 0 0.8rem 0.9rem; border-top: 1px dashed var(--rule); }
.evidence h4 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0.8rem 0 0.35rem;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.src {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.84rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--paper-2);
}
.src-fail .src-code { color: var(--hallucinated); font-variant-numeric: tabular-nums; }
.src-detail {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}
.alerts {
  margin: 0;
  padding: 0.6rem 1rem 0;
  flex-shrink: 0;
}
.source-warnings { border: 1px solid var(--rule); background: var(--mismatch-bg); }
.source-warnings summary { display: flex; gap: 0.5rem; align-items: center; padding: 0.55rem 0.65rem; cursor: pointer; list-style: none; font: 0.78rem/1.35 ui-sans-serif, system-ui, sans-serif; }
.source-warnings summary strong { white-space: nowrap; color: var(--mismatch); }
.warning-sources { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.warning-body { max-height: min(11rem, 22vh); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--rule); padding: 0.4rem 0.65rem; }
.warning-hint { margin: 0.25rem 0 0.5rem; color: var(--mismatch); font: 0.75rem/1.4 ui-sans-serif, system-ui, sans-serif; }
.warning-body .alert { border: 0; border-top: 1px solid var(--rule); padding: 0.45rem 0; font-size: 0.8rem; line-height: 1.4; }
.alert {
  border: 1px solid var(--rule);
  background: var(--mismatch-bg);
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
}
.alert.network { background: var(--hallucinated-bg); }
.diff { font-size: 0.9rem; margin: 0.2rem 0; }
.scholar {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--focus);
  font-size: 0.88rem;
}
.note { color: var(--muted); font-size: 0.92rem; }
.manual-check { margin: 0 0.8rem 0.8rem; padding: 0.7rem; background: var(--inconclusive-bg); border-left: 3px solid var(--focus); }
.manual-check p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.manual-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.manual-links .scholar { margin-top: 0; }
.source-link { display: inline-block; padding: 0.4rem 0.6rem; border: 1px solid var(--focus); color: var(--focus); font: 0.82rem/1.4 ui-sans-serif, system-ui, sans-serif; text-decoration: none; overflow-wrap: anywhere; }
.source-link span { display: block; font-size: 0.72rem; color: var(--muted); }
.source-link:hover { background: #fffdf8; }
.source-link:focus-visible, .manual-links a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.manual-check small { display: block; margin-top: 0.5rem; font: 0.7rem/1.4 ui-sans-serif, system-ui, sans-serif; color: var(--muted); }
.evidence > .manual-links { margin-top: 0.7rem; }

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.notes article { border-top: 1px solid var(--rule); padding-top: 0.8rem; }
.notes h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.notes p { margin: 0; color: var(--muted); }

footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.8rem;
}
footer a { color: inherit; }
.footer-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.65rem 1.2rem; }
.footer-brand { color: var(--ink); font-weight: 700; }
.source-links, .policy-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.45rem 0.85rem; font: 0.78rem/1.5 ui-sans-serif, system-ui, sans-serif; }
.source-links > span { font-weight: 600; }
.footer-notice { flex: 1 1 26rem; margin: 0; font-size: 0.82rem; line-height: 1.5; }
footer a { text-underline-offset: 0.2em; }
footer a:hover { color: var(--focus); }
footer a:focus-visible, .legal-page a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.legal-page { max-width: 48rem; padding-top: 1.8rem; }
.legal-back { color: var(--focus); font: 0.85rem ui-sans-serif, system-ui, sans-serif; }
.legal-page h1 { margin: 1.4rem 0 0.4rem; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; }
.legal-date { color: var(--muted); font: 0.78rem ui-sans-serif, system-ui, sans-serif; margin: 0 0 1.8rem; }
.legal-copy h2 { font-size: 1.15rem; margin: 1.7rem 0 0.6rem; }
.legal-copy p, .legal-copy li { font-size: 1rem; line-height: 1.65; }
.legal-copy p { margin: 0 0 0.9rem; }
.legal-copy a { color: var(--focus); text-underline-offset: 0.15em; }
.legal-lead { padding: 1rem; border-left: 3px solid var(--accent); background: var(--paper-2); }
.tip-launcher { position: fixed; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 25; min-height: 44px; padding: 0.6rem 0.95rem; border: 1px solid #b8901a; border-radius: 999px; color: #1b1508; background: #f5c542; box-shadow: var(--shadow); font: 600 0.88rem/1.2 ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.tip-launcher:hover { background: #ffda68; }
.tip-dialog { box-sizing: border-box; width: min(36rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; background: #fbf7ee; color: var(--ink); border: 1px solid var(--rule); padding: 1.2rem; box-shadow: var(--shadow); }
.tip-dialog::backdrop { background: rgba(28, 25, 20, 0.65); }
.tip-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.75rem; }
.tip-head h2 { font-size: 1.3rem; margin: 0; }
.tip-head button { min-height: 44px; }
.tip-dialog p { line-height: 1.5; }
.tip-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.tip-card { margin: 0; border: 1px solid var(--rule); padding: 0.7rem; background: #fffdf8; }
.tip-card h3 { margin: 0 0 0.7rem; font: 600 0.85rem ui-sans-serif, system-ui, sans-serif; }
.tip-card img { display: block; width: 100%; height: auto; background: white; }
.tip-card figcaption, .tip-note, .tip-help { font-size: 0.8rem; color: var(--muted); }
.tip-card figcaption { margin-top: 0.6rem; line-height: 1.4; }
.tip-dialog a { color: var(--focus); text-underline-offset: 0.15em; }
.tip-dialog a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 420px) { .tip-options { grid-template-columns: 1fr; } }
@media print { .tip-launcher, .tip-dialog { display: none; } }

@media (max-width: 900px) {
  .workspace, .notes, .grid { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .results-panel { height: 40rem; max-height: none; }
  textarea { min-height: 12rem; }
}
@media (max-width: 520px) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 0.9rem 1rem; }
  .top .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .top-actions { display: contents; }
  .top-actions .lang { grid-column: 2; grid-row: 1; }
  .github-link { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .summary-btn { padding: 0.6rem 0.2rem; }
  .summary b { font-size: 1.15rem; }
  .summary span { font-size: 0.63rem; overflow-wrap: anywhere; }
  .card-h { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .card-h .mark { justify-self: start; }
  .card-h .key, .card h3, .meta { overflow-wrap: anywhere; }
  .completion-toast { right: 0.75rem; bottom: 0.75rem; left: 0.75rem; max-width: none; flex-wrap: wrap; padding: 0.8rem; }
  .completion-toast > div { flex: 1; }
  .completion-toast .text-btn { order: 1; width: 100%; }
  .preview-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .busy-spin, .pulse::before { animation: none; }
}
