/* Mercado "Up or Down" — fiel ao print de referência */
html:has(#v-simulador.active),body:has(#v-simulador.active){overscroll-behavior-y:none}
#v-simulador.active{padding:0!important;margin:0 auto!important;max-width:560px!important;width:100%}
body:has(#v-simulador.active) #fab{display:none!important}
.ud{--g:#34c759;--r:#ff3b30;--s1:#142a22;--s2:#2c2c2e;--mut:#8e8e93;position:relative;width:min(100%,560px);height:calc(100dvh - env(safe-area-inset-top) - 10px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:0 20px calc(110px + env(safe-area-inset-bottom));background:linear-gradient(#0d0d0d,#000 260px);border-radius:32px 32px 0 0;color:#fff;font-family:system-ui,-apple-system,"SF Pro Text","Segoe UI",sans-serif;font-variant-numeric:tabular-nums;-webkit-tap-highlight-color:transparent;transform:translateY(100%);transition:transform .38s cubic-bezier(.16,1,.3,1)}
.ud button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
.ud-grab{display:flex;justify-content:center;padding:18px 0 22px;cursor:grab;touch-action:none}
.ud-grab i{width:34px;height:5px;border-radius:3px;background:#3a3a3c}
.ud-top{display:flex;align-items:center;justify-content:space-between}
.ud-coin{display:block;width:38px;height:38px}
.ud-acts{display:flex;gap:8px}
.ud-round-btn{width:38px;height:38px;border-radius:50%;border:0;background:var(--s1);display:grid;place-items:center;transition:transform .15s,background .2s}
.ud-round-btn:active{transform:scale(.92)}
.ud-round-btn.is-on svg{fill:#fff}
.ud-kicker{margin:18px 0 0;color:var(--mut);font-size:15px;font-weight:600}
.ud-title{display:inline-flex;align-items:center;gap:8px;margin:2px 0 0;padding:0;border:0;background:none;font-size:34px!important;font-weight:700!important;letter-spacing:-.5px;line-height:1.15}
.ud-title svg{color:var(--mut);margin-top:6px}
.ud-price{margin-top:4px;font-size:38px;font-weight:700;letter-spacing:-.4px;line-height:1.1;display:flex;height:42px;overflow:hidden}
.ud-price>span{display:inline-block;position:relative}
.ud-ru{animation:udRollUp .26s cubic-bezier(.16,1,.3,1)}
.ud-rd{animation:udRollDown .26s cubic-bezier(.16,1,.3,1)}
@keyframes udRollUp{from{transform:translateY(60%);opacity:0}}
@keyframes udRollDown{from{transform:translateY(-60%);opacity:0}}
.ud-status{margin:6px 0 0;font-size:17px;color:var(--mut);min-height:22px}
.ud-status.ud-up{color:var(--g)}.ud-status.ud-down{color:var(--r)}
.ud-meta{display:flex;align-items:center;gap:10px;margin-top:12px}
.ud-clock{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:15px;background:var(--s1);font-size:15px}
.ud-clock b{font-weight:500}
.ud-rules-btn{height:30px;padding:0 12px;border-radius:15px;border:0;background:none;color:var(--mut);font-size:14px!important}
.ud-src{margin-left:auto;color:#636366;font-size:11px}
.ud-chart{position:relative;height:255px;margin:20px -20px 0}
.ud-chart canvas{display:block;width:100%;height:100%}
.ud-fmt{position:absolute;left:12px;top:0;display:flex;gap:2px;padding:3px;border-radius:12px;background:rgba(28,28,30,.7)}
.ud-fmt button{width:30px;height:26px;border:0;border-radius:9px;background:none;color:#8e8e93;display:grid;place-items:center;transition:background .2s,color .2s}
.ud-fmt button.is-on{background:#3a3a3c;color:#fff}
.ud-fmt button:disabled{opacity:.3;cursor:default}
.ud-reconnect{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);margin:0;padding:4px 10px;border-radius:10px;background:rgba(28,28,30,.85);color:#c7c7cc;font-size:12px}
.ud-tabs{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:16px}
.ud-last{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 11px;border-radius:16px;background:var(--s1)}
.ud-last i{display:grid;place-items:center;width:12px;height:12px;font-style:normal;color:#48484a}
.ud-last i svg{width:11px;height:11px}
.ud-last i.ud-up{color:var(--g)}.ud-last i.ud-down{color:var(--r)}
.ud-tabs [data-range]{height:32px;padding:0 10px;border:0;border-radius:16px;background:none;color:#c7c7cc;font-size:17px!important;display:inline-flex;align-items:center;gap:6px;transition:background .2s,color .2s}
.ud-tabs [data-range].is-on{background:#f2f2f7;color:#000}
.ud-tabs [data-range] i{width:5px;height:5px;border-radius:50%;background:currentColor}
.ud-h2{margin:32px 0 18px;font-size:24px;font-weight:700;letter-spacing:-.3px}
.ud-rows{display:grid;gap:22px}
.ud-row{display:grid;grid-template-columns:28px 1fr auto 64px;align-items:center;gap:12px}
.ud-ic{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--s1);color:#d1d1d6}
.ud-name b{display:block;font-size:20px;font-weight:500}
.ud-name i{display:block;height:3px;max-width:120px;margin-top:5px;border-radius:2px;transition:width .4s cubic-bezier(.16,1,.3,1)}
.ud-row.ud-up .ud-name i{background:var(--g)}.ud-row.ud-down .ud-name i{background:var(--r)}
.ud-mult{font-size:20px}
.ud-pct{display:grid;place-items:center;height:32px;border-radius:16px;background:#0e2019;font-size:18px;font-weight:600}
.ud-row.ud-up .ud-pct{color:var(--g)}.ud-row.ud-down .ud-pct{color:var(--r)}
.ud-foot{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,560px);z-index:5;box-sizing:border-box;z-index:45;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 20px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#000 30%)}
.ud-cta{height:46px;border:0;border-radius:23px;background:var(--s1);font-size:20px!important;font-weight:600!important;transition:transform .12s,opacity .2s}
.ud-cta:active{transform:scale(.96)}
.ud-cta em{font-style:normal}
.ud-cta[data-side="up"] em{color:var(--g)}.ud-cta[data-side="down"] em{color:var(--r)}
.ud-foot.locked .ud-cta{opacity:.4;cursor:default}
.ud-foot.locked::before{content:attr(data-msg);position:absolute;left:0;right:0;top:-12px;text-align:center;color:var(--mut);font-size:12px}
/* folhas */
.ud-sheet-wrap{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,0);display:flex;align-items:flex-end;justify-content:center;transition:background .3s}
.ud-sheet-wrap.open{background:rgba(0,0,0,.5)}
.ud-sheet{width:min(100%,560px);max-height:88dvh;overflow:auto;box-sizing:border-box;padding:0 20px calc(20px + env(safe-area-inset-bottom));background:#142a22;border-radius:24px 24px 0 0;color:#fff;font-family:system-ui,-apple-system,sans-serif;transform:translateY(100%);transition:transform .32s cubic-bezier(.16,1,.3,1)}
.ud-sheet-wrap.open .ud-sheet{transform:none}
.ud-sheet button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
.ud-sheet-grab{display:flex;justify-content:center;padding:10px 0 6px;cursor:grab;touch-action:none}
.ud-sheet-grab i{width:34px;height:5px;border-radius:3px;background:#48484a}
.ud-sh-head{display:flex;align-items:center;justify-content:space-between;margin:4px 0 14px}
.ud-sh-head h3{margin:0;font-size:17px;font-weight:600}
.ud-x,.ud-ok{width:32px;height:32px;border-radius:50%;border:0;display:grid;place-items:center;padding:0}
.ud-x{background:#2c2c2e;color:#d1d1d6}
.ud-ok{background:var(--nx-brand,#b4a7f5);color:#fff}
.ud-sh-label{margin:18px 0 8px;color:#c7c7cc;font-size:15px;font-weight:600}
.ud-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin-bottom:8px;padding:8px 14px;border:0;border-radius:14px;background:#2c2c2e;text-align:left;font-size:16px!important}
.ud-opt>span:not(.ud-opt-coin){flex:1}
.ud-opt b{display:block;font-weight:500}.ud-opt small{color:#8e8e93;font-size:12px}
.ud-opt-coin{width:28px;height:28px;flex:none}
.ud-radio{width:20px;height:20px;border-radius:50%;border:2px solid #48484a;box-sizing:border-box;transition:all .2s}
.ud-opt.is-on .ud-radio{border:6px solid var(--nx-brand,#b4a7f5);background:#fff}
.ud-rules{color:#d1d1d6;font-size:15px;line-height:1.5}
.ud-dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:14px}
.ud-dl dt{color:#8e8e93}.ud-dl dd{margin:0;word-break:break-all}
.ud-note{color:#8e8e93;font-size:13px;text-align:center}
.ud-kv{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ud-kv span{padding:10px;border-radius:12px;background:#2c2c2e;color:#8e8e93;font-size:12px}
.ud-kv b{display:block;margin-top:3px;color:#fff;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.ud-amount{display:block;width:100%;margin:18px 0 10px;border:0;background:none;color:#fff;font:700 44px/1.1 system-ui,-apple-system,sans-serif;text-align:center;outline:none}
.ud-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ud-chips button{height:38px;border:0;border-radius:19px;background:#2c2c2e;font-size:15px!important;font-weight:600}
.ud-chips button:active{transform:scale(.95)}
.ud-ret{margin:16px 0 0;text-align:center;color:#c7c7cc}.ud-ret b{color:#fff}.ud-ret small{color:#8e8e93}
.ud-go{display:block;width:100%;height:50px;margin-top:6px;border:0;border-radius:25px;background:var(--nx-brand,#b4a7f5);color:#fff!important;font-size:17px!important;font-weight:600!important}
.ud-go:disabled{opacity:.45}
/* painel lateral */
.ud-side-wrap{position:fixed;inset:0;z-index:190;background:rgba(0,0,0,0);transition:background .3s}
.ud-side-wrap.open{background:rgba(0,0,0,.5)}
.ud-side{position:absolute;top:0;right:0;bottom:0;width:min(80vw,380px);box-sizing:border-box;overflow:auto;padding:calc(18px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));background:#111113;color:#fff;font-family:system-ui,-apple-system,sans-serif;transform:translateX(100%);transition:transform .32s cubic-bezier(.16,1,.3,1);touch-action:pan-y}
.ud-side-wrap.open .ud-side{transform:none}
.ud-bal{margin:0;font-size:30px;font-weight:700;font-variant-numeric:tabular-nums}
.ud-side-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.ud-side-acts button{height:44px;border:0;border-radius:22px;background:#2c2c2e;color:#fff;font:600 15px system-ui;cursor:pointer}
.ud-li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #1f1f22}
.ud-li i{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#142a22;flex:none}
.ud-li i.ud-up{color:#34c759}.ud-li i.ud-down{color:#ff3b30}
.ud-li span{flex:1;min-width:0}.ud-li b{display:block;font-size:14px;font-weight:500}.ud-li small{color:#8e8e93;font-size:12px}
.ud-li em{font-style:normal;font-size:12px;color:#8e8e93}.ud-li em.ud-won{color:#34c759}.ud-li em.ud-lost{color:#ff3b30}
.ud-empty{color:#8e8e93;font-size:13px}
@media (prefers-reduced-motion:reduce){.ud,.ud-sheet,.ud-side{animation:none;transition:none}}
.ud-name b,.ud-mult{color:#fff}
.ud-sheet input.ud-amount{height:auto!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;font:700 44px/1.1 system-ui,-apple-system,sans-serif!important}

/* folha de previsão em tela cheia */
html.ud-locked,html.ud-locked body{overflow:hidden}
.ud-full-wrap{position:fixed;inset:0;z-index:150;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,0);transition:background .3s}
.ud-full-wrap.open{background:rgba(0,0,0,.6)}
.ud-full-wrap.open .ud{transform:none}
.ud-foot{position:fixed}
.ud-mine-h{margin-top:26px}
/* tela inicial do Prever */
#v-simulador.active{padding:0 20px calc(30px + env(safe-area-inset-bottom))!important;margin:0 auto!important;max-width:600px!important;width:100%;box-sizing:border-box}
.udh{color:#fff;font-family:system-ui,-apple-system,"SF Pro Text","Segoe UI",sans-serif;font-variant-numeric:tabular-nums;-webkit-tap-highlight-color:transparent;animation:udhIn .35s cubic-bezier(.16,1,.3,1)}
@keyframes udhIn{from{opacity:0;transform:translateY(10px)}}
.udh button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
.udh-money{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 18px;padding:14px 16px;border-radius:22px;background:#141416}
.udh-money small{display:block;color:#8e8e93;font-size:12px}
.udh-money b{font-size:22px;font-weight:700}
.udh-money-acts{display:flex;gap:8px}
.udh-money-acts button{height:38px;padding:0 14px;border:0;border-radius:19px;background:#2c2c2e;font-size:14px!important;font-weight:600!important;transition:transform .12s}
.udh-money-acts button:first-child{background:var(--nx-brand,#b4a7f5);color:#0e2019!important}
.udh-money-acts button:active{transform:scale(.95)}
.udh-title{display:inline-flex;align-items:center;gap:6px;margin:6px 0 14px;padding:0;border:0;background:none;font-size:28px!important;font-weight:700!important;letter-spacing:-.4px}
.udh-title svg{color:#8e8e93;width:22px;height:22px}
.udh-card{display:block;padding:18px 0 18px;border-radius:28px;background:#141416;cursor:pointer;transition:transform .15s}
.udh-card:active{transform:scale(.99)}
.udh-card-top{display:flex;align-items:flex-start;gap:12px;padding:0 18px}
.udh-coin{width:36px;height:36px;flex:none}
.udh-card-px{flex:1;min-width:0}
.udh-card-px b{display:flex;font-size:19px;font-weight:700;height:24px;overflow:hidden}
.udh-card-px b>span{display:inline-block}
.udh-card-px small{color:#a1a1a6;font-size:15px}
.udh-card-clock{font-size:19px;font-weight:500}
.udh-card-chart{height:150px;margin-top:8px}
.udh-card-chart canvas{display:block;width:100%;height:100%}
.udh-card-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:6px 18px 0}
.udh-card-acts button{display:flex;align-items:center;justify-content:center;gap:8px;height:42px;border:0;border-radius:21px;background:#142a22;font-size:17px!important;font-weight:600!important;transition:transform .12s,opacity .2s}
.udh-card-acts button:active{transform:scale(.96)}
.udh-card-acts button:disabled{opacity:.4}
.udh-card-acts span{display:grid;place-items:center}.udh-card-acts .up{color:#34c759}.udh-card-acts .down{color:#ff3b30}
.udh-card-acts em{font-style:normal}
.udh-card-acts [data-buy="up"] em{color:#34c759}.udh-card-acts [data-buy="down"] em{color:#ff3b30}
.udh-h2{margin:30px 0 14px;font-size:26px;font-weight:700;letter-spacing:-.3px}
.udh-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.udh-tile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:18px;border:0;border-radius:24px;background:#141416;text-align:left;transition:transform .15s,background .2s}
.udh-tile:active{transform:scale(.97)}
@media(hover:hover){.udh-tile:hover,.udh-card:hover{background:#18181b}}
.udh-tile-coin{width:40px;height:40px;margin-bottom:10px}
.udh-tile b{font-size:19px;font-weight:700}
.udh-tile small{color:#a1a1a6;font-size:16px}
/* teclado de compra */
.ud-pad-wrap{position:fixed;inset:0;z-index:220;display:flex;justify-content:center;background:#000;transform:translateY(100%);transition:transform .34s cubic-bezier(.16,1,.3,1)}
.ud-pad-wrap.open{transform:none}
.ud-pad{display:flex;flex-direction:column;width:min(100%,520px);height:100%;box-sizing:border-box;padding:calc(env(safe-area-inset-top) + 12px) 22px calc(env(safe-area-inset-bottom) + 14px);color:#fff;font-family:system-ui,-apple-system,"SF Pro Text",sans-serif;font-variant-numeric:tabular-nums}
.ud-pad button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ud-pad-head{display:flex;align-items:center;gap:14px}
.ud-pad-head h3{flex:1;margin:0;font-size:20px;font-weight:600}
.ud-pad-x{width:40px;height:40px;border:0;border-radius:50%;background:#0e2019;display:grid;place-items:center;padding:0}
.ud-pad-round{color:#8e8e93;font-size:15px}
.ud-pad-amount{flex:1;display:flex;align-items:center;justify-content:center;font-size:clamp(56px,20vw,96px);font-weight:400;letter-spacing:-2px;color:#b5b5b8;transition:color .2s;min-height:120px}
.ud-pad-amount.has{color:#fff}
.ud-pad-amount.over{color:#ff453a}
.ud-pad-ret{margin:-8px 0 14px;text-align:center;color:#8e8e93;font-size:14px}
.ud-pad-asset{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 2px;border:0;background:none;font-size:18px!important}
.ud-pad-asset b{font-weight:600}.ud-pad-asset em{font-style:normal;color:#a1a1a6}
.ud-pad-asset svg{color:#a1a1a6}
.ud-pad-pcts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 8px}
.ud-pad-pcts button{height:48px;border:0;border-radius:24px;background:#111;font-size:18px!important;transition:transform .12s,background .2s}
.ud-pad-pcts button:active{transform:scale(.95);background:#142a22}
.ud-pad-keys{display:grid;grid-template-columns:repeat(3,1fr)}
.ud-pad-keys button{height:62px;border:0;background:none;font-size:28px!important;display:grid;place-items:center;border-radius:20px;transition:background .15s}
.ud-pad-keys button:active{background:#0e2019}
.ud-pad-go{height:54px;margin-top:6px;border:0;border-radius:27px;background:var(--nx-brand,#b4a7f5);color:#0e2019!important;font-size:17px!important;font-weight:650!important;transition:opacity .2s,transform .12s}
.ud-pad-go:disabled{opacity:.35}
.ud-pad-go:not(:disabled):active{transform:scale(.97)}
.ud-pad-note{margin:8px 0 0;text-align:center;color:#636366;font-size:12px}
@media(max-height:700px){.ud-pad-keys button{height:52px}.ud-pad-pcts{margin:10px 0 4px}}

}

/* folha de previsão travada (sem rolagem): tudo cabe na tela */
.ud-full-wrap{touch-action:none}
.ud{overflow:hidden!important;display:flex;flex-direction:column;padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
.ud-grab{padding:12px 0 12px}
.ud-kicker{margin-top:10px}
.ud-title{font-size:30px!important}
.ud-price{font-size:34px;height:38px}
.ud-status{font-size:16px;margin-top:4px}
.ud-meta{margin-top:8px}
.ud-chart{flex:1 1 auto;min-height:150px;height:auto;margin-top:10px}
.ud-tabs{margin-top:8px}
.ud-h2{margin:14px 0 10px;font-size:21px}
.ud-rows{gap:12px}
.ud-name b{font-size:18px}.ud-mult{font-size:18px}
.ud-pnl{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 0;padding:8px 12px;border-radius:14px;background:#141416;font-size:14px;animation:udhIn .3s ease}
.ud-pnl span{color:#a1a1a6}.ud-pnl b{font-weight:650}
.ud-pnl.ud-up b{color:#34c759}.ud-pnl.ud-down b{color:#ff3b30}
.ud-pnl[hidden]{display:none}
.udh-pnl{display:block;margin-top:2px;font-size:13px!important;font-weight:600}
.udh-pnl.ud-up{color:#34c759!important}.udh-pnl.ud-down{color:#ff3b30!important}
.udh-pnl[hidden]{display:none}
/* entradas subindo no gráfico */
.ud-bubbles{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.ud-bubble{position:absolute;bottom:18%;font:800 26px/1 system-ui,-apple-system,sans-serif;letter-spacing:-.5px;opacity:0;animation:udBubble 2.6s cubic-bezier(.16,1,.3,1) forwards;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.ud-bubble.ud-up{color:#34c759}.ud-bubble.ud-down{color:#ff3b30}
.ud-bubble.mine{font-size:30px}
@keyframes udBubble{0%{opacity:0;transform:translateY(10px) scale(.9)}15%{opacity:.95;transform:none}100%{opacity:0;transform:translateY(-120px)}}
/* LIVE com anel do tempo da rodada */
.ud-ring{width:16px;height:16px;transform:rotate(-90deg)}
.ud-ring circle{fill:none;stroke-width:2}
.ud-ring .bg{stroke:rgba(0,0,0,.15)}
.ud-ring .fg{stroke:currentColor;stroke-dasharray:40.84;stroke-dashoffset:0;transition:stroke-dashoffset 1s linear}
.ud-ring .dot{fill:currentColor;stroke:none;animation:udLive 1.6s ease-in-out infinite}
.ud-tabs [data-range]:not(.is-on) .ud-ring .bg{stroke:rgba(255,255,255,.15)}
@keyframes udLive{50%{opacity:.35}}
@media(max-height:720px){.ud-title{font-size:26px!important}.ud-price{font-size:30px;height:34px}.ud-h2{display:none}.ud-coin{width:32px;height:32px}.ud-round-btn{width:34px;height:34px}}

/* saldo do Prever no estilo do "Em operação" (sem cartão) */
.udh-money{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:end;gap:2px 12px;margin:4px 2px 22px;padding:0!important;background:none!important;border:0!important;border-radius:0!important}
.udh-money small{grid-column:1;color:#8e8e93;font-size:13px}
.udh-money b{grid-column:1;font-size:30px!important;font-weight:700;letter-spacing:-.5px;line-height:1.1}
.udh-money-acts{grid-column:2;grid-row:1 / span 2;display:flex;gap:14px;align-self:center}
.udh-act{display:flex!important;flex-direction:column;align-items:center;gap:5px;height:auto!important;padding:0!important;border:0!important;background:none!important;color:#c7c7cc!important;font-size:12px!important;font-weight:500!important}
.udh-act span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#142a22;color:#fff;transition:transform .12s,background .2s}
.udh-act[data-dep] span{background:var(--nx-brand,#b4a7f5);color:#0e2019}
.udh-act:active span{transform:scale(.92)}
.udh-money-acts button:first-child{background:none!important;color:#c7c7cc!important}
/* entrada em cascata na tela inicial */
.udh>*{animation:udhIn .45s cubic-bezier(.16,1,.3,1) both}
.udh>*:nth-child(2){animation-delay:.04s}.udh>*:nth-child(3){animation-delay:.08s}.udh>*:nth-child(4){animation-delay:.12s}.udh>*:nth-child(5){animation-delay:.16s}
.udh-tile{animation:udhIn .45s cubic-bezier(.16,1,.3,1) both}
.udh-tile:nth-child(1){animation-delay:.18s}.udh-tile:nth-child(2){animation-delay:.22s}.udh-tile:nth-child(3){animation-delay:.26s}.udh-tile:nth-child(4){animation-delay:.3s}
.ud-pad-hint{display:block;margin:-6px auto 10px;padding:6px 12px;border:0;border-radius:12px;background:#142a22;color:#c7c7cc;font-size:13px!important}
.ud-pad-hint[hidden]{display:none}
.ud-pad-amount{animation:udhIn .35s cubic-bezier(.16,1,.3,1)}
.ud-pad-keys button{animation:udhIn .4s cubic-bezier(.16,1,.3,1) both}
@media (prefers-reduced-motion:reduce){.udh>*,.udh-tile,.ud-pad-keys button,.ud-pad-amount{animation:none}}

/* folha de previsão em tela cheia, com voltar */
.ud{height:100dvh!important;border-radius:0!important;padding-top:env(safe-area-inset-top)!important}
.ud-grab{padding:8px 0 6px}
.ud-top{gap:10px;justify-content:flex-start!important}
.ud-top .ud-acts{margin-left:auto}
.ud-back{width:38px;height:38px;border:0;border-radius:50%;background:#142a22;display:grid;place-items:center;padding:0;color:#fff}
.ud-back svg{width:20px;height:20px}
.ud-back:active{transform:scale(.92)}
.udh-today{grid-column:1;font-size:12.5px!important;font-weight:600}
.udh-today.ud-up{color:#34c759!important}.udh-today.ud-down{color:#ff3b30!important}
.udh-today[hidden]{display:none}

/* Prever em tela própria: some a barra do topo, fica só o voltar */
body.ud-solo header.top{display:none!important}
body.ud-solo #v-simulador{padding-top:calc(env(safe-area-inset-top) + 6px)}
.udh-bar{display:flex;align-items:center;gap:12px;margin:2px 0 16px}
.udh-bar b{font-size:20px;font-weight:800;letter-spacing:-.3px}
.udh-bar .ud-back{transition:transform .15s}
body.ud-solo #v-simulador.view-in .udh{animation:udSoloIn .42s cubic-bezier(.16,1,.3,1) both}
@keyframes udSoloIn{from{opacity:0;transform:translateX(24px)}}
.udh-today:not([hidden]){animation:udhIn .4s cubic-bezier(.16,1,.3,1)}
.udh-pnl:not([hidden]){animation:udhIn .35s cubic-bezier(.16,1,.3,1)}
.ud-pad{animation:udPadIn .38s cubic-bezier(.16,1,.3,1)}
@keyframes udPadIn{from{opacity:0;transform:translateY(28px)}}
.ud-top>*{animation:udhIn .4s cubic-bezier(.16,1,.3,1) both}
.ud-top>*:nth-child(2){animation-delay:.04s}.ud-top>*:nth-child(3){animation-delay:.08s}
@media (prefers-reduced-motion:reduce){.udh,.ud-pad,.ud-top>*,.udh-today,.udh-pnl{animation:none!important}}

/* histórico do Prever */
.ud-hist{display:flex;flex-direction:column;width:min(100%,560px);height:100%;box-sizing:border-box;padding:calc(env(safe-area-inset-top) + 12px) 18px calc(env(safe-area-inset-bottom) + 14px);color:#fff;font-family:system-ui,-apple-system,"SF Pro Text",sans-serif;font-variant-numeric:tabular-nums;overflow:hidden}
.ud-hist-sum{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px;animation:udhIn .4s cubic-bezier(.16,1,.3,1) both}
.ud-hist-sum>div{background:#141416;border-radius:18px;padding:14px 16px}
.ud-hist-sum small{display:block;font-size:12.5px;color:#8e8e93;margin-bottom:4px}
.ud-hist-sum b{font-size:22px;font-weight:700}
.ud-hist-list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:8px;padding-bottom:10px}
.ud-hist-empty{margin:40px 10px;text-align:center;color:#8e8e93;font-size:15px;line-height:1.5}
.ud-hist-sk{height:52px;border-radius:18px;background:linear-gradient(90deg,#111,#1a1a1c,#111);background-size:200% 100%;animation:udSk 1.3s linear infinite}
.ud-hist-sk.row{height:62px}
@keyframes udSk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.ud-hist-sum{animation:none}}
.udh-tile.is-paused{opacity:.5}.udh-tile.is-paused small{color:#ff9f0a!important}
.ud-pad-out{display:flex;justify-content:center;gap:18px;margin:-4px 0 10px;font-size:14px;color:#8e8e93;animation:udhIn .3s cubic-bezier(.16,1,.3,1)}.ud-pad-out b{margin-left:4px;font-weight:700}.ud-pad-out b.ud-up{color:#34c759}.ud-pad-out b.ud-down{color:#ff3b30}
#toasts{z-index:100002!important}
.ud-pad-err{margin:0 0 8px;text-align:center;color:#ff453a;font-size:14px;font-weight:600;animation:udShake .35s}
@keyframes udShake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}

/* Prever no celular: sem o espaço da barra do topo (que fica oculta) e com o saldo enquadrado */
body.ud-solo main{padding-top:0!important;padding-left:0!important;padding-right:0!important}
body.ud-solo #v-simulador.active{padding-top:calc(env(safe-area-inset-top) + 10px)!important}
.udh-money{grid-template-columns:minmax(0,1fr) auto;align-items:center;margin:2px 0 20px}
.udh-money>*{min-width:0}
.udh-money b{font-size:clamp(25px,7.7vw,30px)!important;white-space:nowrap}
.udh-money small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.udh-act{min-width:54px}
@media (max-width:350px){.udh-money-acts{gap:8px}.udh-money b{font-size:22px!important}}

/* Histórico do Prever no mesmo padrão do histórico da carteira */
.ud-hist.cw-history-sheet{padding:calc(18px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));font-family:inherit}
.ud-hist .cw-history-head{margin-bottom:18px}
.ud-hist-list{gap:0}
.ud-hist-list .ud-hist-sk{margin-bottom:8px}
.ud-hist .cw-transfer-row{width:100%;flex:none;text-align:left;font:inherit;cursor:pointer}
.ud-hist .cw-transfer-row.is-open{opacity:.75}
.ud-hist .cw-transfer-icon{background:none;overflow:hidden}
.ud-hist .cw-transfer-icon svg{width:100%!important;height:100%!important}
.ud-hist .cw-transfer-heading .ud-up{color:#34c759}
.ud-hist .cw-transfer-heading .ud-down{color:#ff3b30}
.ud-hist .cw-transfer-row>strong.up{color:#29dc78}
.ud-hist .cw-transfer-row>strong.down{color:#ff3b30}
