/* Floating desktop navigation: presentation only, preserving the portal routes and behaviour. */
@media (min-width: 861px) {
  html.az-portal-enhanced .app-shell {
    grid-template-columns: 304px minmax(0, 1fr) !important;
    gap: 0 !important;
    min-height: 100svh !important;
    padding: 0 !important;
  }

  html.az-portal-enhanced .app-shell > .sidebar {
    position: sticky !important;
    top: 14px !important;
    align-self: start !important;
    width: 288px !important;
    height: calc(100svh - 32px) !important;
    max-height: calc(100svh - 32px) !important;
    margin: 16px 0 16px 16px !important;
    border: 1px solid var(--az-stroke, #d7e3f2) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px color-mix(in srgb, #06275a 15%, transparent) !important;
    overflow: hidden auto !important;
  }

  html.az-portal-enhanced .content {
    min-width: 0 !important;
    border-radius: 18px !important;
  }

  html.az-portal-enhanced.az-sidebar-collapsed .app-shell {
    grid-template-columns: 92px minmax(0, 1fr) !important;
  }

  html.az-portal-enhanced.az-sidebar-collapsed .app-shell > .sidebar {
    width: 76px !important;
  }
}

/* Card perimeter animation disabled by product decision. Keep the card surfaces static. */
html.az-portal-enhanced .az-beam-card {
  overflow: visible !important;
}

html.az-portal-enhanced .az-beam-card > .az-card-beam {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  html.az-portal-enhanced .az-beam-card > .az-card-beam rect { animation: none !important; }
}

@media (max-width: 860px) {
  html.az-portal-enhanced .app-shell {
    padding: 0 !important;
  }
}
