/* 颜色、字体和全页底色。调整视觉时优先改这些变量。 */
:root {
  --bg: #101114;
  --rail: #12141a;
  --panel: #16181d;
  --artwork: #0c0d10;
  --line: rgba(232, 230, 227, 0.08);
  --text: #e8e6e3;
  --muted: #b0aaa3;
  --faint: #8d877f;
  --accent: #e0a15a;
  --accent-ink: #1c140c;
  --accent-soft: rgba(224, 161, 90, 0.14);
  --track: rgba(232, 230, 227, 0.14);
  --track-fill: rgba(232, 230, 227, 0.72);
  --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
  --topbar-height: 56px;
  --status-height: 36px;
  --panel-width: 320px;
  --stage-pad: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  user-select: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.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 {
    transition: none !important;
  }
}
