:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172b27;
    background: #f2f7f4;
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
    min-height: 100vh;
    padding: clamp(20px, 5vw, 56px) 16px;
    background: radial-gradient(circle at top left, #d8eee2 0, transparent 38%), #f2f7f4;
}

.shell { width: min(100%, 650px); margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 22px 4px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #08704b; color: #fff; font-size: 25px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand small { color: #5d766c; font-size: 12px; }

.card { padding: clamp(24px, 5vw, 42px); border: 1px solid #e0ebe4; border-radius: 24px; background: #fff; box-shadow: 0 22px 55px rgba(24, 64, 44, .09); }
.eyebrow { margin: 0 0 9px; color: #08704b; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 37px); line-height: 1.15; letter-spacing: -.035em; }
.intro { margin: 15px 0 19px; color: #4e665c; line-height: 1.6; }
.notice { padding: 13px 16px; border: 1px solid #cce8d6; border-radius: 13px; background: #ecf8f0; color: #245b3e; font-size: 14px; line-height: 1.5; }
.recovery { margin-top: 24px; }

.camera { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; background: #10231d; }
.camera video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #c5d9d0; text-align: center; font-size: 14px; }
.camera-prompt { position: absolute; right: 0; bottom: 0; left: 0; min-height: 58px; display: grid; place-items: center; padding: 12px 18px; background: rgba(3, 19, 13, .8); color: #fff; text-align: center; font-size: clamp(16px, 3.5vw, 22px); font-weight: 750; }
.step { margin: 15px 0 8px; color: #08704b; font-size: 13px; font-weight: 750; }
.status { margin: 0 0 18px; padding: 12px 14px; border-radius: 11px; background: #f1f5f3; color: #3d584b; line-height: 1.5; font-size: 14px; }
.status[data-state="success"] { background: #e5f7ea; color: #146237; }
.status[data-state="error"] { background: #fff1ed; color: #a0392b; }
.status[data-state="busy"] { background: #eaf3fa; color: #225374; }
.voice-choice { display: flex; align-items: center; gap: 9px; width: fit-content; margin: 0 0 14px; color: #385749; font-size: 13px; font-weight: 650; cursor: pointer; }
.voice-choice input { width: 18px; height: 18px; margin: 0; accent-color: #08704b; }
.button { width: 100%; min-height: 48px; padding: 11px 18px; border: 0; border-radius: 11px; font: inherit; font-weight: 750; cursor: pointer; }
.button-primary { background: #08704b; color: #fff; }
.button-primary:hover:not(:disabled) { background: #075d3f; }
.button:focus-visible, .voice-choice input:focus-visible, a:focus-visible { outline: 3px solid #e3a635; outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: .65; }
.button-link { display: grid; place-items: center; margin-top: 24px; text-decoration: none; }
.button-link:hover { color: #fff; }
.password-form { display: grid; gap: 10px; margin-top: 24px; }
.password-form label { margin-top: 7px; font-size: 14px; font-weight: 700; }
.password-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #bdcfc4; border-radius: 10px; background: #fff; color: #172b27; font: inherit; }
.password-form input:focus-visible { outline: 3px solid #e3a635; outline-offset: 2px; border-color: #08704b; }
.password-form button { margin-top: 12px; }
.help { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #e7eee9; font-size: 14px; }
a { color: #08704b; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #06482f; }
.help span { color: #9aaea1; }
.footer { margin: 17px 0 0; color: #758b7e; text-align: center; font-size: 12px; }
[hidden] { display: none !important; }

@media (max-width: 480px) {
    .page { padding: 14px 12px 28px; }
    .brand { margin: 5px 0 15px 3px; }
    .card { border-radius: 19px; }
    .camera { border-radius: 13px; }
    .camera-prompt { min-height: 64px; }
    .help { gap: 8px; }
}
