/* Atlas desk: compact controls, legible prices, quiet surroundings. */
:root{--bg:#101820;--panel:#17232e;--border:#304252;--muted:#a7b7c6;--purple:#83b7ed;--green:#64cfad;--desk-ink:#e5edf3;--desk-hover:#223547;--desk-selected:#29425b;color-scheme:dark}
body{font-family:'IBM Plex Sans',sans-serif;color:var(--desk-ink);font-size:13px;font-variant-numeric:tabular-nums;background:var(--bg)}
button,input,textarea,select{font-family:inherit}button{border-radius:5px;color:#c5d2de;transition:background-color .12s}button:hover{background:var(--desk-hover);color:#fff}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid #9ecbff;outline-offset:3px}
.selected{background:var(--desk-selected)!important;color:#e0efff!important}.primary{background:#a5c9ee;border-color:#a5c9ee;color:#102336;font-weight:600}.primary:hover{background:#c6def7;color:#102336}.red{color:#ef929b}.purple{color:var(--purple)}
.tradingbar{height:49px;background:#14212c;border-bottom-color:var(--border);padding:0 8px;gap:3px}.tradingbar button{height:34px;color:#bfcedc;font-size:16px}.tradingbar button:hover{background:#294055}.tradingbar i{background:var(--border);height:21px}.tradingbar button.toolbaravatar{background:#315475;color:#edf6ff;font-size:14px;font-weight:600;border-radius:8px;width:30px;margin-right:5px}.symbolfield{background:#223342;border:1px solid #3b5368;border-radius:5px}.symbolfield input{font-weight:600}.sampletag{color:#b9c9d6;font-size:10px;letter-spacing:0}.barspacer{min-width:6px}
.shell{grid-template-columns:49px 188px minmax(0,1fr) 308px;min-height:calc(100dvh - 49px)}
body.hidewatch .shell{grid-template-columns:49px minmax(0,1fr) 308px}body.hideai .shell{grid-template-columns:49px 188px minmax(0,1fr)}body.hidewatch.hideai .shell{grid-template-columns:49px minmax(0,1fr)}
.drawingrail{background:#14212c;padding:9px 4px;border-color:var(--border);gap:7px;top:49px;max-height:calc(100dvh - 49px)}.drawingrail button{border-radius:5px;color:#b5c6d5}.drawingrail button:hover{background:#263d51}.drawingrail button.selected{background:#294a65!important;color:#dceeff!important}.railbottom span{letter-spacing:1px;color:#a7b7c6;font-size:8px}
.watch{background:#14202a;padding:18px 10px;border-color:var(--border)}.sectiontitle{font-size:13px;letter-spacing:0;margin-bottom:12px;font-weight:600;padding:0 6px}.watch>.small{font-size:11px;letter-spacing:0;margin:0 6px 15px}.watchrow{border-radius:5px;padding:11px 8px;margin:0 0 3px;gap:6px}.watchrow.active{background:#243d52;border-color:#476984}.watchrow.active .ticker{color:#eaf4ff}.watchrow small{font-size:10px;line-height:1.4}.watchright{font-size:12px;white-space:nowrap}.watchright small{color:var(--green)}.watchright small.red{color:#ef929b}.ticker{font-size:13px;font-weight:600}.marketnote{margin-top:24px;padding:15px 6px 0;font-size:11px;line-height:1.6}.marketnote p{margin:8px 0}.marketnote small{font-size:10px;color:#a7b7c6}.watchloading{font-size:10px;color:#b0c8de;line-height:1.6}
main{padding:16px 14px;min-width:0}.workspacehead{margin-bottom:12px;gap:8px}.workspacehead h1{font:550 18px/1.3 'IBM Plex Sans',sans-serif;letter-spacing:-.25px;margin:0}.eyebrow:empty{display:none}.pill{font-size:10px;color:#bdcbd8;border-color:#3a4c5d;border-radius:4px;padding:4px 7px}.workspacehead .eyebrow{letter-spacing:0;font-size:11px}
.marketfeedpanel{background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:0 0 10px;margin:0 0 12px;box-shadow:none}.marketfeedcontrols{gap:7px;align-items:center;flex-wrap:wrap}.marketfeedcontrols>b{display:none}.marketfeedcontrols label{color:#9fb3c4;font-size:10px;gap:5px}.marketfeedcontrols select{margin:0;padding:5px 7px;background:#1c2c3a;border:1px solid #344d61;border-radius:4px;color:#d6e4ef;font-size:11px;max-width:145px}.marketfeedcontrols button{padding:6px 9px;font-size:10px}.feedbadge{font-size:10px;letter-spacing:0;border:1px solid #40586a;background:#203445;color:#d2e2f0;border-radius:4px;padding:5px 7px}.feedbadge.realfeed{background:#1e3737;color:#a6dccd;border-color:#3c615c}.feed-details{margin-top:8px}.feed-details summary{cursor:pointer;display:list-item;font-size:10px;color:#b0c1d0;line-height:1.6;width:fit-content}.feed-details summary span{margin-left:8px;color:#8fa6bb}.feed-details p{font-size:11px!important;color:#a7b7c6!important;line-height:1.6!important;max-width:78ch;padding:8px 0 0;margin:0!important}#market-load-error{font-size:11px;background:#3c2e24;color:#efceaa;border-color:#705334;margin-top:8px;line-height:1.6}.localtestlink{color:#bad9f9;text-decoration:none;font-size:11px}
.chartcard,.strategy,.panel{background:var(--panel);border-color:var(--border);border-radius:6px;box-shadow:none}.assethead{padding:15px 17px;gap:10px}.assethead h2{font-size:16px;font-weight:600}.asseticon{width:34px;height:34px;border-radius:6px;background:#294459;color:#c5def2;font-size:17px}.assethead .normal{font-size:12px;color:#b4c4d1}.assethead .small{font-size:10px}.quote b{font:550 25px/1.2 'IBM Plex Sans',sans-serif}.quote span{font-size:11px}.charttools{padding:8px 12px;gap:4px;border-color:var(--border)}.charttools button{font-size:11px}.chartlabel{font-size:10px;padding:10px 14px 5px}.chartfoot{font-size:10px;padding:9px 13px;border-color:var(--border);gap:10px}#chart{height:clamp(400px,60dvh,812.5px)}
#chart-grid.multi{height:calc(125dvh - 225px);min-height:637.5px;max-height:none;gap:5px}.chartcell{background:#14212c;border:1px solid #304252;border-radius:5px}.chartcell.active{border-color:#87b8e6;box-shadow:0 0 0 1px #87b8e6}.gridcellhead{background:#1c2e3d;border-color:#34495a;height:34px;padding:4px 6px;gap:4px}.gridcellhead input{font-size:11px;color:#e4eef8;width:57px}.gridcellhead span{font-size:10px}.gridcellhead .activatechart{border-color:#4d667b;color:#adc6dc;border-radius:3px}.chartcell.active .activatechart{background:#a5c9ee;color:#132a3e}.gridcellfoot{font-size:9px;color:#a4b7c6;padding:5px 7px;border-color:#304252}.multi .chartcard{border:0;border-radius:0}.multi .chartcard .chartfoot{font-size:9px}.multi .chartcard .chartlabel{font-size:9px;line-height:1.4}.multi .studylist button,.multi .studylist span{font-size:9px}.multi .study-status-values{font-size:8px}.gridempty{color:#bdcbd8;line-height:1.6}
.strategy{margin-top:14px}.strategyhead{padding:12px 14px;border-color:var(--border);flex-wrap:wrap}.strategyhead b{font-size:13px}.strategyhead .tabs button{font-size:11px;padding:7px 10px}.strategyintro h3{font-size:14px;font-weight:600}.strategyintro .small{font-size:11px}.rulesgrid{gap:0;border:1px solid #344a5b;border-radius:5px;overflow:hidden}.rule{background:#1b2b38;border:0;border-radius:0;font-size:12px;line-height:1.65;padding:14px}.rule:nth-child(odd){border-right:1px solid #344a5b}.rule:nth-child(-n+2){border-bottom:1px solid #344a5b}.rule small{font-size:11px;letter-spacing:0;color:#adc5da;font-weight:500;margin-bottom:6px}.tabbody{padding:16px}.tabbody>p{font-size:11px}.metric{background:#1d303f;border-radius:5px}.metric b{font-family:inherit}.metric small{font-size:11px}pre{color:#c1dbf3;font-size:12px}.bottomline{font-size:10px;color:#a1b3c3;padding-top:14px}
.copilot{background:#172632;border-color:var(--border);height:calc(100dvh - 49px);max-height:calc(100dvh - 49px);top:49px}.copilothead{padding:18px 16px;border-color:var(--border);gap:10px}.aiicon{width:33px;height:33px;background:#29485f;color:#b7d9f7;border-radius:7px}.copilothead b{font-size:14px;font-weight:600}.copilothead .small{font-size:11px;color:#a8bfd1}.copilothead .dot{background:#9bbad3;box-shadow:none}.copilotnotice{background:#1b2f3f;border-color:#344b5f;color:#a7bfd2;padding:10px 16px;font-size:10px;line-height:1.6}#messages{padding:22px 16px;min-height:200px}.message{background:transparent;border:0;border-radius:0;padding:0;margin-bottom:22px;white-space:pre-wrap;line-height:1.6}.assistantmark{font-size:30px;color:#9ec8eb;line-height:1;margin:5px 0 14px}.message h3{font-size:21px;font-weight:500;letter-spacing:-.4px;line-height:1.3;margin:0;max-width:15ch}.message p{font-size:12px;color:#b0c3d2;line-height:1.7;margin:14px 0 20px}.suggestions{gap:8px}.suggestions button{background:#203749;border:1px solid #405a70;border-radius:5px;padding:11px 12px;font-size:11px;color:#d4e6f5}.suggestions button:hover{background:#2c4860;border-color:#729abd}.message.user{background:#29465c;border:1px solid #496a82;padding:12px;border-radius:6px;color:#e2eff8;margin-left:12px}.composer{padding:13px 14px;border-color:var(--border);background:#14232e}.refinements{gap:6px;flex-wrap:wrap}.refinements button{font-size:10px;border-color:#405a70;padding:6px 8px}#chatform{background:#203647;border-color:#6186a3;border-radius:7px;padding:12px}textarea{font-size:12px;line-height:1.65;min-height:77px}textarea::placeholder{color:#afc1d0}#chatform>div .small{font-size:9px;max-width:145px;line-height:1.5}#chatform .primary{font-size:20px;min-height:32px;min-width:32px}.composer>p{font-size:9px;color:#9db3c6;line-height:1.6}
.topmenu,.drawingflyout,.indicatorlibrary,.indicatorproperties,dialog{background:#192a38;color:#e0eaf3;border-color:#4c657a;border-radius:8px;box-shadow:0 18px 48px #050d1466}.topmenu{padding:7px}.topmenu button{min-height:34px;color:#d0deeb}.topmenu .selected,.libraryside button.selected{background:#2c4860!important;color:#e6f2ff!important}.drawingflyout h4,.libraryside small,.studysectiontitle,.timeframepicker h4{font-size:11px;letter-spacing:0;text-transform:none;color:#a7bdcf;font-weight:500}.drawingflyout section+section{border-color:#3a5164}.drawingflyout button{color:#ccdae7}.drawingflyout button:hover{background:#2b455b}.drawingflyout button.selected{background:#b8d4ef!important;color:#142737!important}.libraryheading h2{font-size:22px}.librarysearch{background:#142432;border-color:#4c657a;border-radius:6px}.librarysearch input{font-size:15px}.libraryside{border-color:#344c60}.librarytabs button{border-radius:5px;background:#22394d;font-size:12px}.librarytabs button.selected{background:#b8d4ef!important;color:#142737!important}.libraryfooter{background:#192a38;color:#a7bdcf;border-color:#3a5164}.studypropertytabs{border-color:#4c657a}.studypropertytabs button[aria-selected=true]{color:#d2e8ff;border-color:#a5c9ee}.studypropertiesbody select,.studypropertiesbody input[type=number],.studypropertiesfooter select{background:#142432;border-color:#526f87;color:#e0eaf3}.studypropertiesheading h2{font-size:23px}.studypropertiesfooter{border-color:#3a5164}.studypropertynote,.indicatorauditlist small{color:#a7bdcf}.studypropertytabs button{font-size:15px}.studypropertiesfooter .study-ok{background:#a5c9ee;color:#102336}.study-status-values{color:#a9c0d3}.studycoveragebutton{color:#bddcf9;border-color:#4a6680}.layoutmenu{background:#192a38}.recentlayout.active{background:#29465e}.gridpicker .selected svg{stroke:#b8d4ef;fill:#29465e}.gridpicker svg{stroke:#b3cada;fill:#203749}.gridpanels{border-color:#3a5164}.panel select{font-size:12px}th,td{border-color:#344c60}th{color:#adc4d5;font-size:11px}.widget{background:#1b2d3b;border-color:#3a5164;border-radius:6px}.widget p{font-size:12px;color:#b0c3d2}.widget span{color:#a9cfee}.empty{color:#b3c5d3}#toast{background:#29465c;border-color:#6c92b1;color:#eef7ff;z-index:100;font-size:12px}
@media(min-width:1600px){.shell{grid-template-columns:49px 215px minmax(0,1fr) 338px}body.hidewatch .shell{grid-template-columns:49px minmax(0,1fr) 338px}body.hideai .shell{grid-template-columns:49px 215px minmax(0,1fr)}main{padding:18px}.copilothead{padding:20px}#chart-grid.multi{height:calc(125dvh - 231.25px)}}
@media(min-width:1001px) and (max-width:1190px){.shell{grid-template-columns:45px 160px minmax(0,1fr) 260px}body.hideai .shell{grid-template-columns:45px 160px minmax(0,1fr)}body.hidewatch .shell{grid-template-columns:45px minmax(0,1fr) 260px}main{padding:12px 10px}.marketfeedcontrols label{font-size:0}.marketfeedcontrols label select{font-size:10px}.tradingbar{gap:0}.tradingbar button{padding:5px}.tradingbar i{margin:0 2px}.sampletag{display:none}}
@media(min-width:651px) and (max-width:1000px){.shell,body.hideai .shell{grid-template-columns:45px 168px minmax(0,1fr)}body.hidewatch .shell{grid-template-columns:45px minmax(0,1fr)}main{grid-column:3;grid-row:1;padding:14px 12px}.copilot{grid-column:3;grid-row:2;position:static;height:auto;max-height:none;min-height:480px;border-top:1px solid var(--border)}body.hidewatch main,body.hidewatch .copilot{grid-column:2}.watch,.drawingrail{grid-row:1/3}.sampletag{display:none}#chart-grid.multi{height:837.5px;min-height:637.5px}}
@media(max-width:650px){.tradingbar{height:49px;overflow:visible;padding:0 4px;gap:0}.tradingbar i,.tradingbar .sampletag,.tradingbar #undo,.tradingbar #redo,.tradingbar #top-alert,.tradingbar #compare,.tradingbar #chart-settings,.tradingbar #fullscreen,.tradingbar #snapshot{display:none}.tradingbar #workspace-menu-button,.tradingbar #layouts{display:inline-flex}.tradingbar #workspace-menu-button span{max-width:60px;overflow:hidden;text-overflow:ellipsis}.tradingbar #workspace-menu-button{font-size:11px;min-width:20px;gap:3px;padding:4px}.tradingbar .symbolfield{width:70px;min-width:54px}.tradingbar .symbolfield input{width:100%;font-size:11px}.tradingbar button{min-width:25px;padding:4px;font-size:14px}.tradingbar button span{font-size:10px}.tradingbar button.toolbaravatar{width:25px;margin-right:3px}.tradingbar #indicator-menu-button{gap:2px}.tradingbar #indicator-menu-button small{display:none}.tradingbar .barspacer{display:none}.shell,body.hidewatch .shell,body.hideai .shell,body.hidewatch.hideai .shell{display:grid;grid-template-columns:39px minmax(0,1fr)}main,body.hidewatch main{grid-column:2;grid-row:1;padding:12px 8px}.watch{display:none}.drawingrail{grid-column:1;grid-row:1/3;width:39px;padding:7px 2px}.drawingrail button{width:33px;min-width:0}.drawingrail svg{width:21px;height:21px}.copilot,body.hidewatch .copilot{grid-column:2;grid-row:2;position:static;height:auto;max-height:none;min-height:480px;border-top:1px solid var(--border)}.workspacehead h1{font-size:16px}.workspacehead .pill{font-size:9px}.marketfeedcontrols{gap:6px}.marketfeedcontrols label{font-size:0}.marketfeedcontrols select{font-size:10px;max-width:125px}.marketfeedcontrols button{font-size:10px;padding:6px}.feedbadge{font-size:9px;padding:5px}.feed-details summary span{display:block;margin-left:0}.feed-details p{font-size:10px!important}#chart{height:412.5px}.assethead{padding:12px 9px;gap:7px}.assethead h2{font-size:14px}.assethead .normal{display:none}.quote b{font-size:22px}.quote span{font-size:9px}.chartlabel .muted{display:none}.chartfoot{font-size:9px;flex-wrap:wrap}.chartfoot span:last-child{max-width:none;text-align:left}#chart-grid.multi{height:862.5px;min-height:0;gap:3px}.gridcellhead{height:31px;padding:2px;gap:1px}.multi .gridcellhead input{width:36px;font-size:9px;padding:2px}.multi .gridcellhead button{padding:3px 1px;font-size:8px}.multi .gridcellhead span{display:none}.multi .gridcellfoot{font-size:8px;padding:4px}.multi .chartcard .chartfoot{display:none}.multi .studylist button,.multi .studylist span{font-size:8px}.multi .study-status-values{display:none}.multi .chartcard .chartlabel{font-size:8px}.strategyhead{padding:10px;gap:8px}.strategyhead .tabs button{font-size:10px;padding:6px}.strategyhead .primary{font-size:10px;padding:7px}.strategyintro{gap:10px}.rulesgrid{grid-template-columns:1fr}.rule{border:0!important;border-bottom:1px solid #344a5b!important}.rule:last-child{border-bottom:0!important}.bottomline{flex-wrap:wrap;gap:7px}.drawingflyout{left:42px;top:54px;width:calc(100vw - 49px)}.copilotnotice{font-size:11px}.message h3{max-width:none}.composer>p{font-size:10px}.libraryheading h2{font-size:18px}.studypropertiesheading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Final hierarchy and compact toolbar corrections from browser review. */
.multi .chartcell{background:#14212c;border:1px solid #304252;border-radius:5px}.multi .chartcell.active{border:1px solid #87b8e6;box-shadow:0 0 0 1px #87b8e640}.chartcell:not(.active){box-shadow:none}#chart-grid:not(.multi)>.chartcell{border:0;box-shadow:none}.tradingbar #workspacehome{background:#315475;color:#eaf4ff}.indicatorproperties input[type=range]{accent-color:#a5c9ee}.technicalrow:hover{background:#294257}.studysectiontitle,.librarylisthead{letter-spacing:0}.layoutmenu hr{border-color:#3a5164}
@media(max-width:650px){.tradingbar{gap:2px}.tradingbar>.toolwrap,.tradingbar>button{flex:0 0 auto}.tradingbar .symbolfield{flex:0 0 66px;width:66px;min-width:0;margin:0}.tradingbar .symbolfield input{width:100%;padding:5px 7px}.tradingbar #indicator-menu-button span,.tradingbar #workspace-menu-button span,.tradingbar #replay-toggle span{display:none}.tradingbar #replay-toggle{font-size:13px;min-width:26px}.tradingbar #workspace-menu-button{gap:2px;width:31px;overflow:hidden}.tradingbar #timeframe{min-width:35px}.tradingbar #chart-type,.tradingbar #indicator-menu-button,.tradingbar #layouts{width:27px;min-width:27px}.tradingbar #layouts svg{width:21px}.tradingbar #indicator-menu-button{font-size:18px}.tradingbar #toggle-ai{margin-left:auto}.tradingbar #top-symbol{display:none!important}}
.propertiesdialog{background:#192a38;border-color:#4c657a;color:#e0eaf3}.propertiesdialog .gridpicker button{background:#203342;border-color:#476176}.propertiesdialog .gridpicker button.selected{background:#345671!important}.propertiesdialog .gridpicker button:hover{background:#2d4a60}.propertiesdialog p{color:#b6c9d9}.propertiesdialog .modalheading{border-color:#3a5164}.propertiesdialog input:not([type=checkbox]):not([type=range]):not([type=color]),.propertiesdialog select{background:#142432;border-color:#4c657a;color:#e0eaf3}.librarysearch:focus-within{border-color:#9ecbff}.drawingrail{scrollbar-color:#4b667b transparent}.watch,.copilot,#messages{scrollbar-color:#4b667b transparent}

/* Keyboard, touch, and content handling reviewed against Web Interface Guidelines. */
.skiplink{position:fixed;left:12px;top:8px;z-index:200;background:#d8eaff;color:#102336;padding:10px 16px;border-radius:5px;transform:translateY(-160%);font-weight:600;text-decoration:none}.skiplink:focus{transform:translateY(0);outline:2px solid #83b7ed;outline-offset:2px}
#main-workspace{scroll-margin-top:60px}h1,h2,h3{text-wrap:balance}.message,.watchrow small,.studypropertynote,.feed-details p{overflow-wrap:anywhere}.watchrow>span,.copilothead>div{min-width:0}dialog,.drawingflyout,.topmenu,.studypropertiesbody,.librarybody{overscroll-behavior:contain}button,a,summary{touch-action:manipulation;-webkit-tap-highlight-color:#83b7ed40}.technicalrow{content-visibility:auto;contain-intrinsic-size:auto 40px}.tradingbar{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
.watchrow>span:first-child{flex:1;min-width:0}.watchrow>.watchright{flex:0 0 auto;min-width:54px}.watchrow small{overflow-wrap:normal}.watchrow>span:first-child small{overflow-wrap:anywhere}
.watchrow{gap:4px;padding:10px 6px}.watchrow>.watchright{min-width:48px}.watchrow small{font-size:9px;line-height:1.4}.watchrow>span:first-child small{overflow-wrap:normal}
/* Temporarily hide the lower drawing-rail controls shown in the reference. */
#drawing-tools :is([data-group="brush"],[data-group="text"],[data-group="emoji"],#measure-tool,#zoom-tool,#magnet-tool,#stay-tool,#lock-tool,#hide-tool,#objects-tool,#remove-tool,.railsep){display:none}
/* Day/night appearance: saved independently from chart layouts. */
.tradingbar #theme-toggle{display:inline-flex;gap:5px;align-items:center;border:1px solid #405a70;margin-left:3px;padding:5px 8px;min-width:32px}.tradingbar #theme-toggle svg{width:17px;height:17px}.tradingbar #theme-toggle .theme-label{font-size:11px}.theme-symbol{display:flex}
:root[data-theme=light]{color-scheme:light;--bg:#edf2f7;--panel:#fff;--border:#c8d5e1;--muted:#536b80;--purple:#23689e;--green:#127b60;--desk-ink:#172e43;--desk-hover:#dce9f4;--desk-selected:#d3e5f5}
[data-theme=light] body{color:var(--desk-ink)}
[data-theme=light] :is(.tradingbar,.drawingrail,.watch,.copilot,.copilothead,.composer){background:#e5edf5;border-color:var(--border)}
[data-theme=light] :is(.chartcard,.strategy,.panel,.multi .chartcell,.chartcell,.inactivechart,#chart,.studypane,.widget){background:#fff;border-color:var(--border)}
[data-theme=light] :is(.gridcellhead,.rule,.metric,.copilotnotice,.message.user){background:#eaf1f8;border-color:var(--border);color:#243e54}
[data-theme=light] :is(.chartlabel,.chartfoot,.gridcellfoot,.studylist,.replaybar){background:#f8fafc;border-color:var(--border);color:#4f677e}
[data-theme=light] :is(button,.tradingbar button,.drawingrail button,.gridcellhead input,.ticker,.gridcellhead span,.message h3,.copilothead b){color:#233f57}
[data-theme=light] button:hover{background:#d4e5f3;color:#142f45}
[data-theme=light] :is(.symbolfield,.suggestions button,#chatform){background:#f8fbfe;border-color:#9cb5c9;color:#244660}
[data-theme=light] :is(.symbolfield input,.symbolfield input::placeholder,textarea,.librarysearch input){color:#233f57}
[data-theme=light] :is(textarea::placeholder,.message p,.composer>p,.marketnote,.marketnote p,.marketnote small,.copilothead .small,.copilotnotice,.watchloading,.feed-details summary,.feed-details summary span,.feed-details p,.assethead .normal,.assethead .small,.chartfoot,.bottomline,.eyebrow,.gridempty,.studypropertynote,.study-status-values,.gridcellfoot){color:#526b80!important}
[data-theme=light] .watchrow.active{background:#d6e7f5;border-color:#89abc5}
[data-theme=light] :is(.watchright small,.green,.quote span){color:#147556}[data-theme=light] :is(.watchright small.red,.red){color:#b33548}
[data-theme=light] :is(.primary,.studypropertiesfooter .study-ok){background:#245e8f;border-color:#245e8f;color:#fff}
[data-theme=light] .primary:hover{background:#184b76;color:#fff}
[data-theme=light] :is(.pill,.feedbadge){color:#345771;border-color:#acc0d0;background:#f5f9fc}
[data-theme=light] .feedbadge.realfeed{background:#e1f1e9;color:#285f4c;border-color:#a2c5b3}
[data-theme=light] :is(.marketfeedcontrols select,select,input[type=number],.propertiesdialog input:not([type=checkbox]):not([type=range]):not([type=color]),.propertiesdialog select,.indicatorproperties select,.indicatorproperties input[type=number]){background:#f7fafc;color:#24445e;border-color:#a8bdcf}
[data-theme=light] :is(.topmenu,.drawingflyout,.indicatorlibrary,.indicatorproperties,.propertiesdialog,dialog,.layoutmenu){background:#f7fafc;color:#213d53;border-color:#a7bed0;box-shadow:0 18px 48px #1d3d581f}
[data-theme=light] :is(.topmenu button,.drawingflyout button,.libraryheading h2,.studypropertiesheading h2,.plotcheck,.studycheck,.studyfield,.studymarkerrow,.studyvisibilityrow){color:#24445e}
[data-theme=light] :is(.libraryside small,.libraryside p,.librarylisthead,.studysectiontitle,.drawingflyout h4,.technicalrow button,.librarysubnote,.technicalrow .technicalhelp,.studypropertytabs button,.propertiesdialog p,.resultnote,.empty,.widget p,.rule small){color:#506b80}
[data-theme=light] :is(.librarysearch,.libraryfooter,.studypropertiesfooter,.propertiesdialog .gridpicker button,.librarytabs button){background:#e7eff6;border-color:#b1c6d6;color:#345771}
[data-theme=light] :is(.technicalrow:hover,.drawingflyout button:hover){background:#dae8f3}
[data-theme=light] :is(.selected,.topmenu .selected,.libraryside button.selected,.librarytabs button.selected){background:#c9e0f2!important;color:#1d4b70!important}
[data-theme=light] .multi .chartcell.active{border-color:#377fae;box-shadow:0 0 0 1px #377fae55}
[data-theme=light] .chartcell.active .activatechart{background:#245e8f;color:#fff}
[data-theme=light] .asseticon,[data-theme=light] .aiicon{background:#ccdfef;color:#2c5879}
[data-theme=light] .tradingbar #theme-toggle{border-color:#90acc1;background:#f7fbfe}
[data-theme=light] #market-load-error{background:#fff3d9;color:#79551b;border-color:#d9bc7e}
[data-theme=light] :is(.studypropertytabs button[aria-selected=true],.study-reference-link,.studycoveragebutton,.indicatorauditlist a){color:#215f91;border-color:#4d87b4}
[data-theme=light] .gridpicker svg{stroke:#456881;fill:#dce9f4}
[data-theme=light] .gridpicker .selected svg{stroke:#245e8f;fill:#bdd8ed}
[data-theme=light] :is(.studypropertiesfooter #study-settings-cancel,.timeframepicker button){background:#f7fafc;color:#24445e;border-color:#a7bed0}
[data-theme=light] svg text:is([fill="#818b9e"],[fill="#8993a8"],[fill="#929bad"],[fill="#919aab"]){fill:#4b6378}
[data-theme=light] svg :is(path,line)[stroke="#303440"]{stroke:#d6e1ea}
[data-theme=light] #toast{background:#e1eef8;border-color:#8ab0cf;color:#1d4767}
[data-theme=light] pre{color:#254f78}[data-theme=light] .indicatorproperties input[type=checkbox]{accent-color:#245e8f}
@media(max-width:650px){.tradingbar #theme-toggle{padding:4px;width:28px;min-width:28px;margin-left:0}.tradingbar #theme-toggle .theme-label{display:none}.tradingbar #toggle-ai{margin-left:0}}

[data-theme=light] .watchrow.active .ticker{color:#233f57}
[data-theme=light] .sampletag{color:#42647f}
[data-theme=light] .studybadge{background:#edf3f9;border:1px solid #ccdae6}
[data-theme=light] .studybadge button{color:#304f69}
[data-theme=light] textarea::placeholder,[data-theme=light] .symbolfield input::placeholder{color:#597389;opacity:1}
[data-theme=light] .drawingrail button.selected{background:#c9e0f2!important;color:#1d4b70!important}
[data-theme=light] svg [fill="#42d6ac"]{fill:#188764}
[data-theme=light] svg [stroke="#42d6ac"]{stroke:#188764}
[data-theme=light] svg [fill="#ee7b89"]{fill:#c54860}
[data-theme=light] svg [stroke="#ee7b89"]{stroke:#c54860}
@media(max-width:650px){.tradingbar #theme-toggle{margin-left:auto}}
@media(max-width:380px){.tradingbar #replay-toggle{display:none}.tradingbar{gap:1px}.tradingbar .symbolfield{flex-basis:58px;width:58px}}
[data-theme=light] .drawingrail button.active{background:#c9e0f2;color:#1d4b70}
[data-theme=light] .studybadge>span{color:#345771!important}
/* The default pointer shares the rail's plain background, even while active. */
.drawingrail #cursor-tool{background:transparent;color:#b5c6d5}
.drawingrail #cursor-tool:hover{background:#263d51}
[data-theme=light] .drawingrail #cursor-tool{background:transparent;color:#233f57}
[data-theme=light] .drawingrail #cursor-tool:hover{background:#d4e5f3}
