/* Repo Sentinel dashboard — Operate surface.
 * One accent, semantic severity/status colour, hairline structure instead of
 * floating cards, fixed rem scale. Data uses monospace and tabular numerals. */

:root {
  color-scheme: dark;

  --bg: #0d0f13;
  --surface: #14171d;
  --surface-2: #191d25;
  --surface-3: #1f242d;
  --border: #262b34;
  --border-strong: #343b47;

  --ink: #e8ebf1;
  --ink-muted: #9aa3b2;
  --ink-faint: #7f8896;

  --accent: #2a63f0;
  --accent-hover: #2456d6;
  --accent-soft: rgba(61, 123, 255, 0.14);
  --accent-ink: #9dbcff;

  --crit: #ff6b5e;
  --high: #ff9166;
  --med: #f2b93b;
  --low: #9aa3b2;
  --ok: #3ecf8e;
  --warn: #f2b93b;

  --radius: 10px;
  --radius-sm: 7px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --appbar: 58px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-drawer { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 20px; }
h3 { font-size: 14px; }
p { margin: 0; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hidden { display: none !important; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.small { font-size: 12.5px; }

/* ---------- app bar ---------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--appbar);
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.brand-mark { width: 20px; height: 20px; color: var(--accent-ink); stroke-width: 1.4; }

.tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: var(--appbar);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tabs button {
  position: relative;
  background: none;
  border: 0;
  color: var(--ink-muted);
  font: inherit;
  font-size: 13px;
  padding: 0 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--ink); }
.tabs button.active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.appbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-muted);
}
.user-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(61, 123, 255, 0.45);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- buttons / inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.primary:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost { background: var(--surface-2); border-color: var(--border); color: var(--ink); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-strong); }
.btn.sm { height: 29px; padding: 0 10px; font-size: 12.5px; }
.btn.xs { height: 24px; padding: 0 8px; font-size: 11.5px; }
.btn.wide { width: 100%; justify-content: center; }
.btn.icon-btn { width: 34px; padding: 0; justify-content: center; }
.btn.sm.icon-btn { width: 29px; }
.btn svg { width: 15px; height: 15px; }

.btn.spin svg { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

input[type="email"],
input[type="search"],
input[type="text"],
select {
  height: 34px;
  padding: 0 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
input::placeholder { color: var(--ink-faint); }
input:hover, select:hover { border-color: var(--border-strong); }
input:focus-visible, select:focus-visible { border-color: var(--accent); }
select { cursor: pointer; }
select option { background: var(--surface-2); color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label, .meta-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.field input, .field select { width: 100%; }

/* ---------- layout ---------- */

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 20px 64px;
}

.pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.pane-sub { color: var(--ink-muted); font-size: 12.5px; max-width: 68ch; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 10px;
}

/* ---------- auth gate ---------- */

#auth-gate { max-width: 400px; margin: 10vh auto 0; }
.gate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
}
.gate-mark { width: 26px; height: 26px; color: var(--accent-ink); margin-bottom: 14px; }
.gate h2 { font-size: 22px; }
.gate p { margin-top: 6px; font-size: 13px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.gate-form .btn { justify-content: center; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--ink-faint);
  font-size: 11.5px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.notice { margin-top: 14px; color: var(--ok); font-size: 12.5px; }
.error { margin-top: 14px; color: var(--crit); font-size: 12.5px; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 0 8px;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 12px 14px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.stat dd {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- toolbar ---------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.toolbar-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--ink-faint); width: 14px; height: 14px; }
.search input { padding-left: 31px; width: 260px; max-width: 60vw; }

/* ---------- tables ---------- */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
}
th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
thead th {
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 120ms var(--ease); }
tbody tr:hover { background: var(--surface-2); }
th.num, td.num { text-align: right; }

.target-cell { max-width: 340px; }
.target-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.target-link:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.target-link.mono { color: var(--ink-muted); }
.finding-title { max-width: 420px; }

.sub { font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }

.empty {
  padding: 46px 20px !important;
  text-align: center;
  color: var(--ink-muted);
}
.empty strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.empty span { display: block; font-size: 12.5px; }

/* ---------- chips, badges, severity ---------- */

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.chip.fam-container { color: #b8c6ff; border-color: rgba(122, 148, 255, 0.36); background: rgba(122, 148, 255, 0.1); }
.chip.fam-code { color: #9fe3c4; border-color: rgba(62, 207, 142, 0.32); background: rgba(62, 207, 142, 0.1); }
.chip.fam-cloud { color: #e8cd8f; border-color: rgba(242, 185, 59, 0.32); background: rgba(242, 185, 59, 0.1); }
.chip.fam-ai { color: #e0b9f5; border-color: rgba(203, 132, 238, 0.34); background: rgba(203, 132, 238, 0.1); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { color: #7fe3b2; }
.status.bad { color: #ffb3ac; }
.status.busy { color: #a9c3ff; }
.status.busy .status-dot { animation: pulse 1.4s var(--ease) infinite; }
.status.idle { color: var(--ink-muted); }
.stage { color: var(--ink-faint); font-size: 11.5px; }

@keyframes pulse { 50% { opacity: 0.35; } }

.sevset { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sev {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sev.critical { color: #ffc9c4; background: rgba(255, 107, 94, 0.18); }
.sev.high { color: #ffd0bb; background: rgba(255, 145, 102, 0.16); }
.sev.medium { color: #ffdf9e; background: rgba(242, 185, 59, 0.15); }
.sev.low { color: #c3cad6; background: rgba(154, 163, 178, 0.16); }
.sev.unknown, .sev.info { color: var(--ink-muted); background: rgba(154, 163, 178, 0.12); }
.sev.single { text-transform: capitalize; }
.clean { color: var(--ink-muted); font-size: 11.5px; }

.report-link {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  margin-right: 4px;
}
.report-link:hover { color: var(--accent-ink); border-color: var(--border-strong); text-decoration: none; }

/* ---------- severity filters ---------- */

.sev-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.sev-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.sev-filter:hover { color: var(--ink); border-color: var(--border-strong); }
.sev-filter.active { background: var(--accent-soft); border-color: rgba(61, 123, 255, 0.45); color: var(--ink); }
.sev-count { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.sev-filter.active .sev-count { color: var(--accent-ink); }

/* ---------- composer ---------- */

.composer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  margin: 0 0 16px;
  animation: rise 180ms var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } }

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.composer-head h3 { font-size: 13.5px; }

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 14px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  width: fit-content;
  max-width: 100%;
}
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.segmented span:hover { color: var(--ink); }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.span2 { grid-column: 1 / -1; }

.radio-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border: 0;
}
.radio-row legend { float: left; margin-right: 4px; padding: 0; }
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.radio-row input { accent-color: var(--accent); }

.hint { margin-top: 12px; color: var(--ink-faint); font-size: 12px; }
.composer-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.form-error { color: var(--crit); font-size: 12.5px; }

/* ---------- drawer ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 6, 10, 0.55);
  animation: fade 160ms var(--ease);
}
@keyframes fade { from { opacity: 0; } }

.drawer {
  position: fixed;
  z-index: 41;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(540px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border-strong);
  animation: slide 200ms var(--ease);
}
@keyframes slide { from { transform: translateX(16px); opacity: 0; } }
.drawer[hidden], .scrim[hidden] { display: none; }

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.drawer-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.drawer-heading h2 {
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 24px;
}

.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0 0 18px;
  padding: 0;
}
.meta div { min-width: 0; }
.meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.meta dd { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.meta dd .btn { margin-left: 6px; vertical-align: middle; }

.scan-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.scan-progress-track {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.scan-progress-track span { display: block; height: 100%; background: var(--accent); transition: width 300ms var(--ease); }
.scan-progress-num { font-size: 11.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.sev-summary { margin: 0 0 16px; }

.callout {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin: 0 0 16px;
  background: var(--surface-2);
  color: var(--ink-muted);
}
.callout svg { margin-top: 1px; }
.callout.quiet { border-color: var(--border); }
.callout.bad { border-color: rgba(255, 107, 94, 0.36); background: rgba(255, 107, 94, 0.07); color: #ffc9c4; }

.artifact-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }

.drawer-h3 {
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.drawer-findings { display: flex; flex-direction: column; }
.finding-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.finding-line:last-child { border-bottom: 0; }
.finding-line-title { font-size: 12.5px; }
.finding-line-loc { grid-column: 2; color: var(--ink-faint); font-size: 11px; }

.events { list-style: none; margin: 0; padding: 0; }
.ev {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.ev:last-child { border-bottom: 0; }
.ev-time { color: var(--ink-faint); font-size: 11px; }
.ev-msg { color: var(--ink-muted); overflow-wrap: anywhere; }
.ev.warn .ev-msg { color: #ffdf9e; }
.ev.error .ev-msg { color: #ffc9c4; }
.ev-progress { color: var(--ink-faint); font-size: 11px; }

.drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ---------- skeleton + toasts ---------- */

.skeleton {
  height: 14px;
  border-radius: 4px;
  background: var(--surface-3);
  margin: 8px 0;
  animation: pulse 1.4s var(--ease) infinite;
}
.skeleton.short { width: 62%; }

.toasts {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  color: var(--ink);
  font-size: 12.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: rise 180ms var(--ease);
  max-width: min(560px, 90vw);
}
.toast.ok { border-color: rgba(62, 207, 142, 0.4); }
.toast.warn { border-color: rgba(242, 185, 59, 0.45); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .appbar { flex-wrap: wrap; gap: 0 18px; padding-bottom: 0; }
  .tabs { order: 3; width: 100%; height: 44px; }
  .appbar-actions { order: 2; padding-bottom: 10px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { border-top: 1px solid var(--border); }
  .stat:nth-child(-n + 3) { border-top: 0; }
  .stat:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
}

@media (max-width: 720px) {
  main { padding: 16px 14px 56px; }
  .user-email { display: none; }
  .col-report { display: none; }
  .search input { width: 100%; max-width: none; }
  .toolbar .search { flex: 1 1 100%; }
  .target-cell { max-width: 220px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .meta { grid-template-columns: minmax(0, 1fr); }
  .drawer { border-left: 0; }
  .finding-title { max-width: 240px; }
}

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