.account-page { background: var(--paper); color: var(--ink); }
.account-masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 15px max(24px, calc((100vw - 1180px) / 2)); background: var(--panel); border-bottom: 1px solid var(--rule); }
.account-brand { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.account-brand img { display: block; width: 48px; height: auto; }
.account-brand > span { font-size: 15px; font-weight: 650; }
.account-brand small { display: block; color: var(--ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; margin-top: 3px; }
.account-masthead nav { display: flex; align-items: center; gap: 22px; }
.dashboard-return { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--ink-2); padding: 9px 0; }
.dashboard-return svg { width: 16px; height: 16px; }
.dashboard-return:hover { color: var(--red); }
.account-masthead .btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.account-masthead .btn svg { width: 16px; height: 16px; }
.account-shell { max-width: 1180px; margin: 0 auto; padding: 38px 24px 24px; }
.account-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.eyebrow { font-size: 10px; letter-spacing: .14em; color: var(--red); font-weight: 700; margin-bottom: 9px; }
.account-page-heading h1 { font-size: 32px; margin-bottom: 9px; }
.account-page-heading p:not(.eyebrow) { color: var(--ink-2); font-size: 14px; }
.access-label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 6px; color: var(--basil); background: var(--basil-soft); font-size: 11px; font-weight: 600; }
.access-label svg { width: 16px; height: 16px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 24px; }
.account-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: white; padding: 18px 22px; border: 1px solid var(--rule); border-radius: 10px; }
.account-stats span { font-size: 12px; color: var(--ink-2); }
.account-stats strong { font-size: 27px; font-weight: 600; }
.account-columns { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.account-panel { background: white; border: 1px solid var(--rule); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.panel-title { display: flex; align-items: center; gap: 12px; padding-bottom: 21px; border-bottom: 1px solid var(--rule-2); margin-bottom: 20px; }
.panel-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--red-soft); color: var(--red); border-radius: 9px; flex: none; }
.panel-title h2 { font-size: 17px; margin: 0; }
.panel-title p { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.account-shell label:not(.check) { display: grid; gap: 7px; margin: 16px 0; font-size: 12px; font-weight: 600; }
.account-shell input:not([type=checkbox]), .account-shell select { width: 100%; font-size: 13px; min-height: 43px; }
.account-shell input::placeholder { color: #89918b; font-weight: 400; }
.role-note { padding: 10px 12px; background: var(--paper); color: var(--ink-2); border-radius: 7px; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.account-shell fieldset { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; margin: 20px 0; }
.account-shell legend { padding: 0 6px; font-size: 12px; font-weight: 600; }
#store-options { max-height: 222px; overflow-y: auto; scrollbar-width: thin; }
.check { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12px; cursor: pointer; }
.check input { width: 14px; height: 14px; margin: 0; flex: none; }
.disable-check { margin-bottom: 17px; align-items: flex-start; }
.disable-check input { margin-top: 3px; }
.disable-check small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.form-actions button[type=submit] { flex: 1; }
.user-card { padding: 20px 0; border-bottom: 1px solid var(--rule-2); overflow-wrap: anywhere; }
.user-card:first-child { padding-top: 0; }
.user-card:last-child { border-bottom: 0; padding-bottom: 0; }
.user-heading { display: flex; align-items: center; gap: 11px; }
.user-heading .account-avatar { width: 38px; height: 38px; background: var(--paper); color: var(--ink-2); }
.user-heading > div { flex: 1; min-width: 0; }
.user-heading b { font-size: 14px; }
.user-heading p { color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.user-role { font-size: 10px; font-weight: 600; background: var(--red-soft); color: var(--red); border-radius: 5px; padding: 4px 7px; }
.user-role.store { background: var(--paper); color: var(--ink-2); }
.user-scope { color: var(--ink-2); font-size: 12px; margin: 14px 0 10px; }
.user-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--ink-3); font-size: 11px; }
.user-status { display: inline-flex; align-items: center; gap: 5px; color: var(--basil); }
.user-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.user-status.disabled { color: var(--red); }.user-status.pending { color: #806014; }
.user-actions { display: flex; gap: 8px; margin-top: 14px; }
.user-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; min-height: 34px; background: white; border: 1px solid var(--rule); border-radius: 6px; font-size: 11px; cursor: pointer; }
.user-actions button:hover { background: var(--paper); border-color: #bcc7bf; }
.user-actions svg { width: 14px; height: 14px; }
.account-shell #message:empty { display: none; }
.account-shell #message { padding: 12px 15px; background: var(--mustard-soft); border: 1px solid #e9dab6; color: #725522; border-radius: 8px; font-size: 13px; margin-bottom: 20px; }
.account-shell #message.success { color: var(--basil); background: var(--basil-soft); border-color: #cbded0; }
.account-shell #temporary { background: var(--basil-soft); border: 1px solid #b8d5c0; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
#temporary p { font-size: 13px; margin: 8px 0 12px; }
#temporary button, #temporary a { display: inline-block; border: 1px solid #b8d5c0; background: white; padding: 7px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; font-size: 12px; }
.account-shell code { display: block; overflow-wrap: anywhere; font-size: 16px; margin-bottom: 12px; }
.activity-panel { margin-top: 24px; }
.activity-panel > summary { list-style: none; display: flex; align-items: center; gap: 16px; cursor: pointer; font-weight: 600; font-size: 15px; }
.activity-panel > summary::-webkit-details-marker { display: none; }
.activity-panel > summary small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
#audit { max-height: 340px; overflow-y: auto; margin-top: 18px; }
.audit-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; border-top: 1px solid var(--rule-2); padding: 12px 0; font-size: 12px; overflow-wrap: anywhere; }
.audit-row time { color: var(--ink-3); font-size: 11px; }
.audit-row small { display: block; color: var(--ink-3); margin-top: 2px; }
.account-footer { text-align: center; color: var(--ink-3); font-size: 11px; margin-top: 24px; }
.account-shell.narrow { width: calc(100% - 32px); max-width: 430px; margin: 42px auto 20px; padding: 30px 36px; border: 1px solid var(--rule); border-top: 3px solid var(--red); border-radius: 14px; background: white; box-shadow: 0 8px 32px rgba(32,41,35,.04); }
.login-brand img { display: block; width: 68px; height: auto; margin: 0 auto 19px; }
.narrow > .eyebrow, .narrow h1, .narrow #intro { text-align: center; }
.narrow h1 { font-size: 27px; margin-bottom: 10px; }
.narrow #intro { color: var(--ink-3); font-size: 13px; margin-bottom: 24px; }
.narrow form .btn { width: 100%; margin-top: 8px; min-height: 43px; }
.login-help { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 20px; line-height: 1.7; }
.login-back { display: block; text-align: center; color: var(--ink-2); font-size: 12px; margin-top: 16px; }
.login-footer { color: var(--ink-3); font-size: 10px; text-align: center; padding-bottom: 24px; }
.account-shell button:disabled { opacity: .55; cursor: wait; }
#mfa-challenge > .btn, #security-settings > .btn { width: 100%; min-height: 43px; margin-bottom: 16px; }
#mfa-challenge details { margin-top: 24px; font-size: 12px; }
#mfa-challenge summary { cursor: pointer; color: var(--ink-2); }
#recovery-codes { font-size: 11px; line-height: 1.9; overflow-x: auto; background: var(--paper); padding: 12px; border-radius: 8px; user-select: all; }
#recovery-count { margin: 20px 0 12px; font-size: 12px; color: var(--ink-2); }
/* Authenticator setup keeps the code and confirmation together. */
.login-page .account-shell.narrow:has(#totp-enroll:not([hidden])) { max-width: 680px; padding: 26px 28px 24px; margin-top: 28px; }
.narrow:has(#totp-enroll:not([hidden])) .login-brand img { width: 44px; margin-bottom: 12px; }
.narrow:has(#totp-enroll:not([hidden])) > .eyebrow { font-size: 9px; margin-bottom: 7px; }
.narrow:has(#totp-enroll:not([hidden])) h1 { font-size: 26px; margin-bottom: 7px; }
.narrow:has(#totp-enroll:not([hidden])) #intro { margin-bottom: 24px; line-height: 1.5; }
.totp-start { padding: 24px; border: 1px solid var(--rule); border-radius: 12px; background: #FAFBF8; text-align: center; }
.totp-start-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.totp-start-icon svg { width: 26px; height: 26px; }
.totp-start h2 { font-size: 16px; }
.totp-start p { color: var(--ink-2); font-size: 13px; margin: 8px auto 18px; max-width: 290px; }
.totp-start .btn { min-height: 44px; }
.totp-setup { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; gap: 0 28px; }
.totp-scan-panel { border: 1px solid var(--rule); border-radius: 12px; padding: 15px; background: #FAFBF8; text-align: center; }
.totp-scan-caption { display: none; }
.totp-qr-frame { width: 216px; max-width: 100%; margin: 0 auto 12px; padding: 0; background: #fff; border-radius: 6px; }
.totp-qr { display: block; width: 216px; height: auto; max-width: 100%; aspect-ratio: 1; margin: 0; }
.totp-manual { color: var(--ink-2); font-size: 11px; text-align: left; }
.totp-manual summary { cursor: pointer; text-align: center; padding: 5px 0; }
.totp-manual summary:hover { color: var(--ink); }
.totp-manual p { margin-top: 10px; line-height: 1.5; }
.account-shell .totp-secret { display: block; padding: 10px; margin: 8px 0 2px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; overflow-wrap: anywhere; user-select: all; font-size: 12px; line-height: 1.7; letter-spacing: .06em; }
.totp-text-button { appearance: none; border: 0; background: transparent; color: var(--ink-2); font-size: 11px; font-weight: 500; cursor: pointer; padding: 7px 4px; text-underline-offset: 3px; }
.totp-text-button:hover { text-decoration: underline; color: var(--red); }
#restart-totp { margin-top: 5px; }
.totp-instructions { padding-top: 5px; }
.totp-step { display: flex; gap: 11px; align-items: flex-start; }
.totp-step + .totp-step { margin-top: 25px; }
.totp-step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 11px; font-weight: 700; }
.totp-step h2 { font-size: 15px; line-height: 24px; letter-spacing: -.01em; }
.totp-step p { margin-top: 5px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
#totp-confirm { margin-left: 35px; }
#totp-confirm label { margin: 13px 0 0; font-size: 11px; gap: 6px; }
.account-shell input.totp-code-input { min-height: 48px; font-size: 22px; letter-spacing: .28em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(11px + .28em); }
.account-shell input.totp-code-input:focus { outline: 2px solid var(--red); outline-offset: 2px; border-color: var(--red); }
#totp-confirm .btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 12px; min-height: 44px; padding: 9px 10px; }
#totp-confirm .btn svg { width: 15px; height: 15px; }
.totp-footnote { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: center; gap: 7px; border-top: 1px solid var(--rule-2); padding-top: 15px; margin-top: 20px; color: var(--ink-3); font-size: 10px; line-height: 1.6; }
.totp-footnote svg { width: 13px; height: 13px; margin-top: 1px; }
.totp-cancel { display: block; margin: 12px auto 0; }
#security-settings > button { margin-top: 14px; }
@media(max-width:620px) {
  .login-page .account-shell.narrow:has(#totp-enroll:not([hidden])) { max-width: 430px; padding: 22px; margin-top: 20px; }
  .narrow:has(#totp-enroll:not([hidden])) .login-brand { display: none; }
  .narrow:has(#totp-enroll:not([hidden])) h1 { font-size: 23px; }
  .narrow:has(#totp-enroll:not([hidden])) #intro { font-size: 12px; margin-bottom: 18px; }
  .totp-setup { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .totp-scan-panel { width: 100%; padding: 12px; }
  .totp-scan-caption { display: block; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
  .totp-qr-frame, .totp-qr { width: 184px; }
  .totp-manual { max-width: 260px; margin: 0 auto; }
  .totp-instructions { padding-top: 0; }
  .totp-step + .totp-step { margin-top: 16px; }
  .totp-step:first-child { display: none; }
  .totp-step + .totp-step { margin-top: 0; }
  .totp-step-number { display: none; }
  #totp-confirm { margin-left: 0; }
  .totp-footnote { margin-top: 0; padding-top: 14px; justify-content: flex-start; }
}
@media(max-width:800px) { .account-columns { grid-template-columns: 1fr; }.account-page-heading { align-items: flex-start; }.access-label { display: none; }.account-stats > div { display: grid; gap: 4px; padding: 14px; }.account-masthead nav { gap: 12px; }.account-brand > span { font-size: 12px; }.account-masthead .account-trigger-copy { display: none; } }
@media(max-width:500px) { .account-masthead { padding: 12px 16px; gap: 12px; }.account-brand > span { display: none; }.account-shell { padding: 28px 16px; }.account-page-heading h1 { font-size: 28px; }.account-panel { padding: 20px; }.account-stats { gap: 8px; }.account-stats span { font-size: 10px; }.account-stats strong { font-size: 24px; }.account-shell.narrow { padding: 28px 24px; margin-top: 28px; }.audit-row { grid-template-columns: 1fr; gap: 4px; }.user-heading { flex-wrap: wrap; }.user-role { margin-left: auto; } }

.confirm-admin { width: calc(100% - 32px); max-width: 420px; border: 1px solid var(--rule); border-radius: 14px; padding: 28px; color: var(--ink); }.confirm-admin::backdrop { background: rgba(20,30,24,.4); }.confirm-admin h2 { margin-bottom: 8px; }.confirm-admin p { font-size: 13px; color: var(--ink-2); }.confirm-admin label { display: grid; gap: 8px; margin: 20px 0; font-size: 13px; }.confirm-admin #confirm-admin-error { color: var(--red); margin-bottom: 12px; }

/* Account surfaces share the dashboard's warm, high-contrast system. */
.account-page { min-height: 100vh; background: var(--paper); }
.account-masthead { padding-block: 13px; border: 0; background: #242321; color: #fff; }
.account-brand img { width: 42px; padding: 5px; border-radius: 10px; background: #fff; }
.account-brand small { color: #97938C; }
.account-masthead .dashboard-return { color: #D8D4CC; }
.account-masthead .dashboard-return:hover { color: #fff; }
.account-masthead .btn.secondary { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; }
.account-shell { padding-top: 48px; }
.account-page-heading { margin-bottom: 32px; }
.account-page-heading h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.05em; }
.eyebrow { font-size: 9px; letter-spacing: .17em; }
.account-stats { gap: 14px; }
.account-stats > div { min-height: 108px; padding: 22px; border: 0; border-radius: 18px; background: rgba(255,255,255,.8); box-shadow: var(--shadow); }
.account-stats > div:first-child { background: #242321; color: #fff; }
.account-stats > div:first-child span { color: #AAA69F; }
.account-stats strong { font-size: 32px; letter-spacing: -.05em; }
.account-columns { gap: 22px; }
.account-panel { padding: 27px; border: 0; border-radius: 24px; background: rgba(255,255,255,.84); }
.panel-icon { width: 42px; height: 42px; border-radius: 12px; background: #242321; color: #fff; }
.role-note, #recovery-codes { border-radius: 11px; background: #F2F0EB; }
.user-heading .account-avatar { border-radius: 11px; background: #242321; color: #fff; }
.user-actions button { border-radius: 9px; }
.account-shell.narrow { position: relative; overflow: hidden; max-width: 460px; margin-top: 7vh; padding: 38px 40px; border: 0; border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: 0 28px 80px rgba(36,35,33,.11); }
.account-shell.narrow::after { content: ""; position: absolute; top: -105px; right: -102px; width: 180px; height: 180px; border: 28px solid var(--red); border-radius: 50%; pointer-events: none; }
.login-brand img { width: 62px; margin-bottom: 24px; }
.narrow h1 { font-size: 32px; letter-spacing: -.05em; }
.narrow #intro { margin-bottom: 29px; }
.totp-start, .totp-scan-panel { border: 0; border-radius: 16px; background: #F4F2ED; }
.totp-start-icon, .totp-step-number { background: #242321; color: #fff; }
.confirm-admin { border: 0; border-radius: 22px; box-shadow: 0 24px 70px rgba(36,35,33,.18); }
@media(max-width:500px) {
  .account-shell { padding-top: 34px; }
  .account-shell.narrow { width: calc(100% - 24px); padding: 32px 24px; margin-top: 24px; border-radius: 22px; }
  .account-shell.narrow::after { top: -120px; right: -120px; }
}

/* Impeccable account surfaces. */
.account-masthead { padding-block: 16px; border-bottom: 4px solid var(--primary); background: var(--secondary); }
.account-brand img { width: 44px; border: 2px solid var(--ink); border-radius: 4px; }
.account-brand > span { font-size: 16px; }
.account-brand small { color: #D9F7E8; font-size: 12px; }
.account-masthead .dashboard-return { color: #fff; font-size: 14px; }
.account-masthead .btn.secondary { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); }
.account-page-heading h1 { font-size: 32px; text-transform: uppercase; }
.account-page-heading p:not(.eyebrow), .panel-title p, .role-note { font-size: 14px; }
.eyebrow { color: #8F5E00; font-size: 12px; letter-spacing: .12em; }
.access-label { border: 1px solid var(--success); border-radius: 4px; font-size: 12px; }
.account-stats > div { min-height: 112px; padding: 24px; border: 2px solid var(--ink); border-radius: 4px; background: var(--panel); box-shadow: var(--shadow); }
.account-stats > div:first-child { background: var(--secondary); }
.account-stats > div:first-child span { color: #D9F7E8; }
.account-stats span { font-size: 12px; }
.account-stats strong { font-family: "JetBrains Mono", monospace; font-size: 32px; }
.account-panel { padding: 24px; border: 2px solid var(--ink); border-radius: 4px; background: var(--panel); box-shadow: var(--shadow); }
.panel-icon { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 4px; background: var(--primary); color: #fff; }
.panel-title h2 { font-size: 20px; text-transform: uppercase; }
.account-shell label:not(.check), .check, .user-scope, .user-heading p, .user-meta { font-size: 12px; }
.role-note, #recovery-codes { border: 1px solid var(--rule); border-radius: 4px; background: #F7EEDC; }
.user-heading .account-avatar { border: 2px solid var(--ink); border-radius: 4px; background: var(--primary); color: #fff; }
.user-role, .user-actions button { border-radius: 4px; }
.user-actions button { border: 1px solid var(--ink); background: var(--paper); font-size: 12px; }
.account-shell.narrow { max-width: 480px; padding: 40px; border: 2px solid var(--ink); border-radius: 4px; background: var(--panel); box-shadow: 10px 10px 0 var(--primary); }
.account-shell.narrow::after { border-color: var(--primary); }
.narrow h1 { font-size: 32px; text-transform: uppercase; }
.narrow #intro, .login-help { font-size: 14px; }
.totp-start, .totp-scan-panel { border: 2px solid var(--ink); border-radius: 4px; background: #F7EEDC; }
.totp-start-icon, .totp-step-number { border: 1px solid var(--ink); border-radius: 4px; background: var(--primary); color: #fff; }
.confirm-admin { border: 2px solid var(--ink); border-radius: 4px; box-shadow: 8px 8px 0 var(--primary); }
@media(max-width:500px) {
  .account-shell.narrow { border-radius: 4px; }
}

/* Refined account surfaces: calm hierarchy, neutral type, restrained brand color. */
.account-page { background: var(--paper); }
.account-masthead { padding-block: 13px; border: 0; border-bottom: 1px solid var(--rail-rule); background: var(--rail-bg); color: var(--rail-text); }
.account-brand img { width: 42px; padding: 5px; border: 0; border-radius: 10px; background: #fff; }
.account-brand > span { font-size: 14px; }
.account-brand small { color: var(--rail-muted); font-size: 9px; }
.account-masthead .dashboard-return { color: var(--rail-muted); font-size: 12px; }
.account-masthead .dashboard-return:hover { color: var(--rail-text); }
.account-masthead .btn.secondary { border: 1px solid var(--rail-rule); border-radius: 9px; background: var(--rail-hover); color: var(--rail-text); }
.account-shell { padding-top: 42px; }
.account-page-heading { margin-bottom: 28px; }
.account-page-heading h1 { font-size: clamp(32px, 4vw, 44px); text-transform: none; letter-spacing: -.045em; }
.account-page-heading p:not(.eyebrow), .panel-title p, .role-note { font-size: 12px; }
.eyebrow { color: var(--primary); font-size: 9px; letter-spacing: .14em; }
.access-label { border: 1px solid #CFDCD2; border-radius: 8px; background: var(--basil-soft); color: #3D604C; font-size: 10px; }
.account-stats { gap: 13px; }
.account-stats > div { min-height: 104px; padding: 21px; border: 1px solid var(--rule); border-radius: 15px; background: color-mix(in srgb, var(--panel) 95%, var(--paper)); box-shadow: var(--shadow); }
.account-stats > div:first-child { border-color: #363A35; background: #30342F; color: #fff; }
.account-stats > div:first-child span { color: #C9CEC7; }
.account-stats span { font-size: 11px; }
.account-stats strong { font-family: inherit; font-size: 30px; letter-spacing: -.045em; }
.account-columns { gap: 20px; }
.account-panel { padding: 25px; border: 1px solid var(--rule); border-radius: 18px; background: color-mix(in srgb, var(--panel) 95%, var(--paper)); box-shadow: var(--shadow); }
.panel-icon { width: 40px; height: 40px; border: 0; border-radius: 11px; background: #30342F; color: #fff; }
.panel-title h2 { font-size: 17px; text-transform: none; }
.account-shell label:not(.check), .check, .user-scope, .user-heading p, .user-meta { font-size: 11px; }
.role-note, #recovery-codes { border: 1px solid var(--rule); border-radius: 10px; background: #F4F2EC; }
.user-heading .account-avatar { border: 0; border-radius: 10px; background: #30342F; color: #fff; }
.user-role, .user-actions button { border-radius: 8px; }
.user-actions button { border: 1px solid var(--rule); background: var(--panel); font-size: 11px; }
.account-shell.narrow { max-width: 470px; padding: 38px 40px; border: 1px solid var(--rule); border-radius: 22px; background: color-mix(in srgb, var(--panel) 96%, var(--paper)); box-shadow: 0 24px 70px rgba(36,39,35,.09); }
.account-shell.narrow::after { top: -110px; right: -108px; border-width: 24px; border-color: var(--primary); opacity: .48; }
.narrow h1 { font-size: 31px; text-transform: none; }
.narrow #intro, .login-help { font-size: 12px; }
.totp-start, .totp-scan-panel { border: 1px solid var(--rule); border-radius: 14px; background: #F4F2EC; }
.totp-start-icon, .totp-step-number { border: 0; border-radius: 10px; background: #30342F; color: #fff; }
.confirm-admin { border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 20px 60px rgba(36,39,35,.16); }
@media(max-width:500px) {
  .account-shell { padding-top: 32px; }
  .account-shell.narrow { width: calc(100% - 24px); padding: 32px 24px; margin-top: 24px; border-radius: 18px; }
}

/* Authenticator codes: six boxes, the familiar one-time-code layout. */
/* Three boxes, a small break, three boxes: the way authenticator apps show a code. */
.otp-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 4px repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 356px; margin: 8px auto 0; }
.account-shell .otp-boxes input { width: 100%; min-width: 0; min-height: 56px; padding: 0; border: 1px solid var(--rule); border-radius: 10px; background: #fff; font-size: 24px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.account-shell .otp-boxes input:nth-child(4) { grid-column: 5; }
.account-shell .otp-boxes input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
@media (max-width: 420px) { .otp-boxes { gap: 6px; } .account-shell .otp-boxes input { min-height: 50px; font-size: 21px; } }
.account-shell .remember-device { min-height: 44px; font-size: 14px; line-height: 1.5; align-items: flex-start; }
.remember-device input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
/* "Remember this device" sits under the six boxes, just above Verify. */
#totp-verify label:not(.check) { margin-bottom: 0; }
.account-shell #totp-verify .remember-device { margin-top: 20px; }
#remember-device-help { margin: 0 0 20px; text-align: start; font-size: 14px; color: var(--ink-2); }

/* Show / hide password: an eye button inside the right end of each password field. */
.password-field { position: relative; margin: 16px 0; }
.confirm-admin .password-field { margin: 20px 0; }
.account-shell .password-field > label, .confirm-admin .password-field > label { margin: 0; }
.account-shell .password-field input, .confirm-admin .password-field input { width: 100%; min-height: 44px; padding-right: 48px; }
.password-toggle { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); cursor: pointer; }
.password-toggle:hover { color: var(--ink); }
.password-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle .password-toggle-slash { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle-slash { display: inline; }
.remembered-section { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 24px; }
.remembered-section h2 { font-size: 19px; margin-bottom: 8px; }
.remembered-section .login-help { font-size: 14px; color: var(--ink-2); text-align: start; margin-top: 0; }
.remembered-devices { list-style: none; padding: 0; margin: 16px 0; }
.remembered-devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding: 14px 0; overflow-wrap: anywhere; }
.remembered-devices strong { font-size: 14px; font-weight: 600; }
.remembered-devices p { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.remembered-devices .btn { min-height: 44px; flex: none; }
.devices-empty { font-size: 14px; color: var(--ink-2); }
.remembered-section > .btn { width: 100%; min-height: 44px; }

/* Sign-in and account pages share the dashboard's typeface, palette and light header. */
.account-page {
  --paper: #f8f7f6; --panel: #fff; --ink: #24232a; --ink-2: #514f58; --ink-3: #68656e; --rule: #dad8dc; --rule-2: #eae8eb;
  --red: #c7202b; --red-soft: #faedef; --primary: #c7202b; --primary-strong: #a41b25;
  --rail-bg: #f4f2f0; --rail-text: #24232a; --rail-muted: #625e63; --rail-rule: #e4e0de; --rail-hover: #e9e5e4;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
.account-page h1, .account-page h2, .account-page h3 { font-family: inherit; letter-spacing: -.025em; }
.account-page .btn { border-color: var(--primary); background: var(--primary); }
.account-page .btn:hover { border-color: var(--primary-strong); background: var(--primary-strong); }
.account-page .btn.secondary { border-color: var(--rule); background: var(--panel); color: var(--ink); }
.account-page .btn.secondary:hover { border-color: #aaa4aa; background: #f5f3f3; }
.account-masthead { border-bottom: 1px solid var(--rail-rule); background: var(--rail-bg); color: var(--rail-text); }
.account-masthead .account-brand, .account-masthead .account-brand > span { color: var(--rail-text); }
.account-masthead .account-brand small { color: var(--rail-muted); }
.account-masthead .btn.secondary, .account-masthead .dashboard-return { border-color: var(--rule); background: var(--panel); color: var(--ink); }
.account-shell.narrow::after { opacity: 1; border-color: var(--red-soft); }

/* Role settings extend the existing JCP form, with native selects and labelled access. */
.account-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.role-permissions { margin: 20px 0; border-block: 1px solid var(--rule); }
.role-permissions > summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.role-permissions-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.role-permissions-table caption { text-align: left; padding: 8px 0; color: var(--ink-2); }
.role-permissions-table th, .role-permissions-table td { padding: 10px 6px; border-bottom: 1px solid var(--rule); text-align: left; }
.role-permissions-table tbody th { font-weight: 500; }
.role-permissions-table td { white-space: nowrap; color: var(--ink-2); }
#employee-options label small, #employee-link-status { font-size: 12px; line-height: 1.6; font-weight: 400; color: var(--ink-2); }
#employee-options select { min-height: 44px; }
@media (max-width: 800px) { .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Accounts page: temporary password, team search, editing beside the card (owner note 15). */
#temporary h2 { font-size: 17px; }
.account-shell #temporary .temporary-for { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); }
.temporary-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.temporary-row code { flex: 0 1 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid #b8d5c0; border-radius: 8px; background: #fff; font-size: 16px; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }
.account-shell #temporary .copy-password { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 16px; border-color: var(--ink); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.copy-password svg { width: 16px; height: 16px; }
.account-shell #temporary .copy-status { margin: 0 0 12px; font-size: 12px; color: var(--basil); }
.copy-status:empty { display: none; }
.account-shell #temporary #dismiss-password { min-height: 36px; }

.team-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); gap: 12px; }
.account-shell .team-tools label { margin: 0; }
.account-shell .team-tools input, .account-shell .team-tools select { min-height: 44px; }
.team-count { margin: 12px 0 4px; font-size: 12px; color: var(--ink-3); }
.team-empty { padding: 24px 0 8px; color: var(--ink-2); font-size: 13px; text-align: center; }
.account-shell .user-card[hidden] { display: none; }
.user-card:first-child { padding-top: 12px; }
.user-actions button { min-height: 40px; }

/* While editing, the form sits directly under the person's card. */
.user-card.editing { border-bottom: 0; padding-bottom: 12px; }
.user-card.editing .user-actions { display: none; }
#users > #user-form { margin: 0 0 20px; padding: 4px 18px 18px; border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 12px; background: #fcfbfa; }
.edit-heading { margin: 16px 0 0; font-size: 15px; }
.editor-away { display: grid; gap: 12px; justify-items: start; padding: 14px; border-radius: 10px; background: var(--paper); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.editor-away .btn { min-height: 44px; }

.store-bulk { display: flex; align-items: center; gap: 4px; margin: 2px 0 6px; }
.store-count { flex: 1; font-size: 11px; color: var(--ink-3); }
.store-bulk button { min-height: 36px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.store-bulk button:hover { background: var(--paper); }
.role-permissions-note { margin: 10px 0 14px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.signout-note { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.form-error { margin: 0 0 12px; color: var(--red); font-size: 12px; }
.form-error:empty { display: none; }
#confirm-reset-text { margin-bottom: 18px; line-height: 1.5; }
@media (max-width: 500px) {
  .team-tools { grid-template-columns: 1fr; }
  #users > #user-form { padding: 4px 14px 14px; }
  .temporary-row code { width: 100%; }
  .account-shell #temporary .copy-password { flex: 1; justify-content: center; }
}
/* On a phone the team list comes first; Create account follows it. */
@media (max-width: 800px) { .account-columns > .team-panel { order: -1; } }

/* ======================================================================
   Accounts & access in the dashboard's layout (approved by the owner, November 15, 2026).
   The page reuses dashboard.css, redesign.css and the schedule builder's side panel from
   schedules.css as they are; only the rules below are this page's own.
   ====================================================================== */
.accounts-view .view--accounts { display: flex; flex-direction: column; gap: 20px; }
.accounts-view .account-headlines { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.accounts-view .account-headlines .modern-headline-foot { margin: 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.accounts-view #message:empty { display: none; }
.accounts-view #message { margin: 0; padding: 12px 16px; border-radius: var(--radius-control); background: #fbe4e1; color: #a31c26; font-size: 13px; }
.accounts-view #message.success { background: #e3f1e8; color: #1f5b37; }
/* Temporary password: a peach panel, the lead colour, because it is the one thing to act on now. */
.accounts-view .temporary-panel { background: #fbe2d4; border-color: #f1c9b2; }
.accounts-view .temporary-panel h2 { color: #94212b; font-size: 18px; }
.accounts-view .temporary-panel p { font-size: 13px; color: var(--ink-2); margin: 6px 0 12px; }
.accounts-view .temporary-panel .temporary-for { margin: 2px 0 0; color: #734733; }
.accounts-view .temporary-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.accounts-view .temporary-row code { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #f1c9b2; border-radius: var(--radius-control); background: var(--panel); font: 600 16px "Manrope", ui-monospace, monospace; letter-spacing: .03em; }
.accounts-view .copy-password { display: inline-flex; align-items: center; gap: 8px; }
.accounts-view .copy-password svg { width: 16px; height: 16px; }
.accounts-view .copy-status { font-size: 12px; color: #1f5b37; }
.accounts-view .copy-status:empty { display: none; }
/* Buttons in the dashboard's shape. */
.accounts-view .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #b51f2a; border-radius: var(--radius-control); background: #b51f2a; color: #fff; font: 600 13px "DM Sans", system-ui, sans-serif; cursor: pointer; box-shadow: var(--shadow-control); }
.accounts-view .btn:hover { background: #94212b; border-color: #94212b; }
.accounts-view .btn.secondary { border-color: var(--rule); background: var(--panel); color: var(--ink); }
.accounts-view .btn.secondary:hover { background: #fdf9f3; border-color: #d8c8bb; }
.accounts-view .btn svg { width: 16px; height: 16px; }
.accounts-view .add-person { min-height: 42px; }
/* Team table: the dashboard's table treatment (peach header band, quiet dividers). */
.accounts-view .team-board { overflow-x: auto; border-radius: var(--radius-control); }
body.accounts-view #view .team-table { width: 100%; table-layout: auto; }
body.accounts-view #view .team-table tbody th { text-align: left; font-weight: 400; }
body.accounts-view #view .team-table th, body.accounts-view #view .team-table td { padding: 14px 14px; vertical-align: middle; font-size: 13px; }
body.accounts-view #view .team-table thead th:first-child { border-radius: var(--radius-control) 0 0 0; padding-left: 20px; }
body.accounts-view #view .team-table thead th:last-child { border-radius: 0 var(--radius-control) 0 0; }
body.accounts-view #view .team-table tbody th { padding-left: 20px; }
body.accounts-view #view .team-table tbody tr:nth-child(even) { background: transparent; }
.accounts-view .user-name { display: block; font-weight: 600; color: var(--ink); }
.accounts-view .user-email { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.accounts-view .user-role { display: inline-block; padding: 4px 9px; border-radius: var(--radius-small); background: #f1eee8; color: var(--ink-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.accounts-view .user-role.admin { background: #fbe2d4; color: #94212b; }
.accounts-view .user-scope { color: var(--ink-2); line-height: 1.6; }
.accounts-view .user-scope .modern-store { white-space: nowrap; }
.accounts-view .user-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.accounts-view .user-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #246647; }
.accounts-view .user-status.pending::before { background: #d9a184; }
.accounts-view .user-status.disabled { color: #a31c26; }
.accounts-view .user-status.disabled::before { background: #a31c26; }
.accounts-view .user-seen { color: var(--ink-3); font-size: 12px !important; white-space: nowrap; }
.accounts-view .user-actions { white-space: nowrap; text-align: right; }
.accounts-view .user-actions .btn { min-height: 38px; padding: 0 12px; font-size: 12px; box-shadow: none; }
.accounts-view .user-actions .btn + .btn { margin-left: 6px; }
/* The row being edited: marked as the dashboard marks the row that matters most. */
body.accounts-view #view .team-table tr.editing > * { background: #fff0e5; }
body.accounts-view #view .team-table tr.editing > th { box-shadow: inset 4px 0 0 #b51f2a; }
.accounts-view .team-empty { padding: 20px; text-align: center; color: var(--ink-2); font-size: 13px; }
.accounts-view .modern-panel-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule-2); font-size: 10.5px; color: var(--ink-3); }
/* Activity log in the dashboard's disclosure row. */
.accounts-view #audit .audit-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule-2); font-size: 12.5px; }
.accounts-view #audit .audit-row time { color: var(--ink-3); font-size: 12px; }
.accounts-view #audit .audit-row small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
/* Add and edit: the schedule builder's side panel. */
@media (min-width: 1101px) { .accounts-view #view.account-panel-open { padding-right: 412px; } }
@media (max-width: 1100px) { .accounts-view #view.account-panel-open { padding-bottom: 60dvh; } }
.accounts-view .editor-panel h2 { font-size: 18px; margin: 0; }
.accounts-view .editor-sub { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.accounts-view .editor-panel form { gap: 0; margin-top: 8px; }
.accounts-view .editor-panel label:not(.check) { display: grid; gap: 6px; margin: 14px 0 0; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.accounts-view .editor-panel input:not([type=checkbox]), .accounts-view .editor-panel select { width: 100%; min-height: 44px; border-radius: var(--radius-control); }
.accounts-view .editor-panel .role-note { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-control); background: #f1eee8; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.accounts-view .editor-panel fieldset { margin: 14px 0 0; padding: 8px 12px 10px; border: 1px solid var(--rule); border-radius: var(--radius-control); }
.accounts-view .editor-panel legend { padding: 0 6px; font-size: 12px; font-weight: 600; }
.accounts-view .store-bulk { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
.accounts-view .store-count { flex: 1; font-size: 11.5px; color: var(--ink-3); }
.accounts-view .store-bulk button { min-height: 34px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--radius-small); background: var(--panel); font-size: 12px; font-weight: 600; cursor: pointer; }
.accounts-view #store-options { max-height: 230px; overflow-y: auto; }
.accounts-view #store-options .check { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 34px; font-size: 13px; }
.accounts-view .check input { accent-color: #b51f2a; width: 16px; height: 16px; }
.accounts-view .role-permissions { margin: 14px 0 0; border-block: 1px solid var(--rule); }
.accounts-view .role-permissions > summary { padding: 12px 0; font-weight: 600; font-size: 13px; cursor: pointer; }
.accounts-view .role-permissions-table { width: 100%; font-size: 12px; }
.accounts-view .role-permissions-note { font-size: 11.5px; color: var(--ink-2); margin: 8px 0 12px; }
.accounts-view .disable-check { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; }
.accounts-view .disable-check small { display: block; color: var(--ink-3); font-size: 11.5px; }
.accounts-view .form-error { color: #a31c26; font-size: 12px; margin: 10px 0 0; }
.accounts-view .form-error:empty { display: none; }
.accounts-view .editor-panel .form-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-2); }
.accounts-view .editor-panel .form-actions .btn[type=submit] { flex: 1; }
.accounts-view .signout-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.accounts-view .confirm-admin { border: 1px solid var(--rule); border-radius: var(--radius-panel); box-shadow: var(--shadow-popover); padding: 24px; max-width: 420px; }
.accounts-view .confirm-admin .form-actions { display: flex; gap: 8px; }
@media (max-width: 900px) {
  /* Phones: the table becomes one card per person, as the dashboard's own tables do. */
  body.accounts-view #view .team-table thead { display: none; }
  body.accounts-view #view .team-table, body.accounts-view #view .team-table tbody { display: block; }
  body.accounts-view #view .team-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 4px; border-bottom: 1px solid var(--rule-2); }
  body.accounts-view #view .team-table th, body.accounts-view #view .team-table td { display: block; padding: 0 !important; border: 0; }
  body.accounts-view #view .team-table tr > :nth-child(2) { justify-self: end; }
  body.accounts-view #view .team-table tr > :nth-child(n+3) { grid-column: 1 / -1; }
  .accounts-view .user-actions { text-align: left; }
  .accounts-view .account-headlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accounts-view .account-headlines .is-lead { grid-column: 1 / -1; }
  .accounts-view .modern-panel-tools { flex-wrap: wrap; }
  .accounts-view .modern-panel-tools > * { flex: 1 1 100%; }
}


body.accounts-view #view.account-panel-open .team-table thead { display: none; }
body.accounts-view #view.account-panel-open .team-table, body.accounts-view #view.account-panel-open .team-table tbody { display: block; }
body.accounts-view #view.account-panel-open .team-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 4px; border-bottom: 1px solid var(--rule-2); }
body.accounts-view #view.account-panel-open .team-table th, body.accounts-view #view.account-panel-open .team-table td { display: block; padding: 0 !important; border: 0; }
body.accounts-view #view.account-panel-open .team-table tr > :nth-child(2) { justify-self: end; }
body.accounts-view #view.account-panel-open .team-table tr > :nth-child(n+3) { grid-column: 1 / -1; }
.accounts-view #view.account-panel-open .user-actions { text-align: left; }
body.accounts-view #view.account-panel-open .team-table tr.editing { background: #fff0e5; box-shadow: inset 4px 0 0 #b51f2a; border-radius: 12px; padding-left: 14px; }
body.accounts-view #view.account-panel-open .team-table tr.editing > * { background: transparent; box-shadow: none; }
body.accounts-view #view .team-table tbody tr:last-child > *, .security-v3 .devices-table tbody tr:last-child > * { border-bottom: 0; }
.accounts-view tr.user-card { padding: 0; border: 0; }
body.accounts-view #view .team-table td.user-actions { display: table-cell; margin: 0; gap: 0; }
.accounts-view td.user-scope { margin: 0; }
.accounts-view .user-seen { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.accounts-view #temporary .btn { display: inline-flex; width: auto; padding: 0 16px; border-radius: var(--radius-control); font-size: 13px; }
.accounts-view #temporary .btn.copy-password { border-color: #b51f2a; background: #b51f2a; color: #fff; }
.accounts-view #temporary .btn.secondary { border-color: #f1c9b2; background: var(--panel); color: var(--ink); min-height: 38px; }
.accounts-view #temporary p { margin: 4px 0 12px; }
.accounts-view #temporary .temporary-for { margin: 2px 0 8px; }
.accounts-view #temporary #dismiss-password { align-self: flex-start; }
.accounts-view #temporary h2 { margin: 0; }
body.accounts-view #temporary > p { margin: 6px 0 0; }
body.accounts-view #temporary .temporary-row { margin-top: 14px; }
.accounts-view #temporary.temporary-panel:not([hidden]) { display: block; }
.accounts-view #temporary #dismiss-password { margin-top: 4px; }
.accounts-view #temporary h2 { margin: 0; }
body.accounts-view #temporary > p { margin: 6px 0 0; }
body.accounts-view #temporary .temporary-row { margin-top: 14px; }
/* In the side panel the permission table wraps its longer entries instead of running past the edge. */
.accounts-view .editor-panel .role-permissions-table td { white-space: normal; }
.accounts-view .editor-panel .role-permissions-table th, .accounts-view .editor-panel .role-permissions-table td { padding: 8px 6px; }

/* ======================================================================
   Security & MFA in the dashboard's layout (login.html#security, signed in only).
   body.security-view is set only while that view is open; the sign-in states never get it,
   so nothing below can change how they look.
   ====================================================================== */
body.security-view .account-masthead, body.security-view .login-footer, body.security-view #back,
body.security-view .account-shell .login-brand, body.security-view .account-shell > .eyebrow { display: none; }
body.security-view .account-shell.narrow { position: static; overflow: visible; width: auto; max-width: none; margin: 0; padding: 0 28px 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.security-view .account-shell.narrow::after { display: none; }
body.security-view .account-shell:has(#security-settings:not([hidden])) > :is(#heading, #intro) { display: none; }
body.security-view .account-shell > #heading { margin: 0 0 4px; font: 700 21px/1.4 "Manrope", system-ui, sans-serif; letter-spacing: -0.6px; text-align: left; }
body.security-view .account-shell > #intro { margin: 0 0 16px; text-align: left; font-size: 12px; color: var(--ink-3); }
body.security-view #message:empty { display: none; }
body.security-view #message { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-control); background: #fbe4e1; color: #a31c26; font-size: 13px; }
body.security-view #message.success { background: #e3f1e8; color: #1f5b37; }
body.security-view .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #b51f2a; border-radius: var(--radius-control); background: #b51f2a; color: #fff; font: 600 13px "DM Sans", system-ui, sans-serif; cursor: pointer; }
body.security-view .btn:hover:not(:disabled) { background: #94212b; border-color: #94212b; }
body.security-view .btn.secondary { border-color: var(--rule); background: var(--panel); color: var(--ink); }
body.security-view .btn.secondary:hover:not(:disabled) { background: #fdf9f3; border-color: #d8c8bb; }
body.security-view .account-shell input:not([type=checkbox]) { border-radius: var(--radius-control); border-color: var(--rule); }
body.security-view .account-shell .otp-boxes input:focus, body.security-view .btn:focus-visible { outline: 2px solid #b51f2a; outline-offset: 2px; }
/* The view itself: context line, a panel to confirm it's you, supporting cards, a table of devices. */
body.security-view .security-view-content:not([hidden]) { display: flex; flex-direction: column; gap: 20px; }
body.security-view .security-context { margin: 4px 2px 0; }
body.security-view .security-verify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: center; }
body.security-view .security-verify .modern-panel-head { margin: 0; }
body.security-view #security-verify-form { display: grid; gap: 10px; margin: 0; }
body.security-view #security-verify-form label { display: grid; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-2); }
body.security-view #security-verify-form .otp-boxes { max-width: none; margin: 4px 0 0; }
body.security-view #security-verify-form .btn { width: 100%; }
body.security-view .security-unlocked { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-control); background: #e3f1e8; color: #1f5b37; }
body.security-view .security-unlocked[hidden] { display: none; }
body.security-view .security-unlocked-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #1f5b37; color: #fff; }
body.security-view .security-unlocked-mark svg { width: 18px; height: 18px; }
body.security-view .security-unlocked b { display: block; font-size: 14px; }
body.security-view .security-unlocked p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: #24452f; }
/* Supporting cards fill the row in equal columns: a third card (for example passkeys, later) joins
   the row by adding one more article, with no change to these rules. */
body.security-view .security-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: stretch; }
body.security-view .security-cards .modern-support { align-items: flex-start; }
body.security-view .security-cards .modern-support-body { display: flex; flex-direction: column; gap: 6px; height: 100%; min-width: 0; }
body.security-view .security-cards .modern-support-caption { line-height: 1.5; }
body.security-view .security-cards .btn { margin-top: auto; width: 100%; min-height: 42px; }
body.security-view .recovery-dots { display: flex; gap: 5px; margin: 2px 0; }
body.security-view .recovery-dots span { width: 14px; height: 14px; border-radius: 50%; background: #b51f2a; }
body.security-view .recovery-dots span.used { background: #f1e9e1; box-shadow: inset 0 0 0 1px #d9c9bb; }
body.security-view .remembered-panel .modern-panel-tools .btn { width: auto; }
body.security-view .devices-table { width: 100%; margin-top: 4px; }
body.security-view .devices-table thead th:first-child { border-radius: var(--radius-control) 0 0 0; }
body.security-view .devices-table thead th:last-child { border-radius: 0 var(--radius-control) 0 0; }
body.security-view .devices-table tbody th { text-align: left; font-weight: 400; }
body.security-view .devices-table tbody tr:last-child > * { border-bottom: 0; }
body.security-view .devices-table b { font-weight: 600; }
body.security-view .devices-table .devices-empty { color: var(--ink-2); font-size: 13px; }
body.security-view .this-device { margin-left: 8px; padding: 2px 7px; border-radius: var(--radius-small); background: #fbe2d4; color: #94212b; font-size: 11px; font-weight: 600; }
body.security-view .device-action { text-align: right; }
/* Passkeys: the third supporting card, and a list with the Remembered devices table's treatment. */
body.security-view .passkeys-table .device-action { white-space: nowrap; }
body.security-view .passkeys-table .device-action .btn + .btn { margin-left: 8px; }
body.security-view .passkey-synced { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
body.security-view .passkey-elsewhere { margin-left: 8px; padding: 2px 7px; border-radius: var(--radius-small); background: #f1eee8; color: var(--ink-2); font-size: 11px; font-weight: 600; }
body.security-view .passkey-name-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 4px 0 16px; padding: 16px; border-radius: var(--radius-control); background: #fdf9f3; border: 1px solid var(--rule); }
body.security-view .passkey-name-form[hidden] { display: none; }
body.security-view .passkey-name-form label { flex: 1 1 240px; margin: 0; }
body.security-view .passkey-name-form .btn { width: auto; min-height: 44px; margin: 0; }
body.security-view .device-action .btn { min-height: 38px; }
/* Replacing the authenticator and the new recovery codes show as panels in the same view. */
body.security-view :is(#totp-enroll, #recovery-save):not([hidden]) { display: block; padding: 24px 26px; border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--panel); }
body.security-view .totp-start, body.security-view .totp-scan-panel { border: 1px solid var(--rule); border-radius: var(--radius-card); background: #fdf9f3; }
body.security-view .totp-start-icon, body.security-view .totp-step-number { background: #fbe2d4; color: #94212b; }
body.security-view .totp-setup { max-width: 760px; }
body.security-view #recovery-save { max-width: 760px; }
body.security-view #recovery-codes { border-radius: var(--radius-control); background: #f1eee8; }
@media (max-width: 900px) {
  body.security-view .security-verify { grid-template-columns: 1fr; }
  body.security-view .account-shell.narrow { padding: 0 16px 24px; }
}
@media (max-width: 600px) {
  body.security-view .devices-table thead { display: none; }
  body.security-view .devices-table, body.security-view .devices-table tbody { display: block; }
  body.security-view .devices-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid #e8dfd7; }
  body.security-view .passkeys-table tr { grid-template-columns: minmax(0, 1fr); }
  body.security-view .passkeys-table td:nth-child(2)::before { content: "Added "; color: var(--ink-2); }
  body.security-view .passkeys-table td:nth-child(3)::before { content: "Last used "; color: var(--ink-2); }
  body.security-view .passkeys-table .device-action { text-align: left; margin-top: 6px; }
  body.security-view .devices-table tr:last-child { border-bottom: 0; }
  body.security-view .devices-table th, body.security-view .devices-table td { display: block; padding: 0 !important; border: 0 !important; }
  body.security-view .devices-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--ink-3); font-size: 12px; }
  body.security-view .devices-table .device-action { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  body.security-view .remembered-panel .modern-panel-tools { width: 100%; }
  body.security-view :is(#totp-enroll, #recovery-save):not([hidden]) { padding: 18px 16px; }
}

/* ======================================================================
   Sign-in: the split page, as the owner chose it on November 15, 2026.
   Left: a peach half with the logo and name only. Right: the form under the step track.
   Built from the design document's foundations only (colour, type, shape, spacing, 44px controls).
   body.signin-page is set on every state of login.html except the signed-in Security & MFA view.
   ====================================================================== */
/* The dashboard's two typefaces, served from the site itself (SIL Open Font License, see public/fonts). */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/manrope-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/manrope-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/dm-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/dm-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/dm-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/dm-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/dm-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/dm-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

.signin-aside { display: none; }
body.signin-page {
  --paper: #f7f3ee; --panel: #fffdfa; --ink: #302824; --ink-2: #51443e; --ink-3: #706159;
  --rule: #e5d9cf; --rule-2: #e8dfd7; --red: #b51f2a; --primary: #b51f2a; --primary-strong: #94212b; --red-soft: #fbe2d4;
  --radius-card: 20px; --radius-control: 12px; --radius-small: 8px;
  font-family: "DM Sans", system-ui, sans-serif; background: var(--paper); color: var(--ink);
}
/* The split: the peach half on the left spans the page; the header, form and footer stack on the right. */
body.signin-page #security-main { display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100vh; }
body.signin-page:not(.signin-ready) .signin-aside { display: none; }
body.signin-page.signin-ready .signin-aside { grid-column: 1; grid-row: 1 / -1; display: flex; align-items: center; justify-content: center; padding: 48px; background: #fbe2d4; border-right: 1px solid #f1c9b2; }
body.signin-page .signin-aside-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
body.signin-page .signin-aside-brand img { width: 112px; height: auto; }
body.signin-page .signin-aside-brand p { margin: 0; }
body.signin-page .signin-aside-brand b { display: block; font: 700 34px/1.15 "Manrope", system-ui, sans-serif; letter-spacing: -1.2px; color: var(--ink); }
body.signin-page .signin-aside-brand span { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; color: #734733; }
body.signin-page .account-masthead { grid-column: 2; grid-row: 1; justify-content: flex-end; padding: 20px 32px; background: transparent; border: 0; }
body.signin-page.signin-ready .account-masthead .account-brand { display: none; }
body.signin-page .account-masthead .btn.secondary, body.signin-page .account-masthead .dashboard-return { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--panel); color: var(--ink); font: 600 13px "DM Sans", system-ui, sans-serif; }
body.signin-page .account-shell.narrow { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; position: static; overflow: visible; width: min(420px, calc(100% - 48px)); max-width: 420px; margin: 24px auto 40px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.signin-page .account-shell.narrow::after { display: none; }
body.signin-page .account-shell.narrow:has(#totp-enroll:not([hidden])) { width: min(700px, calc(100% - 48px)); max-width: 700px; }
body.signin-page .login-footer { grid-column: 2; grid-row: 3; margin: 0 0 20px; text-align: center; font-size: 10.5px; color: var(--ink-3); }
body.signin-page .account-shell .login-brand, body.signin-page .account-shell > .eyebrow { display: none; }
/* Type: Manrope for the title, DM Sans for the rest (Foundations → Type). */
body.signin-page .narrow h1 { margin: 0 0 6px; font: 700 34px/1.15 "Manrope", system-ui, sans-serif; letter-spacing: -1.2px; text-align: left; color: var(--ink); }
body.signin-page .narrow #intro { margin: 0 0 24px; text-align: left; font-size: 14px; color: var(--ink-2); }
body.signin-page h2 { font-family: "Manrope", system-ui, sans-serif; letter-spacing: -0.3px; }
body.signin-page .account-shell label:not(.check) { display: grid; gap: 7px; margin: 0 0 16px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
body.signin-page .account-shell input:not([type=checkbox]) { width: 100%; min-height: 44px; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--panel); font: 400 14px "DM Sans", system-ui, sans-serif; color: var(--ink); }
body.signin-page .account-shell input:focus-visible, body.signin-page .btn:focus-visible, body.signin-page button:focus-visible, body.signin-page summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
body.signin-page .account-shell .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid var(--red); border-radius: var(--radius-control); background: var(--red); color: #fff; font: 600 13.5px "DM Sans", system-ui, sans-serif; cursor: pointer; }
body.signin-page .account-shell .btn:hover:not(:disabled) { background: var(--primary-strong); border-color: var(--primary-strong); }
body.signin-page .account-shell .btn.secondary { border-color: var(--rule); background: var(--panel); color: var(--ink); }
body.signin-page .account-shell .btn.secondary:hover:not(:disabled) { background: #fdf9f3; }
body.signin-page .account-shell .btn svg { width: 16px; height: 16px; }
body.signin-page .login-help { margin-top: 18px; text-align: left; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
body.signin-page .role-note { padding: 12px 14px; border-radius: var(--radius-control); background: #f1eee8; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
/* Messages: the document's decrease pairing for errors, its increase pairing for success. */
body.signin-page #message:empty { display: none; }
body.signin-page #message { margin: 0 0 16px; padding: 11px 14px; border-radius: var(--radius-control); background: #fbe4e1; color: #a31c26; font-size: 13px; text-align: left; }
body.signin-page #message.success { background: #e3f1e8; color: #1f5b37; }
/* Step track: where the person is in signing in. Peach marks the current step, as it marks the active choice of a switch. */
body.signin-page .signin-steps { display: flex; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
body.signin-page .signin-steps[hidden] { display: none; }
body.signin-page .signin-steps li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 5px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); color: var(--ink-3); font-size: 12px; font-weight: 600; }
body.signin-page .signin-steps li b { font-weight: 600; }
body.signin-page .signin-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1eee8; font-size: 11px; }
body.signin-page .signin-steps[data-current=password] li[data-step=password], body.signin-page .signin-steps[data-current=second] li[data-step=second] { border-color: #f1c9b2; background: #fbe2d4; color: #94212b; }
body.signin-page .signin-steps[data-current=password] li[data-step=password] span, body.signin-page .signin-steps[data-current=second] li[data-step=second] span { background: #94212b; color: #fff; }
body.signin-page .signin-steps[data-current=second] li[data-step=password] span { font-size: 0; background: #e3f1e8; }
body.signin-page .signin-steps[data-current=second] li[data-step=password] span::after { content: "✓"; font-size: 12px; color: #1f5b37; }
/* The code step: six boxes, then "Remember this device", then Verify. The form is one column, so a line
   passkey choice (.passkey-alt, below) follows the Verify button without a new layout. */
body.signin-page .account-shell .otp-boxes input { min-height: 54px; border-radius: var(--radius-control); border-color: var(--rule); background: var(--panel); font: 700 22px "Manrope", system-ui, sans-serif; }
body.signin-page .account-shell .otp-boxes input:focus { outline: 2px solid var(--red); border-color: var(--red); }
body.signin-page .account-shell #totp-verify .remember-device { margin-top: 20px; font-size: 13.5px; }
body.signin-page #remember-device-help { margin: 0 0 20px; font-size: 12.5px; color: var(--ink-2); }
body.signin-page .check input, body.signin-page .remember-device input { accent-color: var(--red); }
body.signin-page #mfa-challenge details { margin-top: 20px; }
body.signin-page #mfa-challenge details > summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
body.signin-page #recovery-form { margin-top: 14px; padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--panel); }
body.signin-page #recovery-form .login-help { margin-top: 12px; }
body.signin-page #legacy-passkey .btn { margin-top: 12px; }
/* "or", then a passkey: under Verify on the code step, under Change password, and under the code in
   Confirm it's you. A quiet second choice; the code stays the main one. */
.passkey-alt { margin-top: 14px; }
.passkey-or { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; color: var(--ink-3, #706159); }
.passkey-or::before, .passkey-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.passkey-alt .btn { width: 100%; margin-top: 0; }
.confirm-admin .passkey-alt { margin: 4px 0 16px; }
/* First-time setup, recovery codes and changing the password keep their layout in the foundations' surfaces. */
body.signin-page .totp-start, body.signin-page .totp-scan-panel { border: 1px solid var(--rule); border-radius: var(--radius-card); background: #fdf9f3; }
body.signin-page .totp-start-icon, body.signin-page .totp-step-number { background: #fbe2d4; color: #94212b; }
body.signin-page .totp-step h2, body.signin-page .totp-start h2 { font: 700 15px "Manrope", system-ui, sans-serif; }
body.signin-page #totp-confirm .btn, body.signin-page .totp-start .btn { width: 100%; }
body.signin-page #recovery-codes { padding: 14px 16px; border-radius: var(--radius-control); background: #f1eee8; font-size: 12px; line-height: 1.9; }
body.signin-page #recovery-ack .check { margin: 14px 0; font-size: 13px; }
body.signin-page #password-form .role-note { margin: 4px 0 16px; }
body.signin-page .login-back { display: block; margin-top: 18px; text-align: left; font-size: 12.5px; color: var(--ink-2); }
body.signin-page #passkey-address { margin: 0 0 16px; }
/* Français / English: two quiet text buttons under the form, shown only where french_enabled is on. */
.language-switch { display: flex; gap: 4px; margin-top: 22px; }
.language-switch[hidden] { display: none; }
.language-switch button { min-height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink-2); font: 600 12.5px "DM Sans", system-ui, sans-serif; cursor: pointer; }
.language-switch button[aria-pressed=true] { border-color: #f1c9b2; background: #fbe2d4; color: #94212b; }
.language-switch button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 800px) {
  /* Phone: the peach half becomes a short band with the logo and name side by side. */
  body.signin-page #security-main { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; min-height: 0; }
  body.signin-page.signin-ready .signin-aside { grid-column: 1; grid-row: 1; justify-content: flex-start; padding: 16px 20px; border-right: 0; border-bottom: 1px solid #f1c9b2; }
  body.signin-page .signin-aside-brand { flex-direction: row; gap: 12px; text-align: left; }
  body.signin-page .signin-aside-brand img { width: 48px; }
  body.signin-page .signin-aside-brand b { font-size: 18px; letter-spacing: -0.4px; }
  body.signin-page .signin-aside-brand span { margin-top: 0; font-size: 12.5px; }
  body.signin-page .account-masthead { grid-column: 1; grid-row: 2; padding: 12px 16px 0; }
  body.signin-page .account-masthead:not(:has(:is(a, button):not([hidden]))) { display: none; }
  body.signin-page .account-shell.narrow { grid-column: 1; grid-row: 3; width: calc(100% - 32px); margin: 24px auto 32px; }
  body.signin-page .login-footer { grid-column: 1; grid-row: 4; }
  body.signin-page .narrow h1 { font-size: 28px; }
}
