/* DD-9: the Ctrl+K palette — a centred box over a dimmed page; the active option is marked by a bar AND a background
   (never colour alone); 390 px: the box fills the width with a 16 px gutter. */
.pal { position: fixed; inset: 0; z-index: 1000; background: rgba(16, 24, 40, .45); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.pal[hidden] { display: none; }
.pal-box { box-sizing: border-box; width: min(560px, 100%); background: var(--bg, #fff); color: var(--ink, #101828); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); padding: 14px; }
.pal-title { font-size: 1rem; margin: 0 0 8px; }
.pal-input { width: 100%; box-sizing: border-box; font-size: 1.05rem; padding: 10px 12px; border: 1px solid var(--line, #d0d5dd); border-radius: 8px; }
.pal-input:focus { outline: 2px solid var(--accent, #1f5fae); outline-offset: 1px; }
.pal-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 52vh; overflow-y: auto; }
.pal-opt { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 6px; cursor: pointer; border-inline-start: 3px solid transparent; }
.pal-opt[aria-selected="true"] { background: rgba(31, 95, 174, .10); border-inline-start-color: var(--accent, #1f5fae); font-weight: 600; }
.pal-count, .pal-keys { margin: 8px 2px 0; }
html.pal-open { overflow: hidden; }
