.command-palette {
  width: min(620px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 40px));
  margin: 7vh auto auto;
  padding: 22px;
  border: 1px solid var(--line, #dfe5ee);
  border-radius: 18px;
  color: var(--ink, #172237);
  background: var(--surface, #fff);
  box-shadow: 0 24px 90px #0c193640;
  overflow-y: auto;
}
.command-palette::backdrop { background: #0c193680; }
.command-palette header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.command-palette h2 { font-size: 20px; margin: 0; }
.command-palette header button { border: 0; border-radius: 8px; background: var(--soft, #f1f4f9); min-width: 44px; min-height: 44px; font-size: 24px; }
.command-palette label { display: block; font-weight: 650; margin-bottom: 6px; }
.command-palette input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line, #dfe5ee); border-radius: 9px; color: var(--ink, #172237); background: var(--surface, #fff); }
.command-palette-hint, .command-palette [data-status] { color: var(--muted, #57677d); font-size: 13px; }
.command-palette [role="listbox"] { max-height: 48dvh; overflow-y: auto; }
.command-palette-option { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; overflow-wrap: anywhere; }
.command-palette-option small { color: var(--muted, #57677d); }
.command-palette-option[aria-selected="true"] { background: var(--blue-soft, #eaf0ff); border-color: var(--blue, #244bd4); }
@media (max-width: 520px) { .command-palette { margin-top: 16px; padding: 16px; } }
@media (forced-colors: active) { .command-palette-option[aria-selected="true"] { outline: 2px solid Highlight; } }
