.auth-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e0e10;
  z-index: 999999 !important;
}

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

.auth-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
}

.auth-brand img {
  width: 180px;
  height: auto;
}

#clerk-auth-mount {
  width: 100%;
  min-height: 320px;
}

.app-shell {
  display: none;
}

.app-shell:not([hidden]) {
  display: block;
}

.clerk-user-btn {
  display: flex;
  align-items: center;
}

.clerk-user-btn [data-clerk-component="UserButton"] {
  --clerk-color-text-primary: var(--text, #e4e4e7);
}

.vps-progress {
  margin-top: 1rem;
}

.vps-progress-log {
  background: var(--surface-2, #18181b);
  border: 1px solid var(--border, #27272a);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-muted, #a1a1aa);
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.radio-label input,
.checkbox-label input {
  accent-color: var(--accent, #f97316);
}

.vps-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.vps-actions button {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border, #27272a);
  background: var(--surface-2, #18181b);
  color: var(--text, #e4e4e7);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.vps-actions button:hover {
  background: var(--surface-3, #27272a);
  border-color: var(--accent, #f97316);
}
