/* =============================================================
   Salizon — design system (Supabase-dashboard inspired)
   Single stylesheet, no framework. ~Mobile first.
   ============================================================= */

:root {
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #171717;
  --bg-alt: #1c1c1c;
  --surface: #1f1f1f;
  --surface-2: #232323;
  --surface-hover: #262626;
  --border: #2e2e2e;
  --border-strong: #3a3a3a;
  --text: #ededed;
  --text-2: #b4b4b4;
  --muted: #8f8f8f;
  --brand: #3ecf8e;
  --brand-strong: #2fb57a;
  --brand-dim: rgba(62, 207, 142, .12);
  --brand-border: rgba(62, 207, 142, .35);
  --on-brand: #0b1f16;
  --warn: #f5a524;
  --danger: #f06565;
  --info: #5b9bf7;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);

  --radius: 6px;
  --radius-lg: 10px;
  --topbar: 48px;
  --sidebar: 224px;
  --content-max: 1200px;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --surface-hover: #f0f0f1;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #171717;
  --text-2: #3f3f46;
  --muted: #71717a;
  --brand: #1f9d63;
  --brand-strong: #157a4c;
  --brand-dim: rgba(31, 157, 99, .10);
  --brand-border: rgba(31, 157, 99, .35);
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh; display: flex; flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.05rem; }
h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
code, kbd, pre { font-family: var(--mono); font-size: .86em; }
pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; overflow: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); }
.icon { width: 18px; height: 18px; flex: none; }
.icon--green { color: var(--brand); }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: .5rem .75rem; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 0 .75rem; background: var(--bg); border-bottom: 1px solid var(--border);
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.topbar__crumb-sep { color: var(--border-strong); }
.topbar__crumb { color: var(--text-2); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--text); }
.brand__mark { width: 22px; height: 22px; color: var(--brand); }
.brand__name { font-size: 1rem; letter-spacing: -.01em; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border); }
.icon--moon { display: none; }
[data-theme="light"] .icon--sun { display: none; }
[data-theme="light"] .icon--moon { display: block; }
.cmd {
  display: inline-flex; align-items: center; gap: .5rem; height: 34px; padding: 0 .6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted); cursor: pointer; font: inherit; font-size: .85rem;
}
.cmd:hover { border-color: var(--border-strong); color: var(--text-2); }
.cmd .icon { width: 15px; height: 15px; color: var(--brand); }
.cmd__kbd { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0 .35rem; font-size: .7rem; color: var(--muted); }
.topbar .topbar__cta { display: none; }
@media (min-width: 640px) { .topbar .topbar__cta { display: inline-flex; } }
@media (max-width: 639px) { .cmd__label, .cmd__kbd { display: none; } .cmd { width: 34px; padding: 0; justify-content: center; } .topbar__crumb, .topbar__crumb-sep { display: none; } }
@media (max-width: 359px) { .brand__name { display: none; } }

/* ---------- shell / sidebar ---------- */
.shell { display: flex; flex: 1; min-height: calc(100dvh - var(--topbar)); }
.sidebar {
  position: fixed; z-index: 45; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar);
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg); border-right: 1px solid var(--border);
  padding: .75rem .5rem; transform: translateX(-100%); transition: transform .22s ease;
  overflow-y: auto;
}
.sidebar.is-open { transform: none; }
.sidebar__scrim { position: fixed; inset: var(--topbar) 0 0 0; background: rgba(0,0,0,.5); z-index: 44; }
.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: var(--radius);
  color: var(--text-2); font-size: .9rem; font-weight: 500;
}
.nav-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-item.is-active { background: var(--surface-2); color: var(--text); }
.nav-item.is-active .icon { color: var(--brand); }
.nav-item .badge { margin-left: auto; }
.nav-item--muted { color: var(--muted); font-size: .85rem; }
.sidebar__footer { display: flex; flex-direction: column; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.status { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted); padding: 0 .6rem; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
@media (min-width: 1024px) {
  .sidebar { transform: none; }
  .sidebar__scrim, .topbar__menu { display: none !important; }
  .shell { padding-left: var(--sidebar); }
}
body.sidebar-locked { overflow: hidden; }

/* ---------- content ---------- */
.content { flex: 1; min-width: 0; width: 100%; overflow-x: clip; }
.page { max-width: var(--content-max); margin: 0 auto; padding: 1.25rem 1rem 3rem; }
@media (min-width: 768px) { .page { padding: 2rem 2rem 4rem; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head p { margin: .35rem 0 0; color: var(--muted); max-width: 60ch; }
.section { margin: 2.5rem 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section__head h2 { margin: 0; font-size: 1.15rem; }
.section__head a { color: var(--brand); font-size: .85rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }

/* ---------- buttons / badges / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 38px; padding: 0 .95rem;
  border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-hover); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { color: var(--text); }
.btn--sm { height: 32px; padding: 0 .75rem; font-size: .82rem; }
.btn--lg { height: 44px; padding: 0 1.25rem; font-size: .95rem; }
.btn--icon { width: 38px; padding: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.badge--green { background: var(--brand-dim); border-color: var(--brand-border); color: var(--brand); }
.badge--warn { background: rgba(245,165,36,.12); border-color: rgba(245,165,36,.35); color: var(--warn); }
.badge--info { background: rgba(91,155,247,.12); border-color: rgba(91,155,247,.35); color: var(--info); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font: inherit; font-size: .8rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.chip:hover { border-color: var(--brand-border); color: var(--brand); }

/* ---------- cards / grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.card--hover { transition: border-color .15s, transform .15s; }
.card--hover:hover { border-color: var(--border-strong); }
.card__icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-dim); color: var(--brand); margin-bottom: .9rem; }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .75rem; color: var(--brand); font-size: .85rem; font-weight: 500; }
.card__link .icon { width: 14px; height: 14px; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* stat tiles (Supabase "usage" style) */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.15rem; }
.stat__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat__value { font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; margin: .2rem 0; }
.stat__hint { font-size: .8rem; color: var(--muted); }
.stat__hint b { color: var(--brand); font-weight: 600; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 2.5rem 0 1.5rem; }
.hero::before { content: ""; position: absolute; inset: -4rem -2rem auto; height: 24rem; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 20% 0%, var(--brand-dim), transparent 60%); }
.hero h1 { max-width: 20ch; }
.hero p.lead { font-size: 1.05rem; color: var(--text-2); max-width: 56ch; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .hero { padding: 3.5rem 0 2rem; } .hero p.lead { font-size: 1.15rem; } }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }

/* mock dashboard panel in hero */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel__bar { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); font-size: .75rem; color: var(--muted); }
.panel__dots { display: flex; gap: 5px; }
.panel__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.panel__body { padding: 1rem; display: grid; gap: .75rem; }
.panel__row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: .85rem; }
.panel__row small { display: block; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.bars i { flex: 1; background: var(--brand); opacity: .35; border-radius: 2px 2px 0 0; }
.bars i:nth-child(3n) { opacity: .9; }

/* ---------- tables ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg-alt); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-hover); }
td .muted { font-size: .8rem; }
td .flex { flex-wrap: nowrap; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, select, textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: .6rem .75rem; min-height: 40px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.input::placeholder, textarea::placeholder { color: var(--muted); }
.form-grid { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.alert { padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); font-size: .9rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert--ok { border-color: var(--brand-border); background: var(--brand-dim); color: var(--brand); }
.alert--err { border-color: rgba(240,101,101,.4); background: rgba(240,101,101,.1); color: var(--danger); }
.alert--warn { border-color: rgba(245,165,36,.4); background: rgba(245,165,36,.1); color: var(--warn); }

/* ---------- misc blocks ---------- */
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.list-check li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); }
.list-check .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; font-size: .9rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.cta-band { background: linear-gradient(135deg, var(--brand-dim), transparent 70%), var(--surface); border: 1px solid var(--brand-border); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.cta-band h2 { margin: 0 0 .25rem; } .cta-band p { margin: 0; color: var(--text-2); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.timeline li { position: relative; padding-left: 2.75rem; }
.timeline li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-dim); color: var(--brand); font-weight: 600; font-size: .85rem; border: 1px solid var(--brand-border); }
.timeline h3 { margin-bottom: .2rem; font-size: 1rem; }
.timeline p { margin: 0; color: var(--text-2); font-size: .92rem; }
.logo-strip { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; color: var(--muted); font-size: .85rem; }
.logo-strip span { padding: .3rem .7rem; border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); margin-top: auto; }
.footer__inner { max-width: var(--content-max); margin: 0 auto; padding: 2rem 1rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding: 2.5rem 2rem; margin-left: calc(var(--sidebar)); max-width: none; } .footer__bar { margin-left: var(--sidebar); } }
.footer__col { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; }
.footer__col a { color: var(--text-2); } .footer__col a:hover { color: var(--brand); }
.footer__col h4 { margin-bottom: .35rem; }
.footer__col--brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer__col--brand { grid-column: auto; } }
.footer__bar { border-top: 1px solid var(--border); padding: .9rem 1rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--muted); }
@media (min-width: 1024px) { .footer__bar { padding: .9rem 2rem; } }

/* ---------- AI drawer ---------- */
.ai-drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; pointer-events: none; }
.ai-drawer__scrim { position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.ai-drawer__panel {
  pointer-events: auto; width: min(100%, 440px); height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); border-left: 1px solid var(--border); box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform .25s ease;
}
.ai-drawer.is-open .ai-drawer__panel { transform: none; }
.ai-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--border); }
.ai-drawer__title { display: flex; gap: .7rem; }
.ai-drawer__title h2 { font-size: 1rem; margin: 0; }
.ai-drawer__title p { margin: .15rem 0 0; font-size: .8rem; }
.ai-drawer__body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.ai-drawer__form { display: flex; gap: .5rem; align-items: flex-end; padding: .75rem 1rem; border-top: 1px solid var(--border); }
.ai-drawer__form textarea { min-height: 40px; max-height: 160px; line-height: 1.4; }
.ai-drawer__foot { margin: 0; padding: 0 1rem .75rem; font-size: .72rem; text-align: center; }
.ai-drawer__foot a { color: var(--brand); }
.msg { display: flex; }
.msg--user { justify-content: flex-end; }
.msg__bubble { max-width: 88%; padding: .65rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg--ai .msg__bubble { background: var(--surface); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg--user .msg__bubble { background: var(--brand); color: var(--on-brand); border-top-right-radius: 4px; }
.msg__bubble a { color: var(--brand); text-decoration: underline; }
.msg__bubble strong { font-weight: 600; }
.msg__bubble ul { margin: .35rem 0; padding-left: 1.2rem; }
.msg--err .msg__bubble { border-color: rgba(240,101,101,.4); color: var(--danger); }
.typing { display: inline-flex; gap: 3px; align-items: center; height: 1em; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }

/* ---------- AI Studio page ---------- */
.studio { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .studio { grid-template-columns: 1fr 1fr; align-items: start; } }
.studio__out { min-height: 260px; }
.studio__out h3 { font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.estimate { display: grid; gap: .75rem; }
.estimate__row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: .9rem; }
.estimate__row b { color: var(--brand); font-weight: 600; white-space: nowrap; }
.prose { font-size: .92rem; color: var(--text-2); }
.prose h3, .prose h4 { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1rem; margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; } .prose li { margin: .25rem 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand); text-decoration: underline; }
.prose code { background: var(--bg-alt); border: 1px solid var(--border); padding: .05em .35em; border-radius: 4px; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; }
.tab { font: inherit; font-size: .88rem; padding: .6rem .9rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-color: var(--brand); }

/* ---------- auth / small pages ---------- */
.auth { max-width: 420px; margin: 3rem auto; }
.auth .card { padding: 1.75rem; }
.auth h1 { font-size: 1.4rem; }

/* ---------- utilities ---------- */
.flex { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
