/* Shared Standard Builder header actions.
   Keeps the authentication controls visually distinct and prevents overlap. */
.standard-header-actions {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  align-items: center;
  gap: 14px;
}

body.standard-authenticated .standard-header-actions {
  display: inline-flex;
}

.standard-header-actions .builder-switch-fixed,
.standard-header-actions .standard-logout {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  font: 700 10px var(--font-mono);
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.standard-header-actions .builder-switch-fixed {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.standard-header-actions .builder-switch-fixed:hover,
.standard-header-actions .builder-switch-fixed:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.standard-header-actions .standard-logout {
  border: 1px solid var(--dark-brown);
  background: var(--dark-brown);
  color: #fff;
  cursor: pointer;
}

.standard-header-actions .standard-logout:hover,
.standard-header-actions .standard-logout:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* The Standard Epic edition does not expose data-refresh controls. */
.standard-epic-edition .refresh-btn {
  display: none !important;
}

@media (max-width: 640px) {
  .standard-header-actions {
    top: 16px;
    right: 16px;
    gap: 10px;
  }

  .standard-header-actions .builder-switch-fixed,
  .standard-header-actions .standard-logout {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 9px;
  }
}
