/* Jump (command palette): uses the Relay dialog (enamel, 14px, inner rule). Loaded after home.css. */
dialog.cmd { width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 80px)); margin: 12vh auto auto; padding: 0; overflow: hidden; display: none; }
dialog.cmd[open] { display: flex; flex-direction: column; }
.cmd-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--edge); }
.cmd-bar input { flex: 1; min-width: 0; height: 44px; font-size: 17px; font-weight: 600; background: var(--raised); }
.cmd-bar kbd, .home-jump kbd, .hf-keys kbd { font: 700 11px var(--font-mono); letter-spacing: .06em; padding: 3px 7px; border: 1px solid var(--edge); border-radius: 4px; background: var(--raised); color: var(--ink); white-space: nowrap; }
.cmd-list { list-style: none; margin: 0; padding: 6px 8px 8px; overflow-y: auto; flex: 1; min-height: 0; }
.cmd-group { font: 700 10.5px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 12px 8px 4px; }
.cmd-item { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 10px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.cmd-item[aria-selected=true] { background: var(--sel-bg); border-color: var(--ink); }
.cmd-label { font-weight: 650; }
.cmd-hint { font: 600 11px var(--font-mono); letter-spacing: .03em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cmd-none { padding: 22px 12px; color: var(--muted); }
.cmd-foot { margin: 0; padding: 9px 16px; border-top: 1px solid var(--edge); font: 600 11px var(--font-mono); letter-spacing: .04em; color: var(--muted); }
@media (max-width: 560px) { dialog.cmd { margin-top: 6vh; } .cmd-foot { display: none; } }
@media (prefers-reduced-motion: no-preference) { dialog.cmd[open] { animation: panel-in .16s ease-out both; } }
