:root{
  --dock-height:0px;
  --bg:#f2f2f7;--secondary-bg:#e9e9ee;--card:#fff;--text:#1c1c1e;--muted:#6e6e73;--line:rgba(60,60,67,.16);
  --indigo:#5856d6;--teal:#30b0c7;--blue:#0a84ff;--purple:#af52de;--orange:#ff9f0a;--green:#30d158;
  --dock:#333538;--dockText:#fff;--danger:#ff453a;--radius:18px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;color:var(--text);background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:245px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;padding:18px 14px;background:#fbfbfd;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:14px}.brand{border:0;background:transparent;display:flex;gap:10px;align-items:center;text-align:left;padding:7px;border-radius:12px}.brand img{width:40px;height:40px;border-radius:10px}.brand strong,.brand span{display:block}.brand strong{font-size:15px}.brand span{font-size:12px;color:var(--muted);margin-top:2px}.desktop-nav{display:flex;flex-direction:column;gap:5px}.desktop-nav button{border:0;background:transparent;text-align:left;padding:10px 11px;border-radius:10px;color:#4c4c50;font-weight:600}.desktop-nav button:hover{background:rgba(88,86,214,.07)}.desktop-nav button.active{background:rgba(88,86,214,.12);color:var(--indigo)}.sidebar-foot{margin-top:auto;padding:9px 10px;color:var(--muted);font-size:12px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:6px}
.main-shell{min-width:0}.topbar{position:sticky;top:0;z-index:30;min-height:52px;display:grid;grid-template-columns:52px 1fr auto;align-items:center;background:rgba(249,249,251,.90);backdrop-filter:saturate(170%) blur(20px);border-bottom:1px solid var(--line);padding:4px 10px}.title-wrap{text-align:center}.topbar h1{font-size:17px;line-height:1.2;margin:0;font-weight:650}.toolbar-actions{display:flex;gap:2px}.toolbar-button{width:38px;height:38px;border:0;background:transparent;border-radius:50%;font-size:22px;color:var(--indigo);display:grid;place-items:center}.toolbar-button:hover{background:rgba(88,86,214,.08)}.back-button{font-size:32px;line-height:1}.content{max-width:1220px;margin:0 auto;padding:16px 18px 60px}
.home-gradient{min-height:calc(100vh - 52px);margin:-16px -18px -60px;padding:16px 18px 60px;background:linear-gradient(135deg,var(--bg),rgba(88,86,214,.035),rgba(48,209,88,.035))}.home-section{padding:15px;border-radius:22px;border:1px solid rgba(60,60,67,.055);margin-bottom:14px}.home-section.indigo{background:rgba(88,86,214,.10)}.home-section.cyan{background:rgba(50,173,230,.10)}.home-section h2{font-size:20px;margin:0 0 4px}.home-section>p{font-size:13px;color:var(--muted);margin:0 0 14px}.home-list{display:flex;flex-direction:column;gap:10px}.home-row{border:1px solid rgba(60,60,67,.09);background:rgba(255,255,255,.80);border-radius:15px;padding:12px 13px;display:flex;align-items:center;text-align:left;gap:12px}.home-row:hover{background:#fff}.home-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:rgba(88,86,214,.10);font-weight:800;color:var(--indigo)}.home-row strong,.home-row span{display:block}.home-row strong{font-size:15px}.home-row span{font-size:12px;color:var(--muted);margin-top:2px}.chevron{margin-left:auto;color:#9a9aa0;font-size:20px}
.calculator-layout{display:grid;grid-template-columns:minmax(0,720px) minmax(300px,390px);gap:18px;align-items:start;justify-content:center}.form-stack{display:flex;flex-direction:column;gap:14px}.section-card{--tint:88,86,214;padding:15px;border-radius:18px;background:rgba(var(--tint),.07);border:1px solid rgba(var(--tint),.17)}.section-card.teal{--tint:48,176,199}.section-card.blue{--tint:10,132,255}.section-card.purple{--tint:175,82,222}.section-card.orange{--tint:255,159,10}.section-head{display:flex;align-items:center;gap:8px;margin-bottom:13px}.section-head .capsule{width:24px;height:5px;border-radius:10px;background:rgba(var(--tint),.75)}.section-head strong{font-size:17px;font-weight:650}.section-head .section-switch{margin-left:auto}.details-toggle{border:0;background:transparent;padding:4px 0;color:var(--text);font-weight:600;font-size:15px;display:flex;gap:7px;align-items:center}.details-copy{margin:9px 0 0;color:var(--muted);font-size:13px;line-height:1.42}.reward-segment-label{font-size:15px;font-weight:600;margin:12px 0 7px}.divider{height:1px;background:var(--line);margin:10px 0}
.field-list{display:flex;flex-direction:column;gap:11px}.field-row{display:flex;align-items:center;gap:12px;min-height:36px}.field-row>label:not(.switch),.field-label{font-size:15px;font-weight:500;flex:1;min-width:0}.field-row>.switch{width:48px;flex:0 0 48px}.field-control{margin-left:auto;width:min(45%,190px);min-width:125px}.control-wrap{height:36px;display:flex;align-items:center;border-radius:9px;background:#fff;border:1px solid rgba(60,60,67,.12);overflow:hidden}.control-wrap:focus-within{border:2px solid var(--blue)}.control-wrap input{width:100%;height:100%;border:0;outline:0;background:transparent;padding:0 10px;text-align:right;color:var(--text);font-size:15px}.control-wrap .affix{color:var(--muted);font-size:14px;padding:0 0 0 9px}.control-wrap .suffix{padding:0 9px 0 0}.field-row select{height:36px;width:100%;border:1px solid rgba(60,60,67,.12);border-radius:9px;background:#fff;padding:0 9px;color:var(--text)}.hint{font-size:12px;line-height:1.4;color:var(--muted);margin:-2px 0 2px}.seg-block{margin-top:2px}.seg-block .seg-title{font-size:15px;font-weight:600;margin:0 0 7px}.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:2px;background:#e4e4e8;border-radius:8px;gap:2px}.segmented button{min-width:0;border:0;border-radius:6px;background:transparent;padding:7px 5px;color:#3a3a3d;font-size:13px}.segmented button.selected{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12);font-weight:600}.switch{position:relative;width:48px;height:28px;flex:0 0 auto}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;inset:0;border-radius:30px;background:#c7c7cc;transition:.16s}.slider:before{content:"";position:absolute;width:24px;height:24px;left:2px;top:2px;border-radius:50%;background:white;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.16s}.switch input:checked+.slider{background:#34c759}.switch input:checked+.slider:before{transform:translateX(20px)}
.sim-dock{position:sticky;top:70px;background:var(--dock);color:white;border-radius:18px;overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.18)}.dock-results{padding:10px 12px 0}.why-button{border:0;background:transparent;color:rgba(255,255,255,.78);font-size:12px;font-weight:650;width:calc(100% - 112px);padding:0 0 7px}.ev-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dock-ev{border-radius:11px;min-height:67px;padding:7px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.dock-ev.math{background:rgba(10,132,255,.20)}.dock-ev.sim{background:rgba(48,209,88,.20)}.dock-ev .label{font-size:11px;font-weight:650;color:rgba(255,255,255,.70)}.dock-ev .value{font-size:19px;font-weight:750;margin:2px 0;color:white}.dock-ev .edge{font-size:11px;font-weight:650;color:rgba(255,255,255,.70)}.dock-placeholder{padding:6px 4px 2px;color:rgba(255,255,255,.72);font-size:13px;text-align:center}.dock-extra{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding-top:8px}.metric{min-width:0;min-height:66px;background:rgba(242,242,247,.96);border-radius:12px;padding:9px 10px;color:#333538}.metric span{display:block;font-size:11px;color:#48484a;margin-bottom:4px}.metric strong{display:block;font-size:15px;line-height:1.1;overflow-wrap:anywhere}.metric.experience{border:0;text-align:left;width:100%;cursor:pointer}.more-button{width:100%;height:28px;border:0;background:transparent;color:rgba(255,255,255,.80);font-size:12px;font-weight:650}.run-area{padding:10px 12px 7px}.progress-track{height:4px;border-radius:5px;background:rgba(255,255,255,.15);overflow:hidden;margin-bottom:7px}.progress-fill{height:100%;width:0;background:var(--green);transition:width .12s linear}.run-row{display:flex;gap:7px}.run-select{width:118px;border:1px solid rgba(255,255,255,.15);background:#484a4d;color:#fff;border-radius:9px;padding:0 8px;font-size:12px}.run-button{flex:1;min-height:40px;border:0;border-radius:9px;background:var(--green);color:#082b12;font-weight:700}.run-button.stop{background:rgba(255,69,58,.14);border:1px solid rgba(255,69,58,.55);color:#ff6961}.sim-tabs{border-top:1px solid rgba(255,255,255,.12);padding:6px;display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.sim-tab{border:0;background:transparent;color:rgba(255,255,255,.68);border-radius:10px;min-height:48px;padding:4px 1px;font-size:9px;font-weight:650;line-height:1.08}.sim-tab .tab-icon{display:block;font-size:17px;height:21px}.sim-tab.selected{background:rgba(255,255,255,.16);color:#fff}.error{padding:12px;border-radius:10px;background:rgba(255,69,58,.16);color:#ffb4ae;font-size:13px}.running-label{font-size:11px;color:rgba(255,255,255,.68);text-align:center;margin-bottom:6px}
.multi-layout{display:grid;grid-template-columns:minmax(0,760px) minmax(300px,390px);gap:18px;justify-content:center}.multi-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.primary-small{border:0;background:var(--indigo);color:white;border-radius:10px;padding:9px 13px;font-weight:650}.step-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px}.step-head{display:flex;gap:8px;align-items:center;margin-bottom:12px}.step-num{width:28px;height:28px;border-radius:9px;background:rgba(88,86,214,.12);color:var(--indigo);display:grid;place-items:center;font-weight:700}.step-type{height:34px;border:1px solid var(--line);border-radius:9px;background:white;padding:0 8px}.step-actions{margin-left:auto;display:flex;gap:5px}.step-actions button{border:0;background:#f0f0f4;border-radius:8px;width:30px;height:30px}.multi-result-rows{margin-top:8px}.multi-result-row{display:flex;justify-content:space-between;padding:7px 2px;border-top:1px solid rgba(255,255,255,.10);font-size:12px}
.sheet-dialog{width:min(520px,calc(100vw - 28px));border:0;border-radius:18px;padding:0;box-shadow:0 20px 70px rgba(0,0,0,.28)}.sheet-dialog::backdrop{background:rgba(0,0,0,.30);backdrop-filter:blur(3px)}.dialog-head{height:52px;display:flex;align-items:center;padding:0 10px 0 18px;border-bottom:1px solid var(--line)}.dialog-head strong{font-size:17px}.dialog-head button{margin-left:auto}.help-copy{padding:17px 20px 24px}.help-copy h3{font-size:15px;margin:16px 0 5px}.help-copy h3:first-child{margin-top:0}.help-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.small-dialog{max-width:430px}
@media(max-width:900px){
  .app-shell{display:block}.sidebar{display:none}.topbar{grid-template-columns:48px 1fr 76px;min-height:50px;padding:2px 6px}.toolbar-button{width:36px;height:36px}.content{padding:12px 14px calc(var(--dock-height) + 24px + env(safe-area-inset-bottom));max-width:none}.calculator-layout{display:block}.form-stack{gap:14px}.sim-dock{position:fixed;left:0;right:0;bottom:0;top:auto;border-radius:0;z-index:50;box-shadow:0 -5px 24px rgba(0,0,0,.20);max-height:calc(70vh - env(safe-area-inset-bottom));overflow:auto;padding-bottom:env(safe-area-inset-bottom)}.home-gradient{margin:-12px -14px calc(-1 * (var(--dock-height) + 24px + env(safe-area-inset-bottom)));padding:14px 14px 100px;min-height:calc(100vh - 50px)}.home-section{border-radius:22px}.multi-layout{display:block}.multi-layout>.sim-dock{position:fixed}.section-card{border-radius:18px}.desktop-only{display:none}
}
@media(min-width:901px){.back-button{visibility:hidden}.home-gradient{padding-bottom:30px}.mobile-only{display:none}}
@media(max-width:390px){.content{padding-left:10px;padding-right:10px}.section-card{padding:13px}.field-control{width:47%;min-width:116px}.dock-extra{grid-template-columns:repeat(3,1fr)}.metric{padding:8px;min-height:62px}.metric strong{font-size:14px}.run-select{width:106px}.sim-tab{font-size:8.5px}}

/* v3 parity pass: match the current iPhone app rather than a generic web dashboard. */
.home-copy{min-width:0;flex:1}.home-copy strong{display:block;color:var(--text);font-size:16px;line-height:1.18;font-weight:700}.home-copy>span{display:block;color:#8a8a8f;font-size:13px;line-height:1.25;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-row>span{margin-top:0}.home-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;color:#050505;background:#ecebff;display:grid;place-items:center}.home-icon svg{width:28px;height:28px;display:block}.home-icon.deposit{background:#ecebff}.home-icon.wager{background:#def1ff}.home-icon.second{background:#ffeadb}.home-icon.refund{background:#ffe1e8}.home-icon.sticky{background:#d9f6f3}.home-icon.multi{background:#ddf5fb}.home-icon.refund svg{width:30px;height:30px}.home-icon.sticky svg{width:29px;height:29px}.home-icon.multi svg{width:29px;height:29px}.home-row{min-height:59px;padding:10px 12px;border-radius:15px;background:#fff;border:1px solid rgba(60,60,67,.06);gap:12px}.home-row:hover{background:#fff}.home-row:active{transform:scale(.997);background:#fafafa}.chevron{font-size:28px;line-height:1;color:#b6b6bb;margin:0 2px 0 auto;font-weight:300}.home-section.indigo{background:rgba(88,86,214,.095)}.home-section h2{font-size:20px;line-height:1.15;margin:0 0 5px;font-weight:750;color:#111}.home-section>p{font-size:13px;line-height:1.28;margin:0 0 14px;color:#8a8a8f}.home-calc-section{padding:14px 13px 13px}.offline-note{display:none}.settings-gear{background:rgba(88,86,214,.10)!important;box-shadow:0 0 0 5px rgba(255,255,255,.72);font-size:24px!important;font-weight:700}.toolbar-button.settings-gear:hover{background:rgba(88,86,214,.12)!important}.topbar h1{color:#111}.sim-tab .tab-icon svg{width:19px;height:19px;margin:0 auto;color:currentColor}.full-run{width:100%;display:block;min-height:40px}.run-button:disabled{opacity:.45;cursor:default}.settings-copy{padding-top:10px}.settings-row{display:flex;gap:16px;align-items:center;padding:10px 0 15px}.settings-row>div{flex:1}.settings-row strong,.settings-row span{display:block}.settings-row strong{font-size:15px}.settings-row span{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.3}.settings-row select{height:36px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 9px}.session-note{padding-top:12px;border-top:1px solid var(--line)}

/* Multi Offer now follows the native app's list -> step editor flow. */
.multi-main{min-width:0}.multi-info{display:flex;gap:10px;align-items:flex-start;padding:14px;border-radius:16px;background:rgba(88,86,214,.08);font-size:13px;font-weight:600;line-height:1.45;margin-bottom:14px}.multi-info-icon{color:var(--indigo);font-size:21px;line-height:1}.multi-step-list{display:flex;flex-direction:column;gap:10px}.multi-step-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid rgba(60,60,67,.08);border-radius:16px;padding:12px 10px 12px 13px;min-height:68px;cursor:pointer}.multi-step-card:active{background:#f8f8fa}.step-circle{width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:rgba(88,86,214,.12);display:grid;place-items:center;font-weight:700}.step-copy{min-width:0;flex:1}.step-copy strong,.step-copy span{display:block}.step-copy strong{font-size:15px;line-height:1.2}.step-copy span{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.step-live{text-align:right;flex:0 0 auto}.step-result span,.step-result strong{display:block;font-size:11px;white-space:nowrap}.step-result span{color:#555}.step-result strong{color:#248a3d;margin-top:2px}.step-menu,.step-chevron{border:0;background:transparent;color:#8e8e93}.step-menu{width:31px;height:36px;font-size:16px;letter-spacing:1px}.step-chevron{width:25px;height:36px;font-size:26px;font-weight:300}.add-step-button{width:100%;min-height:46px;border:0;border-radius:11px;background:var(--indigo);color:#fff;font-weight:700;font-size:15px;margin-top:14px}.add-step-button:active{filter:brightness(.95)}.empty-steps{padding:28px 15px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center}.empty-steps .empty-icon{font-size:32px;color:#9a9aa0;margin-bottom:7px}.empty-steps strong{color:var(--text);font-size:16px}.empty-steps span{font-size:13px;margin-top:4px}.editable-step-head{margin-bottom:0}.step-title-input{min-width:0;flex:1;height:38px;border:1px solid rgba(88,86,214,.20);border-radius:9px;background:#fff;padding:0 10px;font-size:16px;font-weight:650;color:var(--text)}.step-title-input:focus{outline:2px solid rgba(10,132,255,.65);outline-offset:-1px}.editor-action-area{padding:12px}.type-picker{max-width:430px}.type-list{padding:10px;display:flex;flex-direction:column;gap:7px}.type-list button{border:0;background:#fff;border-radius:13px;min-height:58px;padding:9px 11px;display:flex;align-items:center;gap:12px;text-align:left}.type-list button:hover{background:#f6f6f8}.type-list button>span:nth-child(2){font-size:15px;font-weight:650;flex:1}.type-list b{font-size:24px;color:#b0b0b5;font-weight:300}.step-action-dialog{max-width:360px}.step-action-list{display:flex;flex-direction:column;padding:8px}.step-action-list button{border:0;background:transparent;text-align:left;padding:12px 13px;border-radius:10px;font-weight:600}.step-action-list button:hover{background:#f2f2f6}.step-action-list .danger-action{color:#d70015}.multi-result-rows{display:none}

@media(max-width:900px){
  .topbar{min-height:64px;grid-template-columns:48px 1fr 72px;padding:4px 10px;background:rgba(248,248,250,.95);border-bottom:0}.topbar h1{font-size:17px;font-weight:700}.toolbar-actions{justify-content:flex-end}.toolbar-button{width:40px;height:40px}.content{padding:12px 13px calc(var(--dock-height) + 24px + env(safe-area-inset-bottom))}.home-gradient{margin:-12px -13px calc(-1 * (var(--dock-height) + 24px + env(safe-area-inset-bottom)));padding:18px 13px 88px;background:linear-gradient(145deg,#f2f2f7,rgba(88,86,214,.026),rgba(90,200,180,.025))}.home-section{border-radius:21px;margin-bottom:14px}.home-calc-section{padding:14px 13px 13px}.home-list{gap:9px}.home-row{min-height:59px}.home-copy strong{font-size:16px}.home-copy>span{font-size:12.5px}.multi-layout{display:block}.multi-info{margin-bottom:12px}.multi-main{padding-bottom:6px}.multi-editor-layout{display:block}.type-picker{width:calc(100vw - 28px)}
}

.stream-warning{margin:8px 0 0;padding:8px 10px;border-radius:9px;background:rgba(255,159,10,.15);color:#ffd9a0;font-size:12px;line-height:1.35}
.multi-main.is-running{opacity:.92}.multi-main.is-running .step-actions button,.multi-main.is-running .add-step-button{pointer-events:none}
button:disabled{cursor:default;opacity:.55}
@media(max-width:900px){.sim-tabs{padding-bottom:max(6px,env(safe-area-inset-bottom))}.sim-dock .sim-tabs{padding-bottom:max(6px,env(safe-area-inset-bottom))}}
.dock-results.partial-result .dock-ev{opacity:.68}.dock-results.partial-result::before{content:'Partial result';display:block;width:max-content;margin:0 auto 7px;padding:3px 8px;border-radius:999px;background:rgba(255,159,10,.16);color:#ffd9a0;font-size:10px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}

.retry-countdown{margin-top:8px;font-size:12px;font-weight:700;opacity:.8}


/* Production 404 page */
.not-found-page{min-height:100vh;display:grid;place-items:center;padding:32px 20px;background:#f2f2f7}.not-found-card{width:min(520px,100%);background:#fff;border-radius:22px;padding:34px 28px;text-align:center;box-shadow:0 10px 35px rgba(0,0,0,.07)}.not-found-card img{width:76px;height:76px;margin-bottom:10px}.not-found-card h1{margin:0 0 10px;font-size:30px}.not-found-card p{margin:0 0 22px;color:#666;line-height:1.5}.not-found-card a{display:inline-block;padding:12px 18px;border-radius:12px;background:#e78978;color:#fff;text-decoration:none;font-weight:700}
