/* Design tokens, resets, toolbar */
:root {
  --ink: #0A0D16;
  --ink-2: #10141F;
  --panel: rgba(20, 26, 43, 0.82);
  --line: rgba(139, 148, 174, 0.28);
  --text: #EEF1F8;
  --muted: #8B94AE;
  --cyan: #5FE3FF;
  --cyan-dim: rgba(95, 227, 255, 0.18);
  --brass: #E6B04B;
  --brass-dim: rgba(230, 176, 75, 0.22);
  --crimson: #E5484D;
  --crimson-dim: rgba(229, 72, 77, 0.22);
  --violet: #A78BFA;
  --violet-dim: rgba(167, 139, 250, 0.22);
  --green: #6EE7A0;
  --hud: "Rajdhani", "Noto Sans TC", system-ui, sans-serif;
  --zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--zh); font-size: 14px;
  height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
}
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- 工具列 ---------- */
.toolbar { flex: none; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.toolbar .title { font-family: var(--hud); font-weight: 700; font-size: 17px; letter-spacing: .04em; margin-right: 6px; }
.toolbar .title small { font-family: var(--zh); font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 8px; }
.states { display: flex; flex-wrap: wrap; gap: 6px; }
.states button {
  background: var(--ink-2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 4px; padding: 5px 10px; font-size: 13px; display: flex; gap: 8px; align-items: center;
}
.states button kbd { font-family: var(--hud); font-weight: 700; color: var(--text); background: rgba(255,255,255,.08); border-radius: 3px; padding: 0 5px; font-size: 12px; }
.states button.on { color: var(--text); border-color: var(--cyan); background: var(--cyan-dim); }
.toolbar .spacer { flex: 1; }
.toolbar .sub { display: flex; gap: 6px; }
.toolbar .sub button { background: transparent; color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; padding: 5px 10px; font-size: 13px; }
.toolbar .sub button.on { color: var(--brass); border-color: var(--brass); border-style: solid; }
