/* R14b — unclip the Build-test duration menu.
   Root cause: js/85-tests.js mounts span.t85-build (and span.t85-durs) inside
   .i84-ring, and css/84-insights.css sets `.i84-ring span{overflow:hidden}` plus
   `.i84-rings{overflow-x:auto}`, which also forms a clip box.
   The menu is portaled to document.body (see js/97-build-menu.js). This file
   styles the portal and hides the in-place copy so 85-tests can keep its state. */

.t97-portal{
  position:fixed;
  z-index:2147482500;
  margin:0;
  width:auto;
  display:block;
  overflow:visible;
  pointer-events:none;
}
.t97-portal .t85-durs{
  pointer-events:auto;
  position:static !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  display:flex;
  gap:4px;
  padding:6px;
  background:var(--bg-2,#080806);
  border:1px solid var(--border);
  border-radius:8px;
  white-space:nowrap;
  overflow:visible;
  box-shadow:0 16px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.t97-portal .t85-durs[hidden]{display:none !important}
.t97-portal .t85-durs .btn{min-width:2.4em}

/* Keep 85's in-place menu in the DOM (hidden attr is the source of truth)
   but take it out of the clipped ring so a fallback flash cannot show cropped. */
.t85-build:not(.t97-portal) .t85-durs.t97-sourced{
  position:fixed !important;
  left:-9999px !important;
  top:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  display:flex !important;
  transform:none !important;
}

@media (prefers-reduced-motion:reduce){
  .t97-portal .t85-durs{box-shadow:0 8px 20px rgba(0,0,0,.4)}
}
