/*
 * BayesBoard neon glass (#320, #321): a port of the AgentElastic glass effect (agentelastic-site c5e0e56,
 * glass-fx.css, option D) to BayesBoard's ink-and-paper tokens (app/globals.css). An iridescent sheen that
 * follows the pointer, a neon rim in cyan, blue and violet, frosted ribbed glass, and a soft cursor glow on
 * the bands that hold buttons.
 *
 * Two entry points, one set of rules:
 *   - [data-glass-scope]: the 3D board view (#320), always on; its controls carry data-fx.
 *   - body.glass-fx: the app chrome, only while the server switch GLASS_FX is exactly 'true' (app/layout.tsx).
 *     No markup changes: the selectors match existing classes (lib/ui/glassFx.ts APP_GLASS_SELECTORS, kept
 *     in step by tests/glass-fx.test.ts). Never inside a glass scope or the React Flow canvas.
 * This file is static (served from public/, linked by components/ui/GlassFx.tsx) so with the switch off no
 * page carries any of it. Every rule is scoped to one of the two entry points (tested).
 *
 * Lit: hover (where hover is real), keyboard focus, press and tap ([data-fx-tap], set by lib/ui/glassFx.ts).
 *   The light layers are the control's ::before (glass) and ::after (sheen), under its text, so text colours
 *   and the control's own box-shadow (Tailwind focus rings) are untouched.
 * Filled oxblood controls (white text) and every control in dark mode: the sheen becomes an iridescent ring on
 *   the edge and the glass keeps its gloss to hairlines, clear of the words.
 * Panels and cards: frosted tint, gloss, faint ribs, a soft lift and a neon underglow so glass reads on paper;
 *   an iridescent rim that brightens toward the pointer. No backdrop-filter on cards, side panels, lists or the
 *   canvas: only the sticky marketing header blurs what scrolls under it.
 * Reduced motion: no sweep, no tracking, no lift and no cursor glow; a static light on hover and focus.
 * Touch: no cursor glow; a tap lights a control for a moment.
 * Contrast: lit glass under dark text is lighter, under light text darker, so text contrast only rises; resting
 *   controls are unchanged. Card and panel tints sit within 2% of the surfaces they replace.
 */

@property --fx-glow-core {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent;
}

@property --fx-glow-edge {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent;
}

/* ---------- tokens ---------- */

/* Iridescent and neon colours (AgentElastic tokens.css, --fx-*). Zero specificity, so a scope's own rules win. */
:where(.glass-fx, [data-glass-scope]) {
  --fx-iri-blue: #3d6bff;
  --fx-iri-cyan: #3fe6ff;
  --fx-iri-violet: #8f5bff;
  --fx-iri-magenta: #ff52d9;
  --fx-iri-orange: #ffb25e;
  --fx-iri-pearl: #f3faff;
  --fx-neon-rim: #8be9ff;
  --fx-neon-cyan: rgba(63, 230, 255, 0.85);
  --fx-neon-blue: rgba(61, 107, 255, 0.55);
  --fx-neon-violet: rgba(143, 91, 255, 0.4);
  --fx-spot: rgba(243, 250, 255, 0.6);
  --fx-holo-band: linear-gradient(100deg, transparent 35%, var(--fx-iri-cyan) 40%, var(--fx-iri-blue) 44%, var(--fx-iri-violet) 48%, var(--fx-iri-magenta) 52%, var(--fx-iri-orange) 56%, var(--fx-iri-pearl) 59%, transparent 65%);
  --fx-holo-ring: conic-gradient(from 210deg, var(--fx-iri-cyan), var(--fx-iri-blue), var(--fx-iri-violet), var(--fx-iri-magenta), var(--fx-iri-orange), var(--fx-iri-cyan));
  --fx-sheen-alpha: 0.55;
  --fx-speed: 0.9s;
}

/* App glass on paper (light). The 3D view sets its own --g-* on its root. */
:where(.glass-fx) {
  --g-tint-strong: rgba(255, 255, 255, 0.78);
  --g-gloss: rgba(255, 255, 255, 0.75);
  --g-rib: rgba(23, 21, 15, 0.025);
  --g-rim: rgba(255, 255, 255, 0.95);
  --g-hair: rgba(23, 21, 15, 0.1);
  --g-edge: rgba(63, 230, 255, 0.35);
  --g-band-tint: rgba(255, 255, 255, 0.62);
  --g-band-tint-sticky: rgba(250, 249, 246, 0.8);
  --g-band-shadow: 0 1px 0 rgba(63, 230, 255, 0.18), 0 8px 22px -14px rgba(143, 91, 255, 0.35);
  --g-card-tint: rgba(255, 255, 255, 0.66);
  --g-card-shadow: 0 1px 2px rgba(23, 21, 15, 0.08), 0 10px 24px -10px rgba(23, 21, 15, 0.3), 0 0 0 1px rgba(63, 230, 255, 0.14), 0 0 18px -4px rgba(143, 91, 255, 0.16);
  --g-card-shadow-hot: 0 2px 4px rgba(23, 21, 15, 0.08), 0 16px 32px -12px rgba(23, 21, 15, 0.32), 0 0 0 1px rgba(63, 230, 255, 0.3), 0 0 26px -4px rgba(143, 91, 255, 0.28);
  --g-card-rim: 0.3;
  --g-panel-tint: rgba(255, 255, 255, 0.7);
  --g-panel-edge: rgba(63, 230, 255, 0.22);
  --fx-glow-size: 240px;
  --fx-glow-on-core: rgba(124, 92, 191, 0.1);
  --fx-glow-on-edge: rgba(63, 230, 255, 0.06);
  --fx-glow-hot-core: rgba(124, 92, 191, 0.16);
  --fx-glow-hot-edge: rgba(63, 230, 255, 0.1);
  /* Filled oxblood controls: the light keeps to the edge. */
  --fx-dark-tint: rgba(63, 230, 255, 0.04);
  --fx-dark-gloss: rgba(255, 255, 255, 0.4);
  --fx-dark-rib: rgba(139, 233, 255, 0.07);
  --fx-dark-edge: rgba(63, 230, 255, 0.7);
}

/* App glass on ink (dark). */
:where(.dark .glass-fx) {
  --g-tint-strong: rgba(31, 28, 21, 0.74);
  --g-gloss: rgba(255, 255, 255, 0.09);
  --g-rib: rgba(139, 233, 255, 0.03);
  --g-rim: rgba(255, 255, 255, 0.1);
  --g-hair: rgba(250, 249, 246, 0.08);
  --g-edge: rgba(63, 230, 255, 0.45);
  --g-band-tint: rgba(42, 38, 32, 0.7);
  --g-band-tint-sticky: rgba(31, 28, 21, 0.8);
  --g-band-shadow: 0 1px 0 rgba(63, 230, 255, 0.16), 0 10px 26px -14px rgba(143, 91, 255, 0.4);
  --g-card-tint: rgba(42, 38, 32, 0.72);
  --g-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 233, 255, 0.08);
  --g-card-shadow-hot: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 44px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(63, 230, 255, 0.28), 0 0 26px -6px rgba(143, 91, 255, 0.35);
  --g-card-rim: 0.4;
  --g-panel-tint: rgba(42, 38, 32, 0.78);
  --g-panel-edge: rgba(63, 230, 255, 0.18);
  --fx-glow-on-core: rgba(139, 233, 255, 0.11);
  --fx-glow-on-edge: rgba(143, 91, 255, 0.05);
  --fx-glow-hot-core: rgba(139, 233, 255, 0.18);
  --fx-glow-hot-edge: rgba(143, 91, 255, 0.08);
}

/* ---------- controls at rest ---------- */

/* 3D view controls (and any future [data-fx] control). */
:is(.glass-fx, [data-glass-scope]) [data-fx] {
  --fx-lit: 0;
  --fx-lift: calc(var(--fx-lit) * 1px);
  --fx-x: 50%;
  --fx-y: 50%;
  --fx-nx: 0;
  --fx-ny: 0;
  --fx-band: calc(100% - var(--fx-lit) * (25% + var(--fx-x) / 2));
  --fx-neon: drop-shadow(calc(var(--fx-nx) * 2px) calc(var(--fx-ny) * 2px) 1px var(--fx-neon-rim)) drop-shadow(calc(var(--fx-nx) * 3px) calc(var(--fx-ny) * 3px) 5px var(--fx-neon-cyan)) drop-shadow(0 0 12px var(--fx-neon-blue)) drop-shadow(0 0 24px var(--fx-neon-violet));
  position: relative;
  isolation: isolate;
  transform: translateY(calc(-1 * var(--fx-lift)));
  transition: filter 0.25s ease, transform 0.25s ease, background-color 0.15s ease, color 0.15s ease;
}

/* App controls: the same light, but the lift uses `translate`, which composes with any Tailwind transform,
   and a control that is already positioned keeps its position. */
.glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *) {
  --fx-lit: 0;
  --fx-lift: calc(var(--fx-lit) * 1px);
  --fx-x: 50%;
  --fx-y: 50%;
  --fx-nx: 0;
  --fx-ny: 0;
  --fx-band: calc(100% - var(--fx-lit) * (25% + var(--fx-x) / 2));
  --fx-neon: drop-shadow(calc(var(--fx-nx) * 2px) calc(var(--fx-ny) * 2px) 1px var(--fx-neon-rim)) drop-shadow(calc(var(--fx-nx) * 3px) calc(var(--fx-ny) * 3px) 5px var(--fx-neon-cyan)) drop-shadow(0 0 10px var(--fx-neon-blue)) drop-shadow(0 0 20px var(--fx-neon-violet));
  isolation: isolate;
  translate: 0 calc(-1 * var(--fx-lift));
  transition: filter 0.25s ease, translate 0.25s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *):not(.absolute, .fixed, .sticky) {
  position: relative;
}

/* ---------- lit: keyboard focus, press and tap everywhere; hover only where hover is real ---------- */

:is(.glass-fx, [data-glass-scope]) [data-fx]:is(:focus-visible, :active, [data-fx-tap]),
.glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *):not(:disabled, [aria-disabled='true']):is(:focus-visible, :active, [data-fx-tap]) {
  --fx-lit: 1;
  filter: var(--fx-neon);
}

@media (hover: hover) {
  :is(.glass-fx, [data-glass-scope]) [data-fx]:hover,
  .glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *):not(:disabled, [aria-disabled='true']):hover {
    --fx-lit: 1;
    filter: var(--fx-neon);
  }
}

/* ---------- glass: frosted, ribbed, under the control's text ---------- */

:is(.glass-fx, [data-glass-scope]) [data-fx]::before,
.glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-color: var(--g-tint-strong);
  background-image:
    radial-gradient(5em at var(--fx-x) var(--fx-y), rgba(255, 255, 255, 0.35), transparent),
    linear-gradient(180deg, var(--g-gloss), transparent 45%, transparent 72%, var(--g-edge)),
    repeating-linear-gradient(90deg, var(--g-rib) 0 1px, transparent 1px 6px);
  box-shadow: inset 0 0 0 1px var(--g-rim);
  opacity: var(--fx-lit);
  transition: opacity 0.25s ease;
}

/* ---------- holo: the iridescent sheen, swept to the pointer ---------- */

:is(.glass-fx, [data-glass-scope]) [data-fx]::after,
.glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-image: radial-gradient(4.5em at var(--fx-x) var(--fx-y), var(--fx-spot), transparent), var(--fx-holo-band);
  background-size: 100% 100%, 300% 100%;
  background-position: 0 0, var(--fx-band) 0;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: calc(var(--fx-lit) * var(--fx-sheen-alpha));
  transition: opacity 0.25s ease, background-position var(--fx-speed) cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- on ink, and on filled oxblood: the light keeps to the edge ---------- */

/* Controls with white text keep their ground: a whisper of tint, gloss only as hairlines. */
.glass-fx :is(.btn-primary, a.bg-brand-primary, button.bg-brand-primary, a.text-white, button.text-white, a.text-brand-contrast, button.text-brand-contrast, a.hover\:text-white, button.hover\:text-white):not([data-glass-scope] *, .react-flow *)::before {
  background-color: var(--fx-dark-tint);
  background-image:
    linear-gradient(180deg, var(--fx-dark-gloss), transparent 3px, transparent calc(100% - 3px), var(--fx-dark-edge)),
    repeating-linear-gradient(90deg, var(--fx-dark-rib) 0 1px, transparent 1px 6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* The sheen becomes an iridescent ring over the control's edge. */
.dark :is(.glass-fx, [data-glass-scope]) [data-fx]::after,
.dark .glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *)::after,
.glass-fx :is(.btn-primary, a.bg-brand-primary, button.bg-brand-primary, a.text-white, button.text-white, a.text-brand-contrast, button.text-brand-contrast, a.hover\:text-white, button.hover\:text-white):not([data-glass-scope] *, .react-flow *)::after {
  inset: -2px;
  padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  background-image: radial-gradient(4.5em at var(--fx-x) var(--fx-y), var(--fx-iri-pearl), transparent), var(--fx-holo-band), var(--fx-holo-ring);
  background-size: 100% 100%, 300% 100%, 100% 100%;
  background-position: 0 0, var(--fx-band) 0, 0 0;
  opacity: calc(var(--fx-lit) * 0.9);
}

/* ---------- bands: top bars carry frosted glass and the cursor glow ---------- */

/* The glow is the band's own background, painted under its buttons and text. lib/ui/glassFx.ts sets --mx and
   --my (px from the band's top left) on the band under the pointer, and data-fx-hot while over a control. */
.glass-fx :is(header, main > header + section):not([data-glass-scope], [data-glass-scope] *, .react-flow *) {
  --fx-glow-core: transparent;
  --fx-glow-edge: transparent;
  transition: --fx-glow-core 0.3s ease, --fx-glow-edge 0.3s ease;
}

.glass-fx header:not([data-glass-scope], [data-glass-scope] *, .react-flow *, :is(aside, article, section, [role='dialog']) header) {
  background-color: var(--g-band-tint);
  background-image:
    radial-gradient(circle var(--fx-glow-size) at var(--mx, 50%) var(--my, 50%), var(--fx-glow-core), var(--fx-glow-edge) 45%, transparent),
    linear-gradient(180deg, var(--g-gloss), transparent 70%),
    repeating-linear-gradient(90deg, var(--g-rib) 0 1px, transparent 1px 6px);
  background-repeat: no-repeat, no-repeat, repeat;
  box-shadow: inset 0 1px 0 var(--g-rim), var(--g-band-shadow);
}

/* Lifted one layer so its neon underglow shows over the content below it (a header that is already
   positioned keeps its own position and stacking). */
.glass-fx header:not([data-glass-scope] *, .react-flow *, :is(aside, article, section, [role='dialog']) header):not(.absolute, .fixed, .sticky, .relative) {
  position: relative;
  z-index: 1;
}

/* A sticky header frosts what scrolls under it (the one place a blur has something to blur). */
.glass-fx header.sticky:not([data-glass-scope] *) {
  background-color: var(--g-band-tint-sticky);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

/* The marketing hero under its header: the glow only, no tint. */
.glass-fx main > header + section:not([data-glass-scope] *) {
  background-image: radial-gradient(circle calc(var(--fx-glow-size) * 1.4) at var(--mx, 50%) var(--my, 50%), var(--fx-glow-core), var(--fx-glow-edge) 45%, transparent);
  background-repeat: no-repeat;
}

@media (hover: hover) and (pointer: fine) {
  .glass-fx :is(header, main > header + section):not([data-glass-scope], [data-glass-scope] *, .react-flow *):hover {
    --fx-glow-core: var(--fx-glow-on-core);
    --fx-glow-edge: var(--fx-glow-on-edge);
  }

  .glass-fx :is(header, main > header + section):not([data-glass-scope], [data-glass-scope] *, .react-flow *)[data-fx-hot] {
    --fx-glow-core: var(--fx-glow-hot-core);
    --fx-glow-edge: var(--fx-glow-hot-edge);
  }
}

/* ---------- cards: pricing, dashboard and demo cards ---------- */

/* The card keeps its border and its Tailwind ring (box-shadow composes the ring variables with the lift). */
.glass-fx :is(.grid > a.bg-panel.rounded-lg, .grid > div.bg-panel.rounded-lg, [data-testid="board-card"] > a):not([data-glass-scope] *, .react-flow *) {
  --fx-x: 50%;
  --fx-y: 0%;
  background-color: var(--g-card-tint);
  background-image:
    linear-gradient(180deg, var(--g-gloss), transparent 38%),
    repeating-linear-gradient(90deg, var(--g-rib) 0 1px, transparent 1px 6px);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--g-card-shadow);
}

.glass-fx :is(.grid > a.bg-panel.rounded-lg, .grid > div.bg-panel.rounded-lg, [data-testid="board-card"] > a):not([data-glass-scope] *, .react-flow *):not(.absolute, .fixed, .sticky) {
  position: relative;
}

/* A faint iridescent rim, brighter toward the pointer and while hovered. */
.glass-fx :is(.grid > a.bg-panel.rounded-lg, .grid > div.bg-panel.rounded-lg, [data-testid="board-card"] > a):not([data-glass-scope] *, .react-flow *)::after {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  background-image: radial-gradient(14em at var(--fx-x) var(--fx-y), var(--fx-iri-pearl), transparent), var(--fx-holo-ring);
  opacity: var(--g-card-rim);
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .glass-fx :is(.grid > a.bg-panel.rounded-lg, .grid > div.bg-panel.rounded-lg, [data-testid="board-card"] > a):not([data-glass-scope] *, .react-flow *):hover {
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--g-card-shadow-hot);
  }

  .glass-fx :is(.grid > a.bg-panel.rounded-lg, .grid > div.bg-panel.rounded-lg, [data-testid="board-card"] > a):not([data-glass-scope] *, .react-flow *):hover::after {
    opacity: 0.65;
  }
}

/* ---------- the editor's side panel ---------- */

/* Tint, gloss and a neon left edge. No blur and no pseudo layers: the panel scrolls. */
.glass-fx [aria-label='Resize sidebar'] + div .bg-panel.h-full.w-full {
  background-color: var(--g-panel-tint);
  background-image: linear-gradient(180deg, var(--g-gloss), transparent 160px);
  background-repeat: no-repeat;
  box-shadow: inset 1px 0 0 var(--g-panel-edge), inset 2px 0 0 var(--g-rim);
}

/* The phone peek sheet (#340): the same tint and gloss, with the neon edge along its top. */
.glass-fx [data-testid='phone-peek-sheet']:not([data-glass-scope] *) {
  background-color: var(--g-panel-tint);
  background-image: linear-gradient(180deg, var(--g-gloss), transparent 120px);
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 var(--g-panel-edge), inset 0 2px 0 var(--g-rim), 0 -10px 28px -16px rgba(143, 91, 255, 0.35);
}

/* The canvas timeline scrubber (#332): the same tint and gloss, a neon rim and a soft lift. */
.glass-fx .bb-timeline-scrubber:not([data-glass-scope] *) {
  background-color: var(--g-panel-tint);
  background-image: linear-gradient(180deg, var(--g-gloss), transparent 60px);
  background-repeat: no-repeat;
  border-color: var(--g-panel-edge);
  box-shadow: inset 0 1px 0 var(--g-rim), var(--g-card-shadow);
}

/* The drawing toolbar and its style popover (#355): floating glass over the canvas, neon edge on top. */
.glass-fx :is([data-testid='drawing-toolbar'], [data-testid='drawing-style-popover']):not([data-glass-scope] *) {
  background-color: var(--g-panel-tint);
  background-image: linear-gradient(180deg, var(--g-gloss), transparent 70%);
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 var(--g-panel-edge), inset 0 2px 0 var(--g-rim), var(--g-card-shadow);
}

/* ---------- marketing header (#351) ---------- */

/* The header's text links (Product, What it is, Pricing, About, FAQ; marked data-site-nav, an inert attribute
   with the switch off) are in the controls list above, so they take the same hover, focus and press light as
   the theme toggle, Sign in and Try the demo. A text link has no box of its own: give it one in glass mode
   only, padding balanced by an equal negative margin so the row does not move. */
.glass-fx a[data-site-nav]:not([data-glass-scope] *, .react-flow *) {
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
}

/* The primary header button keeps a thin neon rim at rest (the Tailwind focus ring still composes in). */
.glass-fx header a.bg-brand-primary:not([data-glass-scope] *, .react-flow *) {
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 0 0 0 1px var(--g-edge), 0 0 16px -4px rgba(143, 91, 255, 0.45);
}

/* ---------- touch and reduced motion ---------- */

@media (hover: none) {
  .glass-fx :is(header, main > header + section):not([data-glass-scope], [data-glass-scope] *, .react-flow *) {
    --fx-glow-core: transparent !important;
    --fx-glow-edge: transparent !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-fx :is(header, main > header + section):not([data-glass-scope], [data-glass-scope] *, .react-flow *) {
    --fx-glow-core: transparent !important;
    --fx-glow-edge: transparent !important;
    transition: none !important;
  }

  :is(.glass-fx, [data-glass-scope]) [data-fx],
  :is(.glass-fx, [data-glass-scope]) [data-fx]::before,
  :is(.glass-fx, [data-glass-scope]) [data-fx]::after,
  .glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *),
  .glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *)::before,
  .glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *)::after,
  .glass-fx :is(.grid > a.bg-panel.rounded-lg, .grid > div.bg-panel.rounded-lg, [data-testid="board-card"] > a):not([data-glass-scope] *, .react-flow *)::after {
    transition: none !important;
  }

  :is(.glass-fx, [data-glass-scope]) [data-fx],
  .glass-fx :is(.btn-primary, .btn-secondary, a.rounded-md, button.rounded-md, a[data-site-nav]):not([data-glass-scope] *, .react-flow *) {
    --fx-x: 50% !important;
    --fx-y: 50% !important;
    --fx-nx: 0 !important;
    --fx-ny: 0 !important;
    --fx-lift: 0px;
    --fx-band: 50%;
  }
}
