/* One fixed navigation slot; hover changes the glyph, never the sidebar state. */
.shell .sidebar .sidebar-header {
  flex-direction:row;align-items:center;min-height:51px;gap:4px;
}
.shell .sidebar .sidebar-header>.b5-sidebar-toggle {
  position:relative;order:initial;flex:none;display:inline-grid;place-items:center;
  width:40px;min-width:40px;height:40px;min-height:40px;padding:0;
}
.shell .sidebar .sidebar-header .sidebar-product-name {
  font-size:clamp(min(10px,var(--sidebar-name-size,19px)),calc((100cqi - var(--sidebar-mark-size,32px) - 54px) / 5.6),var(--sidebar-name-size,19px));
}
.b5-sidebar-toggle-logo {
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;
  width:var(--b5-sidebar-mark-size,32px);height:var(--b5-sidebar-mark-size,32px);
  opacity:0;pointer-events:none;transition:opacity .16s ease;
}
.b5-sidebar-toggle-logo .brand-themed-pair,.b5-sidebar-toggle-logo .brand-image {
  width:100%;height:100%;object-fit:contain;
}
.b5-sidebar-toggle-logo .brand-mark {width:100%;height:100%;border-radius:0;}
.b5-sidebar-toggle-symbol {
  display:grid;place-items:center;width:20px;height:20px;
  opacity:1;pointer-events:none;transition:opacity .16s ease;
}
.shell .b5-sidebar-toggle-symbol>.nav-icon {width:20px;height:20px;}
@media(min-width:761px) {
  .shell[data-sidebar=collapsed] .sidebar .sidebar-header {justify-content:center;gap:0;}
  .shell[data-sidebar=collapsed] .sidebar-header>.brand.sidebar-product-brand {display:none!important;}
  .shell[data-sidebar=collapsed] .sidebar>.sidebar-scroll {padding-inline-end:var(--sidebar-edge-inset,8px);}
  .shell[data-sidebar=collapsed] .b5-sidebar-toggle-logo {opacity:1;}
  .shell[data-sidebar=collapsed] .b5-sidebar-toggle-symbol {opacity:0;}
  .shell[data-sidebar=collapsed] .b5-sidebar-toggle:is(:hover,:focus-visible) .b5-sidebar-toggle-logo {opacity:0;}
  .shell[data-sidebar=collapsed] .b5-sidebar-toggle:is(:hover,:focus-visible) .b5-sidebar-toggle-symbol {opacity:1;}
}
@media(min-width:761px) and (hover:none) {
  .shell[data-sidebar=collapsed] .b5-sidebar-toggle-logo {opacity:0;}
  .shell[data-sidebar=collapsed] .b5-sidebar-toggle-symbol {opacity:1;}
}
@media(max-width:760px) {
  .shell .sidebar .sidebar-header>.b5-sidebar-toggle {width:44px;min-width:44px;height:44px;min-height:44px;}
}
@media(prefers-reduced-motion:reduce) {
  .b5-sidebar-toggle-logo,.b5-sidebar-toggle-symbol {transition:none;}
}
