/* The search palette and its header button, shared by the landing page and the score pages (assets/search.js). */
/* ---------- search: header button and palette (assets/search.js) ---------- */
.qbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--fg-2); cursor: pointer; font-size: 13.5px; }
.qbtn:hover { color: var(--fg); border-color: rgba(255, 255, 255, .3); }
.qbtn svg, .td-q svg, .q-in svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
kbd { font: 500 11px/1 var(--f-data); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--fg-3); }
@media (max-width: 520px) { .qbtn span, .qbtn kbd { display: none; } .qbtn { padding: 0 10px; } }
html.q-open { overflow: hidden; }
.q-wrap { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-items: start; padding: min(14vh, 120px) 14px 14px; }
.q-back { position: absolute; inset: 0; background: rgba(3, 4, 8, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s; }
.q-box { position: relative; width: min(620px, 100%); border-radius: 22px; background: linear-gradient(180deg, #161925, #10121A); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(84, 226, 233, .06), 0 0 80px rgba(84, 226, 233, .08); overflow: hidden;
  transform: translateY(-8px) scale(.985); opacity: 0; transition: transform .25s cubic-bezier(.16, 1, .3, 1), opacity .2s; }
.q-wrap.on .q-back { opacity: 1; } .q-wrap.on .q-box { transform: none; opacity: 1; }
.q-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.q-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 19px/1.2 var(--f-ui); color: var(--fg); }
.q-in input::-webkit-search-cancel-button { display: none; }
.q-esc { border: 1px solid var(--line-2); background: transparent; border-radius: 8px; padding: 5px 8px; font: 500 11px/1 var(--f-data); color: var(--fg-3); cursor: pointer; }
#q-list { list-style: none; margin: 0; padding: 8px; max-height: min(60vh, 460px); overflow-y: auto; }
#q-list a { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; text-decoration: none; }
#q-list li[aria-selected=true] a, #q-list a:hover { background: rgba(255, 255, 255, .06); }
.q-hint, .q-foot { font: 500 11px/1.3 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding: 6px 10px; }
.q-foot { border-top: 1px solid var(--line); margin: 0; padding: 10px 16px; }
.q-none { padding: 14px 10px; color: var(--fg-2); }
.q-who { display: grid; min-width: 0; flex: 1; }
.q-who span { color: var(--fg-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-g { color: var(--fg-3); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 520px) { .q-g { display: none; } }
.q-sc { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 650 13px/1 var(--f-data);
  background: radial-gradient(closest-side, #141722 78%, transparent 80% 100%), conic-gradient(from 0deg, #5FADFF, #54E2E9 calc(var(--p) * .5%), #79F481 calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }

