html[data-studio-auth="checking"] body {
  visibility: hidden;
}

.studio-auth-control {
  position: fixed;
  z-index: 1000;
  top: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 8px 10px 8px 12px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #111820;
  color: #f8fafc;
  box-shadow: 0 12px 30px rgb(0 0 0 / 24%);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.studio-auth-identity {
  min-width: 0;
}

.studio-auth-identity strong,
.studio-auth-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-auth-identity strong {
  font-size: 12px;
}

.studio-auth-identity span {
  margin-top: 2px;
  color: #9cacbd;
  font-size: 11px;
}

.studio-auth-logout {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #475569;
  border-radius: 6px;
  background: #1d2835;
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.studio-auth-logout:hover {
  background: #273649;
}

.studio-auth-logout:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.studio-auth-logout:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 640px) {
  .studio-auth-control {
    position: static;
    max-width: none;
    margin: 12px;
  }
}
