.costo-page { padding-bottom: 30px; }
.costo-heading { margin-bottom: 30px; }
.costo-heading h1 { max-width: 1000px; }
.costo-subtitle { margin-top: 12px; font-size: 16px; color: var(--ui-muted); }
.costo-parameters { padding: 24px; margin-bottom: 24px; }
.costo-panel-heading { padding-bottom: 20px; border-bottom: 1px solid var(--ui-line); margin-bottom: 23px; }
.costo-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; }
.costo-control { min-width: 0; }
.costo-field-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.costo-field-line > label { font-size: 14px; font-weight: 600; }
.costo-field-line input[type="number"] { width: 135px; min-height: 48px; border: 1px solid var(--ui-control-line); background: var(--ui-surface); color: var(--ui-ink); padding: 8px 10px; font-size: 22px; font-weight: 650; line-height: 1.3; text-align: right; font-variant-numeric: tabular-nums; }
.costo-currency-input { position: relative; flex: 0 0 135px; }
.costo-currency-input > span { position: absolute; left: 11px; top: 9px; font-size: 20px; color: var(--ui-muted); }
.costo-currency-input input[type="number"] { padding-left: 28px; }
.costo-range-labels { display: flex; justify-content: space-between; align-items: start; gap: 12px; font-size: 12px; color: var(--ui-muted); margin-top: 5px; font-variant-numeric: tabular-nums; }
.costo-range-labels span:nth-child(2) { text-align: center; }
.costo-range-labels span:first-child,.costo-range-labels span:last-child { white-space: nowrap; }
.costo-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.costo-kpi { min-width: 0; padding: 24px 21px; }
.costo-kpi-label { font-size: 13px; color: var(--ui-muted); font-weight: 600; margin-bottom: 14px; }
.costo-kpi-value { font-size: clamp(24px,2.2vw,32px); font-weight: 650; line-height: 1.2; letter-spacing: -.9px; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.costo-kpi-note { font-size: 12px; line-height: 1.6; color: var(--ui-muted); margin-top: 14px; }
.costo-blue { color: var(--ui-primary); }
.costo-vote-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; }
.costo-vote-row + .costo-vote-row { border-top: 1px solid var(--ui-line); }
.costo-vote-row > span { color: var(--ui-muted); }
.costo-vote-row strong { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.costo-savings { background: #eef7f2; border-color: #bad9c7; }
.costo-savings .costo-kpi-label,.costo-savings .costo-kpi-value,.costo-savings .costo-kpi-note { color: #216443; }
.costo-savings.from-rose-500 { background: #fff2f1; border-color: #e9c7c2; }
.costo-savings.from-rose-500 .costo-kpi-label,.costo-savings.from-rose-500 .costo-kpi-value,.costo-savings.from-rose-500 .costo-kpi-note { color: #9d302c; }
.costo-chart-panel { padding: 24px; }
.costo-chart-container { height: 450px; width: 100%; position: relative; margin-top: 24px; }
@media (max-width:1100px) {
  .costo-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .costo-controls { gap: 28px; }
  .costo-kpi-value { font-size: 32px; }
}
@media (max-width:760px) {
  .costo-heading { margin-bottom: 24px; }
  .costo-subtitle { font-size: 14px; }
  .costo-controls { grid-template-columns: 1fr; gap: 26px; }
  .costo-control + .costo-control { padding-top: 24px; border-top: 1px solid var(--ui-line); }
  .costo-parameters,.costo-chart-panel { padding: 20px; }
  .costo-kpis { gap: 14px; }
  .costo-kpi { padding: 20px 17px; }
  .costo-kpi-value { font-size: 28px; }
  .costo-chart-container { height: 480px; }
}
@media (max-width:520px) {
  .costo-heading h1 { max-width: none; font-size: 29px; }
  .costo-field-line { gap: 14px; }
  .costo-field-line > label { max-width: 180px; }
  .costo-field-line input[type="number"] { width: 118px; font-size: 21px; }
  .costo-currency-input { flex-basis: 118px; }
  .costo-kpis { grid-template-columns: 1fr; }
  .costo-kpi { padding: 21px; }
  .costo-kpi-value { font-size: 34px; }
  .costo-kpi-label { margin-bottom: 9px; }
  .costo-kpi-note { margin-top: 9px; }
  .costo-chart-panel { padding: 20px 12px; }
  .costo-chart-panel h2,.costo-chart-panel > .description { padding-left: 8px; padding-right: 8px; }
  .costo-chart-container { height: 520px; }
}
