[hidden]{display:none!important}
.auth-root{min-height:100vh;background:var(--surface);display:grid;place-items:center;padding:40px 20px}
.auth-loading{color:var(--muted)}
.auth-card{width:100%;max-width:440px;background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:32px;box-shadow:0 12px 36px #23262508}
.auth-card .brand{margin:0 0 32px;display:flex;width:fit-content}
.auth-card h1{font-size:1.5rem;margin-bottom:8px}
.auth-intro{color:var(--muted);font-size:.875rem;margin-bottom:24px}
.auth-tabs{display:flex;border-bottom:1px solid var(--line);gap:24px;margin-bottom:24px}
.auth-tabs button{padding:10px 0;background:none;border:0;border-bottom:2px solid transparent;font-size:.875rem;color:var(--muted)}
.auth-tabs button[aria-pressed=true]{border-color:var(--text);color:var(--text);font-weight:600}
.auth-form{display:grid;gap:16px}
.auth-form .field{gap:6px;font-size:.8125rem}
.auth-form input:not([type=radio]){width:100%;min-height:44px;border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;background:var(--bg)}
.auth-form fieldset{margin:0;padding:0;border:0;min-width:0}
.auth-form legend{font-size:.8125rem;font-weight:550;margin-bottom:8px}
.account-kinds{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.account-kinds label{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:var(--radius);font-size:.8125rem;cursor:pointer}
.account-kinds label:has(input:checked){border-color:var(--text);background:var(--surface)}
.account-kinds input{accent-color:var(--text)}
.auth-form .field-help{margin:0;font-size:.75rem;color:var(--muted)}
.auth-error{padding:12px;border-radius:var(--radius);background:#fff2f0;color:var(--danger);font-size:.8125rem}
.auth-footnote{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;color:var(--muted);font-size:.75rem}
.profile>div{min-width:0}.profile strong{overflow:hidden;text-overflow:ellipsis;display:block;max-width:145px}
#workspace-name{overflow-wrap:anywhere}.workspace{min-width:0}.workspace>div{min-width:0}
#save-status{font-size:.75rem;color:var(--muted)}
.save-error{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:12px 24px;background:#fff2f0;color:var(--danger);font-size:.8125rem;border-bottom:1px solid #f0c8c3}
.save-error>span{flex:1;min-width:200px}
.mobile-logout{display:none}.directory-empty{padding:40px 0;max-width:440px}.directory-empty p{margin:8px 0 20px;color:var(--muted);font-size:.875rem}
.directory-actions{display:flex;gap:8px;flex-shrink:0}.directory-row>div{min-width:0}.directory-row h3,.directory-row p{overflow-wrap:anywhere}
@media(max-width:650px){.auth-root{padding:24px 16px}.auth-card{padding:24px;max-width:440px}.auth-card .brand{margin-bottom:24px}.mobile-logout{display:inline-flex}.directory-row{flex-wrap:wrap}.directory-actions{width:100%;padding-left:44px}.topbar-right{gap:8px}.breadcrumb-workspace{max-width:100px}.save-error{padding:12px 18px}}
