/* Budget keeps the shared Opale shell and existing funding controls. */
.budget-opale .sp-flow form{height:min(640px,calc(100dvh - 164px));min-height:470px;grid-template-rows:minmax(0,1fr) auto}
.budget-opale #recharge.onboarding-funding{display:contents}
.budget-opale .bu-profile{grid-row:1/3;overflow:clip}
.bu-profile-content{height:100%;overflow:auto;padding:3px;margin:-3px;box-sizing:content-box}
.budget-opale .sp-step-heading{margin-bottom:26px}
.budget-opale .sp-step-heading p{max-width:37ch}
.budget-opale #recharge .ws-funding-amount{font-size:13px;color:#485975}
.budget-opale .ws-funding-input{margin-top:12px;padding-bottom:10px;border-color:#9ba3bf}
.budget-opale #recharge .ws-funding-input input{font-size:40px;min-height:52px;color:#202e4c;letter-spacing:-.03em}
.budget-opale .ws-funding-input>span{font-size:25px}
.budget-opale #recharge .ws-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0 14px}
.budget-opale #recharge .ws-amounts button{min-height:46px;background:#ffffff70;border:1px solid #d9d9ee;padding:10px 18px;border-radius:10px;color:#354763;box-shadow:none}
.budget-opale #recharge .ws-amounts button:hover{background:#ffffffd9;border-color:#a49bdc}
.budget-opale #recharge .ws-amounts button[aria-pressed=true]{background:linear-gradient(115deg,#42688e,#7265a4);color:white;border-color:#9495c5}
.budget-opale .ws-choice-check{right:10px;top:17px;font-size:12px}
.budget-opale #recharge .ws-help{font-size:12px;color:#536080}
.bu-workspace{min-width:0;min-height:0;overflow:auto;padding:28px 32px 0;scrollbar-gutter:stable}
.budget-opale .ws-schedule{margin:0;padding:0;border:0}
.budget-opale .ws-schedule-heading{margin-bottom:8px;gap:14px}
.budget-opale .ws-schedule-heading h3{font-size:25px;line-height:1.25;letter-spacing:-.03em;color:#202d46}
.budget-opale .context-help-trigger{font-size:11px;min-height:34px;padding:7px 10px;white-space:nowrap}
.budget-opale #recharge .bu-intro{font-size:13px;color:#536080;line-height:1.5;margin:0 0 26px}
.budget-opale .ws-duration-options{gap:10px}
.budget-opale .ws-duration-options button{min-height:100px;padding:24px 12px 14px;border-radius:11px;background:#fbfaff;border-color:#dddff0;box-shadow:none}
.budget-opale .ws-duration-options button[aria-pressed=true]{background:linear-gradient(115deg,#526a94,#7b6697);border-color:#8b87b6;color:#fff}
.budget-opale .ws-duration-number{font-size:28px}
.budget-opale .ws-duration-caption{margin-top:14px;font-size:11px;white-space:normal}
.budget-opale .ws-schedule-custom{margin-top:22px;font-size:13px}
.budget-opale #campaign-duration{min-height:40px}
.budget-opale .funding-feedback{margin:24px 0 0;min-height:132px;padding:20px 22px;border-radius:12px}
.budget-opale .funding-plan-line{margin-bottom:16px}
.budget-opale .funding-feedback [data-daily-budget]{font-size:32px}
.budget-opale #recharge .bu-note{font-size:12px;line-height:1.5;color:#536080;margin:18px 0 0}
.budget-opale .sp-flow-actions{grid-column:2;justify-content:space-between;border-top:1px solid #e4e6f0;margin:18px 32px 0;padding:16px 0 22px;background:#fff}
.budget-opale .sp-flow-actions .sp-back{display:flex;align-items:center;gap:8px;font-size:13px;min-height:42px;padding:8px 0;color:#35425e}
.budget-opale .sp-back svg{width:18px;height:18px}
.budget-opale .sp-field-error{display:block;font-size:12px;line-height:1.4;color:#a32f47;margin-top:6px}
@media(min-width:761px) and (max-width:1100px){
 .bu-workspace{padding-inline:24px}
 .budget-opale .sp-flow-actions{margin-inline:24px}
 .budget-opale .ws-schedule-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}
 .budget-opale .ws-schedule-heading h3{font-size:23px}
 .budget-opale .ws-duration-options{gap:7px}
 .budget-opale .ws-duration-options button{padding-inline:8px}
 .budget-opale .ws-duration-number{font-size:25px}
 .budget-opale .ws-duration-caption{font-size:10px}
}
@media(min-width:761px) and (max-height:760px){
 .budget-opale .sp-flow form{height:calc(100dvh - 144px);min-height:440px}
 .budget-opale .sp-step-heading{margin-bottom:20px}
 .bu-workspace{padding-top:22px}
 .budget-opale #recharge .bu-intro{margin-bottom:18px}
 .budget-opale .sp-flow-actions{margin-top:14px;padding:12px 0 18px}
}
@media(min-width:761px) and (max-height:650px){
 .budget-opale .sp-flow form{height:calc(100dvh - 132px);min-height:440px}
 .budget-opale .sp-step-heading{margin-bottom:16px}
 .budget-opale #recharge .ws-funding-input input{font-size:34px;min-height:42px}
 .budget-opale #recharge .ws-amounts{margin:16px 0 10px;gap:8px}
 .budget-opale #recharge .ws-amounts button{min-height:40px;padding-block:8px}
 .budget-opale .ws-choice-check{top:13px}
 .bu-workspace{padding-top:16px}
 .budget-opale .ws-schedule-heading{margin-bottom:6px;gap:8px;flex-wrap:nowrap}
 .budget-opale .ws-schedule-heading h3{font-size:21px}
 .budget-opale .context-help-trigger{white-space:normal;max-width:145px;font-size:10px;padding:6px 8px}
 .budget-opale #recharge .bu-intro{margin-bottom:14px;font-size:12px}
 .budget-opale .ws-duration-options button{min-height:82px;padding-top:22px;padding-bottom:10px}
 .budget-opale .ws-duration-caption{margin-top:8px}
 .budget-opale .ws-schedule-custom{margin-top:14px;font-size:12px}
 .budget-opale #campaign-duration{min-height:36px}
 .budget-opale .funding-feedback{margin-top:16px;min-height:108px;padding:14px 18px}
 .budget-opale .funding-plan-line{margin-bottom:10px}
 .budget-opale .funding-feedback [data-daily-budget]{font-size:28px}
 .budget-opale #recharge .bu-note{margin-top:12px;font-size:11px}
 .budget-opale .sp-flow-actions{margin-top:12px;padding:8px 0 14px}
}
@media(min-width:761px){
 body.client-app #app-view:has(.budget-opale):has(>.client-error){height:calc(100dvh - 72px);display:flex;flex-direction:column}
 #app-view:has(>.client-error) .budget-opale{display:flex;flex-direction:column;flex:1;min-height:0;gap:0}
 #app-view:has(.budget-opale)>.client-error{flex:none;margin-bottom:8px}
 #app-view:has(>.client-error) .budget-opale .ix-review-nav{flex:none}
 #app-view:has(>.client-error) .budget-opale .sp-flow{flex:1;min-height:0}
 #app-view:has(>.client-error) .budget-opale .sp-flow form{height:100%;min-height:0}
}
@media(min-width:761px) and (max-height:650px){body.client-app #app-view:has(.budget-opale):has(>.client-error){height:calc(100dvh - 60px)}}
@media(max-width:760px){
 .budget-opale .sp-flow form{height:auto;min-height:0;display:block}
 .bu-profile-content{height:auto;overflow:visible}
 .budget-opale #recharge .ws-amounts button{min-height:46px}
 .bu-workspace{padding:22px 20px 0;overflow:visible;scrollbar-gutter:auto}
 .budget-opale .ws-schedule-heading{display:flex;flex-wrap:wrap;gap:12px}
 .budget-opale .ws-schedule-heading h3{font-size:23px}
 .budget-opale .context-help-trigger{min-height:44px;font-size:12px}
 .budget-opale #recharge .bu-intro{margin:12px 0 20px}
 .budget-opale .ws-duration-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .budget-opale .ws-duration-options button{min-height:100px;padding:22px 14px 14px}
 .budget-opale .ws-duration-caption{font-size:12px}
 .budget-opale #campaign-duration{font-size:16px;min-height:44px}
 .budget-opale .funding-feedback{padding:18px 15px;min-height:135px}
 .budget-opale .funding-feedback [data-daily-budget]{font-size:28px;white-space:normal}
 .budget-opale .funding-feedback [data-daily-budget] small{display:inline-block}
 .budget-opale .sp-flow-actions{margin:18px 20px 0;padding:12px 0 20px;flex-wrap:nowrap}
 .budget-opale .sp-flow-actions .sp-button{min-width:130px;font-size:13px}
}
.budget-opale #recharge .ws-duration-options button[aria-pressed=true] .ws-duration-caption{color:#fff}
@media(min-width:761px){
 .budget-opale .bu-workspace:has([data-duration-advice]:not([hidden])) .ws-duration-options button{min-height:82px;padding-top:22px;padding-bottom:10px}
 .budget-opale #recharge .bu-workspace:has([data-duration-advice]:not([hidden])) .bu-intro{margin-bottom:14px}
 .budget-opale .bu-workspace:has([data-duration-advice]:not([hidden])) .ws-schedule-custom{margin-top:12px}
 .budget-opale .bu-workspace:has([data-duration-advice]:not([hidden])) .funding-feedback{min-height:106px;padding:14px 18px;margin-top:12px}
 .budget-opale .bu-workspace:has([data-duration-advice]:not([hidden])) .funding-plan-line{margin-bottom:10px}
 .budget-opale .bill-duration-advice{margin-top:8px;gap:8px}
 .budget-opale .bill-duration-advice .ws-text-button{min-height:34px;font-size:11px}
}
.budget-opale .fv-summary{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.budget-opale .ws-schedule-custom>span{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:6px 8px}
.budget-opale .ws-schedule-custom>span>input{grid-column:1;grid-row:1}
.budget-opale .ws-schedule-custom>span>span:not(.fv-field-error){grid-column:2;grid-row:1}
.budget-opale .ws-schedule-custom .fv-field-error{grid-column:1/-1;grid-row:2;max-width:38ch;font-size:12px}
.budget-opale #recharge:has([name=budget][aria-invalid=true]) #funding-minimum{display:none}
@media(min-width:761px) and (max-height:650px){
 .bu-workspace{padding-top:12px}
 .budget-opale #recharge .bu-intro{margin-bottom:10px}
 .budget-opale .ws-schedule-custom{margin-top:10px}
 .budget-opale .funding-feedback{padding-block:10px;margin-top:12px;min-height:100px}
 .budget-opale #recharge .bu-note{margin-top:8px}
 .budget-opale .bu-workspace:has([data-duration-advice]:not([hidden])) .ws-duration-options button{min-height:70px;padding-top:17px;padding-bottom:8px}
 .budget-opale .bu-workspace:has([data-duration-advice]:not([hidden])) .ws-duration-caption{margin-top:4px}
 .budget-opale #recharge .bu-workspace:has([data-duration-advice]:not([hidden])) .bu-intro{margin-bottom:8px}
 .budget-opale .bu-workspace:has([data-duration-advice]:not([hidden])) .ws-schedule-custom{margin-top:8px}
 .budget-opale .bu-workspace:has([data-duration-advice]:not([hidden])) .funding-feedback{min-height:92px;padding:8px 14px;margin-top:8px}
 .budget-opale .bu-workspace:has([data-duration-advice]:not([hidden])) .funding-plan-line{margin-bottom:4px}
 .budget-opale .bill-duration-advice{margin-top:2px}
 .budget-opale #recharge .bu-workspace:has([data-duration-advice]:not([hidden])) .bu-note{margin-top:4px}
}
@media(min-width:761px){
 #app-view:has(>.client-error) .budget-opale .bu-workspace{padding-top:16px}
 #app-view:has(>.client-error) .budget-opale #recharge .bu-intro{margin-bottom:14px}
 #app-view:has(>.client-error) .budget-opale .ws-duration-options button{min-height:82px;padding-top:22px;padding-bottom:10px}
 #app-view:has(>.client-error) .budget-opale .ws-schedule-custom{margin-top:12px}
 #app-view:has(>.client-error) .budget-opale .funding-feedback{min-height:108px;padding:12px 18px;margin-top:12px}
 #app-view:has(>.client-error) .budget-opale .funding-plan-line{margin-bottom:8px}
 #app-view:has(>.client-error) .budget-opale #recharge .bu-note{margin-top:10px}
}
