#commands-unified-grid { display: block; }
#commands-root .command-search-shell { z-index: 40; overflow: visible; }
#commands-root :is(.commands-toolbar, #commands-unified-grid) { position: relative; z-index: 0; }
#commands-root :is(.command-search-shell .site-search, .command-search-suggestions) {
  background: rgba(22, 31, 39, .88);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}
#commands-root .command-search-shell .site-search:focus-within { border-color: #00d9a5; }
.command-category { margin: 0 0 44px; }
.command-category[hidden] { display: none; }
#commands-root .command-category-heading {
  display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 22px;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 750; color: #e2e8f0;
}
#commands-root .command-category-heading::after {
  content: ""; position: static; flex: 1; height: 1px; min-width: 20px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--category-color) 45%, transparent), transparent);
  transform: none;
}
.command-category-heading i, .command-filter-tag i {
  display: inline-block; flex: 0 0 auto; width: 26px; height: 26px;
  background: var(--category-color); mask: var(--category-icon) center / contain no-repeat;
  -webkit-mask: var(--category-icon) center / contain no-repeat;
}
.command-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.command-category .command-card { display: flex; flex-direction: column; min-width: 0; border-color: color-mix(in srgb, var(--category-color) 22%, #25323d); }
#commands-root .command-category .command-card:hover {
  border-color: var(--category-color);
  box-shadow: 0 0 25px color-mix(in srgb, var(--category-color) 15%, transparent);
}
.command-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.command-card-heading h3 { flex: 1; min-width: 0; }
.command-access-trigger {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  max-width: 100%; min-height: 28px; padding: 5px 10px; border: 1px solid #ffffff14;
  border-radius: 999px; font: inherit; font-size: 10px; font-weight: 650; line-height: 1.2;
  white-space: nowrap; cursor: pointer; transition: border-color .2s ease, filter .2s ease;
}
.command-access-trigger:hover { border-color: #ffffff40; filter: brightness(1.12); }
.command-access-name { font-size: 1.2rem; font-weight: 750; color: #e2e8f0; overflow-wrap: anywhere; }
.command-help-body .command-access-details { margin: 18px 0 12px; font-weight: 650; color: #cbd5e1; }
.command-category .command-card h3 { overflow-wrap: anywhere; }
.command-category .command-card > p { min-height: 2.6em; }
.command-category .cmd-box { overflow: hidden; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.command-permission { font-size: .75rem; color: #aab7c6; }
.command-filter-tag { display: inline-flex; align-items: center; gap: 8px; }
.command-filter-tag i { width: 18px; height: 18px; }
.command-filter-tag.is-active i { background: currentColor; }
.command-search-group .command-search-group-label { color: var(--category-color, #aab7c6); }
.command-search-group .command-search-group-dot { background: var(--category-color, #aab7c6); }
.command-help-trigger, .command-help-dismiss, .command-help-close {
  font: inherit; color: #cbd5e1; cursor: pointer; border: 1px solid #ffffff20;
  background: #ffffff06; border-radius: 14px; transition: background .2s, color .2s, transform .2s;
}
.command-help-trigger { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 650; }
.command-help-trigger:hover, .command-help-dismiss:hover { background: #ffffff0c; color: #effff8; }
.command-help {
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  color: #cbd5e1; background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(1.14); -webkit-backdrop-filter: blur(18px) saturate(1.14);
}
.command-help[open] { animation: command-help-enter .22s ease both; }
.command-help.is-closing { animation: command-help-leave .18s ease both; }
.command-help::backdrop { background: #030a104f; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.command-help header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: #ffffff03; border-bottom: 1px solid #ffffff12; }
.command-help h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.3rem; font-weight: 750; color: #e2e8f0; }
.command-help h2 > span:first-child { color: #94a3b8; }
.command-help-close { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; }
.command-help-close svg { width: 100%; height: 100%; }
@media (hover: hover) { .command-help-close:hover { color: #fb7185; background: #fb718516; border-color: #fb71854d; } }
.command-help-body { padding: 24px; line-height: 1.65; font-size: .95rem; }
.command-help-body p { margin: 0; }
.command-help-body dl { margin: 22px 0; }
.command-help-body dl > div { margin: 18px 0; }
.command-help-body dt { display: inline; font-size: .88rem; overflow-wrap: anywhere; }
.command-help-body dd { margin: 7px 0 0; color: #aab7c6; }
.command-help footer { display: flex; justify-content: flex-end; padding: 18px 24px; border-top: 1px solid #ffffff12; }
.command-help-dismiss { padding: 10px 20px; font-weight: 650; }
@keyframes command-help-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes command-help-leave { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@media (max-width: 1000px) { .command-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .command-category-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .command-category-heading { gap: 9px; }
  .command-category-heading span { min-width: 0; }
  .command-help header, .command-help-body, .command-help footer { padding: 18px; }
  .command-help h2 { font-size: 1.1rem; }
  .command-filter-tag { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .command-help[open], .command-help.is-closing { animation: none; } .command-access-trigger { transition: none; } }
