/* Web only: the Desktop preload retains ownership of its own sidebar geometry. */
#vf-web-sidebar-toggle { display: none; }

@media (min-width: 721px) {
  body.vf-web-sidebar-enabled #app-shell > .sidebar {
    overflow: hidden;
  }
  body.vf-web-sidebar-enabled #app-shell > .sidebar nav {
    flex: 1 1 auto;
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body.vf-web-sidebar-enabled #app-shell > .sidebar .brand,
  body.vf-web-sidebar-enabled #app-shell > .sidebar .sidebar-bottom,
  body.vf-web-sidebar-enabled #app-shell > .sidebar .sidebar-account-actions {
    flex-shrink: 0;
  }
  body.vf-web-sidebar-enabled #app-shell > main > header {
    gap: 14px;
  }
  body.vf-web-sidebar-enabled #app-shell > main > header > span {
    margin-right: auto;
  }
  body.vf-web-sidebar-enabled #vf-web-sidebar-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #c9d9f5;
    border-radius: 8px;
    background: #f5f8ff;
    color: #1464f4;
    font: 700 25px Arial, sans-serif;
    line-height: 1;
  }
  body.vf-web-sidebar-enabled #vf-web-sidebar-toggle:hover {
    background: #eaf2ff;
  }
  body.vf-web-sidebar-enabled #vf-web-sidebar-toggle:focus-visible {
    outline: 2px solid #1464f4;
    outline-offset: 3px;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar {
    width: 76px;
    padding-left: 12px;
    padding-right: 12px;
  }
  body.vf-web-sidebar-compact #app-shell > main {
    margin-left: 76px;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar .brand {
    justify-content: center;
    gap: 0;
    padding: 0 0 24px;
    font-size: 0;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar .brand > span {
    flex-shrink: 0;
    font-size: 19px;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar nav a {
    position: relative;
    justify-content: center;
    gap: 0;
    padding: 0;
    min-height: 44px;
    height: 44px;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar nav a > span:not(.nav-icon) {
    display: none;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar nav a > b {
    position: absolute;
    top: 2px;
    right: 0;
    margin: 0;
    padding: 1px 4px;
    min-width: 15px;
    font-size: 9px;
    line-height: 13px;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar .sidebar-bottom {
    justify-content: center;
    padding: 16px 0 0;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar .sidebar-bottom > div {
    display: none;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar .sidebar-account-actions {
    padding: 9px 0 0;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar .sidebar-account-actions .account-action {
    display: grid;
    place-items: center;
    min-height: 40px;
    width: 100%;
    padding: 0;
    font-size: 0 !important;
    text-align: center;
    border-radius: 8px;
  }
  body.vf-web-sidebar-compact #app-shell > .sidebar .sidebar-account-actions .account-action:hover {
    background: #eaf2ff;
  }
  body.vf-web-sidebar-compact #open-account-settings::before {
    content: '⚙';
    font: 20px Arial, sans-serif;
  }
  body.vf-web-sidebar-compact #logout::before {
    content: '↪';
    font: 22px Arial, sans-serif;
  }
}
