:root {
  color-scheme: light;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-inset: #f1f2f6;
  --ink: #20212a;
  --muted: #626574;
  --faint: #6a6e7e;
  --line: #e4e6ed;
  --line-strong: #cbd0dc;
  --accent: #6453cf;
  --accent-hover: #5342bc;
  --accent-soft: #efedfc;
  --accent-ink: #5444b6;
  --ctx-backlink: #3e3a62;
  --ctx-backlink-hover: #2c2948;
  --success: #26754d;
  --success-soft: #edf7f0;
  --danger: #bb3547;
  --danger-soft: #fff0f1;
  --warning: #8a601a;
  --warning-soft: #fbf5e8;
  --shadow: 0 2px 6px #20212a04, 0 12px 40px #20212a07, 0 1px 2px #20212a06;
  --shadow-overlay: 0 24px 80px #16162124, 0 2px 10px #1616210d;
  --surface-highlight: inset 0 1px 0 #ffffffb3;
  --control-radius: 10px;
  --radius: 14px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151617;
  --surface: #1c1e20;
  --surface-raised: #282a2d;
  --surface-inset: #18191b;
  --ink: #eeeef4;
  --muted: #a3a5b4;
  --faint: #8d91a2;
  --line: #ffffff12;
  --line-strong: #454957;
  --accent: #aaa0ff;
  --accent-hover: #c0b8ff;
  --accent-soft: #28243e;
  --accent-ink: #beb5ff;
  --ctx-backlink: #9b97b0;
  --ctx-backlink-hover: #c8c4d6;
  --success: #83c9a5;
  --success-soft: #1c3027;
  --danger: #f39ca7;
  --danger-soft: #362127;
  --warning: #e1bc79;
  --warning-soft: #322b20;
  --surface-highlight: inset 0 1px 0 #ffffff0d;
  --shadow: var(--surface-highlight), 0 2px 4px #00000026, 0 8px 24px #00000033;
  --shadow-overlay: var(--surface-highlight), 0 24px 80px #00000080, 0 2px 10px #00000040;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button,
a {
  color: inherit;
}
a {
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
[hidden] {
  display: none !important;
}
svg {
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
