.account-page:not(.account-managing) { display: flex; flex-direction: column; min-block-size: 100vh; min-block-size: 100dvh; background: var(--brand-paper); }
.account-page:not(.account-managing) :is(.masthead nav, .site-footer, .account-intro-copy),
.account-managing :is(.account-illustration, .auth-help) { display: none; }
html:not([data-page="account"]) .account-intro-copy, .account-content:has(#account-profile:not([hidden]) #account-dashboard[hidden]) .account-intro-copy { display: none; }
.account-page:not(.account-managing) .site-header { background: transparent; }
.account-page:not(.account-managing) :is(.masthead, .site-main) { width: min(calc(100% - 2 * var(--site-gutter)), 64rem); }
.account-page:not(.account-managing) .masthead { border-bottom: 0; }
.account-page:not(.account-managing) .site-main { flex: 1; display: grid; grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); align-content: center; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5rem); margin-block: clamp(1rem, 5vh, 3.5rem); }
.account-content { min-inline-size: 0; }
.account-page h1 { font-size: clamp(2.25rem, 4.8vw, 4.2rem); line-height: 1.1; }
.account-page:not(.account-managing) .account-intro { margin-block-end: 1rem; }
.account-page:not(.account-managing) #account-heading { text-wrap: balance; }
.account-illustration { display: block; width: 100%; max-width: 31rem; height: auto; justify-self: center; }
.auth-flow { gap: .85rem; }
#sign-in-form { gap: .8rem; }
#sign-in-form button { justify-self: start; }
#captcha-note:empty { display: none; }
#login-current-session p { margin-block-end: .5rem; }
.account-inbox { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .7rem; border: 1.5px solid var(--brand-ink); border-radius: .75rem; background: var(--brand-green); padding: .8rem; }
.account-inbox svg { margin-block-start: .1rem; }
.auth-help { margin-block-start: .75rem; }
.account-dashboard { display: grid; grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.account-dashboard .card, .account-panels .card { margin: 0; }
.account-panels, .account-tools { display: grid; gap: 1rem; }
.account-nav { display: grid; min-width: 0; gap: 0; }
.account-nav a { padding: .4rem .7rem; border-radius: .6rem; text-decoration: none; font-weight: 600; }
.account-nav a:hover, .account-nav [aria-current] { text-decoration: underline; }
.account-nav [aria-current] { background: var(--brand-yellow); }
.account-next { padding-block-start: .55rem; border-block-start: 1.5px solid var(--brand-rule); }
.account-tools { gap: .5rem; margin-block-start: 1rem; }
#connect-activate-account, #mcp-activate-account, #activate-account { justify-self: start; }
@media (max-width: 48rem) {
  .account-page:not(.account-managing) .site-main { grid-template-columns: minmax(0, 28rem); gap: 1rem; align-content: start; }
  .account-illustration { grid-row: 1; width: clamp(8rem, 42vw, 15rem); }
  .account-dashboard { grid-template-columns: minmax(0, 1fr); }
  .account-nav { display: flex; gap: 0 .25rem; }
}
@media (forced-colors: active) {
  .account-nav [aria-current] { border: 1px solid CanvasText; }
  .account-illustration { forced-color-adjust: none; }
}

.primary { background: var(--brand-yellow); }
.primary:hover { background: #ffd367; }
.action-link { justify-content: center; border: 1.5px solid var(--brand-ink); border-radius: .6rem; padding: .65rem .85rem; font-weight: 650; text-decoration: none; }
.danger { color: var(--brand-error); border-color: currentColor; }
label { display: grid; gap: .3rem; font-weight: 600; }
input, select { width: 100%; min-width: 0; font-weight: 400; }
.check { display: flex; align-items: center; gap: .7rem; min-height: 48px; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; min-height: 24px; accent-color: var(--brand-ink); }
.invitation { background: var(--brand-green); box-shadow: 4px 4px 0 var(--brand-ink); }
#account-profile { gap: 0; }
.section-heading { justify-content: space-between; }
.section-heading > div { min-width: 0; flex: 1 1 15rem; }
.status:empty { display: none; }
.status { padding: .6rem 0 1rem; }
.message { padding: 1rem; background: var(--brand-yellow); border-radius: .65rem; border: 2px solid var(--brand-error); margin-bottom: 1rem; }
.message .actions { margin-top: .5rem; }
.records { list-style: none; margin: 0; padding: 0; }
.records > li { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--brand-rule); }
.records > li:last-child { border-bottom: 0; }
.record-copy { flex: 1 1 13rem; min-width: 0; }
.record-copy strong, .record-copy span { display: block; overflow-wrap: anywhere; }
.records ul { flex: 1 1 100%; padding-inline-start: 1rem; }
details[open] > form { margin-top: .5rem; }
#invitation-qr, #pair-qr { display: block; width: min(100%, 320px); height: auto; margin-inline: auto; background: white; }
#invitation-link { font-size: .9rem; }
#captcha { overflow-x: auto; }
#captcha:empty { display: none; }
dialog { width: min(100% - 2rem, 30rem); max-height: calc(100dvh - 2rem); overflow-y: auto; color: inherit; background: var(--brand-paper); border: var(--brand-line) solid var(--brand-ink); border-radius: var(--brand-radius); padding: 1.5rem; }
dialog h2, dialog p { margin-bottom: 1rem; }
dialog::backdrop { background: #2c203c66; }
#pair-scan .actions { margin-block: .75rem 1rem; }
#pair-device-name { overflow-wrap: anywhere; }
#pair-match-code { font-size: 1.5em; letter-spacing: .12em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media (forced-colors: active) { .card, .message, .notice, button, input, select { border: 1px solid CanvasText; } }
