:root {
  color-scheme: light dark;
  --page: #f6f7f3;
  --surface: #fff;
  --inset: #eef1ec;
  --ink: #192923;
  --quiet: #4c6057;
  --line: #d8dfd7;
  --control-line: #758a80;
  --link: #195e4f;
  --action: #195e4f;
  --action-hover: #124a3e;
  --on-action: #fff;
  --focus: #14695d;
  --selection: #dfeee6;
  --danger: #a02929;
  --danger-bg: #fff0ed;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-control: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #17231f;
    --surface: #202e29;
    --inset: #263730;
    --ink: #eff4ed;
    --quiet: #b3c2b8;
    --line: #3b4c44;
    --control-line: #7b9184;
    --link: #9cdbc5;
    --action: #276957;
    --action-hover: #226050;
    --focus: #9cdbc5;
    --selection: #2b463b;
    --danger: #ffb4a7;
    --danger-bg: #482b2a;
  }
}

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

.toolbox-home {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--link);
  text-decoration: none;
  font: 600 .875rem/1.3 var(--font-ui);
}
.toolbox-home:hover { text-decoration: underline; }
