/* FAR-154/FAR-65 visual contract: RTL sidebar + automatic/manual day/night */
html[dir=rtl] body.mockup-visual-lock #app.app.marfa-converted{direction:rtl!important;grid-template-columns:minmax(0,1fr) 240px!important}
html[dir=rtl] body.mockup-visual-lock #app.app.marfa-converted>.side{position:fixed!important;right:0!important;left:auto!important;width:240px!important;border-right:0!important;border-left:1px solid var(--ml-border)!important;direction:rtl!important}
html[dir=rtl] body.mockup-visual-lock #app.app.marfa-converted>.main{grid-column:1!important;margin-right:240px!important;margin-left:0!important;direction:rtl!important}
body.mockup-visual-lock{--ml-bg:#070b0f;--ml-panel:#0a0f13;--ml-card:#0d1419;--ml-card2:#0a1014;--ml-border:#243038;--ml-grid:#172129;--ml-text:#dce5e8;--ml-muted:#81909a;--ml-input:#0f151a;--ml-metric:#0b1217;--ml-gold:#f0cd80}
body.mockup-visual-lock.v7-light{--ml-bg:#f3f5f7;--ml-panel:#ffffff;--ml-card:#ffffff;--ml-card2:#f8fafb;--ml-border:#dfe4e8;--ml-grid:#e8ecef;--ml-text:#182027;--ml-muted:#707b84;--ml-input:#f7f9fa;--ml-metric:#f7f9fa;--ml-gold:#9a6d22}
body.mockup-visual-lock.v7-dark{color-scheme:dark}
body.mockup-visual-lock.v7-light{color-scheme:light}
body.mockup-visual-lock{background:var(--ml-bg)!important;color:var(--ml-text)!important}
body.mockup-visual-lock #app{background:var(--ml-bg)!important}
body.mockup-visual-lock .side{background:var(--ml-panel)!important;border-color:var(--ml-border)!important;color:var(--ml-text)!important}
body.mockup-visual-lock .side .brand,body.mockup-visual-lock #nav button{background:var(--ml-panel)!important;color:var(--ml-text)!important}
body.mockup-visual-lock #nav button.active{background:linear-gradient(90deg,#3a2d16,#171a1d)!important;color:#f1cf86!important;border-inline-start:3px solid #d9a84c!important}
body.mockup-visual-lock .main>.top{background:var(--ml-panel)!important;border-bottom:1px solid var(--ml-border)!important;color:var(--ml-text)!important}
body.mockup-visual-lock .v7-search input{background:var(--ml-input)!important;border-color:var(--ml-border)!important;color:var(--ml-text)!important}
.mockup-lock-dashboard{direction:rtl;padding:10px 12px 18px;background:var(--ml-bg);display:grid;gap:10px}
.ml-row{display:grid;gap:10px;min-width:0}.ml-command{grid-template-columns:2.1fr .95fr 1.05fr}.ml-market-row{grid-template-columns:2.15fr 1.05fr 1.05fr 1.05fr}.ml-mid-row{grid-template-columns:1.2fr .9fr 1.1fr .9fr .95fr}.ml-bottom-row{grid-template-columns:1.15fr 1fr .9fr .95fr}
.ml-card{background:linear-gradient(180deg,var(--ml-card),var(--ml-card2));border:1px solid var(--ml-border);border-radius:10px;box-shadow:0 0 0 1px #0006 inset;min-width:0;padding:10px 12px;overflow:hidden}
.ml-card>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1c262d;padding-bottom:7px;margin-bottom:8px}.ml-card h3{margin:0;font-size:13px;color:var(--ml-text)}.ml-card header span{color:var(--ml-muted)}.ml-command .ml-card{min-height:158px}.ml-market-row .ml-card{min-height:310px}.ml-mid-row .ml-card{min-height:235px}.ml-bottom-row .ml-card{min-height:180px}
.ml-command-grid,.ml-deriv,.ml-kpis,.ml-chart-stats{display:grid;gap:8px}.ml-command-grid{grid-template-columns:repeat(4,1fr)}.ml-deriv{grid-template-columns:repeat(3,1fr)}.ml-kpis{grid-template-columns:repeat(3,1fr)}.ml-chart-stats{grid-template-columns:repeat(4,1fr);margin-top:8px}
.ml-metric{padding:9px;border:1px solid var(--ml-border);border-radius:8px;background:var(--ml-metric);display:grid;gap:4px}.ml-metric small{font-size:9px;color:var(--ml-muted)}.ml-metric b{font-size:18px;color:var(--ml-text)}.ml-metric em{font-style:normal;font-size:9px;color:#34c58d}
.ml-list{display:grid;gap:7px}.ml-list p{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0;padding:7px 8px;border-bottom:1px solid var(--ml-border)}.ml-list b{font-size:11px;color:var(--ml-text)}.ml-list span{font-size:10px;color:#58d89f}.ml-chart-card{min-height:310px}.ml-chart-head{display:flex;gap:10px;align-items:center;margin-bottom:6px}.ml-chart-head b{color:#f1c96f}.ml-chart-head span{font-weight:800}.ml-chart-head em{font-style:normal;color:#31c48d}.ml-chart-card svg{width:100%;height:205px;background:repeating-linear-gradient(0deg,var(--ml-card2) 0,var(--ml-card2) 40px,var(--ml-grid) 41px),repeating-linear-gradient(90deg,transparent 0,transparent 70px,var(--ml-grid) 71px)}
.ml-heat{height:205px;border:1px solid var(--ml-border);border-radius:8px;background:linear-gradient(180deg,var(--ml-card2),var(--ml-card));display:grid;grid-template-columns:repeat(6,1fr);gap:2px;padding:4px}.ml-heat i{background:linear-gradient(180deg,#29473e,#9b7a34 48%,#7b3340);opacity:.8}.ml-tabs{display:flex;gap:6px;margin-top:7px}.ml-tabs span{font-size:9px;padding:5px 7px;border:1px solid var(--ml-border);border-radius:6px;color:var(--ml-muted)}.ml-ai{display:grid;gap:10px}.ml-ai p{margin:0;color:var(--ml-muted);font-size:11px;line-height:1.8}.ml-ai div{padding:10px;border:1px solid var(--ml-border);border-radius:8px;color:var(--ml-gold)}.ml-ai button{border:1px solid #8e6e34;background:#1a150d;color:var(--ml-gold);border-radius:7px;padding:8px}.ml-donut{width:90px;height:90px;border-radius:50%;margin:14px auto;background:conic-gradient(#f0a83d 0 38%,#5bc8b5 38% 62%,#5b8df6 62% 82%,#8c67d8 82% 100%);position:relative}.ml-donut:after{content:"";position:absolute;inset:18px;background:var(--ml-card2);border-radius:50%}.ml-risk{font-size:10px;color:var(--ml-muted)}.ml-risk b{float:left;color:var(--ml-text)}.ml-token{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.ml-token>*{padding:8px;border:1px solid var(--ml-border);border-radius:8px}.ml-equity{height:70px;margin-top:12px;background:linear-gradient(180deg,transparent,#103b32 100%),linear-gradient(165deg,transparent 49%,#32c895 50%,transparent 51%)}
body.v7-ui .mockup-lock-dashboard .ml-top-movers-card .ml-movers-tabs{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:3px!important;margin:7px 8px 4px!important;padding:3px!important;border:1px solid #243442!important;border-radius:6px!important;background:#0b151f!important}
body.v7-ui .mockup-lock-dashboard .ml-top-movers-card .ml-movers-tabs span{text-align:center!important;padding:4px 2px!important;font-size:7px!important;color:#81919c!important}body.v7-ui .mockup-lock-dashboard .ml-top-movers-card .ml-movers-tabs .active{background:#342a18!important;color:#f1cf7d!important;border-radius:4px!important}
body.v7-ui .mockup-lock-dashboard .ml-top-movers p{min-height:29px!important}body.v7-ui .mockup-lock-dashboard .ml-top-movers p>span{display:flex!important;gap:6px!important;direction:ltr!important;align-items:center!important}body.v7-ui .mockup-lock-dashboard .ml-top-movers .ml-qprice{font:600 8px Inter!important;color:#cbd5db!important;font-style:normal!important}body.v7-ui .mockup-lock-dashboard .ml-top-movers .ml-chg{font:700 8px Inter!important;color:#27c894!important;font-style:normal!important}body.v7-ui .mockup-lock-dashboard .ml-top-movers .ml-chg.down{color:#ef6670!important}
/* TASK-09 DERIVATIVES CARD LOCK — active mockup renderer only */
body.v7-ui .mockup-lock-dashboard .ml-derivatives-card .ml-deriv{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:8px!important}body.v7-ui .mockup-lock-dashboard .ml-derivatives-card .ml-metric{min-width:0!important}body.v7-ui .mockup-lock-dashboard .ml-derivatives-card .ml-metric b{font:700 11px Inter!important;white-space:nowrap!important}body.v7-ui .mockup-lock-dashboard .ml-deriv-meta{display:flex!important;justify-content:space-between!important;gap:6px!important;padding:5px 9px 8px!important;border-top:1px solid #23313d!important;font:600 7px Inter!important;color:#80909c!important;direction:ltr!important}body.v7-ui .mockup-lock-dashboard #mlDerivSource{max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#25c493!important}

/* TASK-12 SMART MONEY — isolated; tasks 1-11 remain locked */
.ml-smart-card .ml-smart-money p{min-height:31px!important}.ml-smart-card .ml-smart-money span{font:700 8px Inter!important;direction:ltr!important}.ml-smart-card #mlWhaleFlow,.ml-smart-card #mlSmartBias{color:#31c48d!important}.ml-smart-meta{display:flex;justify-content:space-between;gap:6px;padding:7px 9px;border-top:1px solid #23313d;color:#788894;font:600 7px Inter;direction:ltr}.ml-smart-meta #mlSmartSource{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b8c3ca}
/* TASK-11 ORDER FLOW + LIQUIDITY HEATMAP — LOCKED */
.ml-flow-head,.ml-flow-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#8fa0ae;margin:5px 3px}.ml-flow-head b{color:#e6edf3}.ml-flow-head span{color:#31c48d;font-size:9px}.ml-heat-live{display:flex!important;flex-direction:column;height:190px!important;padding:4px!important;background:#081119!important;border:1px solid #263746;border-radius:8px;overflow:hidden}.ml-heat-live i{position:relative;display:block!important;flex:1!important;width:100%!important;min-height:5px!important;background:transparent!important;border-bottom:1px solid rgba(255,255,255,.025);font-style:normal}.ml-heat-live i:before{content:'';position:absolute;inset:1px auto 1px 0;width:var(--depth);border-radius:2px;opacity:.58}.ml-heat-live i.bid:before{background:linear-gradient(90deg,rgba(18,184,137,.12),rgba(18,184,137,.85))}.ml-heat-live i.ask:before{background:linear-gradient(90deg,rgba(238,90,104,.12),rgba(238,90,104,.78))}.ml-heat-live i span{position:relative;z-index:1;display:block;text-align:right;padding-right:4px;font-size:7px;line-height:9px;color:#aab6c0}.ml-heat-live>strong{margin:auto;color:#7b8794}.ml-flow-foot b{color:#dce5ec}.ml-flow-tabs span{cursor:pointer}.ml-flow-tabs span.active{color:#f1c96f;border-color:#80601d;background:#302815}
/* TASK-10 TECHNICAL CHART + SYMBOL SELECTOR LOCK */

/* SINGLE RESPONSIVE AUTHORITY v7.5.24 — no inherited grid width, viewport is authority */
html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
body.mockup-visual-lock #app.app.marfa-converted{width:100vw!important;max-width:100vw!important;min-width:0!important;display:block!important;direction:rtl!important}
body.mockup-visual-lock #app.app.marfa-converted>.main{display:block!important;position:relative!important;min-width:0!important;box-sizing:border-box!important;overflow-x:hidden!important}
body.mockup-visual-lock .mockup-lock-dashboard{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
body.mockup-visual-lock .ml-row,body.mockup-visual-lock .ml-card{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
@media (min-width:1181px){
 html[dir=rtl] body.mockup-visual-lock #app.app.marfa-converted>.side{position:fixed!important;top:0!important;right:0!important;left:auto!important;width:220px!important;height:100dvh!important;transform:none!important;z-index:100!important}
 html[dir=rtl] body.mockup-visual-lock #app.app.marfa-converted>.main{margin:0!important;margin-right:220px!important;width:calc(100vw - 220px)!important;max-width:calc(100vw - 220px)!important}
}
@media (min-width:768px) and (max-width:1180px){
 html[dir=rtl] body.mockup-visual-lock #app.app.marfa-converted>.side{position:fixed!important;top:0!important;right:0!important;left:auto!important;width:176px!important;height:100dvh!important;transform:none!important;z-index:100!important;overflow-y:auto!important}
 html[dir=rtl] body.mockup-visual-lock #app.app.marfa-converted>.main{margin:0!important;margin-right:176px!important;width:calc(100vw - 176px)!important;max-width:calc(100vw - 176px)!important}
 body.mockup-visual-lock .mockup-lock-dashboard{padding:8px!important;gap:8px!important}
 body.mockup-visual-lock .ml-command,body.mockup-visual-lock .ml-market-row,body.mockup-visual-lock .ml-mid-row,body.mockup-visual-lock .ml-bottom-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
 body.mockup-visual-lock .ml-command>.ml-card:first-child,body.mockup-visual-lock .ml-market-row>.ml-card:first-child{grid-column:1/-1!important}
}
@media (max-width:767px){
 html[dir=rtl] body.mockup-visual-lock #app.app.marfa-converted>.side{display:none!important}
 html[dir=rtl] body.mockup-visual-lock #app.app.marfa-converted>.main{margin:0!important;width:100vw!important;max-width:100vw!important}
 body.mockup-visual-lock .mockup-lock-dashboard{padding:6px!important;gap:7px!important}
 body.mockup-visual-lock .ml-command,body.mockup-visual-lock .ml-market-row,body.mockup-visual-lock .ml-mid-row,body.mockup-visual-lock .ml-bottom-row{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
 body.mockup-visual-lock .ml-command-grid,body.mockup-visual-lock .ml-deriv,body.mockup-visual-lock .ml-kpis,body.mockup-visual-lock .ml-chart-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* FAR-50 symbol picker: native select for reliable iPad/Safari interaction */
.ml-chart-head select#mlChartSymbol{appearance:auto!important;background:#0b1822!important;color:#e8edf2!important;border:1px solid #263746!important;border-radius:7px!important;padding:5px 8px!important;font-size:10px!important;outline:none!important;width:92px!important;height:28px!important}
@media(max-width:680px){.ml-chart-head select#mlChartSymbol{width:82px!important}}
/* Calendar/news placement: full-width horizontal footer row */
body.mockup-visual-lock .ml-calendar-row{display:block!important;width:100%!important;grid-column:1/-1!important}
body.mockup-visual-lock .ml-calendar-row>.ml-calendar-card{width:100%!important;height:auto!important;min-height:0!important}
body.mockup-visual-lock .ml-calendar-card .ml-calendar-events{display:flex!important;flex-direction:row!important;gap:10px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:6px 2px 10px!important}
body.mockup-visual-lock .ml-calendar-card .ml-calendar-event{flex:0 0 220px!important;width:220px!important;min-width:220px!important;height:128px!important;min-height:128px!important;box-sizing:border-box!important}
@media(max-width:767px){body.mockup-visual-lock .ml-calendar-card .ml-calendar-event{flex-basis:82vw!important;width:82vw!important;min-width:260px!important;max-width:320px!important}}
/* Requested: portfolio/watchlist/AI/daily summary stay as one horizontal row */
body.mockup-visual-lock .ml-mid-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;gap:12px!important;width:100%!important}
body.mockup-visual-lock .ml-mid-row>.ml-card{width:auto!important;min-width:0!important;height:auto!important;min-height:0!important}
body.mockup-visual-lock .ml-mid-row .ml-body{height:auto!important;min-height:0!important}
@media(min-width:768px){body.mockup-visual-lock .ml-mid-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:767px){body.mockup-visual-lock .ml-mid-row{display:flex!important;flex-flow:row nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:10px!important;scroll-snap-type:x proximity}body.mockup-visual-lock .ml-mid-row>.ml-card{flex:0 0 82vw!important;max-width:320px!important;scroll-snap-align:start}}
/* v7.5.27 compact horizontal: portfolio/watch/AI/daily */
@media(min-width:768px){
body.mockup-visual-lock .ml-mid-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:start!important;gap:12px!important}
body.mockup-visual-lock .ml-mid-row>.ml-card{height:auto!important;min-height:0!important;align-self:start!important}
body.mockup-visual-lock .ml-mid-row>.ml-card>.ml-body{height:auto!important;min-height:0!important;padding:10px!important}
body.mockup-visual-lock .ml-portfolio-body{display:flex!important;align-items:center!important;gap:10px!important}.ml-portfolio .ml-donut{width:72px!important;height:72px!important;min-width:72px!important}
body.mockup-visual-lock .ml-risk-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.ml-risk-grid span{padding:4px!important}
body.mockup-visual-lock .ml-watch-controls{display:flex!important;gap:6px!important}.ml-watchlist{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0 8px!important}.ml-watchlist p{margin:0!important;padding:5px 0!important}
body.mockup-visual-lock .ml-ai-v16{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;align-items:center!important}.ml-ai-v16 .ml-ai-head,.ml-ai-v16 .ml-ai-verdict,.ml-ai-v16 .ml-ai-kpis,.ml-ai-v16 button{grid-column:1/-1!important}.ml-ai-v16 p,.ml-ai-v16 .ml-ai-source{margin:0!important}
body.mockup-visual-lock .ml-daily-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0 8px!important}.ml-daily-list p{margin:0!important;padding:6px 0!important}.ml-daily-v17{min-height:0!important}
}
@media(max-width:767px){body.mockup-visual-lock .ml-mid-row{display:flex!important;overflow-x:auto!important;gap:10px!important;align-items:flex-start!important}body.mockup-visual-lock .ml-mid-row>.ml-card{flex:0 0 82vw!important;max-width:330px!important;height:auto!important;min-height:0!important}}
