/* TradePlexa 3.5.33 — three cosmic UI PNGs chosen by user.
   The equity chart, its outer rim, the astronaut, and all numeric calculations are untouched.
   Graphic labels are HTML; button selected states are genuine CSS, not baked into the panel art. */
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway > .ref-panel-head {
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(340px,430px) minmax(360px,420px) minmax(285px,330px)!important;
  justify-content:center!important;
  justify-items:center!important;
  align-items:center!important;
  gap:14px clamp(22px,2.4vw,46px)!important;
  width:100%!important;
  min-height:108px!important;
  margin:0 auto 10px auto!important;
  padding:0!important;
  position:relative!important;
  z-index:4!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* Title: real original artwork, including its cyan graph icon, ringed planet and Earth horizon */
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway > .ref-panel-head > h3 {
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:430px!important;
  min-width:56px!important;
  aspect-ratio:803 / 212!important;
  height:auto!important;
  padding:0 24px 0 clamp(106px,7.5vw,122px)!important;
  margin:0!important;
  color:#f7fbff!important;
  font-size:clamp(16px,1.08vw,19px)!important;
  font-weight:800!important;
  line-height:1.05!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-shadow:0 2px 5px #030918, 0 0 12px rgba(0,0,0,.25)!important;
  background:transparent url('../assets/media/tp3533-crescita-header-cosmico.opt3608.webp') center / cover no-repeat!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway > .ref-panel-head > h3 > img.tp3337-equity-title-icon {
  display:none!important; /* The exact approved icon is embedded in the new PNG. */
}

/* The approved 5-button container; each live HTML button gets genuine artwork. */
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway .ref-periods {
  box-sizing:border-box!important;
  justify-self:center!important;
  align-self:center!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:9px!important;
  margin:0!important;
  padding:16px 18px!important;
  width:100%!important;
  max-width:420px!important;
  min-width:56px!important;
  aspect-ratio:712 / 214!important;
  height:auto!important;
  overflow:visible!important;
  background:transparent url('../assets/media/tp3533-periodi-cornice-cosmica.opt3608.webp') center / cover no-repeat!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway .ref-periods > button {
  box-sizing:border-box!important;
  position:relative!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex:0 0 auto!important;
  width:56px!important;
  min-width:56px!important;
  height:52px!important;
  margin:0!important;
  padding:0 2px!important;
  color:#f4faff!important;
  font-size:clamp(11px,.84vw,13px)!important;
  font-weight:780!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-shadow:0 1px 5px #06091d!important;
  border:0!important;
  border-radius:0!important;
  background:transparent url('../assets/media/tp3533-periodo-normale-cosmico.opt3608.webp') center / cover no-repeat!important;
  box-shadow:none!important;
  filter:none!important;
  cursor:pointer!important;
  transition:filter .18s ease, transform .18s ease!important;
}
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway .ref-periods > button:last-child {
  width:94px!important;
}
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway .ref-periods > button:not(:last-child) {
  width:56px!important;
}

html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway .ref-periods > button.selected {
  color:#fff!important;
  background-image:url('../assets/media/tp3533-periodo-attivo-cosmico.opt3608.webp')!important;
  filter:drop-shadow(0 0 2px rgba(194,54,244,.16))!important;
}
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway .ref-periods > button:hover {
  filter:brightness(1.14)!important;
}
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway .ref-periods > button:focus-visible {
  outline:2px solid #9de8ff!important;
  outline-offset:-5px!important;
}

/* Balance planet remains part of PNG. Values stay live in #refBalance. */
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway .ref-balance {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:center!important;
  width:100%!important;
  max-width:330px!important;
  aspect-ratio:648 / 214!important;
  height:auto!important;
  min-width:56px!important;
  overflow:visible!important;
  padding:14px 62px 12px 24px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent url('../assets/media/tp3533-saldo-pianeta-cosmico.opt3608.webp') center / cover no-repeat!important;
  color:#f5faff!important;
  font-size:clamp(18px,1.28vw,22px)!important;
  font-weight:850!important;
  line-height:1.06!important;
  letter-spacing:-.028em!important;
  text-align:center!important;
  white-space:nowrap!important;
  text-shadow:0 1px 4px #031228!important;
  font-variant-numeric:tabular-nums!important;
}
html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
.ref-panel.tp3337-equity-milkyway .ref-balance > small {
  box-sizing:border-box!important;
  display:block!important;
  width:auto!important;
  margin:7px 0 0!important;
  font-size:clamp(10px,.68vw,11px)!important;
  font-weight:790!important;
  letter-spacing:0!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  text-shadow:0 1px 4px rgba(1,10,16,.7)!important;
}

@media(max-width:1200px){
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway > .ref-panel-head {
    grid-template-columns:minmax(280px,1fr) minmax(300px,1fr) minmax(210px,.9fr)!important;
  }
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway > .ref-panel-head > h3 {
    padding-left:clamp(90px,9vw,112px)!important;
    font-size:clamp(15px,1.18vw,17px)!important;
    aspect-ratio:803 / 212!important;
    height:auto!important;
  }
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway .ref-periods {
    aspect-ratio:712 / 214!important;height:auto!important;padding:12px 14px!important;
  }
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway .ref-periods > button {
    height:46px!important;
    width:52px!important;
    font-size:11px!important;
  }
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway .ref-balance {
    aspect-ratio:648 / 214!important;
  height:auto!important;
    font-size:clamp(15px,1.34vw,19px)!important;
    padding-left:12px!important;
    padding-right:38px!important;
  }
}
@media(max-width:850px){
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway > .ref-panel-head {
    grid-template-columns:minmax(0,1fr) minmax(190px,250px)!important;
    grid-template-areas:"growth balance" "periods periods"!important;
    gap:8px 12px!important;
  }
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway > .ref-panel-head > h3 {grid-area:growth!important;aspect-ratio:803 / 212!important;
  height:auto!important;padding-left:clamp(84px,16vw,120px)!important;}
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway .ref-periods {
    grid-area:periods!important;
    justify-self:center!important;
    width:min(100%,400px)!important;
  }
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway .ref-balance {
    grid-area:balance!important;
    aspect-ratio:648 / 214!important;
    height:auto!important;
  }
}
@media(max-width:440px){
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway > .ref-panel-head {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"growth" "balance" "periods"!important;
    row-gap:2px!important;
  }
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway > .ref-panel-head > h3,
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway .ref-balance {
    justify-self:center!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body #dashboard .tp3343-chapter--performance .tp68-analytics .ref-middle >
  .ref-panel.tp3337-equity-milkyway .ref-periods > button {
    transition:none!important;
  }
}
