.auth-panel{max-width:540px;align-self:start}.auth-panel h2{font-size:28px}.auth-panel form{gap:20px}.auth-panel form>div:not([hidden]){display:grid;gap:16px}.auth-step{font-size:13px;color:#496a58;letter-spacing:.08em}.auth-back{margin-top:24px}.text-button{padding:8px 0;border:0;background:transparent;color:var(--blue);font-size:14px}.login-help,.owner-context{margin:20px 0;color:var(--muted);font-size:14px}.login-help summary,.owner-context summary,#find-backup-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.login-help button{width:100%;margin-top:12px}.file-picker{border:1px dashed #8ba999;background:#f5f9f4;padding:18px;border-radius:10px;color:var(--blue)}.file-picker input{margin-top:10px;font-weight:400;font-size:14px}#find-backup-help{margin-top:22px;font-size:14px}#find-backup-prompt{line-height:1.7}#origin-help p{margin-bottom:12px}.receipt-controls{margin:0 0 20px}#management-security{margin-top:20px}#management-security>summary{font-size:20px;font-weight:650;min-height:44px;cursor:pointer}#management-security>details,#management-security>section{margin-top:20px}#management-security>p{margin-top:16px}#management-security .panel{padding:0;box-shadow:none;border:0}#setup-backup-step .check,#recovery-backup-step .check{margin-top:4px}@media(max-width:759px){.auth-story{display:none}.auth-panel h2{font-size:25px}.auth-panel{padding:24px 20px}.page-heading{padding-bottom:14px}.auth-back{width:100%}.file-picker{padding:14px}.file-picker input{max-width:100%;font-size:13px}.auth-layout{padding-bottom:28px}}@media(max-width:359px){.auth-panel{padding:20px 15px}.auth-panel h2{font-size:23px}}

.setup-identity{margin-top:24px}.setup-identity>p{margin-bottom:10px}.setup-public-summary{display:flex;align-items:center;gap:14px;min-width:0}.setup-public-summary>strong{min-width:0;overflow-wrap:anywhere;font-size:18px;line-height:1.5}#setup-public-avatar{flex:0 0 64px}.setup-identity #setup-public-hint{margin:10px 0 0}.setup-expiry{margin:0 0 20px;overflow-wrap:anywhere}
.auth-panel{max-width:440px;width:100%;min-width:0}.auth-panel input{min-width:0}.auth-panel .form-hint{font-size:14px;color:#53685a}.auth-panel form>div:not([hidden])>div{display:grid;gap:12px}.auth-panel .text-button{min-height:44px}#register-view .auth-step{margin-bottom:10px}#register-fields,#register-backup-step{gap:14px}#claim-agent-summary{margin:18px 0;overflow-wrap:anywhere}#claim-account{font-weight:600;overflow-wrap:anywhere}#account-name{display:block;overflow-wrap:anywhere;margin:16px 0 12px}#add-agent{width:100%}#empty-agents p{max-width:550px}.account-private{margin:16px 0;font-size:14px;overflow-wrap:anywhere}#invites-panel{scroll-margin-top:16px}@media(max-width:759px){.auth-panel{max-width:440px;margin:auto}.auth-layout{display:block}.page-heading .button-row{flex-shrink:0}.resident-sidebar .owner-context{margin-bottom:0}}

.saved-setup-progress{margin:0 0 20px;border:1px solid var(--line);border-radius:8px;padding:12px 16px;background:#f8faf5}.saved-setup-progress .button-row+.button-row{margin-top:10px}.saved-setup-progress button{font-size:14px}

#email-form{gap:18px}#email-account-fields,#email-password-row,#email-challenge,#email-code-row{display:grid;gap:12px}#email-view [hidden]{display:none}#email-title:focus{outline:2px solid var(--blue);outline-offset:5px}#email-recovery-backup{font-size:14px}#email-recovery-backup summary{cursor:pointer;min-height:44px;display:flex;align-items:center}#email-recovery-backup>p{margin-top:12px}#email-continue,#email-retry-start,#email-delivery-retry,#email-restart{margin-top:14px}#email-feedback,#email-target{overflow-wrap:anywhere}#backup-confirm{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:10px}#backup-confirm .check{margin:14px 0}

/* World account contract: one 440px lane, one stable form mount. */
.hud-window.is-account{width:440px;top:88px;bottom:24px;transform:none;margin-block:auto;height:max-content;max-height:min(760px,calc(100% - 112px))}.hud-window.is-account .hud-window-body{padding:16px}.account-root{font-size:16px;line-height:24px;min-width:0}.account-root [hidden]{display:none!important}.account-root .page-heading,.account-root .auth-step,.account-root .auth-panel>div>h2,.account-root #page-description{display:none}.account-root .auth-layout,.account-root .manage-layout,.account-root .manage-content,.account-root .two-column{display:block;padding:0;margin:0}.account-root .panel,.account-root .auth-panel{width:auto;max-width:none;border:0;border-radius:0;box-shadow:none;padding:0;margin:0;background:transparent}.account-root h3{font-size:16px;line-height:24px;font-weight:500}.account-root form,.account-root form>div:not([hidden]){display:grid;gap:12px}.account-root .form-grid{display:grid;grid-template-columns:1fr;gap:12px}.account-root input,.account-root textarea,.account-root select{font-size:16px;line-height:24px;min-height:44px;padding:9px 12px;background:#fffef8;border:1px solid #a5b9af}.account-root input[type=checkbox]{min-height:16px;width:16px;height:16px;padding:0}.account-root button{min-height:44px;font-size:14px;line-height:24px}.account-root .primary{font-size:16px;background:var(--hud-accent);border-color:var(--hud-accent);color:var(--hud-surface)}.account-root label{font-size:16px;line-height:24px;gap:6px}.account-root p,.account-root .small-text,.account-root .form-hint,.account-root details,.account-root .notice{font-size:14px;line-height:20px}.account-root p{margin:0 0 12px}.account-root h2{font-size:16px;line-height:24px}.account-root .auth-back{margin-top:16px}.account-root .auth-panel .text-button{min-height:36px}.account-root .setup-public-summary .avatar,.account-root .account-target .avatar{width:32px;height:32px}.account-root #setup-public-avatar{flex-basis:32px}.account-root .account-target{border-bottom:1px solid var(--hud-line);padding:0 0 12px;margin-bottom:16px}.account-target-avatar{float:left;margin-right:12px}.account-root summary{cursor:pointer;min-height:36px}.account-root #profile-form label:has(#avatar-color){display:none}.account-root #selected-id{display:none}.account-root #agent-summary{margin-bottom:16px;border-bottom:1px solid var(--hud-line);padding-bottom:12px}.account-root #selected-avatar .avatar{width:32px;height:32px}.account-root #profile-link{font-size:14px}.account-root .status-row{gap:6px;margin:8px 0 0}.account-root .status{font-size:12px}.account-tabs{display:flex;gap:4px;align-items:start;border-bottom:1px solid var(--hud-line);padding-bottom:8px;margin-bottom:16px}.account-tabs>button{flex:1;padding:6px;min-height:36px;border:0;background:transparent}.account-tabs>button[aria-pressed=true]{background:var(--hud-selected)}.account-more{flex:1;position:relative}.account-more summary{font-size:14px;white-space:nowrap}.account-more button{display:block;width:100%;text-align:left}.account-root .preview-card{margin-top:16px;padding:12px;border:1px solid var(--hud-line)}.account-root .account-back{padding:4px 0;min-height:36px;background:transparent;border:0;margin-bottom:12px;color:var(--hud-accent)}.account-root .account-facts{overflow-wrap:anywhere}.account-root #session-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.account-root #agent-list button{min-height:64px;padding:10px;gap:12px;background:transparent;border:0}.account-root #agent-list button[aria-pressed=true]{background:var(--hud-selected)}.account-root #agent-list .avatar{width:32px;height:32px}.account-root #runtime-panel>summary{display:none}.account-root #account-success{display:grid;gap:12px}.account-root .account-confirm{display:grid;gap:12px}.account-root .receipt-controls{display:flex;flex-wrap:wrap;gap:8px}.account-root .check{font-size:14px;align-items:start}.account-root #find-backup-help{margin-top:16px}.account-root #draft-note{margin-top:12px}.hud-root .hud-agent{padding:8px;justify-content:start}.hud-agent-identity{height:auto;display:grid;gap:0;margin:0;text-align:left}.hud-agent-identity>span{position:static;font-size:12px;line-height:16px}.hud-agent-identity>strong{display:block;font-size:14px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.account-root :focus-visible{outline:2px solid var(--hud-focus);outline-offset:2px}

.world-startup-error{position:fixed;z-index:30;top:76px;left:24px;right:24px;max-width:640px;pointer-events:auto}.account-root #agent-summary:has(+nav[hidden]){display:none}.account-root [data-account-page=security]>.panel{padding:0}.account-root [data-account-page=invite] h2{display:block}.account-root .setup-identity{margin-top:0}.account-root .auth-panel{align-self:auto}

.account-root .account-menu{display:grid;gap:8px;margin:12px 0 16px}.account-root #recovery-choices,.account-root #recovery-email-help{display:grid;gap:12px}
