/*
 * Nexus ERP — "Slate"
 * Hand-authored: shared hosting has no build step, so there is no Tailwind here.
 *
 * Three rules drive the look:
 *   1. One saturated colour. Blue means "you can act here" — buttons, links,
 *      focus, the active nav pill. Nowhere else.
 *   2. Near-neutral chrome. Slate greys carry the interface; semantic colour
 *      (in / out / attention) is the only other hue and always means something.
 *   3. Figures in mono, so money and quantities align down every column.
 */

:root {
  --canvas: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --hairline: #e2e8f0;
  --hairline-2: #cbd5e1;

  --ink: #0f172a;
  --ink-2: #475569;   /* 7.5:1 on white */
  --ink-3: #64748b;   /* 4.8:1 on white — safe for micro-labels */
  --ink-4: #94a3b8;   /* placeholders and decorative glyphs only */

  /* `info` is cyan rather than blue so a status chip never reads as a button. */
  --pos: #047857;  --pos-soft: #e7f8f0;
  --neg: #be123c;  --neg-soft: #fdeef1;
  --attn: #b45309; --attn-soft: #fdf4e3;
  --info: #0e7490; --info-soft: #e6f6fa;

  --accent: #2563eb;   /* 5.2:1 on white — links are readable */
  --accent-soft: #eaf1fe;
  --on-accent: #ffffff;

  --action: #2563eb;
  --action-hover: #1d4ed8;
  --on-action: #ffffff;

  --ring: #2563eb;

  --elevate: 0 1px 2px 0 rgb(15 23 42 / .04), 0 1px 3px -1px rgb(15 23 42 / .04);
  --elevate-md: 0 2px 4px -2px rgb(15 23 42 / .05), 0 8px 20px -8px rgb(15 23 42 / .10);
  --elevate-pop: 0 18px 50px -14px rgb(15 23 42 / .20), 0 0 0 1px rgb(15 23 42 / .04);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;

  /* The rail is charcoal in BOTH themes, so its values are literals. */
  --rail: linear-gradient(180deg, #1e293b 0%, #172033 45%, #0f172a 100%);
  --rail-active: #1d4ed8;   /* 6.7:1 on the white active pill */

  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

html[data-theme="dark"] {
  --canvas: #080b11;
  --surface: #0f1520;
  --surface-2: #131a27;
  --surface-3: #1b2433;
  --hairline: #1f2937;
  --hairline-2: #2d3a4d;

  --ink: #eef2f7;
  --ink-2: #a8b6c8;
  --ink-3: #8496ab;
  --ink-4: #5d6d81;

  --pos: #34d399;  --pos-soft: #06291f;
  --neg: #fb7185;  --neg-soft: #350d18;
  --attn: #fbbf24; --attn-soft: #33240a;
  --info: #22d3ee; --info-soft: #082a33;

  --accent: #7dabf8;
  --accent-soft: #11203a;
  --on-accent: #08182f;

  /* Bright blue needs dark ink on top to clear AA. */
  --action: #3b82f6;
  --action-hover: #60a5fa;
  --on-action: #06122a;

  --ring: #7dabf8;

  --elevate: 0 1px 2px 0 rgb(0 0 0 / .4);
  --elevate-md: 0 2px 4px -2px rgb(0 0 0 / .5), 0 8px 20px -8px rgb(0 0 0 / .6);
  --elevate-pop: 0 18px 50px -14px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .06);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid var(--hairline); }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { letter-spacing: -.028em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: separate; border-spacing: 0; width: 100%; color: inherit; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft); color: var(--ink); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--hairline-2); border-radius: 99px;
  border: 3.5px solid var(--canvas); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); background-clip: padding-box; }

/* ── Figures ─────────────────────────────────────────────── */
.fig, td.num, th.num, input[type=number] {
  font-family: var(--mono);
  font-feature-settings: 'tnum','zero';
  letter-spacing: -.02em;
}
td, th, .fig, input[type=number] { font-variant-numeric: tabular-nums; }
/* The hero figure is sans, not mono — it reads as a headline, not a cell. */
.display {
  font-family: var(--sans); font-variant-numeric: tabular-nums;
  font-weight: 700; letter-spacing: -.045em; line-height: 1;
}

/* ── Shell ───────────────────────────────────────────────── */
.shell { min-height: 100vh; }

/*
 * Charcoal rail. It stays charcoal in dark mode too, so everything inside it
 * uses literal colours rather than palette tokens.
 */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 16rem; z-index: 40;
  display: flex; flex-direction: column;
  background: var(--rail);
  transition: transform .2s ease;
}
.sidebar__brand {
  height: 4rem; display: flex; align-items: center; gap: .75rem;
  padding: 0 1.25rem; flex-shrink: 0; color: #fff;
}
.brandmark {
  height: 2.25rem; width: 2.25rem; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgb(255 255 255 / .16); color: #fff;
}
.brandmark svg { width: 1.15rem; height: 1.15rem; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 0 .75rem .75rem; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .2); border-color: transparent; }
.sidebar__group + .sidebar__group { margin-top: 1.25rem; }
.sidebar__foot { padding: .75rem; flex-shrink: 0; }

.microlabel {
  font-size: .6875rem; font-weight: 700; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3);
}
.sidebar .microlabel { color: rgb(255 255 255 / .62); }

.nav-item {
  position: relative; display: flex; align-items: center; gap: .7rem;
  padding: .5rem .7rem; border-radius: var(--radius-sm); margin-bottom: 1px;
  font-size: .8125rem; font-weight: 500; color: rgb(255 255 255 / .78);
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: rgb(255 255 255 / .10); color: #fff; }
.nav-item.is-active, .nav-item.is-active:hover {
  background: #fff; color: var(--rail-active); font-weight: 700;
  box-shadow: 0 4px 14px -4px rgb(0 0 0 / .3);
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar :focus-visible { outline-color: #fff; }

.sidebar__user {
  display: flex; align-items: center; gap: .7rem;
  background: rgb(255 255 255 / .10); border-radius: 12px; padding: .55rem .6rem;
  color: #fff;
}
.sidebar__avatar {
  height: 2rem; width: 2rem; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .6875rem; font-weight: 700;
  background: rgb(255 255 255 / .2); color: #fff;
}
.sidebar__user .faint { color: rgb(255 255 255 / .62); }
.sidebar__user .btn--quiet { color: rgb(255 255 255 / .72); }
.sidebar__user .btn--quiet:hover { background: rgb(255 255 255 / .14); color: #fff; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: 4rem;
  display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px);
}
.content { padding: 1.5rem 1rem; max-width: 1680px; }
@media (min-width: 640px) { .content { padding: 1.5rem 1.5rem; } }
@media (min-width: 1024px) {
  .body-wrap { padding-left: 16rem; }
  .content { padding: 2rem; }
}
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.is-open { transform: translateX(0); }
  .scrim { position: fixed; inset: 0; z-index: 30; background: rgb(15 23 42 / .45); backdrop-filter: blur(2px); }
}

.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; min-width: 0; }
.breadcrumb .sep { color: var(--ink-4); }

/* ── Surfaces ────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--elevate);
}
.card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--hairline);
}
.card__title { font-size: .9375rem; font-weight: 700; letter-spacing: -.025em; }
.card__sub { font-size: .75rem; color: var(--ink-2); margin-top: .25rem; line-height: 1.35; }
.card__body { padding: 1.25rem; }

.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.link { color: var(--accent); font-weight: 600; text-underline-offset: 2px; }
.link:hover { text-decoration: underline; }

/* ── Page header ─────────────────────────────────────────── */
.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem;
}
.page-head h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.15; }
.page-head p { font-size: .8125rem; color: var(--ink-2); margin-top: .375rem; }

/*
 * Hero variant — reserved for the dashboard and the report views, where the
 * banner gives the section a sense of place. Dense working pages keep the flat
 * header so the vertical space goes to the data. The ridge art is a background
 * image, so applying it is one class and no markup change.
 */
.page-head--hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.9rem;
  min-height: 9.5rem;
  align-items: flex-end;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260' preserveAspectRatio='none'%3E%3Cpath d='M0 168 C 150 128, 300 196, 470 160 C 640 124, 780 186, 940 150 C 1060 122, 1140 154, 1200 142 L1200 260 L0 260 Z' fill='%23c6d2e0' fill-opacity='.55'/%3E%3Cpath d='M0 200 C 170 166, 320 224, 500 194 C 680 164, 820 216, 990 188 C 1100 170, 1150 190, 1200 182 L1200 260 L0 260 Z' fill='%23adbdd0' fill-opacity='.62'/%3E%3Cpath d='M0 232 C 190 206, 360 248, 540 226 C 730 202, 880 240, 1050 222 C 1130 214, 1170 226, 1200 222 L1200 260 L0 260 Z' fill='%238fa3bc' fill-opacity='.75'/%3E%3C/svg%3E"),
    radial-gradient(42% 60% at 72% 16%, rgb(255 255 255 / .92), transparent),
    linear-gradient(105deg, #e8edf3 0%, #dae2ec 48%, #c9d4e2 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}
/* Reports get a faintly cooler wash under the same ridges. */
.page-head--hero.is-steel {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260' preserveAspectRatio='none'%3E%3Cpath d='M0 168 C 150 128, 300 196, 470 160 C 640 124, 780 186, 940 150 C 1060 122, 1140 154, 1200 142 L1200 260 L0 260 Z' fill='%23bed0e6' fill-opacity='.55'/%3E%3Cpath d='M0 200 C 170 166, 320 224, 500 194 C 680 164, 820 216, 990 188 C 1100 170, 1150 190, 1200 182 L1200 260 L0 260 Z' fill='%23a1bad9' fill-opacity='.62'/%3E%3Cpath d='M0 232 C 190 206, 360 248, 540 226 C 730 202, 880 240, 1050 222 C 1130 214, 1170 226, 1200 222 L1200 260 L0 260 Z' fill='%237f9dc4' fill-opacity='.75'/%3E%3C/svg%3E"),
    radial-gradient(42% 60% at 72% 16%, rgb(255 255 255 / .92), transparent),
    linear-gradient(105deg, #e6edf6 0%, #d4e0ef 48%, #bfd2e8 100%);
}
/* The banner keeps its light wash in dark mode, so its text and buttons pin
   their own colours rather than following the palette. */
.page-head--hero h1 { color: #111f33; font-size: 2rem; }
.page-head--hero p  { color: #33465f; font-weight: 500; }
.page-head--hero .btn--ghost {
  background: rgb(255 255 255 / .88); color: #0f172a;
  border-color: rgb(255 255 255 / .7); backdrop-filter: blur(6px);
}
.page-head--hero .btn--ghost:hover:not(:disabled) { background: #fff; border-color: #fff; }
.page-head--hero .btn--primary {
  background: #2563eb; color: #fff; border-color: #2563eb;
  box-shadow: 0 4px 14px -4px rgb(15 23 42 / .45);
}
.page-head--hero .btn--primary:hover:not(:disabled) { background: #1d4ed8; border-color: #1d4ed8; }

/* ── Controls ────────────────────────────────────────────── */
/* Fields sit in a tinted well with no hard border until hover or focus. */
.input, select.input, textarea.input {
  width: 100%; background: var(--surface-2); color: var(--ink);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: .6rem .85rem; font-size: .875rem; line-height: 1.35rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
select.input { cursor: pointer; }
textarea.input { resize: vertical; }
.input::placeholder { color: var(--ink-4); }
.input:hover:not(:disabled):not(:focus) { border-color: var(--hairline-2); }
.input:focus {
  outline: none; background: var(--surface);
  border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft);
}
.input:disabled { background: var(--surface-3); color: var(--ink-3); cursor: not-allowed; }
.input--sm { padding: .4rem .55rem; font-size: .8125rem; }
.input--pill { border-radius: 999px; }

.label { display: block; font-size: .75rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }
.field + .field { margin-top: .9rem; }
.hint { font-size: .75rem; color: var(--ink-3); margin-top: .375rem; line-height: 1.35; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: -.008em;
  padding: .55rem 1rem; border-radius: var(--radius-sm); white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, opacity .15s, transform .15s;
}
.btn svg { width: 15px; height: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(.5px); }
.btn--primary {
  background: var(--action); color: var(--on-action); border-color: var(--action);
  box-shadow: 0 1px 2px rgb(37 99 235 / .24);
}
.btn--primary:hover:not(:disabled) {
  background: var(--action-hover); border-color: var(--action-hover);
  box-shadow: 0 3px 10px -2px rgb(37 99 235 / .34);
}
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline-2); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--ink-4); }
.btn--soft { background: var(--accent-soft); color: var(--accent); }
.btn--quiet { background: transparent; color: var(--ink-2); }
.btn--quiet:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.btn--danger { background: var(--neg); color: #fff; border-color: var(--neg); }
.btn--danger:hover:not(:disabled) { filter: brightness(.92); }
.btn--icon { padding: .5rem; border-radius: 999px; }
.btn--pill { border-radius: 999px; }

/* Soft-filled status pill: tint carries the mood, dot and word carry meaning. */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .6875rem; font-weight: 600; line-height: 1.5;
  padding: .2rem .6rem; border-radius: 999px; white-space: nowrap;
  background: var(--surface-3); color: var(--ink-2);
}
.chip--pos { background: var(--pos-soft); color: var(--pos); }
.chip--neg { background: var(--neg-soft); color: var(--neg); }
.chip--warn { background: var(--attn-soft); color: var(--attn); }
.chip--info { background: var(--info-soft); color: var(--info); }
.chip--brand { background: var(--accent-soft); color: var(--accent); }
.dot { height: 6px; width: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; }

.tabs {
  display: inline-flex; align-items: center; gap: .25rem; padding: .25rem;
  border-radius: 999px; background: var(--surface-3);
  overflow-x: auto; max-width: 100%;
}
.tabs a {
  padding: .4rem .9rem; font-size: .8125rem; font-weight: 600;
  border-radius: 999px; color: var(--ink-3); white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active {
  background: var(--surface); color: var(--accent); box-shadow: var(--elevate-md);
}
.tabs .count { font-size: .6875rem; color: var(--ink-4); margin-left: .4rem; font-family: var(--mono); }
.tabs a.is-active .count { color: var(--accent); opacity: .7; }

/* ── Tables ──────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
.tbl { font-size: .8125rem; }
.tbl thead th {
  position: sticky; top: 0; z-index: 10; background: var(--surface-2);
  text-align: left; padding: .7rem .6rem;
  font-family: var(--sans); font-size: .6875rem; font-weight: 700;
  letter-spacing: .02em; color: var(--ink-3);
  white-space: nowrap; border-bottom: 1px solid var(--hairline);
}
.tbl tbody td { padding: .7rem .6rem; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.tbl tbody tr { transition: background .12s ease; }
.tbl tbody tr:hover { background: var(--accent-soft); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tfoot td {
  padding: .75rem .6rem; font-weight: 700;
  background: var(--surface-2); border-top: 1px solid var(--hairline-2);
}
/* Edge columns keep the card's breathing room so rows never touch the border. */
.tbl th:first-child, .tbl td:first-child { padding-left: 1.1rem; }
.tbl th:last-child,  .tbl td:last-child  { padding-right: 1.1rem; }
.tbl .num { text-align: right; }
.tbl .grouprow td {
  background: var(--surface-3); padding-top: .45rem; padding-bottom: .45rem;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .02em; color: var(--ink-3);
}
/* Fields embedded in a data row run compact — the row sets the rhythm. */
.tbl .input { padding: .4rem .55rem; font-size: .8125rem; border-radius: 8px; }
.tbl input[type=number]::-webkit-outer-spin-button,
.tbl input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tbl input[type=number] { -moz-appearance: textfield; }
.nowrap { white-space: nowrap; }
.trunc { display: block; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.meter { height: 6px; width: 100%; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; }

/* ── Layout utilities ────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
@media (max-width: 1023px) {
  .g3, .g4, .g6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .span3 { grid-column: span 2; }
}
@media (max-width: 639px) {
  /* Wide content grids drop to one column; compact tile grids stay paired
     so KPI figures do not each eat a full screen height. */
  .g2, .g3 { grid-template-columns: 1fr; }
  .g2 > .span2, .g2 > .span3, .g3 > .span2, .g3 > .span3 { grid-column: span 1; }
  .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 > .span2, .g4 > .span3, .g6 > .span2, .g6 > .span3 { grid-column: span 2; }
  .page-head--hero { padding: 1.25rem; min-height: 0; }
  .page-head--hero h1 { font-size: 1.5rem; }
}
.row { display: flex; align-items: center; gap: .5rem; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.ml-auto { margin-left: auto; }
.hide-sm { }
@media (max-width: 767px) { .hide-sm { display: none !important; } }
@media (max-width: 1023px) { .hide-md { display: none !important; } }

/* ── KPI tiles ───────────────────────────────────────────── */
.tile__chip {
  height: 2rem; width: 2rem; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.tile__chip svg { width: 15px; height: 15px; }
/*
 * The headline tile is charcoal, deliberately not the accent — blue stays
 * reserved for things you can click.
 */
.tile--hero {
  background: linear-gradient(140deg, #1e293b 0%, #172033 55%, #0f172a 100%);
  border: 0; color: #fff;
  box-shadow: 0 10px 30px -10px rgb(15 23 42 / .45);
}
.tile--hero .microlabel { color: rgb(255 255 255 / .72); }
.tile--hero .muted, .tile--hero .faint { color: rgb(255 255 255 / .78); }
.tile--hero .tile__chip { background: rgb(255 255 255 / .18); color: #fff; }
.tile--delta {
  display: inline-flex; align-items: center; gap: .1rem;
  font-size: .6875rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px;
}
.tile--hero .tile--delta { background: rgb(255 255 255 / .2); color: #fff; }

/* ── Feedback ────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .75rem .9rem; border-radius: var(--radius-sm); font-size: .8125rem;
  margin-bottom: 1rem;
}
.alert--error { background: var(--neg-soft); color: var(--neg); }
.alert--ok { background: var(--pos-soft); color: var(--pos); }
.alert--warn { background: var(--attn-soft); color: var(--attn); }

.empty { display: flex; flex-direction: column; align-items: center; padding: 4rem 1.5rem; text-align: center; }
.empty__icon {
  height: 3.5rem; width: 3.5rem; border-radius: 16px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}

/* ── Auth ────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.auth__card { width: 100%; max-width: 23rem; }

/* ── Charts ──────────────────────────────────────────────── */
.chart { width: 100%; display: block; }
.chart text { font-family: var(--sans); font-size: 11px; fill: var(--ink-3); }
.chart .grid-line { stroke: var(--hairline); stroke-width: 1; }
.chart .axis-num { font-family: var(--mono); }
.legend { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .6875rem; color: var(--ink-2); margin-top: .5rem; }
.legend i { display: inline-block; height: 7px; width: 7px; border-radius: 50%; margin-right: .3rem; }

@media print {
  .no-print { display: none !important; }
  .sidebar, .topbar { display: none !important; }
  .body-wrap { padding-left: 0 !important; }
  body { background: #fff; }
  .card { border-color: #ddd; box-shadow: none; }
  .page-head--hero { background: #fff !important; padding-left: 0; padding-right: 0; min-height: 0; }
  .page-head--hero h1, .page-head--hero p { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
