/* =====================================================================
   KnowliApp 2.0 — Design-System
   Token-basiert, Light/Dark via [data-theme], selbst gehostete Schrift.
   Kein Build-Prozess, keine externen Requests (DSGVO-sicher).
   ===================================================================== */

/* ---- Selbst gehostete Schrift: Inter (SIL OFL) ---- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/inter-latin-800-normal.woff2') format('woff2');
}

/* ---- Design-Tokens ---- */
:root {
  /* Markenfarbe (Indigo) — unverändert, nur Komponenten wurden verfeinert */
  --brand-50:  #eef2ff; --brand-100: #e0e7ff; --brand-200: #c7d2fe;
  --brand-300: #a5b4fc; --brand-400: #818cf8; --brand-500: #6366f1;
  --brand-600: #4f46e5; --brand-700: #4338ca; --brand-800: #3730a3; --brand-900: #312e81;

  /* Akzent (Cyan/Teal) für Diagramme & Highlights */
  --accent-500: #06b6d4; --accent-600: #0891b2;

  /* Semantik */
  --success: #10b981; --success-bg: #ecfdf5;
  --warning: #f59e0b; --warning-bg: #fffbeb;
  --danger:  #ef4444; --danger-bg:  #fef2f2;
  --info:    #3b82f6; --info-bg:    #eff6ff;

  /* Radius / Schatten / Spacing / Bewegung */
  --radius-sm: 10px; --radius: 16px; --radius-lg: 22px; --radius-full: 999px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 2px 6px -2px rgba(15,23,42,.06);
  --shadow:    0 4px 10px -2px rgba(15,23,42,.08), 0 2px 6px -3px rgba(15,23,42,.06);
  --shadow-lg: 0 24px 38px -12px rgba(15,23,42,.16), 0 8px 14px -8px rgba(15,23,42,.08);
  --ring: 0 0 0 3px var(--brand-200);
  --ring-offset: 0 0 0 2px var(--surface), 0 0 0 5px var(--brand-300);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --transition: 160ms var(--ease);
  --transition-slow: 260ms var(--ease);

  /* Spacing-Skala (4px-Basis) — für neue Komponenten; bestehende px/rem-Werte bleiben unangetastet */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
}

/* Light (Standard) */
:root, [data-theme="light"] {
  --bg:        #f5f6fb;
  --bg-soft:   #eceff6;
  --surface:   #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f0f2f8;
  --border:    #e6e8f0;
  --border-strong: #d3d7e3;
  --text:      #0f172a;
  --text-muted:#5b6478;
  --text-faint:#8890a3;
  --overlay:   rgba(15,23,42,.5);
  --brand-soft: var(--brand-50);
  --on-brand:  #ffffff;
}

/* Dark */
[data-theme="dark"] {
  --bg:        #0a0e1a;
  --bg-soft:   #0e1424;
  --surface:   #141a2c;
  --surface-2: #1a2136;
  --surface-3: #212940;
  --border:    #262f47;
  --border-strong: #34405c;
  --text:      #edf0f9;
  --text-muted:#9aa4bd;
  --text-faint:#6b7590;
  --overlay:   rgba(0,0,0,.65);
  --brand-soft: rgba(99,102,241,.16);
  --on-brand:  #ffffff;
  --ring: 0 0 0 3px rgba(129,140,248,.45);
  --ring-offset: 0 0 0 2px var(--surface), 0 0 0 5px rgba(129,140,248,.5);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 2px 6px -2px rgba(0,0,0,.4);
  --shadow:    0 4px 10px -2px rgba(0,0,0,.5), 0 2px 6px -3px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 38px -12px rgba(0,0,0,.65), 0 8px 14px -8px rgba(0,0,0,.5);
}

/* ---- Reset / Basis ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  transition: background var(--transition), color var(--transition);
}
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
p { max-width: 70ch; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--brand-200); color: var(--brand-900); }
[data-theme="dark"] ::selection { background: var(--brand-700); color: #fff; }

/* Ein global konsistenter Fokusring statt Browser-Default — sichtbar für
   Tastatur-Fokus, aber nicht bei Maus-/Touch-Klicks (:focus-visible). */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
button:focus-visible, a:focus-visible { box-shadow: var(--ring-offset); }

/* Sichtbar nur für Tastatur-/Screenreader-Nutzung ("Zum Inhalt springen"). */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--brand-600); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; text-decoration: none; }

/* Nur für Screenreader sichtbarer Text (z.B. Label für Icon-only-Buttons). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Layout-Utilities ---- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
.container-sm { max-width: 480px; }
.container-md { max-width: 760px; }
.stack > * + * { margin-top: 1rem; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px)  { .grid-sm-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-md-3 { grid-template-columns: repeat(3, 1fr); } .grid-md-4 { grid-template-columns: repeat(4,1fr);} }

/* ---- Karten ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card-pad { padding: 1.5rem; }
.card-hover { cursor: pointer; }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.card-glass {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .625rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition), filter var(--transition);
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: var(--on-brand); box-shadow: 0 6px 16px -6px var(--brand-500);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 8px 20px -6px var(--brand-500); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); text-decoration: none; }
.btn-subtle { background: var(--brand-soft); color: var(--brand-600); }
.btn-subtle:hover:not(:disabled) { background: var(--brand-100); text-decoration: none; }
[data-theme="dark"] .btn-subtle:hover:not(:disabled) { background: color-mix(in srgb, var(--brand-500) 28%, transparent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(.94); text-decoration: none; }
.btn-block { width: 100%; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-icon { padding: .5rem; border-radius: var(--radius-sm); }

/* ---- Formulare ---- */
.field { display: block; }
.label { display: block; font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: .4rem; }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: .65rem .85rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover:not(:disabled):not(:focus), .select:hover:not(:disabled):not(:focus) { border-color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-500); box-shadow: var(--ring); outline: none; }
.input:disabled { background: var(--surface-2); color: var(--text-muted); }
.textarea { resize: vertical; min-height: 90px; }
.input-group { position: relative; }
.field-hint { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; }

/* Passwort-Sichtbarkeits-Umschalter */
.input-group .input { padding-right: 2.75rem; }
.input-toggle {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  background: none; border: none; border-radius: var(--radius-sm); color: var(--text-faint); cursor: pointer;
  transition: var(--transition);
}
.input-toggle:hover { color: var(--text-muted); background: var(--surface-2); }

/* ---- Badges / Chips ---- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: var(--radius-full);
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
  line-height: 1.4;
}
.badge-brand   { background: var(--brand-soft); color: var(--brand-600); border-color: transparent; }
.badge-success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: transparent; }
[data-theme="dark"] .badge-success,[data-theme="dark"] .badge-warning,[data-theme="dark"] .badge-danger { background: color-mix(in srgb, currentColor 16%, transparent); }

/* ---- Alerts ---- */
.alert { padding: .85rem 1.05rem; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid transparent; display: flex; gap: .6rem; align-items: flex-start; }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-info    { background: var(--info-bg);    color: var(--info);    }
[data-theme="dark"] .alert-error,[data-theme="dark"] .alert-success,[data-theme="dark"] .alert-info { background: color-mix(in srgb, currentColor 14%, transparent); }

/* ---- Tabellen ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; padding: .8rem 1.1rem; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .85rem 1.1rem; border-top: 1px solid var(--border); }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--surface-2); }

/* ---- Segmented tabs ---- */
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.tab { padding: .5rem .9rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: var(--text-muted); background: transparent; border: none; cursor: pointer; transition: var(--transition); }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { color: var(--brand-600); background: var(--surface); box-shadow: var(--shadow-xs); }

/* ---- Toggle (Theme-Switch etc.) ---- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: var(--transition);
}
.theme-toggle:hover { background: var(--bg-soft); border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---- Toast ---- */
#toast-container {
  position: fixed; bottom: 1.25rem; right: 1.25rem; left: 1.25rem; z-index: 100;
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; pointer-events: none;
}
.toast {
  padding: .8rem 1rem; border-radius: var(--radius-sm); color: #fff; box-shadow: var(--shadow-lg);
  font-size: .9rem; width: 100%; max-width: 340px; animation: toast-in .25s var(--ease);
  pointer-events: auto;
}
.toast-info    { background: #334155; }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-warn    { background: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- Modal ---- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: modal-in .2s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- Auth-Layout ---- */
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { .auth-shell { grid-template-columns: 1.05fr .95fr; } }
.auth-aside {
  display: none; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500) 60%, var(--accent-500));
  background-image:
    radial-gradient(1.5px 1.5px at center, rgba(255,255,255,.35) 1px, transparent 1.5px),
    linear-gradient(135deg, var(--brand-700), var(--brand-500) 60%, var(--accent-500));
  background-size: 26px 26px, cover;
  color: #fff; padding: 3rem;
}
@media (min-width: 960px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside::after { content: ''; position: absolute; inset: 0; background: radial-gradient(650px circle at 82% 15%, rgba(255,255,255,.22), transparent 60%); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 1.5rem; }

/* ---- Motion: sanftes Erscheinen ---- */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.animate-in { animation: fade-up .4s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   APP-SHELL (Dashboard): Sidebar + Topbar + Content
   ===================================================================== */
.app { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .app { grid-template-columns: 268px 1fr; } }

/* Sidebar */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 60;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; transform: translateX(-100%);
  transition: transform var(--transition-slow);
}
.sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 0; height: 100dvh; transform: none; box-shadow: none; } }
.sidebar-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem; font-weight: 800; font-size: 1.15rem; border-bottom: 1px solid var(--border); }
.sidebar-brand .logo { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: 0 4px 10px -3px var(--brand-500); }
.sidebar-nav { padding: .75rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); font-weight: 700; padding: 1rem .75rem .4rem; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem .6rem .95rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500; font-size: .92rem; cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  transition: background var(--transition), color var(--transition);
}
.nav-item::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: var(--radius-full);
  background: var(--brand-600); opacity: 0; transition: opacity var(--transition);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-600); font-weight: 600; }
.nav-item.active::before { opacity: 1; }
.nav-item .nav-ico { width: 20px; height: 20px; flex-shrink: 0; }

/* Backdrop for mobile sidebar */
.sidebar-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 55; display: none; backdrop-filter: blur(1px); }
.sidebar-backdrop.show { display: block; }
@media (min-width: 1024px) { .sidebar-backdrop { display: none !important; } }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 1.15rem; font-weight: 700; }
.topbar-spacer { flex: 1; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer; position: relative; transition: var(--transition);
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--border-strong); }
.icon-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.hamburger { display: inline-grid; }
@media (min-width: 1024px) { .hamburger { display: none; } }

.content { padding: 1.5rem 1.25rem 3rem; max-width: 1200px; margin-inline: auto; width: 100%; }
@media (min-width: 768px) { .content { padding: 2rem; } }

/* Avatar / user menu */
.avatar {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; font-weight: 700; font-size: .85rem;
  border: none; cursor: pointer;
}
.menu { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 50; }
.menu a, .menu button { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--text); background: none; border: none; font: inherit; cursor: pointer; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }

/* KPI-Widgets */
.kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.kpi:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: .85rem; }
.kpi-value { font-size: 1.95rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.kpi-label { color: var(--text-muted); font-size: .85rem; margin-top: .4rem; }
.kpi-trend { font-size: .78rem; font-weight: 600; margin-top: .5rem; display: inline-flex; align-items: center; gap: .25rem; }
.trend-up { color: var(--success); } .trend-down { color: var(--danger); }

/* Widget/Chart-Karten */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.widget-title { font-weight: 700; font-size: 1rem; }
.widget-body { padding: 1.25rem; }
.chart-box { position: relative; height: 280px; }
.chart-box-sm { position: relative; height: 220px; }

/* Section header */
.page-head { margin-bottom: 1.5rem; }
.page-head h2 { font-size: 1.55rem; font-weight: 800; }
.page-head p { color: var(--text-muted); margin-top: .3rem; }

/* Empty state */
.empty { text-align: center; padding: 2.75rem 1.25rem; color: var(--text-faint); }
.empty-ico { font-size: 2.5rem; margin-bottom: .6rem; }

/* Progress bar */
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-500); border-radius: 99px; transition: width .5s ease; }

/* List rows (notifications etc.) */
.list-row { display: flex; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: none; }

/* Utility */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; }
.mt-1 { margin-top:.5rem;} .mt-2 { margin-top:1rem;} .mt-3{margin-top:1.5rem;} .mb-2{margin-bottom:1rem;}
.text-sm { font-size: .875rem; } .text-xs { font-size: .78rem; } .fw-600 { font-weight: 600; } .fw-700{font-weight:700;}
.w-full { width: 100%; }
