/* Trade Zaga brand layer. Presentation only; private workspace rules stay unchanged. */
:root{--bg:#131722;--surface:#191e29;--surface-alt:#161b26;--hover:#242a36;--ink:#c4c5c7;--bright:#eceef0;--muted:#98a2b2;--line:#303541;--accent:#17a57f;--green:#17a57f;--green-bg:#17a57f0c;--green-line:#17a57f45;--red:#ee9aa2;--radius:11px}
html[data-theme=light]{--bg:#f4f5f7;--surface:#fff;--surface-alt:#eef0f3;--hover:#e5e8ed;--ink:#34404c;--bright:#171d28;--muted:#66717c;--line:#dce0e6;--accent:#137b55;--green:#137b55;--green-bg:#137b5508;--green-line:#137b5545;--red:#ad4655}
html body{font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--ink)}html h1,html h2,html h3,html h4{font-family:DM Sans,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.5px;color:var(--bright)}html button,html input,html select,html textarea{font-family:inherit}html .panel,html .trade-card,html dialog{border-color:var(--line);border-radius:12px;background:var(--surface)}html .topbar,html .page-navigation{background:var(--surface);border-color:var(--line)}html .brand-logo,html .brand img,html .auth>img{filter:none!important}html .page-navigation .page-nav-item{border-radius:11px}html .page-navigation .page-nav-item.active{background:var(--green-bg)!important;border-color:var(--green-line)!important;color:var(--green)!important;box-shadow:none!important}html .page-navigation .page-nav-item.active svg,html .page-navigation .page-nav-item.active span{color:var(--green)!important}html .primary{background:var(--green);border-color:var(--green-line);color:#09251c;box-shadow:none}html[data-theme=light] .primary{color:#fff}html .primary:hover{filter:brightness(1.06)}html .primary:disabled,html .primary[aria-disabled=true],html #enterTrade:not(.confirmations-complete),html #mobileEnterTrade:not(.confirmations-complete),html #newTrade:not(.confirmations-complete){background:var(--hover);color:var(--muted);border-color:var(--line);box-shadow:none;filter:none}html #enterTrade.confirmations-complete,html #mobileEnterTrade.confirmations-complete,html #newTrade.confirmations-complete{background:var(--green);border-color:var(--green-line);color:#09251c}html[data-theme=light] #enterTrade.confirmations-complete,html[data-theme=light] #mobileEnterTrade.confirmations-complete,html[data-theme=light] #newTrade.confirmations-complete{color:#fff}html .check.confirmed{background:var(--green-bg);border-color:var(--green-line)}html .check input{accent-color:var(--green)}html input,html select,html textarea{border-color:var(--line);background:var(--surface-alt);color:var(--bright)}html :focus-visible{outline-color:var(--green)}html .auth{border:1px solid var(--line);box-shadow:0 20px 60px #00000015;border-radius:16px;background:var(--surface)}html .auth>img{max-width:190px;margin-bottom:22px}html .auth h1{line-height:1.2;letter-spacing:-.8px}html .auth p{line-height:1.8}html .auth button{border-radius:9px;min-height:44px}html .setup-tab{border-color:var(--line)}html .timeframes button.active,html .view-switch button.active{color:var(--green);background:var(--green-bg);border-color:var(--green-line)}html .equity-svg-wrap{background:var(--surface-alt)}html .user-chip,html .theme-toggle,html .running-badge{border-color:var(--line);background:var(--surface-alt)}html .page-nav-item:hover{background:var(--hover)}@media(max-width:760px){html .panel,html .trade-card{border-radius:11px}html .page-navigation{border-radius:17px}html .auth input,html .auth select{font-size:16px}html .auth{box-shadow:none}}

html .auth-brand{display:inline-block;margin-bottom:22px}html .auth-brand img{width:190px;max-width:100%;height:auto;display:block}html .auth-brand:focus-visible{outline:2px solid var(--green);outline-offset:6px}
html .primary,html[data-theme=light] .primary{background:#17a57f;color:#09251c}html .primary:disabled,html .primary[aria-disabled=true]{background:var(--hover);color:var(--muted)}html #enterTrade.confirmations-complete,html #mobileEnterTrade.confirmations-complete,html #newTrade.confirmations-complete,html[data-theme=light] #enterTrade.confirmations-complete,html[data-theme=light] #mobileEnterTrade.confirmations-complete,html[data-theme=light] #newTrade.confirmations-complete{background:#17a57f;color:#09251c}
html #enterTrade:disabled,html #mobileEnterTrade:disabled,html #newTrade:disabled,html #enterTrade[aria-disabled=true],html #mobileEnterTrade[aria-disabled=true],html #newTrade[aria-disabled=true]{background:var(--hover);color:var(--muted);border-color:var(--line);box-shadow:none;filter:none}

html h1,html h2,html h3,html h4{font-family:'Space Grotesk',ui-sans-serif,system-ui,sans-serif;font-weight:500;letter-spacing:-.6px}html .page-navigation .page-nav-item{border-radius:14px}html .primary,html .secondary{border-radius:30px}html .panel,html .trade-card,html dialog{border-radius:16px}html .auth{border-radius:24px}html .auth input,html .auth select{border-radius:11px}@media(max-width:760px){html .panel,html .trade-card{border-radius:13px}}

/* Use the available workspace width while preserving form targets and chart tools. */
:root,html[data-theme=light]{--accent:#17A57F;--brand:#17A57F}
body main:has(#deskView){max-width:none;margin-right:0;min-width:0}
@media(min-width:761px){
 body main:has(#deskView){padding-left:16px;padding-right:16px}
 body main:has(#deskView) .panel:not(.chart-panel):not(#checklist){padding:16px}
 body main:has(#deskView) .heading{margin-top:17px;margin-bottom:14px}
 body main #deskView .grid{gap:12px}
 body main #deskView .chart-panel{padding:0}
 body main #deskView .chart-controls{padding:10px 13px;gap:9px}
 body main #deskView .chart-controls h3{font-size:20px}
 body main #deskView .chart-footer{padding:7px 12px}
 body main #reviewView .review-two-col,body main #marketsView .markets-grid,body main #marketsView .asset-grid{gap:12px}
 body main #reviewView .review-metrics{gap:10px}
 body main #reviewView .review-metrics>.card{padding:14px}
 body main #reviewView .review-toolbar{padding:12px;gap:10px}
 body main #notebookPane{padding:13px}
 body main .bubble-map-toolbar{padding:10px 12px;gap:9px}
 body main .bubble-map-stage svg{height:clamp(480px,65dvh,760px)}
 body main .bubble-map-layout{grid-template-columns:minmax(0,1fr) 250px}
}
@media(min-width:1900px){body main:has(#deskView){padding-left:20px;padding-right:20px}}
@media(max-width:760px){
 body main #deskView .chart-controls{padding:10px 11px;gap:8px}
 body main #deskView .chart-controls h3{font-size:20px}
 body main #deskView .chart-panel{padding:0!important}
 body main .bubble-map-toolbar{padding:9px!important;gap:7px}
 body main .bubble-map-toolbar input,body main .bubble-map-toolbar select,body main .map-tools button{min-height:42px}
 body main .bubble-map-toolbar>div:first-child h3{margin:0;font-size:17px}
 body main .bubble-map-stage svg{height:clamp(340px,56dvh,520px)}
 body main .bubble-map-layout{min-width:0}
 body main #reviewView .review-two-col>.panel:has(.bubble-map-layout){padding:0!important}
 body main #userView .user-profile-grid,body main #profileView .accounts-grid{min-width:0;gap:10px}
}
