/**
 * Stage 14: shared shell integration for Profile and Administration.
 *
 * These legacy surfaces retain their existing forms, endpoints and security
 * checks. The shared sidebar/header remain the only navigation components.
 * Do not style or alter the theme engine or theme preferences here.
 */
/* The account and administration overlays use the same viewport coordinate
   system as Home. The final layout lives in page-spacing-polish.css.
   Do not add sidebar padding here: the rail is mounted on document.body. */
@media (min-width:951px) {
  body:has(#account-panel:not([hidden])) #v6Rail.fn-mounted-rail,
  body:has(#fn-admin-pages:not([hidden])) #v6Rail.fn-mounted-rail {
    position:fixed!important;
    z-index:22010!important;
  }
}
@media (max-width:950px) {
  /* Mobile keeps its dedicated compact navigation instead of the desktop rail. */
  #account-panel:not([hidden]), #fn-admin-pages:not([hidden]) {padding-inline:max(12px,env(safe-area-inset-left))!important;}
}

/* Sidebar permissions: hidden admin destinations stay hidden despite legacy button display overrides. */
#v6Rail #fn-sidebar-users[hidden],
#v6Rail #fn-sidebar-audit[hidden],
#v6Rail #fn-sidebar-security[hidden] { display: none !important; }

