/* Document and structural defaults. Theme colors are owned by gds-tokens.css.
   Shared primitives and application layout are owned by the GDS stylesheets. */
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1:focus, main:focus { outline: none; }
.desk-icon { flex-shrink: 0; }
.skip-link { position: fixed; left: 20px; padding: 12px 20px; border-radius: 8px; z-index: 50; }
.workspace { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; border-right: 1px solid var(--gds-line); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; min-width: 0; }
.brand-mark { display: grid; place-items: center; font-weight: 700; line-height: 1; flex-shrink: 0; }
.brand-logo { object-fit: contain; flex-shrink: 0; }
.brand-name { overflow-wrap: anywhere; }
.brand-byline { display: block; }
.navigation { display: flex; flex-direction: column; }
.nav-item { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.sidebar-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 10px 0; border-top: 1px solid var(--gds-line); }
.sidebar-footer strong { display: block; font-weight: 600; }
.workspace-body { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--gds-line); }
.breadcrumb { display: flex; }
.breadcrumb strong { font-weight: 500; }
main { width: 100%; max-width: 1440px; margin: 0 auto; flex: 1; }
h1 { margin-top: 11px; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.button { display: inline-flex; align-items: center; }
.button .desk-icon { width: 15px; height: 15px; }
.page-footer { padding: 18px 0 21px; border-top: 1px solid var(--gds-line); display: flex; justify-content: space-between; }
.message-page { border: 1px solid var(--gds-line); padding: 40px; max-width: 650px; }
.message-page h1 { margin-bottom: 15px; }
.message-page p { color: var(--gds-muted); line-height: 1.8; margin-bottom: 20px; }
.message-page code { overflow-wrap: anywhere; }
.account-card { max-width: 440px; margin: 30px auto; border: 1px solid var(--gds-line); }
.account-card h1 { margin: 14px 0 10px; }
.account-card h2 { font-size: 19px; letter-spacing: -.4px; margin: 30px 0 10px; }
.account-card h3 { font-size: 15px; margin: 20px 0 10px; }
.account-card p { color: var(--gds-muted); line-height: 1.7; margin-bottom: 14px; }
.account-card form { display: flex; flex-direction: column; gap: 10px; }
.account-card label { margin-top: 8px; }
.account-card input:not([type=checkbox]):not([type=hidden]), .account-card select, .account-card textarea { width: 100%; }
.account-card .account-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 8px 0; }
.account-card .button { justify-content: center; margin-top: 8px; }
.account-card textarea { min-height: 140px; resize: vertical; }
.account-card small { color: var(--gds-muted); line-height: 1.5; }
.account-card button:not(.button) { width: fit-content; }
.authenticator-key { overflow-wrap: anywhere; user-select: all; }
.recovery-codes { padding-left: 20px; columns: 2; line-height: 2; }
.logo-preview, .logo-placeholder { width: 100%; max-width: 260px; height: 125px; padding: 18px; object-fit: contain; border-radius: 10px; border: 1px dashed var(--gds-border); }
.logo-placeholder { display: grid; place-items: center; font-size: 12px; }
.form-editor details { margin-top: 16px; }
.form-editor summary { cursor: pointer; }
.field-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.field-editor label { display: grid; gap: 5px; }
@media (max-width: 900px) {
    .nav-item { gap: 9px; }
}
@media (max-width: 600px) {
    .nav-item .desk-icon { width: 15px; height: 15px; }
    .account-card { margin: 8px auto; }
    .message-page { padding: 25px; }
    .page-footer { gap: 20px; }
    h1 { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
