:root {
    color-scheme: light;
    --navy: #12243d;
    --blue: #0b70b7;
    --blue-dark: #075687;
    --ink: #152033;
    --muted: #5e6a7d;
    --line: #d8e0ea;
    --paper: #ffffff;
    --wash: #f3f6fa;
    --success: #176b42;
    --danger: #a72f2f;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--wash); line-height: 1.45; }
a { color: var(--blue-dark); }
.topbar { min-height: 68px; padding: 0 4vw; background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { color: white; text-decoration: none; font-size: 1.18rem; font-weight: 750; letter-spacing: .04em; }
.brand span { font-weight: 400; opacity: .9; letter-spacing: 0; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
nav a, .link-button { color: white; text-decoration: none; font: inherit; }
.link-button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
.shell { width: min(1120px, 92vw); margin: 2.5rem auto 4rem; }
.narrow { width: min(560px, 100%); margin: 3rem auto; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 8px 22px rgba(15, 32, 55, .06); }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1.5rem; align-items: stretch; }
.hero h1 { margin-top: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.08; }
.eyebrow { color: var(--blue-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button, button.primary { display: inline-block; border: 0; border-radius: 6px; padding: .72rem 1.05rem; background: var(--blue); color: white; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; }
.button:hover, button.primary:hover { background: var(--blue-dark); }
.button.secondary, button.secondary { background: white; border: 1px solid var(--line); color: var(--ink); }
.button.danger, button.danger { background: var(--danger); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 650; margin-bottom: .38rem; }
input, select, textarea { width: 100%; padding: .66rem .72rem; border: 1px solid #aeb9c8; border-radius: 5px; font: inherit; color: var(--ink); background: white; }
textarea { min-height: 108px; resize: vertical; }
.field { margin-bottom: 1rem; }
.help, .muted { color: var(--muted); font-size: .92rem; }
.validation, .field-validation-error, .validation-summary-errors { color: var(--danger); }
.notice { padding: .9rem 1rem; border-radius: 6px; margin-bottom: 1.25rem; background: #e9f4ff; border: 1px solid #bad7ee; }
.notice.success { background: #e9f7ef; border-color: #b7dbc7; color: var(--success); }
.notice.warning { background: #fff8e6; border-color: #e8d49c; }
.notice.danger { background: #fff0f0; border-color: #e2b4b4; color: var(--danger); }
.key { font-family: Consolas, monospace; letter-spacing: .12em; word-break: break-all; padding: .8rem; background: var(--wash); border: 1px solid var(--line); border-radius: 5px; }
.stat { padding: 1.3rem; background: var(--navy); color: white; border-radius: 10px; }
.stat strong { display: block; font-size: 2rem; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: .78rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.badge { display: inline-block; padding: .2rem .48rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #e8eef6; }
.badge.good { background: #dff3e7; color: var(--success); }
.badge.bad { background: #fae3e3; color: var(--danger); }
.stack { display: flex; flex-direction: column; gap: .5rem; }
.small-button { padding: .4rem .58rem; font-size: .84rem; border: 1px solid var(--line); background: white; border-radius: 4px; cursor: pointer; }
h1, h2 { color: var(--navy); }
h1 { margin-bottom: .45rem; }
footer { padding: 1.5rem 4vw; color: var(--muted); text-align: center; font-size: .85rem; }
@media (max-width: 760px) { .topbar { padding-block: 1rem; align-items: flex-start; flex-direction: column; } .hero, .grid { grid-template-columns: 1fr; } .grid .full { grid-column: auto; } nav { gap: .8rem; } }
