/* Inicio resumido y paneles visuales abiertos desde los indicadores. */
.home-insights-layout{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,2fr);gap:24px;align-items:start;margin-top:22px}
#dashboard .home-insights-layout>.panel{margin:0;min-width:0}
.home-insights-layout .monthly-health-panel{padding:22px}
.home-insights-layout .health-heading{display:block}
.home-insights-layout .health-heading h2{font-size:21px;line-height:1.25}
.home-insights-layout .health-heading .ux-help{font-size:11px;line-height:1.6}
.home-insights-layout .health-body{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.health-gauge{position:relative;width:min(100%,250px);aspect-ratio:280/250;margin:0 auto}
.health-gauge svg{width:100%;height:100%;display:block;overflow:visible}
.health-gauge .gauge-track,.health-gauge .gauge-progress{fill:none;stroke-width:21;stroke-linecap:round}
.health-gauge .gauge-track{stroke:#f2f5eb}
.health-gauge svg text{fill:#438d76;font:12px system-ui,sans-serif}
.gauge-value{position:absolute;inset:40% 14% auto;display:grid;gap:6px;justify-items:center;text-align:center}
.gauge-value span{font-size:11px;color:#438d76}.gauge-value strong{font-size:49px;line-height:1;font-weight:750;letter-spacing:-.05em}.gauge-value small{font-size:12px;color:#438d76}
.home-insights-layout .gauge-reading{font-size:12px;color:#438d76;line-height:1.65;margin:5px 0 0;text-align:center}
.home-insights-layout .health-status{font-size:11px;text-align:center;white-space:normal}
.home-insights-layout .health-disclaimer{font-size:10px;line-height:1.65;margin-top:16px}
.home-insights-layout .health-explanation{margin-top:14px}
.home-insights-layout .forecast-heading{align-items:start;flex-wrap:wrap;gap:12px}
.home-insights-layout .forecast-heading h2{font-size:22px}
.home-insights-layout .forecast-highlights{gap:12px}
.home-insights-layout .forecast-highlights b{font-size:19px;overflow-wrap:anywhere}
.home-insights-layout .forecast-day-detail{grid-template-columns:1fr;gap:12px}
@media(max-width:1100px){.home-insights-layout{grid-template-columns:1fr}.home-insights-layout .monthly-health-panel{max-width:none}.home-insights-layout .health-body{max-width:430px;margin:12px auto 0}.home-insights-layout .health-heading h2{font-size:22px}}
.monthly-health-panel{margin-top:22px;padding:24px;border-radius:20px;background:linear-gradient(145deg,#f2f5eb,#f2f5eb)}
.health-heading{display:flex;justify-content:space-between;gap:18px;align-items:start}
.health-heading h2{font-size:23px;color:#282f2c;margin:8px 0}
.health-status{font-size:12px;font-weight:700;padding:9px 13px;border-radius:20px;color:#063f32;background:#f2f5eb;white-space:nowrap}
.health-good .health-status{background:#dff0e9;color:#16684e}.health-watch .health-status{background:#f7edcf;color:#7e5a0f}.health-attention .health-status{background:#f8e3e6;color:#a3344b}
.health-body{display:flex;gap:30px;align-items:center;margin-top:22px}
.health-score{min-width:100px;text-align:center;color:#282f2c}.health-score strong{font-size:46px;font-weight:750;line-height:1}.health-score span{display:block;color:#438d76;font-size:12px;margin-top:8px}
.health-reading{flex:1;min-width:0}.health-reading p{font-size:13px;color:#438d76;margin:16px 0 0;line-height:1.6}
.health-meter{height:12px;border-radius:10px;position:relative;background:linear-gradient(90deg,#c76478 0 44%,#dbb34e 45% 64%,#51a08a 65% 100%)}
.health-meter i{position:absolute;top:-5px;height:22px;width:6px;background:#282f2c;border:2px solid #fff;border-radius:4px;transform:translateX(-50%);box-shadow:0 1px 5px #282f2c40}
.health-neutral .health-meter{background:#f2f5eb}.health-scale{display:flex;justify-content:space-between;color:#438d76;font-size:10px;margin-top:10px}
.health-explanation{margin-top:20px;border-top:1px solid #f2f5eb;padding-top:14px}.health-explanation summary{font-size:12px;color:#438d76;cursor:pointer}.health-explanation p{font-size:12px;color:#438d76;line-height:1.7}
@media(max-width:650px){.health-heading{flex-direction:column;gap:6px}.health-body{gap:18px}.health-score{min-width:60px}.health-score strong{font-size:36px}.monthly-health-panel{padding:18px}.health-heading h2{font-size:21px}}
.home-quick-summary{gap:24px;margin-bottom:24px}
.home-quick-summary>button{padding:24px;gap:12px;min-width:0}
#dashboard .kpi-grid{gap:24px;margin-bottom:26px}
#dashboard .kpi{padding:20px;min-width:0}
.current-period-summary h2{font-size:24px;color:#282f2c;margin:10px 0}
.period-equation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:26px 0}
.period-equation>div{padding:8px 0;min-width:0}
.period-equation span{display:block;font-size:12px;color:#438d76;line-height:1.5}
.period-equation b{display:block;font-size:clamp(19px,2vw,27px);margin-top:10px;overflow-wrap:anywhere;letter-spacing:-.035em}
.period-equation .period-result{border-left:1px solid #c4d5c6;padding-left:22px}
.forecast-expandable{margin-top:24px;border-top:1px solid #f2f5eb;padding-top:18px}
.forecast-expandable>summary{cursor:pointer;color:#438d76;font-size:14px;font-weight:650;padding:8px 0}
.forecast-expandable[open]>.forecast-heading{margin-top:25px}
.recurring-income-panel{padding:24px;margin-top:24px;border-radius:20px}
.recurring-income-row{display:flex;gap:24px;align-items:center;padding:18px 0;border-bottom:1px solid #f2f5eb;color:#282f2c}
.recurring-income-row>div{flex:1;min-width:0;overflow-wrap:anywhere}
.recurring-income-row small{display:block;font-size:12px;color:#438d76;font-weight:400;margin-top:7px}
.recurring-income-row>b{white-space:nowrap;text-align:right}
.recurring-active{display:flex!important;align-items:center;gap:10px}
.recurring-active input{width:auto!important}
#recurring-income-form label{display:grid;gap:9px;color:#438d76;font-size:13px}
#recurring-income-form h2{color:#282f2c}
#recurring-income-form .dialog-actions{display:flex;justify-content:flex-end;gap:14px;margin-top:22px}
@media(min-width:651px) and (max-width:1200px){#dashboard .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-quick-summary{gap:18px}.home-quick-summary>button{padding:19px}.period-equation{grid-template-columns:repeat(2,minmax(0,1fr))}.period-equation .period-result{border-left:0;padding-left:0}}
@media(max-width:650px){.home-quick-summary{gap:14px;margin-bottom:20px}#dashboard .kpi-grid{gap:14px}#dashboard .kpi{padding:16px}.period-equation{grid-template-columns:1fr 1fr;gap:16px}.period-equation .period-result{border:0;padding-left:0}.recurring-income-panel{padding:18px}.recurring-income-row{gap:12px;flex-wrap:wrap}.current-period-summary h2{font-size:21px}}
#dashboard #analysis-content[hidden],#flujo .flow-chart-panel[hidden]{display:none!important}
.home-visual-dialog{width:min(900px,calc(100vw - 32px));max-height:90vh;overflow:auto;border-radius:24px;background:#f2f5eb}
.home-visual-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f2f5eb;padding:14px 24px 4px;color:#438d76;font-size:12px}
.home-visual-toolbar .icon-button{width:34px;height:34px;border-radius:10px;font-size:22px}
#home-visual-body>.analysis-panel{min-height:0;margin:0;padding:22px 30px 30px;background:linear-gradient(145deg,#f2f5eb,#f2f5eb);border:0;box-shadow:none;border-radius:0 0 24px 24px}
#home-visual-body h2{font-size:27px;margin:9px 0 0;color:#282f2c;letter-spacing:-.04em}
#home-visual-body .analysis-kicker{font-size:11px;letter-spacing:.15em;color:#438d76;margin:0}
#home-visual-body .analysis-banks header,#home-visual-body .analysis-fixed header{display:flex;gap:20px;justify-content:space-between;align-items:start}
#home-visual-body .analysis-banks header>strong,#home-visual-body .analysis-fixed header>strong{font-size:30px;white-space:nowrap;color:#438d76}
#home-visual-body .analysis-fixed header>strong{color:#9a6a13}
#home-visual-body .analysis-bank-list,#home-visual-body .analysis-card-list,#home-visual-body .analysis-fixed-list{margin-top:24px}
#home-visual-body .analysis-bank-row{padding:19px 0;font-size:18px;gap:20px}
#home-visual-body .analysis-bank-row>b{font-size:19px}
#home-visual-body .analysis-bank-row>span{min-width:0}
#home-visual-body .analysis-account-logo{flex-shrink:0;display:grid;place-items:center;width:48px;height:48px;border-radius:13px;font-size:12px;font-style:normal}
#home-visual-body .analysis-account-logo img,#home-visual-body .analysis-bank-logo img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
#home-visual-body .analysis-card-row{grid-template-columns:48px minmax(0,1fr) minmax(100px,.5fr) auto;padding:18px 0;gap:10px 14px}
#home-visual-body .analysis-bank-logo{width:48px;height:48px;font-size:12px;border-radius:13px}
#home-visual-body .analysis-card-row strong,#home-visual-body .analysis-card-row>b{font-size:17px}
#home-visual-body .analysis-card-row small{font-size:12px;margin-top:5px}
#home-visual-body .credit-card-balances{grid-column:2/-1;display:grid;grid-template-columns:1fr 1fr;gap:18px}
#home-visual-body .credit-card-balances>div{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;color:#438d76}
#home-visual-body .credit-card-balances b{font-size:16px;color:#282f2c}
#home-visual-body .credit-card-balances .positive{color:#128459}
#home-visual-body .analysis-fixed-row{padding:15px 0}
#home-visual-body .analysis-fixed-row strong,#home-visual-body .analysis-fixed-row b{font-size:16px}
#home-visual-body .analysis-fixed-row small,#home-visual-body .analysis-fixed-row em{font-size:12px}
#home-visual-body .analysis-donut-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:center;margin-top:30px}
#home-visual-body .analysis-donut{width:250px;height:250px;flex-shrink:0}
#home-visual-body .analysis-donut>div{width:154px;height:154px;background:#f2f5eb}
#home-visual-body .analysis-donut strong{font-size:25px;color:#282f2c}
#home-visual-body .analysis-donut span{font-size:15px;color:#438d76}
#home-visual-body .analysis-legend{max-height:440px;overflow:auto;scrollbar-width:thin;padding-right:6px}
#home-visual-body .analysis-legend>div{font-size:14px;gap:12px;padding:13px 0}
#home-visual-body .analysis-legend span small{font-size:12px;margin-top:5px}
#home-visual-body .analysis-panel-top button{font-size:13px;align-self:start;color:#438d76}
.home-forecast-panel{margin-top:20px;padding:24px;border-radius:20px;background:linear-gradient(145deg,#f2f5eb,#f2f5eb)}
.forecast-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.forecast-heading h2{font-size:23px;margin:8px 0;color:#282f2c}
.forecast-heading p:not(.eyebrow){font-size:12px;color:#438d76;margin:7px 0 0}
.forecast-heading>.ghost{font-size:12px;white-space:nowrap}
.forecast-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:23px 0 12px}
.forecast-highlights>div{border-left:2px solid #c4d5c6;padding-left:13px}
.forecast-highlights span{display:block;color:#438d76;font-size:11px}
.forecast-highlights b{display:block;color:#282f2c;font-size:21px;margin-top:7px;letter-spacing:-.03em}
.forecast-svg{margin-top:12px}
.forecast-svg svg{width:100%;display:block;overflow:visible}
.forecast-svg text{fill:#438d76;font-family:inherit;font-size:12px}
.forecast-grid{stroke:#f2f5eb;stroke-width:1}
.forecast-zero{stroke:#c4d5c6;stroke-width:1;stroke-dasharray:3 5}
.forecast-projection{fill:none;stroke:#c7942c;stroke-width:3;stroke-dasharray:7 5;stroke-linejoin:round;stroke-linecap:round}
.forecast-actual{fill:#438d76;stroke:#f2f5eb;stroke-width:3;cursor:pointer}
.forecast-hit{fill:transparent;stroke:transparent;stroke-width:7;cursor:pointer}
.forecast-hit:focus{outline:none;fill:#c7942c;stroke:#e8d4a4}
.forecast-selection{fill:#f2f5eb;stroke:#be8820;stroke-width:3;pointer-events:none}
.forecast-legend{display:flex;gap:22px;align-items:center;flex-wrap:wrap;margin:10px 0 20px;color:#438d76;font-size:11px}
.forecast-legend>span{display:flex;align-items:center;gap:7px}
.actual-dot{width:9px;height:9px;border-radius:50%;background:#438d76}
.estimated-dash{width:22px;border-top:2px dashed #c7942c}
.forecast-day-control{display:flex;gap:22px;align-items:center;border-top:1px solid #f2f5eb;padding-top:16px}
.forecast-day-control label{display:grid;gap:10px;flex:1;color:#438d76;font-size:12px}
.forecast-day-control input{width:100%;accent-color:#438d76;padding:0!important}
.forecast-day-control output{color:#063f32;font-size:13px;min-width:135px;text-align:right}
.forecast-day-detail{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(0,1.5fr);gap:22px;padding:17px 0}
.forecast-day-balance span{display:block;font-size:12px;color:#438d76}
.forecast-day-balance strong{display:block;font-size:24px;margin-top:8px;letter-spacing:-.03em}
.forecast-day-items p{margin:0;color:#438d76;font-size:12px;line-height:1.6}
.forecast-day-items>div{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f2f5eb;color:#063f32;font-size:13px}
.forecast-day-items small{display:block;color:#438d76;margin-top:5px;font-size:11px}
.forecast-day-items b{white-space:nowrap}
.forecast-assumptions{border-top:1px solid #f2f5eb;padding-top:14px;margin:0;color:#438d76;font-size:11px;line-height:1.65}
@media(max-width:700px){#home-visual-body>.analysis-panel{padding:15px 18px 24px}#home-visual-body h2{font-size:22px}#home-visual-body .analysis-donut-layout{grid-template-columns:1fr;justify-items:center}#home-visual-body .analysis-legend{width:100%}#home-visual-body .analysis-card-row{grid-template-columns:40px minmax(0,1fr) auto}#home-visual-body .analysis-card-row .analysis-usage{grid-column:2/4}#home-visual-body .credit-card-balances{grid-template-columns:1fr}#home-visual-body .analysis-bank-row{font-size:15px}#home-visual-body .analysis-bank-row>b{font-size:16px}#home-visual-body .analysis-banks header,#home-visual-body .analysis-fixed header{flex-direction:column;gap:10px}.home-forecast-panel{padding:18px}.forecast-heading{flex-direction:column;align-items:start;gap:12px}.forecast-heading h2{font-size:20px}.forecast-highlights{gap:8px}.forecast-highlights b{font-size:16px}.forecast-highlights span{font-size:10px;line-height:1.5}.forecast-day-detail{grid-template-columns:1fr;gap:13px}.forecast-svg{overflow-x:auto}.forecast-svg svg{min-width:580px}.forecast-day-control{gap:12px}.forecast-day-control output{min-width:105px;font-size:11px}}
