/* Focus must never add a rectangular ring to this preview. Existing control
   borders, selected-tab indicators, and hover contrast remain unchanged. */
html[data-overview-focus] body :is(:focus, :focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}
/* Keyboard users retain a visible cue without introducing another border. */
html[data-overview-focus] body :is(button, a, summary, [role="button"], [role="menuitemradio"]):focus-visible {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
html[data-overview-focus] input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: none !important;
  filter: brightness(1.3);
}

/* Match the financial cards' circular open control in the price embed. */
html[data-overview-focus] #stb-workspace-link.focus-open {
  width:24px !important;
  height:24px;
  right:-76px !important;
  padding:0 !important;
  border:0;
  border-radius:50%;
  background:#353535e6;
  color:#d9d9d9;
  cursor:default;
  font-size:15px;
  line-height:24px;
  transition:opacity .12s;
}
html[data-overview-focus] #stb-workspace-link.focus-open > span { display:none; }
html[data-overview-focus] #stb-workspace-link.focus-open::after { content:"↗"; }
html[data-overview-focus] #stb-workspace-link.focus-open:hover {
  background:#454545;
  color:#f5f5f5;
}
@media (hover:none), (pointer:coarse) {
  html[data-overview-focus] #stb-workspace-link.focus-open { width:36px !important; height:36px; }
}

/* Overview controls use the normal arrow, including their icons and labels.
   Leave text inputs and chart/slider resize or crosshair cursors intact. */
html[data-overview-focus] body :is(a, button, select, summary,
  [role="button"], [role="link"], [role="tab"], [role="menuitem"],
  [role="menuitemradio"], [role="menuitemcheckbox"], [role="option"],
  input[type="button"], input[type="submit"], input[type="reset"],
  input[type="checkbox"], input[type="radio"], label[for],
  [style*="cursor: pointer"], [style*="cursor:pointer"]),
html[data-overview-focus] body :is(a, button, select, summary,
  [role="button"], [role="link"], [role="tab"], [role="menuitem"],
  [role="menuitemradio"], [role="menuitemcheckbox"], [role="option"]) *,
html[data-overview-focus] body :is(a, button, select, summary)::before,
html[data-overview-focus] body :is(a, button, select, summary)::after {
  cursor:default !important;
}

/* SVG-only controls need a keyboard cue that does not rely on underlining text. */
html[data-overview-focus] body :is(button,a):has(svg):focus-visible {
  background-color:#ffffff29 !important;
}
html[data-theme=light][data-overview-focus] body :is(button,a):has(svg):focus-visible {
  background-color:#0000001f !important;
}

/* Use the financial cards' light palette for the Price open button too. */
html[data-theme=light][data-overview-focus] #stb-workspace-link.focus-open {
  background:#dce2e9;
  color:#26384d;
}
html[data-theme=light][data-overview-focus] #stb-workspace-link.focus-open:hover {
  background:#cbd3dd;
  color:#182637;
}
