.terminal-commands { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; box-sizing: border-box; padding: 16px 12px; background: rgba(4, 6, 10, .74); color: #d8dbe3; text-align: start; }
.terminal-commands[hidden] { display: none; }
.terminal-commands *, .terminal-commands *::before, .terminal-commands *::after { box-sizing: border-box; }
.terminal-commands .terminal-commands-panel { display: flex; flex-direction: column; width: min(520px, calc(100vw - 24px)); height: min(520px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); min-height: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid #363b46; border-radius: 12px; background: #101114; box-shadow: 0 20px 65px #000b; font-family: Arial, Helvetica, sans-serif; }
.terminal-commands .terminal-commands-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px 5px; }
.terminal-commands .terminal-commands-title { color: #edf0f6; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: .01em; }
.terminal-commands .terminal-commands-close { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 30px; min-width: 30px; min-height: 30px; height: 30px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #969eaf; font: 22px/1 Arial, sans-serif; cursor: pointer; }
.terminal-commands .terminal-commands-close:hover { border-color: #343944; background: #1b1e25; color: #edf0f6; }
.terminal-commands .terminal-commands-search { flex: 0 0 auto; padding: 7px 17px 14px; border-bottom: 1px solid #292c35; }
.terminal-commands .terminal-commands-input { display: block; width: 100%; height: 42px; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid #3b424f; border-radius: 7px; background: #181b21; color: #edf1f8; font: 400 13px/1.4 Arial, sans-serif; color-scheme: dark; }
.terminal-commands .terminal-commands-input::placeholder { color: #8992a5; opacity: 1; }
.terminal-commands .terminal-commands-list { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3b434e #14161b; }
.terminal-commands .terminal-commands-list[hidden], .terminal-commands .terminal-commands-empty[hidden] { display: none; }
.terminal-commands .terminal-commands-group { margin: 0 0 7px; }
.terminal-commands .terminal-commands-group:last-child { margin-bottom: 0; }
.terminal-commands .terminal-commands-group-label { padding: 8px 10px 6px; color: #8f98aa; font-size: 10px; font-weight: 600; letter-spacing: .075em; line-height: 1.4; text-transform: uppercase; overflow-wrap: anywhere; }
.terminal-commands .terminal-commands-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-width: 0; min-height: 54px; margin: 2px 0; padding: 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #d8dfe9; text-align: start; font: inherit; line-height: 1.4; cursor: pointer; }
.terminal-commands .terminal-commands-action:hover:not(:disabled) { border-color: #303943; background: #1b2027; }
.terminal-commands .terminal-commands-action[aria-selected="true"] { border-color: #36594d; background: #1a2b25; }
.terminal-commands .terminal-commands-action:disabled { opacity: .42; cursor: not-allowed; }
.terminal-commands .terminal-commands-copy { display: grid; min-width: 0; gap: 3px; }
.terminal-commands .terminal-commands-action-label { color: #e1e6ef; font-size: 12px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.terminal-commands .terminal-commands-action[aria-selected="true"] .terminal-commands-action-label { color: #b0edd0; }
.terminal-commands .terminal-commands-description { color: #929bad; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.terminal-commands kbd { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 21px; padding: 2px 5px; border: 1px solid #343a46; border-radius: 4px; background: #171b22; color: #adb7c8; font: 400 10px/1.3 Arial, sans-serif; letter-spacing: .015em; white-space: nowrap; }
.terminal-commands .terminal-commands-shortcut { max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.terminal-commands .terminal-commands-empty { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 0; padding: 24px; text-align: center; }
.terminal-commands .terminal-commands-empty strong { color: #c6cfdd; font-size: 13px; font-weight: 500; line-height: 1.4; }
.terminal-commands .terminal-commands-empty span { color: #8993a6; font-size: 11px; line-height: 1.5; }
.terminal-commands .terminal-commands-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; padding: 11px 17px; border-top: 1px solid #292c35; background: #13161b; color: #8f99ab; font-size: 10px; line-height: 1.4; }
.terminal-commands .terminal-commands-footer-right { display: inline-flex; align-items: center; gap: 6px; }
.terminal-commands .terminal-commands-count { margin-inline-end: 7px; color: #747f93; font-variant-numeric: tabular-nums; }
.terminal-commands :is(.terminal-commands-input, .terminal-commands-close, .terminal-commands-action):focus-visible { outline: 2px solid #8bd4b1; outline-offset: 2px; }
@media (max-width: 480px) {
  .terminal-commands .terminal-commands-panel { height: min(560px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .terminal-commands .terminal-commands-header { padding: 10px 12px 3px; }
  .terminal-commands .terminal-commands-close { width: 38px; min-width: 38px; min-height: 38px; height: 38px; }
  .terminal-commands .terminal-commands-search { padding: 6px 12px 11px; }
  .terminal-commands .terminal-commands-input { height: 44px; font-size: 16px; }
  .terminal-commands .terminal-commands-action { min-height: 56px; gap: 9px; }
  .terminal-commands .terminal-commands-footer { gap: 7px; padding: 9px 12px; }
  .terminal-commands .terminal-commands-count { display: none; }
}
@media (max-height: 420px) {
  .terminal-commands .terminal-commands-header { padding-block: 6px 0; }
  .terminal-commands .terminal-commands-search { padding-block: 5px 8px; }
  .terminal-commands .terminal-commands-footer { padding-block: 6px; }
}
