/* A square tab above the existing caption frame; no layout participation. */
body button.npce-caption-toggle {
  position: fixed !important;
  z-index: 501 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--npce-caption-toggle-size,32px) !important;
  height: var(--npce-caption-toggle-size,32px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--npce-caption-toggle-bg,#78BFEA) !important;
  color: var(--npce-caption-toggle-fg,#193B64) !important;
  transform: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  transition: none !important;
  -webkit-appearance: none;
  appearance: none;
}
body button.npce-caption-toggle[hidden] { display: none !important; }
/* Keep the visible square at the configured size; extend the touch area inward/upward. */
body button.npce-caption-toggle.npce-caption-toggle-touch::before {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: max(44px, 100%) !important;
  height: max(44px, 100%) !important;
  background: transparent !important;
  pointer-events: auto !important;
}
body button.npce-caption-toggle svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; pointer-events: none; }
body button.npce-caption-toggle-collapsed svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  body button.npce-caption-toggle:hover { filter: brightness(1.10); }
}
body button.npce-caption-toggle:focus-visible { outline: 2px solid currentColor !important; outline-offset: -3px !important; }
