/* Presentation only. Existing page DOM, data handlers and routes remain intact.
   Surface/radius palette adapted from the reviewed 12ui LayerDoc. */
:root {
  --primary: #482653;
  --accent: #5e3369;
  --bg: #faf9fb;
  --bg2: #f3f0f6;
  --card: #ffffff;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 3px 14px rgba(72,38,83,.045);
}
.sidebar { overflow-y:auto; overscroll-behavior:contain; }
.side-brand { color:var(--primary-ink,var(--primary)); }
.nav a { min-height:46px; }
.nav a.active { background:var(--primary); box-shadow:none; }
.portal-tag { border-color:transparent; border-radius:999px; }
.panel,.stat,.tcard,.emp-card { box-shadow:var(--shadow); }
.iconbtn,.side-switch { border-radius:12px; }
.qcard .qic { background:var(--bg2); color:var(--primary-ink,var(--primary)); }
.hello h1,.panel-head h2 { color:var(--primary-ink,var(--primary)); }
button,a,input,select,textarea { outline-offset:3px; }
:focus-visible { outline:2px solid var(--primary-ink,var(--primary)); }
:root[data-theme="dark"] {
  --primary: #c79add;
  --primary-ink: #d7b4e6;
  --accent: #c79add;
  --bg: #140e1a;
  --bg2: #251a2e;
  --card: #1e1526;
  --field: #251a2e;
  --surface: #1e1526;
  --surface2: #251a2e;
  --shadow: 0 3px 14px rgba(0,0,0,.14);
}
:root[data-theme="dark"] .nav a.active { background:#482653; color:#fff; }
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
