:root {
  color-scheme: light dark;
  --bg: #f4f5f7; --panel: #fff; --ink: #18212b; --muted: #485566;
  --line: #a6afbc; --button: #292f37; --button-text: #fff; --link: #254a9c;
  font: 16px/1.5 Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15191e; --panel: #20252b; --ink: #f4f5f7; --muted: #c0c9d5;
    --line: #788391; --button: #343d48; --button-text: #fff; --link: #aac7ff; }
}
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink) }
main { margin: clamp(1rem,8vh,5rem) auto; width: min(27rem,calc(100% - 2rem)); padding: clamp(1.25rem,4vw,2.5rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px }
main.wide { max-width: 42rem; width: calc(100% - 2rem) }
.brand { margin: 0; font-weight: 650; color: var(--muted) }
h1 { margin: .35rem 0 1.25rem; line-height: 1.15; letter-spacing: -.03em }
h2 { margin: 1rem 0 .3rem; font-size: 1.1rem }
p { margin: .5rem 0 1rem; overflow-wrap: anywhere }
form { display: grid; gap: 1rem; margin: 1rem 0 0 }
label { display: grid; gap: .3rem; font-weight: 600 }
input, select, button { border: 1px solid var(--line); border-radius: 6px; min-height: 44px; font: inherit; padding: .55rem .75rem }
input, select { min-width: 0; width: 100%; color: var(--ink); background: var(--panel) }
button { background: var(--button); color: var(--button-text); font-weight: 600; cursor: pointer }
button:hover { filter: brightness(1.18) }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px }
[role=alert] { border-left: .25rem solid currentColor; padding-left: .75rem }
a { color: var(--link); text-underline-offset: .15em }
nav, .actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem }
.actions form { margin: 0 }
ul { list-style: none; padding: 0 }
li, section { border-top: 1px solid var(--line); padding: .5rem 0 1rem }
hr { margin-top: 1.5rem; border: 0; border-top: 1px solid var(--line) }
