:root {
  color-scheme: light;
}

html[data-mantine-color-scheme="dark"] {
  color-scheme: dark;
}

html[data-automation-blocked="true"] body {
  background:
    radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent 48%),
    #0f1720;
  color: #e2e8f0;
}

html[data-automation-blocked="true"] #root {
  display: none;
}

body {
  margin: 0;
  font-family:
    "IBM Plex Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* Minimal pre-React background to prevent white/dark flash */
#app-bootstrap-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: #f8fafc;
  transition:
    opacity 120ms ease,
    visibility 120ms ease;
}

html[data-mantine-color-scheme="dark"] #app-bootstrap-shell {
  background: #0f1720;
}

html[data-automation-blocked="true"] #app-bootstrap-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent 48%),
    #0f1720;
}

#app-bootstrap-shell[data-state="hiding"] {
  opacity: 0;
  visibility: hidden;
}

.agent-blocked-card {
  max-width: 34rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  background: rgba(15, 23, 32, 0.88);
  box-shadow: 0 24px 80px rgba(15, 23, 32, 0.42);
}

.agent-blocked-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.agent-blocked-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.5;
}

.agent-trap-static {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
}
