body.cmd-is-open { overflow:hidden }
#command-panel { --cmd-accent:#d6ff58; box-sizing:border-box; width:min(670px,calc(100vw - 36px)); max-width:none; max-height:min(76dvh,680px); padding:0; margin:min(12dvh,100px) auto auto; overflow:hidden; border:1px solid #51554b; border-radius:19px; color:#f2f4ec; background:#151715; box-shadow:0 30px 100px #000b; text-align:left; color-scheme:dark }
#command-panel::backdrop { background:rgb(2 4 3 / 76%); backdrop-filter:blur(7px) }
#command-panel[open] { animation:cmd-appear .17s ease-out }
.cmd-shell { display:flex; flex-direction:column; min-height:0 }
.cmd-search, .cmd-filters, .cmd-status, .cmd-footer { flex:none }
.cmd-search { display:flex; align-items:center; gap:13px; padding:23px 22px 17px }
.cmd-glass { color:var(--cmd-accent); display:inline-flex; flex-shrink:0 }
#command-query { min-width:0; flex:1; padding:0; border:0; outline:0; border-radius:0; background:transparent; color:#f5f7ee; font:inherit; font-size:clamp(17px,2.8vw,22px); letter-spacing:-.035em; box-shadow:none; caret-color:var(--cmd-accent) }
#command-query::placeholder { color:#969c91 }
.cmd-dismiss { display:grid; place-items:center; width:31px; height:31px; flex:none; padding:0; border:1px solid #434840; border-radius:7px; background:transparent; color:#bac0b5; cursor:pointer }
.cmd-dismiss:hover,.cmd-dismiss:focus-visible { color:var(--cmd-accent); border-color:var(--cmd-accent) }
.cmd-filters { display:flex; align-items:center; gap:6px; overflow-x:auto; padding:0 21px 17px; border-bottom:1px solid #343932; scrollbar-width:thin }
.cmd-filters button { flex:none; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; padding:5px 13px; border-radius:999px; border:1px solid #3c4239; background:transparent; color:#c2c7bb; font:inherit; font-size:12px; line-height:1.5; font-weight:600; cursor:pointer }
.cmd-filters button[aria-pressed="true"] { background:var(--cmd-accent); color:#1b2112; border-color:var(--cmd-accent) }
.cmd-filters button:focus-visible { outline:2px solid var(--cmd-accent); outline-offset:1px }
.cmd-status { padding:14px 23px 8px; color:#aab2a2; font-size:11px; letter-spacing:.035em }
.cmd-list { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 8px 9px; scrollbar-width:thin; scrollbar-color:#50564b transparent }
.cmd-row { position:relative; display:flex; flex-direction:row; align-items:center; gap:12px; min-height:55px; margin:1px 0; padding:8px 12px; box-sizing:border-box; border-radius:9px; color:inherit; background:transparent; text-decoration:none; cursor:pointer }
.cmd-row[aria-selected="true"] { background:#2b3027 }
.cmd-row[aria-selected="true"] .cmd-type,.cmd-row[aria-selected="true"] .cmd-action { color:var(--cmd-accent) }
.cmd-type { width:32px; height:32px; display:grid; place-items:center; flex:none; background:#20261f; border:1px solid #3a4136; border-radius:7px; color:#bec7b6 }
.cmd-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px }
.cmd-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#f2f5ee; font-size:14px; line-height:1.4; font-weight:550 }
.cmd-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; color:#adb6a6; line-height:1.3 }
.cmd-action { display:grid; place-items:center; width:19px; flex:none; color:#67735e; font-size:19px }
.cmd-footer { display:flex; flex-shrink:0; justify-content:flex-end; gap:17px; border-top:1px solid #343932; padding:11px 20px; color:#a6afa0; font-size:11px }
.cmd-footer span { display:inline-flex; align-items:center; gap:4px }
.cmd-footer kbd { min-width:18px; min-height:17px; box-sizing:border-box; display:grid; place-items:center; padding:0 3px; border:1px solid #454b42; border-radius:4px; font:inherit; font-size:10px; color:#d8dfd0 }
@keyframes cmd-appear { from{opacity:0; transform:translateY(-5px)} to{opacity:1; transform:none} }
@media(max-width:600px) {
  #command-panel { width:calc(100vw - 18px); margin: max(env(safe-area-inset-top),9px) auto 0; max-height:min(83dvh,620px); border-radius:13px }
  .cmd-search { gap:10px; padding:19px 13px 14px }
  .cmd-filters { gap:5px; padding:0 13px 13px }
  .cmd-filters button { padding:5px 10px }
  .cmd-status { padding:11px 15px 6px }
  .cmd-row { gap:9px; padding:7px }
  .cmd-footer { display:none }
  .cmd-search input { font-size:16px }
}
@media(prefers-reduced-motion:reduce) { #command-panel[open] {animation:none} }
#command-panel { --cmd-accent:var(--acid); height:auto; background:#121a18; border-color:#415951; }
.cmd-row[aria-selected="true"] { background:#20352d; }
@media (max-width:680px),(pointer:coarse) {
  #command-panel { max-height:min(calc(var(--cmd-vh, 100dvh) - 20px),660px); margin-top:max(8px,env(safe-area-inset-top)); }
  .cmd-dismiss { min-width:44px; height:44px }
  .cmd-search { padding:9px 12px 7px }
  .cmd-filters { padding-bottom:8px }
  .cmd-filters button { min-height:40px; padding-inline:10px }
  .cmd-list { -webkit-overflow-scrolling:touch; }
  .cmd-copy strong { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
}
@media (orientation:landscape) and (max-height:500px) {
  #command-panel { max-height:calc(var(--cmd-vh,100dvh) - 12px); margin-top:5px }
  .cmd-search { padding-block:3px }
  .cmd-filters { padding-bottom:4px }
  .cmd-footer { display:none }
  .cmd-status { padding-block:4px }
}
