/* 2026-10-26: one tablet/desktop chrome, home is the sizing baseline. */
@media (min-width:768px) {
  #v6Settings {display:none!important}
  .fn-shell-close-action {display:none!important}
  /* Do not replace the full-page sidebar buttons with bordered tiles. */
  #v6Rail.fn-mounted-rail button {border:1px solid transparent!important;background:transparent!important;box-shadow:none!important;outline:none!important;border-radius:10px!important;margin:1px 5px!important;padding:7px 12px!important;min-height:39px!important;width:calc(100% - 10px)!important;text-align:left!important;font-size:13px!important;}
  #v6Rail.fn-mounted-rail button:is(.v6-current,[aria-current="page"],.active,.selected) {background:var(--accent-soft,var(--fb-raised))!important;color:var(--fb-ink)!important;}
  #v6Rail.fn-mounted-rail button:focus-visible {outline:2px solid var(--fb-accent)!important;outline-offset:2px!important}
  #swOverlay > .sw-workspace {min-width:0!important;max-width:none!important}
  #swOverlay .sw-body {max-width:1400px!important;width:100%!important;padding-inline:clamp(20px,3vw,48px)!important}
  #fmOverlay .fm-content {max-width:none!important}
  #fmOverlay .fm-tabs button {min-width:0!important;padding:9px 15px!important;font-size:13px!important;min-height:39px!important}
  #fmOverlay .fm-card {border-radius:11px!important;box-shadow:none!important}
}
/* The Site Walk's header is a section-level toolbar, never a second app bar. */
#swOverlay .sw-header {position:relative!important;flex:0 0 auto!important;min-height:48px!important}
#swOverlay .sw-workspace {display:flex!important;flex-direction:column!important;overflow:hidden!important}
#swOverlay .sw-tabs {flex:0 0 auto!important}
#swOverlay .sw-body {flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
/* Fixed overlays must not inherit the legacy v6 header visibility rule. */
body:has(#swOverlay) #swOverlay > .v6-head.fn-shared-workspace-head {visibility:visible!important}
/* Consistent action toolbar spacing and natural text sizing. */
:is(#fmOverlay,#swOverlay,#account-panel,#fn-admin-pages) > .fn-shared-workspace-head .v6-headtools {display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important}
:is(#fmOverlay,#swOverlay,#account-panel,#fn-admin-pages) > .fn-shared-workspace-head .v6-headtools button {flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;padding:0!important}
@media (max-width:950px) and (min-width:768px) {
  /* Match home tablet mode instead of forcing desktop left insets. */
  #swOverlay > .sw-workspace {margin-left:0!important;width:100%!important}
  #fmOverlay .fm-content {margin-left:0!important;width:100%!important}
}

/* 2026-10-26: shared sidebar for the Site Walk picker, which used to have no ID. */
@media(min-width:951px){
  #swOverlay.sw-overlay > #v6Rail.fn-mounted-rail {display:flex!important;}
  #swOverlay.sw-overlay > .sw-workspace {width:calc(100% - 205px)!important;margin-left:205px!important;}
}
/* Sections retain their own titles, not a second application toolbar. */
#account-panel:has(> .fn-shared-workspace-head) .account-dialog > header {max-width:960px;margin:0 auto;position:relative;}
#account-panel:has(> .fn-shared-workspace-head) .account-dialog > header button[data-close="1"] {display:none!important;}
#account-panel:has(> .fn-shared-workspace-head) .account-body {padding-top:14px;}
/* A single active item, including legacy Home's default selected class. */
#v6Rail button.v6-current {background:var(--accent-soft,var(--fb-raised))!important;color:var(--fb-ink)!important;}
#v6Rail button:not(.v6-current)[data-fb-main] {background:transparent;}
/* Keep the Matrix scene as an ambient background, not a foreground layer. */
#fb64-atmosphere {pointer-events:none!important;}
