:root {
    color-scheme: light;
    --blue-950: #061f4a;
    --blue-900: #073578;
    --blue-800: #064ca8;
    --blue-700: #0666d8;
    --blue-600: #087ff5;
    --blue-500: #139cff;
    --blue-100: #dff2ff;
    --blue-50: #f2f9ff;
    --ink: #10233f;
    --muted: #5d6f86;
    --line: #d9e5f1;
    --surface: #fff;
    --success: #08794f;
    --success-bg: #e6f8ef;
    --warning: #895900;
    --warning-bg: #fff5d6;
    --danger: #b4233d;
    --danger-bg: #fff0f2;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--blue-50); color: var(--ink); }
a { color: var(--blue-700); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blue-900); }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.65rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .75rem; background: var(--blue-700); color: #fff; cursor: pointer; font-weight: 750; text-decoration: none; }
button:hover, .button:hover { background: var(--blue-900); color: #fff; }
.button-secondary { border-color: var(--blue-700); background: #fff; color: var(--blue-700); }
.button-quiet { border-color: var(--line); background: #fff; color: var(--ink); }
.button-danger { background: var(--danger); }
.button-small { min-height: 2.2rem; padding: .4rem .7rem; font-size: .88rem; }
:focus-visible { outline: 3px solid #ffcc4a; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(-160%); padding: .7rem 1rem; background: #fff; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(6, 76, 168, .96); color: #fff; box-shadow: 0 .25rem 1.5rem rgba(6, 31, 74, .16); backdrop-filter: blur(14px); }
.header-inner { display: flex; width: min(1180px, calc(100% - 2rem)); min-height: 4.25rem; margin: auto; align-items: center; gap: 1rem; }
.brand { color: #fff; font-size: 1.45rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.main-nav { display: flex; flex: 1; align-items: center; gap: .2rem; }
.main-nav a { padding: .55rem .7rem; border-radius: .55rem; color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.account { position: relative; margin-left: auto; }
.account summary { max-width: 17rem; overflow: hidden; padding: .52rem .8rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; cursor: pointer; font-weight: 750; list-style: none; text-overflow: ellipsis; white-space: nowrap; }
.account summary::-webkit-details-marker { display: none; }
.account-panel { position: absolute; top: calc(100% + .55rem); right: 0; width: min(20rem, calc(100vw - 2rem)); padding: 1rem; border-radius: 1rem; background: var(--blue-900); box-shadow: 0 1rem 3rem rgba(6,31,74,.28); }
.account-panel label { display: block; margin-bottom: .45rem; font-weight: 750; }
.account-panel input { width: 100%; margin-bottom: .65rem; }
.account-panel button { width: 100%; background: #fff; color: var(--blue-800); }
.account-handle { display: block; margin: .25rem 0 .8rem; color: rgba(255,255,255,.72); font-size: .86rem; }
.page { width: min(1120px, calc(100% - 2rem)); min-height: calc(100vh - 12rem); margin: 0 auto; padding: 2.2rem 0 4rem; }
.page-narrow { width: min(780px, calc(100% - 2rem)); }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-header h1, .page-header p { margin: 0; }
.page-header p { max-width: 46rem; margin-top: .35rem; color: var(--muted); }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { margin-top: 0; font-size: 1.35rem; }
h3 { margin-bottom: .35rem; }
.eyebrow { margin: 0 0 .4rem; color: var(--blue-700); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.stack { display: grid; gap: 1rem; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 .35rem 1.3rem rgba(7,53,120,.06); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-2px); color: inherit; box-shadow: 0 .7rem 1.7rem rgba(7,53,120,.12); }
.stat { font-size: 2rem; font-weight: 900; color: var(--blue-800); }
.empty { padding: 2rem; border: 1px dashed #b7c9dd; border-radius: 1rem; color: var(--muted); text-align: center; }
.hero { position: relative; display: grid; min-height: calc(100vh - 10rem); place-items: center; overflow: hidden; border-radius: 1.5rem; background: radial-gradient(circle at 20% 15%, rgba(90,200,250,.78), transparent 34%), radial-gradient(circle at 85% 82%, rgba(0,76,230,.8), transparent 38%), linear-gradient(145deg,#00a8ff 0%,#0085ff 42%,#0062e6 100%); color: #fff; text-align: center; }
.hero-content { position: relative; z-index: 1; padding: 3rem 1.5rem; }
.hero h1 { display: flex; flex-direction: column; margin: 0; color: #fff; line-height: .92; text-shadow: 0 .14em .7em rgba(0,48,130,.2); }
.hero h1 span:first-child { font-size: clamp(3rem, 8vw, 7.2rem); font-weight: 300; }
.hero h1 span:last-child { margin-top: .12em; font-size: clamp(4rem, 11vw, 9.5rem); font-weight: 900; }
.hero p { max-width: 42rem; margin: 2rem auto 0; font-size: 1.12rem; line-height: 1.6; }
.hero .button { margin-top: 1.5rem; background: #fff; color: var(--blue-800); }
.alert { margin: 1rem auto; padding: .9rem 1rem; border: 1px solid; border-radius: .8rem; }
.alert-success { border-color: #8dd8b8; background: var(--success-bg); color: var(--success); }
.alert-error { border-color: #f0a9b4; background: var(--danger-bg); color: var(--danger); }
.badge { display: inline-flex; align-items: center; padding: .25rem .55rem; border-radius: 999px; background: var(--blue-100); color: var(--blue-900); font-size: .78rem; font-weight: 800; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
label { display: block; margin-bottom: .4rem; font-weight: 750; }
input, select, textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #b7c9dd; border-radius: .65rem; background: #fff; color: var(--ink); }
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; margin: 0; }
.field { margin-bottom: 1rem; }
.field-help { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; }
.choice { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem; border: 1px solid var(--line); border-radius: .7rem; }
.choice label { margin: 0; }
.error-text { margin: .35rem 0 0; color: var(--danger); font-size: .84rem; }
.progress { height: .65rem; overflow: hidden; border-radius: 99px; background: #e1ebf5; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue-500),var(--blue-700)); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; margin-left: .55rem; padding: 0 0 1.1rem 1.25rem; border-left: 2px solid var(--line); }
.timeline li::before { position: absolute; top: .2rem; left: -.42rem; width: .72rem; height: .72rem; border: 2px solid #fff; border-radius: 50%; background: var(--blue-600); content: ""; }
.timeline li:last-child { border-color: transparent; }
.prose { font-size: 1rem; line-height: 1.72; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose table, table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.site-footer { padding: 2rem 1rem; background: var(--blue-950); color: rgba(255,255,255,.74); text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: .8rem; }
.site-footer a { color: #fff; }
.cookie-banner { position: fixed; z-index: 50; right: 1rem; bottom: 1rem; left: 1rem; max-width: 46rem; margin: auto; padding: 1.2rem; border: 1px solid #a8c7eb; border-radius: 1rem; background: #fff; box-shadow: 0 1.2rem 4rem rgba(6,31,74,.28); }
.cookie-banner h2 { margin-bottom: .35rem; }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; margin-top: 1rem; }
.cookie-actions form, .cookie-actions button { width: 100%; }
@media (max-width: 780px) {
    .header-inner { flex-wrap: wrap; padding: .65rem 0; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; }
    .main-nav a { white-space: nowrap; }
    .page-header, .spread { align-items: stretch; flex-direction: column; }
    .grid-2 { grid-template-columns: 1fr; }
    .cookie-actions { grid-template-columns: 1fr; }
    .hero { min-height: calc(100vh - 12rem); border-radius: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero h1 { animation: appear .8s cubic-bezier(.2,.8,.2,1) both; }
    @keyframes appear { from { opacity: 0; transform: translateY(1rem) scale(.985); } }
}
