* { box-sizing: border-box; }
html { min-height: 100%; font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif; font-size: 16px; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); }
:root[data-theme="dark"] body { background: radial-gradient(circle at 18% 0%, var(--bg-accent), transparent 32rem), var(--bg); }
button, input, textarea, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); padding: .72rem .82rem; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
textarea { resize: none; line-height: 1.4; }
label { display: grid; gap: .4rem; color: var(--muted); font-size: .9rem; }
label small { color: var(--muted); font-size: .78rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.18; }
h1 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.08rem; }
a { color: var(--brand); }
code { background: var(--surface-muted); padding: .12rem .35rem; border-radius: 5px; }
fieldset { min-width: 0; }
[hidden][hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
