.login-layout { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.login-intro { padding-top: 24px; }
.login-signature { margin-top: 48px; font-size: clamp(24px, 3vw, 38px); line-height: 1.25; letter-spacing: -.02em; }
.access-panel { background: var(--surface); }
.access-panel h2 { font-size: 28px; }
.access-panel > button,#passkey-login,#yubikey-login { width: 100%; }
#admin-methods { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
#password-login,#set-password { display: grid; grid-template-columns: minmax(0, 1fr); }
#password-login button,#set-password button { justify-self: start; }
#admin-methods .muted { margin-top: 16px; }
#login-request { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.code { display: inline-block; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 28px; letter-spacing: .15em; padding: 10px 18px; margin-bottom: 16px; }
.workspace-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 40px; }
.workspace-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink); }
.workspace-nav button { min-height: 44px; }
#refresh { margin-left: auto; }
.workspace-intro { margin-bottom: 36px; }
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; margin-top: 28px; }
.security-method { min-width: 0; padding: 24px; border-radius: var(--radius-item); background: var(--surface); }
.security-method form { margin-bottom: 0; }
#admin-passkeys > div { border-top: 1px solid var(--line); padding-block: 16px; overflow-wrap: anywhere; }
#admin-passkeys p { margin-bottom: 8px; }
.tenant { border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 36px); margin-top: 24px; background: white; }
.tenant h2 { overflow-wrap: anywhere; font-size: clamp(22px, 2.5vw, 32px); }
.tenant button,.tenant .button { margin: 6px 8px 6px 0; }
.state { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
.step { border-top: 1px solid var(--line); padding: 20px 0; }
.step p { margin: 8px 0; }
#empty,#notice,.confirmation { margin-top: 24px; }
.confirmation { border: 2px solid var(--accent); }
#deletion-history { background: var(--surface); margin-top: 28px; }
@media (max-width: 800px) { .login-layout { grid-template-columns: minmax(0, 1fr); } .login-signature { display: none; } .login-intro { padding-top: 0; } }
@media (max-width: 440px) { #refresh { margin-left: 0; } .security-method { padding: 18px; } }

.key-login-actions { display: grid; gap: 12px; }

/* Onboarding: one active panel, real verified progress and room for mobile. */
.onboarding { margin-top: 28px; }
.wizard-progress { padding-bottom: 20px; }
.wizard-progress-label { margin-bottom: 4px; font-weight: 500; color: var(--ink); }
.wizard-progress progress { display: block; width: 100%; height: 8px; margin: 16px 0 24px; border: 0; border-radius: 8px; overflow: hidden; appearance: none; background: var(--line); color: var(--accent); }
.wizard-progress progress::-webkit-progress-bar { background: var(--line); }
.wizard-progress progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
.wizard-progress progress::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
.wizard-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.wizard-steps li { display: flex; flex-direction: column; gap: 8px; align-items: start; margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.wizard-number { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid #8D98AA; font-family: var(--font-mono); font-size: 12px; }
.wizard-steps .done { color: var(--available-ink); }
.wizard-steps .done .wizard-number { background: var(--available-bg); border-color: currentColor; }
.wizard-steps .current { color: var(--ink); font-weight: 500; }
.wizard-steps .current .wizard-number { background: var(--ink); color: white; border-color: var(--ink); }
.wizard-panel { border-top: 1px solid var(--line); padding-top: 28px; }
.wizard-panel h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.wizard-panel > p { max-width: 720px; }
.wizard-panel .button { overflow-wrap: anywhere; }
.wizard-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; margin: 24px 0 16px; }
.wizard-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; background: var(--surface); padding: 24px; border-radius: var(--radius-item); margin-block: 24px; }
.wizard-summary div { min-width: 0; }
.wizard-summary dt { color: var(--muted); font-size: 14px; }
.wizard-summary dd { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; font-weight: 500; }
.wizard-success { color: var(--available-ink); background: var(--available-bg); padding: 16px; border-radius: 12px; }
.wizard-wait { padding: 16px; border-radius: 12px; background: var(--surface); }
.wizard-save-note { margin: 28px 0 0; }
.wizard-feedback { margin-top: 16px; }
.wizard-feedback:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .wizard-steps { gap: 6px; }
  .wizard-steps li { align-items: center; }
  .wizard-steps li > span:not(.wizard-number) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wizard-panel button,.wizard-panel .button { width: 100%; margin-right: 0; }
  .wizard-summary { padding: 18px; }
}

.onboarding { position: relative; }
.wizard-blocking { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 24px; margin-block: 20px; border: 1px solid var(--line); border-radius: var(--radius-item); background: var(--surface); color: var(--ink); }
.wizard-blocking p { grid-column: 2; margin: 0; }
.wizard-spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid #9BA5B5; border-top-color: var(--accent); border-radius: 50%; animation: wizard-spin 1s linear infinite; }
.wizard-busy-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; background: rgba(255, 255, 255, .97); border-radius: var(--radius-item); }
@keyframes wizard-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wizard-spinner { animation: none; } }
