:root {
  --platform-topbar-h: 48px;
}

.platform-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  height: var(--platform-topbar-h);
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #d8e0ee;
  backdrop-filter: blur(8px);
}

.platform-topbar[hidden] {
  display: none !important;
}

body.platform-chrome-ready {
  padding-top: var(--platform-topbar-h);
}

body.platform-auth-pending #platform-main {
  visibility: hidden;
}

.platform-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, #f5f7fb 72%, transparent);
  backdrop-filter: blur(3px);
}

.platform-auth-gate[hidden] {
  display: none !important;
}

.platform-auth-gate__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 12rem;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  border: 1px solid #d8e0ee;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(21, 32, 51, 0.1);
}

.platform-auth-gate__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
}

.platform-auth-gate__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #152033;
}

.platform-auth-gate__label {
  margin: 0;
  color: #5a6a85;
  font-size: 0.9rem;
}

.platform-auth-spinner {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 2.5px solid color-mix(in srgb, #1f6feb 25%, #d8e0ee);
  border-top-color: #1f6feb;
  animation: platform-auth-spin 0.8s linear infinite;
}

@keyframes platform-auth-spin {
  to {
    transform: rotate(360deg);
  }
}
