/* ==========================================================================
   iEngage design system
   One stylesheet, no framework. Replaces Bootstrap 3 + AdminLTE + skins
   (~370 KB of CSS) and the Morris/Flot/Raphael chart stack (~250 KB of JS).
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  --bg:            #f6f7f9;
  --surface:       #ffffff;
  --surface-2:     #fbfbfd;
  --surface-sunk:  #f2f3f6;
  --border:        #e6e8ee;
  --border-strong: #d6d9e3;

  --text:       #1c2030;
  --text-muted: #646c81;
  --text-faint: #8d95a8;

  --brand:        #5b5bd6;
  --brand-hover:  #4a4ac4;
  --brand-soft:   #eeeefc;
  --brand-ring:   rgba(91, 91, 214, .22);

  --ok:      #12876f;
  --ok-soft: #e4f5f0;
  --warn:      #a76a00;
  --warn-soft: #fdf2df;
  --danger:      #c0392f;
  --danger-soft: #fdeceb;
  --info:      #2a6fb8;
  --info-soft: #e9f2fb;

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

  --shadow-sm: 0 1px 2px rgba(20, 25, 45, .05);
  --shadow:    0 2px 4px rgba(20, 25, 45, .04), 0 6px 18px rgba(20, 25, 45, .05);
  --shadow-lg: 0 8px 20px rgba(20, 25, 45, .08), 0 24px 48px rgba(20, 25, 45, .10);

  --sidebar-w: 254px;
  --topbar-h:  62px;

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

  --speed: .16s;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0e1015;
    --surface:       #161922;
    --surface-2:     #1b1f2a;
    --surface-sunk:  #11141b;
    --border:        #262b38;
    --border-strong: #333a4a;

    --text:       #e8eaf0;
    --text-muted: #9aa3b8;
    --text-faint: #6e778d;

    --brand:       #8b8bf0;
    --brand-hover: #9d9df5;
    --brand-soft:  #20223a;
    --brand-ring:  rgba(139, 139, 240, .26);

    --ok: #4ecfae;      --ok-soft: #14302b;
    --warn: #e0a34a;    --warn-soft: #2f2617;
    --danger: #f0776c;  --danger-soft: #331d1c;
    --info: #6aaced;    --info-soft: #162434;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 2px 4px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .3);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, .35), 0 24px 48px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --bg:            #0e1015;
  --surface:       #161922;
  --surface-2:     #1b1f2a;
  --surface-sunk:  #11141b;
  --border:        #262b38;
  --border-strong: #333a4a;
  --text:       #e8eaf0;
  --text-muted: #9aa3b8;
  --text-faint: #6e778d;
  --brand:       #8b8bf0;
  --brand-hover: #9d9df5;
  --brand-soft:  #20223a;
  --brand-ring:  rgba(139, 139, 240, .26);
  --ok: #4ecfae;      --ok-soft: #14302b;
  --warn: #e0a34a;    --warn-soft: #2f2617;
  --danger: #f0776c;  --danger-soft: #331d1c;
  --info: #6aaced;    --info-soft: #162434;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow:    0 2px 4px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .3);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, .35), 0 24px 48px rgba(0, 0, 0, .45);
}

/* --- base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 640; line-height: 1.25; letter-spacing: -.011em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p  { margin: 0 0 10px; }

a { color: var(--brand); text-decoration: none; transition: color var(--speed); }
a:hover { color: var(--brand-hover); }

code, pre, .mono { font-family: var(--mono); font-size: .9em; }
pre {
  background: var(--surface-sunk); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; overflow: auto;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand-ring); }

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

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform var(--speed) ease;
}

.sidebar__brand {
  height: var(--topbar-h); display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sidebar__logo {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand), #8d6ee8);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
}
.sidebar__name { font-weight: 660; font-size: 15.5px; letter-spacing: -.02em; }

.sidebar__scroll { flex: 1; overflow-y: auto; padding: 14px 12px 20px; }
.sidebar__scroll::-webkit-scrollbar { width: 8px; }
.sidebar__scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

.nav__label {
  font-size: 10.5px; font-weight: 680; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-faint); padding: 0 10px; margin: 18px 0 7px;
}
.nav__label:first-child { margin-top: 2px; }

.nav__item {
  display: flex; align-items: center; gap: 11px;
  padding: 8.5px 11px; margin-bottom: 1px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 520; font-size: 13.6px;
  transition: background var(--speed), color var(--speed);
}
.nav__item:hover { background: var(--surface-sunk); color: var(--text); }
.nav__item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav__item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.nav__item.is-active svg { opacity: 1; }
.nav__badge {
  margin-left: auto; font-size: 11px; font-weight: 640;
  background: var(--surface-sunk); color: var(--text-muted);
  padding: 1px 7px; border-radius: 20px;
}

/* --- topbar --------------------------------------------------------------- */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
}
@supports not (backdrop-filter: blur(1px)) { .topbar { background: var(--surface); } }

.topbar__title { font-weight: 640; font-size: 15.5px; letter-spacing: -.01em; }
.topbar__spacer { flex: 1; }

.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: background var(--speed), color var(--speed);
}
.icon-btn:hover { background: var(--surface-sunk); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

.page { padding: 24px 22px 44px; flex: 1; width: 100%; max-width: 1400px; }
.page__head { margin-bottom: 20px; }
.page__sub { color: var(--text-muted); font-size: 13.5px; margin-top: 3px; }

/* --- cards ---------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card__head {
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.card__title { font-weight: 620; font-size: 14.5px; }
.card__body { padding: 18px; }
.card__foot {
  padding: 13px 18px; border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* --- grid ----------------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack { display: grid; gap: 16px; }

/* --- stat tiles ----------------------------------------------------------- */
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 17px 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--speed), border-color var(--speed);
}
.stat:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.stat__label {
  font-size: 12.5px; color: var(--text-muted); font-weight: 540;
  display: flex; align-items: center; gap: 7px;
}
.stat__label svg { width: 15px; height: 15px; opacity: .75; }
.stat__value {
  font-size: 27px; font-weight: 680; letter-spacing: -.028em;
  margin-top: 7px; font-variant-numeric: tabular-nums; line-height: 1.15;
}
.stat__meta { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }
.stat__delta { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.stat__delta.is-up   { color: var(--ok); }
.stat__delta.is-down { color: var(--danger); }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8.5px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 570; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--speed), border-color var(--speed),
              color var(--speed), box-shadow var(--speed), transform var(--speed);
}
.btn:hover { background: var(--surface-sunk); color: var(--text); }
.btn:active { transform: translateY(.5px); }
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 1px 2px var(--brand-ring);
}
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

.btn--ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn--ghost:hover { background: var(--surface-sunk); color: var(--text); }

.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(1.06); color: #fff; }

.btn--sm { padding: 5.5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn--lg { padding: 11px 20px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }

/* --- forms ---------------------------------------------------------------- */
.field { margin-bottom: 15px; }
.label {
  display: block; font-size: 13px; font-weight: 570;
  margin-bottom: 6px; color: var(--text);
}
.hint { font-size: 12.3px; color: var(--text-muted); margin-top: 5px; }
.req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%; padding: 9.5px 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 13.8px;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3.5px var(--brand-ring);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--surface-sunk); color: var(--text-faint); cursor: not-allowed;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23646c81' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group__addon {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--surface-sunk); border: 1px solid var(--border-strong); border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted); font-size: 13px; white-space: nowrap;
}

.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }

.form-row { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* --- tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-faint);
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-2); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--speed); }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table--compact td, .table--compact th { padding: 8px 13px; }

/* --- badges & alerts ------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2.5px 9px; border-radius: 20px;
  font-size: 11.8px; font-weight: 600; line-height: 1.5;
  background: var(--surface-sunk); color: var(--text-muted);
}
.badge--ok     { background: var(--ok-soft);     color: var(--ok); }
.badge--warn   { background: var(--warn-soft);   color: var(--warn); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info   { background: var(--info-soft);   color: var(--info); }
.badge--brand  { background: var(--brand-soft);  color: var(--brand); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.alert {
  display: flex; gap: 11px; padding: 13px 16px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 13.5px; margin-bottom: 16px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert--ok     { background: var(--ok-soft);     border-color: color-mix(in srgb, var(--ok) 26%, transparent);     color: var(--ok); }
.alert--warn   { background: var(--warn-soft);   border-color: color-mix(in srgb, var(--warn) 26%, transparent);   color: var(--warn); }
.alert--danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 26%, transparent); color: var(--danger); }
.alert--info   { background: var(--info-soft);   border-color: color-mix(in srgb, var(--info) 26%, transparent);   color: var(--info); }
.alert strong { font-weight: 640; }
.alert__body { flex: 1; color: var(--text); }
.alert__body b, .alert__body strong { color: inherit; }

/* --- empty state ---------------------------------------------------------- */
.empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty svg { width: 40px; height: 40px; opacity: .3; margin-bottom: 12px; }
.empty h3 { color: var(--text); margin-bottom: 5px; }

/* --- charts (inline SVG, no chart library) -------------------------------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-text { fill: var(--text-faint); font-size: 11px; font-family: var(--font); }
.chart .area  { fill: url(#areaFill); }
.chart .line  { fill: none; stroke: var(--brand); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .point { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.chart .bar   { fill: var(--brand); rx: 4; transition: opacity var(--speed); }
.chart .bar:hover { opacity: .78; }

.spark { display: block; width: 100%; height: 34px; }
.spark path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.legend__item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.legend__swatch { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }

/* horizontal "top N" bars used across the reports */
.meter { display: grid; gap: 11px; }
.meter__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.meter__name { font-size: 13.2px; font-weight: 520; }
.meter__val { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.meter__track {
  grid-column: 1 / -1; height: 6px; border-radius: 4px;
  background: var(--surface-sunk); overflow: hidden;
}
.meter__fill { height: 100%; border-radius: 4px; background: var(--brand); }

/* --- dropdown ------------------------------------------------------------- */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 7px); min-width: 210px; z-index: 50;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--speed), transform var(--speed), visibility var(--speed);
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border-radius: 7px; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 13.4px; text-align: left; cursor: pointer;
}
.dropdown__item:hover { background: var(--surface-sunk); color: var(--text); }
.dropdown__item svg { width: 16px; height: 16px; opacity: .7; }
.dropdown__sep { height: 1px; background: var(--border); margin: 5px 0; }
.dropdown__head { padding: 9px 10px 7px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }

/* --- avatar / misc -------------------------------------------------------- */
.avatar {
  width: 31px; height: 31px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand), #8d6ee8);
  display: grid; place-items: center; color: #fff; font-weight: 640; font-size: 12.5px;
}
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab {
  padding: 10px 14px; border: 0; background: transparent; cursor: pointer;
  color: var(--text-muted); font: inherit; font-weight: 560; font-size: 13.6px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color var(--speed), border-color var(--speed);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }

.divider { height: 1px; background: var(--border); border: 0; margin: 20px 0; }
.skeleton {
  background: linear-gradient(90deg, var(--surface-sunk) 25%, var(--border) 50%, var(--surface-sunk) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- utilities ------------------------------------------------------------ */
.u-muted { color: var(--text-muted); }
.u-faint { color: var(--text-faint); }
.u-sm { font-size: 12.5px; }
.u-bold { font-weight: 640; }
.u-num { font-variant-numeric: tabular-nums; }
.u-right { text-align: right; }
.u-center { text-align: center; }
.u-nowrap { white-space: nowrap; }
.u-flex { display: flex; align-items: center; gap: 10px; }
.u-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.u-wrap { flex-wrap: wrap; }
.u-mt0 { margin-top: 0; } .u-mt8 { margin-top: 8px; } .u-mt16 { margin-top: 16px; }
.u-mb0 { margin-bottom: 0; } .u-mb8 { margin-bottom: 8px; } .u-mb16 { margin-bottom: 16px; }
.u-hide { display: none !important; }
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }

/* --- auth pages ----------------------------------------------------------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 18px;
  background:
    radial-gradient(1100px 520px at 12% -8%,  var(--brand-soft), transparent 62%),
    radial-gradient(900px 460px at 105% 8%, color-mix(in srgb, var(--info) 11%, transparent), transparent 60%),
    var(--bg);
}
.auth__card {
  width: 100%; max-width: 418px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 34px;
}
.auth__brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 22px; }
.auth__title { text-align: center; margin-bottom: 5px; }
.auth__sub { text-align: center; color: var(--text-muted); font-size: 13.5px; margin-bottom: 24px; }
.auth__foot { text-align: center; margin-top: 20px; font-size: 13.3px; color: var(--text-muted); }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: grid; }
  .scrim {
    position: fixed; inset: 0; z-index: 39; background: rgba(12, 15, 25, .42);
    opacity: 0; visibility: hidden; transition: opacity var(--speed), visibility var(--speed);
  }
  .scrim.is-open { opacity: 1; visibility: visible; }
}
@media (max-width: 640px) {
  .page { padding: 18px 16px 40px; }
  .topbar { padding: 0 16px; }
  .stat__value { font-size: 23px; }
  .auth__card { padding: 26px 22px; }
  .u-truncate { max-width: 150px; }
}

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

@media print {
  .sidebar, .topbar, .scrim, .btn { display: none !important; }
  .main { margin-left: 0; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}
