/* Sidebar geometry only: existing colors, visibility, order and handlers remain in charge. */
@media screen {
  html:not([data-workspace="nsk"]) body.ui-spacious #appShell > .sidebar,
  #app .shell > .sidebar {
    --sidebar-item-font:15px; --sidebar-icon-size:14px; --sidebar-item-gap:10px;
    --sidebar-row-gap:8px; --sidebar-section-gap:24px;
    padding-inline:16px!important;
  }
  html body.ui-spacious #appShell .sidebar .brand-block,
  #app .sidebar .brand {margin-inline:0!important;margin-bottom:var(--sidebar-section-gap)!important;gap:10px!important;}
  html body.ui-spacious #appShell .sidebar .nav-list,
  #app .sidebar #workspace-nav {margin-inline:0!important;padding-inline:0!important;gap:var(--sidebar-row-gap)!important;scrollbar-gutter:stable both-edges!important;}
  html body.ui-spacious #appShell .sidebar :is(.nav-link,.nav-group-toggle),
  #app .sidebar #workspace-nav button {
    box-sizing:border-box;width:100%;min-width:0;min-height:48px!important;height:auto!important;
    margin:0!important;padding:12px!important;gap:var(--sidebar-item-gap)!important;
    border-radius:var(--ui-radius,8px)!important;
    font-size:var(--sidebar-item-font)!important;line-height:24px!important;
    align-items:center;justify-content:flex-start;text-align:left;white-space:nowrap;
  }
  html body.ui-spacious #appShell .sidebar .nav-link > span {font-size:inherit!important;line-height:inherit!important;}
  html body.ui-spacious #appShell .sidebar .finance-nav-icon,
  #app .sidebar #workspace-nav button svg {width:var(--sidebar-icon-size)!important;height:var(--sidebar-icon-size)!important;flex:0 0 var(--sidebar-icon-size)!important;margin:0!important;}
  html body.ui-spacious #appShell .sidebar .nav-link:not(:has(svg)) > span:first-child {margin-left:calc(var(--sidebar-icon-size) + var(--sidebar-item-gap));}
  html body.ui-spacious #appShell .sidebar .nav-group-body {margin:0!important;padding-inline:0!important;gap:var(--sidebar-row-gap)!important;}
  html body.ui-spacious #appShell .sidebar .nav-group-caret {margin-left:auto;}
  html body.ui-spacious #appShell .sidebar .nav-section-label,
  #app .sidebar .nav-label {font-size:12px!important;line-height:20px!important;margin:0!important;padding:0 12px 8px!important;}
  html body.ui-spacious #appShell .sidebar-user-card {margin-inline:0!important;margin-top:var(--sidebar-section-gap)!important;padding-inline:12px!important;padding-top:16px!important;}
  #app .sidebar-bottom {margin-inline:0!important;padding:24px 12px 0!important;}
  #app .sidebar #workspace-nav {min-height:0;overflow-y:auto;flex:1 1 auto;}
  html body.ui-spacious #appShell .sidebar-footer {padding:16px 12px 0!important;}
  html body.ui-spacious #appShell .sidebar-footer summary {min-height:44px;box-sizing:border-box;padding-block:12px!important;}
}
