@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3efe6;
  --paper-deep: #ebe5d8;
  --surface: #fffdf8;
  --ink: #1d1c1a;
  --ink-2: #4a4740;
  --ink-3: #6b675d;
  --line: #ddd5c4;
  --line-strong: #c9bfa9;
  --accent: #ff6a3d;
  --focus: #2741d6;

  --todo: #3b5b8c;
  --todo-bg: #e5ecf6;
  --in-progress: #8a5a00;
  --in-progress-bg: #fbedcd;
  --blocked: #b3261e;
  --blocked-bg: #fbe2dc;
  --done: #2c6e45;
  --done-bg: #ddefe2;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 10px;
  --shadow-panel: -1px 0 0 var(--line), -24px 0 48px -32px rgb(29 28 26 / 0.35);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgb(39 65 214 / 0.12);
  touch-action: manipulation;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- App frame ---------- */

.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) minmax(380px, 460px);
  height: 100vh;
  height: 100dvh;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 16px 20px;
  padding-left: max(16px, env(safe-area-inset-left));
  border-right: 1px solid var(--line);
  background: var(--paper-deep);
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-team { font-size: 12.5px; color: var(--ink-3); }

.rail-heading {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  padding: 0 10px 8px;
}

.view-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.view-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 120ms ease, color 120ms ease;
}
.view-btn:hover { background: rgb(29 28 26 / 0.06); color: var(--ink); }
.view-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.view-btn[aria-pressed="true"] .view-icon { color: var(--paper) !important; --check: var(--ink); }
.view-icon { width: 16px; height: 16px; flex: none; }
.view-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.rail-foot { margin-top: auto; padding: 0 10px; display: grid; gap: 8px; justify-items: start; }
.rail-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.btn-quiet {
  padding: 6px 10px;
  margin-left: -10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn-quiet:hover { background: rgb(29 28 26 / 0.06); color: var(--ink); }
.btn-quiet:disabled { opacity: 0.45; cursor: default; text-decoration: none; }
.btn-quiet:disabled:hover { background: transparent; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn-primary:hover { background: #3a3833; }

/* ---------- Workspace ---------- */

.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  scroll-padding-top: 110px;
  overscroll-behavior: contain;
}

.ws-head { padding: 32px 36px 0; }
.ws-title h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.ws-sub { margin: 6px 0 0; color: var(--ink-3); font-size: 14.5px; }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 150px;
  gap: 12px;
  align-items: end;
  padding: 20px 36px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.field { display: grid; gap: 5px; min-width: 0; }
.field-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.search-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-3);
  pointer-events: none;
}

input[type="search"], select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input[type="search"] { padding: 8px 12px 8px 36px; }
input[type="search"]::placeholder { color: #8a8578; }
select {
  appearance: none;
  padding: 8px 34px 8px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%234a4740' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  text-overflow: ellipsis;
}
input[type="search"]:hover, select:hover { border-color: var(--ink-3); }
input[type="search"]:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

/* ---------- Task list ---------- */

.list-region { padding: 20px 36px 48px; flex: 1; }
.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.list-head h2 { font-size: 15px; font-weight: 600; scroll-margin-top: 120px; }
.list-head h2:focus { outline: none; }
.list-head h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.result-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.task-list:empty { display: none; }

.task {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: start;
  padding: 14px 18px 14px 16px;
  border-top: 1px solid var(--line);
  transition: background-color 120ms ease;
}
.task:first-child { border-top: 0; }
.task:hover { background: #faf6ec; }
.task.is-open { background: #f1ede3; box-shadow: inset 3px 0 0 var(--accent); }
.task:focus-within { background: #faf6ec; }

.task-status-icon { width: 18px; height: 18px; margin-top: 2px; }

.task-main { min-width: 0; display: grid; gap: 6px; }

.task-open {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.task-open::after { content: ""; position: absolute; inset: 0; }
.task-open:focus-visible { outline: none; }
.task-open:focus-visible::after {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
  border-radius: 6px;
}
.task:hover .task-open { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.task.is-done .task-open { color: var(--ink-3); }

.task-summary {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.meta-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.meta-item svg { width: 14px; height: 14px; flex: none; }
.mono { font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.task-side { display: grid; justify-items: end; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill svg { width: 13px; height: 13px; flex: none; }
.pill[data-status="todo"] { background: var(--todo-bg); color: var(--todo); }
.pill[data-status="in-progress"] { background: var(--in-progress-bg); color: var(--in-progress); }
.pill[data-status="blocked"] { background: var(--blocked-bg); color: var(--blocked); }
.pill[data-status="done"] { background: var(--done-bg); color: var(--done); }

.c-todo { color: var(--todo); }
.c-in-progress { color: var(--in-progress); }
.c-blocked { color: var(--blocked); }
.c-done { color: var(--done); }
.c-all { color: var(--ink-2); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  flex: none;
}

.prio { display: inline-flex; align-items: center; gap: 5px; }
.prio-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.prio-bars i { display: block; width: 3px; border-radius: 1px; background: var(--line-strong); }
.prio-bars i:nth-child(1) { height: 5px; }
.prio-bars i:nth-child(2) { height: 8px; }
.prio-bars i:nth-child(3) { height: 12px; }
.prio[data-p="low"] .prio-bars i:nth-child(-n+1),
.prio[data-p="medium"] .prio-bars i:nth-child(-n+2),
.prio[data-p="high"] .prio-bars i { background: var(--ink-2); }
.prio[data-p="high"] .prio-bars i { background: var(--accent); }

.task::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffe3d6;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.just-changed::before { animation: flash 1.2s ease-out; }
@keyframes flash {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ---------- Empty state ---------- */

.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-2);
}
.empty[hidden] { display: none; }
.empty svg { color: var(--ink-3); margin-bottom: 4px; }
.empty h3 { font-size: 20px; color: var(--ink); }
.empty p { margin: 0 0 8px; max-width: 40ch; overflow-wrap: anywhere; }

/* ---------- Detail ---------- */

.detail-slot {
  min-width: 0;
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: env(safe-area-inset-right);
}

.detail-placeholder {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 72px 36px;
  color: var(--ink-2);
}
.has-detail .detail-placeholder { display: none; }
.ph-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ph-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 24ch;
}
.ph-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}
.ph-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.ph-stat dt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ph-stat dt svg { width: 14px; height: 14px; }
.ph-stat dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.detail {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.detail:focus { outline: none; }

.detail-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgb(255 253 248 / 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.detail-id { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
.detail-nav { display: flex; gap: 6px; align-items: center; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.icon-btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn:hover:not(:disabled) { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.icon-btn:disabled { opacity: 0.4; cursor: default; }
.close-btn .back-label { display: none; }
.close-btn .close-glyph-back { display: none; }

.detail-body { padding: 24px 28px 40px; display: grid; gap: 24px; align-content: start; }

.detail-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.status-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
.status-box .status-row { display: flex; align-items: center; gap: 10px; }
.status-box .status-row svg { width: 20px; height: 20px; flex: none; }
.status-box select { flex: 1; font-weight: 600; }
.status-feedback {
  min-height: 1.4em;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-feedback.is-saved { color: var(--done); font-weight: 600; }
.status-feedback .undo-inline {
  border: 0;
  background: none;
  padding: 2px 4px;
  font-weight: 600;
  color: var(--focus);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
}
.status-feedback .undo-inline:hover { color: #18298f; }

.props {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 20px;
  margin: 0;
  font-size: 14.5px;
}
.props dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.props dd { margin: 0; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.tag {
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.brief h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.brief-text p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.brief-text p.outcome {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: #fff4ee;
  border-radius: 0 8px 8px 0;
}

.detail-foot { margin-top: auto; padding: 16px 28px 28px; color: var(--ink-3); font-size: 13px; }

/* ---------- Toast ---------- */

.toast-region {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  translate: -50% 0;
  z-index: 50;
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.45);
  font-size: 14px;
  animation: toast-in 180ms ease-out;
}
.toast-msg { min-width: 0; overflow-wrap: anywhere; }
.toast button {
  flex: none;
  padding: 6px 12px;
  border: 1px solid rgb(243 239 230 / 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  font-weight: 600;
  transition: background-color 120ms ease;
}
.toast button:hover { background: rgb(243 239 230 / 0.12); }
.toast button:focus-visible { outline-color: #9fb0ff; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

/* Mid widths: detail floats over the list as a drawer */
@media (max-width: 1180px) {
  .app { grid-template-columns: 220px minmax(0, 1fr); }
  .detail-slot {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(480px, 100%);
    z-index: 30;
    display: none;
  }
  .has-detail .detail-slot { display: block; animation: drawer-in 200ms ease-out; }
  .has-detail::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgb(29 28 26 / 0.28);
  }
}
@keyframes drawer-in {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .app {
    display: block;
    height: auto;
    min-height: 100dvh;
  }
  .rail {
    position: static;
    gap: 12px;
    padding: 14px 0 0;
    padding-top: max(14px, env(safe-area-inset-top));
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .brand { padding: 0 16px; }
  .views .rail-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
  .view-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 16px 12px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .view-list::-webkit-scrollbar { display: none; }
  .view-list li { flex: none; }
  .view-btn {
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
  }
  .view-btn[aria-pressed="true"] { border-color: var(--ink); }
  .rail-foot { display: none; }

  .workspace { overflow: visible; }
  .ws-head { padding: 18px 16px 0; }
  .ws-title h1 { font-size: 28px; }
  .toolbar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 14px 16px 12px;
    gap: 10px;
  }
  .field-search { grid-column: 1 / -1; }
  input[type="search"], select { font-size: 16px; }

  .list-region { padding: 14px 12px 96px; }
  .list-head { padding: 0 4px; }
  .task {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 14px 14px 14px 12px;
    gap: 4px 10px;
  }
  .task-side {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-items: start;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }
  .task-main { grid-row: 1; grid-column: 2; }
  .task-status-icon { grid-row: 1; }
  .task-summary { display: none; }
  .task-open { font-size: 16px; }

  .detail-slot {
    inset: 0;
    width: 100%;
    box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .has-detail::after { display: none; }
  .has-detail .detail-slot { animation-name: sheet-in; }
  .detail-bar { padding-left: 12px; padding-right: 12px; }
  .close-btn .back-label { display: inline; }
  .close-btn .close-glyph-x { display: none; }
  .close-btn .close-glyph-back { display: inline; }
  .detail-body { padding: 20px 18px 32px; gap: 20px; }
  .detail-title { font-size: 24px; }
  .detail-foot { padding: 12px 18px 28px; }
  .toast-region { bottom: max(16px, env(safe-area-inset-bottom)); }
}
@keyframes sheet-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

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