:root {
    color-scheme: light;
    font-family: Inter, system-ui, sans-serif;
    color: #18181b;
    background: #fafafa;
    line-height: 1.55;
    --panel: white;
    --line: #dedee4;
    --quiet: #52525b;
    --accent: #5b21b6;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1140px, 100%); margin: auto; padding: 1.25rem clamp(1rem, 3vw, 2.25rem); }
header { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand span { width: .65rem; height: .65rem; border-radius: 3px; background: var(--accent); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.25rem; }
main { display: grid; gap: 1.15rem; }
main > * { min-width: 0; }
a { color: var(--accent); }
nav a { font-size: .9rem; font-weight: 600; }
h1, h2 { line-height: 1.2; margin: 0 0 .7rem; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: 1.2rem; }
p { margin: .65rem 0; }
h1 + p { color: var(--quiet); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(.95rem, 2.4vw, 1.45rem); }
.form-card { width: min(100%, 32rem); margin: 2rem auto; }
.form-card p { display: grid; gap: .35rem; margin: .85rem 0; }
.form-card a { display: inline-block; margin-top: 1rem; }
label { font-weight: 600; }
input, select { display: block; border-radius: .4rem; font: inherit; color: inherit; width: 100%; min-width: 0; padding: .55rem; border: 1px solid #a1a1aa; background: var(--panel); }
button, .button { font: inherit; font-weight: 600; display: inline-block; background: var(--accent); border: 1px solid var(--accent); color: white; text-decoration: none; padding: .5rem .8rem; border-radius: .45rem; cursor: pointer; }
button.secondary { color: var(--accent); background: transparent; border-color: var(--line); }
.key, code { overflow-wrap: anywhere; }
.code-list { list-style: none; padding-left: 0; }
.errorlist, .warning { color: #991b1b; }
.warning { border-left: .3rem solid #b91c1c; padding-left: .65rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .85rem; }
.stats p { margin: 0; }
.number { font-size: 1.6rem; font-weight: 700; }
.table { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .6rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead { color: var(--quiet); }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.trend { max-height: 22rem; }
.trend thead { position: sticky; top: 0; background: var(--panel); }
nav [aria-current="true"] { color: inherit; text-decoration-thickness: .15em; }
