/* Shared visual layer. Keep trading layouts, quote colours and canvas unchanged. */
:root{--green:#008b65;--red:#cf3552;--blue:#176da3;--ink:#183b45;--muted:#526d7a;--line:#d4e2e7;--soft:#f0f7f8}
body{background:#eaf1f4;color:#183b45;font-family:'Segoe UI',Arial,sans-serif;font-weight:700}
body :is(p,span,small,a,label,input,select,textarea,button,summary,th,td,dt,dd,li,h1,h2,h3,h4,strong,b,time){font-weight:700!important;letter-spacing:0}
body :is(h1,h2,h3,h4){color:#125f64}
body .topbar{background:#116663;border-bottom:3px solid #33b99d;color:#fff;gap:12px;box-shadow:0 2px 10px #14433d1f;min-height:64px}
body .topbar .brand{color:#fff;flex-shrink:0}
body .topbar .brand-mark{background:#fff;color:#096c67;border:1px solid #b7ece0;box-shadow:0 2px 5px #043d3933}
body .topbar .site-day{color:#cfefea}
body .topbar .risk-pill{background:#e8faf0;color:#09694d;border:1px solid #92d7b9;border-radius:4px;font-size:10px;line-height:1.5;max-width:255px;flex-shrink:1}
body .topbar #siteNav{gap:4px;min-width:0;align-items:center}
body .topbar #siteNav>a,body .topbar .policy-menu>summary{color:#f3fffc;font-size:12px;padding:9px 8px;border:1px solid #7bbdb044;border-radius:4px;background:#ffffff0a;line-height:1.3;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
body .topbar #siteNav>a:hover,body .topbar .policy-menu>summary:hover{background:#e6f7f0;color:#075e51;border-color:#b8e3d2}
body .topbar #siteNav>a[aria-current=page]{background:#e2f6ef!important;color:#075e51!important;border-color:#a1d6c2;box-shadow:inset 0 -3px #25a77e}
body .topbar #siteNav>a[href*="Strategy.aspx"]:not([aria-current=page]){background:#fbefc4;color:#70530c;border-color:#edda94}
body .topbar #siteNav>a[href*="Logout"]{background:#ffffff10;border-color:#e8aeb280;color:#ffe7e8}
body .topbar .policy-menu>div{background:#fff;border:1px solid #bddbd3;border-top:3px solid #169e83;box-shadow:0 8px 24px #14473e26;border-radius:4px}
body .topbar .policy-menu>div a{color:#185b57;border-bottom:1px solid #e4efeb;display:block;padding:11px 14px;font-size:12px;white-space:normal}
body .topbar .policy-menu>div a:hover{background:#eaf8f1}
body .topbar .menu-toggle{color:#075e51;background:#e2f6ef;border:1px solid #a1d6c2;border-radius:4px}
body :is(.watch-header,.workspace-viewbar,.option-ticket header,.positions-dock>header,.orders-dock>header,.chart-toolbar){background:#eef8f6;border-bottom-color:#c6e2da}
body :is(.panel,.option-ticket,.options-chain,.positions-dock,.orders-dock){border-color:#c9dee0}
body :is(.watch-header h3,.option-ticket h2,.positions-dock h3,.orders-dock h3){color:#116d62}
body :is(.terminal-account,.chain-account){background:#f8fcfd;border-bottom:1px solid #cee3e7}
body .terminal-account>div{border-left-color:#b6d8de}
body :is(.terminal-account span,.chain-account>span){color:#506f7a}
body :is(.terminal-account strong,.chain-account strong){font-variant-numeric:tabular-nums}
body .terminal-account>div:nth-child(1){border-top:2px solid #1c8daa}
body .terminal-account>div:nth-child(2){border-top:2px solid #d3a837}
body .terminal-account>div:nth-child(3){border-top:2px solid #14a083}
body .terminal-account>div:nth-child(4){border-top:2px solid #5a7eae}
body .terminal-account>div:nth-child(5){border-top:2px solid #5ba976}
body .terminal-account>div:nth-child(6){border-top:2px solid #c36c87}
body .terminal-account>div:nth-child(n+7){border-top:2px solid #aaa178}
body :is(.input,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){border-color:#bfd5df;background-color:#f8fbfd;color:#244c5d}
body :is(input,select,textarea):focus{outline:2px solid #56b9a5;outline-offset:1px}
body input::placeholder{color:#6a8190;opacity:1}
body :is(.btn-primary,.option-submit){background:#137f89;color:#fff}
body .btn-ghost{background:#e6f2fa;color:#17658f;border:1px solid #c2dce9}
body .btn-buy{background:#008c67;color:#fff}
body .btn-sell{background:#ce3552;color:#fff}
body :is(.chain-icon,.terminal-icon,.positions-filter button){background:#f1f8fc;border-color:#c7dce7;color:#1e6e92}
body :is(.workspace-viewbar button,.workspace-viewbar a){color:#286576}
body .workspace-viewbar button[aria-pressed=true]{background:#dff3eb;color:#007358;border-bottom-color:#0c9a77}
body .watch-row:nth-child(even){background:#f7fbfc}
body .watch-row:hover{background:#e6f5f0}
body .watch-row.is-selected{background:#e1f4ee!important;box-shadow:inset 3px 0 #0b9d78}
body :is(.broker-tool-rail,.broker-terminal-page .broker-tool-rail){background:#edf7f5;border-color:#bfded5}
body .broker-tool-rail :is(a,button){background:transparent;color:#236b6c}
body .broker-tool-rail button[aria-pressed=true]{background:#d1eee2;color:#06734f}
body :is(.table th,.ledger-table th){background:#e3f0f4;color:#215a70;border-bottom:2px solid #b6d5dd}
body :is(.table tbody tr:nth-child(even),.ledger-table tbody tr:nth-child(even)){background:#f5fafc}
body :is(.table tbody tr:hover,.ledger-table tbody tr:hover){background:#eaf6ef}
body .chain-groups .call-heading{background:#d9f3e6;color:#007954}
body .chain-groups .put-heading{background:#fbe1e7;color:#ad2e4a}
body :is(.chain-market-strip,.budget-toolbar){background:#f2f9fa;border-color:#cfdfdf}
body .tag{background:#dff3ee;color:#176958;border:1px solid #c6e7db}
body .education-banner{background:#e4f5ec;border-bottom-color:#b6ddc6;color:#1c6551}
body .site-footer{background:#e0ecee;color:#486a74;border-top:2px solid #bed9d7}
body .site-footer a{color:#176686}
body .site-footer strong{color:#125e61}
body .strategy-workspace{border-top-color:#078b83}
body .strategy-editor #ruleSl{background:#fff1f4;color:#a42c43;border-color:#efb5c1}
body .strategy-editor #ruleTarget{background:#edfaf2;color:#116440;border-color:#a7d8bd}
body .strategy-editor #rulePrice{background:#edf7ff;color:#165e86;border-color:#a8cde3}
body .strategy-editor #ruleValidity{background:#fffaeb;color:#775708;border-color:#e4cf93}
@media(min-width:981px) and (max-width:1500px){body .topbar .risk-pill{display:none}body .topbar{gap:10px;padding-left:14px;padding-right:14px}body .topbar #siteNav>a,body .topbar .policy-menu>summary{font-size:11px;padding:8px 6px}}
@media(max-width:980px){body .topbar{padding:10px 12px;min-height:62px}body .topbar #siteNav{align-items:stretch;gap:6px}body .topbar #siteNav>a{flex:1 1 30%;min-height:40px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal}body .topbar .policy-menu{width:100%}body .topbar .policy-menu>summary{display:block;text-align:center}body .topbar .policy-menu>div{position:static;width:100%;margin-top:6px}body .topbar .risk-pill{display:none}}
@media(prefers-reduced-motion:reduce){body .topbar #siteNav>a{transition:none}}
@media(min-width:981px) and (max-width:1180px){body .topbar{height:auto;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}body .topbar .menu-toggle{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;padding:8px 12px;min-height:36px;cursor:pointer}body .topbar #siteNav{display:none;width:100%;margin:0;flex-wrap:wrap;gap:6px}body .topbar.menu-open #siteNav{display:flex}body .topbar #siteNav>a{padding:10px 12px;flex:1 1 auto}body .topbar .policy-menu{margin-left:auto}}
