.platform-header {
  --header-action-size: 44px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 4px 20px;
  border-bottom: 1px solid rgba(101, 126, 255, 0.35);
  background:
    radial-gradient(circle at 8% 50%, rgba(75, 111, 255, 0.13), transparent 30%),
    radial-gradient(circle at 100% 50%, rgba(236, 72, 153, 0.1), transparent 36%),
    linear-gradient(135deg, rgba(15, 27, 68, 0.96), rgba(25, 16, 38, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 8px 22px rgba(2, 6, 23, 0.22);
  color: #f8fbff;
  font-family: Manrope, system-ui, sans-serif;
  box-sizing: border-box;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.platform-header-avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(91, 126, 255, 0.88);
  border-radius: 50%;
  background: rgba(6, 13, 35, 0.82);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
  font-size: 0.86rem;
  font-weight: 800;
}

.platform-header-email {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-header-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(transparent, rgba(148, 163, 184, 0.42), transparent);
}

.platform-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-header-action {
  display: inline-flex;
  width: var(--header-action-size);
  height: var(--header-action-size);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(119, 145, 255, 0.42);
  border-radius: 9px;
  background: rgba(9, 15, 38, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 10px 26px rgba(2, 6, 23, 0.22);
  color: #adc6ff;
  cursor: pointer;
  text-decoration: none;
}

.platform-header-action:hover,
.platform-header-action:focus-visible {
  border-color: rgba(125, 211, 252, 0.72);
  color: #e0f2fe;
}

.platform-header-action:last-child {
  border-color: rgba(103, 232, 249, 0.4);
  color: #e0faff;
}

.platform-header-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

@media (max-width: 560px) {
  .platform-header { padding-inline: 12px; }
  .platform-header-divider { display: none; }
}

.is-embedded .platform-header { display: none; }
