/* TradePlexa 3.3.47 — Compact atmospheric dashboard.
   Additive, dashboard-scoped CSS. No changes to video timing, KPI data, cards or JS.
   Based on 3.3.46; must load AFTER 35-dashboard-seamless-calm-fog.css. */

/* A fog BANK, not a rectangle. Fade all four edges into TradePlexa's native
   midnight background, particularly the sides and the previously empty top. */
html body #dashboard.page.premium-dashboard > .tp3345-fog-hero {
  height: 402px !important;
  left: -12px !important;
  right: -12px !important;
  /* Two independent masks INTERSECT: side feather + top/bottom feather.
     Avoid CSS background overlays that produce visible straight seams. */
  -webkit-mask-image:
    linear-gradient(90deg,transparent 0%,rgba(0,0,0,.20) 7%,rgba(0,0,0,.82) 19%,#000 30%,#000 71%,rgba(0,0,0,.78) 84%,rgba(0,0,0,.22) 95%,transparent 100%),
    linear-gradient(180deg,transparent 0%,rgba(0,0,0,.23) 8%,rgba(0,0,0,.88) 25%,#000 40%,#000 62%,rgba(0,0,0,.72) 76%,rgba(0,0,0,.20) 92%,transparent 100%) !important;
  -webkit-mask-composite: source-in !important;
  mask-image:
    linear-gradient(90deg,transparent 0%,rgba(0,0,0,.20) 7%,rgba(0,0,0,.82) 19%,#000 30%,#000 71%,rgba(0,0,0,.78) 84%,rgba(0,0,0,.22) 95%,transparent 100%),
    linear-gradient(180deg,transparent 0%,rgba(0,0,0,.23) 8%,rgba(0,0,0,.88) 25%,#000 40%,#000 62%,rgba(0,0,0,.72) 76%,rgba(0,0,0,.20) 92%,transparent 100%) !important;
  mask-composite: intersect !important;
}

/* The first section no longer needs to reserve an enormous empty banner:
   keep breathing room around the title, but bring the real KPIs into view. */
html body #dashboard.page.premium-dashboard .tp68-topbar {
  margin-bottom: 9px !important;
}
html body #dashboard.page.premium-dashboard .ref-head.tp68-head {
  min-height: 70px !important;
  margin-bottom: 7px !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head {
  min-height: 104px !important;
  padding: 13px 20px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
}

/* Give the other two section headers the same disciplined spacing.
   Their videos and content remain untouched. */
html body #dashboard.page.premium-dashboard .tp3343-chapter--performance > .tp3343-chapter-head,
html body #dashboard.page.premium-dashboard .tp3343-chapter--activity > .tp3343-chapter-head {
  min-height: 116px !important;
  padding: 16px 22px !important;
  margin-bottom: 14px !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter {
  margin-bottom: 20px !important;
}
html body #dashboard.page.premium-dashboard .tp3343-chapter--activity {
  margin-bottom: 8px !important;
}

@media (max-width: 820px) {
  html body #dashboard.page.premium-dashboard > .tp3345-fog-hero {
    height: 365px !important;
    left: -9px !important;
    right: -9px !important;
  }
  html body #dashboard.page.premium-dashboard .ref-head.tp68-head {
    min-height: 68px !important;
  }
  html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head {
    min-height: 96px !important;
    padding: 12px 15px !important;
    margin-bottom: 11px !important;
  }
  html body #dashboard.page.premium-dashboard .tp3343-chapter--performance > .tp3343-chapter-head,
  html body #dashboard.page.premium-dashboard .tp3343-chapter--activity > .tp3343-chapter-head {
    min-height: 102px !important;
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
  }
}
@media (max-width: 520px) {
  html body #dashboard.page.premium-dashboard > .tp3345-fog-hero {
    height: 330px !important;
    left: -6px !important;
    right: -6px !important;
  }
  html body #dashboard.page.premium-dashboard .tp68-topbar {
    margin-bottom: 10px !important;
  }
  html body #dashboard.page.premium-dashboard .ref-head.tp68-head {
    min-height: 64px !important;
    margin-bottom: 8px !important;
  }
  html body #dashboard.page.premium-dashboard .tp3343-chapter--overview > .tp3343-chapter-head {
    min-height: 86px !important;
    padding: 10px 11px !important;
    margin-bottom: 10px !important;
  }
  html body #dashboard.page.premium-dashboard .tp3343-chapter--performance > .tp3343-chapter-head,
  html body #dashboard.page.premium-dashboard .tp3343-chapter--activity > .tp3343-chapter-head {
    min-height: 92px !important;
    padding: 12px 13px !important;
  }
  html body #dashboard.page.premium-dashboard .tp3343-chapter {
    margin-bottom: 16px !important;
  }
}
