*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }
body { font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button,input,textarea,select { font: inherit; color: inherit; accent-color: var(--accent); caret-color: var(--accent); }
button,a,input,textarea,select { -webkit-tap-highlight-color: transparent; }
button,a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .35; }
button { border: 0; background: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; box-shadow: var(--focus-ring); }
::selection { background: var(--accent-36); color: var(--text); }
input,textarea,select { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--bg-raised); border-radius: var(--radius-sm); min-height: 46px; padding: 11px 13px; outline: none; font-size: 16px; }
textarea { resize: vertical; line-height: 1.7; }
input:focus,textarea:focus,select:focus { border-color: var(--line-strong); box-shadow: var(--focus-ring); }
input::placeholder,textarea::placeholder { color: var(--text-muted); }
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--bg-raised) inset; caret-color: var(--accent); }
input[type="checkbox"] { appearance: none; width: 20px; height: 20px; min-height: 20px; padding: 0; border: 1px solid var(--line-strong); border-radius: 5px; flex-shrink: 0; display: inline-grid; place-content: center; }
input[type="checkbox"]:checked { border-color: var(--accent); background: var(--accent-12); }
input[type="checkbox"]:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-1px); }
input[type="file"] { line-height: 1.7; }
input::file-selector-button { font: inherit; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 5px 10px; margin-right: 10px; }
option { background: var(--bg-soft); color: var(--text); }
* { scrollbar-width: thin; scrollbar-color: var(--line-hover) var(--bg); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-hover); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-36); }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: 28px; font-weight: 600; line-height: 1.4; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
small,.caption { font-size: 12px; color: var(--text-muted); }
label { display: block; }
hr { border: 0; border-top: 1px solid var(--line-faint); margin: 28px 0; }
[hidden] { display: none !important; }
.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; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.muted { color: var(--text-secondary); }
.subtle { color: var(--text-muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wrap { overflow-wrap: anywhere; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.boot-state,.noscript { padding: 48px; display: flex; align-items: center; gap: 16px; }
.noscript { position: fixed; inset: 0; background: var(--bg); }
