.agent-console-page,
.agent-access-page {
  --ai-bg: #f4f6f8;
  --ai-surface: #fcfcfd;
  --ai-surface-secondary: #edf0f4;
  --ai-text: #20272f;
  --ai-muted: #57636f;
  --ai-border: #dce1e7;
  --ai-accent: #2864dc;
  --ai-button-bg: #2864dc;
  --ai-button-text: #fcfcfd;
  --ai-accent-text: #fcfcfd;
  --ai-success: #26734d;
  --ai-warning: #946300;
  --ai-danger: #c62c38;
  --ai-shadow: 0 2px 8px #20272f06, 0 20px 60px #20272f0d;
  --ai-radius: 24px;
  --ai-radius-sm: 14px;
  --ai-overlay: rgba(20, 22, 26, .32);
  background: var(--ai-bg);
  color: var(--ai-text);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] .agent-console-page,
html[data-theme="dark"] .agent-access-page {
  --ai-bg: #101216;
  --ai-surface: #191d24;
  --ai-surface-secondary: #20272f;
  --ai-text: #edf1f7;
  --ai-muted: #a2aaba;
  --ai-border: #2b323e;
  --ai-accent: #91b5ff;
  --ai-button-bg: #91b5ff;
  --ai-button-text: #20272f;
  --ai-accent-text: #fcfcfd;
  --ai-success: #80c59c;
  --ai-warning: #e2b85c;
  --ai-danger: #f3878f;
  --ai-shadow: 0 2px 8px #00000020, 0 20px 60px #00000040;
  --ai-overlay: rgba(0, 0, 0, .6);
}

.agent-console-page :focus-visible,
.agent-access-page :focus-visible {
  outline: 3px solid var(--ai-accent);
  outline-offset: 3px;
}

.agent-theme-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--ai-radius-sm);
  background: transparent;
  color: var(--ai-muted);
  box-shadow: none;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.agent-theme-button:hover { background: var(--ai-surface-secondary); color: var(--ai-text); }
.agent-console-page .btn,
.agent-access-page .btn { transition: none; }
.agent-theme-button svg { width: 19px; height: 19px; }
.agent-theme-button [data-theme-icon="sun"] { display: none; }
html[data-theme="dark"] .agent-theme-button [data-theme-icon="sun"] { display: block; }
html[data-theme="dark"] .agent-theme-button [data-theme-icon="moon"] { display: none; }

.agent-console-page .console-loading {
  margin: 0;
  padding: 48px 24px;
  color: var(--ai-muted);
}

@media (prefers-reduced-motion: reduce) {
  .agent-theme-button { transition: none; }
}

/* Matching public-site objects and controls without decorative motion. */
.agent-console .console-window { box-shadow: var(--ai-shadow); }
.agent-access { box-shadow: var(--ai-shadow); }
