/* repokuiper-speed.css (K5, TACHYON-29): command palette, "what uses this" trail, speed HUD, toast, card buttons.
   Scoped to #kp-speed*, .sp-*. Palette: #000 #0b0e14 #2f343d #fff #a6adbb #66ccff #00ffff. 390px first, 44px taps. */
#kp-speed,#kp-speed-uses{left:8px;right:8px;max-width:560px;max-height:min(72vh,560px);max-height:min(72dvh,560px);display:flex;
  flex-direction:column;background:#0b0e14;border:1px solid #00ffff;border-radius:4px;padding:8px;z-index:25;overflow:hidden;
  box-sizing:border-box}
#kp-speed[hidden],#kp-speed-uses[hidden],#kp-speed-hud[hidden],#kp-speed-toast[hidden]{display:none}
.sp-row{display:flex;align-items:center;gap:6px;min-width:0}
.sp-q{flex:1;min-width:0;font:inherit;font-size:16px;background:#000;color:#fff;border:1px solid #66ccff;border-radius:3px;
  padding:8px;min-height:44px;box-sizing:border-box}
.sp-q:focus{outline:2px solid #00ffff;outline-offset:1px}
.sp-btn{font:inherit;font-size:13px;color:#fff;background:#000;border:1px solid #2f343d;border-radius:3px;min-width:44px;
  min-height:44px;padding:0 10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.sp-btn:hover,.sp-btn:focus-visible{border-color:#00ffff;color:#00ffff;outline:none}
.sp-title{flex:1;min-width:0;color:#00ffff;font-weight:normal;overflow-wrap:anywhere}
.sp-sub{color:#a6adbb;font-size:11px;min-width:0;overflow-wrap:anywhere}
.sp-status{margin:6px 2px 0}
.sp-trail{margin:4px 2px 0}
.sp-trail a{color:#00ffff;text-decoration:none;display:inline-block;padding:6px 0}
.sp-list{list-style:none;margin:6px 0 0;padding:0;overflow-y:auto;overflow-x:hidden;flex:1;-webkit-overflow-scrolling:touch}
.sp-list li{display:flex;flex-direction:column;justify-content:center;min-height:44px;padding:4px 6px;border-bottom:1px solid #2f343d;
  cursor:pointer;color:#fff;box-sizing:border-box}
.sp-list li.on,.sp-list li:hover{background:#2f343d}
.sp-list li.on .sp-main{color:#00ffff}
.sp-main{min-width:0;overflow-wrap:anywhere}
.sp-main em{color:#66ccff;font-style:normal;font-size:11px}
#kp-speed-hud{top:auto!important;left:auto;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));max-width:calc(100vw - 16px);
  width:auto;padding:4px 8px;font-size:11px;color:#a6adbb;background:#000c;border:1px solid #2f343d;border-radius:3px;z-index:4;
  overflow:visible;max-height:none}
#kp-speed-hud b{color:#00ffff;font-weight:normal}
#kp-speed-hud a{color:#66ccff;display:inline-block;padding:2px 0}
#kp-speed-toast{top:auto!important;left:50%;right:auto;transform:translateX(-50%);bottom:calc(52px + env(safe-area-inset-bottom));
  max-width:calc(100vw - 32px);background:#0b0e14;border:1px solid #00ffff;color:#fff;border-radius:4px;padding:10px 12px;z-index:30;
  font-size:12px;overflow-wrap:anywhere;pointer-events:none}
.sp-card{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.sp-cardhud{margin-top:4px}
.sp-cardhud b{color:#00ffff;font-weight:normal}
.sp-clip{position:fixed;left:-9999px;top:0;opacity:0}
/* tablet/laptop: palette centred near the top; the trail on the left, clear of the right-hand card */
@media (min-width:760px){
  #kp-speed{left:50%;right:auto;transform:translateX(-50%);width:560px}
  #kp-speed-uses{right:auto;width:420px;max-height:min(60vh,520px)}
  #card:not([hidden]) ~ #kp-speed-hud{right:404px}
  .sp-sub{font-size:12px}
}
@media (prefers-reduced-motion:reduce){.sp-list{scroll-behavior:auto}}
