body[data-page="home"] .portfolio-shell-head-actions{
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
body[data-page="home"] .portfolio-shell-sfx-btn.is-muted{
  opacity:.72;
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--text-2);
}
body[data-page="home"] .portfolio-shell-sfx-btn.is-active{
  box-shadow:0 0 0 1px rgba(125,211,252,.24) inset;
}
body[data-page="home"] .portfolio-ticket-presets{
  flex-wrap:wrap;
}
body[data-page="home"] .portfolio-ticket-side{
  margin-top:2px;
}
body[data-page="home"] .portfolio-curve-empty{
  min-height:132px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
@media (max-width: 900px){
  body[data-page="home"] .portfolio-shell-head-actions{
    width:100%;
    justify-content:flex-start;
  }
}
body[data-page="home"] .portfolio-ticket-holdings{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
  color:var(--text-2);
  font-size:.76rem;
}
body[data-page="home"] .portfolio-ticket-holdings.is-empty{
  justify-content:flex-start;
}
body[data-page="home"] .portfolio-ticket-holdings .is-up{ color:#c8f7d8; }
body[data-page="home"] .portfolio-ticket-holdings .is-down{ color:#ffd6d6; }
body[data-page="home"] .portfolio-trade-estimate-grid,
body[data-page="home"] .portfolio-performance-metrics{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
}
body[data-page="home"] .portfolio-warning-strip{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
}
body[data-page="home"] .portfolio-warning-strip.is-warn{
  border-color:rgba(248,113,113,.26);
  background:linear-gradient(180deg, rgba(120,18,28,.32), rgba(65,10,18,.18));
}
body[data-page="home"] .portfolio-warning-strip.is-ok{
  border-color:rgba(34,197,94,.18);
  background:linear-gradient(180deg, rgba(10,80,42,.22), rgba(8,38,24,.14));
}
body[data-page="home"] .portfolio-warning-strip__text{
  display:grid;
  gap:3px;
}
body[data-page="home"] .portfolio-warning-strip__text strong{
  font-size:.8rem;
  color:var(--text-1);
}
body[data-page="home"] .portfolio-warning-strip__text span{
  font-size:.74rem;
  color:var(--text-2);
  line-height:1.4;
}
body[data-page="home"] .portfolio-warning-strip__metrics{
  display:grid;
  gap:4px;
  min-width:160px;
  font-size:.72rem;
  color:var(--text-2);
  text-align:right;
}
body[data-page="home"] .portfolio-warning-strip__metrics b.is-up{ color:#c8f7d8; }
body[data-page="home"] .portfolio-warning-strip__metrics b.is-down{ color:#ffd6d6; }
body[data-page="home"] .portfolio-trade-estimate-grid .portfolio-metric,
body[data-page="home"] .portfolio-performance-metrics .portfolio-metric{
  min-height:74px;
}
body[data-page="home"] .portfolio-alloc-row{
  display:grid;
  gap:7px;
  padding:8px 0;
}
body[data-page="home"] .portfolio-alloc-row__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:.78rem;
}
body[data-page="home"] .portfolio-alloc-row__bar{
  width:100%;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
}
body[data-page="home"] .portfolio-alloc-row__bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(96,165,250,.82), rgba(167,139,250,.92));
}
body[data-page="home"] .portfolio-leader-row{
  align-items:flex-start;
}
body[data-page="home"] .portfolio-leader-row small{
  display:block;
  margin-top:3px;
  color:var(--text-3);
  font-size:.7rem;
}
body[data-page="home"] .portfolio-universe-list .settings-group__body{
  gap:8px;
}
body[data-page="home"] .portfolio-universe-list .settings-group__summary,
body[data-page="home"] .portfolio-universe-list .settings-group__label{
  color:rgba(232,214,164,.90);
  text-align:left;
}
body[data-page="home"] .portfolio-universe-list .settings-group__label::before{
  color:rgba(232,214,164,.72);
}
body[data-page="home"] .portfolio-universe-list .settings-group[open] .settings-group__label::before{
  color:rgba(232,214,164,.90);
}
@media (max-width: 760px){
  body[data-page="home"] .portfolio-trade-estimate-grid,
  body[data-page="home"] .portfolio-performance-metrics{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  body[data-page="home"] .portfolio-ticket-holdings{
    gap:8px;
  }
  body[data-page="home"] .portfolio-warning-strip{
    flex-direction:column;
    align-items:stretch;
  }
  body[data-page="home"] .portfolio-warning-strip__metrics{
    text-align:left;
    min-width:0;
  }
}


body[data-page="home"] .portfolio-reset-confirm{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(248,113,113,.24);
  background:linear-gradient(180deg, rgba(120,18,28,.36), rgba(65,10,18,.22));
}
body[data-page="home"] .portfolio-reset-confirm__text{
  display:grid;
  gap:4px;
}
body[data-page="home"] .portfolio-reset-confirm__text strong{
  font-size:.88rem;
  color:#ffe1e1;
}
body[data-page="home"] .portfolio-reset-confirm__text span{
  color:var(--text-2);
  font-size:.78rem;
  line-height:1.45;
}
body[data-page="home"] .portfolio-reset-confirm__actions{
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media (max-width: 760px){
  body[data-page="home"] .portfolio-reset-confirm{
    flex-direction:column;
    align-items:stretch;
  }
  body[data-page="home"] .portfolio-reset-confirm__actions{
    justify-content:flex-start;
  }
}


body[data-page="home"] .portfolio-shortability-badge{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:0 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:var(--text-2);
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  margin-left:10px;
}
body[data-page="home"] .portfolio-shortability-badge.is-shortable{
  color:#dff4ea;
  border-color:rgba(110,231,183,.22);
  background:rgba(18,84,58,.28);
}
body[data-page="home"] .portfolio-shortability-badge.is-long-only{
  color:#dbe8f7;
  border-color:rgba(148,163,184,.22);
  background:rgba(51,65,85,.24);
}
