:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #f1efff;
  background: #10103b;
}
* { box-sizing: border-box; }
body { margin: 0; background: #10103b url('/brand/night.webp') center / cover fixed; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 58px); background: #110f35e8; }
.side { padding: 30px 20px; border-right: 1px solid #322b5d; }
.side nav { display: grid; gap: 4px; }
.side a { color: #ddd4f2; text-decoration: none; padding: 12px; border-radius: 9px; font-weight: 650; }
.side a:hover, .side a[aria-current] { background: #332958; color: white; }
main { width: 100%; max-width: 1140px; padding: 38px clamp(20px, 5vw, 72px) 55px; }
h1 { margin: 8px 0; font: 800 clamp(2rem, 4vw, 3rem) ui-monospace, monospace; }
h2 { margin: 0 0 8px; }
p, footer { color: #c1bfdc; line-height: 1.55; }
main > small { color: #dfc2ff; letter-spacing: .08em; font-weight: 750; }
#tabs, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
#tabs { margin: 24px 0 16px; }
button, input { font: inherit; color: inherit; background: #242040; border: 1px solid #7663a3; border-radius: 9px; padding: 10px 12px; min-height: 44px; }
button { cursor: pointer; font-weight: 650; }
button[aria-pressed="true"], #export:not(:disabled) { background: #6c4acb; border-color: #b6a1ff; color: #fff; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #ffd56a; outline-offset: 2px; }
.panel { background: #181833; border: 1px solid #564680; border-radius: 13px; margin: 16px 0; padding: clamp(14px, 3vw, 24px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
label { display: grid; gap: 8px; font-weight: 650; }
input { width: 100%; min-width: 0; }
input[aria-invalid="true"] { border-color: #ffb2b2; }
#error { color: #ffb2b2; }
.metric { color: #e4c7ff; font-size: 1.5rem; font-weight: 750; overflow-wrap: anywhere; }
#chart { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px; border-bottom: 1px solid #3b3366; }
footer { margin-top: 24px; }
@media (max-width: 700px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { padding: 8px 12px; border: 0; border-bottom: 1px solid #322b5d; }
  .side nav { display: flex; flex-wrap: wrap; }
  main { padding-top: 24px; }
}
