/* Trade Zaga: native system typography and restrained desktop/mobile materials. */
:root,html[data-theme=dark],html[data-theme=light]{--system-font:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;--body:var(--system-font);--heading:var(--system-font);--brand:#17A57F;--accent:#17A57F;--native-chrome:#191e29e8;--native-shadow:0 5px 20px #00000012;--native-raised:#242a36;--native-divider:#c4c5c71c;--native-inner:inset 0 1px 0 #ffffff05}
html[data-theme=light]{--bg:#f5f5f7;--native-chrome:#f5f5f7eb;--native-shadow:0 5px 18px #17202b08;--native-raised:#fff;--native-divider:#17202b13;--native-inner:inset 0 1px 0 #ffffff80}
html body{font-family:var(--system-font)!important;font-kerning:normal;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;letter-spacing:-.012em}
html body h1,html body h2,html body h3,html body h4,html body button,html body input,html body select,html body textarea,html body svg text{font-family:var(--system-font)!important}
html body h1,html body h2{font-weight:600;letter-spacing:-.04em;line-height:1.08}
html body h3,html body h4{font-weight:600;letter-spacing:-.025em}
html body button,html body input,html body select,html body textarea{letter-spacing:-.01em}
html body button{touch-action:manipulation}
html body :focus-visible{outline:2px solid #17A57F;outline-offset:3px}
html body .button,html body .primary{border-radius:999px;font-weight:600;box-shadow:var(--native-inner);transition:background-color .18s,box-shadow .18s,transform .18s}
html body .button:hover{transform:translateY(-1px)}
html body .secondary{border-radius:11px;font-weight:500;background:var(--surface-alt);box-shadow:var(--native-inner)}
html body .public-header,.workspace-studio main>.topbar{background:var(--bg);border-bottom-color:var(--native-divider)}
html body .public-header nav a{font-size:12px;font-weight:500;letter-spacing:-.01em}
html body .public-theme-toggle,html body .nav-toggle,.workspace-studio .theme-toggle,.workspace-studio .user-chip{background:var(--surface-alt);border-color:var(--native-divider);box-shadow:var(--native-inner)}
.workspace-studio .page-navigation{border-color:var(--native-divider)!important;background:var(--surface);box-shadow:var(--native-shadow)!important}
.workspace-studio .page-navigation .page-nav-item{font-size:11px;font-weight:500;letter-spacing:-.01em;border-radius:12px!important}
.workspace-studio .page-navigation .page-nav-item svg{stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.workspace-studio .page-navigation .page-nav-item.active{background:#17a57f0e!important;border-color:#17a57f25!important}
.workspace-studio .panel,.workspace-studio .trade-card{border-radius:17px;border-color:var(--native-divider);box-shadow:var(--native-inner),var(--native-shadow)}
.workspace-studio .heading h1{font-size:clamp(27px,2.8vw,36px)!important;font-weight:600!important;letter-spacing:-.04em}
.workspace-studio .heading p{font-size:13px;color:var(--muted);letter-spacing:-.01em;line-height:1.6}
.workspace-studio .panel-title h3{font-size:17px;font-weight:600;letter-spacing:-.025em}
.workspace-studio .trade-tabs-row{gap:8px}
.workspace-studio #deskView .trade-card{border-radius:12px;background:var(--surface-alt);box-shadow:none}
.workspace-studio #deskView .trade-card:has(.setup-tab.active){background:var(--native-raised);border-color:var(--line);box-shadow:0 2px 8px #00000014}
.workspace-studio #deskView .setup-tab .simple-trade-top strong{font-weight:500;letter-spacing:-.01em}
.workspace-studio #deskView .setup-tab .simple-trade-pair{font-weight:600;letter-spacing:-.02em}
.workspace-studio #deskView .chart-panel{border-radius:16px;border-color:var(--native-divider)}
.workspace-studio #deskView .chart-controls{padding-top:11px;padding-bottom:11px}
.workspace-studio #deskView .chart-controls h3{font-weight:600;letter-spacing:-.035em}
.workspace-studio #deskView .timeframes{background:var(--surface-alt);border:1px solid var(--native-divider);border-radius:10px;padding:3px;gap:2px}
.workspace-studio #deskView .timeframes button{border-radius:7px;font-size:11px;padding:5px 8px;min-height:29px}
.workspace-studio #deskView .timeframes button.active{background:var(--native-raised);color:var(--bright);box-shadow:0 1px 4px #0002}
.workspace-studio #deskView .desk-sidebar #checklist.modern-checklist{border-color:var(--native-divider);border-radius:16px;background:var(--surface);box-shadow:var(--native-inner)}
.workspace-studio #checklist.modern-checklist .confirmation-heading>strong{font-family:var(--system-font)!important;font-weight:600;font-size:14px;letter-spacing:-.02em}
.workspace-studio #checklist.modern-checklist .checklist-quick-controls{background:var(--surface-alt);border-color:var(--native-divider);border-radius:11px}
.workspace-studio #deskView #checklist.modern-checklist #checks .check strong{font-weight:500!important;letter-spacing:-.015em}
.workspace-studio #checklist.modern-checklist .confirmation-count{background:var(--surface-alt);border-color:var(--native-divider)}
.workspace-studio #checklist.modern-checklist[data-confirmation-state=complete] .confirmation-count{background:#17a57f0b;border-color:#17a57f45}
.workspace-studio #journal .journal-toolbar-strip>.tabs,.workspace-studio #reviewView .review-tabs,.workspace-studio #marketsView .market-tabs{display:flex;gap:3px;background:var(--surface-alt);padding:4px;border-radius:12px;border:1px solid var(--native-divider)}
.workspace-studio #journal .journal-toolbar-strip>.tabs button,.workspace-studio #reviewView .review-tabs button,.workspace-studio #marketsView .market-tabs button{border:0;background:transparent;border-radius:8px;font-size:12px;font-weight:500;white-space:nowrap}
.workspace-studio #journal .journal-toolbar-strip>.tabs button.active,.workspace-studio #reviewView .review-tabs button.active,.workspace-studio #reviewView .review-tabs button[aria-selected=true],.workspace-studio #marketsView .market-tabs button[aria-selected=true]{background:var(--native-raised);color:var(--bright);box-shadow:0 1px 5px #0002}
.workspace-studio #journalCards .journal-record{background:var(--surface);border-color:var(--native-divider);border-radius:15px}
.workspace-studio #journalCards .record-actions{border-top-color:var(--native-divider);background:transparent;border-radius:0 0 13px 13px}
.workspace-studio #journalCards .journal-record-heading h3{font-weight:600;letter-spacing:-.025em}
.workspace-studio #journalCards .record-result{font-weight:500;border-radius:20px}
.workspace-studio #reviewView .review-metrics>.card{background:var(--surface);border:1px solid var(--native-divider);border-radius:15px!important;box-shadow:var(--native-inner)}
.workspace-studio #reviewView .review-metrics>.card>strong{font-weight:600;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.workspace-studio .equity-svg-wrap,.workspace-studio .equity-studio{background:var(--surface-alt);border-color:var(--native-divider);border-radius:14px}
.workspace-studio input:not([type=checkbox]):not([type=radio]):not([type=range]),.workspace-studio select,.workspace-studio textarea{border-color:var(--native-divider);border-radius:10px;box-shadow:var(--native-inner)}
.workspace-studio #notebookPane .nb-sidebar{border-color:var(--native-divider);background:var(--surface-alt)}
.workspace-studio #notebookPane .nb-page-list button{border-radius:9px;font-size:13px;font-weight:500}
.workspace-studio #notebookPane .nb-editor{background:var(--surface);border-color:var(--native-divider);border-radius:15px}
.workspace-studio #notebookPane .nb-toolbar{gap:3px;background:var(--surface-alt);border-radius:11px;border-color:var(--native-divider)}
.workspace-studio #notebookPane .nb-toolbar button{border-radius:7px}
.workspace-studio #userView .user-avatar{border-radius:20px;background:var(--surface-alt);border-color:var(--native-divider);font-weight:500}
html body dialog{border-radius:20px;border-color:var(--native-divider);box-shadow:0 24px 80px #0005}
html body dialog::backdrop{background:#0008}
html body .auth{border-radius:24px;background:var(--surface);border-color:var(--native-divider);box-shadow:var(--native-inner),0 15px 50px #0002;padding:28px}
html body .auth h1{font-size:28px;font-weight:600;letter-spacing:-.035em}
html body .auth button{border-radius:12px;font-weight:600}
html body .auth input,html body .auth select{border-radius:11px}
html body.home-page .launch-cinema{background:#131722}
html body.home-page .cinema-copy h1{font-weight:600;letter-spacing:-.055em;line-height:1.04;font-size:clamp(43px,5.3vw,78px)}
html body.home-page .cinema-copy h1 em{color:#17A57F}
html body.home-page .cinema-intro{font-size:17px;letter-spacing:-.02em;line-height:1.6;color:#a9adb7}
html body.home-page .cinema-kicker{font-size:10px;font-weight:500;letter-spacing:.12em;color:#a9adb7}
html body.home-page .cinema-board{border-radius:20px;background:linear-gradient(150deg,#232935,#181d27);border-color:#ffffff12;box-shadow:inset 0 1px 0 #ffffff08,0 22px 60px #0003}
html body.home-page .board-top{border-bottom-color:#ffffff0d}
html body.home-page .board-heading h2{font-weight:600;letter-spacing:-.035em;color:#eceef0}
html body.home-page .stage-chip{border-radius:14px;background:#242a36;color:#eceef0;border-color:#ffffff15;box-shadow:inset 0 1px 0 #ffffff05,0 8px 25px #0002}
html body.home-page .stage-chip small{color:#a8adba}.home-page .chip-icon{background:#17a57f0a}
html body.home-page .section-title h2,html body.home-page .connection-copy h2,html body.home-page .closing h2{font-weight:600;letter-spacing:-.045em}
html body.home-page .terminal-demo{border-color:var(--native-divider);border-radius:20px;box-shadow:var(--native-shadow)}
html body.home-page .preview-navigation{gap:4px}.home-page .preview-navigation button{border-radius:8px;font-weight:500}
html body.home-page .context-copy{border-radius:20px;background:#191e29}
html body.home-page .toolkit-grid h3{font-size:25px;font-weight:600;letter-spacing:-.035em}
html body.home-page .tour-panel{border-radius:18px;border-color:var(--native-divider);box-shadow:var(--native-inner)}
html body.public-information .feature-detail{border-radius:17px}
.public-information .feature-detail h2,.public-information .about-principles h2,.public-information .guide-section h2{font-weight:600;letter-spacing:-.035em}
.public-information .contact-form,.public-information .guide-toc,.public-information .policy-nav,.public-information .page-cta{border-color:var(--native-divider);border-radius:18px;box-shadow:var(--native-inner)}
html body footer{background:#161b26;color:#c4c5c7}
/* Blur is limited to navigation. Cards/charts remain cheap, opaque surfaces. */
@supports ((backdrop-filter:blur(14px)) or (-webkit-backdrop-filter:blur(14px))){html body .public-header,.workspace-studio main>.topbar,.workspace-studio .page-navigation{background:var(--native-chrome);backdrop-filter:blur(14px) saturate(1.08);-webkit-backdrop-filter:blur(14px) saturate(1.08)}}
@media(prefers-reduced-transparency:reduce){html body .public-header,.workspace-studio main>.topbar,.workspace-studio .page-navigation{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-contrast:more){:root,html[data-theme=dark],html[data-theme=light]{--native-divider:var(--line)}html body .public-header,.workspace-studio main>.topbar,.workspace-studio .page-navigation{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(max-width:760px){html body.home-page .cinema-copy h1{font-size:clamp(33px,8.3vw,49px);letter-spacing:-.05em}html body.home-page .cinema-intro{font-size:14px;line-height:1.7}html body.home-page .cinema-kicker{font-size:8px;letter-spacing:.1em}html body.home-page .cinema-board{border-radius:15px}html body.home-page .stage-chip{border-radius:11px}.workspace-studio .heading h1{font-size:28px!important}.workspace-studio .panel,.workspace-studio #journalCards .journal-record{border-radius:14px}.workspace-studio .page-navigation{border-radius:22px!important}.workspace-studio .page-navigation .page-nav-item{border-radius:16px!important}.workspace-studio #deskView .timeframes button{min-height:34px;font-size:12px}.workspace-studio #reviewView .review-tabs,.workspace-studio #marketsView .market-tabs{padding:3px!important}.workspace-studio #reviewView .review-tabs button,.workspace-studio #marketsView .market-tabs button{min-height:42px}.workspace-studio #reviewView .review-metrics>.card{border-radius:13px!important}html body dialog{border-radius:17px!important}html body .auth{padding:23px;border-radius:22px}html body .auth input,html body .auth select{font-size:16px}}
@media(prefers-reduced-motion:reduce){html body .button,html body .primary,html body .secondary{transition:none!important;transform:none!important}}

/* One bounded header: status can shrink; profile always retains its place. */
.workspace-studio .topbar.single-row-header .header-user{max-width:100%;box-sizing:border-box}
.workspace-studio .topbar.single-row-header #userProfileLink{max-width:190px;flex-shrink:0}
.workspace-studio .topbar.single-row-header #userShortName{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-studio .topbar.single-row-header .news-strip #newsTitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:761px){.workspace-studio .topbar.single-row-header .top-market{display:none!important}.workspace-studio .topbar.single-row-header .header-status-rail{min-width:0!important;max-width:440px!important}.workspace-studio .topbar.single-row-header .mobile-brand{min-width:0!important;flex:0 0 180px!important}}
@media(min-width:761px) and (max-width:1100px){.workspace-studio .topbar.single-row-header .mobile-brand{flex-basis:154px!important}.workspace-studio .topbar.single-row-header .header-status-rail{flex:1 1 200px!important}}
@media(max-width:760px){.workspace-studio .topbar.single-row-header .header-user{gap:4px!important;padding:0!important}.workspace-studio .topbar.single-row-header #userShortName{display:none!important}.workspace-studio .topbar.single-row-header #userProfileLink{width:32px!important;min-width:32px!important;max-width:32px!important;padding:3px!important}.workspace-studio .topbar.single-row-header .top-market{grid-column:2!important;grid-row:2!important}.workspace-studio .topbar.single-row-header .mobile-brand{overflow:hidden;max-width:100%}.workspace-studio .topbar.single-row-header .brand-logo{max-width:100%!important}.workspace-studio .topbar.single-row-header .header-status-rail .workspace-status{flex:0 1 auto!important}.workspace-studio .topbar.single-row-header .header-status-rail .news-strip{flex:1 1 auto!important}}
@media(forced-colors:active){.workspace-studio #deskView #checklist.modern-checklist #checks .check>input[type=checkbox]{appearance:auto!important;-webkit-appearance:auto!important}}

/* Visible native-control states, unaffected by legacy background resets. */
.workspace-studio #deskView #checklist.modern-checklist #checks .check>input[type=checkbox]{opacity:1!important;filter:none!important;appearance:none!important;-webkit-appearance:none!important;background-size:13px 13px!important;background-repeat:no-repeat!important;background-position:center!important}
.workspace-studio #deskView #checklist.modern-checklist #checks .check>input[type=checkbox]:checked{border-color:#98a2b2!important;background-color:#596677!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 7 2.5 2.5L11 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
.workspace-studio #deskView #checklist.modern-checklist #checks .check.confirmed>input[type=checkbox]:checked{border-color:#17A57F!important;background-color:#17A57F!important}
.workspace-studio #deskView #checklist.modern-checklist #checks .check.confirmed{background:#17a57f24!important;box-shadow:inset 3px 0 #17A57F!important}
.workspace-studio #deskView #checklist.modern-checklist #checks .check.confirmed strong{color:var(--bright)!important}
@media(forced-colors:active){.workspace-studio #deskView #checklist.modern-checklist #checks .check>input[type=checkbox]{appearance:auto!important;-webkit-appearance:auto!important}}
