html[data-auth-mode="firebase"].account-pending :is(main,aside,dialog,#explore-workspace,#editor-workspace,#saved-looks,#project-title){visibility:hidden!important;pointer-events:none!important}
#account-controls{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:13px}#account-controls .account-label{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#account-controls button{white-space:nowrap}#account-welcome{max-width:600px;margin:80px auto;padding:24px;text-align:center;color:#31573d}#account-welcome[hidden]{display:none}

html:not([data-auth-mode="firebase"]) #account-controls{display:none}

/* Keep public navigation centered independently of the account controls. */
html[data-auth-mode="firebase"] .top{position:relative}
html[data-auth-mode="firebase"] .top>.nav{position:absolute;left:50%;transform:translateX(-50%);margin:0}
html[data-auth-mode="firebase"] #project-title{display:none}
html[data-auth-mode="firebase"] #account-controls{max-width:260px;min-width:0}
html[data-auth-mode="firebase"] #account-controls .account-label{max-width:100px}
@media(max-width:1100px){html[data-auth-mode="firebase"] .top{height:auto;min-height:70px;flex-wrap:wrap;padding-block:12px}html[data-auth-mode="firebase"] .top>.nav{position:static;transform:none;order:10;flex:0 1 auto;max-width:100%;margin:0 auto}html[data-auth-mode="firebase"] .top::after{content:"";flex-basis:100%;order:9}html[data-auth-mode="firebase"] #account-controls{max-width:calc(100% - 170px)}html[data-auth-mode="firebase"] #account-controls .account-label{display:none}}
@media(max-width:450px){html[data-auth-mode="firebase"] #account-controls button{font-size:11px;padding:8px}html[data-auth-mode="firebase"] .top>.nav a{font-size:12px;padding:8px 10px}}

/* Recovery remains discoverable without moving the centered navigation. */
html[data-auth-mode="firebase"] #account-controls:has(button:nth-of-type(2)){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px}
html[data-auth-mode="firebase"] #account-controls button:nth-of-type(2){grid-column:1/-1;justify-self:end;font-size:11px;padding:4px 8px}

/* Frozen private workspaces retain their dimensions; status must stay in view. */
html[data-auth-mode="firebase"] #account-welcome{position:fixed;z-index:9000;left:16px;right:16px;width:calc(100% - 32px);box-sizing:border-box;margin:0 auto;max-height:calc(100dvh - 180px);overflow:auto;background:#fff;border:1px solid #dce4d8;border-radius:14px;box-shadow:0 8px 30px #17351c18}
