/* Castellan dashboard.
 *
 * The tokens are the launch site's tokens, deliberately: the dashboard is the
 * inside of the same product and should not look like a different company. The
 * typeface is not — the marketing page pulls three families from Google Fonts,
 * and the dashboard's Content-Security-Policy does not allow a third-party
 * origin. System UI sans is what is left, and it is also the fastest thing
 * there is.
 *
 * Dark is declared twice on purpose: once for the OS preference and once for an
 * explicit choice, so a person who picks light on a dark machine gets light.
 */

:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #E9ECF1;
  --surface-3: #DDE2E9;
  --ink: #12161D;
  --ink-2: #49515F;
  --ink-3: #6D7584;
  --line: #D6DAE2;
  --line-strong: #B9C0CB;
  --accent: #A85C15;
  --accent-bright: #C8761F;
  --accent-soft: #FAEEDD;
  --accent-ink: #FFFFFF;

  /* Status. These four are the only colours that carry meaning, and each one
   * always ships beside an icon and a word — never on its own. Red and green
   * are indistinguishable under deuteranopia however they are stepped, so the
   * colour is the decoration and the label is the data. */
  --ok: #2C7B50;
  --ok-soft: #E2F0E8;
  --warn: #B07908;
  --warn-soft: #FAF0DC;
  --crit: #A93E31;
  --crit-soft: #F8E6E3;
  --idle: #6D7584;
  --idle-soft: #E9ECF1;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 4px;
  --sidebar: 236px;
  --row-pad: 12px;
  --shadow: 0 1px 2px rgba(18, 22, 29, .06), 0 8px 24px rgba(18, 22, 29, .06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1116;
    --surface: #151A21;
    --surface-2: #1B222B;
    --surface-3: #232B36;
    --ink: #E7ECF3;
    --ink-2: #A0AAB8;
    --ink-3: #737D8B;
    --line: #242C37;
    --line-strong: #333D4A;
    --accent: #E89A4A;
    --accent-bright: #F2AC63;
    --accent-soft: #2A1F13;
    --accent-ink: #12161D;
    --ok: #57B482;
    --ok-soft: #14251C;
    --warn: #D9A441;
    --warn-soft: #251E10;
    --crit: #D4685A;
    --crit-soft: #2A1715;
    --idle: #737D8B;
    --idle-soft: #1B222B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --bg: #0E1116;
  --surface: #151A21;
  --surface-2: #1B222B;
  --surface-3: #232B36;
  --ink: #E7ECF3;
  --ink-2: #A0AAB8;
  --ink-3: #737D8B;
  --line: #242C37;
  --line-strong: #333D4A;
  --accent: #E89A4A;
  --accent-bright: #F2AC63;
  --accent-soft: #2A1F13;
  --accent-ink: #12161D;
  --ok: #57B482;
  --ok-soft: #14251C;
  --warn: #D9A441;
  --warn-soft: #251E10;
  --crit: #D4685A;
  --crit-soft: #2A1715;
  --idle: #737D8B;
  --idle-soft: #1B222B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
}

:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

/* `hidden` has to beat a layout display, or an element the script hides stays
 * on screen. The UA rule for it loses to any class that sets display. */
[hidden] { display: none !important; }

html, body { height: 100%; }

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

/* Compact mode is one variable, not a second stylesheet. */
:root[data-density="compact"] { --row-pad: 7px; font-size: 14px; }

a { color: var(--accent); }

/* For text that only a screen reader needs: an icon-only button still has to
 * announce what it does. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.muted { color: var(--ink-3); font-size: .82rem; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .92rem; }

p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }

code, .mono { font-family: var(--font-mono); font-size: .86em; }

/* The code carries its own white background: a theme that inverted it would be
 * a code no scanner reads. */
.qr { width: 192px; margin: 0 0 16px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.qr svg { display: block; width: 100%; height: auto; }

/* Focus is never removed, only replaced with something visible on both
 * surfaces. A dashboard that cannot be driven from the keyboard is a dashboard
 * half its users cannot drive. */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.booting { display: grid; place-items: center; min-height: 100vh; }
.boot-note { color: var(--ink-3); max-width: 42ch; text-align: center; padding: 1rem; }

/* --- shell ---------------------------------------------------------------- */

.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px;
  font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
}
.brand svg { flex: none; }
.brand small {
  display: block; font-weight: 500; font-size: .68rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3);
}

.nav { flex: 1; overflow-y: auto; padding: 4px 10px; }
.nav-group { margin-bottom: 14px; }
.nav-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); padding: 8px 8px 4px; font-weight: 600;
}

.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius);
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] {
  background: var(--accent-soft); color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.nav svg { flex: none; opacity: .85; }
.nav .count {
  margin-left: auto; font-size: .75rem; font-variant-numeric: tabular-nums;
  color: var(--ink-3); background: var(--surface-2);
  padding: 1px 7px; border-radius: 999px;
}
.nav a[aria-current="page"] .count { background: var(--surface); color: var(--accent); }

.sidebar-foot { border-top: 1px solid var(--line); padding: 10px; }

.whoami {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; padding: 8px; border-radius: var(--radius);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.whoami:hover { background: var(--surface-2); }
.whoami .who { min-width: 0; }
.whoami .who strong { display: block; font-size: .88rem; }
.whoami .who span {
  display: block; font-size: .75rem; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}

main { min-width: 0; padding: 0 0 56px; }

.topbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 5;
}
.topbar .grow { flex: 1; min-width: 0; }
.topbar .sub { color: var(--ink-3); font-size: .85rem; margin: 2px 0 0; }

.page { padding: 22px 28px 0; max-width: 1240px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 500; font-size: .88rem;
  cursor: pointer; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-danger { color: var(--crit); border-color: var(--crit); background: transparent; }
.btn-danger:hover:not(:disabled) { background: var(--crit-soft); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-quiet:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.btn-sm { padding: 4px 9px; font-size: .8rem; }

input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="number"], select, textarea {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem;
}
textarea { min-height: 80px; resize: vertical; font-family: var(--font-mono); font-size: .84rem; }
input:disabled, select:disabled { background: var(--surface-2); color: var(--ink-3); }

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.field .hint { font-size: .78rem; color: var(--ink-3); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.check input { margin: 3px 0 0; flex: none; width: auto; }
.check label { font-size: .88rem; font-weight: 500; }
.check .hint { font-size: .78rem; color: var(--ink-3); }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
legend { font-size: .82rem; font-weight: 600; padding: 0 6px; color: var(--ink-2); }

/* --- cards ---------------------------------------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 18px;
}
.card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.card-head .grow { flex: 1; min-width: 0; }
.card-head .sub { color: var(--ink-3); font-size: .8rem; margin: 2px 0 0; }
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-tiles { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

/* --- stat tiles ----------------------------------------------------------- */

.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.tile dt {
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); margin: 0;
}
.tile dd { margin: 6px 0 0; font-size: 2rem; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.tile .note { font-size: .8rem; color: var(--ink-2); margin-top: 6px; }
.tile .note .sep { color: var(--line-strong); margin: 0 5px; }

/* --- status --------------------------------------------------------------- */

/* A status is a dot, a word and a colour together. Any one of the three on its
 * own would be a guess for somebody. */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 500; white-space: nowrap; }
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--idle); flex: none;
}
.status-ok::before { background: var(--ok); }
.status-warn::before { background: var(--warn); }
.status-crit::before { background: var(--crit); }
/* Degraded gets a ring rather than a fill, so the two amber-ish states differ
 * in shape as well as in hue. */
.status-warn::before { box-shadow: inset 0 0 0 2px var(--warn-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 8px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  background: var(--idle-soft); color: var(--ink-2);
  border: 1px solid transparent;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-crit { background: var(--crit-soft); color: var(--crit); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

/* --- attention list ------------------------------------------------------- */

.attention { list-style: none; margin: 0; padding: 0; }
.attention li {
  display: flex; gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.attention li:last-child { border-bottom: 0; }
.attention .mark { flex: none; margin-top: 2px; }
.attention strong { display: block; font-size: .92rem; }
.attention p { color: var(--ink-2); font-size: .84rem; margin: 3px 0 0; }
.attention .go { margin-left: auto; align-self: center; }

.all-clear { display: flex; gap: 12px; align-items: flex-start; padding: 16px; }
.all-clear p { color: var(--ink-2); font-size: .86rem; }

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

.table-tools {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.table-tools .search { flex: 1; min-width: 190px; max-width: 340px; }
.table-tools select { width: auto; min-width: 128px; }
.table-tools .spacer { flex: 1; }

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }

th {
  text-align: left; font-weight: 600; font-size: .74rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line); white-space: nowrap;
  padding: 0;
}
th button {
  display: flex; align-items: center; gap: 5px; width: 100%;
  padding: 10px 14px; background: none; border: 0;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
  cursor: pointer; text-align: left;
}
th button:hover { color: var(--ink); background: var(--surface-2); }
th .arrow { opacity: 0; }
th[aria-sort] button { color: var(--ink); }
th[aria-sort] .arrow { opacity: 1; }
th.plain { padding: 10px 14px; }
th.right, td.right { text-align: right; }

td { padding: var(--row-pad) 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }

td .domain { font-weight: 600; }
td.nowrap { white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; text-align: right; }

.row-actions { display: flex; gap: 4px; justify-content: flex-end; }

.pager {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 16px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-2);
}
.pager .spacer { flex: 1; }
.pager .pages { display: flex; gap: 4px; }

.empty { padding: 44px 16px; text-align: center; color: var(--ink-3); }
.empty strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 5px; }
.empty p { max-width: 46ch; margin: 0 auto .9rem; font-size: .88rem; }

/* --- charts --------------------------------------------------------------- */

/* Both charts are SVG with geometry in attributes rather than in a style
 * attribute, because the dashboard's CSP does not allow inline styles and
 * because a bar whose width is an attribute is a bar that still has a width
 * with CSS switched off. */
.spark { display: block; width: 100%; height: 64px; }
.spark rect { fill: var(--accent); }
.spark rect.zero { fill: var(--line); }
.spark-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); margin-top: 4px; }

.meter { margin-bottom: 12px; }
.meter:last-child { margin-bottom: 0; }
.meter-head { display: flex; align-items: baseline; gap: 8px; font-size: .84rem; margin-bottom: 5px; }
.meter-head .grow { flex: 1; }
.meter-head .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: flex; gap: 2px; }
.meter-track span { display: block; height: 100%; }
.seg-ok { background: var(--ok); }
.seg-warn { background: var(--warn); }
.seg-crit { background: var(--crit); }
.seg-idle { background: var(--idle); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .8rem; color: var(--ink-2); }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 2px; flex: none; }

/* --- activity ------------------------------------------------------------- */

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .mark { flex: none; margin-top: 3px; }
.feed .what { min-width: 0; flex: 1; }
.feed .what strong { font-size: .87rem; font-weight: 600; }
.feed .what p { font-size: .82rem; color: var(--ink-2); margin: 1px 0 0; }
.feed time { flex: none; font-size: .76rem; color: var(--ink-3); white-space: nowrap; }

/* --- modal ---------------------------------------------------------------- */

dialog {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  padding: 0; width: min(640px, calc(100vw - 32px)); max-height: 88vh;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(18, 22, 29, .5); }
.dialog-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dialog-head .grow { flex: 1; }
.dialog-body { padding: 18px; overflow-y: auto; max-height: 62vh; }
.dialog-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2);
}

.alert {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 11px 13px; font-size: .86rem; margin-bottom: 14px;
  display: flex; gap: 9px; align-items: flex-start;
}
.alert-crit { border-color: var(--crit); background: var(--crit-soft); color: var(--crit); }
.alert-ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--surface-2); color: var(--ink-2); }
.alert .mark { flex: none; margin-top: 1px; }

/* --- toasts --------------------------------------------------------------- */

.toasts {
  position: fixed; bottom: 18px; right: 18px; z-index: 50;
  display: flex; flex-direction: column; gap: 8px;
  max-width: min(400px, calc(100vw - 36px));
}
.toast {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-left-width: 3px; border-radius: var(--radius);
  padding: 11px 13px; box-shadow: var(--shadow); font-size: .86rem;
}
.toast-ok { border-left-color: var(--ok); }
.toast-crit { border-left-color: var(--crit); }
.toast .grow { flex: 1; }
.toast button { background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 0 2px; font-size: 1rem; line-height: 1; }

/* --- auth screens --------------------------------------------------------- */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 20px; font-weight: 700; font-size: 1.2rem; }
.auth-card .card-body { padding: 22px; }
.auth h1 { font-size: 1.15rem; margin-bottom: 4px; }
.auth .lede { color: var(--ink-2); font-size: .88rem; margin-bottom: 18px; }
.auth .btn { width: 100%; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .84rem; }
.auth-links a { color: var(--ink-2); }
.demo-hint {
  margin-top: 18px; padding: 12px 13px; font-size: .82rem;
  background: var(--accent-soft); color: var(--ink-2);
  border: 1px dashed var(--accent); border-radius: var(--radius);
}
.demo-hint strong { color: var(--accent); display: block; margin-bottom: 3px; }
.demo-hint .mono { color: var(--ink); }

/* --- theme picker --------------------------------------------------------- */

.theme-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-opt { flex: 1; min-width: 108px; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt label {
  display: block; cursor: pointer; text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 10px 8px; font-size: .84rem; font-weight: 500;
}
.theme-opt input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.theme-opt input:focus-visible + label { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.theme-opt .swatches { display: flex; justify-content: center; gap: 3px; margin-bottom: 7px; }
.theme-opt .swatches span { width: 14px; height: 20px; border-radius: 2px; border: 1px solid var(--line-strong); }
.sw-light { background: #F4F5F7; }
.sw-dark { background: #0E1116; }

.copyable { display: flex; gap: 8px; align-items: center; }
.copyable input { font-family: var(--font-mono); font-size: .8rem; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .87rem; display: flex; gap: 10px; align-items: center; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .grow { flex: 1; min-width: 0; }

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

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 10px 10px; }
  .nav-group { margin: 0; display: flex; gap: 4px; }
  .nav-label { display: none; }
  .nav a { white-space: nowrap; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .sidebar-foot { border-top: 0; }
  .topbar, .page { padding-left: 16px; padding-right: 16px; }
  .field-row { grid-template-columns: 1fr; }
}

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