/* xsnapshot foundation, shared by every page: reset, type, chrome, controls,
   fields, notices, prompt lines, tables and the publication components
   (publish review, result and recovery cards, the recovery page).
   Load order: tokens.css -> base.css -> viewer.css / workbench.css -> page.
   House rules (DESIGN.md): black canvas, 1px hairlines, flat cards, one
   accent, spacing only from the 4px scale, explicit transition lists. */

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.3333; /* 20px at 15px; unitless so headings keep their own box */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
/* one in-content link style: ink with a 45% underline that turns solid on
   hover; a lime arrow marks where it leads (lime = the signal) */
a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition-property: color, text-decoration-color;
  transition-duration: 120ms;
  transition-timing-function: ease-out;
}
a:hover {
  color: var(--text-strong);
  text-decoration-color: currentColor;
}
a:focus-visible {
  border-radius: 4px;
}
a:not(.button) > span[aria-hidden="true"] {
  color: var(--accent);
}
a,
button,
label,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
code,
pre {
  font-family: var(--font);
  font-size: inherit;
}
code {
  overflow-wrap: anywhere;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
::placeholder {
  color: var(--muted);
  opacity: 1;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* A light control fill would swallow the ring's inner edge: a black
   companion ring keeps the indicator at >= 3:1 on both sides. */
button:focus-visible,
.button:focus-visible {
  box-shadow: 0 0 0 2px var(--bg);
}
section[id] {
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}
/* skip-link targets take focus programmatically; they are not controls */
main[tabindex="-1"]:focus,
section[tabindex="-1"]:focus {
  outline: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- type ---------- */
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  word-spacing: -0.4em; /* a mono space is a full 0.6em cell */
}
h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  word-spacing: -0.35em;
}
h3 {
  font-size: 17px;
  line-height: 20px;
  letter-spacing: -0.02em;
}
h4 {
  font-size: 15px;
  line-height: 20px;
}
h5 {
  font-size: 13px;
  line-height: 20px;
}
h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
/* a mono comma or period sits mid-cell: pull it to the word it ends */
.tuck {
  margin-left: -0.2em;
}
p {
  margin: 0 0 12px;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
table {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  overflow-wrap: anywhere;
}
.fine {
  max-width: 60ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}
/* 11px/700 uppercase label; .eyebrow is led by the 6px square signal */
.eyebrow,
.kicker {
  color: var(--muted);
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
}
.signal,
.release-dot {
  flex: none;
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-block: 6px; /* centred on the first line, even when the label wraps */
  background: var(--accent);
}

/* ---------- page frame and chrome ---------- */
.wrap {
  width: min(var(--page-w), calc(100% - 48px));
  margin-inline: auto;
  min-width: 0;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: calc(var(--topbar-h) + 8px);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--topbar-h);
  padding-inline: max(24px, calc((100% - var(--page-w)) / 2));
  background: var(--topbar-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  container: topbar / inline-size;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar nav > a:not(.button) {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  color: var(--muted-raised);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  word-spacing: -0.25em;
  text-decoration: none;
  white-space: nowrap;
}
.topbar nav > a:not(.button)::after {
  content: "";
  position: absolute;
  inset: -10px -8px;
}
.topbar nav > a:not(.button):hover {
  color: var(--text);
}
.topbar nav > .button {
  white-space: nowrap;
}
/* wordmark: "x" bold + "snapshot" regular, then the lime block cursor */
.brand {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.brand b {
  font-weight: 700;
}
.brand-cursor {
  align-self: center;
  width: 8px;
  height: 16px;
  margin-left: 6px;
  background: var(--accent);
}
.brand::after {
  content: "";
  position: absolute;
  inset: -12px -6px;
}
.brand:hover {
  color: var(--text-strong);
}
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}
.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 40px;
}
.site-footer p {
  margin: 0 0 8px;
  max-width: 60ch;
}
.site-footer .brand {
  margin-bottom: 12px;
  font-size: 20px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 8px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--text);
  word-spacing: -0.25em;
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--text-strong);
  text-decoration: underline;
}

/* ---------- controls: one pill spec ---------- */
button,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ctl-gap);
  min-height: var(--ctl-h);
  padding: var(--ctl-pad);
  border: 1px solid var(--btn);
  border-radius: var(--r-pill);
  background: var(--btn);
  color: var(--btn-ink);
  font-family: var(--font);
  font-size: var(--ctl-size);
  line-height: 1.2;
  font-weight: var(--ctl-weight);
  word-spacing: var(--ctl-word);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 150ms, 150ms, 150ms, 100ms;
  transition-timing-function: ease-out;
}
/* 44px hit area around the 36px pill, without moving the layout */
button::after,
.button::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
button:hover:not(:disabled),
.button:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--btn-ink);
}
button:active:not(:disabled),
.button:active {
  transform: scale(0.96);
}
.ghost,
.ghost.button {
  background: transparent;
  border-color: var(--line-control);
  color: var(--text);
}
.ghost:hover:not(:disabled),
.ghost.button:hover {
  background: var(--fill-2-hover);
  border-color: var(--line-control-hover);
  color: var(--text);
}
.delete button,
.recovery-delete button {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.delete button:hover:not(:disabled),
.recovery-delete button:hover:not(:disabled) {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
  color: var(--text-strong);
}
button:disabled {
  background: transparent;
  border-color: var(--line-control);
  color: var(--muted);
  cursor: not-allowed;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  word-spacing: var(--ctl-word);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.text-link:hover {
  color: var(--text-strong);
  text-decoration-color: currentColor;
}
/* file pickers: a pill label around a visually hidden input */
.file {
  position: relative;
  cursor: pointer;
}
.file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
}
.file:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--bg);
}
.file:has(input:disabled) {
  background: transparent;
  border-color: var(--line-control);
  color: var(--muted);
  cursor: not-allowed;
}

/* ---------- fields: black fill, 3:1 control edge, 12px radius ---------- */
input:where(:not([type="checkbox"], [type="radio"], [type="file"])),
select,
textarea {
  width: min(100%, 30rem);
  min-height: 44px;
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-control);
  border-radius: var(--r-field);
  font-size: 15px;
  line-height: 20px;
  transition-property: border-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
input:where(:not([type="checkbox"], [type="radio"], [type="file"])):hover,
select:hover,
textarea:hover {
  border-color: var(--line-control-hover);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
  outline-offset: 1px;
}
textarea {
  width: 100%;
  min-height: 12rem;
  resize: vertical;
  font-size: 13px;
}
input[type="file"] {
  max-width: 100%;
  margin: 4px 0 12px;
  font-size: 13px;
  line-height: 20px;
}
input::file-selector-button {
  min-height: 36px;
  margin-right: 12px;
  padding: 6px 16px;
  border: 1px solid var(--line-control);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  word-spacing: var(--ctl-word);
  cursor: pointer;
}
input::file-selector-button:hover {
  border-color: var(--line-control-hover);
  background: var(--fill-2-hover);
}
[aria-invalid="true"],
[aria-invalid="true"]:hover {
  border: 2px solid var(--danger);
}
[aria-invalid="true"]:focus-visible {
  outline-color: var(--danger);
}
.field-error {
  margin: 0 0 12px;
  color: var(--danger);
  font-size: 13px;
  line-height: 20px;
}
.field-error::before {
  content: "Check: ";
  font-weight: 700;
}
/* Native checkbox. The 1px outline drawn 1px inside the box replaces the
   faint native edge, so the unchecked state reads at 4.55:1 on black in
   every engine; checked turns the edge lime with the fill. */
input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
  outline: 1px solid var(--line-control-hover);
  outline-offset: -1px;
  cursor: pointer;
}
input[type="checkbox"]:checked {
  outline-color: var(--accent);
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input[type="checkbox"]:disabled {
  outline-color: var(--line);
  opacity: 0.5; /* the native disabled box is grey-filled; it must not read as checked */
  cursor: not-allowed;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  max-width: 72ch;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  word-spacing: var(--ctl-word);
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "+";
  flex: none;
  width: 1ch;
  color: var(--muted);
  font-weight: 400;
}
details[open] > summary::before {
  content: "−";
}

/* ---------- chips, notices, status ---------- */
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line-control);
  border-radius: var(--r-chip);
  color: var(--text);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.tag.bad {
  border-color: var(--danger);
  color: var(--danger);
}
.banner {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid var(--line-control);
  border-radius: var(--r-field);
  background: var(--fill);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.status {
  max-width: 72ch;
  min-height: 20px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.status:empty {
  margin: 0;
  min-height: 0;
}
.status.done::before {
  content: "✓ ";
  content: "✓ " / "";
  color: var(--ok);
  font-weight: 700;
}
.status.done {
  color: var(--text);
}

/* ---------- prompt line and preformatted text ---------- */
/* the prompt line: a pill concentric with its 36px copy button (18 + 8),
   wrapping only between command tokens (.nw), the copy button dropping to
   its own row when the command cannot keep one line beside it */
.command {
  container: command / inline-size;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 8px 0 12px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: calc(var(--ctl-h) / 2 + 8px);
  background: var(--bg);
  font-size: 13px;
  line-height: 20px;
}
.command code {
  flex: 1 1 0;
  min-width: 0;
  letter-spacing: -0.01em;
}
.command code::before {
  content: "$ ";
  color: var(--accent);
}
.nw {
  white-space: nowrap;
}
/* "Copy", "Copied" and "Copy failed" share one width: no reflow */
[data-copy] {
  min-width: calc(11ch + 24px);
  padding-inline: 12px;
  font-size: 13px;
}
/* one line: "$ " + 50 chars at the rendered 8px cell less 0.01em (409px)
   + 8px gap + the 112px button = 529px */
@container command (max-width: 528px) {
  .command code {
    flex-basis: 100%;
  }
  .command [data-copy] {
    margin-left: auto;
  }
}
.command-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  margin: 8px 0 12px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: var(--bg);
  font-size: 13px;
  line-height: 20px;
}
.command-line code,
.command-line a {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
pre {
  margin: 8px 0 12px;
  padding: 16px;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 20px;
}

/* ---------- tables ---------- */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  scrollbar-width: thin;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 20px;
}
caption {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}
th,
td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
thead th {
  color: var(--muted);
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--fill);
}
tbody th {
  font-weight: 500;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--fill);
}

/* ---------- publication: review, results, receipts ---------- */
.publish {
  margin: 12px 0 36px;
  padding: 30px;
  border: 1px solid var(--line-control);
  border-radius: var(--r-card);
  background: var(--bg);
}
.publish > h2,
.recovery-loaded > h2 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 29px;
  letter-spacing: -0.03em;
  word-spacing: -0.3em;
}
.publish > p:not([class]) {
  max-width: 64ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.publish > button {
  margin-top: 4px;
}
.report-review {
  margin: 16px 0;
  border-block: 1px solid var(--line);
}
.report-review pre {
  max-height: 32rem;
  overflow: auto;
}
.verified-note {
  max-width: 72ch;
  margin: 16px 0;
  font-size: 13px;
  line-height: 20px;
}
.verified-note::before {
  content: "✓ " / "";
  color: var(--ok);
  font-weight: 700;
}
.local-findings {
  margin: 16px 0;
  padding: 20px 24px;
  border: 1px solid var(--warn);
  border-radius: var(--r-card);
  font-size: 13px;
  line-height: 20px;
}
.local-findings h3 {
  margin: 0 0 8px;
}
.local-findings h3::before {
  content: "! " / "";
  color: var(--warn);
}
.local-findings > p {
  max-width: 72ch;
  color: var(--muted-raised);
}
.local-findings-more {
  margin-top: 8px;
  color: var(--muted);
}
.local-ack {
  margin-top: 0;
}
.publish-result:empty {
  display: none;
}
.result-card,
.recovery-card {
  margin: 16px 0;
  padding: 20px 24px;
  border: 1px solid var(--ok);
  border-radius: var(--r-card);
  font-size: 13px;
  line-height: 20px;
}
.result-card > p:not([class]) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.result-card > p:first-child {
  margin-top: 0;
}
.recovery-card {
  border-color: var(--warn);
}
.recovery-card > summary {
  margin: -12px 0 0;
}
.recovery-card > button {
  margin: 4px 8px 4px 0;
}

/* the recovery page (/recover.html) */
.recovery-page {
  padding: 72px 0;
}
.recovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.recovery-head h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 4.4vw, 56px);
}
.recovery-panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.recovery-rules {
  margin: 0 0 24px;
}
.recovery-rules > div:first-child {
  padding-top: 0;
}
.recovery-rules > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 20px;
}
.recovery-rules dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.recovery-rules dd {
  margin: 0;
  min-width: 0;
}
.recovery-controls,
.recovery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.recovery-panel .fine {
  margin: 12px 0 0;
}
.recovery-loaded {
  margin-top: 40px;
  padding: 30px;
  border: 1px solid var(--warn);
  border-radius: var(--r-card);
}
.recovery-loaded > p:not([class]) {
  max-width: 64ch;
  color: var(--muted-raised);
  font-size: 13px;
  line-height: 20px;
}
.recovery-delete {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.recovery-delete h3 {
  margin-bottom: 8px;
}
.recovery-delete > p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .topbar {
    padding-inline: 20px;
  }
}
@media (max-width: 900px) {
  .recovery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .topbar {
    gap: 16px;
    padding-inline: 16px;
  }
  .topbar nav {
    gap: 16px;
  }
  .footer-row {
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 30px;
  }
  .recovery-page {
    padding: 44px 0;
  }
  .publish,
  .recovery-panel,
  .recovery-loaded {
    padding: 20px 16px;
  }
  .local-findings,
  .result-card,
  .recovery-card {
    padding: 16px;
  }
  .command {
    padding: 12px 8px 8px 16px;
  }
  .command-line {
    flex-wrap: wrap;
    padding: 12px;
  }
  .command-line code,
  .command-line a {
    flex: 1 1 30ch;
  }
}
@media (max-width: 480px) {
  .command code {
    font-size: 12px;
  }
  .recovery-rules > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
/* the secondary nav links step aside before the CTA would wrap */
@container topbar (max-width: 560px) {
  .topbar nav > a:not(.button) {
    display: none;
  }
}
/* 320px floor: wordmark and CTA keep one line each */
@container topbar (max-width: 300px) {
  .topbar .brand {
    font-size: 19px;
  }
  .topbar nav > .button {
    padding-inline: 12px;
    font-size: 13px;
  }
}

/* ---------- motion and contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  button:active:not(:disabled),
  .button:active {
    transform: none;
  }
}
@media (forced-colors: active) {
  button,
  .button,
  .banner,
  .publish,
  .recovery-panel,
  .recovery-loaded,
  .pill,
  .tag {
    border-color: ButtonText;
  }
  .signal,
  .release-dot,
  .brand-cursor {
    background: CanvasText;
  }
  input[type="checkbox"] {
    outline-color: CanvasText;
  }
  :focus-visible,
  input[type="checkbox"]:focus-visible {
    outline: 2px solid Highlight;
  }
  [aria-invalid="true"] {
    border: 2px dashed CanvasText;
  }
  .field-error {
    color: CanvasText;
  }
}
