[hidden] { display: none !important; }
#authRoot { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #ede9df; color: #243a32; }
.auth-card { width: min(100%, 460px); padding: 36px; border: 1px solid #d7d6cb; border-radius: 18px; background: #fffdf7; box-shadow: 0 14px 60px #223b3210; }
.auth-card h1 { font-size: 30px; margin: 18px 0 12px; }
.auth-card p { line-height: 1.6; }
.auth-card form, .account-editor form { display: grid; gap: 16px; }
.auth-card label, .account-editor label { display: grid; gap: 8px; font-size: 15px; }
.auth-card input, .account-editor input:not([type=checkbox]), .account-editor select { width: 100%; min-height: 50px; font: inherit; padding: 12px; border: 1px solid #b6c3b9; border-radius: 8px; background: #fffdf7; color: #243a32; }
.auth-card button { min-height: 50px; }
.auth-error { color: #b63232; min-height: 1em; }
.auth-hint { font-size: 14px; }
.accounts-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(300px, 2fr); gap: 24px; align-items: start; }
.account-list, .account-editor, .account-audit { padding: 24px; }
.account-editor { max-width: 840px; }
.account-row { display: grid; gap: 6px; width: 100%; text-align: left; padding: 16px; margin-top: 8px; border: 1px solid #b6c3b9; border-radius: 8px; background: transparent; color: inherit; overflow-wrap: anywhere; }
.account-row.selected { border: 2px solid #3e7862; }
.account-editor details { padding: 16px 0; border-top: 1px solid #b6c3b9; }
.account-editor summary { cursor: pointer; min-height: 48px; padding: 12px 0; }
.account-editor .account-active { display: flex; align-items: center; min-height: 48px; }
.account-active input { width: 22px; height: 22px; }
.permission-list { display: grid; gap: 16px; }
.role-summary { font-size: 14px; line-height: 1.7; padding: 16px; background: #78948118; border-radius: 8px; }
.account-audit { margin-top: 24px; overflow-wrap: anywhere; }
.top-actions #signOut { white-space: nowrap; }
@media (max-width: 760px) { .accounts-grid { grid-template-columns: 1fr; } .auth-card { padding: 24px; } .account-list, .account-editor { padding: 18px; } }
