/* ==========================================================================
   DigiBorj 6 — core design system (shared by resident app, admin and POS)
   Tokens · themes · base · components · motion. RTL-first, mobile-first.
   ========================================================================== */

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

/* ----------------------------------------------------------------- tokens */
:root {
  /* brand (overridden inline per installation by PHP: dbj6_theme_css) */
  --brand: #3346d3;
  --brand-strong: #2432a6;
  --brand-rgb: 51, 70, 211;
  --brand-light: #8994e5;
  --brand-light-rgb: 137, 148, 229;
  --hero-a: #0b1437;
  --hero-b: #26358f;
  --accent: #c9973a;
  --accent-rgb: 201, 151, 58;
  --on-brand: #fff;
  --font-scale: 1;

  /* neutrals — light */
  --bg: #f3f5fa;
  --bg-elevated: #f8f9fc;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eef1f6;
  --surface-inverse: #0f172a;
  --line: #e3e7ef;
  --line-strong: #cdd4e1;
  --text: #0f172a;
  --text-2: #3f4a5e;
  --text-3: #5b6577;
  --text-inverse: #f8fafc;
  --scrim: rgba(8, 12, 24, 0.52);

  /* brand usage tokens */
  --brand-ink: var(--brand-strong);
  --brand-soft: rgba(var(--brand-rgb), 0.1);
  --brand-soft-2: rgba(var(--brand-rgb), 0.16);
  --brand-line: rgba(var(--brand-rgb), 0.32);
  --focus: rgba(var(--brand-rgb), 0.45);

  /* semantic */
  --success: #0e8a5f;
  --success-soft: rgba(14, 138, 95, 0.12);
  --success-ink: #0b6e4c;
  --warning: #b45309;
  --warning-soft: rgba(217, 119, 6, 0.14);
  --warning-ink: #92400e;
  --danger: #c62828;
  --danger-soft: rgba(198, 40, 40, 0.1);
  --danger-ink: #a51d1d;
  --info: #0369a1;
  --info-soft: rgba(3, 105, 161, 0.1);
  --info-ink: #075985;

  /* category hues for tiles (bg soft, fg strong) */
  --hue-orange: #ea580c; --hue-orange-soft: rgba(234, 88, 12, 0.12);
  --hue-amber: #b45309; --hue-amber-soft: rgba(217, 119, 6, 0.14);
  --hue-green: #0e8a5f; --hue-green-soft: rgba(14, 138, 95, 0.12);
  --hue-teal: #0f766e; --hue-teal-soft: rgba(15, 118, 110, 0.12);
  --hue-blue: #1d4ed8; --hue-blue-soft: rgba(29, 78, 216, 0.1);
  --hue-indigo: #4338ca; --hue-indigo-soft: rgba(67, 56, 202, 0.1);
  --hue-violet: #7c3aed; --hue-violet-soft: rgba(124, 58, 237, 0.1);
  --hue-pink: #be185d; --hue-pink-soft: rgba(190, 24, 93, 0.1);
  --hue-rose: #e11d48; --hue-rose-soft: rgba(225, 29, 72, 0.1);
  --hue-slate: #475569; --hue-slate-soft: rgba(71, 85, 105, 0.12);
  --hue-cyan: #0e7490; --hue-cyan-soft: rgba(14, 116, 144, 0.12);

  /* type */
  --font: "Vazirmatn", "Vazir", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --fs-2xs: calc(11px * var(--font-scale));
  --fs-xs: calc(12px * var(--font-scale));
  --fs-sm: calc(13.5px * var(--font-scale));
  --fs-md: calc(15px * var(--font-scale));
  --fs-lg: calc(17px * var(--font-scale));
  --fs-xl: calc(20px * var(--font-scale));
  --fs-2xl: calc(24px * var(--font-scale));
  --fs-3xl: calc(30px * var(--font-scale));
  --lh: 1.75;
  --lh-tight: 1.4;

  /* space (4px grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --gutter: 16px;

  /* radius */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 26px; --r-full: 999px;

  /* elevation */
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.03);
  --sh-2: 0 6px 18px -8px rgba(15, 23, 42, 0.16), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
  --sh-3: 0 18px 44px -18px rgba(15, 23, 42, 0.32), 0 6px 14px -6px rgba(15, 23, 42, 0.1);
  --sh-sheet: 0 -16px 48px -20px rgba(8, 12, 24, 0.45);
  --sh-brand: 0 10px 26px -12px rgba(var(--brand-rgb), 0.65);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --d-1: 120ms; --d-2: 200ms; --d-3: 320ms; --d-4: 480ms;

  /* layers */
  --z-header: 20; --z-tabbar: 30; --z-cartbar: 35; --z-sheet: 60; --z-toast: 80; --z-top: 90;

  /* safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --topbar-h: 60px;

  color-scheme: light;
}

/* ------------------------------------------------------------ dark theme */
:root[data-theme="dark"] {
  --bg: #0a0e19;
  --bg-elevated: #0e1320;
  --surface: #121827;
  --surface-2: #171e30;
  --surface-3: #1e273c;
  --surface-inverse: #f1f5f9;
  --line: #243049;
  --line-strong: #33405e;
  --text: #e9edf6;
  --text-2: #b4bed3;
  --text-3: #8f9bb4;
  --text-inverse: #0f172a;
  --scrim: rgba(2, 4, 10, 0.66);
  --brand-ink: var(--brand-light);
  --brand-soft: rgba(var(--brand-light-rgb), 0.14);
  --brand-soft-2: rgba(var(--brand-light-rgb), 0.22);
  --brand-line: rgba(var(--brand-light-rgb), 0.4);
  --focus: rgba(var(--brand-light-rgb), 0.55);
  --success: #34d399; --success-soft: rgba(52, 211, 153, 0.14); --success-ink: #6ee7b7;
  --warning: #fbbf24; --warning-soft: rgba(251, 191, 36, 0.14); --warning-ink: #fcd34d;
  --danger: #f87171; --danger-soft: rgba(248, 113, 113, 0.14); --danger-ink: #fca5a5;
  --info: #38bdf8; --info-soft: rgba(56, 189, 248, 0.14); --info-ink: #7dd3fc;
  --hue-orange: #fb923c; --hue-orange-soft: rgba(251, 146, 60, 0.16);
  --hue-amber: #fbbf24; --hue-amber-soft: rgba(251, 191, 36, 0.15);
  --hue-green: #34d399; --hue-green-soft: rgba(52, 211, 153, 0.14);
  --hue-teal: #2dd4bf; --hue-teal-soft: rgba(45, 212, 191, 0.14);
  --hue-blue: #60a5fa; --hue-blue-soft: rgba(96, 165, 250, 0.15);
  --hue-indigo: #a5b4fc; --hue-indigo-soft: rgba(165, 180, 252, 0.15);
  --hue-violet: #c4b5fd; --hue-violet-soft: rgba(196, 181, 253, 0.15);
  --hue-pink: #f9a8d4; --hue-pink-soft: rgba(249, 168, 212, 0.14);
  --hue-rose: #fda4af; --hue-rose-soft: rgba(253, 164, 175, 0.14);
  --hue-slate: #cbd5e1; --hue-slate-soft: rgba(203, 213, 225, 0.12);
  --hue-cyan: #67e8f9; --hue-cyan-soft: rgba(103, 232, 249, 0.13);
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --sh-2: 0 8px 22px -10px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --sh-3: 0 22px 48px -18px rgba(0, 0, 0, 0.75);
  --sh-sheet: 0 -16px 48px -18px rgba(0, 0, 0, 0.8);
  --sh-brand: 0 10px 26px -12px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0a0e19;
    --bg-elevated: #0e1320;
    --surface: #121827;
    --surface-2: #171e30;
    --surface-3: #1e273c;
    --surface-inverse: #f1f5f9;
    --line: #243049;
    --line-strong: #33405e;
    --text: #e9edf6;
    --text-2: #b4bed3;
    --text-3: #8f9bb4;
    --text-inverse: #0f172a;
    --scrim: rgba(2, 4, 10, 0.66);
    --brand-ink: var(--brand-light);
    --brand-soft: rgba(var(--brand-light-rgb), 0.14);
    --brand-soft-2: rgba(var(--brand-light-rgb), 0.22);
    --brand-line: rgba(var(--brand-light-rgb), 0.4);
    --focus: rgba(var(--brand-light-rgb), 0.55);
    --success: #34d399; --success-soft: rgba(52, 211, 153, 0.14); --success-ink: #6ee7b7;
    --warning: #fbbf24; --warning-soft: rgba(251, 191, 36, 0.14); --warning-ink: #fcd34d;
    --danger: #f87171; --danger-soft: rgba(248, 113, 113, 0.14); --danger-ink: #fca5a5;
    --info: #38bdf8; --info-soft: rgba(56, 189, 248, 0.14); --info-ink: #7dd3fc;
    --hue-orange: #fb923c; --hue-orange-soft: rgba(251, 146, 60, 0.16);
    --hue-amber: #fbbf24; --hue-amber-soft: rgba(251, 191, 36, 0.15);
    --hue-green: #34d399; --hue-green-soft: rgba(52, 211, 153, 0.14);
    --hue-teal: #2dd4bf; --hue-teal-soft: rgba(45, 212, 191, 0.14);
    --hue-blue: #60a5fa; --hue-blue-soft: rgba(96, 165, 250, 0.15);
    --hue-indigo: #a5b4fc; --hue-indigo-soft: rgba(165, 180, 252, 0.15);
    --hue-violet: #c4b5fd; --hue-violet-soft: rgba(196, 181, 253, 0.15);
    --hue-pink: #f9a8d4; --hue-pink-soft: rgba(249, 168, 212, 0.14);
    --hue-rose: #fda4af; --hue-rose-soft: rgba(253, 164, 175, 0.14);
    --hue-slate: #cbd5e1; --hue-slate-soft: rgba(203, 213, 225, 0.12);
    --hue-cyan: #67e8f9; --hue-cyan-soft: rgba(103, 232, 249, 0.13);
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.35);
    --sh-2: 0 8px 22px -10px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
    --sh-3: 0 22px 48px -18px rgba(0, 0, 0, 0.75);
    --sh-sheet: 0 -16px 48px -18px rgba(0, 0, 0, 0.8);
    --sh-brand: 0 10px 26px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: var(--lh-tight); font-weight: 750; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--brand-soft-2); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: fixed; inset-inline-start: 12px; top: -60px; z-index: var(--z-top); padding: 10px 16px; border-radius: var(--r-sm); background: var(--surface); color: var(--text); box-shadow: var(--sh-3); transition: top var(--d-2) var(--ease-out); }
.skip-link:focus-visible { top: calc(10px + var(--safe-top)); }

/* icons (Lucide sprite; stroke styles inherit into <use>) */
.i { display: inline-block; vertical-align: middle; width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i-xs { width: 14px; height: 14px; stroke-width: 2.2; }
.i-sm { width: 18px; height: 18px; stroke-width: 2; }
.i-lg { width: 26px; height: 26px; stroke-width: 1.8; }
.i-xl { width: 32px; height: 32px; stroke-width: 1.6; }
[dir="rtl"] .i-flip { transform: scaleX(-1); }

/* ------------------------------------------------------------ typography */
.t-display { font-size: var(--fs-3xl); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.t-h1 { font-size: var(--fs-2xl); font-weight: 800; }
.t-h2 { font-size: var(--fs-xl); font-weight: 750; }
.t-h3 { font-size: var(--fs-lg); font-weight: 700; }
.t-body { font-size: var(--fs-md); }
.t-sm { font-size: var(--fs-sm); }
.t-xs { font-size: var(--fs-xs); }
.t-muted { color: var(--text-2); }
.t-faint { color: var(--text-3); }
.t-brand { color: var(--brand-ink); }
.t-success { color: var(--success-ink); }
.t-danger { color: var(--danger-ink); }
.t-warning { color: var(--warning-ink); }
.t-strong { font-weight: 700; }
.t-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.t-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.eyebrow { font-size: var(--fs-xs); font-weight: 650; color: var(--text-3); letter-spacing: 0.01em; }

/* ---------------------------------------------------------------- layout */
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--s3)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--s2)); }
.row { display: flex; align-items: center; gap: var(--gap, var(--s3)); }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--gap, var(--s3)); }
.grid-2 { display: grid; gap: var(--gap, var(--s3)); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-auto { display: grid; gap: var(--gap, var(--s3)); grid-template-columns: repeat(auto-fill, minmax(var(--min, 160px), 1fr)); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s3) 0; }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--surface-3);
  --btn-fg: var(--text);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-md); font-weight: 700; line-height: 1.2; white-space: nowrap;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: background-color var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out), color var(--d-2), box-shadow var(--d-2), transform var(--d-1) var(--ease-out), opacity var(--d-2);
}
.btn:hover { filter: brightness(1.03); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--on-brand); box-shadow: var(--sh-brand); }
.btn--primary:hover { --btn-bg: var(--brand-strong); filter: none; }
.btn--secondary { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-ink); }
.btn--outline { --btn-bg: transparent; --btn-bd: var(--line-strong); --btn-fg: var(--text); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text-2); }
.btn--ghost:hover { --btn-bg: var(--surface-3); }
.btn--danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger-ink); }
.btn--solid-danger { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn--success { --btn-bg: var(--success); --btn-fg: #fff; }
.btn--dark { --btn-bg: var(--surface-inverse); --btn-fg: var(--text-inverse); }
.btn--light { --btn-bg: rgba(255, 255, 255, 0.16); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--sm { min-height: 40px; padding: 0 var(--s3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--xs { min-height: 32px; padding: 0 var(--s3); font-size: var(--fs-xs); border-radius: var(--r-xs); gap: 6px; }
.btn--lg { min-height: 56px; padding: 0 var(--s6); font-size: var(--fs-lg); border-radius: var(--r-lg); }
.btn--block { width: 100%; }
.btn--split { justify-content: space-between; }
.btn .btn__meta { font-weight: 800; font-variant-numeric: tabular-nums; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--btn-fg); border-inline-end-color: transparent; animation: spin 0.7s linear infinite; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r-full); border: 0;
  background: transparent; color: var(--text);
  transition: background-color var(--d-2), transform var(--d-1) var(--ease-out), color var(--d-2);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn--filled { background: var(--surface); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.icon-btn--brand { background: var(--brand-soft); color: var(--brand-ink); }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn .dot, .has-dot::after {
  position: absolute; top: 4px; inset-inline-end: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-full); background: var(--danger); color: #fff; border: 2px solid var(--surface);
  font-size: 10px; font-weight: 800; line-height: 14px; text-align: center;
}
.link-btn { border: 0; background: none; padding: 6px 4px; color: var(--brand-ink); font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 4px; border-radius: var(--r-xs); }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------- chips/badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 38px; padding: 0 var(--s4); border-radius: var(--r-full);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text-2);
  font-size: var(--fs-sm); font-weight: 650; white-space: nowrap;
  transition: background-color var(--d-2), color var(--d-2), border-color var(--d-2), transform var(--d-1);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--text-inverse); }
.chip--brand[aria-pressed="true"], .chip--brand.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip .count { font-size: var(--fs-2xs); font-weight: 800; opacity: 0.7; }
.chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter); margin: 0 calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 3px 10px; border-radius: var(--r-full);
  background: var(--surface-3); color: var(--text-2);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge--plain::before { display: none; }
.badge--brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge--success { background: var(--success-soft); color: var(--success-ink); }
.badge--warning { background: var(--warning-soft); color: var(--warning-ink); }
.badge--danger { background: var(--danger-soft); color: var(--danger-ink); }
.badge--info { background: var(--info-soft); color: var(--info-ink); }
.badge--solid { background: var(--brand); color: var(--on-brand); }
.badge--solid::before { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-full); background: var(--surface-3); color: var(--text-2); font-size: var(--fs-xs); font-weight: 650; }
.pill .i { width: 16px; height: 16px; }

/* ----------------------------------------------------------------- cards */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: var(--s4);
}
.card--flat { box-shadow: none; }
.card--raised { box-shadow: var(--sh-2); border-color: transparent; }
.card--tight { padding: var(--s3); }
.card--roomy { padding: var(--s5); }
.card--brand { background: linear-gradient(140deg, var(--brand), var(--brand-strong)); color: var(--on-brand); border: 0; box-shadow: var(--sh-brand); }
.card--soft { background: var(--surface-2); box-shadow: none; }
.card--interactive { cursor: pointer; transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2), border-color var(--d-2); }
.card--interactive:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.card--interactive:active { transform: scale(0.985); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.card__title { font-size: var(--fs-md); font-weight: 750; }
.card__sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--line); }

/* tile icon (colored) */
.ticon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--tile-soft, var(--brand-soft)); color: var(--tile, var(--brand-ink)); }
.ticon--lg { width: 56px; height: 56px; border-radius: 18px; }
.ticon--sm { width: 36px; height: 36px; border-radius: 11px; }
.ticon--round { border-radius: 50%; }
.hue-orange { --tile: var(--hue-orange); --tile-soft: var(--hue-orange-soft); }
.hue-amber { --tile: var(--hue-amber); --tile-soft: var(--hue-amber-soft); }
.hue-green { --tile: var(--hue-green); --tile-soft: var(--hue-green-soft); }
.hue-teal { --tile: var(--hue-teal); --tile-soft: var(--hue-teal-soft); }
.hue-blue { --tile: var(--hue-blue); --tile-soft: var(--hue-blue-soft); }
.hue-indigo { --tile: var(--hue-indigo); --tile-soft: var(--hue-indigo-soft); }
.hue-violet { --tile: var(--hue-violet); --tile-soft: var(--hue-violet-soft); }
.hue-pink { --tile: var(--hue-pink); --tile-soft: var(--hue-pink-soft); }
.hue-rose { --tile: var(--hue-rose); --tile-soft: var(--hue-rose-soft); }
.hue-slate { --tile: var(--hue-slate); --tile-soft: var(--hue-slate-soft); }
.hue-cyan { --tile: var(--hue-cyan); --tile-soft: var(--hue-cyan-soft); }
.hue-brand { --tile: var(--brand-ink); --tile-soft: var(--brand-soft); }

/* ------------------------------------------------------------- list rows */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.list > * + * { border-top: 1px solid var(--line); }
.lrow {
  display: flex; align-items: center; gap: var(--s3); width: 100%;
  min-height: 60px; padding: var(--s3) var(--s4);
  background: transparent; border: 0; text-align: start; color: inherit;
  transition: background-color var(--d-1);
}
button.lrow:hover, a.lrow:hover { background: var(--surface-2); text-decoration: none; }
button.lrow:active, a.lrow:active { background: var(--surface-3); }
.lrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lrow__title { display: block; font-weight: 700; font-size: var(--fs-md); line-height: 1.5; }
.lrow__sub { display: block; color: var(--text-3); font-size: var(--fs-xs); line-height: 1.6; }
.lrow__end { display: flex; align-items: center; gap: var(--s2); color: var(--text-3); flex: none; }
.lrow--danger .lrow__title { color: var(--danger-ink); }

/* --------------------------------------------------------- section header */
.sec { margin-top: var(--s6); }
.sec:first-child { margin-top: 0; }
.sec__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.sec__head > .link-btn, .sec__head > .btn { flex: none; margin-top: 2px; }
.sec__title { font-size: var(--fs-lg); font-weight: 800; }
.sec__sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: var(--fs-sm); font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.field__label .req { color: var(--danger); font-weight: 800; }
.field__label .opt { color: var(--text-3); font-weight: 500; font-size: var(--fs-xs); }
.field__help { font-size: var(--fs-xs); color: var(--text-3); }
.field__error { font-size: var(--fs-xs); color: var(--danger-ink); font-weight: 650; display: flex; gap: 4px; align-items: center; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.5;
  transition: border-color var(--d-2), box-shadow var(--d-2), background-color var(--d-2);
  appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 0.85; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft-2); outline: none; }
.input[readonly] { background: var(--surface-2); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.textarea { min-height: 110px; resize: vertical; }
.select { padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; }
.input--code { text-align: center; letter-spacing: 0.6em; font-size: 22px; font-weight: 800; direction: ltr; padding-inline: 0.6em 0; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-inline-start: 44px; }
.input-group > .i { position: absolute; inset-inline-start: 14px; color: var(--text-3); pointer-events: none; }
.search { position: relative; }
.search .input { min-height: 48px; border-radius: var(--r-full); padding-inline-start: 46px; background: var(--surface); border-color: var(--line); box-shadow: var(--sh-1); }
.search > .i { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.form { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
.form-grid { display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > .field--full, .form-grid > .full { grid-column: 1 / -1; }
@media (max-width: 420px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .form-grid > .field { grid-column: 1 / -1; } }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fieldset > legend { padding: 0; margin-bottom: 8px; font-size: var(--fs-sm); font-weight: 700; }

/* choice tiles (radio/checkbox) */
.choices { display: flex; flex-wrap: wrap; gap: var(--s2); }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 650; color: var(--text-2);
  transition: border-color var(--d-2), background-color var(--d-2), color var(--d-2), transform var(--d-1);
}
.choice span small { color: var(--text-3); font-weight: 600; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.choice input:checked + span::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:disabled + span { opacity: 0.45; }
.choice--block, .choice--block span { width: 100%; }
.choices--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choices--grid .choice, .choices--grid .choice span { width: 100%; }

/* switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 52px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line-strong); transition: background-color var(--d-2) var(--ease-out); }
.switch__track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: inset-inline-start var(--d-2) var(--ease-spring); }
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { inset-inline-start: 23px; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch__text { display: flex; flex-direction: column; }
.switch__text b { font-size: var(--fs-sm); font-weight: 700; }
.switch__text small { color: var(--text-3); font-size: var(--fs-xs); }

/* check (inline checkbox) */
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; transition: background-color var(--d-2), border-color var(--d-2); }
.check input:checked { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--brand); }
.check input[type="radio"] { border-radius: 50%; }
.check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* segmented control */
.segmented { display: flex; padding: 4px; gap: 4px; border-radius: var(--r-md); background: var(--surface-3); }
.segmented button { flex: 1; min-height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color var(--d-2) var(--ease-out), color var(--d-2), box-shadow var(--d-2); }
.segmented button[aria-selected="true"], .segmented button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }

/* tabs (underline) */
.tabs { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; flex: none; min-height: 46px; padding: 0 var(--s4); border: 0; background: transparent; color: var(--text-3); font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; }
.tabs button[aria-selected="true"] { color: var(--brand-ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }

/* stepper (quantity) */
.stepper { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 3px; border-radius: var(--r-full); background: var(--surface); border: 1.5px solid var(--brand-line); box-shadow: var(--sh-1); }
.stepper button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); transition: transform var(--d-1), background-color var(--d-2); }
.stepper button:active { transform: scale(0.88); }
.stepper button .i { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper output, .stepper b { min-width: 28px; text-align: center; font-weight: 800; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.stepper--danger button:first-child { background: var(--danger-soft); color: var(--danger-ink); }

/* ------------------------------------------------------------ empty/state */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s2); padding: var(--s8) var(--s5); color: var(--text-2); }
.empty__art { width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); margin-bottom: var(--s2); }
.empty__art .i { width: 38px; height: 38px; stroke-width: 1.5; }
.empty__title { font-size: var(--fs-lg); font-weight: 750; color: var(--text); }
.empty__text { font-size: var(--fs-sm); color: var(--text-3); max-width: 34ch; }
.empty .btn { margin-top: var(--s3); }
.notice { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--info-soft); color: var(--info-ink); font-size: var(--fs-sm); line-height: 1.8; }
.notice .i { flex: none; margin-top: 2px; }
.notice--warning { background: var(--warning-soft); color: var(--warning-ink); }
.notice--danger { background: var(--danger-soft); color: var(--danger-ink); }
.notice--success { background: var(--success-soft); color: var(--success-ink); }
.notice--brand { background: var(--brand-soft); color: var(--brand-ink); }
.notice b { font-weight: 800; }

/* skeleton */
.skel { position: relative; overflow: hidden; background: var(--surface-3); border-radius: var(--r-sm); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); animation: shimmer 1.3s infinite; }
:root[data-theme="dark"] .skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent); }
.skel-line { height: 12px; border-radius: 6px; }
.skel-card { height: 96px; border-radius: var(--r-lg); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--brand-soft-2); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }

/* avatar */
.avatar { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft-2), var(--brand-soft)); color: var(--brand-ink); font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 32px; height: 32px; font-size: var(--fs-xs); }
.avatar--lg { width: 64px; height: 64px; font-size: var(--fs-xl); }
.avatar--xl { width: 88px; height: 88px; font-size: var(--fs-2xl); }

/* key/value */
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.kv > div { padding: var(--s3); border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.kv small { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.kv b { display: block; font-weight: 750; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.sum { display: flex; flex-direction: column; gap: 8px; }
.sum__row { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); color: var(--text-2); }
.sum__row b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.sum__row--total { padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: var(--fs-md); color: var(--text); font-weight: 800; }
.sum__row--total b { font-size: var(--fs-lg); font-weight: 850; }

/* progress timeline (horizontal) */
.steps { display: flex; align-items: flex-start; gap: 0; }
.steps__item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: var(--fs-2xs); font-weight: 650; color: var(--text-3); }
.steps__item::before { content: ""; position: absolute; top: 12px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps__item:last-child::before { display: none; }
.steps__dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); color: var(--text-3); font-size: 11px; font-weight: 800; }
.steps__item.is-done { color: var(--success-ink); }
.steps__item.is-done .steps__dot { background: var(--success); border-color: var(--success); color: #fff; }
.steps__item.is-done::before { background: var(--success); }
.steps__item.is-current { color: var(--brand-ink); }
.steps__item.is-current .steps__dot { border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 5px var(--brand-soft); animation: pulse-ring 1.8s var(--ease-out) infinite; }

/* vertical timeline */
.vline { position: relative; display: flex; flex-direction: column; gap: var(--s4); padding-inline-start: 26px; }
.vline::before { content: ""; position: absolute; inset-inline-start: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.vline__item { position: relative; }
.vline__item::before { content: ""; position: absolute; inset-inline-start: -23px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); }
.vline__item.is-done::before { border-color: var(--success); background: var(--success); }
.vline__item.is-current::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* horizontal rail */
.rail { display: flex; gap: var(--s3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* ------------------------------------------------------- sheets / dialogs */
.sheet-host { position: fixed; inset: 0; z-index: var(--z-sheet); pointer-events: none; }
.sheet-host:empty { display: none; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--d-3) var(--ease-out); pointer-events: auto; }
.sheet {
  position: absolute; inset-inline: 0; bottom: 0; margin-inline: auto;
  width: 100%; max-width: 640px; max-height: calc(100dvh - var(--safe-top) - 24px);
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-sheet);
  transform: translateY(104%); transition: transform var(--d-3) var(--ease-out);
  pointer-events: auto; overscroll-behavior: contain; outline: none;
}
.sheet--full { height: calc(100dvh - var(--safe-top) - 12px); max-height: none; }
.sheet.is-dragging { transition: none; }
.sheet-layer.is-open .scrim { opacity: 1; }
.sheet-layer.is-open .sheet { transform: translateY(0); }
.sheet-layer { position: absolute; inset: 0; }
.sheet__grab { flex: none; height: 26px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet__grab::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.sheet__head { flex: none; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4) var(--s3); }
.sheet__title { flex: 1; min-width: 0; font-size: var(--fs-lg); font-weight: 800; }
.sheet__sub { font-size: var(--fs-xs); color: var(--text-3); font-weight: 500; }
.sheet__body { flex: 1 1 auto; overflow-y: auto; padding: 0 var(--s4) var(--s4); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__foot { flex: none; padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: var(--s2); }
.sheet__foot > .btn { flex: 1; }
@media (min-width: 720px) {
  .sheet { bottom: auto; top: 50%; border-radius: var(--r-xl); transform: translateY(-46%) scale(0.97); opacity: 0; transition: transform var(--d-3) var(--ease-out), opacity var(--d-2) var(--ease-out); max-height: min(86vh, 860px); }
  .sheet-layer.is-open .sheet { transform: translateY(-50%) scale(1); opacity: 1; }
  .sheet--full { height: min(88vh, 900px); }
  .sheet__grab { height: 12px; }
  .sheet__grab::before { display: none; }
  .sheet__foot { padding-bottom: var(--s3); border-radius: 0 0 var(--r-xl) var(--r-xl); }
}

/* ----------------------------------------------------------------- toast */
.toasts { position: fixed; z-index: var(--z-toast); inset-inline: 0; top: calc(var(--safe-top) + 12px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast {
  pointer-events: auto; max-width: min(92vw, 460px);
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: var(--r-md); background: var(--surface-inverse); color: var(--text-inverse);
  box-shadow: var(--sh-3); font-size: var(--fs-sm); font-weight: 650; line-height: 1.6;
  animation: toast-in var(--d-3) var(--ease-spring) both;
}
.toast.is-leaving { animation: toast-out var(--d-2) var(--ease-in) both; }
.toast .i { flex: none; }
.toast--success .i { color: #34d399; }
.toast--error { background: var(--danger); color: #fff; }
.toast--error .i { color: #fff; }

/* ------------------------------------------------------------------ table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { position: sticky; top: 0; background: var(--surface-2); color: var(--text-3); font-weight: 700; font-size: var(--fs-xs); text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--d-1); }
.table tbody tr:hover { background: var(--surface-2); }

/* --------------------------------------------------------------- motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(-100%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(0.97); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 var(--brand-soft-2); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.anim-in { animation: fade-up var(--d-3) var(--ease-out) both; }
.stagger > * { animation: fade-up var(--d-3) var(--ease-out) both; }
.stagger > *:nth-child(2) { animation-delay: 40ms; }
.stagger > *:nth-child(3) { animation-delay: 80ms; }
.stagger > *:nth-child(4) { animation-delay: 120ms; }
.stagger > *:nth-child(5) { animation-delay: 160ms; }
.stagger > *:nth-child(6) { animation-delay: 200ms; }
.stagger > *:nth-child(n+7) { animation-delay: 240ms; }
@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; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

/* ------------------------------------------------------------- utilities */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: var(--s1); } .mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); }
.mb-2 { margin-bottom: var(--s2); } .mb-3 { margin-bottom: var(--s3); } .mb-4 { margin-bottom: var(--s4); }
.p-0 { padding: 0 !important; }
.w-full { width: 100%; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: initial; } .show-sm-only { display: none !important; } }
