.iv-chart-panel {
  padding: 22px;
  margin-bottom: 22px;
}
.iv-chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.iv-chart-heading h2 {
  font:
    650 15px Manrope,
    sans-serif;
  margin: 0 0 7px;
}
.iv-chart-heading p,
.iv-chart-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.iv-chart-controls {
  display: flex;
  gap: 9px;
  align-items: center;
}
.iv-chart-controls .iv-tabs button {
  padding: 7px 10px;
}
.iv-chart-controls [aria-pressed="true"] {
  background: white;
  color: var(--green);
  font-weight: 700;
}
.iv-chart-controls select {
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--bg);
  border-radius: 7px;
  color: var(--ink);
}
.iv-chart-legend {
  display: flex;
  gap: 22px;
  font-size: 10px;
  color: var(--green);
  margin: 20px 0 0;
}
.iv-chart-legend span:last-child {
  color: var(--muted);
}
.iv-line-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 150px;
}
.iv-chart-grid line {
  stroke: var(--line);
  stroke-width: 1;
}
.iv-chart-grid text,
.iv-chart-dates text {
  fill: var(--muted);
  font:
    11px "DM Sans",
    sans-serif;
}
.iv-value-line {
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.iv-cost-line {
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.iv-chart-inspector {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.iv-chart-inspector label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}
.iv-chart-inspector input {
  accent-color: var(--green);
  width: 130px;
}
.iv-chart-inspector output {
  color: var(--ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.iv-chart-note {
  font-size: 10px;
}
.iv-chart-unit {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 7px;
}
.iv-price-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.iv-price-charts .iv-chart-inspector {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}
.iv-tabs {
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .iv-chart-heading {
    flex-wrap: wrap;
  }
  .iv-price-charts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .iv-chart-panel {
    padding: 17px;
  }
  .iv-chart-inspector {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .iv-chart-controls {
    width: 100%;
  }
  .iv-chart-controls .iv-tabs {
    width: auto;
  }
  .iv-toolbar > .iv-tabs button {
    flex: 1 0 40%;
  }
  .iv-prototype {
    align-items: flex-start;
  }
  .iv-prototype p {
    flex: 1 1 180px;
  }
}

.iv-chart-dot {
  fill: var(--green);
}

.iv-benchmark-line {
  stroke: #b18b53;
  stroke-width: 2;
  stroke-dasharray: 7 3;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.iv-chart-legend .iv-benchmark-legend { color: #9a743e; }
.iv-chart-legend { flex-wrap: wrap; }
.iv-chart-controls { flex-wrap: wrap; justify-content: flex-end; }
.iv-benchmark-control { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }

.account-reconciliation { margin-top: 24px; }
.account-reconciliation .panel-subtitle { margin-top: 6px; }
