.sidebar { overflow-y: auto; }
.accordion-nav { display: block; margin-top: 20px; }
.nav-group { margin-bottom: 12px; }
.nav-group > summary { display: flex; align-items: center; gap: 10px; padding: 12px 5px; cursor: pointer; list-style: none; color: var(--muted); font-size: 13px; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-symbol { width: 20px; text-align: center; opacity: .65; }
.nav-chevron { margin-left: auto; }
.nav-group[open] > summary .nav-chevron { transform: rotate(180deg); }
.nav-children { margin: 4px 0 10px 15px; padding-left: 8px; border-left: 1px solid var(--border); }
.nav-children .nav-item { padding: 9px 10px; min-height: 34px; margin-bottom: 3px; font-size: 12px; border-radius: 8px; }
.nav-children .nav-item > span:first-child, .nav-children .nav-item > i, .nav-children .tiny-dot { display: none; }
.nav-children .nav-item.active { background: #ffffff0b; color: var(--text); }
.nav-group summary:focus-visible, .command-expand:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
#page-bot .bot-layout { display: block; }
#page-bot .bot-playground { margin-top: 24px; }
.commands-panel { background: transparent; border: 0; overflow: visible; }
.command-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--border); margin: 28px 0 18px; }
.command-tabs button { background: none; color: var(--muted); border: 0; padding: 18px 16px; cursor: pointer; border-bottom: 3px solid transparent; }
.command-tabs button[aria-selected=true] { color: var(--text); border-color: var(--green); }
.command-add { margin: 0 0 18px; }
#command-list { padding: 0; }
.commands-empty { text-align: center; padding: 55px 15px 95px; }
.commands-empty p { color: var(--muted); margin: 18px 0; }
.commands-empty-icon { display: grid; place-items: center; background: #ffffff09; width: 64px; height: 64px; font-size: 30px; border-radius: 50%; margin: 0 auto 20px; }
.command-columns { display: grid; grid-template-columns: 46px minmax(120px, 1fr) minmax(160px, 2fr) 100px 65px 40px; align-items: center; gap: 14px; padding: 15px 10px; font-size: 12px; }
.command-group-title { padding: 16px 10px; font-size: 12px; border-block: 1px solid var(--border); margin: 0; }
.command-entry.command-row { display: block; padding: 0; border-bottom: 1px solid var(--border); }
.command-entry:nth-of-type(even) > .command-columns { background: #ffffff05; }
.command-description { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.command-module { color: var(--muted); font-size: 10px; }
.command-switch { width: 36px; height: 20px; padding: 2px; border: 0; border-radius: 20px; background: #535758; cursor: pointer; }
.command-switch::after { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; }
.command-switch[aria-checked=true] { background: var(--green); }
.command-switch[aria-checked=true]::after { transform: translateX(16px); background: #172010; }
.command-details { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; padding: 28px 24px; }
.command-details label { display: flex; flex-direction: column; gap: 10px; font-size: 12px; min-width: 0; color: var(--text); }
.command-details input, .command-details select, .command-details textarea { width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface, #131718); color: var(--text); font: inherit; }
.command-cooldowns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.command-detail-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; gap: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.command-details[hidden], #command-form[hidden] { display: none; }
@media (max-width: 1100px) { .command-columns { grid-template-columns: 38px minmax(90px, 1fr) minmax(100px, 2fr) 65px 45px 32px; gap: 8px; } }
@media (max-width: 700px) {
  .sidebar .accordion-nav { display: block; margin-top: 14px; }
  .nav-group { margin: 0; }
  .nav-group > summary { padding: 10px; }
  .nav-children { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-children .nav-item { flex: 0 1 auto; justify-content: flex-start; font-size: 12px; }
  .command-columns { grid-template-columns: 36px minmax(0, 1fr) 34px; gap: 8px; }
  .command-columns > :nth-child(3), .command-columns > :nth-child(4), .command-columns > :nth-child(5) { display: none; }
  .command-details { grid-template-columns: minmax(0, 1fr); padding: 18px 8px; gap: 22px; }
  .command-tabs { gap: 0; }
  .command-tabs button { font-size: 12px; padding: 15px 10px; }
}