/* ===================================================================
   FrontDesk AI — shared design system · Gnovate brand (flagship)
   Used by the client console (index.html) and the superadmin
   console (admin.html). Dark default + light theme. No deps.
   Brand: violet #7C3AED → pink #DB2777, amber #F59E0B, teal #0D9488.
   Fonts: Space Grotesk (display) + Inter (body). Class/token names
   are kept stable so existing HTML/JS keep working.
   =================================================================== */

:root {
  /* brand — Gnovate */
  --violet: #7c3aed; --pink: #db2777; --amber: #f59e0b;
  --teal: #0d9488; --tealb: #2dd4bf;
  --brand: linear-gradient(118deg, var(--violet), var(--pink));

  /* legacy brand aliases (kept for existing rules) */
  --brand-400: #a78bfa;       /* bright accent / hover borders  */
  --brand-500: #8b5cf6;       /* focus border                   */
  --brand-600: #b794f6;       /* links / icon-hover (reads on dark) */
  --brand-700: #c4b5fd;       /* brand text on surfaces         */
  --brand-grad: var(--brand); /* now violet → pink              */
  --accent: #2dd4bf;          /* teal secondary                 */
  --accent-soft: rgba(45,212,191,.14);

  /* surfaces — dark default */
  --bg: #0b0a12;
  --bg-2: #110f1b;
  --surface: #16131f;
  --surface-2: #1c1829;
  --ink: #ece9f3;
  --ink-2: #c7c1d6;
  --muted: #978fab;
  --faint: #625b74;
  --line: rgba(255,255,255,.085);
  --line-2: rgba(255,255,255,.05);

  /* semantic */
  --ok: #2bd39a;   --ok-soft: rgba(43,211,154,.13);
  --warn: #f5a623; --warn-soft: rgba(245,166,35,.13);
  --bad: #ff5d7a;  --bad-soft: rgba(255,93,122,.13);
  --info: #60a5fa; --info-soft: rgba(96,165,250,.13);

  /* shape + motion */
  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 10px 26px -14px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.3);
  --sh-3: 0 26px 60px -24px rgba(0,0,0,.78), 0 8px 20px rgba(0,0,0,.4);
  --sh-brand: 0 12px 30px -10px rgba(124,58,237,.55);
  --ease: cubic-bezier(.16,1,.3,1);
  --fast: .18s var(--ease);
  --med: .3s var(--ease);
  --font-d: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --brand-400: #8b5cf6; --brand-500: #7c3aed; --brand-600: #6d28d9; --brand-700: #6d28d9;
  --accent: #0d9488; --accent-soft: rgba(13,148,136,.1);
  --bg: #f5f3fa; --bg-2: #eceaf4;
  --surface: #ffffff; --surface-2: #f4f1fa;
  --ink: #17132a; --ink-2: #3a3350; --muted: #5f5872; --faint: #938bab;
  --line: rgba(20,12,40,.1); --line-2: rgba(20,12,40,.06);
  --ok: #0b9e68;   --ok-soft: rgba(11,158,104,.1);
  --warn: #b9760a; --warn-soft: rgba(185,118,10,.1);
  --bad: #df2d4b;  --bad-soft: rgba(223,45,75,.09);
  --info: #2563eb; --info-soft: rgba(37,99,235,.1);
  --sh-1: 0 1px 2px rgba(60,40,110,.08);
  --sh-2: 0 6px 18px rgba(60,40,110,.12), 0 2px 6px rgba(60,40,110,.06);
  --sh-3: 0 18px 48px rgba(60,40,110,.2), 0 6px 16px rgba(60,40,110,.1);
  --sh-brand: 0 10px 26px -8px rgba(124,58,237,.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { color-scheme: dark; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px; line-height: 1.55;
  overflow-x: hidden;
}

/* animated brand mesh (behind everything) */
#mesh { position: fixed; inset: 0; z-index: -2; opacity: .6; pointer-events: none; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(124,58,237,.3); }

/* scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--line-2); background-clip: padding-box; }

/* ---------- typography helpers ---------- */
h1,h2,h3 { margin: 0; font-family: var(--font-d); font-weight: 600; letter-spacing: -.015em; }
.h-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-600); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 650; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 7px; font-size: 12.5px; font-family: ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; color: var(--tealb); }
.center { text-align: center; }
.hide { display: none !important; }

/* ---------- layout primitives ---------- */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 8px; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 14px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-2);
  transition: box-shadow var(--med), transform var(--med), border-color var(--med);
}
.card.hover:hover { box-shadow: var(--sh-3); transform: translateY(-2px); border-color: var(--line); }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.card-h h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card-sub { color: var(--muted); font-size: 13.5px; margin: -4px 0 14px; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- buttons — filled primary, quiet secondary ---------- */
.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 11px;
  background: var(--brand); color: #fff;
  box-shadow: var(--sh-brand);
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast), background var(--fast), border-color var(--fast);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 34px -10px rgba(124,58,237,.6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.2); }
.btn.ok { background: var(--ok); color: #042014; box-shadow: 0 12px 28px -12px rgba(43,211,154,.6); }
.btn.ghost { background: var(--surface); color: var(--brand-600); border-color: var(--line); box-shadow: var(--sh-1); }
.btn.ghost:hover { border-color: var(--brand-400); background: var(--surface-2); box-shadow: var(--sh-2); }
.btn.subtle { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; }
.btn.subtle:hover { background: var(--surface); border-color: var(--line); box-shadow: var(--sh-1); }
.btn.danger { background: linear-gradient(135deg,#ff7a90,#dc2626); color: #fff; box-shadow: 0 12px 28px -12px rgba(220,38,38,.55); }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 13px 24px; font-size: 15px; border-radius: 13px; }
.btn.block { width: 100%; }
/* ripple */
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.4); pointer-events: none; animation: ripple .6s var(--ease); }
.btn.ghost .ripple, .btn.subtle .ripple { background: rgba(124,58,237,.22); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.iconbtn { appearance: none; border: 1px solid var(--line); background: var(--surface); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: all var(--fast); font-size: 15px; }
.iconbtn:hover { background: var(--surface-2); border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-1px); }

/* ---------- forms ---------- */
label.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 12px 0 5px; }
label.lbl .hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 11px 13px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 11px;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(124,58,237,.2); background: var(--surface); }
textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23978fab' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field { margin: 0; }

/* ---------- chips / badges / status dots ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); line-height: 1.6; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.brand { background: rgba(124,58,237,.16); color: var(--brand-700); border-color: rgba(124,58,237,.3); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--faint); box-shadow: 0 0 0 3px rgba(255,255,255,.03); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.off { background: var(--faint); }
.dot.pulse { animation: dotpulse 1.8s infinite; }
@keyframes dotpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(43,211,154,.5);} 50%{ box-shadow: 0 0 0 6px rgba(43,211,154,0);} }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 14px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 15px; overflow: hidden; box-shadow: var(--sh-1); transition: transform var(--med), box-shadow var(--med); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); opacity: .95; }
.stat b { display: block; font-family: var(--font-d); font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat .ic { position: absolute; top: 13px; right: 13px; font-size: 16px; opacity: .55; }
.stat.g1::before { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }
.stat.g2::before { background: linear-gradient(135deg,#db2777,#a21caf); }
.stat.g3::before { background: linear-gradient(135deg,#f59e0b,#f97316); }
.stat.g4::before { background: linear-gradient(135deg,#2dd4bf,#0d9488); }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 9px 10px; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); }
.tbl tr { transition: background var(--fast); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.clickable:hover { background: var(--surface-2); }
.empty { padding: 26px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .em-ic { font-size: 30px; display: block; margin-bottom: 8px; opacity: .8; }

/* ---------- chat bubbles ---------- */
.chat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 80%; padding: 10px 13px; border-radius: 15px; font-size: 14px; line-height: 1.5; animation: pop .26s var(--ease); white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; box-shadow: var(--sh-1); }
.bubble.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: var(--sh-1); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; border-bottom-left-radius: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.3s infinite; }
.typing i:nth-child(2){ animation-delay: .2s; } .typing i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{ opacity:.25; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-3px);} }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 13px 15px; border-radius: 13px; box-shadow: var(--sh-3); animation: toastin .32s var(--ease); font-size: 14px; }
.toast.out { animation: toastout .3s var(--ease) forwards; }
.toast .t-ic { font-size: 16px; line-height: 1.3; }
.toast.ok { border-color: transparent; background: linear-gradient(135deg,#17a877,#0d9488); color: #fff; }
.toast.bad { border-color: transparent; background: linear-gradient(135deg,#ff6b84,#dc2626); color: #fff; }
.toast.info { border-color: transparent; background: linear-gradient(135deg,#1c1829,#16131f); color: var(--ink); }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(.96);} to { opacity:1; transform: none;} }
@keyframes toastout { to { opacity: 0; transform: translateX(30px);} }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(5,3,12,.62); backdrop-filter: blur(5px); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .22s var(--ease); }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); width: 100%; max-width: 480px; box-shadow: var(--sh-3); animation: modalin .3s var(--ease); max-height: 92vh; overflow: auto; }
.modal.wide { max-width: 640px; }
.modal-h { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.modal-h h2 { font-size: 19px; font-weight: 600; }
.modal-b { padding: 16px 24px 24px; }
@keyframes modalin { from { opacity: 0; transform: translateY(18px) scale(.97);} to { opacity:1; transform: none;} }
@keyframes fade { from { opacity: 0;} to { opacity: 1;} }

/* ---------- skeletons ---------- */
.sk { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- animations utility ---------- */
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98);} to { opacity:1; transform:none;} }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px);} to { opacity:1; transform:none;} }
@keyframes spin { to { transform: rotate(360deg);} }
.fadeup { animation: fadeup .5s var(--ease) both; }
.d1{animation-delay:.05s} .d2{animation-delay:.1s} .d3{animation-delay:.15s} .d4{animation-delay:.2s} .d5{animation-delay:.25s} .d6{animation-delay:.3s}
.spinner { width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner.dark { border-color: rgba(124,58,237,.25); border-top-color: var(--brand-500); }
/* scroll-reveal (stagger) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- progress bar ---------- */
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .5s var(--ease); }

/* ---------- auth screen ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; background:
  radial-gradient(1100px 700px at 12% -10%, rgba(124,58,237,.22), transparent 55%),
  radial-gradient(900px 600px at 100% 110%, rgba(219,39,119,.18), transparent 55%),
  var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(55px); opacity: .5; animation: float 14s ease-in-out infinite; }
.orb.a { width: 340px; height: 340px; background: var(--violet); top: -70px; left: -60px; }
.orb.b { width: 300px; height: 300px; background: var(--pink); bottom: -80px; right: -40px; animation-delay: -5s; }
.orb.c { width: 220px; height: 220px; background: var(--amber); bottom: 20%; left: 8%; opacity: .25; animation-delay: -9s; }
@keyframes float { 0%,100%{ transform: translateY(0) translateX(0);} 50%{ transform: translateY(-26px) translateX(16px);} }
.auth-card { position: relative; z-index: 2; width: 100%; max-width: 390px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 34px 30px; animation: modalin .5s var(--ease); }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: rgba(124,58,237,.14); border: 1px solid rgba(124,58,237,.22); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; box-shadow: 0 4px 14px -6px rgba(124,58,237,.6); }
.brand .logo svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 6px rgba(124,58,237,.45)); }
.brand .logo.gn { background: transparent; border: none; box-shadow: none; }
.brand em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- app shell (sidebar) ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); color: var(--ink-2); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); }
.side .brand { color: var(--ink); margin: 4px 8px 20px; }
.side .bizpick { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 4px 14px; }
.side .bizpick select { background: transparent; border: none; color: var(--ink); padding: 2px 0; font-weight: 600; box-shadow: none; }
.side .bizpick select:focus { box-shadow: none; }
.side .bizpick select option { color: #17132a; }
.side .bizpick .lbl { color: var(--muted); margin: 0 0 2px; }
.navi { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.navi button { appearance: none; border: none; background: transparent; color: var(--muted); text-align: left; font: inherit; font-size: 14px; font-weight: 550; padding: 10px 12px; border-radius: 11px; cursor: pointer; display: flex; align-items: center; gap: 11px; transition: all var(--fast); position: relative; }
.navi button .nic { width: 18px; height: 18px; flex: none; opacity: .9; }
.navi button:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.navi button.active { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.navi .badge { margin-left: auto; background: var(--amber); color: #241500; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.side .foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.side .who { font-size: 12.5px; color: var(--muted); padding: 0 8px 8px; }
.side .who b { color: var(--ink); font-weight: 600; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar h1 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.topbar .sub { font-size: 13px; color: var(--muted); }
.content { padding: 24px 28px 48px; max-width: 1180px; width: 100%; margin: 0 auto; }
.pane { animation: fadeup .4s var(--ease) both; }

/* section grid helpers */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* mobile nav toggle */
.menu-btn { display: none; }

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 120; width: 272px; left: 0; top: 0; transform: translateX(-100%); transition: transform var(--med); box-shadow: var(--sh-3); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .scrim { position: fixed; inset: 0; background: rgba(5,3,12,.5); z-index: 110; animation: fade .2s var(--ease); }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) {
  .stat b { font-size: 25px; }
  .modal { border-radius: var(--r-lg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
