:root {
    color-scheme: light;
    --ink: #172f45;
    --muted: #4d6275;
    --blue: #153957;
    --blue-dark: #0e2a42;
    --link: #155981;
    --line: #d3dfe8;
    --paper: #fff;
    --bg: #f4f7fa;
    --gold: #f0ca80;
    --radius: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #1378ac; outline-offset: 4px; }
p { color: var(--muted); }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
main { flex: 1; padding-bottom: 44px; }
.utility { background: var(--blue-dark); color: #e0edf8; font-size: .72rem; font-weight: 650; letter-spacing: .035em; }
.utility .wrap, .foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 20px; padding: 8px 0; }
.utility-sep { color: var(--gold); padding-inline: 4px; }
header { background: var(--paper); }
.top { min-height: 86px; display: flex; align-items: center; }
.brand { display: inline-flex; gap: 13px; align-items: center; font-weight: 850; font-size: 1.35rem; letter-spacing: .02em; line-height: 1.15; }
.brand svg { width: 39px; color: var(--blue); }
.brand b { color: var(--link); }
.brand small { display: block; font-size: .67rem; letter-spacing: .14em; color: var(--muted); margin-top: 5px; }
.nav-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-bar nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.nav-bar a, .admin-tabs a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 700; }
.nav-bar a:hover, .breadcrumb a:hover, .back:hover { text-decoration: underline; color: var(--link); }
.team-link { margin-left: auto; color: var(--link); gap: 7px; }
.breadcrumb { display: flex; gap: 9px; margin: 18px 0; color: var(--muted); font-size: .83rem; }
.breadcrumb a { color: var(--link); }
.hero { position: relative; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; overflow: hidden; background: linear-gradient(120deg, #102d47, #1b4769); color: #fff; border-radius: 12px; border-top: 4px solid var(--gold); }
.hero-copy { padding: clamp(24px, 5vw, 52px); position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 5.1rem); letter-spacing: -.058em; line-height: .99; margin: 13px 0 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: #e4eef7; max-width: 390px; margin: 0 0 22px; }
.hero .eyebrow { color: var(--gold); }
.hero-art { position: relative; max-width: 390px; }
.hero-art svg { width: 100%; display: block; mask-image: radial-gradient(ellipse at center, #000 58%, transparent 94%); }
.hero-art span { position: absolute; bottom: 8%; right: 10%; color: #dce8f3; font-size: .65rem; letter-spacing: .13em; }
.btn, .outline { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 15px; border: 1px solid transparent; border-radius: 6px; font-weight: 720; cursor: pointer; }
.btn { background: var(--blue); color: white; }
.btn:hover { background: var(--blue-dark); }
.hero .btn { background: var(--gold); color: #172f45; }
.hero .btn:hover { background: #ffe1a8; }
.outline { background: var(--paper); border-color: #aebfce; color: var(--blue); }
.outline:hover { background: #edf4f9; }
button:disabled { opacity: .55; cursor: default; }
.notice, .panel, .step-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding: 20px 24px; border-left: 4px solid var(--link); scroll-margin-top: 14px; }
.notice-state { text-align: right; }
.notice-state p { margin: 6px 0 0; font-size: .87rem; }
.eyebrow { display: block; font-size: .72rem; font-weight: 780; letter-spacing: .12em; color: var(--link); }
h2 { margin: 5px 0; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.2; letter-spacing: -.025em; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 750; color: #69470b; background: #fff4dd; border: 1px solid #e9d2a2; border-radius: 999px; padding: 5px 10px; }
.badge.live { color: #165839; background: #e4f7ec; border-color: #a6d6bb; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.steps { padding-top: 32px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 17px; }
.step-grid article, .panel { padding: 22px; }
.step-grid b, .question b, .question-number { display: inline-block; color: var(--blue); background: #eaf2f8; border-radius: 5px; padding: 3px 8px; font-weight: 800; font-size: .85rem; }
h3 { margin: 9px 0 0; }
.step-grid p { margin-bottom: 0; }
footer { background: var(--blue-dark); color: #e2edf8; }
.foot { min-height: 64px; font-size: .84rem; }
.skip { position: absolute; left: 16px; top: -100px; padding: 10px; background: var(--paper); z-index: 3; }
.skip:focus { top: 10px; }
.panel.narrow { max-width: 740px; margin: 22px auto; padding: clamp(20px, 5vw, 38px); }
.panel h1, .dash-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.045em; margin: 10px 0; overflow-wrap: anywhere; }
.back { display: inline-block; margin-bottom: 18px; color: var(--link); font-size: .9rem; font-weight: 650; }
.panel form { display: grid; gap: 16px; margin-top: 18px; }
.panel button { justify-self: start; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 680; }
label small, .character-count { color: var(--muted); font-weight: 450; }
input, textarea, select { width: 100%; min-height: 44px; border: 1px solid #aebfce; border-radius: 6px; padding: 9px 11px; background: var(--paper); color: var(--ink); }
textarea { resize: vertical; }
.question { border-top: 1px solid var(--line); padding-top: 15px; margin-bottom: 8px; }
.alert { padding: 11px 14px; border: 1px solid #e9d2a2; border-radius: 6px; background: #fff4dd; color: #64430b; }
.good { color: #165839; background: #e4f7ec; border-color: #a6d6bb; }
.protocol { display: block; font: 750 clamp(.85rem, 3vw, 1.35rem) ui-monospace, monospace; color: var(--link); padding: 14px 0 22px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 26px 0 14px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.admin-tabs a { padding: 0 10px; border-bottom: 3px solid transparent; color: var(--muted); }
.admin-tabs a[aria-current], .admin-tabs a:hover { color: var(--blue); border-color: var(--link); }
.dash { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px; }
.dash.full { grid-template-columns: minmax(0, 1fr); }
.panel-aside { align-self: start; }
.queue { list-style: none; padding: 0; }
.queue li { border-top: 1px solid var(--line); }
.queue a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; overflow-wrap: anywhere; }
.queue a:hover strong { text-decoration: underline; }
.queue small { display: block; color: var(--muted); }
.count { color: var(--link); font-size: .9rem; }
.answer { padding: 8px 0; border-bottom: 1px solid var(--line); }
.answer p { white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-toolbar, .card-head, .card-actions, .editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.editor-toolbar, .card-head { justify-content: space-between; }
.editor-toolbar { margin-bottom: 12px; font-weight: 700; color: var(--muted); }
.editor-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; margin-bottom: 10px; background: #f8fafc; }
.card-head { margin-bottom: 10px; }
.card-actions .outline { font-size: .79rem; padding-inline: 9px; }
.remove { color: #8b2431; }
.character-count { display: block; text-align: right; margin-top: 4px; }
.editor-empty { padding: 20px; background: var(--bg); border: 1px dashed #aebfce; border-radius: var(--radius); }
dialog { border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); max-width: min(650px, calc(100% - 24px)); width: 100%; max-height: 85vh; padding: 22px; }
dialog::backdrop { background: #0b1e32ad; }
.editor dialog form { margin: 0 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
    .wrap { width: calc(100% - 28px); }
    .hero { grid-template-columns: 1fr .68fr; }
    .hero-art span { display: none; }
    .step-grid, .dash { grid-template-columns: 1fr; }
    .nav-bar nav { gap: 0 15px; }
}
@media (max-width: 480px) {
    .hero { display: block; }
    .hero-art { position: absolute; top: 0; right: 0; width: 60%; opacity: .35; }
    .notice { align-items: flex-start; flex-direction: column; gap: 8px; padding: 15px; }
    .notice-state { text-align: left; }
    .fields { grid-template-columns: 1fr; }
    .nav-bar a { font-size: .8rem; }
    .team-link { margin-left: 0; }
    .panel { padding: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
    .btn, .outline { transition: background-color .15s, border-color .15s; }
}
