.agent-console-page,
.agent-access-page {
  --ai-bg: #f2f2f7;
  --ai-surface: #ffffff;
  --ai-surface-secondary: #f6f6f8;
  --ai-text: #202124;
  --ai-muted: #666b73;
  --ai-border: #e4e5e9;
  --ai-accent: #007aff;
  --ai-button-bg: #242528;
  --ai-button-text: #ffffff;
  --ai-accent-text: #ffffff;
  --ai-success: #26734d;
  --ai-warning: #946300;
  --ai-danger: #c62c38;
  --ai-shadow: none;
  --ai-radius: 20px;
  --ai-radius-sm: 10px;
  --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: #0c0c0f;
  --ai-surface: #18191b;
  --ai-surface-secondary: #202124;
  --ai-text: #f1f2f4;
  --ai-muted: #a6a8af;
  --ai-border: #303238;
  --ai-accent: #0a84ff;
  --ai-button-bg: #e9eaed;
  --ai-button-text: #202124;
  --ai-accent-text: #ffffff;
  --ai-success: #80c59c;
  --ai-warning: #e2b85c;
  --ai-danger: #f3878f;
  --ai-shadow: none;
  --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: background .15s, color .15s;
}

.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; }
}
