/* Stage 55E: FOL-007 and FOL-010. Chrome-only; no document or editor state writes. */
/* Keep the panel toggle above sticky inspector content at every scroll position. */
@media (min-width:901px) {
  .ui-right { isolation:isolate; }
  .ui-right > #insp { position:relative;z-index:1; }
  .ui-right > #btnRightToggle {position:absolute;top:10px;right:10px;z-index:80;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;pointer-events:auto;}
  .ui-right > #btnRightToggle:focus-visible {outline:3px solid var(--ui-accent);outline-offset:2px;}
  /* Leave space for the always-available collapse button when task navigation is sticky. */
  #insp[data-fi-mode] .fi-homes { padding-right:52px;z-index:2; }
}
/* The toolbar wraps at any desktop width when its actual contents need room.
   A fixed upper breakpoint left wider viewports horizontally scrollable on focus. */
@media (min-width:901px) {
  body:not(.phone-layout):not(.mini-landscape) .ui-top {width:100%;min-width:0;max-width:100vw;box-sizing:border-box;display:flex;flex-wrap:wrap;align-content:center;align-items:center;gap:4px 6px;height:auto;min-height:var(--top-h);padding:5px 10px;overflow:visible;}
  body:not(.phone-layout):not(.mini-landscape) .ui-top > * {flex-shrink:0;}
  body:not(.phone-layout):not(.mini-landscape) .ui-top > .ui-sp {flex:1 1 6px;min-width:0;}
  body:not(.phone-layout):not(.mini-landscape) .ui-top .ui-sitename {flex:0 1 124px;max-width:124px;min-width:72px;}
  body:not(.phone-layout):not(.mini-landscape) .ui-top #sitePageSwitcher {flex:0 1 150px;max-width:150px;min-width:110px;margin-left:auto;}
  body:not(.phone-layout):not(.mini-landscape) .ui-top .ui-btn {padding-left:7px;padding-right:7px;}
  body:not(.phone-layout):not(.mini-landscape) .ui-top .ui-btn.icon {width:32px;min-width:32px;padding:0;}
  body:not(.phone-layout):not(.mini-landscape) .ui-top .ui-status {min-width:0;max-width:170px;}
  body:not(.phone-layout):not(.mini-landscape) .ui-top .ui-status span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}
/* At extremely narrow desktop widths, keep the toolbar horizontally accessible without page overflow. */
@media (min-width:901px) and (max-width:1023px) {
  body:not(.phone-layout):not(.mini-landscape) .ui-top {row-gap:5px;}
}
