/* The guest enters through their profile; the studio appears only after /api/me */
body:not([data-auth="member"]) .app-shell > nav,
body:not([data-auth="member"]) .top-actions,
body:not([data-auth="member"]) .app-shell main > section:not(#profile-view) { display: none !important; }
body:not([data-auth="member"]) .app-shell {
  width: min(100%, 640px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
body:not([data-auth="member"]) .topbar { position: static; padding: 0; min-height: 48px; border: 0; }
body:not([data-auth="member"]) .app-shell main { padding: 0; }
body:not([data-auth="member"]) #profile-view {
  display: grid !important;
  align-items: center;
  min-height: calc(100svh - 120px);
  padding: 24px 0;
}
body:not([data-auth="member"]) #er-profile { width: min(100%, 400px); gap: 0; }
body:not([data-auth="member"]) #er-profile > .account-grid { display: none; }
body:not([data-auth="member"]) #er-profile .account-id-card { padding: 28px 24px; border-radius: 22px; }
body:not([data-auth="member"]) #er-profile .account-identity { flex-direction: column; gap: 20px; text-align: center; }
body:not([data-auth="member"]) #er-profile .account-avatar { width: 64px; height: 64px; background: var(--er-field); border-radius: 18px; }
body:not([data-auth="member"]) #er-profile .account-avatar img { width: 44px; height: 44px; object-fit: contain; border-radius: 0; }
body:not([data-auth="member"]) #er-profile h2 { font: 650 clamp(25px, 7vw, 32px)/1.16 var(--er-font-display, "Golos Text", sans-serif); letter-spacing: -.035em; }
body:not([data-auth="member"]) #er-profile .account-identity p { margin: 12px auto 0; max-width: 270px; font-size: 15px; line-height: 1.5; }
body:not([data-auth="member"]) #er-profile .account-primary { margin-top: 28px; min-height: 50px; border-radius: 14px; font: 600 16px/1.3 var(--er-font-ui, system-ui, sans-serif); }
#er-profile .account-entry-status { margin-top: 16px; min-height: 4.5em; font-size: 13px; line-height: 1.5; text-align: center; color: var(--er-muted); }
#er-profile[data-session="member"] .account-entry-status { display: none; }
.account-bootstrap { min-height: 300px; display: grid; place-items: center; color: var(--er-muted); }

/* One permanent action, background pairing never changes this surface */
body:not([data-auth="member"]) .account-entry-controls { margin-top:28px; height:130px; }
body:not([data-auth="member"]) #er-profile .account-entry-controls > .account-primary {
  display:flex; align-items:center; justify-content:center; margin-top:0; height:52px; text-decoration:none;
}
body:not([data-auth="member"]) #er-profile h2 { min-height:1.16em; white-space:nowrap; }
body:not([data-auth="member"]) #er-profile .account-entry-status { margin-top:12px; height:66px; overflow:auto; }
body:not([data-auth="member"]) #er-profile .account-avatar.brand-mark { position:relative; flex-shrink:0; }
body:not([data-auth="member"]) .app-shell *,
body:not([data-auth="member"]) .app-shell *::before,
body:not([data-auth="member"]) .app-shell *::after { animation:none !important; transition:none !important; }
.account-logout { min-height:44px; width:100%; }
/* A Mini App enters automatically; never flash browser pairing while it starts */
html[data-entry="telegram"] body[data-auth="pending"] #er-profile { visibility:hidden; }
