
/* NOMI 2026-10-31: permanent, guest-only sign-in and registration at top. */
#nomiGuestQuickAuth {position:relative;z-index:12001;flex:0 0 auto;display:flex;gap:10px;align-items:center;justify-content:center;padding:8px 12px;background:#201238;border-bottom:1px solid #624687;box-shadow:0 2px 10px #11071f50}
#nomiGuestQuickAuth[hidden], body.nomi-authenticated #nomiGuestQuickAuth {display:none!important}
body:not(.nomi-authenticated) #accountButton {display:none!important}
#nomiGuestQuickAuth button{flex:1 1 auto;max-width:250px;min-width:0;min-height:45px;padding:9px 12px;border:1px solid #b88dff;border-radius:12px;background:linear-gradient(125deg,#5234b8,#8d2cbe);color:#fff;font-weight:750;font-size:clamp(14px,3.5vw,16px);cursor:pointer;touch-action:manipulation;white-space:normal;box-shadow:0 2px 10px #2e105799}
#nomiGuestQuickAuth #nomiGuestRegister{background:linear-gradient(125deg,#9923ba,#c334ad);border-color:#f280ed}
#nomiGuestQuickAuth button:focus-visible{outline:3px solid #35c3ff;outline-offset:2px}
@media(max-width:400px){#nomiGuestQuickAuth{padding:8px;gap:8px}#nomiGuestQuickAuth button{padding:8px 7px}}
/* Full-screen public profile: own touch scroll area and persistent close action.
   Scoped to the existing modal; keeps the chat, gift shop and album dialogs intact. */
html body dialog#nomiPublicProfile.nomi-profile-dialog[open] {
  display:flex!important;
  flex-direction:column!important;
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  max-width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  max-height:100dvh!important;
  min-height:0!important;
  margin:0!important;
  padding:max(10px,env(safe-area-inset-top)) clamp(10px,3vw,24px) max(8px,env(safe-area-inset-bottom))!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  overscroll-behavior:contain;
}
dialog#nomiPublicProfile[open] > .nomi-profile-dialog-bar {
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center;
  position:relative!important;
  top:auto!important;
  z-index:8;
  margin:0 0 10px!important;
}
dialog#nomiPublicProfile[open] > #nomiPublicClose {
  position:relative!important;
  align-self:flex-end;
  flex:0 0 auto;
  z-index:8;
}
dialog#nomiPublicProfile[open] .nomi-profile-dialog-bar #nomiPublicClose {
  position:relative!important;
  top:auto!important;
  flex:0 0 auto;
  min-height:44px!important;
  margin:0!important;
}
html body dialog#nomiPublicProfile[open] > #nomiPublicContent {
  display:block!important;
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  width:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  padding:0 2px calc(30px + env(safe-area-inset-bottom))!important;
  scrollbar-width:thin;
}
dialog#nomiPublicProfile[open] > #nomiPublicState {
  flex:0 0 auto!important;
  max-height:30dvh;
  overflow:auto;
}
dialog#nomiPublicProfile[open] #nomiPublicContent :is(img,video) {
  max-width:100%;
}
@media(max-width:650px) {
  html body dialog#nomiPublicProfile.nomi-profile-dialog[open] {padding-inline:10px!important;}
  html body dialog#nomiPublicProfile[open] > #nomiPublicContent {
    padding-bottom:calc(75px + env(safe-area-inset-bottom))!important;
  }
}

/* A reachable profile header exists before the network request completes. */
html body #nomiPublicProfile[open] > .nomi-profile-dialog-bar {
 display:flex!important;visibility:visible!important;opacity:1!important;
 flex:0 0 auto!important;min-height:48px!important;gap:12px;
 justify-content:space-between;background:var(--panel,#211335);padding:6px!important;
}
html body #nomiPublicProfile[open] > .nomi-profile-bottom-nav {flex:0 0 auto!important;position:relative!important;inset:auto!important;}
html body #nomiPublicProfile::backdrop {background:#080411b8;}
#nomiGlobalDownload {display:inline-flex;align-items:center;justify-content:center;gap:6px;
 min-height:44px;padding:8px 12px;border:1px solid #b88dff;border-radius:12px;color:inherit;text-decoration:none;white-space:nowrap;}
#nomiReleaseVersion {font-size:11px;opacity:.75;white-space:nowrap;}
@media(max-width:650px){#nomiGlobalDownload{font-size:12px;padding:6px;min-height:40px}.topbar{flex-wrap:wrap}}

#nomiGlobalDownload{align-self:center;margin:4px 10px}

