/*
 * The search box (8 Nov 2026, "quick-search"; web/src/quicksearch.js). Hand-written, scoped to #qswrap, light only.
 * Drawn in the round 14 panel's own terms: the Cmd-K panel's size, radius, shadow, 52px head, 40px rows and 12px
 * section heads (r8.css `#askwrap .r8.kq`), with that sheet's tokens copied here because this panel is not inside an
 * .r8 surface. The shell's .askwrap supplies the fixed layer and the dim; nothing in kyte.css is changed.
 */
#qswrap{--ink:#171b24;--t2:#5d6575;--t3:#8b94a1;--line:#e9edf2;--fill:#f6f8fa;--hov:#f8f9fb;--press:#f1f3f6;--navy:#1F2A44;--edge:#dfe3e9;
  --fig:Geist,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#qswrap .askpanel.qs-panel{width:640px;max-width:calc(100vw - 32px);top:12vh;max-height:76vh;padding:0;display:flex;flex-direction:column;overflow:hidden;
  border:0;border-radius:16px;background:#fff;box-shadow:0 0 0 1px var(--line),0 24px 48px -16px rgba(16,24,40,.28);
  font-family:var(--fig);font-optical-sizing:auto;font-variant-numeric:tabular-nums;font-size:14px;line-height:20px;color:var(--ink);-webkit-font-smoothing:antialiased}
#qswrap .askpanel.qs-panel *{box-sizing:border-box}
#qswrap svg.i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#qswrap .qs-head{flex:none;display:flex;align-items:center;gap:12px;height:52px;padding:0 12px 0 20px;border-bottom:1px solid var(--line);color:var(--t3)}
#qswrap .qs-head input{flex:1;min-width:0;height:44px;border:0;outline:0;background:none;font:inherit;font-size:14px;color:var(--ink);padding:0}
#qswrap .qs-head input::placeholder{color:var(--t3)}
#qswrap .qs-esc{height:24px;min-height:0;padding:0 6px;border-radius:6px;border:0;background:#fff;box-shadow:inset 0 0 0 1px var(--line);font:inherit;font-size:12px;line-height:16px;font-weight:500;color:var(--t3);cursor:pointer}
#qswrap .qs-esc:hover{color:var(--ink);background:#fff}
#qswrap .qs-body{flex:1;min-height:0;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:2px}
#qswrap .qs-body h3{margin:8px 0 0;padding:0 8px 4px;font-size:12px;line-height:16px;font-weight:500;letter-spacing:.01em;color:var(--t3)}
#qswrap .qs-body h3:first-child{margin-top:0}
#qswrap .qs-note{margin:0;padding:8px;font-size:13px;line-height:20px;color:var(--t2)}
#qswrap .qs-rule{height:1px;margin:8px 8px 6px;background:var(--line)}
#qswrap .qs-row{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:6px 8px;border:0;border-radius:8px;background:none;box-shadow:none;
  font:inherit;font-size:14px;color:var(--ink);text-align:left;cursor:pointer}
#qswrap .qs-row:hover,#qswrap .qs-row.on{background:var(--hov)}
#qswrap .qs-row.on{box-shadow:inset 0 0 0 1px var(--edge)}
#qswrap .qs-row:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
#qswrap .qs-main{flex:1;min-width:0;display:flex;flex-direction:column}
#qswrap .qs-main b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#qswrap .qs-main small{font-size:12px;line-height:16px;color:var(--t3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#qswrap .qs-ask svg.i{color:var(--t3)}
#qswrap .qs-ask em{font-style:normal;font-size:12px;line-height:16px;color:var(--t3)}
#qswrap .qs-foot{flex:none;display:flex;gap:16px;padding:10px 20px;border-top:1px solid var(--line);font-size:12px;line-height:16px;color:var(--t3)}
#qswrap .qs-foot kbd{display:inline-block;margin-right:4px;min-width:20px;padding:0 4px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--line);font:inherit;font-weight:500;text-align:center}
#qswrap *{transition:none !important;animation:none !important}
@media (max-width:650px){
  #qswrap .askpanel.qs-panel{top:8px !important;max-height:calc(100dvh - 16px) !important;width:calc(100vw - 16px);max-width:none}
  /* iOS zooms a page when a field under 16px takes focus. */
  #qswrap .qs-head input{font-size:16px}
  #qswrap .qs-row{min-height:48px}
  #qswrap .qs-esc{min-height:34px;padding:0 10px}
  #qswrap .qs-foot{display:none}
}

/* 9 Nov 2026 (the last walk): the search box's "esc" means nothing on a touch screen, which has no Escape key; it says Close,
   40px tall, as a sheet's close does (hub-d.css .askhead .esc). */
@media (pointer:coarse){
  #qswrap .qs-esc{font-size:0;min-height:40px;min-width:56px;display:inline-flex;align-items:center;justify-content:center}
  #qswrap .qs-esc::after{content:"Close";font-size:12px}
}

/* The phone's search button (8 Nov 2026): the bell's own style and size (hub-d.css .topbar .bell, kyte.css's 44px hit area
   at phone width); it only appears where the sidebar's Search is hidden. */
.topbar .bell.qs-top{display:none}
@media (max-width:650px){ .topbar .bell.qs-top{display:inline-flex} }
