body { min-height: 100vh; min-height: 100dvh; color-scheme: inherit; }
[hidden] { display: none !important; }
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }
main { flex: 1 0 auto; }
a { color: var(--accent); text-decoration: none; }
a:hover, .link:hover { text-decoration: underline; }
.brand:hover { text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .65; cursor: default; }
.headtools { gap: 8px; }
#language { border: 0; color: inherit; background: var(--panel); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.emblem .icon { width: 23px; height: 23px; }
h1, .lead, .sheet, .notice, .recap { overflow-wrap: anywhere; }
button.link, button.secondary, button.after { background: transparent; border: 0; padding: 0; color: var(--accent); font-size: 14px; }
.secondary, .after a, .after button, .after .link { font-weight: 600; }
button.secondary { padding: 8px 0; }
label.caption, .field > label { font-size: 14px; font-weight: 620; }
.field input:not([type=checkbox]), input.input {
    display: block; width: 100%; min-width: 0; min-height: 44px; padding: 8px 16px;
    font-size: 15px; background: var(--panel); color: var(--text); border: 1px solid var(--outline); border-radius: 8px;
}
input::placeholder { color: var(--muted); }
.password-field { position: relative; }
.field .password-field input { padding-right: 48px; }
.eye { position: absolute; inset: 0 0 0 auto; width: 42px; display: grid; place-content: center; background: transparent; color: var(--secondary); border: 0; }
.otp-field { display: grid; min-width: 0; direction: ltr; }
.otp-field > * { grid-area: 1 / 1; }
.otp-slots {
    position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(3px, 1.5vw, 8px);
    background: var(--panel); pointer-events: none; user-select: none;
}
.otp-slots span {
    display: grid; place-items: center; height: 44px; border: 1px solid var(--outline); border-radius: 7px;
    font: 600 24px/1 Consolas, monospace;
}
.otp-slots [data-selected] { background: var(--tint); }
.otp-slots [data-active] { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (forced-colors: active) {
    .otp-slots [data-active] { outline-color: Highlight; }
    .otp-slots [data-selected] { color: HighlightText; background: Highlight; forced-color-adjust: none; }
}
.field .otp-field input {
    padding: 0; border: 0; outline: none; font-size: 16px;
}
.verification h2 { font-size: 24px; margin: 0; }
.feedback:empty { display: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); flex: none; }
input[type=checkbox] { width: 17px; height: 17px; }
.subfoot .icon { width: 13px; }
footer, .mini { color: var(--muted); }
.sheet + .sheet { margin-top: 24px; }
.wrap, .navshell > *, .sheet, .row > div { min-width: 0; }
dialog.sheet { max-width: min(429px, calc(100% - 32px)); width: 100%; max-height: 90vh; overflow: auto; color: var(--text); }
dialog::backdrop { background: var(--scrim); }
@media (max-width: 700px) {
    header { min-height: 58px; height: auto; padding: 8px 16px; flex-wrap: wrap; gap: 4px 8px; }
    .headtools { margin-inline-start: auto; }
    .weather, .brandtitle, .subfoot { display: none; }
    main { padding: 16px; align-items: flex-start; }
    .sheet, .tight .sheet { padding: 24px; }
    .code { font-size: 30px; letter-spacing: 1px; }
    h1 { font-size: 24px; }
    .navshell { width: min(468px, 100%); display: flex; flex-direction: column; gap: 16px; }
    .navshell > * { width: 100%; }
}
@media (max-width: 360px) {
    .otp-slots [data-active] { outline-offset: -2px; }
    .sheet, .tight .sheet { padding: 16px; }
    .row.between { align-items: flex-start; flex-wrap: wrap; }
    main, .sheet, .tight .sheet { padding-inline: clamp(8px, 5vw, 16px); }
}
