:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17202a;
    background: #f3f6f8;
    line-height: 1.5;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

.site-header {
    min-height: 4.25rem;
    padding: 0.9rem clamp(1rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border-bottom: 1px solid #dfe6ea;
}

.site-header form { margin: 0; }
.brand { color: #0b5e55; font-size: 1.15rem; font-weight: 750; text-decoration: none; }
.page-shell { width: min(100% - 2rem, 45rem); margin: clamp(2rem, 7vw, 5rem) auto; }
.card { padding: clamp(1.4rem, 5vw, 3rem); background: #fff; border: 1px solid #dfe6ea; border-radius: 0.8rem; box-shadow: 0 0.8rem 2.5rem rgb(25 50 45 / 8%); }
h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 5vw, 2.35rem); line-height: 1.15; }
h2 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.lede { margin: 0 0 1.75rem; color: #4a5a64; }
.stacked-form { display: grid; gap: 0.7rem; }
label { font-weight: 650; }
input[type="email"], input[type="password"], input[type="text"] { width: 100%; min-height: 3rem; padding: 0.7rem 0.8rem; border: 1px solid #9badb5; border-radius: 0.4rem; font: inherit; }
input:focus { outline: 3px solid rgb(11 94 85 / 20%); border-color: #0b5e55; }
.button { display: inline-flex; min-height: 2.8rem; padding: 0.65rem 1rem; align-items: center; justify-content: center; border: 1px solid #0b5e55; border-radius: 0.4rem; background: #0b5e55; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #084b44; }
.button-secondary { background: #fff; color: #0b5e55; }
.button-secondary:hover { background: #edf6f4; }
.button-small { min-height: 2.25rem; padding: 0.35rem 0.75rem; }
.notice { margin: 1rem 0; padding: 0.8rem 1rem; border-radius: 0.4rem; }
.notice.error { background: #fff0f0; color: #8c2020; }
.notice.success { background: #edf8f1; color: #1d6537; }
.security-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem 0; border-top: 1px solid #dfe6ea; border-bottom: 1px solid #dfe6ea; }
.status { display: inline-block; margin: 0.2rem 0 0.5rem; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.status.enabled { color: #1d6537; background: #e5f5eb; }
.status.disabled { color: #7a4b00; background: #fff3d8; }
.qr-code { width: fit-content; margin: 1.5rem auto; padding: 0.5rem; border: 1px solid #dfe6ea; border-radius: 0.5rem; }
.qr-code img { display: block; max-width: 100%; height: auto; }
.steps { padding-left: 1.3rem; }
.help { color: #5f6f78; font-size: 0.9rem; }
.secondary-action { margin-top: 0.8rem; }
.consent-details { display: grid; grid-template-columns: 8rem 1fr; gap: 0.5rem 1rem; margin: 1.5rem 0; }
.consent-details dt { font-weight: 700; }
.consent-details dd { margin: 0; }
.consent-details ul { margin: 0; padding-left: 1.2rem; }
.breakable { overflow-wrap: anywhere; }
.consent-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.form-error-message, .form-error-icon { color: #8c2020; }
code { font-size: 0.9em; }

@media (max-width: 36rem) {
    .security-row { align-items: stretch; flex-direction: column; gap: 1rem; }
    .consent-details { grid-template-columns: 1fr; }
}
