/* Commands guide only. Shared navigation and footer styles are unchanged. */
#bot-commands {
  --guide-surface: #151a23;
  --guide-border: #2a3240;
  --guide-muted: #cbd5e1;
  --guide-blue: #a8bcff;
  padding: 26px 0 72px;
  color: #e9edf5;
}
#bot-commands [hidden] { display: none !important; }
#bot-commands .container { width: calc(100% - 48px); max-width: 1180px; }
#bot-commands button, #bot-commands input { font-family: inherit; }
#bot-commands button { cursor: pointer; }
#bot-commands :is(a, button, input, summary):focus-visible { outline: 2px solid #a8bcff; outline-offset: 4px; }
#bot-commands .commands-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#bot-commands .commands-hero { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-bottom: 32px; }
#bot-commands .commands-eyebrow { color: #a8bcff; font-size: 11px; line-height: 1.5; letter-spacing: .14em; font-weight: 800; margin: 0 0 12px; }
#bot-commands h1 { color: #f5f7fc; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.035em; margin: 0 0 14px; }
#bot-commands h1 span { display: block; color: #e2e8f0; }
#bot-commands .commands-intro { color: var(--guide-muted); font-size: 15px; line-height: 1.7; margin: 0; }
#bot-commands .commands-total { display: flex; align-items: center; gap: 14px; flex-shrink: 0; padding: 18px 22px; border-left: 1px solid var(--guide-border); }
#bot-commands .commands-total__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #1b2336; color: var(--guide-blue); font-size: 19px; }
#bot-commands .commands-total strong { display: block; font-size: 21px; line-height: 1.5; color: #f2f5fb; font-weight: 800; }
#bot-commands .commands-total div > span { display: block; font-size: 12px; color: var(--guide-muted); margin-top: 2px; }
#bot-commands .commands-search-area { margin-bottom: 30px; }
#bot-commands .search-container { display: flex; align-items: center; gap: 14px; width: 100%; border: 1px solid #384355; background: #191f2b; border-radius: 13px; padding: 0 18px; transition: border-color .18s, box-shadow .18s; }
#bot-commands .search-container:focus-within { border-color: #8da7ff; box-shadow: 0 0 0 3px #8da7ff14; }
#bot-commands .search-icon-inside { color: #b1bdd3; font-size: 17px; flex-shrink: 0; }
#bot-commands #commandSearch { min-width: 0; width: 100%; height: 58px; border: 0; outline: 0; box-shadow: none; background: transparent; color: #f3f6fc; font-size: 15px; padding: 0; }
#bot-commands #commandSearch::placeholder { color: #cbd5e1; opacity: 1; }
#bot-commands #commandSearch::-webkit-search-cancel-button { display: none; }
#bot-commands .commands-search-shortcut { display: grid; place-items: center; width: 26px; height: 28px; flex-shrink: 0; border: 1px solid #424b5e; border-radius: 5px; background: #232b39; color: #bbc5d6; font-size: 13px; box-shadow: 0 2px 0 #10151d; }
#bot-commands.has-query .commands-search-shortcut { display: none; }
#bot-commands #clearSearch { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: #283244; color: #e8eefb; border: 1px solid #414d62; font-size: 23px; }
#bot-commands .commands-search-help { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; line-height: 1.6; color: #c6d0df; }
#bot-commands .commands-quick-search { display: flex; gap: 6px; align-items: center; }
#bot-commands .commands-quick-search > span { margin-right: 3px; color: #c6d0df; }
#bot-commands .commands-quick-search button { border: 1px solid #303a4b; border-radius: 6px; padding: 2px 9px; background: #181f2b; color: #dce6ff; font-size: 11px; transition: background .15s; }
#bot-commands .commands-quick-search button:hover { background: #293552; }
#bot-commands .commands-workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 30px; }
#bot-commands:not(.commands-ready) .commands-workspace { display: block; }
#bot-commands .commands-sidebar { position: sticky; top: 112px; display: flex; flex-direction: column; max-height: calc(100dvh - 140px); min-height: 280px; background: #141922; border: 1px solid var(--guide-border); border-radius: 14px; padding: 16px 10px 14px; }
#bot-commands .commands-sidebar-head { display: flex; justify-content: space-between; padding: 2px 12px 14px; color: #d4deec; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
#bot-commands .commands-sidebar-head > span:last-child { letter-spacing: 0; color: #dce6f5; }
#bot-commands #commandsCategoryNav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3e4a60 transparent; padding: 0 5px 0 0; }
#bot-commands .commands-category { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: #dce3ee; text-decoration: none; font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
#bot-commands .commands-category > i { width: 16px; text-align: center; color: #c3cfe2; font-size: 12px; }
#bot-commands .commands-category__name { flex: 1; min-width: 0; }
#bot-commands .commands-category__count { color: #c9d4e5; font-size: 10px; font-variant-numeric: tabular-nums; }
#bot-commands .commands-category:hover { background: #202837; color: #f1f5fc; }
#bot-commands .commands-category.is-active { background: #24304d; border-color: #3d507d; color: #e3eaff; }
#bot-commands .commands-category.is-active > i, #bot-commands .commands-category.is-active .commands-category__count { color: #b9caff; }
#bot-commands .commands-category--all { border-bottom-color: #303d55; margin-bottom: 6px; }
#bot-commands .commands-sidebar-hint { display: flex; align-items: baseline; gap: 8px; padding: 14px 10px 0; margin: 12px 0 0; border-top: 1px solid var(--guide-border); color: #cbd6e7; font-size: 11px; line-height: 1.65; }
#bot-commands .commands-sidebar-hint i { color: #a8bcff; }
#bot-commands .commands-category-toggle { display: none; }
#bot-commands .commands-main { min-width: 0; }
#bot-commands .commands-view-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 3px 0 22px; scroll-margin-top: 120px; }
#bot-commands .commands-view-head .commands-eyebrow { font-size: 10px; margin-bottom: 7px; }
#bot-commands #commandsViewTitle { margin: 0 0 7px; color: #f0f4fc; font-weight: 800; font-size: 26px; line-height: 1.25; letter-spacing: -.025em; }
#bot-commands #commandsResultCount { font-size: 12px; line-height: 1.6; margin: 0; color: #cbd5e1; overflow-wrap: anywhere; }
#bot-commands .commands-expand { flex-shrink: 0; font-size: 11px; font-weight: 700; line-height: 1.4; padding: 10px 12px; color: #e1eaff; border: 1px solid #35425b; border-radius: 8px; background: #1c2535; }
#bot-commands .commands-expand:hover { background: #283652; border-color: #6178aa; }
#bot-commands .commands-group { margin: 0 0 26px; min-width: 0; }
#bot-commands .group-title { color: #f1f4fc; font-size: 21px; margin: 28px 0 15px; font-weight: 800; }
#bot-commands.commands-ready:not(.is-global-search) .group-title { display: none; }
#bot-commands .commands-about { margin: 0 0 16px; border: 1px solid #303c52; border-radius: 10px; background: #1a2231; }
#bot-commands summary { list-style: none; cursor: pointer; }
#bot-commands summary::-webkit-details-marker { display: none; }
#bot-commands .commands-about > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; color: #edf2ff; font-size: 12px; font-weight: 700; }
#bot-commands .commands-about > summary svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .18s; }
#bot-commands .commands-about[open] > summary svg { transform: rotate(180deg); }
#bot-commands .group-info { padding: 0 18px 16px; margin: 0; color: #e2e8f0; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
#bot-commands .group-info p { color: inherit; font-size: inherit; line-height: inherit; margin: 0 0 9px; }
#bot-commands .group-info strong { color: #e8eefb; }
#bot-commands .group-info :is(ul,ol) { padding-left: 20px; margin: 8px 0; }
#bot-commands .commands-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
#bot-commands .command { margin: 0; min-width: 0; border: 1px solid var(--guide-border); border-radius: 11px; background: var(--guide-surface); overflow: hidden; scroll-margin-top: 120px; transition: border-color .18s, background .18s; }
#bot-commands .command:hover { border-color: #4a5872; background: #19202b; }
#bot-commands .command[open] { border-color: #526991; background: #171f2c; }
#bot-commands .command-summary { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 18px; }
#bot-commands .command-terminal { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 36px; border: 1px solid #36415a; border-radius: 9px; background: #202a3c; color: #bacbff; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 20px; font-weight: 500; }
#bot-commands .command-summary__text { flex: 1; min-width: 0; }
#bot-commands .command h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #eef3fe; font-size: 15px; font-weight: 750; line-height: 1.5; margin: 0; letter-spacing: -.01em; overflow-wrap: anywhere; }
#bot-commands .command h3 .command-icon { display: none; }
#bot-commands .new-label { color: #a5e7c8; background: #1b3a30; border: 1px solid #315f4f; border-radius: 4px; font-size: 9px; line-height: 1.6; padding: 1px 6px; font-weight: 700; }
#bot-commands .command-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; font-size: 12px; line-height: 1.65; color: #d4deec; margin-top: 4px; }
#bot-commands .command-chevron { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; color: #b5c3df; border-radius: 6px; }
#bot-commands .command-chevron svg { width: 18px; height: 18px; transition: transform .18s; }
#bot-commands .command[open] .command-chevron svg { transform: rotate(180deg); }
#bot-commands .command[open] .command-preview { display: none; }
#bot-commands .command-body { padding: 18px 22px 20px; border-top: 1px solid #303c51; font-size: 13px; line-height: 1.9; color: #e2e8f0; overflow-wrap: anywhere; }
#bot-commands .command-body p { font-size: inherit; line-height: inherit; color: inherit; margin: 0 0 14px; }
#bot-commands .command-body :is(strong,b) { color: #eef3fc; font-weight: 750; }
#bot-commands .command-body :is(ul,ol) { margin: 10px 0 18px; padding-left: 22px; }
#bot-commands .command-body li { margin-bottom: 5px; color: inherit; }
#bot-commands .command-body a, #bot-commands .group-info a { color: #b0c4ff; text-decoration: underline; text-underline-offset: 3px; }
#bot-commands code { color: #e4ecff; background: #101722; border: 1px solid #303d56; border-radius: 5px; padding: 3px 7px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; line-height: 1.8; }
#bot-commands .command-example { display: inline-flex; align-items: stretch; vertical-align: middle; max-width: 100%; gap: 0; margin: 5px 0; border: 1px solid #364760; background: #101722; border-radius: 7px; overflow: hidden; }
#bot-commands .command-example code { display: block; min-width: 0; border: 0; padding: 8px 12px; border-radius: 0; background: transparent; }
#bot-commands .command-copy { display: grid; place-items: center; flex-shrink: 0; width: 40px; min-height: 40px; padding: 8px; border: 0; border-left: 1px solid #364760; background: #202e44; color: #c4d5ff; }
#bot-commands .command-copy svg { width: 17px; height: 17px; }
#bot-commands .command-copy:hover { background: #31476a; }
#bot-commands .is-copied { color: #b2f0d3 !important; background: #1c4034 !important; }
#bot-commands .command-share { display: block; padding: 0; margin-top: 18px; border: 0; border-bottom: 1px dashed #62769e; border-radius: 0; background: transparent; color: #cfddfa; font-size: 11px; line-height: 1.9; }
#bot-commands .command-share:hover { color: #e3ebff; }
#bot-commands .command-note { padding: 16px 18px; border: 1px solid #3d4b63; background: #1a2434; border-radius: 10px; color: #e1e8f3; font-size: 13px; line-height: 1.8; }
#bot-commands .command-note p { color: inherit; font-size: inherit; line-height: inherit; margin: 0; }
#bot-commands .commands-empty { border: 1px dashed #42516c; background: #161e2b; border-radius: 13px; padding: 46px 24px; text-align: center; }
#bot-commands .commands-empty > i { display: block; font-size: 26px; color: #9fb4e3; margin-bottom: 20px; }
#bot-commands .commands-empty h3 { font-size: 20px; color: #edf3ff; margin: 0 0 12px; }
#bot-commands .commands-empty p { color: #d4deed; font-size: 13px; line-height: 1.7; }
#bot-commands #commandsReset { padding: 11px 16px; border: 1px solid #6579b1; border-radius: 8px; background: #2c416d; color: #eef3ff; font-size: 12px; font-weight: 700; }
/* Readable documentation remains available when JavaScript is disabled. */
#bot-commands:not(.commands-ready) .command { padding: 20px; }
#bot-commands:not(.commands-ready) .command p { font-size: 13px; color: #e2e8f0; line-height: 1.9; }
#bot-commands:not(.commands-ready) .group-info { padding: 0 0 20px; }
@media (max-width: 1050px) {
  #bot-commands .commands-workspace { gap: 22px; grid-template-columns: 224px minmax(0,1fr); }
  #bot-commands .commands-total { padding-right: 0; }
  #bot-commands .commands-view-head { align-items: flex-start; }
}
@media (max-width: 800px) {
  #bot-commands { padding-top: 18px; }
  #bot-commands .commands-hero { gap: 20px; }
  #bot-commands .commands-total { padding: 12px 0 12px 16px; }
  #bot-commands .commands-total__icon { display: none; }
  #bot-commands .commands-total strong { font-size: 18px; }
  #bot-commands .commands-workspace { display: block; }
  #bot-commands .commands-sidebar { position: static; max-height: none; min-height: 0; padding: 0; margin-bottom: 26px; overflow: hidden; }
  #bot-commands .commands-category-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 15px 18px; color: #e0e9fb; background: #1c2535; border: 0; border-radius: 0; font-size: 13px; font-weight: 700; text-align: left; }
  #bot-commands .commands-category-toggle i { transition: transform .18s; }
  #bot-commands .commands-sidebar.is-open .commands-category-toggle i { transform: rotate(180deg); }
  #bot-commands .commands-sidebar-head, #bot-commands .commands-sidebar-hint { display: none; }
  #bot-commands #commandsCategoryNav { display: none; max-height: 320px; padding: 10px; border-top: 1px solid var(--guide-border); }
  #bot-commands .commands-sidebar.is-open #commandsCategoryNav { display: flex; }
  #bot-commands .commands-category { min-height: 44px; font-size: 13px; }
}
@media (max-width: 560px) {
  #bot-commands .container { width: calc(100% - 32px); }
  #bot-commands .commands-hero { display: block; margin-bottom: 22px; }
  #bot-commands h1 { font-size: 30px; }
  #bot-commands .commands-intro { font-size: 13px; }
  #bot-commands .commands-total { margin-top: 19px; padding: 0; border: 0; }
  #bot-commands .commands-total div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
  #bot-commands .commands-total strong { font-size: 13px; }
  #bot-commands .commands-total div > span { font-size: 11px; margin: 0; }
  #bot-commands .search-container { padding: 0 13px; gap: 10px; }
  #bot-commands #commandSearch { height: 54px; font-size: 14px; }
  #bot-commands .commands-search-shortcut { display: none; }
  #bot-commands .commands-search-help { font-size: 11px; }
  #bot-commands .commands-search-area { margin-bottom: 22px; }
  #bot-commands .commands-view-head { flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
  #bot-commands #commandsViewTitle { font-size: 24px; }
  #bot-commands .commands-expand { padding: 8px 10px; }
  #bot-commands .command-summary { padding: 16px 13px; gap: 11px; }
  #bot-commands .command-terminal { width: 28px; height: 32px; font-size: 18px; }
  #bot-commands .command h3 { font-size: 14px; }
  #bot-commands .command-preview { -webkit-line-clamp: 2; font-size: 12px; }
  #bot-commands .command-chevron { width: 20px; }
  #bot-commands .command-body { padding: 17px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #bot-commands *, #bot-commands *::before, #bot-commands *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
