/* A quick-open panel, shared by the main site and both utility pages. */
body.command-open { overflow: hidden; }
.command-palette { position: fixed; inset: 0; width: min(560px, calc(100% - 32px)); max-height: min(680px, calc(100dvh - 48px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.command-palette[open] { display: flex; flex-direction: column; }
.command-palette::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(5px); }
.command-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 14px 10px 22px; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.command-heading h2 { font: 500 .875rem/1.5 var(--mono); letter-spacing: -.025em; }
.command-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 5px; color: var(--muted); }
.command-close svg { width: 18px; height: 18px; }
.command-close:hover { color: var(--text); background: var(--bg); }
.command-close:focus-visible { outline-offset: -3px; }
.command-search-row { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.command-search-row > svg { width: 20px; height: 20px; color: var(--accent); }
.command-search-row input { width: 100%; min-width: 0; min-height: 40px; padding: 5px 2px; border: 0; border-radius: 0; background: transparent; color: var(--text); font: 400 1rem/1.5 var(--sans); }
.command-search-row input::placeholder { color: var(--subtle); opacity: 1; }
.command-search-row input:focus-visible { outline: none; }
.command-search-row:focus-within { box-shadow: inset 3px 0 var(--accent); }
.command-results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; scrollbar-width: thin; }
.command-option { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid transparent; border-radius: 5px; text-align: left; color: var(--text); font: 400 .9375rem/1.5 var(--sans); scroll-margin: 8px; }
.command-option > span { min-width: 0; overflow-wrap: anywhere; }
.command-option .command-symbol { color: var(--subtle); font: 400 .875rem/1.5 var(--mono); text-align: center; }
.command-symbol svg { width: 20px; height: 20px; margin-inline: auto; }
.command-option small { color: var(--subtle); font: 400 .6875rem/1.5 var(--mono); }
.command-option:hover { background: var(--surface-raised); }
.command-option.is-active { border-color: var(--line); background: var(--surface-raised); }
.command-option.is-active .command-symbol { color: var(--accent); }
.command-option:focus-visible { outline-offset: -3px; }
.command-empty { padding: 28px 22px; color: var(--muted); font-size: .9375rem; }
.command-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 13px 22px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font: 400 .6875rem/1.6 var(--mono); }
.command-footer > span { display: flex; align-items: center; gap: 6px; }
.command-footer kbd { min-width: 20px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; font: inherit; color: var(--text); text-align: center; }
@media (max-width: 620px) {
    .command-palette { width: calc(100% - 24px); max-height: calc(100dvh - 32px); }
    .command-heading { padding-left: 16px; }
    .command-search-row { gap: 8px; padding: 10px 16px; }
    .command-option { padding-inline: 10px; gap: 8px; }
    .command-footer { padding-inline: 16px; }
    .pill-nav { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 8px; }
    .pill-nav .branding { position: static; transform: none; min-width: 0; justify-self: center; }
    .pill-nav .site-logo { max-width: 100%; }
}
/* Make room for the requested third action without changing the pill itself. */
@media (max-width: 430px) {
    .pill-nav { grid-template-columns: 36px minmax(0, 1fr) 108px; column-gap: 4px; }
}
