/* SOGpt UI v2 · Liquid glass for floating surfaces only: the Agent flyout, the settings and profile
   menus, tooltips and the Image Lab toolbar. The floating Agent chat keeps its frosted glass. Pinned panels and content cards
   stay solid. The glass reads on a flat black page because it carries its own light (a directional
   rim, a top sheen, an inner glow and a soft specular spot that follows the pointer); where there is
   colour underneath, the blur carries it through. */
:root[data-ui=v2] {
  --lg-tint: rgba(30,33,37,.58);
  --lg-sheen: rgba(255,255,255,.065);
  --lg-spot: rgba(255,255,255,.085);
  --lg-rim-top: rgba(255,255,255,.26);
  --lg-rim-left: rgba(255,255,255,.14);
  --lg-rim-right: rgba(255,255,255,.06);
  --lg-rim-bottom: rgba(255,255,255,.045);
  --lg-glow: rgba(255,255,255,.10);
  --lg-depth: rgba(0,0,0,.45);
  --lg-blur: blur(20px) saturate(185%) brightness(1.06);
  --lg-drop: 0 1px 2px rgba(0,0,0,.28), 0 14px 32px rgba(0,0,0,.36), 0 40px 90px rgba(0,0,0,.42);
}
:root[data-ui=v2][data-theme=light] {
  --lg-tint: rgba(255,255,255,.62);
  --lg-sheen: rgba(255,255,255,.55);
  --lg-spot: rgba(255,255,255,.7);
  --lg-rim-top: rgba(255,255,255,.95);
  --lg-rim-left: rgba(255,255,255,.75);
  --lg-rim-right: rgba(23,64,78,.10);
  --lg-rim-bottom: rgba(23,64,78,.14);
  --lg-glow: rgba(255,255,255,.55);
  --lg-depth: rgba(23,64,78,.08);
  --lg-blur: blur(22px) saturate(160%) brightness(1.04);
  --lg-drop: 0 1px 2px rgba(23,64,78,.10), 0 14px 32px rgba(23,64,78,.12), 0 40px 90px rgba(23,64,78,.16);
}

:root[data-ui=v2].v2-lg #app-shell:not(.v2-flyout-pinned) #agent-secondary-sidebar,
:root[data-ui=v2].v2-lg .v2-settings-menu,
:root[data-ui=v2].v2-lg #profile-menu,
:root[data-ui=v2].v2-lg .v2-tip,
:root[data-ui=v2].v2-lg #view-image .canvas-dock {
  --lg-x: 18%; --lg-y: -8%;
  border-style: solid !important; border-width: 1px !important;
  border-color: var(--lg-rim-top) var(--lg-rim-right) var(--lg-rim-bottom) var(--lg-rim-left) !important;
  background:
    radial-gradient(380px 260px at var(--lg-x) var(--lg-y), var(--lg-spot), transparent 70%),
    linear-gradient(180deg, var(--lg-sheen) 0, transparent 34%),
    var(--lg-tint) !important;
  -webkit-backdrop-filter: var(--lg-blur) !important;
  backdrop-filter: var(--lg-blur) !important;
  box-shadow:
    inset 0 1px 0 var(--lg-rim-top),
    inset 0 22px 36px -28px var(--lg-glow),
    inset 0 0 22px rgba(255,255,255,.025),
    inset 0 -28px 40px -34px var(--lg-depth),
    var(--lg-drop) !important;
}
/* Light theme: the flyout sits on the teal rail, so it keeps a teal glass with white text. */
:root[data-ui=v2][data-theme=light].v2-lg #app-shell:not(.v2-flyout-pinned) #agent-secondary-sidebar {
  --lg-tint: rgba(23,64,78,.70); --lg-sheen: rgba(255,255,255,.10); --lg-spot: rgba(255,255,255,.12);
  --lg-rim-top: rgba(255,255,255,.34); --lg-rim-left: rgba(255,255,255,.18); --lg-rim-right: rgba(255,255,255,.07); --lg-rim-bottom: rgba(255,255,255,.05);
  --lg-glow: rgba(255,255,255,.14); --lg-depth: rgba(0,0,0,.18);
}
/* Small surfaces: a tighter spot and a lighter shadow. */
:root[data-ui=v2].v2-lg .v2-tip { --lg-drop: 0 8px 22px rgba(0,0,0,.34); }
:root[data-ui=v2][data-theme=light].v2-lg .v2-tip { --lg-drop: 0 8px 22px rgba(23,64,78,.14); }
@media (prefers-reduced-transparency: reduce) {
  :root[data-ui=v2].v2-lg :is(#agent-secondary-sidebar, .v2-settings-menu, #profile-menu, .v2-tip, .canvas-dock) {
    --lg-tint: rgba(24,26,29,.96);
  }
  :root[data-ui=v2][data-theme=light].v2-lg :is(#agent-secondary-sidebar, .v2-settings-menu, #profile-menu, .v2-tip, .canvas-dock) {
    --lg-tint: rgba(255,255,255,.97);
  }
}
