/* V4 unified light theme. No remote fonts or third-party assets. */
:root{
 color-scheme:light!important;
 --bg:#f4f7fb;--card:#fff;--card2:#f8fbfd;--panel:#fff;--panel2:#f7fafc;
 --line:#dbe5ed;--border:#dbe5ed;--stroke:#dbe5ed;
 --text:#213548;--txt:#213548;--muted:#5e7184;--accent:#167d76;
 --good:#117961;--warn:#9d6113;--red:#bc424b;--bad:#bc424b;
 --blue:#216d92;--cyan:#11798b;
}
html,body{background:#f5f8fb!important;color:#203447!important}
body{font-family:"Vazirmatn","IRANSansX","Segoe UI",Tahoma,Arial,sans-serif!important;font-size:14px!important;line-height:1.83!important}
h1,h2,h3{color:#1c3446!important;letter-spacing:0!important}
a{color:#136f84!important}
a:hover{color:#0d606a!important}
.card,.section,.metric,.step,.info>div{
 background:#fff!important;color:#263b4d!important;border-color:#dce6ee!important;
 box-shadow:0 3px 12px #3657730a;
}
.card,.section{border-radius:15px!important}
.metric,.step,.info>div{background:#fafdff!important}
.hero,.profitPanel{
 background:linear-gradient(135deg,#f0f9f8,#eaf3f8)!important;
 border-color:#cde4e3!important;color:#21475a!important;
}
.hero strong,.hero .num,.profit.positive{color:#127a64!important}
.profit.negative{color:#b73f50!important}
.profit.unavailable{color:#203b4b!important}
.notice{
 background:#f0f7fa!important;color:#4a6174!important;
 border-color:#cfe0e9!important;border-right-color:#3a899b!important;
 border-radius:10px!important;
}
.notice strong{color:#234255!important}
.pill,.tag,.link{
 background:#f0f6f8!important;border-color:#d3e3e8!important;
 color:#305a67!important;border-radius:9px!important;
}
.pill.warn,.warn{color:#94601b!important}
.good{color:#117961!important}.bad{color:#ad3947!important}
.muted,.small,.hint,.explainer,.overline,.sub{color:#617589!important}
button,.button{
 font-family:inherit!important;letter-spacing:0!important;
 background:#eaf3f5!important;border:1px solid #b9d1da!important;
 color:#234858!important;border-radius:10px!important;
 font-size:13px!important;font-weight:650!important;
}
button:hover,.button:hover{background:#e0eef0!important}
button.primary,.button:not(.secondary):not(.stop):is(.button){
 background:#147a71!important;color:#fff!important;border-color:#147a71!important;
}
button.primary:hover,.button:not(.secondary):not(.stop):is(.button):hover{
 background:#0c6760!important;
}
button.stop{color:#ad3947!important;background:#fff0f0!important;border-color:#e9b9be!important}
button.stop:hover{background:#ffe5e7!important}
button:disabled,.button:disabled{opacity:.52}
input,select,textarea{
 background:#fff!important;color:#203447!important;border-color:#cbdbe5!important;
 font:500 14px/1.6 "Segoe UI",Tahoma,Arial,sans-serif!important;border-radius:9px!important;
}
input:focus,select:focus,button:focus-visible,a:focus-visible{
 outline:2px solid #3a9491!important;outline-offset:2px;
}
table{background:transparent!important}
th{color:#486077!important;font-weight:700!important;background:#eff5f8!important}
td{color:#2c4055!important;border-bottom:1px solid #e4eaf1!important}
tr:nth-child(even) td{background:#f9fbfd}
table td,table th{font-size:12px!important;line-height:1.85!important}
.tableScroll,.table-scroll,.scroll{border-radius:9px;scrollbar-color:#bed0d9 #f2f6fa}
.bar{background:#e0e9ee!important}
#message,#msg{background:#eaf4f9!important;color:#28485c!important;border-color:#bcd4df!important}
.metric strong,.card .value,.info strong,.profit,.fact strong,.hero .num,
.value,.num,.mono,table td,table th{
 font-variant-numeric:tabular-nums lining-nums!important;
 font-feature-settings:"tnum" 1,"lnum" 1!important;
}
.metric strong,.card .value,.info strong,.profit,.hero .num{
 font-family:"Segoe UI",Tahoma,Arial,sans-serif!important;
 font-weight:750!important;letter-spacing:.015em!important;
 color:#1f3c50;
}
.card .value,.metric strong{font-size:clamp(20px,2.2vw,27px)!important}
.info strong{font-size:18px!important}
.profit{font-size:clamp(27px,3.4vw,41px)!important}
.num,.mono,.route{direction:ltr;unicode-bidi:isolate;text-align:left}
.fact strong{font-size:14px!important;line-height:1.8}
.metric small,.card .label,.info small{font-size:12px!important;color:#5d7185!important}
.eyebrow{color:#317d8b!important;letter-spacing:.1em!important}
hr,.rule{border-color:#e1e8ee!important}
footer,.footer{color:#637487!important;border-color:#e0e8ed!important}
.v4-embedded body{background:#f8fafc!important}
.v4-embedded header.top,.v4-embedded header.head{display:none!important}
.v4-embedded .wrap{max-width:1420px!important;padding:17px 18px 34px!important}
.v4-embedded main{max-width:1420px!important;padding:17px 18px 34px!important}
.v4-embedded .footer,.v4-embedded footer{margin-top:12px}
@media(max-width:760px){
 body{font-size:15px!important}
 .v4-embedded .wrap,.v4-embedded main{padding:12px 10px 28px!important}
 .card,.section{padding:15px!important}
 .metric strong,.card .value{font-size:22px!important}
 .metric small,.card .label,.info small{font-size:12.5px!important}
 .profit{font-size:30px!important}
}
/* Consistent secure-login appearance. */
body>.panel,.panel:where(main){
 background:#fff!important;color:#203447!important;
 border:1px solid #dce6ee!important;
 box-shadow:0 14px 46px #3557761a!important;
}
.panel p,.panel footer,.panel label,.panel .row{color:#5e7184!important}
.panel input{background:#fff!important;color:#21384e!important}
.panel #result{color:#b33745!important}
.panel button[type="submit"]{background:#15796f!important;color:#fff!important}
/* V4 workspace information architecture: one responsibility per tab. */
body[data-v4-scope="reports"] [data-v4-group]:not([data-v4-group="reports"]),
body[data-v4-scope="settings"] [data-v4-group]:not([data-v4-group="settings"]),
body[data-v4-scope="real"] [data-v4-group]:not([data-v4-group="real"]){
 display:none!important;
}
body[data-v4-scope="reports"] footer.footer,
body[data-v4-scope="real"] footer.footer{display:none!important}
html.v4-overview .tableCard{display:none!important}
html.v4-overview .metrics .metric:nth-child(2),
html.v4-overview .metrics .metric:nth-child(3){display:none!important}
html.v4-overview #realOverviewPnl{color:#16536e!important;font-size:20px!important}
html.v4-overview .bigAction .actions{display:none!important}
html.v4-overview .footer{display:none!important}
body[data-v4-scope] .section{margin-top:12px!important}
body[data-v4-scope="settings"] .section form label{color:#355064!important}
body[data-v4-scope="real"] #realSummaryPnl,
body[data-v4-scope="real"] #realSummaryCycles,
body[data-v4-scope="real"] #realSummaryOrders{
 font-variant-numeric:tabular-nums!important;font-size:22px!important;
}
body[data-v4-scope] #portfolioNative,
body[data-v4-scope] #rawAccount,
body[data-v4-scope] #timeline{
 background:#f6f9fc!important;color:#2a4057!important;
 border:1px solid #e1e8ee!important;
}
