/* Khoj — DS-021 · TheLayoutLoft Parts Line
   Skin A: Raycast obsidian. All .kh- prefixed; root is .kh overlay. */
.kh {
  position:fixed; inset:0; z-index:10000;
  font:400 14px/1.5 ui-sans-serif,system-ui,sans-serif;
}
.kh *,.kh *::before,.kh *::after { box-sizing:border-box; margin:0; }

.kh-scrim {
  position:absolute; inset:0; background:rgba(5,7,11,.72);
  backdrop-filter:blur(3px);
}
.kh-hud {
  position:absolute; left:50%; top:18vh; translate:-50% 0;
  width:min(560px,92vw); border-radius:14px; overflow:hidden;
  background:#10131C; border:1px solid rgba(255,255,255,.12);
  box-shadow:0 30px 80px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.06) inset;
}
@keyframes kh-in { from { opacity:0; transform:scale(.96) translateY(-8px); }
                   to   { opacity:1; transform:scale(1) translateY(0); } }
.kh.kh-in-anim .kh-hud { animation:kh-in .16s cubic-bezier(.16,1,.3,1); }
.kh.kh-in-anim .kh-scrim { animation:kh-in .16s; }

.kh-inrow {
  display:flex; align-items:center; gap:10px; padding:13px 15px;
  border-bottom:1px solid rgba(255,255,255,.08); color:#8B93A7;
}
.kh-in {
  flex:1; background:none; border:none; outline:none;
  color:#F8FAFC; font:400 14.5px/1.4 inherit;
}
.kh-in::placeholder { color:#4C5364; }
.kh-kbd,.kh-foot kbd,.kh-key {
  font:600 10.5px/1 ui-monospace,monospace; color:#8B93A7;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1);
  border-bottom-width:2px; border-radius:5px; padding:3px 6px;
}

.kh-list { max-height:300px; overflow-y:auto; padding:6px; }
.kh-row {
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  border-radius:9px; color:#C7CDDC; cursor:pointer; font-size:13.5px;
}
.kh-row .kh-lab { flex:1; }
.kh-row .kh-hint { color:#565D72; font-size:11.5px; }
.kh-row .kh-rec { color:#565D72; font-size:12px; width:12px; }
.kh-row.kh-on { background:#1E2436; color:#F8FAFC; }
.kh-row.kh-on .kh-key { border-color:rgba(255,255,255,.25); }
.kh-empty { padding:26px; text-align:center; color:#4C5364; font-size:13px; }

.kh-foot {
  display:flex; gap:16px; padding:9px 15px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#565D72; font-size:11px;
}
.kh-foot span { display:flex; align-items:center; gap:5px; }

body.kh-open { overflow:hidden; }

@media (prefers-reduced-motion:reduce) {
  .kh.kh-in-anim .kh-hud,.kh.kh-in-anim .kh-scrim { animation:none; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
