.account-starting { margin: 1rem 0; color: #4b6079; }
html.account-verifying .studio-app { visibility: hidden; }
.account-access { position: relative; flex: none; }
.account-access > #accountSignIn,
.studio-top-actions #accountToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 6px 13px;
  border: 1px solid #214caa;
  border-radius: 9px;
  color: white;
  background: #244fae;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.account-access > #accountSignIn:hover,
.studio-top-actions #accountToggle:hover { background: #173c91; }
#accountToggle[data-sync-phase] { gap: 6px; }
#accountToggle[data-sync-phase]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6d7f8;
}
#accountToggle[data-sync-phase="saved"]::before { background: #8df1c1; }
#accountToggle:is([data-sync-phase="pending"],[data-sync-phase="saving"])::before { background: #f9d88a; }
#accountToggle:is([data-sync-phase="error"],[data-sync-phase="offline"],[data-sync-phase="conflict"])::before { background: #ffa89e; }
#accountPanel {
  position: absolute;
  z-index: 35;
  right: 0;
  top: calc(100% + 11px);
  box-sizing: border-box;
  width: min(345px, calc(100vw - 32px));
  max-height: calc(100dvh - 76px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #cfdaeb;
  border-radius: 14px;
  background: white;
  color: #182a47;
  box-shadow: 0 12px 32px #213c681f;
  text-align: left;
}
#accountPanel [hidden], #accountPanel[hidden] { display: none; }
#accountPanel h2 { font-size: 1.08rem; margin: 0 0 .5rem; overflow-wrap: anywhere; }
#accountPanel p { font-size: .925rem; font-weight: 450; line-height: 1.6; color: #425675; margin: .4rem 0; white-space: normal; }
#accountPanel .account-status { color: #284c8f; margin: .8rem 0 .7rem; }
.account-actions { display: grid; gap: 6px; }
#accountPanel button { width: 100%; white-space: normal; min-height: 38px; }
#accountPanel button:disabled { opacity: .5; cursor: default; }
#accountPanel #accountConfirm, #accountPanel #accountSyncRemote { color: white; background: #244fae; }
#accountPanel .account-status:is([data-phase="offline"],[data-phase="error"],[data-phase="conflict"]) { color: #823d1f; }
#accountPanel .account-confirm > button { margin-top: 6px; }
.account-bottom { border-top: 1px solid #e1e8f2; padding-top: 13px; margin-top: 15px; }
#accountSignOut { color: #365780; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 510px) {
  .studio-app #topbar { gap: 6px; }
  .studio-app .studio-top-title { flex: 1 1 0; min-width: 0; }
  .studio-app .studio-top-actions, #studioMenu { flex: none; }
  .account-access > #accountSignIn, .studio-top-actions #accountToggle { min-height: 36px; padding: 6px 9px; font-size: .8rem; }
  #studioCrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #accountPanel { padding: 16px; }
}
