/* Home122 native panel appearance. Labels + comfortable intentionally add no overrides. */
/* Native links, routes, live badges, visibility classes and menu handlers remain in place. */

@media(min-width:901px){
 /* 88px remains above svDesktopShell's native measurement threshold. */
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]{--svd-menu-width:88px}
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]>#r44Sidebar{
  width:88px!important;min-width:88px;max-width:88px;padding-left:10px!important;padding-right:10px!important;
 }
 html:not(.svd-collapsed) body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]>:is(main.wrap,footer){margin-left:88px!important}
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]>#r44Sidebar nav>a{
  position:relative;justify-content:center!important;gap:0!important;min-height:48px;padding:11px 8px!important;
 }
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]>#r44Sidebar nav>a>svg{width:22px;height:22px;flex:0 0 22px}
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]>#r44Sidebar nav>a>[data-nav-icon]{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;font-size:21px;line-height:1;
 }
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]>#r44Sidebar nav>a>[data-nav-label],
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-labels="icons"] .desktop-section-link>:is([data-nav-label],.nav-label),
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-labels="icons"] .app-shell-list>a>:is([data-nav-label],b){
  position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;max-width:1px!important;
  margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
  white-space:nowrap!important;border:0!important;
 }
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]>#r44Sidebar nav>a>i{
  position:absolute!important;left:auto!important;right:1px!important;top:3px!important;max-width:36px;min-width:16px;
  margin:0!important;padding:1px 4px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;
 }
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]>#r44Sidebar .r44-langs{
  flex-direction:column;align-items:center;gap:3px;margin-top:10px;padding-top:10px;
 }
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"]>#r44Sidebar .r44-langs>a{
  justify-content:center;min-height:36px;width:44px!important;padding:8px 4px!important;font-size:12px;
 }
 /* Compact is a separate spacing choice; it never removes a menu entry. */
 html body[data-panels122].ref44-nav[data-panel-pc-density="compact"]>#r44Sidebar{padding-top:14px!important;padding-bottom:14px!important}
 html body[data-panels122].ref44-nav[data-panel-pc-density="compact"]>#r44Sidebar nav{gap:1px}
 html body[data-panels122].ref44-nav[data-panel-pc-density="compact"]>#r44Sidebar nav>a{
  min-height:36px;padding:7px 10px!important;gap:9px;font-size:12px;line-height:1.45;
 }
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"][data-panel-pc-density="compact"]>#r44Sidebar nav>a{
  min-height:40px;padding:8px!important;gap:0;
 }
 html body[data-panels122].ref44-nav[data-panel-pc-labels="icons"][data-panel-pc-density="compact"]>#r44Sidebar nav>a>svg{width:20px;height:20px;flex-basis:20px}
 /* The older shell remains usable in themes that still render its native menu. */
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-labels="icons"] .desktop-section-link{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:0;width:48px;min-width:48px;min-height:48px;padding:10px!important;
 }
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-labels="icons"] .app-shell-list{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:8px!important;padding:12px;
 }
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-labels="icons"] .app-shell-list>a{
  position:relative;justify-content:center!important;gap:0!important;min-height:48px;padding:10px 5px!important;margin:0!important;
 }
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-labels="icons"] .app-shell-list>a>strong{display:none!important}
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-labels="icons"] .app-shell-list>a>:is(.nav-badge,.app-menu-count){
  position:absolute!important;top:1px;right:1px;left:auto;margin:0!important;
 }
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-density="compact"] .desktop-section-nav{gap:5px;padding-top:5px;padding-bottom:5px}
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-density="compact"] .desktop-section-link{min-height:36px;padding:7px 9px!important;font-size:12px}
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-density="compact"] .app-shell-list{gap:4px!important}
 html body[data-panels122]:not(.ref44-nav)[data-panel-pc-density="compact"] .app-shell-list>a{min-height:40px;padding:7px 9px!important;margin-block:3px}
}

@media(max-width:900px){
 /* The drawer always keeps its labels. Only the mobile bottom shortcuts lose text. */
 html body[data-panels122][data-panel-mobile-labels="icons"]>.r44-bottom>a>[data-nav-label],
 html body[data-panels122]:not(.ref44-nav)[data-panel-mobile-labels="icons"] .app-shell-bottom>a>:is([data-nav-label],.nav-label){
  position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;max-width:1px!important;
  margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
  white-space:nowrap!important;border:0!important;
 }
 html body[data-panels122][data-panel-mobile-labels="icons"]>.r44-bottom>a{
  justify-content:center;gap:0;flex-basis:60px;min-height:44px;min-width:44px;
 }
 html body[data-panels122][data-panel-mobile-labels="icons"]>.r44-bottom>a>svg{width:25px!important;height:25px!important}
 html body[data-panels122][data-panel-mobile-labels="icons"]>.r44-bottom>a>[data-nav-icon]{font-size:24px;line-height:1}
 html body[data-panels122][data-panel-mobile-labels="icons"]>.r44-bottom>a>i{top:2px}
 html body[data-panels122][data-panel-mobile-density="compact"]>#r44Sidebar nav{gap:1px}
 html body[data-panels122][data-panel-mobile-density="compact"]>#r44Sidebar nav>a{
  min-height:44px;padding:9px 10px!important;gap:9px;font-size:13px;line-height:1.45;
 }
 html body[data-panels122][data-panel-mobile-density="compact"]>.r44-bottom{column-gap:2px;padding-left:5px;padding-right:5px}
 html body[data-panels122][data-panel-mobile-density="compact"]>.r44-bottom>a{
  flex-basis:56px;min-width:44px;min-height:44px;gap:2px;padding-left:3px;padding-right:3px;
 }
 html body[data-panels122][data-panel-mobile-density="compact"]>.r44-bottom>a>[data-nav-label]{font-size:10px!important;line-height:1.2}
 html body[data-panels122]:not(.ref44-nav)[data-panel-mobile-labels="icons"] .app-shell-bottom>a{
  position:relative;justify-content:center;gap:0;min-width:44px;min-height:44px;
 }
 html body[data-panels122]:not(.ref44-nav)[data-panel-mobile-density="compact"] .app-shell-list{gap:4px!important}
 html body[data-panels122]:not(.ref44-nav)[data-panel-mobile-density="compact"] .app-shell-list>a{min-height:44px;padding:9px 10px!important;gap:9px}
 html body[data-panels122]:not(.ref44-nav)[data-panel-mobile-density="compact"] .app-shell-list>a>b{font-size:13px}
 html body[data-panels122]:not(.ref44-nav)[data-panel-mobile-density="compact"] .app-shell-bottom>a{min-width:44px;min-height:44px;padding:3px!important;gap:2px}
}

/* On the constructor only, the page follows the native shell instead of sliding under it. */
html body[data-panels122].panels122-page>main.wrap{
 box-sizing:border-box!important;min-width:0!important;max-width:none!important;margin-right:0!important;
}
@media(min-width:901px){
 html body[data-panels122].panels122-page.ref44-nav>main.wrap{
  width:auto!important;margin-left:var(--svd-menu-width,210px)!important;padding:24px clamp(16px,2vw,30px) 36px!important;
 }
 html.svd-collapsed body[data-panels122].panels122-page.ref44-nav>main.wrap{margin-left:0!important}
}
@media(max-width:900px){
 html body[data-panels122].panels122-page>main.wrap{width:100%!important;margin-left:0!important;padding:18px 12px 28px!important}
}
/* Names remain in the accessibility tree; focus is visible even without a text label. */
html body[data-panels122] :is(#r44Sidebar nav>a,.r44-bottom>a,.desktop-section-link,.app-shell-list>a,.app-shell-bottom>a):focus-visible{
 outline:2px solid var(--r44-theme-accent,var(--theme-accent,Highlight))!important;outline-offset:2px;
}
