/* Shared account components */
.account-bar {display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-3);padding:var(--space-3) var(--space-6);border-bottom:1px solid var(--line)}
.account-bar span {overflow-wrap:anywhere}
.hosted-users {display:grid;gap:var(--space-3);margin-top:var(--space-4)}
.hosted-user {display:flex;justify-content:space-between;align-items:center;gap:var(--space-3);flex-wrap:wrap}
/* Authentication shell: quiet editorial surface, one primary action. */
.auth-page {min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.auth-page [hidden] {display:none!important}
.auth-header,.auth-footer {display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding:var(--space-5) var(--space-7)}
.auth-brand {display:inline-flex;align-items:center;gap:var(--space-3);font-size:24px;font-weight:600;letter-spacing:-.04em}
.auth-brand img {display:block;border-radius:var(--radius-sm)}
.auth-header .button {font-size:14px}
.hosted-login {flex:1;width:100%;max-width:1480px;margin:0 auto;padding:var(--space-4) var(--space-7);display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:var(--space-8)}
.auth-story {position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;min-height:640px;padding:var(--space-7);background:var(--surface-alt);border-radius:var(--radius-md)}
.auth-kicker {display:block;font-size:12px;color:var(--muted);margin-bottom:var(--space-4)}
.auth-story h2 {font-size:clamp(40px,4.5vw,68px);font-weight:500;line-height:1.02;letter-spacing:-.045em;margin:0 0 var(--space-1)}
.auth-story>p {max-width:340px;color:var(--muted);font-size:14px;line-height:1.7;margin:0}
.auth-art {position:relative;display:grid;place-items:center;width:min(100%,320px);aspect-ratio:1;margin:var(--space-6) auto}
.auth-orbit {position:absolute;border:1px solid var(--line);border-radius:var(--radius-lg);transform:rotate(-12deg)}
.orbit-outer {inset:0}.orbit-middle {inset:var(--space-6);background:var(--bg)}.orbit-inner {inset:var(--space-8);background:var(--surface)}
.auth-art img {position:relative;border-radius:var(--radius-lg);transform:rotate(-12deg)}
.auth-art-corner {position:absolute;right:var(--space-5);top:var(--space-5);width:var(--space-4);height:var(--space-4);border-radius:var(--radius-xs);background:var(--accent-fill)}
.auth-story-footer {display:flex;align-items:center;gap:var(--space-3);font-size:12px;color:var(--muted)}
.auth-mark {width:var(--space-2);height:var(--space-2);border-radius:var(--radius-xs);background:var(--accent-fill);flex-shrink:0}
.auth-form-area {display:flex;align-items:center;justify-content:center;min-width:0;padding:var(--space-6) 0}
.auth-form-wrap {width:100%;max-width:400px}
.auth-form-wrap h1 {font-size:clamp(30px,3vw,40px);line-height:1.1;margin:0 0 var(--space-1)}
.auth-form-wrap .subtext {margin:0 0 var(--space-6)}
.hosted-login form {display:grid;gap:var(--space-5)}
.auth-page .field label {margin-bottom:var(--space-2)}
.auth-page .field input {min-height:48px;border-radius:var(--radius-sm);padding:var(--space-3) var(--space-4);background:var(--surface);font-size:16px}
.auth-page .field input::placeholder {color:var(--muted)}
.auth-page .field small {font-size:12px;margin-top:var(--space-2);line-height:1.5}
.auth-password {position:relative}
.auth-page .auth-password input {padding-right:80px}
.auth-password button {position:absolute;right:var(--space-1);top:var(--space-1);bottom:var(--space-1);min-width:64px;padding:0 var(--space-3);background:transparent;color:var(--muted);border:0;border-radius:var(--radius-sm);font-size:12px}
.auth-password button:hover {background:var(--hover);color:var(--text)}
.auth-feedback {min-height:var(--space-5);font-size:12px;margin-top:calc(-1 * var(--space-3));margin-bottom:calc(-1 * var(--space-3))}
.auth-feedback p {margin:0;overflow-wrap:anywhere}
#error {color:var(--red)}
#status {color:var(--muted)}
.auth-page #submit {display:flex;justify-content:space-between;min-height:48px;padding:var(--space-3) var(--space-4);width:100%}
.auth-page #submit:disabled {opacity:1;background:var(--surface-alt);color:var(--muted)}
.auth-access {border-top:1px solid var(--line);margin-top:var(--space-6);padding-top:var(--space-5);font-size:12px;color:var(--muted);line-height:1.65}
.auth-access p {margin:0}
.auth-access a {display:inline-flex;align-items:center;min-height:44px;color:var(--text);text-decoration:underline;text-underline-offset:var(--space-1)}
.auth-page :is(button,a,input):focus-visible {outline:2px solid var(--accent);outline-offset:var(--space-1)}
.auth-footer {font-size:12px;color:var(--muted)}
@media(max-width:1100px){.hosted-login {gap:var(--space-7);padding:var(--space-4) var(--space-6)}.auth-story {padding:var(--space-6);min-height:600px}.auth-header,.auth-footer {padding:var(--space-5) var(--space-6)}}
@media(max-width:760px){.auth-header,.auth-footer {padding:var(--space-4) var(--space-5)}.hosted-login {display:block;padding:var(--space-6) var(--space-5)}.auth-story {display:none}.auth-form-area {padding:var(--space-6) 0}.auth-form-wrap {max-width:440px}.auth-form-wrap h1 {font-size:32px}.auth-footer {flex-wrap:wrap}.auth-brand {font-size:22px}}

/* One focused account form. */
.auth-page .hosted-login {display:flex;justify-content:center;align-items:center;max-width:640px;gap:0}
.auth-page .auth-form-area {width:100%;padding:var(--space-7) 0}
@media(max-width:760px){.auth-page .auth-form-area {padding:var(--space-6) 0}}
/* Personal identity, tester roster and social projections share existing tokens. */
.hosted-identity,.hosted-social-person{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}
.hosted-avatar{width:30px;height:30px;border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--accent-strong);display:inline-grid;place-items:center;font-size:12px;font-weight:600;flex-shrink:0}
.hosted-identity-copy{flex:1;min-width:0}.hosted-identity-copy strong,.hosted-identity-copy small,.hosted-user small{display:block;overflow-wrap:anywhere}.hosted-identity-copy small,.hosted-user small{color:var(--muted);font-size:12px}
.hosted-profile-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-4);align-items:start;margin-top:var(--space-5)}.hosted-profile-form button{margin-top:var(--space-6)}.hosted-profile-form [role=status]{grid-column:1/-1}
.hosted-user{padding:var(--space-4) 0;border-top:1px solid var(--line)}
.hosted-social-settings{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2);font-size:12px;padding:var(--space-4)}.hosted-social-settings dt{color:var(--muted)}.hosted-social-settings dd{margin:0;overflow-wrap:anywhere}
#hosted-invite{max-width:540px}#hosted-integrations [role=status]{min-height:var(--space-5);margin-top:var(--space-3)}
.auth-page [hidden],#invite-result[hidden]{display:none!important}
@media(max-width:760px){.hosted-profile-form{grid-template-columns:1fr}.hosted-profile-form button{margin-top:0}.hosted-identity .button{margin-left:auto}.sidebar-bottom{overflow:auto}.sidebar nav{overflow:auto}}
@media(max-width:760px){.hosted-app .sidebar{overflow-x:auto;overflow-y:hidden;justify-content:flex-start}.hosted-app #navigation{display:flex;flex:0 0 auto;overflow:visible}.hosted-app .sidebar .nav-item{min-width:104px}.hosted-app .sidebar-bottom{flex:0 0 104px;overflow:visible}}
