/* Dugout search (js/views/palette.js): Ctrl K, / or the masthead's search button.
   Classes here belong to this screen; tests/css-lint.mjs fails if another screen's file defines the same class. */
/* Dugout 4: fades away on close as well as dropping in on open ([hidden] stays drawn while it fades: allow-discrete) */
.pal { position: fixed; inset: 0; z-index: 55; display: grid; justify-items: center; align-items: start; padding: calc(11vh / var(--z, 1)) 16px 16px; transition: opacity .16s ease, display .16s allow-discrete; }
.pal[hidden] { display: none; opacity: 0; pointer-events: none; }
@starting-style { .pal { opacity: 0; } }
.pal-bg { position: absolute; inset: 0; background: color-mix(in srgb, #151515 55%, transparent); }
.pal-card { position: relative; width: min(660px, 100%); max-height: calc(76vh / var(--z, 1)); display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--edge); border-radius: var(--r); box-shadow: var(--lift); animation: pal-in .16s ease-out; }
@keyframes pal-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .pal-card { animation: none; } .pal { transition: none; } }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--edge); }
.pal-in .ico { width: 22px; height: 22px; color: var(--muted); }
.pal-in input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 4px 0; color: var(--ink); font: 800 condensed 26px/1.1 var(--head); }
.pal-in input::placeholder { color: var(--muted); font-weight: 600; }
.pal-res { overflow-y: auto; padding: 4px 6px 8px; overscroll-behavior: contain; }
.pal-sec { padding: 12px 10px 4px; font: 800 10.5px var(--num); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pal-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 10px; background: none; border: 0; border-radius: 8px; color: var(--ink); text-align: left; }
.pal-it[aria-selected=true] { background: var(--hi); color: var(--hi-ink); }
.pal-it[aria-selected=true] { --ink: var(--hi-ink); --ink2: var(--hi-ink); --muted: color-mix(in srgb, var(--hi-ink) 65%, transparent); }   /* the highlighter's ink, whatever the look */
.pal-it[aria-selected=true] small { color: color-mix(in srgb, var(--hi-ink) 70%, transparent); }
.pal-it .kit { width: 30px; height: 30px; font-size: 8.5px; box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px var(--ring); }
.pal-it .kit .flag { display: none; }
.pal-tx { flex: 1; min-width: 0; }
.pal-it b { display: block; font-weight: 700; }
.pal-it small { display: block; font: 500 11.5px var(--num); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-it em { font: 800 normal 15px var(--num); }
.pal-it em small { display: inline; font-size: 10px; margin-left: 3px; }
.pal-go { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 8px; font: 800 normal 15px var(--num); }
.pal-none { margin: 0; padding: 18px 12px; color: var(--muted); }
.pal-foot { margin: 0; padding: 8px 14px; border-top: 1px solid var(--edge); font: 600 11.5px var(--num); color: var(--muted); }
.pal-foot kbd { margin-right: 2px; }
@media (max-width: 600px) {
  .pal { padding: 12px 10px; }
  .pal-card { max-height: calc(100dvh / var(--z, 1) - 24px); box-shadow: var(--lift); }
  .pal-foot { display: none; }
}
