
/* backtest-session-actions.css */
/* Backtest session actions: match stable data attributes, even with older JS markup. */
#backtest #btlRows button[data-btlplay],#backtest #btlRows button[data-btlend],#backtest #btlRows button[data-btledit],#backtest #btlRows button[data-btldel]{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;min-width:38px!important;min-height:36px!important;padding:6px 9px!important;margin:2px 3px!important;border-radius:9px!important;font-size:16px!important;font-weight:700!important;opacity:1!important;filter:none!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)!important;cursor:pointer!important;transition:background-color .15s,border-color .15s!important}
#backtest #btlRows button[data-btlplay]{background:#20664f!important;border:2px solid #59b493!important;color:#fff!important}
#backtest #btlRows button[data-btlend]{background:#87404d!important;border:2px solid #cf7a86!important;color:#fff!important}
#backtest #btlRows button[data-btledit]{background:#285d87!important;border:2px solid #7aaed6!important;color:#fff!important}
#backtest #btlRows button[data-btldel]{background:#843e4b!important;border:2px solid #d27e89!important;color:#fff!important;min-width:58px!important;font-size:13px!important}
#backtest #btlRows button[data-btldel]:not(.btl-act-delete):not(.arm)::after{content:'حذف';font-size:12px;margin-inline-start:5px}
#backtest #btlRows button[data-btldel].arm{background:#bd3047!important;min-width:94px!important}
#backtest #btlRows button:is([data-btlplay],[data-btlend],[data-btledit],[data-btldel]):hover{filter:brightness(1.2)!important}
#backtest #btlRows button:is([data-btlplay],[data-btlend],[data-btledit],[data-btldel]):focus-visible{outline:2px solid white!important;outline-offset:2px!important}
@media(max-width:700px){#backtest #btlRows button:is([data-btlplay],[data-btlend],[data-btledit],[data-btldel]){min-height:34px!important;margin:2px!important}}

/* strategy-lab-mockup-v1.css */
/* MARFA Strategy Lab • approved navy/gold glass mockup • preview only */
#strategy-lab.sl2{
  --sl-gold:#e0b968;--sl-ink:#0b1930;--sl-outline:rgba(159,187,227,.33);
  color:var(--marfa-field-text,#f6f8ff);
}
#strategy-lab.sl2 .sl2-head{
 display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2.5fr);
 align-items:end;gap:16px;margin:0 0 20px;
}
#strategy-lab.sl2 .sl2-head>div:first-child{min-width:0;text-align:right}
#strategy-lab.sl2 .sl2-head h1{font-size:clamp(23px,2.1vw,31px);line-height:1.45;text-shadow:0 2px 12px #0006}
#strategy-lab.sl2 .sl2-ctrl{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;gap:10px;min-width:0}
#strategy-lab.sl2 .sl2-box,#strategy-lab.sl2 .sl2-ctrl>.sl2-primary,#strategy-lab.sl2 .sl2-ctrl>.sl2-ghost{
 position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;
 min-height:94px;min-width:104px;padding:13px 16px;gap:6px;
 text-align:center;border:1px solid var(--sl-outline);
 border-radius:15px;color:var(--marfa-field-text,#f6f8ff);
 background:linear-gradient(153deg,rgba(156,181,219,.25) 0%,rgba(48,73,113,.32) 24%,rgba(16,31,56,.95) 67%,rgba(34,56,89,.8) 100%);
 box-shadow:inset 0 2px 1px rgba(244,250,255,.28),inset 0 -3px 1px rgba(13,36,74,.65),0 8px 19px rgba(0,0,0,.27),0 2px 0 rgba(100,144,201,.2);
 transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
#strategy-lab.sl2 .sl2-box::after,#strategy-lab.sl2 .sl2-ctrl>.sl2-ghost::after{
 content:"";position:absolute;inset:1px 2px auto 2px;height:34%;pointer-events:none;
 border-radius:14px 14px 48% 48%;background:linear-gradient(180deg,rgba(255,255,255,.105),transparent);
}
#strategy-lab.sl2 .sl2-ctrl>.sl2-primary{
 color:#1a2430;background:linear-gradient(157deg,#f7db96,#d6a64e 65%,#a8792e);
 border-color:#e5c179;box-shadow:inset 0 2px 1px #fff8,inset 0 -3px #96712b,0 8px 20px #0005;
}
#strategy-lab.sl2 .sl2-ctrl>button:not([hidden]):hover,#strategy-lab.sl2 .sl2-workspace-step:hover{
 transform:none;border-color:#dbba79;box-shadow:inset 0 1px 1px #fff5,0 12px 22px #0006,0 0 0 1px #ceaa6940;
}
#strategy-lab.sl2 .sl2-ctrl>button:focus-visible,#strategy-lab.sl2 .sl2-workspace-step:focus-visible{outline:2px solid #e6c680;outline-offset:3px}
#strategy-lab.sl2 .sl2-ctrl button{font:inherit;font-weight:800;line-height:1.55}
#strategy-lab.sl2 .sl2-box small{font-size:12px;color:#acbad1}
#strategy-lab.sl2 .sl2-box b{font-size:15px;direction:ltr;text-align:center}
#strategy-lab.sl2 .sl2-box select{width:100%;min-width:160px;max-width:230px;font-size:13px;text-align:center;text-align-last:center;border:1px solid #8495b054;border-radius:8px;padding:6px;background:rgba(3,11,24,.36);color:inherit}
#strategy-lab.sl2 .sl2-workspace{
 position:relative;overflow:hidden;padding:23px;border-radius:19px;gap:19px;
 border:1px solid rgba(143,179,222,.4);
 background:linear-gradient(137deg,rgba(126,158,206,.22),rgba(16,38,70,.81) 34%,rgba(10,27,53,.91) 77%,rgba(87,109,144,.22));
 box-shadow:inset 0 2px 1px rgba(239,246,255,.25),inset 0 -2px 2px rgba(0,0,0,.24),0 13px 27px #0004;
}
#strategy-lab.sl2 .sl2-workspace::before{content:"";position:absolute;inset:0 0 auto;height:36%;pointer-events:none;background:linear-gradient(165deg,rgba(255,255,255,.07),transparent 62%)}
#strategy-lab.sl2 .sl2-workspace-heading{position:relative;align-items:center}
#strategy-lab.sl2 .sl2-workspace-heading h3{font-size:22px;line-height:1.5}
#strategy-lab.sl2 .sl2-workspace-heading small{color:var(--sl-gold)}
#strategy-lab.sl2 .sl2-workspace-heading>b{color:#dbe4f5}
#strategy-lab.sl2 .sl2-workspace-progress{height:9px;background:rgba(61,85,118,.65);border:1px solid #879fc034}
#strategy-lab.sl2 .sl2-workspace-progress i{background:linear-gradient(90deg,#95703b,#f0cb7d);box-shadow:0 0 8px #e1b96655}
#strategy-lab.sl2 .sl2-workspace-grid{position:relative;gap:16px}
#strategy-lab.sl2 .sl2-workspace-step{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:175px;
 padding:25px 17px 20px;text-align:center;position:relative;overflow:hidden;
 border-radius:16px;border:1px solid var(--sl-outline);
 background:linear-gradient(145deg,rgba(163,190,232,.23),rgba(27,49,83,.9) 36%,rgba(12,26,49,.93) 77%,rgba(114,139,180,.27));
 box-shadow:inset 0 2px 1px #f4f9ff38,inset 0 -3px 1px #142f50,0 9px 15px #0004;
 transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
#strategy-lab.sl2 .sl2-workspace-step::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(145deg,rgba(255,255,255,.1),transparent 36%,transparent 71%,rgba(220,181,108,.07));
}
#strategy-lab.sl2 .sl2-workspace-step>span{position:absolute;inset:13px 14px auto auto;min-width:33px;min-height:31px;display:grid;place-items:center;background:#253c5a;color:#ffdb8c;padding:3px 8px;border:1px solid #9fb3ce3b}
#strategy-lab.sl2 .sl2-workspace-step strong{font-size:17px;line-height:1.6;color:#fff;font-weight:800}
#strategy-lab.sl2 .sl2-workspace-step small,#strategy-lab.sl2 .sl2-workspace-step em{font-size:13px;text-align:center;color:#c9d4e7}
#strategy-lab.sl2 .sl2-workspace-step i{font-size:12px;color:#ebc77f;border-radius:12px;padding:3px 9px;background:rgba(6,17,33,.38)}
#strategy-lab.sl2 .sl2-kpis{gap:10px;border:0;background:transparent;overflow:visible}
#strategy-lab.sl2 .sl2-kpi,#strategy-lab.sl2 .sl2-card{
 border:1px solid var(--sl-outline)!important;border-radius:15px;
 background:linear-gradient(148deg,rgba(148,176,218,.18),rgba(21,40,70,.88) 35%,rgba(11,26,51,.94));
 box-shadow:inset 0 2px 1px #ffffff20,0 7px 15px #0003;
}
#strategy-lab.sl2 .sl2-kpi{align-items:center;justify-content:center;text-align:center;gap:7px;min-height:100px}
#strategy-lab.sl2 .sl2-kpi small,#strategy-lab.sl2 .sl2-kpi b,#strategy-lab.sl2 .sl2-kpi em{text-align:center}
#strategy-lab.sl2 .sl2-rules{background:rgba(25,42,66,.68);border-color:#8ba2c441}
#strategy-lab.sl2 .sl2-card{padding:18px}
#strategy-lab.sl2 .sl2-primary:not(.sl2-ctrl>.sl2-primary){background:linear-gradient(155deg,#efd18b,#c89a4b);color:#182437}
@media(max-width:1220px){#strategy-lab.sl2 .sl2-head{grid-template-columns:1fr}#strategy-lab.sl2 .sl2-ctrl{justify-content:center}}
@media(max-width:720px){
 #strategy-lab.sl2 .sl2-ctrl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #strategy-lab.sl2 .sl2-box,#strategy-lab.sl2 .sl2-ctrl>.sl2-primary,#strategy-lab.sl2 .sl2-ctrl>.sl2-ghost{min-width:0;min-height:76px;padding:10px}
 #strategy-lab.sl2 .sl2-workspace{padding:14px}
 #strategy-lab.sl2 .sl2-workspace-step{min-height:142px}
 #strategy-lab.sl2 .sl2-kpi{min-height:84px}
}
@media(prefers-reduced-motion:reduce){#strategy-lab.sl2 .sl2-workspace-step,#strategy-lab.sl2 .sl2-ctrl>button{transition:none!important;transform:none!important}}
/* Layout repair: the header must fit its six controls without orphan tiles. */
#strategy-lab.sl2 .sl2-head{
 display:grid;grid-template-columns:minmax(240px,26%) minmax(0,1fr);
 grid-template-areas:"heading actions";column-gap:16px;align-items:center;
}
#strategy-lab.sl2 .sl2-head>div:first-child{grid-area:heading;min-width:0;align-self:center}
#strategy-lab.sl2 .sl2-ctrl{
 grid-area:actions;width:100%;min-width:0;display:grid!important;
 grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;align-items:stretch;
}
#strategy-lab.sl2 .sl2-ctrl>.sl2-box,
#strategy-lab.sl2 .sl2-ctrl>.sl2-primary,
#strategy-lab.sl2 .sl2-ctrl>.sl2-ghost{
 width:100%;min-width:0;max-width:none;min-height:90px;padding:12px 8px;
 margin:0;white-space:normal;overflow-wrap:break-word;
}
#strategy-lab.sl2 .sl2-box select{width:100%;min-width:0;max-width:100%;font-size:12px}
#strategy-lab.sl2 .sl2-ctrl button{font-size:13px}
#strategy-lab.sl2 .sl2-workspace{gap:12px;padding:18px}
#strategy-lab.sl2 .sl2-workspace-step{min-height:146px;padding:18px 14px 13px}
#strategy-lab.sl2 .sl2-card{min-height:0}
#strategy-lab.sl2 .sl2-vers{align-items:center}
#strategy-lab.sl2 .sl2-vers span{background:rgba(38,55,82,.68);border-color:#869ebf5c}
#strategy-lab.sl2 .sl2-empty{padding:12px 4px;text-align:center}
#strategy-lab.sl2 .sl2-note{min-height:0}
@container (max-width:1180px){
 #strategy-lab.sl2 .sl2-head{grid-template-columns:1fr;grid-template-areas:"heading" "actions"}
 #strategy-lab.sl2 .sl2-ctrl{grid-template-columns:repeat(3,minmax(0,1fr))}
 #strategy-lab.sl2 .sl2-ctrl>.sl2-box,
 #strategy-lab.sl2 .sl2-ctrl>.sl2-primary,
 #strategy-lab.sl2 .sl2-ctrl>.sl2-ghost{min-height:76px}
}
@container (max-width:630px){
 #strategy-lab.sl2 .sl2-ctrl{grid-template-columns:repeat(2,minmax(0,1fr))}
 #strategy-lab.sl2 .sl2-head{gap:12px}
}

/* marfa-tab-heading-account-fix-v1.css */
/* Preview MARFA: route shell UI canonical owner. Page-specific content below is preserved. */
/* MARFA UNIFIED SHELL V2: single visual owner for ALL SPA views. */
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading{
 --shell-gap:9px;box-sizing:border-box!important;position:relative!important;z-index:35!important;
 width:100%!important;max-width:100%!important;min-width:0!important;min-height:54px!important;height:auto!important;
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;
 direction:rtl!important;gap:var(--shell-gap)!important;overflow:visible!important;
 margin:0 0 12px!important;padding:7px 12px!important;
 background:var(--marfa-g3-inner,rgba(30,47,69,.9))!important;
 border:1px solid var(--marfa-g3-border,rgba(144,170,203,.38))!important;
 border-radius:13px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.15)!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading > .marfa-crumb-trail{
 display:flex!important;direction:rtl!important;align-items:center!important;gap:5px!important;
 order:0!important;flex:0 0 auto!important;max-width:38%!important;min-width:0!important;overflow:hidden!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-crumb-link{
 display:inline-flex!important;align-items:center!important;min-height:34px!important;height:34px!important;
 background:transparent!important;border:0!important;border-radius:9px!important;box-shadow:none!important;
 padding:5px 7px!important;margin:0!important;white-space:nowrap!important;
 color:var(--marfa-field-text,#edf4ff)!important;font:650 13px/1.35 inherit!important;cursor:pointer!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-crumb-current{
 display:inline-flex!important;align-items:center!important;margin:0!important;padding:5px 8px!important;
 height:34px!important;min-height:34px!important;box-sizing:border-box!important;
 border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;
 font-family:inherit!important;font-size:15px!important;font-weight:800!important;line-height:1.25!important;
 color:var(--marfa-field-text,#edf4ff)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-crumb-sep{flex:0 0 auto!important;opacity:.65!important;color:var(--marfa-field-text,#edf4ff)!important}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading > .marfa-unified-tools{
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;
 order:1!important;flex:0 1 auto!important;min-width:0!important;margin-inline-start:auto!important;
 gap:8px!important;direction:rtl!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading > .marfa-route-help{
 order:2!important;flex:0 0 auto!important;position:relative!important;margin:0!important;z-index:100!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading :is(.dk-wallet,.dk-help,.dk-star:not(.dk-pick),.acc-pick,.marfa-myspace-more,.marfa-route-help-toggle){
 display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
 gap:6px!important;min-height:36px!important;height:36px!important;margin:0!important;padding:5px 10px!important;
 border-radius:10px!important;border:1px solid var(--marfa-g3-border,rgba(144,170,203,.36))!important;
 background:var(--marfa-g3-surface,rgba(35,53,78,.9))!important;color:var(--marfa-field-text,#edf4ff)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.12)!important;white-space:nowrap!important;
 font-family:inherit!important;font-size:12px!important;font-weight:650!important;line-height:1.2!important;
 cursor:pointer!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .dk-wwrap{
 display:inline-flex!important;position:relative!important;min-width:0!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-myspace-actions{
 display:inline-flex!important;align-items:center!important;gap:3px!important;position:relative!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-myspace-menu{
 position:absolute!important;top:calc(100% + 8px)!important;inset-inline-start:0!important;z-index:200!important;
 padding:6px!important;border:1px solid var(--marfa-g3-border,rgba(144,170,203,.36))!important;
 border-radius:10px!important;background:var(--marfa-g3-popup-surface,#17283d)!important;
 box-shadow:0 12px 30px rgba(0,0,0,.3)!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-myspace-menu[hidden]{display:none!important}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-route-help-toggle{
 color:#f5c477!important;border-color:rgba(227,174,92,.55)!important;background:rgba(227,174,92,.12)!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-route-help-alert{
 display:inline-block!important;flex:0 0 auto!important;width:8px!important;height:8px!important;border-radius:50%!important;
 background:#ef5264!important;box-shadow:0 0 8px rgba(239,82,100,.7)!important;
 animation:marfa-shell-alert 1.7s ease-in-out infinite!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-route-help-label{white-space:nowrap!important}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-route-help-panel{
 position:absolute!important;top:calc(100% + 9px)!important;inset-inline-start:0!important;
 width:min(410px,calc(100vw - 32px))!important;max-height:55vh!important;overflow:auto!important;
 padding:14px!important;border:1px solid rgba(224,180,104,.5)!important;border-radius:14px!important;
 background:var(--marfa-g3-popup-surface,#1b304b)!important;color:var(--marfa-field-text,#edf4ff)!important;
 box-shadow:0 16px 34px rgba(0,0,0,.35)!important;text-align:start!important;line-height:1.85!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-route-help-panel[hidden]{display:none!important}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-route-help-panel strong{display:block!important;color:#ecc786!important;margin-bottom:7px!important}
html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-route-help-panel p{margin:0!important;font-size:13px!important;white-space:normal!important}
body.v7-ui #app.app.marfa-converted .view:has(>header.marfa-page-heading .marfa-route-help) > .dk-about{display:none!important}
body.v7-ui #app.app.marfa-converted .view > .dk-bar.marfa-toolbar-migrated{display:none!important}
body.v7-ui #app.app.marfa-converted .view > .acc-pick-row:empty{display:none!important}
@keyframes marfa-shell-alert{0%,100%{opacity:1}50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){body.v7-ui #app.app.marfa-converted .marfa-route-help-alert{animation:none!important}}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading{background:#f8f9fb!important;border-color:#dce3ea!important;box-shadow:none!important}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading :is(.dk-wallet,.dk-help,.dk-star:not(.dk-pick),.acc-pick,.marfa-myspace-more){background:#eceeef!important;color:#222!important;border-color:#e3e7eb!important;box-shadow:none!important}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading .marfa-route-help-toggle{background:#ffdfdf!important;border-color:#ffdfdf!important;color:#dd2020!important}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading :is(.marfa-crumb-link,.marfa-crumb-current,.marfa-crumb-sep){color:#222!important}
@media(max-width:1150px){html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading{flex-wrap:wrap!important}html[data-theme] body.v7-ui #app.app.marfa-converted .view > header.marfa-page-heading > .marfa-unified-tools{flex-wrap:wrap!important;margin-inline-start:0!important}}

/* Existing feature-only rules, not permitted to restyle the global route shell. */
#strategy-lab.sl2 .sl2-head{
 position:relative;z-index:50;display:flex!important;flex-direction:column!important;
 align-items:stretch!important;gap:12px!important;margin-bottom:16px!important;
}
#strategy-lab.sl2 .sl2-head>div:first-child{
 grid-area:auto!important;width:100%;flex:none!important;align-self:stretch!important;
 padding:7px 15px 13px;text-align:right;border-bottom:1px solid var(--marfa-g3-border);
}
#strategy-lab.sl2 .sl2-head .sl2-crumb{color:#b2c1d8}
#strategy-lab.sl2 .sl2-ctrl{
 grid-area:auto!important;width:100%;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
 align-items:stretch!important;justify-content:stretch!important;
}
#strategy-lab.sl2 .sl2-head .sl2-box{isolation:auto!important}
#strategy-lab.sl2 #slActivePicker{z-index:100;isolation:auto}
#strategy-lab.sl2 #slActivePicker:has(.marfa-glass-popover:not([hidden])){z-index:500}
#strategy-lab.sl2 .sl2-ctrl>.sl2-box:has(.marfa-glass-popover:not([hidden])){z-index:400}
#strategy-lab.sl2 .sl2-body{position:relative;z-index:1}
#strategy-lab.sl2 .marfa-glass-popover{
 z-index:999!important;min-width:210px;width:max-content;max-width:min(330px,85vw);
 inset:calc(100% + 7px) 0 auto auto!important;
 background:var(--marfa-g3-popup-surface)!important;
 border-color:var(--marfa-g3-border)!important;
 box-shadow:var(--marfa-g3-popup-shadow)!important;
}
#strategy-lab.sl2 .marfa-glass-option{white-space:normal;overflow-wrap:anywhere}
@container (max-width:1120px){
 #strategy-lab.sl2 .sl2-ctrl{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@container (max-width:620px){
 #strategy-lab.sl2 .sl2-ctrl{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:690px){html[data-theme] body.v7-ui #app.app.marfa-converted .view>.marfa-page-heading{padding:10px 12px;min-height:52px}}

/* One visible strategy title: main heading is the shared view title; original keeps its metadata. */
#strategy-lab.sl2:has(> .marfa-page-heading) .sl2-head>div:first-child h1{display:none!important}
#strategy-lab.sl2>.marfa-page-heading{margin-bottom:10px!important}
#strategy-lab.sl2 .sl2-head>div:first-child{padding-top:0!important}

/* STRATEGY RESPONSIVE PRIORITY FIX v2 */
@media (max-width:1180px){
 #strategy-lab.sl2 .sl2-head .sl2-ctrl{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:680px){
 #strategy-lab.sl2 .sl2-head .sl2-ctrl{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #strategy-lab.sl2 .sl2-head .sl2-ctrl>*{min-width:0!important;width:100%!important}
 #strategy-lab.sl2 .sl2-workspace-grid{grid-template-columns:1fr!important}
}
/* Strategy Lab: consistent light glass material, preview only. */
html[data-theme="light"] body.v7-ui #strategy-lab.sl2 .sl2-ctrl>:is(.sl2-box,.sl2-ghost,.sl2-primary){background:var(--marfa-g3-surface)!important;border:1px solid var(--marfa-g3-border)!important;box-shadow:var(--marfa-g3-depth)!important;color:#182944!important}
html[data-theme="light"] body.v7-ui #strategy-lab.sl2 .sl2-ctrl>.sl2-primary{background:linear-gradient(155deg,#ffe8b2,#dcb36e)!important;border-color:#cda35d!important}
html[data-theme="light"] body.v7-ui #strategy-lab.sl2 :is(.sl2-workspace,.sl2-workspace-step,.sl2-kpi,.sl2-card){background:var(--marfa-g3-surface)!important;border-color:var(--marfa-g3-border)!important;box-shadow:var(--marfa-g3-depth)!important}
html[data-theme="light"] body.v7-ui #strategy-lab.sl2 :is(.sl2-box b,.sl2-box small,.sl2-workspace-heading h3,.sl2-workspace-heading p,.sl2-workspace-step strong,.sl2-workspace-step small,.sl2-workspace-step em,.sl2-crumb){color:#254365!important}
html[data-theme="light"] body.v7-ui #strategy-lab.sl2 .sl2-box :is(select,.marfa-glass-select-trigger){background:linear-gradient(145deg,#fff,#e3edfb)!important;color:#182944!important;border-color:rgba(80,110,151,.38)!important}

/* My Space: title is typography, not a separate oversized card.
   The existing first-row controls and description remain untouched. */
html[data-theme] body.v7-ui #app.app.marfa-converted #myspace.view > .marfa-page-heading:not(:has(.marfa-crumb-trail)){
  min-height:0!important;
  margin:0 0 10px!important;
  padding:4px 2px 6px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted #myspace.view > .marfa-page-heading:not(:has(.marfa-crumb-trail)) h1{
  font-size:clamp(23px,2vw,30px)!important;
  line-height:1.35!important;
  border-inline-start:3px solid var(--marfa-g3-focus);
  padding-inline-start:10px;
}
/* Same title already exists above: preserve the card's text and buttons,
   hide only the duplicate heading, with no DOM or behavioral changes. */
html[data-theme] body.v7-ui #app.app.marfa-converted #myspace.view:has(> .marfa-page-heading) .ms-head h1{
  display:none!important;
}



/* Source-only legacy bar: never renders a second toolbar once shell is mounted. */
body.v7-ui #app.app.marfa-converted .view:has(> header.marfa-page-heading) > .dk-bar{display:none!important}

/* replay-engine.css */
.replay-card{margin-top:16px;padding:16px;border:1px solid rgba(217,180,90,.18);border-radius:17px;background:linear-gradient(145deg,rgba(27,24,19,.98),rgba(17,14,10,.99));box-shadow:0 18px 48px rgba(0,0,0,.18)}.replay-head,.replay-controls,.replay-status,.replay-kpis{display:flex;align-items:center;justify-content:space-between;gap:12px}.replay-head h3{margin:0;color:#e8d9a9}.replay-head p{margin:4px 0 0;color:#868480;font-size:11px}.replay-badge{padding:5px 8px;border:1px solid rgba(217,180,90,.28);border-radius:8px;color:#e6c467;font-size:9px;font-weight:800}.replay-controls{justify-content:flex-start;margin-top:14px;flex-wrap:wrap}.replay-controls button{min-height:34px;padding:7px 12px;border:1px solid rgba(148,145,140,.16);border-radius:9px;background:#1e1a11;color:#b7b5b2;font-family:inherit;cursor:pointer}.replay-controls button.primary{border-color:rgba(217,180,90,.38);background:linear-gradient(135deg,#d1a84c,#f0d37c);color:#17140d;font-weight:800}.replay-controls button:disabled{opacity:.4;cursor:not-allowed}.replay-status{margin-top:12px;padding:10px 12px;border-radius:10px;background:#18140c;color:#9e9c98;font-size:10px}.replay-status b{color:#d8c88f}.replay-stage{position:relative;margin-top:10px;overflow:hidden;border:1px solid rgba(148,145,140,.12);border-radius:12px;background:#13100a}.replay-stage svg{display:block;width:100%;height:auto;min-height:260px}.replay-future{position:absolute;inset:0 0 0 auto;display:grid;place-items:center;width:18%;background:repeating-linear-gradient(135deg,rgba(17,15,10,.9),rgba(17,15,10,.9) 8px,rgba(217,180,90,.035) 8px,rgba(217,180,90,.035) 16px);border-right:1px dashed rgba(217,180,90,.25);color:#8f7e4e;font-size:9px;pointer-events:none}.replay-slider{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin-top:12px}.replay-slider input{width:100%;accent-color:#d9b45a}.replay-slider small{min-width:82px;color:#8f8d89;text-align:left}.replay-kpis{display:grid;grid-template-columns:repeat(4,1fr);margin-top:12px}.replay-kpis span{padding:9px;border:1px solid rgba(148,145,140,.1);border-radius:10px;background:rgba(23,19,12,.72)}.replay-kpis small,.replay-kpis b{display:block}.replay-kpis small{color:#83807c;font-size:9px}.replay-kpis b{margin-top:3px;color:#cfcecc;font-size:12px}.replay-up{color:#48d5a5!important}.replay-down{color:#ef765f!important}.replay-grid{stroke:#2f291f;stroke-width:1}.replay-wick-up,.replay-wick-down{stroke-width:1}.replay-wick-up{stroke:#48d5a5}.replay-wick-down{stroke:#e36570}.replay-candle-up{fill:#39bc91}.replay-candle-down{fill:#d95b67}.replay-ema20{fill:none;stroke:#d9b45a;stroke-width:1.7}.replay-ema50{fill:none;stroke:#d8ad57;stroke-width:1.4}.replay-signal-long{fill:#48d5a5}.replay-signal-short{fill:#ef765f}.replay-signal-text{fill:#13100a;font-size:8px;font-weight:900}.replay-proof{margin:10px 0 0;color:#807d79;font-size:10px;line-height:1.65}@media(max-width:760px){.replay-head{align-items:flex-start;flex-direction:column}.replay-kpis{grid-template-columns:1fr 1fr}.replay-stage svg{min-height:220px}.replay-future{width:22%}}
.replay-learning-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.replay-learning-kpis span{padding:10px;border:1px solid var(--border,#3d372e);border-radius:10px}.replay-learning-kpis small,.replay-learning-kpis b{display:block}.replay-learning-kpis b{margin-top:4px}@media(max-width:767px){.replay-learning-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* scenario-vault.css */
.scenario-vault{margin-top:16px;padding:16px;border:1px solid rgba(217,180,90,.17);border-radius:17px;background:linear-gradient(145deg,#1c1710,#14110b)}.scenario-head,.scenario-save,.scenario-card-head,.scenario-actions,.scenario-compare-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.scenario-head h3{margin:0;color:#e4d29a}.scenario-head p{margin:4px 0 0;color:#83817d;font-size:11px}.scenario-head span{padding:5px 8px;border:1px solid rgba(217,180,90,.25);border-radius:8px;color:#e2bf64;font-size:9px;font-weight:800}.scenario-save{justify-content:flex-start;margin-top:13px}.scenario-save input{flex:1;min-width:180px;padding:9px 11px;border:1px solid rgba(148,145,140,.16);border-radius:9px;background:#14100a;color:#cbc9c7;font-family:inherit}.scenario-save button{padding:9px 13px;border:1px solid rgba(217,180,90,.34);border-radius:9px;background:linear-gradient(135deg,#c69b40,#ecd074);color:#17130c;font-family:inherit;font-weight:800;cursor:pointer}.scenario-save button:disabled{opacity:.4;cursor:not-allowed}.scenario-note{margin-top:8px;color:#7f7d79;font-size:9px}.scenario-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.scenario-card{padding:11px;border:1px solid rgba(148,145,140,.12);border-radius:12px;background:#15110b}.scenario-card.selected{border-color:rgba(217,180,90,.46);box-shadow:inset 0 0 0 1px rgba(217,180,90,.1)}.scenario-card-head strong{color:#d0cfce;font-size:12px}.scenario-card-head small{color:#7a7874;font-size:9px}.scenario-direction{display:inline-flex;margin-top:8px;padding:4px 7px;border-radius:7px;font-size:9px;font-weight:900}.scenario-direction.long{background:rgba(72,213,165,.1);color:#48d5a5}.scenario-direction.short{background:rgba(239,118,95,.1);color:#ef765f}.scenario-metrics{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:9px}.scenario-metrics span{padding:6px;border-radius:7px;background:#1e1910}.scenario-metrics small,.scenario-metrics b{display:block}.scenario-metrics small{color:#7a7874;font-size:8px}.scenario-metrics b{margin-top:2px;color:#bab9b6;font-size:10px}.scenario-actions{margin-top:9px}.scenario-actions label{display:flex;align-items:center;gap:5px;color:#a7a5a2;font-size:9px;cursor:pointer}.scenario-actions input{accent-color:#d9b45a}.scenario-actions button{border:0;background:transparent;color:#c56770;font-family:inherit;font-size:9px;cursor:pointer}.scenario-empty{grid-column:1/-1;padding:24px;border:1px dashed rgba(148,145,140,.14);border-radius:11px;color:#807e7a;text-align:center;font-size:10px}.scenario-compare{margin-top:12px;padding:12px;border:1px solid rgba(217,180,90,.15);border-radius:12px;background:rgba(217,180,90,.035)}.scenario-compare-head b{color:#d8c17a;font-size:11px}.scenario-compare-head small{color:#817f7c;font-size:9px}.scenario-table{width:100%;margin-top:8px;border-collapse:collapse;font-size:10px}.scenario-table th,.scenario-table td{padding:7px;border-bottom:1px solid rgba(148,145,140,.09);text-align:right}.scenario-table th{color:#82807c;font-weight:500}.scenario-table td{color:#bab9b6}.scenario-table td.delta-positive{color:#48d5a5}.scenario-table td.delta-negative{color:#ef765f}@media(max-width:920px){.scenario-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.scenario-head,.scenario-save{align-items:stretch;flex-direction:column}.scenario-grid{grid-template-columns:1fr}.scenario-table{min-width:520px}.scenario-compare{overflow:auto}}

/* connected-ticker.css */
.ticker.live-ticker{min-height:42px;height:auto;gap:10px;padding-block:6px}.ticker.live-ticker span{display:flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid rgba(148,145,140,.11);border-radius:8px;background:#16120c;white-space:nowrap}.ticker.live-ticker small{color:#807e7a;font-size:9px}.ticker.live-ticker .ticker-source{margin-inline-start:auto;border-color:rgba(217,180,90,.2);color:#d7b75d}.ticker.live-ticker .ticker-error{color:#ef765f}@media(max-width:620px){.ticker.live-ticker{overflow-x:auto}.ticker.live-ticker .ticker-source{margin-inline-start:0}}

/* FAR-240: source badge is a full-size ticker peer */
.ticker.live-ticker .ticker-source{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:150px!important;
  min-height:40px!important;
  padding:8px 14px!important;
  margin-inline-start:0!important;
  border-radius:8px!important;
  font-size:10.5px!important;
  font-weight:800!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}
html[data-theme=light] .ticker.live-ticker .ticker-source{
  background:#fffaf1!important;
  border-color:#d7c39e!important;
  color:#7c5b1a!important;
}

/* local-clock.css */
.local-clock{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px 9px;padding:7px 11px;border:1px solid rgba(216,170,75,.2);border-radius:12px;background:rgba(216,170,75,.055);direction:rtl;white-space:nowrap}.local-clock span{font-size:9px;color:#a99776;grid-column:1/-1}.local-clock b{font:700 13px/1.1 ui-monospace,SFMono-Regular,monospace;color:#f0c875}.local-clock small{font-size:9px;color:#8b8271}.ua-growth{margin-top:16px}.ua-growth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ua-growth-grid>section{padding:18px;border:1px solid rgba(216,170,75,.15);border-radius:15px;background:#100e0b}.ua-growth-grid h3{margin:12px 0 6px}.ua-growth-grid p{color:#9e978a;line-height:1.8}.ua-growth-status{display:flex;gap:10px}.ua-growth-status span{flex:1;padding:11px;border:1px solid #24201a;border-radius:10px;color:#908777}.ua-growth-status b{display:block;color:#e5c475;margin-top:5px}.ua-source{display:block;margin-top:12px;color:#776f63}@media(max-width:900px){.local-clock{grid-template-columns:1fr}.local-clock span{grid-column:auto}.local-clock small{display:none}.ua-growth-grid{grid-template-columns:1fr}}

/* account-session.css */
.account-login-box{border-color:rgba(217,180,90,.34)!important;background:linear-gradient(155deg,#11100d,#070707)!important;box-shadow:0 28px 90px rgba(0,0,0,.55)}
.account-login-box h1{display:block!important;margin:0;color:#f0cf77;font-size:22px}.account-login-box>p{margin:0;line-height:1.8}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border:1px solid #302a1b;border-radius:11px;background:#080806}.auth-tabs button{padding:9px;border:0;border-radius:8px;background:transparent;color:#81775f;cursor:pointer}.auth-tabs button.active{background:rgba(217,180,90,.14);color:#f0cf77}.account-login-box form{display:grid;gap:12px}.account-login-box form label{text-align:right}.account-login-box form label>small{font-size:9px;color:#716b5b}.account-login-box input{border-color:#342e20;background:#080806}.account-login-box input:focus{outline:1px solid #c9a64d;border-color:#c9a64d}.auth-message{min-height:20px;color:#48d5a5;font-size:11px}.auth-message.error{color:#ef765f}.auth-privacy{padding:9px 11px;border:1px solid rgba(72,213,165,.14);border-radius:9px;background:rgba(72,213,165,.04);line-height:1.7}.account-logout{width:100%;margin-top:8px;padding:8px;border:1px solid #3d3320;border-radius:9px;background:#0d0c09;color:#b69a54;cursor:pointer}.account-logout:disabled{opacity:.45}.account-notices{margin-top:12px}.account-notices>div{display:grid;grid-template-columns:8px 1fr auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid rgba(217,180,90,.12)}.account-notices i{width:7px;height:7px;border-radius:50%;background:#d9b45a;box-shadow:0 0 9px rgba(217,180,90,.7)}.account-notices span>*{display:block}.account-notices small,.account-notices time{color:#84827f;font-size:10px}@media(max-width:760px){.account-login-box{padding:20px}.account-notices>div{grid-template-columns:8px 1fr}.account-notices time{grid-column:2}}

/* runtime-integrity.css */
.runtime-recovery{position:relative;min-height:260px;border:1px solid rgba(226,189,86,.35);border-radius:18px;background:linear-gradient(145deg,rgba(226,189,86,.08),rgba(21,19,15,.96));display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:28px}.runtime-recovery-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e2bd561c;border:1px solid #e2bd56;color:#e2bd56;font-weight:900}.runtime-recovery h2{margin:0 0 8px}.runtime-recovery p,.runtime-recovery small{display:block;margin:0;color:#bab9b6;line-height:1.9}.runtime-recovery button[data-runtime-reload]{border:1px solid #e2bd56;background:#e2bd5618;color:#f1d783;border-radius:10px;padding:11px 16px;cursor:pointer}@media(max-width:700px){.runtime-recovery{grid-template-columns:1fr;text-align:center}.runtime-recovery-icon{margin:auto}}

/* far240-final-overrides.css */

/* FAR-240 final authoritative overrides: loaded after all legacy styles. */

/* A. Utility controls: visual LEFT side of the top header. */
html body.v7-ui .main>header.top{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  direction:ltr!important;
  min-height:56px!important;
  padding-inline:18px!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html body.v7-ui .main>header.top .head-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  direction:rtl!important;
  width:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
  gap:8px!important;
}

/* B. MARFA global price rail: six visually equal, accessible glass chips.
   One central visual law for every tab; market values and click handlers are owned
   by the existing feed engine, never transformed by this CSS. */
html body.v7-ui .main>.ticker.tick,
html body.v7-ui .main>.ticker.live-ticker{
  display:grid!important;
  grid-template-columns:minmax(160px,.84fr) repeat(5,minmax(0,1fr))!important;
  grid-template-rows:44px!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  gap:8px!important;
  width:100%!important;
  min-height:56px!important;
  height:56px!important;
  padding:6px 16px!important;
  margin:0!important;
  overflow:hidden!important;
  direction:ltr!important;
  box-sizing:border-box!important;
}
html body.v7-ui .main>.ticker>span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:6px!important;
  min-width:0!important;
  min-height:44px!important;
  height:44px!important;
  padding:6px 9px!important;
  margin:0!important;
  border-radius:11px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  direction:ltr!important;
  background:var(--marfa-g3-inner)!important;
  border:1px solid var(--marfa-g3-border)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.17),inset 0 -1px 0 rgba(5,14,29,.27),0 3px 8px rgba(0,6,20,.14)!important;
}
html body.v7-ui .main>.ticker>.ticker-source{
  grid-column:1!important;grid-row:1!important;
  justify-content:center!important;
  font-size:10.5px!important;font-weight:800!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  opacity:.92!important;
}
html body.v7-ui .main>.ticker>span:nth-child(1){grid-column:6!important;grid-row:1!important}
html body.v7-ui .main>.ticker>span:nth-child(2){grid-column:5!important;grid-row:1!important}
html body.v7-ui .main>.ticker>span:nth-child(3){grid-column:4!important;grid-row:1!important}
html body.v7-ui .main>.ticker>span:nth-child(4){grid-column:3!important;grid-row:1!important}
html body.v7-ui .main>.ticker>span:nth-child(5){grid-column:2!important;grid-row:1!important}
html body.v7-ui .main>.ticker>span :is(img,small,b,i){flex-shrink:0!important}
html body.v7-ui .main>.ticker span small{
  font-size:10.5px!important;font-weight:800!important;
  line-height:1!important;white-space:nowrap!important;
}
html body.v7-ui .main>.ticker span b{
  font-size:clamp(12px,.93vw,14px)!important;
  font-weight:850!important;
  font-variant-numeric:tabular-nums!important;
  line-height:1!important;white-space:nowrap!important;
}
html body.v7-ui .main>.ticker span i{
  font-size:10px!important;font-weight:800!important;
  line-height:1!important;white-space:nowrap!important;
  font-style:normal!important;
}
/* If the market feed is unavailable, the honest status occupies the full rail.
   Never paint an error into the BTC column or imply a sample/live quote. */
html body.v7-ui .main>.ticker>span.ticker-error{
  grid-column:1 / -1!important;grid-row:1!important;
  width:100%!important;flex:1 1 auto!important;order:0!important;
  justify-content:center!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
/* C. Market sessions left; user + local clock right. */
html body.v7-ui .market-clock{
  display:flex!important;
  align-items:center!important;
  direction:ltr!important;
  gap:10px!important;
  padding:10px 18px!important;
}
html body.v7-ui .market-list{
  order:1!important;
  flex:1 1 auto!important;
  display:flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:7px!important;
  direction:rtl!important;
  min-width:0!important;
}
html body.v7-ui .market-user-cluster{
  order:2!important;
  margin-left:auto!important;
  margin-right:0!important;
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  direction:rtl!important;
}

/* D. Dashboard date under title is gone even during stale-script/cache transitions. */
html body.v7-ui #dashboard #dv2Hero .dv2-hero>div:first-child>p{display:none!important}

/* E. Chart type lives with chart toolbar icons, not in timeframe controls. */
html body.v7-ui #dashboard #dv3 .dv3-acts{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
}
html body.v7-ui #dashboard #dv3 .dv3-type-top{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  direction:ltr!important;
  margin:0!important;
}
html body.v7-ui #dashboard #dv3 .dv3-type-top button{
  min-height:36px!important;
  padding:0 12px!important;
  white-space:nowrap!important;
}

/* F. One coherent light theme. This deliberately overrides dark legacy shell/card declarations. */
html[data-theme=light],
html[data-theme=light] body,
html[data-theme=light] body.v7-ui{
  background:#f6f1e7!important;
  color:#29231a!important;
  color-scheme:light!important;
}
html[data-theme=light] body.v7-ui #app,
html[data-theme=light] body.v7-ui #app.shell,
html[data-theme=light] body.v7-ui #app.app.marfa-converted,
html[data-theme=light] body.v7-ui #app.shell>main,
html[data-theme=light] body.v7-ui #app.app.marfa-converted>.main,
html[data-theme=light] body.v7-ui .main,
html[data-theme=light] body.v7-ui .view,
html[data-theme=light] body.v7-ui #dashboard.mockup-dashboard{
  background:#f6f1e7!important;
  color:#29231a!important;
}
html[data-theme=light] body.v7-ui #app.shell>aside,
html[data-theme=light] body.v7-ui #app.app.marfa-converted>.side,
html[data-theme=light] body.v7-ui aside.side{
  background:#fffaf1!important;
  color:#29231a!important;
  border-color:#d8c7a8!important;
}
html[data-theme=light] body.v7-ui :is(
  article,.card,.panel,.mcc-card,.workspace-card,.ua-card,.connected-card,
  .dv2-sec,.dv2-card,.dv3-k,.news-strip,.marfa-site-footer,
  .analysis-hub-card,.multi-card,.portfolio-risk-card,.lifecycle-ledger,
  .bb-card,.bb-col,.bb-score,.bb-verdict,.oi-card,.mi-card
){
  background:#fffaf1!important;
  color:#29231a!important;
  border-color:#ddd0b8!important;
  box-shadow:none!important;
}
html[data-theme=light] body.v7-ui .main>header.top,
html[data-theme=light] body.v7-ui .main>.ticker,
html[data-theme=light] body.v7-ui .market-clock{
  background:#eee3cf!important;
  color:#332817!important;
  border-color:#d3bd91!important;
}
html[data-theme=light] body.v7-ui .main>.ticker>span,
html[data-theme=light] body.v7-ui .market-choice,
html[data-theme=light] body.v7-ui .market-profile,
html[data-theme=light] body.v7-ui .market-user-clock,
html[data-theme=light] body.v7-ui .theme-btn,
html[data-theme=light] body.v7-ui .header-alert,
html[data-theme=light] body.v7-ui .header-language,
html[data-theme=light] body.v7-ui input,
html[data-theme=light] body.v7-ui select{
  background:#fffaf1!important;
  color:#332817!important;
  border-color:#cfb98f!important;
}
html[data-theme=light] body.v7-ui .marfa-site-footer{
  background:#efe5d4!important;
  color:#5d5448!important;
  border-color:#d7c39e!important;
}
html[data-theme=light] body.v7-ui .marfa-site-footer :is(a,b,strong,h3,h4,button){color:#332817!important}

/* The ticker has ONE layout regardless of desktop sidebar state.
   Fixed visual bounds prevent excessive stretch; horizontal scrolling preserves
   full price cards when the available main width is insufficient. */
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker){
 display:flex!important;direction:rtl!important;flex-flow:row nowrap!important;
 align-items:center!important;justify-content:safe center!important;
 gap:8px!important;width:100%!important;height:52px!important;min-height:52px!important;
 padding:5px 12px!important;margin:0!important;box-sizing:border-box!important;
 overflow-x:auto!important;overflow-y:hidden!important;
 scrollbar-width:thin!important;scrollbar-color:rgba(175,197,222,.3) transparent!important;
 scroll-snap-type:x proximity!important;
}
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker) > span[data-ticker-symbol]{
 grid-column:auto!important;grid-row:auto!important;order:0!important;
 flex:0 1 198px!important;width:198px!important;min-width:168px!important;max-width:205px!important;
 height:42px!important;min-height:42px!important;scroll-snap-align:start!important;
}
/* Consistent compact card internals, including 3D coin icons added at runtime. */
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker) > span[data-ticker-symbol]:has(>img.mci,>img.marfa-coin-icon){
 flex:0 1 198px!important;width:198px!important;min-width:168px!important;max-width:205px!important;
 justify-content:space-between!important;
}
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker) > span[data-ticker-symbol]{
 gap:5px!important;padding:5px 9px!important;border-radius:10px!important;
}
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker) > span[data-ticker-symbol] > img:is(.mci,.marfa-coin-icon){
 width:23px!important;height:24px!important;min-width:23px!important;flex:0 0 23px!important;margin:0!important;
}
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker) > span[data-ticker-symbol] > small{
 font-size:10px!important;min-width:0!important;
}
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker) > span[data-ticker-symbol] > b{
 font-size:clamp(12px,.85vw,14px)!important;text-align:center!important;min-width:0!important;
}
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker) > span[data-ticker-symbol] > i{
 font-size:10px!important;text-align:left!important;min-width:0!important;
}
/* Provider attribution is not a price card. Hide ONLY its visual label;
   keep the existing price-fetch engine, provider metadata and error state. */
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker) > .ticker-source{
 display:none!important;
}
html body.v7-ui #app.app.marfa-converted > main.main > .ticker:is(.tick,.live-ticker) > span.ticker-error{
 flex:1 0 100%!important;width:100%!important;min-width:0!important;max-width:none!important;
}
@media(max-width:760px){
  html body.v7-ui .main>header.top{padding-inline:12px!important}
  html body.v7-ui .main>header.top .head-actions{gap:6px!important}
  html body.v7-ui .market-clock{flex-wrap:wrap!important;padding-inline:12px!important}
  html body.v7-ui .market-list{flex:1 0 100%!important;overflow-x:auto!important}
}


/* MARFA unified header: move the same live session controls beside search. */
html body.v7-ui .main>header.top.marfa-top-market-unified{
 background:transparent!important;background-image:none!important;
 box-shadow:none!important;border:0!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 flex-wrap:nowrap!important;column-gap:10px!important;min-width:0!important;
 padding-block:5px!important;min-height:60px!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified>.head-actions{
 flex:0 1 auto!important;min-width:0!important;display:flex!important;align-items:center!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified>.market-clock{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 flex:1 1 auto!important;min-width:0!important;width:auto!important;
 max-width:none!important;min-height:0!important;height:auto!important;
 margin:0!important;padding:0!important;border:0!important;
 border-radius:0!important;background:transparent!important;box-shadow:none!important;
 gap:8px!important;overflow:visible!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified .market-list{
 order:1!important;display:flex!important;flex:1 1 auto!important;min-width:0!important;
 max-width:100%!important;width:auto!important;margin:0!important;
 gap:6px!important;justify-content:center!important;overflow-x:auto!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified .market-choice{
 min-width:69px!important;height:40px!important;min-height:40px!important;padding:5px 8px!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified .market-choice.active{min-width:112px!important}
html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-cluster{
 order:2!important;display:flex!important;flex:0 0 auto!important;min-width:0!important;
 margin:0 0 0 auto!important;gap:0!important;align-items:center!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified .market-profile{
 min-width:110px!important;max-width:160px!important;padding:4px 8px!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-clock{
 min-width:100px!important;min-height:36px!important;padding:4px 7px!important;
}
/* Desktop shell owns one invariant header row across sidebar widths.
   Narrow the market-list viewport instead of wrapping the header itself. */
@media(min-width:1181px){
 html body.v7-ui #app.app.marfa-converted > main.main > header.top.marfa-top-market-unified{
  display:grid!important;direction:ltr!important;
  grid-template-columns:minmax(0,max-content) minmax(0,1fr) minmax(0,280px)!important;
  grid-template-rows:60px!important;
  align-items:center!important;justify-content:stretch!important;
  column-gap:8px!important;row-gap:0!important;
  height:60px!important;min-height:60px!important;max-height:60px!important;
  padding:0 12px!important;box-sizing:border-box!important;
  flex-wrap:nowrap!important;overflow:visible!important;
 }
 html body.v7-ui #app.app.marfa-converted > main.main > header.top.marfa-top-market-unified > .head-actions{
  grid-column:1!important;grid-row:1!important;min-width:0!important;
  width:max-content!important;max-width:100%!important;justify-self:start!important;
 }
 html body.v7-ui #app.app.marfa-converted > main.main > header.top.marfa-top-market-unified > .market-clock{
  display:contents!important;
 }
 html body.v7-ui #app.app.marfa-converted > main.main > header.top.marfa-top-market-unified .market-list{
  grid-column:2!important;grid-row:1!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  display:flex!important;flex-wrap:nowrap!important;
  justify-content:flex-start!important;align-items:center!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  gap:6px!important;white-space:nowrap!important;
  scrollbar-width:none!important;
 }
 html body.v7-ui #app.app.marfa-converted > main.main > header.top.marfa-top-market-unified .market-list::-webkit-scrollbar{display:none!important}
 html body.v7-ui #app.app.marfa-converted > main.main > header.top.marfa-top-market-unified .market-choice{
  flex:0 0 auto!important;
 }
 html body.v7-ui #app.app.marfa-converted > main.main > header.top.marfa-top-market-unified .market-user-cluster{
  grid-column:3!important;grid-row:1!important;
  width:100%!important;min-width:0!important;max-width:280px!important;
  justify-self:end!important;justify-content:flex-end!important;
  margin:0!important;
 }
}

@media(max-width:650px){
 html body.v7-ui .main>header.top.marfa-top-market-unified{padding-inline:9px!important}
 html body.v7-ui .main>header.top.marfa-top-market-unified>.market-clock{flex-wrap:wrap!important;gap:5px!important}
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-list{order:2!important;flex:1 0 100%!important;max-width:100%!important;overflow-x:auto!important}
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-cluster{order:1!important;flex:1 1 auto!important}
}


/* Three equal-height functional zones on wide desktop. Keep legacy two-row mobile fallback. */
@media (min-width:1300px) and (max-width:1650px){
 html body.v7-ui .main>header.top.marfa-top-market-unified .head-actions #msxTrig{
   width:clamp(166px,13vw,220px)!important;min-width:145px!important;max-width:220px!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-list{justify-content:center!important}
}
html body.v7-ui .main>header.top.marfa-top-market-unified .head-actions,
html body.v7-ui .main>header.top.marfa-top-market-unified .market-list,
html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-cluster{align-items:center!important}
/* Header control baseline and balanced desktop center. Visual-only shared shell.
   On wide layouts use three grid columns so sessions center to the header,
   not to the space left after the search controls. */
html body.v7-ui .main>header.top.marfa-top-market-unified .head-actions>.msx-trig,
html body.v7-ui .main>header.top.marfa-top-market-unified .head-actions>.header-alert,
html body.v7-ui .main>header.top.marfa-top-market-unified .head-actions>.header-language,
html body.v7-ui .main>header.top.marfa-top-market-unified .head-actions>.mdh-toggle{
 height:44px!important;min-height:44px!important;box-sizing:border-box!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified .head-actions>.header-language button{
 height:42px!important;min-height:42px!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified .market-choice{
 height:44px!important;min-height:44px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
@media(min-width:1600px){
 html body.v7-ui .main>header.top.marfa-top-market-unified{
   display:grid!important;grid-template-columns:minmax(max-content,1fr) minmax(400px,520px) minmax(0,1fr)!important;
   grid-template-rows:44px!important;align-items:center!important;gap:12px!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified>.head-actions{
   grid-column:1!important;grid-row:1!important;justify-self:center!important;
   align-self:center!important;width:max-content!important;max-width:100%!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified>.market-clock{
   display:contents!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-list{
   grid-column:2!important;grid-row:1!important;justify-self:center!important;
   align-self:center!important;flex:none!important;max-width:520px!important;
   width:100%!important;height:44px!important;min-height:44px!important;
   justify-content:space-evenly!important;gap:6px!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-cluster{
   grid-column:3!important;grid-row:1!important;justify-self:center!important;
   align-self:center!important;margin:0!important;
 }
}
/* Primary Add Tool action stays accent-colored on mobile, where the desktop
   personalization rules are intentionally not active. */
html body.v7-ui #app.app.marfa-converted #myspace button.ms-btn.pri{
  background:radial-gradient(circle at 26% 0%,rgba(212,175,110,.19),transparent 58%),linear-gradient(145deg,#554427 0%,#352b1e 57%,#48381f 100%)!important;
  border-color:rgba(207,169,103,.87)!important;
  color:#f6e7c8!important;
  box-shadow:inset 0 2px 1px rgba(255,234,188,.25),inset 0 -3px 0 rgba(25,18,10,.43),0 3px 0 rgba(33,22,12,.60),0 8px 18px rgba(0,5,16,.34)!important;
}
/* Preserve the existing wallet route's hidden clock when its DOM parent moves. */
/* Superseded: a view may not hide controls inside the shared header. */


/* Header clock + responsive spacing, preview, visual-only.
   Reuse existing session/time/profile controls, no duplicated DOM or timers. */
html body.v7-ui .main>header.top.marfa-top-market-unified{
  height:auto!important;min-height:60px!important;max-height:none!important;
  flex-basis:auto!important;align-content:center!important;
  box-sizing:border-box!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster .local-clock.market-user-clock{
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-direction:row!important;gap:7px!important;
  min-width:158px!important;height:44px!important;min-height:44px!important;
  padding:5px 11px!important;border-radius:12px!important;
  background:var(--marfa-g3-inner)!important;
  border:1px solid var(--marfa-g3-border)!important;
  box-shadow:var(--marfa-g3-depth)!important;
  color:var(--marfa-field-text)!important;
  direction:ltr!important;white-space:nowrap!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-clock b{
  font-size:13px!important;line-height:1.2!important;
  color:var(--marfa-field-text)!important;font-variant-numeric:tabular-nums!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-clock small{
  display:inline!important;font-size:10px!important;line-height:1.2!important;
  color:var(--marfa-text-muted,#afc4df)!important;opacity:.92!important;
}
html body.v7-ui .main>header.top.marfa-top-market-unified>.market-clock{
  background:transparent!important;box-shadow:none!important;
  align-self:stretch!important;
}
@media(max-width:1299px){
 html body.v7-ui .main>header.top.marfa-top-market-unified{
   min-height:0!important;height:auto!important;max-height:none!important;
   flex-basis:auto!important;flex-wrap:wrap!important;row-gap:6px!important;
   padding:7px 12px!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified>.head-actions{order:1!important;min-height:38px!important}
 html body.v7-ui .main>header.top.marfa-top-market-unified>.market-clock{
   order:2!important;flex:1 0 100%!important;min-height:44px!important;
   margin:0!important;padding:0!important;
 }
}
@media (min-width:651px) and (max-width:1299px){
 html body.v7-ui .main>header.top.marfa-top-market-unified>.market-clock{
   flex-wrap:nowrap!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-list{
   flex:1 1 0!important;min-width:0!important;max-width:100%!important;
   overflow-x:auto!important;white-space:nowrap!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-cluster{
   flex:0 0 auto!important;max-width:270px!important;
 }
}
@media(max-width:650px){
 html body.v7-ui .main>header.top.marfa-top-market-unified{
   height:auto!important;min-height:0!important;max-height:none!important;
   align-items:flex-start!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified>.market-clock{
   flex-wrap:wrap!important;align-self:auto!important;row-gap:6px!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-cluster{
   width:auto!important;max-width:100%!important;flex:0 1 auto!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-clock{
   min-width:100px!important;height:38px!important;min-height:38px!important;padding:3px 8px!important;
 }
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-user-clock small{font-size:9px!important}
 html body.v7-ui .main>header.top.marfa-top-market-unified .market-list{
   min-width:0!important;flex:1 1 100%!important;margin:0!important;
 }
}


/* One coherent glass capsule for local time + profile (the same two live controls). */
html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:0!important;min-height:44px!important;height:44px!important;
  padding:0 3px!important;border-radius:13px!important;
  background:var(--marfa-g3-inner)!important;
  border:1px solid var(--marfa-g3-border)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 3px 0 rgba(7,14,28,.28),0 8px 18px rgba(5,12,27,.20)!important;
  overflow:hidden!important;box-sizing:border-box!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster .local-clock.market-user-clock{
  height:40px!important;min-height:40px!important;min-width:0!important;width:153px!important;flex:0 1 153px!important;
  padding:0 8px!important;gap:6px!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  direction:ltr!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster .market-user-clock b{
  font-family:Vazirmatn,Inter,sans-serif!important;
  font-size:13px!important;font-weight:700!important;letter-spacing:0!important;
  font-variant-numeric:normal!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster .market-profile{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:40px!important;height:40px!important;min-width:0!important;width:116px!important;flex:0 1 116px!important;
  margin:0!important;padding:3px 7px!important;box-sizing:border-box!important;
  border:0!important;border-radius:0!important;
  border-inline-end:1px solid var(--marfa-g3-border)!important;
  background:transparent!important;box-shadow:none!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster .market-profile:hover{
  background:rgba(147,179,224,.12)!important;
}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster{
  background:var(--marfa-g3-inner)!important;
}
@media(max-width:650px){
 html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster{
   min-height:40px!important;height:40px!important;
 }
 html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster .local-clock.market-user-clock{
   height:36px!important;min-height:36px!important;min-width:107px!important;padding:0 7px!important;
 }
 html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster .market-profile{
   height:36px!important;min-height:36px!important;min-width:91px!important;padding:2px 6px!important;
 }
}


/* Visual close-action contract for the current approved work area.
   Targets only explicit close controls; move/resize/other buttons untouched. */
html[data-theme] body.v7-ui #app.app.marfa-converted #myspace :is(.ms-ch button[data-a="x"],.ms-box button[data-a="close"]),
html[data-theme] body.v7-ui:has(#myspace.view.active) #marfaAsst .aw-x{
  color:#ffb5bc!important;
  background:linear-gradient(145deg,rgba(250,132,151,.22),rgba(108,34,56,.26))!important;
  border:1px solid rgba(255,136,155,.62)!important;
  border-radius:10px!important;
  box-shadow:inset 0 1px rgba(255,230,238,.25),0 4px 12px rgba(20,4,13,.21)!important;
  text-shadow:0 1px 5px rgba(255,140,160,.18)!important;
}
html[data-theme] body.v7-ui #app.app.marfa-converted #myspace :is(.ms-ch button[data-a="x"],.ms-box button[data-a="close"]):hover,
html[data-theme] body.v7-ui:has(#myspace.view.active) #marfaAsst .aw-x:hover{
  color:#fff1f3!important;
  background:linear-gradient(145deg,rgba(239,97,122,.48),rgba(145,36,62,.60))!important;
  border-color:rgba(255,171,186,.92)!important;
  box-shadow:inset 0 1px rgba(255,237,241,.36),0 5px 17px rgba(168,28,60,.24)!important;
}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted #myspace :is(.ms-ch button[data-a="x"],.ms-box button[data-a="close"]){
  color:#a51f39!important;background:linear-gradient(145deg,rgba(255,210,219,.80),rgba(248,172,190,.55))!important;
  border-color:rgba(181,66,89,.57)!important;
}


/* Viewport-safe global language popup: anchor away from the screen edge.
   Overrides only the JS-injected menu positioning; selection logic unchanged. */
@media(min-width:701px){
 html body.v7-ui .main>header.top .lang-wrap>.lang-menu{
   left:0!important;right:auto!important;
   inset-inline-start:0!important;inset-inline-end:auto!important;
   max-width:min(220px,calc(100vw - 22px))!important;
 }
}
@media(max-width:700px){
 html body.v7-ui .main>header.top .lang-wrap>.lang-menu{
   left:auto!important;right:0!important;
   inset-inline-start:auto!important;inset-inline-end:0!important;
   max-width:min(220px,calc(100vw - 22px))!important;
 }
}


@media(min-width:768px){
/* The search shortcut and label share a single text baseline. */
html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified #msxTrig{
 white-space:nowrap!important;min-height:44px!important;max-height:44px!important;
 overflow:hidden!important;
}
html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified #msxTrig .tx{
 display:block!important;flex:1 1 auto!important;min-width:0!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified #msxTrig .msx-kbd{
 flex:0 0 auto!important;white-space:nowrap!important;
}
}

/* GLOBAL HEADER REGRESSION GUARD | exact same shell on all tab transitions.
   The legacy head-actions flex-wrap:wrap caused 96px controls inside a 60px
   header while viewport/sidebar constraints were recalculated. Let the grid
   reserve intrinsic control width, never allow a second invisible control row. */
@media(min-width:768px){
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified>.head-actions{
   display:flex!important;
   flex-flow:row nowrap!important;
   align-items:center!important;
   height:44px!important;min-height:44px!important;max-height:44px!important;
   white-space:nowrap!important;
 }
}

/* TASK05_HEADER_BALANCED_RESPONSIVE | shared header geometry only.
   Three genuinely balanced zones where they fit. At narrower widths, two
   readable rows replace squeezed/uneven session controls. No DOM changes. */
@media(min-width:1300px) and (max-width:1599px){
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified{
  display:grid!important;
  grid-template-columns:minmax(max-content,1fr) auto minmax(0,1fr)!important;
  grid-template-rows:44px!important;
  gap:10px!important;
  align-items:center!important;
  padding-inline:18px!important;
  flex-wrap:nowrap!important;
 }
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified>.market-clock{
  display:contents!important;
 }
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified>.head-actions{
  grid-column:1!important;grid-row:1!important;
  justify-self:start!important;align-self:center!important;
  width:max-content!important;max-width:100%!important;
 }
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-list{
  grid-column:2!important;grid-row:1!important;
  justify-self:center!important;align-self:center!important;
  width:max-content!important;max-width:100%!important;
  height:44px!important;min-height:44px!important;
  display:flex!important;align-items:center!important;
  flex:none!important;gap:6px!important;
  justify-content:center!important;overflow:hidden!important;
 }
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster{
  grid-column:3!important;grid-row:1!important;
  justify-self:end!important;align-self:center!important;
  margin:0!important;
 }
}
/* HEADER REGRESSION FIX: open sidebar + browser zoom must not turn the
   three fitting groups into two rows. At 1300-1499 viewport pixels, the
   compact three-zone shell has enough measured space for all controls, but
   unequal left/right groups require content-aware columns, not 1fr/1fr.
   Visual-only; do not touch clocks, market data or navigation behavior. */
@media(min-width:1300px) and (max-width:1499px){
 html body.v7-ui #app.app.marfa-converted:not(.marfa-side-compact) .main>header.top.marfa-top-market-unified{
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr) max-content!important;
  grid-template-rows:44px!important;
  align-items:center!important;
  column-gap:9px!important;
  row-gap:0!important;
 }
 html body.v7-ui #app.app.marfa-converted:not(.marfa-side-compact) .main>header.top.marfa-top-market-unified>.head-actions{
  grid-column:1!important;grid-row:1!important;
  width:max-content!important;max-width:100%!important;
  justify-self:start!important;
 }
 html body.v7-ui #app.app.marfa-converted:not(.marfa-side-compact) .main>header.top.marfa-top-market-unified .market-user-cluster{
  grid-column:3!important;grid-row:1!important;
  justify-self:end!important;
 }
 html body.v7-ui #app.app.marfa-converted:not(.marfa-side-compact) .main>header.top.marfa-top-market-unified .market-list{
  grid-column:2!important;grid-row:1!important;
  width:max-content!important;max-width:100%!important;
  justify-self:center!important;
  overflow:hidden!important;
 }
}
/* Tablet: put search and profile on the top lane, sessions on the second.
   The legacy wrap remains below 768px, where the available app area is tiny. */
@media(min-width:768px) and (max-width:1299px){
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:44px 44px!important;gap:6px 10px!important;
  align-items:center!important;
  padding:7px 12px!important;
 }
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified>.market-clock{
  display:contents!important;
 }
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified>.head-actions{
  grid-column:1!important;grid-row:1!important;
  justify-self:start!important;align-self:center!important;
  width:max-content!important;max-width:100%!important;
 }
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster{
  grid-column:2!important;grid-row:1!important;
  justify-self:end!important;align-self:center!important;
  flex:none!important;max-width:270px!important;
  margin:0!important;
 }
 html body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-list{
  grid-column:1 / -1!important;grid-row:2!important;
  justify-self:center!important;align-self:center!important;
  flex:none!important;order:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:max-content!important;max-width:100%!important;
  height:44px!important;min-height:44px!important;
  gap:6px!important;overflow:hidden!important;
 }
}

/* MARFA DISPLAY NUMERALS | TASK07 | VISUAL ONLY, NO DATA MUTATION */
/* One visual rule across pages and subpages. Local clock is already rendered
   by local-clock.js in the document language; reuse it, never create a timer. */
@media (min-width:768px){
 html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified .market-user-cluster #localClock b{
  display:inline-block!important;
  min-inline-size:62px!important;
  text-align:center!important;
  font-family:var(--marfa-numeral-display-font)!important;
  font-size:13px!important;font-weight:700!important;
  font-variant-numeric:var(--marfa-numeral-display-features)!important;
  font-feature-settings:'tnum' 1!important;
  line-height:1.2!important;letter-spacing:0!important;
  direction:ltr!important;unicode-bidi:isolate!important;
  white-space:nowrap!important;
 }
 html[data-theme] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified #marketList .market-live-mini time{
  font-family:var(--marfa-numeral-display-font)!important;
  font-variant-numeric:var(--marfa-numeral-display-features)!important;
  font-feature-settings:'tnum' 1!important;
  white-space:nowrap!important;direction:ltr!important;
  unicode-bidi:isolate!important;letter-spacing:0!important;
 }
 html[data-theme] body.v7-ui #app.app.marfa-converted .main>.ticker :is(span[data-ticker-symbol] b,span[data-ticker-symbol] i){
  font-family:var(--marfa-numeral-display-font)!important;
  font-variant-numeric:var(--marfa-numeral-display-features)!important;
  font-feature-settings:'tnum' 1!important;
  white-space:nowrap!important;direction:ltr!important;
  unicode-bidi:isolate!important;letter-spacing:0!important;
 }
 /* The repeated numerical UI pattern below applies only to regular content
    views. Four protected reference pages remain outside this change. */
 html[data-theme] body.v7-ui #app.app.marfa-converted .view:not(#dashboard):not(#backtest):not(#strategy-lab):not(#analysis) :is(
  time,output,[data-marfa-display-number],.nc-cd,.metric-value,.stat-value,.kpi-value,
  .tb-metric b,.tb-hour span,.connected-kpi b,.connected-kpi strong,
  .j-kpi b,.paper-kpi b,.ms-kpi b,.bi-premium-kpi-value
 ){
  font-family:var(--marfa-numeral-display-font)!important;
  font-variant-numeric:var(--marfa-numeral-display-features)!important;
  font-feature-settings:'tnum' 1!important;
  letter-spacing:0!important;
 }
}

/* MARFA HEADER SHELL STABILITY CONTRACT v1 | all desktop/tablet views */
/* Shared header owns its position in the shell. Tab-specific layouts can style
   their content, but not suppress the main header or its clock. */
@media(min-width:768px){
 html[dir] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  transform:none!important;
  top:auto!important;
  flex-shrink:0!important;
  width:100%!important;
  box-sizing:border-box!important;
 }
 html[dir] body.v7-ui #app.app.marfa-converted .main>header.top.marfa-top-market-unified>.market-clock{
  display:contents!important;
  visibility:visible!important;
 }
}
/* SHARED SHELL: retire wallet-only header width override in compact desktop */
/* The legacy wallet workspace used `#app{display:block}` and `main{width:auto}`,
   letting the shared header run underneath the 70px compact sidebar.
   Restore the same available-width geometry as every other compact view.
   All wallet contents remain in their original main; no wallet logic touched. */
@media(min-width:1300px){
 html[dir] body.v7-ui:has(#wallets.active) #app.app.marfa-converted.marfa-side-compact>.main{
  width:calc(100% - 70px)!important;
  max-width:calc(100% - 70px)!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  padding-top:0!important;
 }
}

/* SHARED LANGUAGE MENU MATERIAL | GLOBAL G3 | viewport-safe */
/* Exactly one semantic popup shared by all tabs; positioning stays anchored
   to the top-bar globe. Styling only, no extra language handlers or DOM. */
html body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu{
  z-index:2005!important;
  box-sizing:border-box!important;
  min-width:168px!important;
  width:max-content!important;
  max-width:min(212px,calc(100vw - 22px))!important;
  padding:7px!important;
  gap:0!important;
  overflow:hidden!important;
  border-radius:16px!important;
  border:1px solid var(--marfa-g3-border,rgba(158,200,230,.38))!important;
  border-top-color:rgba(212,244,255,.52)!important;
  background:linear-gradient(143deg,rgba(69,101,139,.82),rgba(24,43,72,.94) 52%,rgba(8,23,44,.96))!important;
  box-shadow:inset 0 1px 0 rgba(245,252,255,.25),inset 0 -1px 0 rgba(4,15,33,.28),
             0 4px 0 rgba(5,17,34,.28),0 15px 34px rgba(0,9,26,.41)!important;
  backdrop-filter:blur(18px) saturate(1.18)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.18)!important;
}
html body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu>button{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  min-height:40px!important;
  width:100%!important;
  border-radius:9px!important;
  margin:0!important;
  padding:7px 11px!important;
  background:transparent!important;
  border:1px solid transparent!important;
  color:var(--marfa-text,#ebf2fa)!important;
  font:600 12px/1.45 inherit!important;
  text-align:start!important;
  box-shadow:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease!important;
}
html body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu>button+button{
  border-top:1px solid rgba(159,190,217,.09)!important;
}
html body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu>button:is(:hover,:focus-visible){
  background:rgba(119,172,209,.17)!important;
  border-color:rgba(154,201,234,.29)!important;
  color:#fff!important;
}
html body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu>button.active{
  background:rgba(206,163,81,.12)!important;
  border-inline-start:2px solid rgba(221,179,103,.9)!important;
  color:#f8d698!important;
}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu{
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(222,236,252,.96))!important;
  border-top-color:rgba(255,255,255,.95)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.95),0 4px 0 rgba(50,84,128,.12),0 15px 34px rgba(26,55,95,.18)!important;
}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu>button{color:#203750!important}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu>button:is(:hover,:focus-visible){color:#0b284b!important;background:rgba(98,149,209,.16)!important}
html[data-theme="light"] body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu>button.active{color:#77521c!important}
@media(prefers-reduced-motion:reduce){
 html body.v7-ui #app.app.marfa-converted .main>header.top .lang-wrap>.lang-menu>button{transition:none!important}
}

/* GLOBAL VIEW TOP ALIGN | shared shell content geometry | task09 */
/* Root cause: legacy v3.css sets .view { margin:auto } while the global
   .main is flex-column. Short sections therefore receive large resolved
   auto block margins and appear vertically centered, leaving 70-190px
   blank space below the price rail. New sections inherit the same defect.
   Keep inline margins, all JS, data, inputs and global shell unchanged.
   Approved reference tabs are deliberately excluded. */
@media (min-width:768px){
 html[dir] body.v7-ui #app.app.marfa-converted>.main>section.view.active:not(:is(#dashboard,#backtest,#strategy-lab,#analysis)){
  margin-block-start:0!important;
  margin-block-end:0!important;
 }
}

/* school-progress-sync.css */
/* FAR-176 shared account progress status */
#schoolSyncStatus{padding:11px 12px;border:1px solid rgba(191,156,96,.27);border-radius:11px;background:#201a10;color:#e6d6b4;font:12px/1.8 Vazirmatn,Inter,Arial,sans-serif;margin-top:12px}
#schoolSyncStatus .school-sync-copy{display:block}
#schoolSyncStatus .school-import-progress{padding:7px 11px;border:1px solid #d4a64f;border-radius:8px;background:transparent;color:#f4d691;font:600 12px Vazirmatn,Inter,Arial,sans-serif;margin-top:6px;cursor:pointer}
#schoolSyncStatus button:focus-visible{outline:2px solid #f4d691;outline-offset:3px}
html[data-theme="light"] #schoolSyncStatus{background:#fbf3df;color:#403421;border-color:#d5b77e}
html[data-theme="light"] #schoolSyncStatus .school-import-progress{color:#674c13;border-color:#b08538}

/* options-education.css */
/* Preview: Options learning and context help. UI only, no site-wide layout changes. */
#opts .moi-edu-host{position:relative}
#opts .oi-head.moi-edu-host{padding-inline-end:54px}
#opts .oi-ctl.moi-edu-host{padding-inline-end:36px}
#opts .oi-ch.moi-edu-host{align-items:center}
#opts .oi-ch.moi-edu-host .moi-edu-q{margin-inline-start:auto}
#opts .oi-k.moi-edu-host{padding-inline-end:35px}
#opts .moi-edu-q{display:inline-grid;place-items:center;flex:none;width:23px;height:23px;border-radius:50%;border:1px solid rgba(226,184,92,.83);background:#1a1d22;color:#f9d17b;font:800 12px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 0 10px rgba(226,184,92,.12);z-index:5}
#opts .oi-head>.moi-edu-q{position:absolute;top:16px;inset-inline-end:17px}
#opts .oi-ctl>.moi-edu-q{position:absolute;top:9px;inset-inline-end:4px}
#opts .oi-k>.moi-edu-q{position:absolute;top:9px;inset-inline-end:9px}
#opts .moi-edu-q:hover,#opts .moi-edu-q:focus-visible{background:#e9c36b;color:#11150e;outline:2px solid #d1a84f;outline-offset:2px}
#opts .moi-learning-shortcut{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;border:1px solid rgba(212,166,79,.38);border-radius:12px;background:rgba(31,43,57,.6);padding:11px 14px;font-size:12px;line-height:1.8}
#opts .moi-learning-shortcut strong{color:#f2d189}
#opts .moi-learning-shortcut span{color:#c3cfe0}
#opts .moi-learning-shortcut a{margin-inline-start:auto;color:#f6d382;font-weight:700;text-decoration:underline}
.moi-edu-open{overflow:hidden}
.moi-edu-modal[hidden]{display:none!important}
.moi-edu-modal{position:fixed;inset:0;z-index:2147482800;display:grid;place-items:center;padding:18px;direction:rtl}
.moi-edu-scrim{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(4px)}
.moi-edu-dialog{position:relative;display:flex;flex-direction:column;max-width:680px;width:100%;max-height:min(810px,91vh);background:#132039;color:#e6f0fc;border:1px solid #b48a48;border-radius:18px;box-shadow:0 25px 90px rgba(0,0,0,.62);overflow:hidden}
.moi-edu-header{padding:18px 23px 12px;background:linear-gradient(110deg,#263957,#162439);border-bottom:1px solid rgba(226,184,92,.36);display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.moi-edu-header small{color:#cfb574;font-size:10px;letter-spacing:1px}
.moi-edu-header h2{margin:8px 0 5px;color:#f7d782;font-size:21px;line-height:1.55}
.moi-edu-header p{margin:0;color:#c5d5e8;font-size:12px;line-height:1.75}
#moiEduClose{border:1px solid #b38c49;color:#f9d37c;background:#182439;font:400 25px/1 sans-serif;border-radius:9px;width:36px;height:36px;cursor:pointer;flex:none}
.moi-edu-body{padding:6px 23px 20px;overflow:auto;overscroll-behavior:contain}
.moi-edu-body section{border-bottom:1px solid rgba(165,196,232,.19);padding:13px 0}
.moi-edu-body section:last-child{border-bottom:none}
.moi-edu-body h3{font-size:14px;color:#ebcb80;margin:0 0 5px}
.moi-edu-body p{font-size:13px;line-height:1.95;color:#dce8f7;margin:0;white-space:pre-wrap}
.moi-edu-caution{background:rgba(195,119,74,.08);padding:13px!important;border-radius:10px}
.moi-edu-footer{padding:12px 22px;border-top:1px solid rgba(165,196,232,.22);display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:#0e1a2d}
.moi-edu-footer a{color:#f0c879;font-size:13px;font-weight:700;text-decoration:underline}
.moi-edu-footer button{background:#c6a35f;color:#151b22;border:0;border-radius:9px;padding:10px 15px;font-weight:800;cursor:pointer}
.moi-edu-dialog button:focus-visible,.moi-edu-dialog a:focus-visible{outline:2px solid #f8df95;outline-offset:2px}
html[data-th=light] .moi-edu-dialog,html[data-theme=light] .moi-edu-dialog{background:#f8fbff;color:#1e344f}
html[data-th=light] .moi-edu-header,html[data-theme=light] .moi-edu-header{background:#e8f1ff}
html[data-th=light] .moi-edu-body p,html[data-theme=light] .moi-edu-body p{color:#2f4865}
html[data-th=light] .moi-edu-header p,html[data-theme=light] .moi-edu-header p{color:#456381}
html[data-th=light] .moi-edu-footer,html[data-theme=light] .moi-edu-footer{background:#e6f0fd}
@media(max-width:640px){#opts .moi-learning-shortcut a{margin-inline-start:0}.moi-edu-modal{padding:8px}.moi-edu-header,.moi-edu-body,.moi-edu-footer{padding-inline:14px}.moi-edu-header h2{font-size:18px}#opts .oi-ch{gap:5px}#opts .oi-ch h3{font-size:14px}}
/* Normalize global app button defaults for compact icon-only questions. */
#opts .moi-edu-q{min-height:23px!important;max-height:23px!important;min-width:23px!important;max-width:23px!important;padding:0!important;line-height:1!important}

/* site-feature-education.css */
.view .marfa-edu-feature{position:relative!important}
.view .marfa-edu-feature>.marfa-edu-question{position:absolute!important;inset-inline-end:9px;top:9px;z-index:10;display:grid;place-items:center;width:21px;height:21px;min-width:21px;border-radius:50%;border:1px solid #d5a95f;color:#f6d484;background:rgba(12,22,37,.92);padding:0;font:800 12px/1 system-ui;cursor:pointer;box-shadow:0 0 7px rgba(222,181,100,.18)}
.view .marfa-edu-feature>.marfa-edu-question:hover,.view .marfa-edu-feature>.marfa-edu-question:focus-visible{outline:2px solid #d9b768;outline-offset:2px;background:#d7ac57;color:#121c28}
.view .marfa-edu-feature>.marfa-edu-question:not(:hover){opacity:.9}
html[data-th=light] .view .marfa-edu-feature>.marfa-edu-question,html[data-theme=light] .view .marfa-edu-feature>.marfa-edu-question{background:#edf4fe;color:#31567e}
@media(max-width:640px){.view .marfa-edu-feature>.marfa-edu-question{width:19px;height:19px;min-width:19px;font-size:11px}}
.view .marfa-edu-feature>.marfa-edu-question{min-height:21px!important;max-height:21px!important;min-width:21px!important;max-width:21px!important;padding:0!important}
.view .marfa-edu-feature>:not(.marfa-edu-question):is(:first-child,.marfa-edu-question+*){padding-inline-end:30px;box-sizing:border-box}

/* social-intelligence.css */
.social-intel{margin:12px 0}.si-controls{display:flex;gap:7px;margin:9px 0}.si-controls input{flex:1;min-width:0;background:var(--marfa-field-background);color:var(--marfa-field-text);border:1px solid var(--marfa-field-border);border-radius:7px;padding:7px}.si-controls button{border:1px solid var(--marfa-field-border);border-radius:7px;background:var(--marfa-field-background);color:var(--marfa-field-text);padding:7px 14px}.si-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.si-grid span{padding:8px;border:1px solid var(--marfa-border-glass);border-radius:8px;background:var(--marfa-field-background)}.si-grid small,.si-grid b,.si-grid i{display:block}.si-grid small,.si-grid i,.si-evidence{font-size:9px;color:#95928e}.si-grid b{font-size:12px;margin:3px 0}.si-boundary{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;padding:8px;border:1px dashed #4a453c;border-radius:8px;font-size:9px}.si-boundary b{width:100%;color:#f1c96f}.si-boundary span{color:#bab9b6}.si-evidence{margin-top:7px;line-height:1.6}@media(max-width:760px){.si-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* explainable-alerts.css */
.alert-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:14px 0}.alert-toolbar button,.explain-alert footer button{border:1px solid #433e37;background:#1e1a15;color:inherit;border-radius:9px;padding:8px 11px;cursor:pointer}.alert-toolbar small{opacity:.65}.explain-alert-list{display:grid;gap:10px}.explain-alert{display:grid;grid-template-columns:8px 1fr;gap:12px;padding:14px;border:1px solid #37322a;border-radius:14px;background:#181510}.explain-alert>i{border-radius:8px;background:#d8ad58}.explain-alert.warn>i{background:#d3a24d}.explain-alert.danger>i{background:#d76868}.explain-alert header,.explain-alert footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.explain-alert time,.explain-alert footer span{font-size:10px;opacity:.62}.explain-alert p{margin:8px 0 11px;line-height:1.75}.explain-alert footer{justify-content:flex-start}.explain-alert footer button{margin-inline-start:auto}@media(max-width:620px){.alert-toolbar{align-items:flex-start;flex-direction:column}.explain-alert footer button{margin-inline-start:0;width:100%}}.alert-filters,.alert-actions{display:flex;gap:7px;flex-wrap:wrap}.alert-filters button.active{border-color:#d1ae64;color:#e0bd70;background:#1a1710}.alert-history-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:-5px 0 12px}.alert-history-meta small{opacity:.62}

/* daily-delta-brief.css */
.delta-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.delta-head h1{margin:4px 0 7px}.delta-head p{margin:0;opacity:.72}.delta-head>span{padding:7px 10px;border:1px solid #4b473e;border-radius:999px;font-size:10px}.delta-since{margin:16px 0;padding:11px 13px;border:1px solid var(--marfa-border-glass);border-radius:11px;background:var(--marfa-field-background);font-size:11px}.delta-top{padding:16px;border:1px solid var(--marfa-border-glass);border-radius:15px;background:var(--marfa-surface-glass)}.delta-top h2{margin:0 0 10px;font-size:16px}.delta-top ol{margin:0;padding-inline-start:23px;display:grid;gap:8px;line-height:1.7}.delta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:13px 0}.delta-grid button{display:grid;gap:7px;text-align:start;padding:14px;border:1px solid var(--marfa-border-glass);border-radius:13px;background:var(--marfa-field-background);color:inherit;cursor:pointer}.delta-grid small{opacity:.65}.delta-grid b{font-size:17px}.delta-grid span{font-size:9px;color:var(--marfa-accent-soft)}.delta-boundaries{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.delta-boundaries span{padding:11px;border:1px solid #37322a;border-radius:11px}.delta-boundaries b,.delta-boundaries small{display:block}.delta-boundaries small{margin-top:5px;opacity:.62}@media(max-width:900px){.delta-grid,.delta-boundaries{grid-template-columns:1fr 1fr}}@media(max-width:560px){.delta-head{flex-direction:column}.delta-grid,.delta-boundaries{grid-template-columns:1fr}}

/* global-asset-search.css */
.gas-search{position:relative;display:inline-flex;align-items:center;gap:5px;min-width:150px}.gas-search>span{opacity:.65}.gas-search>input{width:150px;max-width:32vw;background:#1b1710;color:#eeedec;border:1px solid #3b352c;border-radius:7px;padding:6px 8px;font-size:10px}.gas-results{position:absolute;z-index:9999;top:calc(100% + 4px);inset-inline:0;max-height:260px;overflow:auto;background:#15120d;border:1px solid #3e3930;border-radius:8px;box-shadow:0 12px 30px #0008}.gas-results button{width:100%;display:flex;justify-content:space-between;padding:8px;border:0;border-bottom:1px solid #2d2821;background:transparent;color:#eeedec;text-align:start;cursor:pointer}.gas-results button:hover{background:#262118}.gas-results small,.gas-results>span{color:#95928e;font-size:9px}.gas-results>span{display:block;padding:10px}@media(max-width:760px){.gas-search{min-width:120px}.gas-search>input{width:125px;max-width:38vw}}

/* institutional-liquidity.css */
.ml-institutional-panel{margin:10px 0}.ml-institutional-panel header>span{font-size:9px;color:#58d89f}.ml-inst-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ml-inst-grid span{padding:9px;border:1px solid var(--ml-border);border-radius:8px;background:var(--ml-card2)}.ml-inst-grid small,.ml-inst-grid b{display:block}.ml-inst-grid small{font-size:9px;color:var(--ml-muted);margin-bottom:5px}.ml-inst-grid b{font-size:13px;color:var(--ml-text)}.ml-inst-source,.ml-inst-boundary{display:flex;justify-content:space-between;gap:10px;margin-top:8px;font-size:9px}.ml-inst-source{color:var(--ml-muted)}.ml-inst-boundary{padding:8px;border:1px dashed var(--ml-border);border-radius:8px}.ml-inst-boundary b{color:#f1c96f}.ml-inst-boundary span{color:var(--ml-muted)}@media(max-width:760px){.ml-inst-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ml-inst-boundary{display:grid}}

/* marfa-assistant.css */
.ma-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.ma-head h1{margin:4px 0 6px}.ma-head p{margin:0;opacity:.7}.ma-head>span{padding:7px 10px;border:1px solid #4b463e;border-radius:999px;font-size:9px}.ma-prompts{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.ma-prompts button,.ma-input button{border:1px solid #454038;background:#1d1a14;color:inherit;border-radius:9px;padding:8px 11px;cursor:pointer}.ma-chat{display:grid;gap:10px;max-height:58vh;overflow:auto;padding:4px}.ma-msg{max-width:860px;padding:13px;border:1px solid #3a352c;border-radius:14px;background:#18150f}.ma-msg.user{justify-self:end;background:#211d18}.ma-msg.assistant{justify-self:start}.ma-msg>div{line-height:1.85}.ma-msg footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.ma-msg footer button{display:grid;text-align:start;gap:4px;padding:8px;border:1px solid rgba(217,180,90,.2);border-radius:9px;background:rgba(217,180,90,.04);color:inherit;cursor:pointer}.ma-msg footer small{font-size:9px;opacity:.62}.ma-input{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}.ma-input input{min-width:0;padding:11px 13px;border:1px solid #454038;border-radius:10px;background:#15120d;color:inherit}.ma-boundary{font-size:10px;opacity:.62;line-height:1.7}@media(max-width:650px){.ma-head{flex-direction:column}.ma-msg footer{grid-template-columns:1fr}.ma-chat{max-height:52vh}}

/* currency-converter.css */
#marfaConverter{position:fixed;z-index:9999;right:18px;bottom:18px;direction:ltr}
#marfaConverterFab{width:48px;height:48px;border:1px solid rgba(217,180,90,.42);border-radius:50%;background:#1c1914;color:#e3c66b;font-size:20px;box-shadow:0 10px 32px rgba(0,0,0,.34);cursor:pointer}
.cc-panel{display:none;position:absolute;right:0;bottom:58px;width:min(410px,calc(100vw - 24px));padding:14px;border:1px solid #454038;border-radius:16px;background:#15120d;color:#e3e2e1;box-shadow:0 18px 55px rgba(0,0,0,.48)}
.cc-panel.open{display:block}.cc-panel header{display:flex;justify-content:space-between;gap:12px;align-items:start}.cc-panel header div{display:grid;gap:3px}.cc-panel header small{color:#d9b45a;font-size:9px}.cc-panel header b{font-size:15px}.cc-panel header button{border:0;background:transparent;color:#bab9b6;font-size:22px;cursor:pointer}
.cc-rate{display:flex;justify-content:space-between;align-items:center;margin:12px 0;padding:10px;border-radius:10px;background:#201b13}.cc-rate span{font-size:9px;opacity:.65}.cc-rate b{color:#e3c66b}.cc-rate.loading b{animation:ccpulse 1s infinite}
.cc-form{display:grid;grid-template-columns:1.3fr 1fr auto 1fr;gap:7px;align-items:end}.cc-form label{display:grid;gap:5px;font-size:9px;opacity:.8}.cc-form input,.cc-form select{min-width:0;width:100%;height:38px;padding:0 9px;border:1px solid #423e35;border-radius:8px;background:#1a1610;color:inherit}.cc-form>button{height:38px;width:38px;border:1px solid #423e35;border-radius:8px;background:#211d15;color:#d9b45a;cursor:pointer}
.cc-result{display:grid;gap:4px;margin:12px 0;padding:12px;border:1px solid rgba(217,180,90,.2);border-radius:11px;background:rgba(217,180,90,.035)}.cc-result small{opacity:.65}.cc-result b{font-size:21px}.cc-result span{font-size:9px;color:#d9b45a}.cc-panel footer{display:grid;gap:3px;font-size:8px;line-height:1.45;opacity:.56}.cc-panel footer time{margin-top:4px}
@keyframes ccpulse{50%{opacity:.45}}
@media(max-width:520px){#marfaConverter{right:12px;bottom:76px}.cc-panel{position:fixed;left:12px;right:12px;bottom:136px;width:auto}.cc-form{grid-template-columns:1fr 1fr}.cc-form>button{grid-row:2;grid-column:1/-1;width:100%}}#marfaConverter{display:none!important}

/* portfolio-risk-v67.css */
.portfolio-risk-card{margin:14px 0;padding:16px;border:1px solid #3c372f;border-radius:14px;background:#17140e}.portfolio-risk-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.portfolio-risk-head h3{margin:4px 0}.portfolio-risk-head p,.portfolio-risk-note{color:#94928e;font-size:.75rem;line-height:1.65}.portfolio-risk-head>span{padding:6px 9px;border-radius:999px;border:1px solid #365148;font-size:.72rem}.portfolio-risk-head>span.low{color:#61d4a6}.portfolio-risk-head>span.medium{color:#e0b75f;border-color:#6b5830}.portfolio-risk-head>span.high{color:#ed8178;border-color:#6d3e3a}.portfolio-risk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.portfolio-risk-grid span,.portfolio-stress span{display:grid;gap:4px;padding:9px;border:1px solid #3a352d;border-radius:9px}.portfolio-risk-grid small,.portfolio-stress small,.portfolio-risk-grid i{color:#94928e;font-size:.68rem;font-style:normal}.portfolio-stress{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}@media(max-width:820px){.portfolio-risk-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.portfolio-risk-head{flex-direction:column}.portfolio-risk-grid,.portfolio-stress{grid-template-columns:1fr}}

/* far156-decision.css */
.far156-decision{margin:18px 0;padding:18px;min-width:0;border:1px solid var(--line,#3c362c);border-radius:16px;background:var(--card,#201c15)}
.far156-decision>b{display:block;margin-bottom:12px}.far156-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.far156-grid span{padding:10px;border:1px solid var(--line,#3c362c);border-radius:10px;font-size:12px}.far156-grid strong{display:block;margin-top:5px;font-size:14px;overflow-wrap:anywhere}.far156-grid span:last-child strong{font-size:12px}.far156-note{margin:10px 0 0;font-size:12px;opacity:.8}.far156-decision small{display:block;margin-top:10px;opacity:.7;direction:ltr;text-align:left;overflow-wrap:anywhere}@media(max-width:760px){.far156-grid{grid-template-columns:1fr 1fr}}@media(max-width:430px){.far156-grid{grid-template-columns:1fr}.far156-decision{padding:14px}}

/* dashboard-dnd.css */
body.mockup-visual-lock .ml-dnd-card{cursor:grab;position:relative}body.mockup-visual-lock .ml-dnd-card:active{cursor:grabbing}body.mockup-visual-lock .ml-dnd-card.ml-dragging{opacity:.45;outline:1px dashed #d5a62e}body.mockup-visual-lock .ml-dnd-card>header:before{content:'⠿';color:#8b9298;font-size:15px;margin-inline-end:7px}body.mockup-visual-lock .ml-row{min-height:44px}
