/* Investment overview workspace. */
/* Overview */
.inv-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 10%, rgba(99,102,241,.45), transparent 34%),
    linear-gradient(135deg, #111827 0%, #1e1b4b 58%, #312e81 100%);
  color: #fff;
  box-shadow: 0 18px 45px -28px rgba(30,27,75,.8);
}
.inv-hero::after,
.inv-dca-hero::after,
.inv-update-hero::after {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.inv-hero-main,
.inv-hero-actions,
.inv-hero-stats { position: relative; z-index: 1; }
.inv-hero-value {
  margin-top: 10px;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.inv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 11px;
}
.inv-hero-meta span { white-space: nowrap; }
.inv-hero-meta .is-positive { color: #6ee7b7; }
.inv-hero-meta .is-negative { color: #fda4af; }
.inv-hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.inv-hero-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.inv-hero-stats > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 15px 18px;
  background: rgba(15,23,42,.12);
}
.inv-hero-stats span { color: #aebbd0; font-size: 10px; }
.inv-hero-stats strong { margin: 3px 0 1px; font-size: 17px; font-variant-numeric: tabular-nums; }
.inv-hero-stats small { color: #94a3b8; font-size: 9px; }
.inv-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin: 14px 0;
}
.inv-kpi-card {
  display: flex;
  min-width: 0;
  min-height: 110px;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--bg-card);
}
.inv-kpi-label { margin-bottom: 8px; color: var(--text-secondary); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.inv-kpi-card strong { overflow: hidden; color: var(--text-primary); font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.inv-kpi-card small { overflow: hidden; margin-top: 4px; color: var(--text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.inv-dashboard-grid,
.inv-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
  gap: 14px;
  margin-bottom: 14px;
}
.inv-allocation-list { display: grid; gap: 12px; }
.inv-allocation-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 1.5fr) 76px 45px;
  align-items: center;
  gap: 12px;
}
.inv-allocation-name { display: flex; min-width: 0; align-items: center; gap: 8px; }
.inv-allocation-name > span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 3px; }
.inv-allocation-name b { overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.inv-allocation-bar { position: relative; height: 7px; border-radius: 10px; background: var(--bg-input); }
.inv-allocation-fill { display: block; height: 100%; border-radius: inherit; opacity: .82; }
.inv-target-marker { position: absolute; top: -4px; width: 2px; height: 15px; border-radius: 1px; background: var(--text-primary); opacity: .68; transform: translateX(-1px); }
.inv-allocation-numbers { display: flex; flex-direction: column; text-align: right; }
.inv-allocation-numbers b { font-size: 12px; font-variant-numeric: tabular-nums; }
.inv-allocation-numbers span { color: var(--text-secondary); font-size: 9px; }
.inv-drift { padding: 4px 5px; border-radius: 6px; font-size: 9px; font-weight: 800; text-align: center; }
.inv-drift.ok { background: #f0fdf4; color: #15803d; }
.inv-drift.over { background: #fff1f2; color: #be123c; }
.inv-drift.under { background: #eef2ff; color: #4f46e5; }
.inv-bucket-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 9px;
}
.inv-bucket-summary > div { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.inv-bucket-chip { display: inline-flex; gap: 5px; padding: 4px 7px; border-radius: 7px; background: var(--bg-input); }
.inv-bucket-chip b { color: var(--text-primary); }
.inv-trend-panel { display: flex; flex-direction: column; }
.inv-trend-chart { min-height: 185px; margin: auto 0 0; }
.inv-trend-chart svg { width: 100%; height: 190px; overflow: visible; }
.inv-chart-grid { stroke: var(--border); stroke-width: 1; }
.inv-chart-line { fill: none; stroke: #6366f1; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.inv-chart-dot { fill: #6366f1; stroke: var(--bg-card); stroke-width: 2; vector-effect: non-scaling-stroke; }
.inv-chart-label { fill: var(--text-secondary); font-size: 9px; font-weight: 650; }
.inv-trend-change { padding: 5px 8px; border-radius: 8px; background: var(--bg-input); font-size: 11px; font-weight: 800; }
.inv-footnote { margin-top: 8px; color: var(--text-secondary); font-size: 9px; line-height: 1.45; }
.inv-action-list { display: grid; gap: 9px; }
.inv-action-item { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; }
.inv-action-item.is-risk { border-color: rgba(190,18,60,.16); background: rgba(190,18,60,.025); }
.inv-action-item.is-watch { border-color: rgba(180,83,9,.14); background: rgba(180,83,9,.02); }
.inv-action-index { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: var(--bg-input); color: var(--text-secondary); font-size: 10px; font-weight: 850; }
.inv-action-item.is-risk .inv-action-index { background: #fff1f2; color: #be123c; }
.inv-action-copy strong { font-size: 11px; line-height: 1.5; }
.inv-action-copy p { margin-top: 3px; color: var(--text-secondary); font-size: 10px; line-height: 1.5; }
.inv-action-next { margin-top: 7px; padding: 7px 9px; border-radius: 8px; background: rgba(79,70,229,.055); color: #4f46e5; font-size: 9px; line-height: 1.5; }
.inv-holdings-list { display: grid; }
.inv-holding-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--border); }
.inv-holding-row:first-child { padding-top: 0; border-top: 0; }
.inv-rank { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: var(--bg-input); color: var(--text-secondary); font-size: 9px; font-weight: 800; }
.inv-holding-name { display: flex; min-width: 0; flex-direction: column; }
.inv-holding-name b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.inv-holding-name span,
.inv-holding-value span { margin-top: 2px; color: var(--text-secondary); font-size: 9px; }
.inv-holding-value { display: flex; align-items: flex-end; flex-direction: column; text-align: right; }
.inv-holding-value b { font-size: 11px; font-variant-numeric: tabular-nums; }

