/* ── Command palette ─────────────────────────────────────────────────── */
#command-palette {
  position: fixed;
  top: 15vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: min(520px, 90vw);
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden;
  font-family: var(--font-ui, sans-serif);
}
#command-palette-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg0);
  color: var(--text0);
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-family: var(--font-ui, sans-serif);
  outline: none;
}
#command-palette-list {
  max-height: 320px;
  overflow-y: auto;
}
.cp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--text0);
  font-size: 14px;
}
.cp-item:hover, .cp-item.active { background: var(--bg2); }
.cp-item-label { flex: 1; }
.cp-item-shortcut {
  color: var(--text2);
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  margin-left: 16px;
}
.cp-empty {
  padding: 16px;
  color: var(--text2);
  text-align: center;
  font-size: 13px;
}