/*
 * The staff realm's one stylesheet (ADR 0006, Decision 7.5). The staff host's content-security policy allows no
 * inline style, so every staff page links this file. Plain and minimal on purpose: no design language is claimed
 * until the portal chooses one, and slice 4's request and approval pages use this file as they find it (the owner's
 * ruling of 2026-10-26, SD-1806 slice 4 plan, D8 A). Until 2026-10-26 this said one would be chosen before slice 4's
 * approval page. The browser's own light and dark colours are used throughout.
 */

:root {
    color-scheme: light dark;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

body {
    margin: 0;
    padding: 2rem 1rem;
}

main {
    max-width: 36rem;
    margin: 0 auto;
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

input,
select,
textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem;
    font: inherit;
}

fieldset {
    margin: 1.5rem 0 0;
    padding: 0 1rem 1rem;
    border: 1px solid currentColor;
}

legend {
    padding: 0 0.25rem;
    font-weight: 600;
}

dt {
    margin-top: 0.75rem;
    font-weight: 600;
}

dd {
    margin: 0;
}

/* A refusal, shown where the action was attempted (design guidelines §5.9), and a warning before an action. */
.error {
    padding: 0.75rem;
    border: 2px solid currentColor;
    font-weight: 600;
}

.warning {
    font-weight: 600;
}

.status:empty {
    display: none;
}

.status {
    padding: 0.75rem;
    border: 1px solid currentColor;
}

.content-hash {
    font-family: ui-monospace, monospace;
    word-break: break-all;
}

#code {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.1em;
}

.hint {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

button {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    font: inherit;
}

#enrolment-status:empty,
#sign-in-status:empty,
#totp-start-status:empty,
#totp-confirm-status:empty {
    display: none;
}

#enrolment-status,
#sign-in-status,
#totp-start-status,
#totp-confirm-status {
    padding: 0.75rem;
    border: 1px solid currentColor;
}

/*
 * The QR code is drawn dark on white with no margin of its own (TotpEnrolmentQrCode). The white padding is the quiet
 * zone a camera needs around a code, which a dark theme's background would otherwise take away.
 */
.qr-code {
    display: block;
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
}

#totp-secret {
    word-break: break-all;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.5rem;
    border-bottom: 1px solid currentColor;
    text-align: left;
    vertical-align: top;
}

.aaguid {
    font-family: ui-monospace, monospace;
    word-break: break-all;
}
