:root {
    color-scheme: light;
    font-family: ui-sans-serif, system-ui, sans-serif;
    line-height: 1.55;
    color: #18212b;
    background: #f2f5f7;
    --ink: #18212b;
    --muted: #536475;
    --line: #dbe3e9;
    --accent: #18584d;
    --accent-hover: #113e36;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid #277b6d; outline-offset: 3px; }

.shell { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.topbar { min-height: 4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font-weight: 750; text-decoration: none; color: var(--ink); }
.main { padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 1; padding: 0.7rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

h1, h2 { line-height: 1.18; margin: 0 0 0.65rem; letter-spacing: -0.025em; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); overflow-wrap: anywhere; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
small, .muted, .footnote { color: var(--muted); }
.eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 750; color: var(--accent); margin-bottom: 0.5rem; }
.page-heading { margin-bottom: 1.75rem; }
.back-link { display: inline-block; margin-bottom: 0.75rem; }
.footnote { margin: 1.25rem 0 0; }

.panel, .card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 0.9rem; padding: clamp(1rem, 3vw, 1.75rem); margin-bottom: 1rem; }
.panel p:last-child { margin-bottom: 0; }
.narrow { max-width: 32rem; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stack { display: grid; gap: 1rem; }
.actions, .split { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.split { justify-content: space-between; }
.split h2 { margin: 0; }
.list-row { padding-block: 0.85rem; border-top: 1px solid var(--line); margin: 0; overflow-wrap: anywhere; }
.list-row:first-of-type { margin-top: 0.8rem; }
.list-row p { margin: 0.2rem 0 0; }
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 3rem; background: #eaf4f1; color: #184c42; font-size: 0.82rem; font-weight: 650; }

label { display: block; font-weight: 650; }
.field-hint { display: block; font-weight: 400; }
input, textarea, select, button { font: inherit; }
input, textarea, select { display: block; width: 100%; min-width: 0; margin-top: 0.3rem; border: 1px solid #aebcc8; border-radius: 0.45rem; padding: 0.6rem 0.7rem; color: var(--ink); background: #fff; font-weight: 400; }
textarea { resize: vertical; }
input[readonly], textarea[readonly] { background: #f7f9fa; }
.button { display: inline-block; border-radius: 0.45rem; border: 1px solid var(--accent); padding: 0.55rem 0.9rem; background: var(--accent); color: white; cursor: pointer; font-weight: 700; text-decoration: none; text-align: center; }
.button:hover { background: var(--accent-hover); }
.button.secondary { color: var(--accent); border-color: #b9c9c5; background: #fff; }
.button.secondary:hover { background: #eaf4f1; }
.button:disabled { opacity: 0.45; cursor: default; }

.notice { border: 1px solid #b9d7cc; color: #17483f; background: #e8f5ef; padding: 0.8rem 1rem; border-radius: 0.55rem; margin: 0 0 1.25rem; }
.notice.error { border-color: #edb7b2; color: #80241d; background: #fff1f0; }
.notice ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.question-editor { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 0.5rem; padding: 1rem; }
.question-editor legend { padding: 0 0.35rem; font-weight: 700; }
details { margin-bottom: 1rem; }
summary { cursor: pointer; font-weight: 650; }
details p { margin-top: 0.5rem; }
details .actions { margin-block: 0.7rem; }
details .actions input { flex: 1 1 14rem; margin: 0; }
.prompt-label { margin-bottom: 0.7rem; }
.context-copy { max-width: 72ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.question-context { display: block; margin: 0.25rem 0; font-weight: 400; }
.answers { margin: 0; }
.answers dt { font-weight: 700; padding-top: 0.75rem; }
.answers dd { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; border-bottom: 1px solid var(--line); padding: 0.25rem 0 0.75rem; }

@media (max-width: 42rem) {
    .grid { grid-template-columns: 1fr; }
    .account-name { display: none; }
}
