:root {
    color-scheme: light dark;
    --background: #f3f5f3;
    --surface: #ffffff;
    --text: #1c302b;
    --muted: #485d55;
    --border: #82948c;
    --accent: #205c48;
    --on-accent: #ffffff;
    --focus: #895000;
    --danger: #942f2f;
    --tint: #e9f1ed;
}
@media (prefers-color-scheme: dark) {
    :root {
        --background: #141c19;
        --surface: #202d27;
        --text: #eef5f0;
        --muted: #bbcfc3;
        --border: #809b8b;
        --accent: #a4d8be;
        --on-accent: #112c20;
        --focus: #ffce81;
        --danger: #ffb4b4;
        --tint: #2b3e33;
    }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); font: 18px/1.5 system-ui, sans-serif; }
.shell, .login-shell { max-width: 800px; margin: 0 auto; padding: 24px 20px 60px; }
.login-shell { max-width: 560px; padding-top: 48px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 4px 0 24px; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 0 0 16px; }
h3 { font-size: 1.1rem; margin: 0 0 12px; }
p { margin: 0 0 16px; overflow-wrap: anywhere; }
.eyebrow { color: var(--muted); margin-bottom: 4px; }
.lead { font-size: 1.15rem; font-weight: 600; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 0 0 20px; }
.notice:empty { display: none; }
.notice:not(:empty) { padding: 16px; border-left: 4px solid var(--accent); background: var(--tint); }
button, .button, nav a { min-height: 48px; min-width: 44px; padding: 11px 18px; font: inherit; line-height: 1.4; border-radius: 10px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
.secondary { color: var(--accent); background: var(--surface); }
.danger { color: var(--danger); background: var(--surface); border-color: var(--danger); }
a { color: var(--accent); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
input, select { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; margin-bottom: 20px; font: inherit; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
label { display: block; font-weight: 600; margin-bottom: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
nav a { display: inline-flex; align-items: center; }
.section-heading, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.section-heading { justify-content: space-between; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
.cards { list-style: none; padding: 0; margin: 16px 0 0; }
.cards li { border-top: 1px solid var(--border); padding: 20px 0; }
.cards li:last-child { padding-bottom: 0; }
.result { margin-top: 24px; border-top: 2px solid var(--border); padding-top: 24px; }
.approval-code { display: block; font: 600 1.8rem/1.5 ui-monospace, monospace; letter-spacing: .12em; margin-bottom: 16px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--surface); min-height: 48px; z-index: 1; }
.skip-link:focus { top: 8px; }
section { scroll-margin-top: 16px; }
@media (max-width: 420px) {
    .shell, .login-shell { padding: 20px 12px 40px; }
    .card { padding: 20px 16px; }
    .actions { align-items: stretch; flex-direction: column; }
}
