@font-face {
  font-family: "Geist";
  src: url("fonts/Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ------------------------------------------------------------------
   Tokens. Every colour, size and face in this file comes from here.
   One graphite ramp for every surface, three text roles, one accent
   used rarely, hairlines instead of shadows. Light and dark are the
   same system with the same roles.
   ------------------------------------------------------------------ */
:root {
  color-scheme: light;

  --side-bg: #f4f4f5;
  --page: #fafafa;
  --card: #ffffff;
  --raised: #f4f4f5;
  --ink: #171717;
  --ink-2: #525252;
  --ink-3: #737373;
  --rule: color-mix(in srgb, var(--ink) 9%, transparent);
  --rule-strong: color-mix(in srgb, var(--ink) 16%, transparent);

  --accent: #0f766e;
  --accent-ink: #f4fffd;
  --accent-text: #0b5c56;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--card));

  --btn-bg: #171717;
  --btn-ink: #fafafa;

  --pos: #16a34a;
  --neg: #dc2626;
  --warn: #b45309;
  --neg-soft: color-mix(in srgb, var(--neg) 9%, var(--card));
  --warn-soft: color-mix(in srgb, var(--warn) 10%, var(--card));
  --pos-soft: color-mix(in srgb, var(--pos) 10%, var(--card));

  /* chart marks: the accent leads, everything else is a neutral step */
  --n1: var(--ink-2);
  --n2: color-mix(in srgb, var(--ink) 38%, var(--card));
  --n3: color-mix(in srgb, var(--ink) 22%, var(--card));
  --n4: color-mix(in srgb, var(--ink) 12%, var(--card));

  --tip-bg: var(--ink);
  --tip-fg: var(--page);
  --scrim: color-mix(in srgb, var(--ink) 50%, transparent);

  --font: "Geist", "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-xs: 12px;
  --t-sm: 13px;
  --t-base: 14px;
  --t-md: 16px;
  --t-lg: 18px;
  --t-xl: 20px;
  --t-fig: 28px;
  --body-weight: 400;

  /* 4px grid */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;

  --r-tag: 6px;
  --r-ctl: 8px;
  --r-card: 12px;
  --ctl: 36px;
  --ctl-sm: 28px;
  --side: 248px;
  --bar: 56px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-menu: 200ms;
}

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

  --side-bg: #0f0f10;
  --page: #141415;
  --card: #19191b;
  --raised: #232325;
  --ink: #ededed;
  --ink-2: #a1a1a6;
  --ink-3: #85858b;

  --accent: #3cc4b4;
  --accent-ink: #04211e;
  --accent-text: #5fd6c8;

  --btn-bg: #ededed;
  --btn-ink: #141415;

  --pos: #4cc38a;
  --neg: #e5484d;
  --warn: #e2a336;

  --body-weight: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: var(--body-weight);
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; transition: none; }
::selection { background: var(--accent-soft); }

.ltr { direction: ltr; unicode-bidi: isolate; text-align: start; }
.mono { font-family: var(--mono); font-size: var(--t-xs); direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 160px; min-width: 0; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.small { font-size: var(--t-sm); }
.link { color: var(--accent-text); }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--side-bg);
  border-inline-end: 1px solid var(--rule);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: 2px;
}
.brand { display: flex; align-items: center; gap: var(--s3); padding: var(--s1) var(--s2) var(--s5); font-size: var(--t-md); font-weight: 500; }
.brand img { width: 24px; height: 24px; border-radius: var(--r-tag); }
.brand small { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--ink-3); line-height: 16px; }
.nav a {
  display: flex; align-items: center; gap: var(--s2); height: var(--ctl); padding: 0 var(--s2);
  border-radius: var(--r-ctl); color: var(--ink-2); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav a svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.nav a:hover { background: var(--raised); color: var(--ink); }
.nav a.on { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.nav a.on svg { color: var(--accent-text); }
.nav .rule { height: 1px; background: var(--rule); margin: var(--s4) var(--s2) var(--s2); }
.nav .count { margin-inline-start: auto; font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-2); }
.side .foot { margin-top: auto; padding: var(--s2); font-size: var(--t-xs); color: var(--ink-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  min-height: var(--bar); padding: var(--s2) var(--s6); background: var(--page); border-bottom: 1px solid var(--rule);
}
.topbar h1 { font-size: var(--t-lg); }
.content { padding: var(--s6) var(--s6) 64px; max-width: 1480px; width: 100%; margin-inline: auto; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; inset-block: 0; inset-inline-start: 0; width: 264px; transform: translateX(-105%); transition: transform var(--dur-menu) var(--ease); }
  [dir="rtl"] .side { transform: translateX(105%); }
  .side.open { transform: none !important; }
  .menu-btn { display: inline-flex; }
  .topbar, .content { padding-inline: var(--s4); }
}

/* ---------------------------------------------------------------- layout */
.cols { display: grid; gap: var(--s4); }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .c3, .c-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .c2 { grid-template-columns: minmax(0, 1fr); } }

.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); min-width: 0; }
.panel > .ph { display: flex; align-items: baseline; gap: var(--s3); padding: var(--s5) var(--s5) 0; }
.panel > .ph h2 { font-size: var(--t-base); }
.panel > .ph .aside { margin-inline-start: auto; font-size: var(--t-sm); color: var(--ink-3); }
.panel > .pb { padding: var(--s4) var(--s5) var(--s5); }
.panel.flush > .pb { padding: var(--s3) 0 0; }
.panel .sub { margin: 2px 0 0; font-size: var(--t-sm); color: var(--ink-2); }

/* stat cards are numbers: a label, a figure, and what it compares to */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: var(--s4); }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); padding: var(--s4) var(--s5); min-width: 0; }
.stat .l { font-size: var(--t-sm); color: var(--ink-2); }
.stat .v { font-size: var(--t-fig); font-weight: 500; line-height: 32px; margin: var(--s1) 0; }
.stat .s { font-size: var(--t-xs); color: var(--ink-3); line-height: 16px; }
.stat .s.up { color: var(--pos); }
.stat .s.down { color: var(--neg); }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2); height: var(--ctl); padding: 0 var(--s4);
  border-radius: var(--r-ctl); border: 1px solid var(--rule-strong); background: var(--raised); cursor: pointer;
  font-size: var(--t-sm); font-weight: 500; text-decoration: none; color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--ink) 7%, var(--raised)); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.pri { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.btn.pri:hover { background: color-mix(in srgb, var(--btn-bg) 88%, var(--btn-ink)); }
.btn.danger { color: var(--neg); }
.btn.danger:hover { background: var(--neg-soft); }
.btn.sm { height: var(--ctl-sm); padding: 0 var(--s3); font-size: var(--t-xs); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--raised); }
.btn.icon { padding: 0; width: var(--ctl); justify-content: center; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.input {
  width: 100%; height: var(--ctl); padding: 0 var(--s3); border-radius: var(--r-ctl); border: 1px solid var(--rule-strong);
  background: var(--card); outline: none; transition: border-color var(--dur-fast) var(--ease);
}
textarea.input { padding: var(--s2) var(--s3); height: auto; min-height: 88px; resize: vertical; }
.input:hover { border-color: var(--ink-3); }
.input:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.field { display: flex; flex-direction: column; gap: var(--s1); margin-bottom: var(--s4); }
.field > label { font-weight: 500; font-size: var(--t-sm); }
.field .help { font-size: var(--t-xs); color: var(--ink-2); }
.switch { display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 99px; background: var(--rule-strong); position: relative; cursor: pointer; margin: 0; flex: none; transition: background-color var(--dur-fast) var(--ease); }
.switch input::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); transition: inset-inline-start var(--dur-fast) var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { inset-inline-start: 18px; }

.seg { display: inline-flex; background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 2px; gap: 2px; }
.seg button { height: 28px; border: 0; background: transparent; padding: 0 var(--s3); border-radius: var(--r-tag); cursor: pointer; font-size: var(--t-sm); color: var(--ink-2); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--rule-strong); }

.tabs { display: flex; gap: var(--s1); box-shadow: inset 0 -1px 0 var(--rule); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { height: 40px; display: inline-flex; align-items: center; padding: 0 var(--s3); border-bottom: 2px solid transparent; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 500; border-bottom-color: var(--accent); }

/* status and counts are quiet text, not glowing pills */
.tag { display: inline-flex; align-items: center; gap: var(--s1); padding: 0 var(--s2); height: 24px; border-radius: var(--r-tag); font-size: var(--t-xs); background: var(--raised); color: var(--ink-2); white-space: nowrap; }
.tag.ok { color: var(--pos); }
.tag.warn { color: var(--warn); }
.tag.bad { color: var(--neg); background: var(--neg-soft); }
.tag.acc { color: var(--accent-text); background: var(--accent-soft); }
.tag svg { width: 12px; height: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.live { background: var(--pos); }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: var(--s2) var(--s4); text-align: start; border-top: 1px solid var(--rule); white-space: nowrap; vertical-align: middle; height: 40px; }
.tbl th { font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); background: var(--card); border-top: 0; border-bottom: 1px solid var(--rule); position: sticky; top: 0; user-select: none; height: 36px; }
.tbl th.sort { cursor: pointer; }
.tbl th.sort:hover { color: var(--ink); }
.tbl th .arrow { margin-inline-start: var(--s1); color: var(--ink); }
.tbl td.num, .tbl th.num { text-align: end; }
.tbl tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.tbl tbody tr:hover { background: var(--raised); }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl .wrap { white-space: normal; }
.tbl.compact td { padding: var(--s1) 0; height: 32px; border-top: 0; }
.tbl.compact tbody tr:hover { background: transparent; }

.meter { height: 4px; border-radius: 2px; background: var(--rule-strong); overflow: clip; min-width: 72px; }
.meter > i { display: block; height: 100%; background: var(--ink-2); }
.meter.warn > i { background: var(--warn); }
.meter.bad > i { background: var(--neg); }

/* ---------------------------------------------------------------- data marks */
.rank { display: flex; flex-direction: column; gap: var(--s3); }
.rank-row { display: grid; grid-template-columns: minmax(80px, 160px) minmax(0, 1fr) auto; gap: var(--s3); align-items: center; }
.rank-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .track { height: 4px; background: var(--n4); border-radius: 2px; overflow: clip; }
.rank-row .track > i { display: block; height: 100%; background: var(--n2); border-radius: 2px; }
.rank-row:first-child .track > i, .rank.lead .rank-row:first-child .track > i { background: var(--accent); }
.rank-row .val { color: var(--ink-2); font-size: var(--t-sm); min-width: 64px; text-align: end; }

.stackbar { display: flex; height: 8px; border-radius: 4px; overflow: clip; gap: 2px; direction: ltr; }
.stackbar > i { display: block; min-width: 2px; }
.swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: var(--s2); vertical-align: 0; }

.spark { display: block; direction: ltr; }
.spark rect { fill: var(--n2); }
.spark rect.off { fill: var(--n4); }
.spark.live rect { fill: var(--accent); }
.spark.live rect.off { fill: var(--n4); }

.chart { position: relative; direction: ltr; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: var(--ink-3); font-size: var(--t-xs); font-family: var(--mono); unicode-bidi: plaintext; }
.chart .grid-line { stroke: var(--rule); stroke-width: 1; }
.chart .axis-line { stroke: var(--rule); }
.tip {
  position: absolute; pointer-events: none; z-index: 30; background: var(--tip-bg); color: var(--tip-fg); border-radius: var(--r-tag);
  padding: var(--s2) var(--s3); font-size: var(--t-xs); white-space: nowrap; transform: translate(-50%, -100%); opacity: 0;
  transition: opacity var(--dur-fast) var(--ease); unicode-bidi: plaintext;
}
[dir="rtl"] .chart .tip { direction: rtl; }
.tip.show { opacity: 1; }
.tip b { font-weight: 500; display: block; }
.tip .r { display: flex; align-items: center; gap: var(--s2); }
.tip .r i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: var(--t-sm); color: var(--ink-2); margin-top: var(--s3); }
.legend span { display: inline-flex; align-items: center; }

.heat { display: grid; gap: 3px; direction: ltr; position: relative; }
.heat .cell { aspect-ratio: 1.6; border-radius: 3px; background: var(--n4); min-height: 14px; }
.heat .lab { font-size: var(--t-xs); font-family: var(--mono); color: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.heat .lab.day { justify-content: flex-end; padding-inline-end: var(--s2); font-family: var(--font); }

.strip-box { direction: ltr; position: relative; }
.gantt { direction: ltr; position: relative; }
.gantt .g-row { display: grid; grid-template-columns: 152px minmax(0, 1fr); align-items: center; gap: var(--s3); margin-bottom: var(--s2); }
.gantt .g-label { font-size: var(--t-xs); text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt .g-track { position: relative; height: 16px; background: var(--n4); border-radius: 4px; }
.gantt .g-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; min-width: 3px; }

.sleep-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 168px; gap: var(--s3); align-items: center; margin-bottom: var(--s1); direction: ltr; }
.sleep-row .d { font-size: var(--t-xs); color: var(--ink-2); text-align: end; }
.sleep-row > :last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sleep-track { position: relative; height: 16px; border-radius: 4px; background: var(--n4); overflow: hidden; }
.sleep-track .night { position: absolute; top: 0; bottom: 0; background: var(--rule); }
.sleep-track .sl { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; background: var(--accent); }
.sleep-track .sl.connected { background: var(--n1); }
.sleep-track .sl.atyp { opacity: .45; }
.sleep-axis { display: grid; grid-template-columns: 104px minmax(0, 1fr) 168px; gap: var(--s3); direction: ltr; font-size: var(--t-xs); font-family: var(--mono); color: var(--ink-3); margin-bottom: var(--s1); }
.sleep-axis .ticks { position: relative; height: 16px; }
.sleep-axis .ticks span { position: absolute; transform: translateX(-50%); }

.interests { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
.interest { padding: var(--s1) var(--s4) var(--s4); border-inline-start: 1px solid var(--rule); }
.interest:first-child { border-inline-start: 0; }
.interest .t { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: var(--s1); }
.interest .s { display: flex; justify-content: space-between; gap: var(--s2); padding: 2px 0; }
.interest .s span { color: var(--ink-2); font-family: var(--mono); font-size: var(--t-xs); }

/* ---------------------------------------------------------------- feedback */
.empty { text-align: center; padding: var(--s8) var(--s4); color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-weight: 500; margin-bottom: var(--s1); }
.empty .btn { margin-top: var(--s3); }
.skeleton { background: linear-gradient(90deg, var(--n4), var(--rule-strong), var(--n4)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--r-card); }
@keyframes sk { to { background-position: -200% 0; } }
.alert { padding: var(--s3) var(--s4); border-radius: var(--r-ctl); background: var(--raised); border: 1px solid var(--rule); }
.alert.warn { background: var(--warn-soft); border-color: transparent; }
.alert.bad { background: var(--neg-soft); border-color: transparent; }
.alert.ok { background: var(--pos-soft); border-color: transparent; }
.code { background: var(--raised); border-radius: var(--r-ctl); padding: var(--s3) var(--s4); font-family: var(--mono); font-size: var(--t-xs); line-height: 20px; direction: ltr; text-align: left; overflow-x: auto; white-space: pre; user-select: all; }

.toast-wrap { position: fixed; inset-block-end: var(--s4); inset-inline-start: var(--s4); z-index: 100; display: flex; flex-direction: column; gap: var(--s2); }
.toast { background: var(--tip-bg); color: var(--tip-fg); padding: var(--s3) var(--s4); border-radius: var(--r-ctl); max-width: 380px; }
.toast.bad { background: var(--neg); color: var(--accent-ink); }
.toast.ok { background: var(--pos); color: var(--accent-ink); }
.modal-bg { position: fixed; inset: 0; background: var(--scrim); z-index: 90; display: grid; place-items: center; padding: var(--s4); }
.modal { background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--r-card); padding: var(--s6); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; }
.modal h3 { margin-bottom: var(--s4); font-size: var(--t-lg); }
.modal .actions { display: flex; gap: var(--s2); justify-content: flex-end; margin-top: var(--s5); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--s5); background: var(--page); }
.login { width: min(384px, 100%); padding: var(--s6); }
.login .brand { justify-content: center; font-size: var(--t-xl); padding-bottom: var(--s1); }
.login .brand img { width: 32px; height: 32px; }

.live-row { display: grid; grid-template-columns: minmax(136px, 1fr) minmax(0, 2fr) auto; gap: var(--s4); align-items: start; padding: var(--s3) var(--s5); border-top: 1px solid var(--rule); }
.live-row:first-child { border-top: 0; }
.live-row.over { background: var(--neg-soft); }
.live-row .ips { display: flex; flex-direction: column; gap: var(--s1); }
.live-row .ips div { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .live-row { grid-template-columns: minmax(0, 1fr); } }

.guide-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s4); }
.guide-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--raised); color: var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: var(--t-xs); box-shadow: inset 0 0 0 1px var(--rule-strong); }

/* settings sections */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); padding: var(--s5); min-width: 0; }
.card > h2 { font-size: var(--t-base); margin-bottom: var(--s4); }

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