/* Shared Apple-style palette. All console and authentication pages use these tokens. */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface2: #fafafa;
  --surface3: #f0f0f3;
  --sidebar: #ededf0;
  --border: #e2e2e7;
  --border-strong: #d1d1d6;
  --accent: #007aff;
  --accent-2: #007aff;
  --accent-soft: #eaf3ff;
  --green: #248a3d;
  --orange: #9b6500;
  --red: #c93431;
  --purple: #7855b5;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --secondary: #48484a;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: var(--body);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius: 8px;
  --shadow-sm: 0 1px 3px #00000006;
  --shadow-md: 0 8px 32px #00000014;
  --shadow-lg: 0 16px 64px #00000024;
  --sidebar-width: 176px;
  --toolbar-height: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 13px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #007aff70; outline-offset: 2px; }
html[data-input-modality="pointer"] :is(button, a, summary):focus { outline: none; }
[hidden] { display: none !important; }
::selection { background: #007aff26; }
.console-icon { width: 17px; height: 17px; flex-shrink: 0; vertical-align: middle; }
.mono { font-family: var(--mono); }
.muted, .stat-sub { color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 10px; }
.mt-lg { margin-top: 12px; }
.text-center { text-align: center; }
.wrap-code { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Keep focus from triggering iOS form zoom, including tablet and hybrid touch screens. */
@media (max-width:1024px), (any-pointer:coarse) {
  html body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size:16px !important; }
}
