/* Сворачивание главного меню в полосу иконок. Кнопка — в шапке сайдбара. */
.orq-rail-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; width: 28px; flex: 0 0 auto; margin-left: auto;
  border: 0; background: transparent; cursor: pointer; border-radius: 6px;
  color: hsl(var(--muted-foreground)); transition: background-color .12s, color .12s;
}
.orq-rail-btn:hover { background: var(--ds-surface-hover, rgba(255,255,255,.06)); color: hsl(var(--foreground)); }

html.orq-rail .orq-rail-panel { width: 56px !important; min-width: 56px !important; }
/* в полосе остаются только иконки пунктов */
html.orq-rail .orq-rail-panel nav a > :not(:first-child),
html.orq-rail .orq-rail-panel nav button > :not(:first-child) { display: none !important; }
html.orq-rail .orq-rail-panel nav a,
html.orq-rail .orq-rail-panel nav button { justify-content: center !important; gap: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
html.orq-rail .orq-rail-panel .orq-sec,
html.orq-rail .orq-rail-panel .orq-chev,
html.orq-rail .orq-rail-panel .truncate { display: none !important; }
/* шапка сайдбара: остаётся только кнопка разворота */
html.orq-rail .orq-rail-head > *:not(.orq-rail-btn) { display: none !important; }
html.orq-rail .orq-rail-btn { margin-left: 0; }

/* шапка сайдбара: логотип сжимается, кнопка всегда влезает */
.orq-rail-head { overflow: hidden; }
.orq-rail-head > *:first-child { min-width: 0 !important; flex: 1 1 auto !important; overflow: hidden !important; }
.orq-rail-btn { flex: 0 0 auto !important; }
