:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #203239;
    background: #f3f6f5;
    line-height: 1.6;
    font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 2rem, 42rem); margin: 2.5rem auto; }
header { margin-bottom: 1.5rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.2; letter-spacing: -0.03em; margin: 1rem 0; }
h2 { font-size: 1.4rem; line-height: 1.3; margin-top: 0; }
.brand { color: #285548; font-weight: 750; font-size: 1.125rem; }
.brand span { margin-left: 0.6rem; padding-left: 0.6rem; border-left: 1px solid #a8bdb4; font-weight: 450; }
.steps { display: flex; padding: 0; list-style: none; gap: 1rem; margin: 1.5rem 0; font-size: 0.875rem; color: #58675e; }
.steps li { flex: 1; border-top: 3px solid #ccd7d1; padding-top: 0.6rem; }
.steps li[aria-current] { color: #205443; border-color: #28694f; font-weight: 700; }
.steps span { display: block; font-weight: 700; }
section { padding: 2rem; background: white; border: 1px solid #dbe3df; border-radius: 0.75rem; }
label { display: block; font-weight: 600; margin: 1rem 0 0.4rem; }
input, select { display: block; width: 100%; min-height: 3rem; padding: 0.7rem; border: 1px solid #82998d; border-radius: 0.35rem; font: inherit; background: white; color: inherit; }
input:focus, select:focus, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #78b69a; outline-offset: 3px; }
a { color: #225b45; }
select:disabled { opacity: 0.65; }
#code.recovery-input { font-size: 1rem; letter-spacing: normal; }
button, a.button { min-height: 3rem; padding: 0.8rem 1rem; border: 1px solid #225b45; border-radius: 0.4rem; font: inherit; font-weight: 650; cursor: pointer; color: white; background: #225b45; }
a.button { display: inline-block; text-decoration: none; text-align: center; }
form button { width: 100%; margin-top: 1.25rem; }
.password-field { position: relative; }
.password-field input { padding-right: 3.5rem; }
.password-field .password-toggle { position: absolute; top: 0; right: 0; width: 3rem; height: 100%; margin: 0; padding: 0.75rem; border: 0; background: transparent; color: #225b45; display: flex; align-items: center; justify-content: center; }
.password-field .password-toggle:hover { background: #edf4ef; }
.password-toggle svg { width: 1.5rem; height: 1.5rem; }
.password-toggle .eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
button:hover, a.button:hover { background: #174531; }
button:disabled { opacity: 0.65; cursor: wait; }
button.secondary { color: #225b45; background: white; }
button.secondary:hover { background: #edf4ef; }
#restart, #finish { width: 100%; margin-top: 1rem; }
.hint, footer { font-size: 0.875rem; color: #52645b; }
.feedback { padding: 1rem 1.25rem; color: #812e20; background: #fff0eb; border: 1px solid #d29a87; border-radius: 0.4rem; overflow-wrap: anywhere; }
.feedback:focus { outline: 2px solid #aa5842; }
.instructions { padding-left: 1.4rem; }
.instructions li { margin-bottom: 0.4rem; }
.qr-box { text-align: center; margin: 1.5rem 0; }
.qr-box img { display: inline-block; width: min(100%, 256px); height: auto; }
summary { cursor: pointer; font-weight: 600; color: #225b45; }
code { overflow-wrap: anywhere; font-size: 1rem; display: block; padding: 1rem; background: #f3f6f5; }
#code { font-size: 1.4rem; letter-spacing: 0.25em; }
#account-label { overflow-wrap: anywhere; font-weight: 600; }
.success-label { color: #225b45; font-weight: 700; }
.recovery-codes { padding: 1rem; margin: 1rem 0; background: #f3f6f5; list-style: none; font-family: ui-monospace, monospace; font-size: 0.875rem; }
.recovery-codes li { overflow-wrap: anywhere; padding: 0.35rem 0; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.actions button { flex: 1; }
footer { margin: 1.5rem 0; text-align: center; }
@media (max-width: 30rem) {
    main { margin-top: 1.5rem; }
    section { padding: 1.25rem; }
    .steps { gap: 0.5rem; }
    .actions { flex-direction: column; }
}
