/* Phase 2 — intentionally scoped; preserve the already approved Phase 1 layouts. */
.u2p2-rec-group{margin:14px 0 20px;padding:13px;border-radius:18px;border:1px solid rgba(8,86,62,.14);background:rgba(247,250,248,.47)}
.u2p2-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#164c3d;font-size:15px;margin-bottom:4px}
.u2p2-section-head span{font-size:12px;opacity:.7}
.u2p2-rec-group>p,.u2p2-rec-copy small,.u2p2-muted{font-size:12px;line-height:1.5;color:#647c74}
.u2p2-rec-row{display:flex;gap:12px;align-items:flex-start;border-radius:14px;padding:12px 9px;cursor:pointer;border-bottom:1px solid rgba(20,70,55,.1)}
.u2p2-rec-row:last-child{border-bottom:0}.u2p2-rec-row>input{margin:5px 0 0;flex:0 0 19px;width:19px;height:19px;accent-color:#096047}
.u2p2-rec-copy{display:block;min-width:0;flex:1}.u2p2-rec-copy strong,.u2p2-rec-copy small{display:block}.u2p2-rec-copy strong{color:#123d31;font-size:14px}
.u2p2-limits{display:flex;flex-wrap:wrap;gap:5px 15px;margin-top:6px;font-size:12px;color:#42695b}.u2p2-limits b{font-variant-numeric:tabular-nums}
.u2p2-wide{width:100%;max-width:none!important;min-height:44px;margin-top:10px;text-align:center}
.u2p2-error{color:#b73c41;font-size:13px}
.u2p2-edit-row{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:10px 0;padding:10px;border-radius:13px;border:1px solid rgba(24,90,68,.14)}
.u2p2-edit-row label{min-width:0;flex:1;font-weight:650;color:#174e3e}.u2p2-edit-row small{display:block;font-weight:400;color:#72877d}
.u2p2-edit-row input{width:min(42%,160px);text-align:right;min-width:90px;border:1px solid #d3e1da;border-radius:10px;padding:10px 9px;background:#fff;color:#173b2f}
.u2p2-scenario-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.u2p2-choice{min-height:47px;border-radius:14px;border:1px solid rgba(11,93,66,.19)!important;background:rgba(255,255,255,.57)!important;color:#174f3d!important;font-size:12px!important;font-weight:700!important;padding:9px 7px!important;white-space:normal!important;line-height:1.25!important}
.u2p2-choice.selected{background:#e3f1e9!important;border-color:#64b798!important;box-shadow:0 0 0 1px rgba(15,114,74,.1)}
.u2p2-scenario-entry{display:grid;gap:8px;padding:14px;border-radius:17px;background:rgba(227,245,235,.48);border:1px solid rgba(37,111,79,.15)}
.u2p2-scenario-entry>label{font-size:13px;font-weight:700;color:#1c5a47}
.u2p2-scenario-entry input[type=number],.u2p2-scenario-entry select{width:100%;min-height:42px;padding:9px 12px;border:1px solid #bed8cb;border-radius:12px;background:#fff;color:#163e32;font-size:16px;box-sizing:border-box}
.u2p2-scenario-entry input[type=range]{width:100%;accent-color:#086146}
.u2p2-scenario-entry small{font-size:12px;line-height:1.5;color:#55766a}
.u2p2-scenario-entry [hidden]{display:none!important}.u2p2-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.u2p2-actions button{min-height:44px;white-space:normal;line-height:1.3;padding:9px 11px}
.u2p2-actions button:first-child{grid-column:1/-1}
.u2p2-compare{margin-top:14px;padding:13px;border-radius:15px;border:1px solid rgba(23,97,65,.2)}.u2p2-compare>strong{display:block;margin-bottom:6px}
.u2p2-compare>div{display:flex;gap:10px;justify-content:space-between;padding:6px 0;font-size:12px;flex-wrap:wrap}
.u2p2-entry{border:1px solid rgba(9,107,71,.17);border-radius:15px;padding:12px;margin-bottom:14px;background:rgba(235,250,241,.75)}
.u2p2-entry>div:first-child small{display:block;font-size:12px;line-height:1.5;color:#64776c;margin-top:3px}
.u2p2-entry>div:nth-child(2){display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.u2p2-entry button{font-size:12px;min-height:38px}.u2p2-entry p{font-size:12px;color:#546f63}
@media(max-width:390px){.u2p2-scenario-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.u2p2-limits{display:block}.u2p2-limits>span{display:block}}
@media(prefers-reduced-motion:reduce){.u2p2-choice{transition:none!important}}

/* Session-only combined Aavi / What-if preview in Smart Budgeter. */
.u2p2-preview-holder{margin:12px 0 8px}.u2p2-preview-holder .u2-preview{margin:0}
.u2p2-combined p{font-size:12px;line-height:1.5;margin-top:10px}
.u2p2-saved-note{font-size:12px;line-height:1.5;color:#536c5e}
.u2p2-discard{width:100%;max-width:none!important;margin:8px 0 12px;min-height:40px}

.u2p2-aavi-feedback{color:#195b45;font-size:12px;line-height:1.5;padding:9px 11px;border-radius:12px;background:rgba(185,228,207,.27)}
.u2p2-combined-live{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:9px 0;padding:8px 0;border-top:1px solid rgba(22,79,53,.12);font-size:12px}

.u2p2-compare-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.u2p2-compare-row span{flex:1;min-width:110px}.u2p2-compare-row button{min-height:34px;padding:6px 10px}

/* Oct 28 QA: hide duplicate native range only when enhanced ruler is attached. */
#u2p2-slider[data-ruler="1"]{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important;overflow:hidden!important}

/* What-if: comparison items have stable spacing; never overlap or crowd on iPhone. */
#modal-root .u2p2-compare {padding:14px!important;}
#modal-root .u2p2-compare > strong {margin:0 0 11px!important;line-height:1.3!important;}
#modal-root .u2p2-compare > .u2p2-compare-row {
 display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;
 align-items:center!important;gap:8px 10px!important;
 padding:11px 0!important;margin:0!important;
 border-top:1px solid var(--baakee-glass-border,rgba(130,145,135,.14))!important;
 font-size:12px!important;
}
#modal-root .u2p2-compare-row > span {min-width:0!important;overflow-wrap:anywhere!important;line-height:1.4!important;}
#modal-root .u2p2-compare-row > b {min-width:0!important;white-space:normal!important;text-align:right!important;line-height:1.4!important;}
#modal-root .u2p2-compare-row > button {flex:none!important;min-height:32px!important;margin:0!important;padding:6px 9px!important;}
@media(max-width:440px){
 #modal-root .u2p2-compare > .u2p2-compare-row {grid-template-columns:minmax(0,1fr) auto!important;row-gap:6px!important;}
 #modal-root .u2p2-compare-row > button {grid-column:2!important;justify-self:end!important;}
 #modal-root .u2p2-compare-row > b {grid-column:2!important;grid-row:1!important;}
}
