/* ⌘K — the command palette, option A (docs/design/2026-10-31-command-palette/):
   a card in the middle over a dimmed page; the lit row is the same faint fill of
   the palette's text colour as the lit app-bar item (appbar.css). */
.cp { position: fixed; inset: 0; z-index: 1000; font-family: var(--f-ui); font-variant-numeric: tabular-nums; }
.cp-dim { position: absolute; inset: 0; background: rgba(8, 10, 11, .46); }
:root[data-theme="light"] .cp-dim { background: rgba(30, 35, 38, .16); }
.cp-card { position: absolute; left: 50%; top: 12vh; transform: translateX(-50%); width: min(640px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 12vh - 24px)); display: flex; flex-direction: column;
  background: var(--c-elevated); color: var(--c-text-primary); border: 1px solid var(--c-border-default); border-radius: 3px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .35); overflow: hidden; }
:root[data-theme="light"] .cp-card { box-shadow: 0 24px 60px rgba(30, 35, 38, .22), 0 2px 8px rgba(30, 35, 38, .12); }
.cp-q { flex: none; display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 56px; border-bottom: 1px solid var(--c-border-subtle); }
.cp-q svg { width: 18px; height: 18px; flex: none; color: var(--c-text-tertiary); }
.cp-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--c-text-primary);
  font: 400 17px/1 var(--f-ui); letter-spacing: 0; caret-color: var(--c-cursor); padding: 0; }
.cp-q input::placeholder { color: var(--c-text-tertiary); opacity: 1; }
.cp-list { overflow-y: auto; padding: 0 0 8px; overscroll-behavior: contain; }
.cp-sh { padding: 12px 18px 6px; font: 600 11px/1 var(--f-ui); letter-spacing: .072em; color: var(--c-text-tertiary); text-transform: uppercase; }
.cp-gap { height: 6px; }
.cp-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 8px; padding: 8px 10px; min-height: 38px;
  border-radius: 2px; cursor: pointer; font-size: 14px; line-height: 1.35; }
.cp-row.is-on { background: color-mix(in srgb, var(--c-text-primary) 14%, transparent); }
:root[data-theme="light"] .cp-row.is-on { background: color-mix(in srgb, var(--c-text-primary) 8%, transparent); }
.cp-ic { display: grid; place-items: center; width: 22px; height: 22px; color: var(--c-text-secondary); }
.cp-ic svg { width: 17px; height: 17px; }
.cp-row.is-on .cp-ic { color: var(--c-text-primary); }
.cp-lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-lb small { margin-left: 8px; font-size: 12.5px; color: var(--c-text-tertiary); }
.cp-lb mark { background: none; color: var(--c-unread); font-weight: 650;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-text-primary) 45%, transparent); text-underline-offset: 3px; }
:root[data-theme="light"] .cp-lb mark { color: var(--c-text-primary); }
.cp-rt { font-size: 12px; color: var(--c-text-tertiary); white-space: nowrap; }
.cp-n { min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 2px; font: 600 12px/18px var(--f-ui);
  background: color-mix(in srgb, var(--c-text-primary) 10%, transparent); color: var(--c-text-secondary); }
.cp-n--need { background: var(--c-need); color: #1e2326; }
.cp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cp-av { width: 22px; height: 22px; border-radius: 3px; display: grid; place-items: center; font: 700 10px/1 var(--f-ui);
  background: color-mix(in srgb, var(--c-text-primary) 22%, transparent); color: var(--c-text-primary); }
@media (max-width: 640px) { .cp-card { top: 8px; max-height: calc(100vh - 16px); } }
