/* NovaCore · Dark Trans visual system (adapted from the Dashtrans "Gaussian" themes).
   Every module uses these tokens and the shared er-* classes. To restyle, add a
   [data-theme="..."] block below and register it in nova_themes() (app/helpers.php). */

:root,
[data-theme="dark-trans"] {
  --bg-base: linear-gradient(180deg, #050505 0%, #020202 50%, #000 100%);
  --glow-1: radial-gradient(circle at 50% 35%, rgba(255,255,255,.12) 0%, rgba(255,255,255,.06) 14%, rgba(255,255,255,.025) 28%, transparent 56%);
  --glow-2: radial-gradient(circle at 70% 15%, rgba(255,255,255,.10), transparent 40%);
  --glow-3: radial-gradient(circle at 20% 45%, rgba(255,255,255,.06), transparent 45%);
  --scroll-thumb: rgba(190,190,190,.35);
  --side-solid: rgb(6, 6, 10);
  --accent: #f2f2f2;
  --accent-ink: #0d0d0d;
}
[data-theme="dark-trans-blue"] {
  --bg-base: linear-gradient(135deg, #010812 0%, #031a33 40%, #041120 100%);
  --glow-1: radial-gradient(circle at 20% 80%, rgba(0,180,255,.22), transparent 45%);
  --glow-2: radial-gradient(circle at 55% 35%, rgba(255,255,255,.08), transparent 40%);
  --glow-3: radial-gradient(circle at 90% 10%, rgba(139,92,246,.18), transparent 40%);
  --scroll-thumb: rgba(110,140,200,.55);
  --side-solid: #0b1626;
}
[data-theme="dark-trans-amethyst"] {
  --bg-base: linear-gradient(135deg, #08051a 0%, #120827 35%, #18103d 65%, #0b1240 100%);
  --glow-1: radial-gradient(circle at 48% 90%, rgba(255,0,140,.30), transparent 35%);
  --glow-2: radial-gradient(circle at 35% 30%, rgba(168,85,247,.24), transparent 40%);
  --glow-3: radial-gradient(circle at 72% 42%, rgba(34,211,238,.16), transparent 30%);
  --scroll-thumb: rgba(170,110,220,.55);
  --side-solid: #140c2a;
}

:root {
  --text: #f5f5f5;
  --heading: #ffffff;
  --muted: #b4b4b4;
  --faint: #8a8a8a;
  --glass: rgba(255,255,255,.05);
  --glass-2: rgba(255,255,255,.08);
  --glass-strong: rgba(14,14,16,.88);
  --line: rgba(255,255,255,.13);
  --line-strong: rgba(255,255,255,.22);
  --input-bg: rgba(255,255,255,.06);
  --ring: rgba(255,255,255,.35);
  --hover: rgba(255,255,255,.08);
  --ok: #8fe0b0;
  --ok-bg: rgba(60,180,110,.14);
  --warn: #f0cf8a;
  --warn-bg: rgba(220,170,60,.13);
  --danger: #ff9b9b;
  --danger-bg: rgba(230,80,80,.14);
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --blur: blur(24px);
  --side-w: 256px;
  --top-h: 64px;
  --radius: 14px;
  --radius-sm: 9px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; }
body {
  background: var(--glow-1), var(--bg-base);
  background-attachment: fixed;
  color: var(--text);
  font: 14.5px/1.55 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background: var(--glow-2), var(--glow-3);
  filter: blur(160px);
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; color: var(--heading); margin: 0 0 .45rem; }
h1 { font-size: 1.3rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; }
p { margin: 0 0 .8rem; }
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code { font-size: .85em; background: var(--glass-2); padding: .05rem .35rem; border-radius: 5px; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: .4rem .6rem; z-index: 50; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- Shell ---------- */
.er-app { min-height: 100vh; }
.er-side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w);
  background: rgba(0,0,0,.30); border-right: 1px solid var(--line);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  display: flex; flex-direction: column; z-index: 20; overflow: hidden;
}
.brand { display: flex; gap: .7rem; align-items: center; padding: 1rem 1rem .85rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); min-width: 0; }
.brand img { width: 40px; height: auto; max-height: 28px; object-fit: contain; flex: none; }
.brand span { min-width: 0; }
.brand strong { display: block; font-size: .95rem; letter-spacing: .01em; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-nav, .er-nav-foot { display: flex; flex-direction: column; gap: 2px; padding: .6rem .6rem; min-width: 0; }
.er-nav { overflow-y: auto; overflow-x: hidden; flex: 1; overscroll-behavior: contain; }
.er-nav a, .ql-head, .er-nav-foot a, .fly-btn, .fly-link {
  display: flex; align-items: center; gap: .65rem; min-width: 0;
  color: var(--muted); text-decoration: none; font-size: .9rem;
  border-radius: var(--radius-sm); padding: .5rem .7rem; background: transparent; border: 0;
  width: 100%; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fly-btn span, .fly-link { overflow: hidden; text-overflow: ellipsis; }
.fly-btn span { flex: 1; }
.er-nav a.is-on, .er-nav a:hover, .ql-head:hover, .er-nav-foot a:hover, .er-nav-foot a.is-on, .fly-btn:hover, .fly-link:hover, .ql-fly.is-open > .fly-btn {
  color: var(--heading); background: var(--hover);
}
.er-nav a.is-on, .er-nav-foot a.is-on { background: var(--accent); color: var(--accent-ink); }
.er-nav-foot { border-top: 1px solid var(--line); padding-bottom: 1rem; }
.nav-label { color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; padding: .7rem .7rem .25rem; margin: 0; }
.ql-panel { display: none; padding: 0 0 .3rem .55rem; margin-left: .55rem; border-left: 1px solid var(--line); }
.ql-block.is-open > .ql-panel, .ql-block[data-ql-mode="always"] > .ql-panel { display: block; }
.ql-manage, .ql-empty { display: block; color: var(--faint); font-size: .8rem; padding: .3rem .7rem; }
.ql-side-list, .fly { list-style: none; margin: 0; padding: 0; }
.ql-fly { position: static; }
.fly {
  display: none; position: fixed; min-width: 220px; max-width: 320px;
  max-height: 70vh; overflow: auto; background: var(--glass-strong); border: 1px solid var(--line);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: 12px; padding: .35rem; z-index: 40; box-shadow: var(--shadow);
}
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .ql-fly:hover > .fly, .ql-fly:focus-within > .fly { display: block; }
}
.ql-fly.is-open > .fly { display: block; }
.er-main { margin-left: var(--side-w); min-height: 100vh; min-width: 0; }
.er-top {
  position: sticky; top: 0; z-index: 10; height: var(--top-h);
  display: flex; align-items: center; gap: .6rem; padding: 0 1.25rem;
  background: rgba(8,8,10,.55); border-bottom: 1px solid var(--line);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.top-title { flex: 1; min-width: 0; }
.top-title p { margin: 0; color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-title h1 { font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Controls ---------- */
.icon-btn, .menu > summary, .er-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line); background: var(--glass); color: var(--text);
  border-radius: var(--radius-sm); padding: .45rem .75rem; cursor: pointer; text-decoration: none;
  font-size: .88rem; line-height: 1.3; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.icon-btn:hover, .menu > summary:hover, .er-btn.ghost:hover { background: var(--glass-2); border-color: var(--line-strong); }
.er-btn { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.er-btn:hover { background: #fff; }
.er-btn.ghost, .er-btn.quiet { background: var(--glass); color: var(--text); border-color: var(--line); font-weight: 500; }
.er-btn.danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,120,120,.3); }
.er-btn.danger:hover { background: rgba(230,80,80,.24); }
.er-btn:disabled { opacity: .45; cursor: not-allowed; }
.top-settings { text-decoration: none; }
.menu { position: relative; }
.menu > summary { list-style: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; max-width: 300px;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: 12px; padding: .35rem;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow); z-index: 30;
}
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: .45rem .6rem; border-radius: 7px; text-decoration: none; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--hover); }
.menu-label { color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: .4rem .6rem .2rem; margin: 0; }

.er-input, textarea.er-input, select.er-input {
  width: 100%; margin-top: .3rem; background: var(--input-bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .55rem .7rem; color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.er-input:hover { border-color: var(--line-strong); }
.er-input:focus { outline: none; border-color: var(--ring); background: rgba(255,255,255,.08); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
select.er-input option { background: #111; color: var(--text); }
input[type="checkbox"], input[type="radio"] { accent-color: #e6e6e6; width: 16px; height: 16px; }
label { display: block; margin: .75rem 0; color: var(--text); font-size: .9rem; font-weight: 500; }
label.check { display: flex; gap: .55rem; align-items: center; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 1rem 0; padding: .6rem 1rem; }
legend { color: var(--muted); padding: 0 .4rem; font-size: .85rem; }

/* ---------- Content ---------- */
.er-content { padding: 1.4rem; max-width: 1400px; }
.er-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; min-width: 0;
}
.er-widgets, .split, .catalog, .settings-wrap { display: grid; gap: 1rem; }
.er-widgets { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.split { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.catalog { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.settings-wrap { grid-template-columns: 210px minmax(0, 1fr); align-items: start; }
.subnav { display: flex; flex-direction: column; gap: 2px; padding: .4rem; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); }
.subnav a { color: var(--muted); padding: .45rem .65rem; border-radius: 7px; text-decoration: none; font-size: .9rem; }
.subnav a:hover { background: var(--hover); color: var(--heading); }
.subnav a.is-on { background: var(--accent); color: var(--accent-ink); }
.widget header, .row-head { display: flex; justify-content: space-between; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.widget header h2, .row-head h2 { margin: 0; }
.stat-row { display: flex; gap: 1.4rem; margin-bottom: .7rem; flex-wrap: wrap; }
.stat-row strong { display: block; font-size: 1.5rem; font-weight: 600; color: var(--heading); line-height: 1.2; }
.stat-row span, .muted, .hint, .plain span { color: var(--muted); }
.hint { font-size: .85rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--line); min-width: 0; }
.plain li > * { min-width: 0; overflow-wrap: anywhere; }
.er-empty { color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: .9rem 1rem; background: rgba(255,255,255,.02); }
.er-table-wrap { overflow-x: auto; }
.er-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.er-table th, .er-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.er-table th { color: var(--faint); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.er-table tbody tr:hover { background: rgba(255,255,255,.03); }
.er-alert, .er-banner { border-radius: var(--radius-sm); padding: .7rem .9rem; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--glass); overflow-wrap: anywhere; }
.er-alert.error { background: var(--danger-bg); color: #ffd6d6; border-color: rgba(255,120,120,.3); }
.er-alert.ok { background: var(--ok-bg); color: #d9ffe9; border-color: rgba(120,220,160,.3); }
.er-alert.warn { background: var(--warn-bg); color: #ffefc9; border-color: rgba(240,200,120,.3); }
.er-banner { background: var(--glass-2); }
.kicker { color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: .7rem; margin-bottom: .3rem; }
.badge { display: inline-block; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--glass); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: rgba(120,220,160,.35); }
.badge.warn { color: var(--warn); border-color: rgba(240,200,120,.35); }
.er-pane { position: relative; padding-top: 1.6rem; }
.er-module-settings { position: absolute; top: 0; right: 0; font-size: .78rem; color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); text-decoration: none; }
.er-module-settings:hover { color: var(--heading); border-color: var(--line-strong); }
.narrow { max-width: 680px; }
.home-block { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.module-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; margin-bottom: .6rem; background: rgba(255,255,255,.025); }
.module-card h3 { margin-bottom: .25rem; }
.pick { display: flex; gap: .5rem; align-items: center; }

/* Quick Links manager */
.ql-tree { list-style: none; margin: 0; padding: 0; }
.ql-tree .ql-tree { margin-left: 1.2rem; border-left: 1px solid var(--line); padding-left: .6rem; }
.ql-line { display: flex; gap: .5rem; align-items: center; padding: .4rem .25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-width: 0; }
.ql-line:hover { background: rgba(255,255,255,.025); }
.ql-line.dragging { opacity: .5; }
.ql-line.drop-target { box-shadow: inset 0 2px 0 var(--accent); }
.ql-name { flex: 1; min-width: 140px; overflow-wrap: anywhere; }
.ql-move { background: var(--glass); color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: .15rem .45rem; cursor: pointer; }
.ql-move:hover { color: var(--heading); background: var(--glass-2); }
.ql-grip { cursor: grab; color: var(--faint); display: inline-flex; }
.dirty { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--glass-2); }
.dirty[hidden] { display: none; }
.member { border-top: 1px solid var(--line); padding: .9rem 0; }
.member header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.inline { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; }
.inline label { margin: .3rem 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Auth (login, installer, activation, invite) ---------- */
.er-auth-body { min-height: 100vh; display: grid; place-items: center; padding: 2rem 0; }
.er-auth { width: min(460px, calc(100% - 2rem)); position: relative; z-index: 1; }
.er-auth:has(.wide) { width: min(720px, calc(100% - 2rem)); }
.auth-mark { width: min(340px, 82%); height: auto; display: block; margin: 0 auto 1.6rem; }
.auth-card { padding: 1.6rem 1.6rem 1.4rem; }
.auth-card h1 { font-size: 1.35rem; }
.auth-card .er-btn { width: 100%; justify-content: center; padding: .65rem; margin-top: .4rem; }
.auth-card.wide, .wide { width: min(720px, 100%); }
.checks { list-style: none; padding: 0; }
.checks li { padding: .2rem 0; }
.checks li.ok { color: var(--ok); }
.checks li.bad { color: var(--danger); }
.chart-frame { min-height: 180px; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- Responsive ---------- */
.er-scrim { display: none; }
@media (max-width: 900px) {
  .er-side { transform: translateX(-105%); transition: transform .2s ease; background: var(--side-solid); width: min(var(--side-w), 86vw); }
  body.nav-open .er-side { transform: none; }
  .er-main { margin-left: 0; }
  .er-top { padding: 0 .8rem; }
  .er-content { padding: 1rem .8rem; }
  .settings-wrap { grid-template-columns: minmax(0, 1fr); }
  .subnav { flex-direction: row; flex-wrap: wrap; }
  .er-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 15; }
  body.nav-open .er-scrim { display: block; }
  .fly { position: static; display: none; box-shadow: none; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; margin-left: .9rem; max-height: none; padding: 0 0 0 .3rem; backdrop-filter: none; }
}
@media (max-width: 560px) {
  .top-settings span { display: none; }
  .menu > summary { max-width: 120px; }
}
@media (min-width: 901px) {
  #nav-toggle { display: none; }
}

/* ---------- Nova Event Engine ---------- */
.ee-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; align-items: center; }
.ee-tabs a { color: var(--muted); padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; background: var(--glass); }
.ee-tabs a:hover { color: var(--heading); border-color: var(--line-strong); }
.ee-tabs a.is-on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ee-tabs .ee-profile { margin-left: auto; font-size: .8rem; color: var(--muted); }
.ee-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0; }
.ee-actions form { margin: 0; }
.ee-grid2 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ee-pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .88rem; margin: .25rem 0 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.25); max-height: 22rem; overflow: auto; }
.ee-diff del { color: #ffb3b3; text-decoration: line-through; }
.ee-diff ins { color: var(--ok); text-decoration: none; }
.badge.bad { color: #ffb3b3; border-color: rgba(255,120,120,.35); }
.ee-checks { list-style: none; margin: 0; padding: 0; }
.ee-checks li { display: flex; justify-content: space-between; gap: .8rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ee-checks li span:last-child { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.ee-field-note { display: block; font-size: .75rem; color: var(--faint); font-weight: 400; margin-top: .15rem; }
.ee-counts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.ee-counts a { text-decoration: none; }
.ee-wide { grid-column: 1 / -1; }
textarea.er-input.tall { min-height: 12rem; }
code.ee-code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.3); font-size: .82rem; }

/* ---------- GA Stats and Google Ads ---------- */
.kpi-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: .8rem 0 1rem; }
.kpi { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .85rem; display: flex; flex-direction: column; gap: .2rem; }
.kpi > span { color: var(--muted); font-size: .78rem; }
.kpi strong { font-size: 1.35rem; color: var(--heading); font-weight: 650; letter-spacing: -.02em; }
.delta { font-size: .78rem; }
.delta.up { color: var(--ok); }
.delta.down { color: #ffb3b3; }
.delta.flat { color: var(--muted); }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-grid { stroke: var(--line); }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-a { stroke: #f4f4f5; color: #f4f4f5; }
.chart-b { stroke: #7ec8ff; color: #7ec8ff; }
.swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; background: currentColor; margin-right: .3rem; vertical-align: -1px; }
.donut-track { stroke: var(--line); }
.slice-0 { color: #f4f4f5; stroke: #f4f4f5; }
.slice-1 { color: #7ec8ff; stroke: #7ec8ff; }
.slice-2 { color: #c4b5fd; stroke: #c4b5fd; }
.slice-3 { color: #86efac; stroke: #86efac; }
.slice-4 { color: #fcd34d; stroke: #fcd34d; }
.slice-5 { color: #fda4af; stroke: #fda4af; }
.slice-6 { color: #67e8f9; stroke: #67e8f9; }
.slice-7 { color: #d4d4d8; stroke: #d4d4d8; }
.bar-track { fill: rgba(255,255,255,.08); }
.bar-fill { fill: #f4f4f5; }
.chart-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.legend { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .85rem; }
.legend li { display: flex; align-items: center; gap: .25rem; margin: .2rem 0; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.row-head h2 { margin: 0; }
form.inline { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-top: .6rem; }
form.inline label { display: flex; flex-direction: column; gap: .2rem; font-size: .78rem; color: var(--muted); }
ol.plain { margin: .4rem 0; padding-left: 1.2rem; }
ol.plain li { margin: .25rem 0; }
