/* XXL R calculations, deliberately reusing R Model/Data Center proportions. */
.sxxl-calculations .sxxl-calc-command{align-items:start}
.sxxl-calculations .sxxl-calc-command .sxxl-controls{width:100%}
.sxxl-calculations .sxxl-calc-explanation{margin-top:22px;border:1px solid #ffffff30;background:#ffffff12;border-radius:15px;padding:15px 17px;display:grid;gap:7px;max-width:610px}
.sxxl-calculations .sxxl-calc-explanation strong{font-size:12px;color:#e0f2fe}
.sxxl-calculations .sxxl-calc-explanation span{font-size:13px;color:#d7e8f4;line-height:1.55}
.sxxl-calculations .sxxl-calc-submit{width:100%;margin-top:2px}
.sxxl-calculations .sxxl-timeframe{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.sxxl-calculations .sxxl-calc-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.sxxl-calculations .sxxl-calc-panel{margin-bottom:18px}
.sxxl-calc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.sxxl-calc-head .sxxl-note{margin-bottom:8px}
.sxxl-calc-head-stat{border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:12px;padding:8px 12px;white-space:nowrap}
.sxxl-calc-head-stat strong{font-weight:900}
.sxxl-calc-bars{display:grid;gap:12px}
.sxxl-calc-bar-row{display:grid;grid-template-columns:100px minmax(0,1fr) 88px;align-items:center;gap:12px;font-size:13px}
.sxxl-calc-bar-row>strong:first-child{color:#102b48}
.sxxl-calc-bar-track{background:#e5eaf0;height:13px;border-radius:999px;overflow:hidden}
.sxxl-calc-bar-fill{height:100%;min-width:0;border-radius:999px;transition:width .18s ease}
.sxxl-calc-bar-fill.positive{background:#16a34a}.sxxl-calc-bar-fill.negative{background:#dc2626}
.sxxl-calc-bar-num{text-align:right;font-variant-numeric:tabular-nums}
.sxxl-calculations .sxxl-calc-table th:not(:first-child),.sxxl-calculations .sxxl-calc-table td:not(:first-child){text-align:right}
.sxxl-calculations .sxxl-calc-table td{font-variant-numeric:tabular-nums}
.sxxl-calc-trade-wrap{max-height:610px}
.sxxl-calculations .sxxl-calc-excluded td{background:#f8fafc;color:#94a3b8}
.sxxl-calculations .sxxl-calc-excluded td[data-xxl-outcome-cell]{color:#64748b!important;font-style:italic}
.sxxl-calculations .sxxl-calc-target{font-weight:800}
.sxxl-calculations .sxxl-calc-disclaimer{padding:0 5px 15px;font-size:12px;color:#64748b;line-height:1.5}
.sxxl-calculations .sxxl-card .sxxl-value{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:1170px){.sxxl-calculations .sxxl-calc-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.sxxl-calculations .sxxl-calc-command{grid-template-columns:1fr}.sxxl-calculations .sxxl-calc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sxxl-calc-head{flex-wrap:wrap}.sxxl-calc-bar-row{grid-template-columns:68px minmax(0,1fr) 70px;gap:8px;font-size:11px}}
@media(max-width:480px){.sxxl-calculations .sxxl-calc-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sxxl-calculations .sxxl-card{padding:14px}.sxxl-calculations .sxxl-card .sxxl-value{font-size:22px}.sxxl-calculations .sxxl-calc-panel{padding:16px}.sxxl-calculations .sxxl-control-grid{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.sxxl-calc-bar-fill{transition:none}}

/* Optional dual target controls: First Stop | Take Home | Second Stop. */
.sxxl-calculations .sxxl-calc-second-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #ffffff35;background:#ffffff12;border-radius:13px;cursor:pointer;color:#fff}
.sxxl-calculations .sxxl-calc-second-label{display:grid;gap:3px}
.sxxl-calculations .sxxl-calc-second-label strong{font-size:12px;font-weight:900}
.sxxl-calculations .sxxl-calc-second-label small{font-size:11px;color:#d7e8f4}
.sxxl-calculations .sxxl-calc-second-toggle input{position:absolute;width:1px;height:1px;opacity:0}
.sxxl-calculations .sxxl-calc-toggle-track{display:block;flex:0 0 50px;width:50px;height:29px;border-radius:999px;background:#718096;padding:3px;transition:background .18s}
.sxxl-calculations .sxxl-calc-toggle-knob{display:block;background:#fff;width:23px;height:23px;border-radius:50%;box-shadow:0 1px 4px #0003;transition:transform .18s}
.sxxl-calculations .sxxl-calc-second-toggle input:checked~.sxxl-calc-toggle-track{background:#16a34a}
.sxxl-calculations .sxxl-calc-second-toggle input:checked~.sxxl-calc-toggle-track .sxxl-calc-toggle-knob{transform:translateX(21px)}
.sxxl-calculations .sxxl-calc-second-toggle:focus-within{outline:2px solid #7dd3fc;outline-offset:2px}
.sxxl-calculations .sxxl-calc-target-grid{display:grid;grid-template-columns:1fr;gap:10px}
.sxxl-calculations .sxxl-calc-target-grid.is-double{grid-template-columns:repeat(3,minmax(0,1fr))}
.sxxl-calculations .sxxl-calc-second-field{display:none}
.sxxl-calculations .sxxl-calc-target-grid.is-double .sxxl-calc-second-field{display:block}
.sxxl-calculations .sxxl-calc-target-grid .sxxl-field input{min-width:0;width:100%}
.sxxl-calculations .sxxl-calc-partial{color:#0369a1;font-weight:900}
@media(max-width:1000px){.sxxl-calculations .sxxl-calc-target-grid.is-double{grid-template-columns:1fr}}
