/* Investment valuation workspace. */
/* Valuation workspace */
.inv-update-hero,
.inv-dca-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, #111827, #1e293b);
  color: #fff;
}
.inv-update-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
  gap: 20px;
}
.inv-update-hero > div { position: relative; z-index: 1; }
.inv-update-hero h3 { margin-top: 10px; color: #cbd5e1; font-size: 12px; font-weight: 650; }
.inv-update-total { margin: 4px 0 2px; font-size: clamp(32px,4vw,48px); font-weight: 820; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.inv-update-actions { display: flex; gap: 8px; }
.inv-update-actions .inv-btn-secondary { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #e2e8f0; }
.inv-update-guide {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}
.inv-update-guide > i { height: 1px; flex: 1; background: rgba(255,255,255,.16); }
.inv-update-step { display: flex; align-items: center; gap: 7px; color: #94a3b8; font-size: 10px; font-weight: 650; white-space: nowrap; }
.inv-update-step b { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #64748b; border-radius: 50%; font-size: 9px; }
.inv-update-step.is-active { color: #fff; }
.inv-update-step.is-active b { border-color: #818cf8; background: #6366f1; }
.inv-update-step.is-done { color: #6ee7b7; }
.inv-update-step.is-done b { border-color: #34d399; color: #6ee7b7; }
.inv-add-asset { margin-bottom: 14px; border-color: rgba(99,102,241,.32); }
.inv-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.inv-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.inv-field-wide { grid-column: 1 / -1; }
.inv-field > span { color: var(--text-secondary); font-size: 10px; font-weight: 750; }
.inv-field input.num,
.inv-field select { width: 100%; min-width: 0; min-height: 42px; text-align: left; }
.inv-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.inv-update-group { overflow: hidden; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); }
.inv-update-group-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--border); background: rgba(248,250,252,.55); }
.inv-update-group-head > div { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 10px; }
.inv-update-group-head > div:last-child { text-align: right; }
.inv-update-group-head span { grid-column: 1 / -1; color: var(--text-secondary); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.inv-update-group-head h3 { font-size: 14px; font-weight: 800; }
.inv-update-group-head strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.inv-update-group-head small { color: var(--text-secondary); font-size: 9px; }
.inv-update-list { padding: 0 20px; }
.inv-update-row {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) minmax(160px,auto) 30px;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.inv-update-row:first-child { border-top: 0; }
.inv-asset-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--asset-color, #6366f1) 12%, white);
  color: var(--asset-color, #6366f1);
  font-size: 12px;
  font-weight: 850;
}
.inv-asset-mark.split { grid-template-columns: 1fr 1fr; gap: 3px; padding: 9px; background: #eef2ff; }
.inv-asset-mark.split span { height: 100%; border-radius: 4px; background: #0f9f95; }
.inv-asset-mark.split span:last-child { background: #4f6fd9; }
.inv-update-asset { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.inv-update-asset > strong { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.inv-update-asset > small { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 9px; }
.inv-asset-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.inv-asset-tags span { padding: 3px 6px; border-radius: 6px; background: var(--bg-input); color: var(--text-secondary); font-size: 8px; font-weight: 750; }
.inv-update-value { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; }
.inv-update-value > span { color: var(--text-secondary); font-size: 9px; }
.inv-update-value strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.inv-update-value input.num { width: 160px; font-size: 15px; font-weight: 750; }
.inv-delete-btn { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 17px; }
.inv-delete-btn:hover { background: #fff1f2; color: #be123c; }
.inv-save-dock {
  position: sticky;
  z-index: 80;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 12px 14px 12px 18px;
  border: 1px solid #dbe1ff;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 40px rgba(30,41,59,.15);
  backdrop-filter: blur(16px);
}
.inv-save-dock > div { display: flex; align-items: center; gap: 9px; }
.inv-save-dock span { color: var(--text-secondary); font-size: 10px; }
.inv-save-dock strong { font-size: 13px; }

