/* Step 603 — clipboard image paste and canonical interactive-edge states.

   Clipboard support uses a real editable browser target layered over image
   file-picker shells, so right-click -> Paste comes from the browser itself.
   This file owns only interaction paint. It does not alter table positioning,
   backdrop blur ownership, scrolling or column-bar anchoring. */

html[data-visionx-theme] body.visionx-shell {
  --visionx-small-heading-ink: #969696;
}

html[data-visionx-theme="glass"] body.visionx-shell {
  --visionx-step603-fixed-glass-20:
    linear-gradient(
      155deg,
      rgba(207, 173, 82, .013),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(18, 19, 15, .188),
      rgba(6, 7, 5, .182)
    );
}

html[data-visionx-theme="glass"][data-visionx-custom-tabs="true"][data-visionx-contrast-guard="true"] body.visionx-shell {
  --visionx-small-heading-ink: var(--text-faint);
}

/* Native context-menu paste target. The editable surface covers the existing
   file-picker hit area while remaining visually transparent. Ordinary left
   click still opens the native file chooser through app.js. */
html[data-visionx-theme] body.visionx-shell .file-picker-shell {
  position: relative !important;
}

html[data-visionx-theme] body.visionx-shell .visionx-file-paste-target {
  position: absolute !important;
  z-index: 8 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: inherit !important;
  outline: 0 !important;
  color: transparent !important;
  caret-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

/* One neutral ink for the small uppercase hierarchy. This removes the mixture
   of warm gold, brown-gray and neutral gray previously used for equivalent
   headings, including detached table-column labels. */
html[data-visionx-theme] body.visionx-shell main#main-content :where(
  .micro-label,
  .derived-channel > span,
  label:not(.theme-mode-control) > span:first-child,
  .thread-tags legend,
  .registry-pack-filter-bar > span,
  .theme-gradient-toolbar > span,
  .theme-gradient-colour > span:first-child,
  .theme-range-control > span,
  .renderer-timeframe-manage small
),
html[data-visionx-theme] body.visionx-shell .table-wrap th,
html[data-visionx-theme] body.visionx-shell .visionx-table-header-viewport th {
  color: var(--visionx-small-heading-ink) !important;
}

/* Configure keeps its existing gold text. In every Glass configuration,
   including Glass + custom gradient, hover uses only the underlying plain
   Glass material rather than the active tab gradient. */
html[data-visionx-theme="glass"] body.visionx-shell main#main-content #workspace-configure-downloads:hover:not(:disabled) {
  border-color: var(--visionx-tab-surface-hover-border) !important;
  background: var(--visionx-step603-fixed-glass-20) !important;
  background-clip: padding-box !important;
  box-shadow: var(--visionx-card-surface-shadow) !important;
  text-shadow: none !important;
  transform: none !important;
}

/* Registry's three PNG filters retain their established resting and selected
   states. Only an unselected filter gains the plain Glass material on hover,
   and a custom tab gradient is deliberately not included. */
html[data-visionx-theme="glass"] body.visionx-shell .segmented-filter button[aria-pressed="false"]:hover:not(:disabled) {
  border-color: var(--visionx-tab-surface-hover-border) !important;
  background: var(--visionx-step603-fixed-glass-20) !important;
  background-clip: padding-box !important;
  box-shadow: var(--visionx-card-surface-shadow) !important;
  transform: none !important;
}

/* Let the custom gradient continue beneath the complete rounded border instead
   of ending at the inner padding edge. This removes the clipped side seams on
   Publication Queue Pack selectors without changing their state colours. */
html[data-visionx-theme][data-visionx-custom-tabs="true"] body.visionx-shell .publication-pack-pill {
  background-origin: border-box !important;
  background-clip: border-box !important;
}
