:root {
  color-scheme: dark;
  font: 16px/1.55 system-ui, sans-serif;
  color: #f4efff;
  background: #141119;
  --panel: #201927;
  --border: #514459;
  --muted: #c9bacf;
  --accent: #d4b9fa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-wrap: anywhere; }
header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 12px clamp(16px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.title { margin-left: 12px; color: var(--muted); }
main { width: min(100% - 32px, 920px); margin: clamp(24px, 6vw, 75px) auto; }
h1 { font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 24px; }
h2 { margin-top: 0; line-height: 1.2; }
form, .card { border: 1px solid var(--border); border-radius: 16px; padding: clamp(17px, 4vw, 36px); background: var(--panel); }
form { max-width: 470px; }
label { display: block; max-width: 420px; margin: 0 0 16px; }
input, select { display: block; width: 100%; margin-top: 7px; background: #141119; color: inherit; border: 1px solid var(--border); border-radius: 7px; padding: 10px 12px; font: inherit; }
button { border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #21142f; padding: 9px 13px; min-height: 44px; font: inherit; font-weight: 650; cursor: pointer; }
button.secondary, nav button { background: transparent; color: inherit; border-color: var(--border); }
nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
nav button[aria-pressed="true"] { background: #342647; border-color: var(--accent); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#notice { color: #f7c1c8; margin-bottom: 16px; }
.muted { color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; margin-bottom: 20px; }
.metrics p, article { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
article + article { margin-top: 8px; }
article p { margin: 4px 0; }
