/* MARFA Preview | UI-14 | Collapsed sidebar tooltip contrast and distinct glass.
 * Visual-only override of UI-07. Strong separation from navy sidebar while
 * retaining the approved accent palette, positional logic and accessibility.
 */
@media(min-width:1181px){
  html[data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip.marfa-side-name-tooltip{
    background:
      linear-gradient(142deg,rgba(255,255,255,.13) 0%,transparent 24%),
      linear-gradient(165deg,rgba(11,22,39,.98),rgba(3,8,18,.985) 78%)!important;
    color:#fbfdff!important;
    border:1px solid color-mix(in srgb,var(--marfa-personal-accent,#e8c183) 78%,white 22%)!important;
    border-top-color:rgba(255,255,255,.93)!important;
    border-bottom-color:color-mix(in srgb,var(--marfa-personal-accent,#e8c183) 45%,rgba(137,180,214,.5))!important;
    border-radius:12px!important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.24),
      inset 0 0 0 1px rgba(3,10,19,.36),
      0 3px 0 rgba(0,0,0,.84),
      0 15px 28px rgba(0,0,0,.58),
      0 0 0 3px rgba(2,6,13,.40),
      0 0 16px color-mix(in srgb,var(--marfa-personal-accent,#e8c183) 18%,transparent)!important;
    -webkit-backdrop-filter:blur(7px) saturate(1.16)!important;
    backdrop-filter:blur(7px) saturate(1.16)!important;
    font-size:13px!important;
    line-height:1.55!important;
    font-weight:800!important;
    min-width:125px!important;
    min-height:43px!important;
    padding:10px 18px!important;
    text-shadow:0 1px 2px rgba(0,0,0,.72)!important;
    letter-spacing:0!important;
    opacity:1!important;
    isolation:isolate!important;
  }
  html[data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip[hidden]{
    display:none!important;
  }
  /* A slim luminous edge identifies the label as a floating tooltip. */
  html[data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip.marfa-side-name-tooltip::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    top:9px!important;
    bottom:9px!important;
    width:3px!important;
    height:auto!important;
    border-radius:3px!important;
    background:linear-gradient(to bottom,
      transparent,
      color-mix(in srgb,var(--marfa-personal-accent,#e8c183) 88%,white 12%) 28%,
      var(--marfa-personal-accent,#e8c183) 65%,
      transparent)!important;
    box-shadow:0 0 7px color-mix(in srgb,var(--marfa-personal-accent,#e8c183) 65%,transparent)!important;
    pointer-events:none!important;
  }
  html[dir="rtl"][data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip.marfa-side-name-tooltip::before,
  html[data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip.marfa-side-name-tooltip[data-side="left"]::before{
    right:4px!important;
    left:auto!important;
  }
  html[dir="ltr"][data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip.marfa-side-name-tooltip::before,
  html[data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip.marfa-side-name-tooltip[data-side="right"]::before{
    left:4px!important;
    right:auto!important;
  }
  html[data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip.marfa-side-name-tooltip::after{
    width:10px!important;
    height:10px!important;
    background:#070f1f!important;
    border-color:color-mix(in srgb,var(--marfa-personal-accent,#e8c183) 73%,white 27%)!important;
    box-shadow:2px -2px 6px rgba(0,0,0,.25)!important;
  }
  /* Light-mode tooltip intentionally stays a dark/navy floating label.
     A white tooltip on a pale surface would be hard to distinguish again. */
  html[data-theme="light"][data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip.marfa-side-name-tooltip{
    background:
      linear-gradient(142deg,rgba(255,255,255,.16),transparent 24%),
      linear-gradient(165deg,rgba(19,39,61,.98),rgba(7,16,31,.99))!important;
    color:#ffffff!important;
    text-shadow:0 1px 2px rgba(0,0,0,.60)!important;
    border:1px solid color-mix(in srgb,var(--marfa-personal-accent,#cbd5e1) 68%,#fff 32%)!important;
    border-top-color:rgba(255,255,255,.94)!important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.19),
      0 3px 0 rgba(20,35,54,.52),
      0 14px 28px rgba(30,52,86,.34),
      0 0 0 2px rgba(24,43,73,.16)!important;
  }
  html[data-theme="light"][data-marfa-palette] body.v7-ui #marfaSidebarIconTooltip.marfa-side-name-tooltip::after{
    background:#11253d!important;
    border-color:color-mix(in srgb,var(--marfa-personal-accent,#cbd5e1) 70%,white 30%)!important;
  }
}
