/* Atlas analysis workbench: task-based navigation and diagram-led tool selection. */
:root{--atlas-preview-bg:#1c3142;--atlas-tool-surface:#192b3a;--atlas-tool-well:#142432;--atlas-tool-heading:#dceaf6;--atlas-tool-copy:#9eb6ca;--atlas-tool-edge:#354e63;--atlas-tool-accent:#a7cbe8;--atlas-tool-hover:#223d52}
[data-theme=light]{--atlas-preview-bg:#edf4f9;--atlas-tool-surface:#fff;--atlas-tool-well:#f2f6fa;--atlas-tool-heading:#203e55;--atlas-tool-copy:#536d83;--atlas-tool-edge:#c7d7e5;--atlas-tool-accent:#2a668f;--atlas-tool-hover:#e5eff7}
body.atlas-workbench .drawingrail{display:none}
body.atlas-workbench .shell{grid-template-columns:0 188px minmax(0,1fr) 308px}body.atlas-workbench.hidewatch .shell{grid-template-columns:0 minmax(0,1fr) 308px}body.atlas-workbench.hideai .shell{grid-template-columns:0 188px minmax(0,1fr)}body.atlas-workbench.hidewatch.hideai .shell{grid-template-columns:0 minmax(0,1fr)}
.atlas-workbench #terminal .workspacehead{display:flex;gap:12px;align-items:center;margin-bottom:13px}.atlas-workbench #terminal .workspacehead>div:first-child{margin-right:auto}.atlas-workbench .workspacehead h1{font-weight:500;font-size:19px;letter-spacing:-.4px}.atlas-workbench #terminal .workspacehead>.pill{display:none}
.atlas-canvas-actions{display:flex;gap:7px;align-items:center;min-width:0}.atlas-canvas-actions button{display:flex;gap:7px;align-items:center;padding:8px 10px;border:1px solid var(--atlas-tool-edge);border-radius:7px;color:var(--atlas-tool-heading);font-size:11px;min-height:35px}.atlas-canvas-actions svg{width:18px;height:18px;flex-shrink:0}.atlas-canvas-actions #analysis-tools-open{background:var(--atlas-tool-surface)}.atlas-canvas-actions #analysis-tools-open:hover{background:var(--atlas-tool-hover)}.atlas-canvas-actions #analysis-tools-open span{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.atlas-canvas-actions #canvas-select{border-color:transparent;color:var(--atlas-tool-copy)}.atlas-canvas-actions #canvas-select.is-selected{background:var(--atlas-tool-well);border-color:var(--atlas-tool-edge);color:var(--atlas-tool-heading)}.atlas-canvas-actions #analysis-tools-open.has-tool{border-color:var(--atlas-tool-accent)}
kbd{font:inherit;font-size:9px;border:1px solid var(--atlas-tool-edge);border-bottom-width:2px;border-radius:4px;padding:1px 5px;line-height:1.5;color:var(--atlas-tool-copy)}
.atlas-tool-library{padding:0;width:min(990px,calc(100vw - 32px));max-width:none;height:min(760px,calc(100dvh - 60px));max-height:none;background:var(--atlas-tool-surface);border:1px solid var(--atlas-tool-edge);border-radius:14px;color:var(--atlas-tool-heading);box-shadow:0 28px 90px #04111f55;overflow:hidden}.atlas-tool-library[open]{display:flex;flex-direction:column}.atlas-tool-library::backdrop{background:#08172888;backdrop-filter:blur(3px)}
.atlas-library-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 25px 16px;gap:15px}.atlas-library-heading h2{font-size:25px;font-weight:500;letter-spacing:-.6px;line-height:1.2;margin:0}.atlas-library-heading p{font-size:12px;color:var(--atlas-tool-copy);margin:7px 0 0}.atlas-library-heading>button{padding:6px;border-color:transparent;color:var(--atlas-tool-copy)}.atlas-library-heading>button svg{width:20px;height:20px}
.atlas-tool-search{display:flex;gap:10px;align-items:center;margin:0 25px 20px;padding:9px 12px;border:1px solid var(--atlas-tool-edge);border-radius:7px;background:var(--atlas-tool-well);color:var(--atlas-tool-copy)}.atlas-tool-search>svg{width:20px;height:20px;flex-shrink:0}.atlas-tool-search input{min-width:0;flex:1;background:transparent;color:var(--atlas-tool-heading);border:0;padding:3px;font-size:13px;outline:none}.atlas-tool-search input::placeholder{color:var(--atlas-tool-copy)}.atlas-tool-search:focus-within{outline:2px solid var(--atlas-tool-accent);outline-offset:2px}.atlas-tool-search input:focus-visible{outline:none}
.atlas-tool-body{display:grid;grid-template-columns:182px minmax(0,1fr);flex:1;min-height:0;border-top:1px solid var(--atlas-tool-edge)}
.atlas-tool-categories{display:flex;flex-direction:column;gap:5px;padding:16px 12px;background:var(--atlas-tool-well);border-right:1px solid var(--atlas-tool-edge);overflow:auto}.atlas-tool-categories button{display:flex;align-items:center;gap:9px;padding:10px 9px;min-height:41px;text-align:left;border:1px solid transparent;border-radius:6px;color:var(--atlas-tool-copy);font-size:11px}.atlas-tool-categories button svg{width:19px;height:19px;flex-shrink:0}.atlas-tool-categories button small{margin-left:auto;font-size:10px}.atlas-tool-categories button[aria-pressed=true]{background:var(--atlas-tool-surface);border-color:var(--atlas-tool-edge);color:var(--atlas-tool-heading)}.atlas-tool-categories button:hover{background:var(--atlas-tool-hover)}.atlas-tool-categories button[data-tool-category=saved]{margin-top:17px}
.atlas-tool-results{min-width:0;min-height:0;overflow:auto;padding:19px 20px 24px;overscroll-behavior:contain;scrollbar-color:var(--atlas-tool-edge) transparent}.atlas-tool-results-heading{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.atlas-tool-results-heading h3{font-size:16px;font-weight:500;margin:0;color:var(--atlas-tool-heading)}.atlas-tool-results-heading p{font-size:11px;color:var(--atlas-tool-copy);margin:5px 0 0;line-height:1.5}.atlas-tool-results-heading>span{white-space:nowrap;font-size:10px;color:var(--atlas-tool-copy);padding-top:3px}
#analysis-tool-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.atlas-tool-card{position:relative;min-width:0;--tool-tone:#79bcaf}.atlas-tool-card[data-category=structure]{--tool-tone:#94b7e0}.atlas-tool-card[data-category=geometry]{--tool-tone:#c6b590}.atlas-tool-card[data-category=patterns]{--tool-tone:#bca6d3}.atlas-tool-card[data-category=planning]{--tool-tone:#86bba6}[data-theme=light] .atlas-tool-card{--tool-tone:#247a6b}[data-theme=light] .atlas-tool-card[data-category=structure]{--tool-tone:#376a9a}[data-theme=light] .atlas-tool-card[data-category=geometry]{--tool-tone:#8e6a30}[data-theme=light] .atlas-tool-card[data-category=patterns]{--tool-tone:#795394}[data-theme=light] .atlas-tool-card[data-category=planning]{--tool-tone:#357c5e}
.atlas-tool-choice{display:flex;flex-direction:column;align-items:stretch;text-align:left;width:100%;height:100%;border:1px solid var(--atlas-tool-edge);border-radius:9px;padding:0;background:var(--atlas-tool-surface);color:var(--atlas-tool-heading);overflow:hidden;min-height:204px}.atlas-tool-choice:hover{background:var(--atlas-tool-hover);border-color:var(--atlas-tool-accent)}.atlas-tool-preview{display:block;background:var(--atlas-preview-bg);height:77px;padding:10px 12px;color:var(--tool-tone);border-bottom:1px solid var(--atlas-tool-edge)}.atlas-tool-preview svg{width:100%;height:100%;overflow:hidden}.atlas-tool-choice strong{font-size:12px;font-weight:500;line-height:1.4;padding:12px 11px 0;color:var(--atlas-tool-heading)}.atlas-tool-description{font-size:10px;line-height:1.5;padding:5px 11px 10px;color:var(--atlas-tool-copy);flex:1;overflow-wrap:anywhere}.atlas-tool-placement{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:var(--atlas-tool-copy);padding:8px 11px;border-top:1px solid var(--atlas-tool-edge);gap:5px}.atlas-tool-placement>span{color:var(--atlas-tool-accent)}
.atlas-tool-save{position:absolute;top:5px;right:5px;padding:5px;border:1px solid transparent;border-radius:5px;color:var(--atlas-tool-copy);background:var(--atlas-preview-bg);display:flex}.atlas-tool-save svg{width:15px;height:15px}.atlas-tool-save:hover{background:var(--atlas-tool-surface);border-color:var(--atlas-tool-edge)}.atlas-tool-save[aria-pressed=true]{color:var(--atlas-tool-accent)}.atlas-tool-save[aria-pressed=true] svg{fill:var(--atlas-tool-accent);fill-opacity:.2}
.atlas-tool-footer{padding:12px 22px;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--atlas-tool-edge);color:var(--atlas-tool-copy);font-size:10px;background:var(--atlas-tool-well);line-height:1.5}.atlas-tool-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:42px 20px;color:var(--atlas-tool-copy)}.atlas-tool-empty>svg{width:32px;height:32px;margin-bottom:14px}.atlas-tool-empty h3{font-size:17px;color:var(--atlas-tool-heading)}.atlas-tool-empty p{font-size:12px;max-width:38ch}.atlas-tool-empty button{margin-top:10px;font-size:11px}
.atlas-workbench .tradingbar>button>svg{width:19px;height:19px}.atlas-workbench .aiicon svg{width:24px;height:24px}
/* Study browsing is a horizontal filter bar and a two-column catalogue. */
.atlas-workbench .indicatorlibrary{width:min(900px,calc(100vw - 28px));height:min(740px,calc(100dvh - 50px));background:var(--atlas-tool-surface);border-color:var(--atlas-tool-edge);border-radius:13px}.atlas-workbench .libraryheading{padding:22px 24px 14px}.atlas-workbench .libraryheading h2{font-weight:500;font-size:25px}.atlas-workbench .librarybody{display:flex;flex-direction:column;height:calc(100% - 178px);min-height:0}.atlas-workbench .libraryside{display:flex;flex-shrink:0;gap:7px;border:0;border-bottom:1px solid var(--atlas-tool-edge);padding:0 24px 13px;overflow:visible}.atlas-workbench .libraryside [hidden]{display:none}.atlas-workbench .libraryside button{width:auto;flex:0 1 auto;font-size:11px;padding:8px 11px;margin:0;border:1px solid var(--atlas-tool-edge);border-radius:6px;gap:6px;white-space:nowrap}.atlas-workbench .libraryside svg{width:16px;height:16px}.atlas-workbench .librarymain{flex:1;min-height:0}.atlas-workbench .librarytabs{padding:15px 24px 12px}.atlas-workbench .librarylisthead{padding-left:24px;padding-right:24px;letter-spacing:0}.atlas-workbench #technical-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:2px 12px;padding:0 20px 22px;scrollbar-color:var(--atlas-tool-edge) transparent}.atlas-workbench .technicalrow{border-bottom:1px solid var(--atlas-tool-edge);border-radius:0;min-height:46px;gap:3px}.atlas-workbench .technicalname{font-size:12px;line-height:1.5;min-width:0;white-space:normal}.atlas-workbench .favoritebutton svg{width:15px;height:15px}.atlas-workbench .favoritebutton.isfavorite svg{fill:currentColor;fill-opacity:.2}.atlas-workbench .libraryfooter{padding:10px 24px;background:var(--atlas-tool-well);border-color:var(--atlas-tool-edge)}
/* Indicator controls retain their behavior in an Atlas inspector layout. */
.atlas-workbench .indicatorproperties{width:min(900px,calc(100vw - 28px));background:var(--atlas-tool-surface);border-radius:13px}.atlas-workbench .indicatorproperties form{display:grid;grid-template-columns:130px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;max-height:calc(100dvh - 40px)}.atlas-workbench .studypropertiesheading{grid-column:1/-1;padding:23px 25px 20px}.atlas-workbench .studypropertytabs{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:5px;margin:0;padding:15px 10px;border-bottom:0;border-right:1px solid var(--atlas-tool-edge);background:var(--atlas-tool-well)}.atlas-workbench .studypropertytabs button{font-size:12px;border:1px solid transparent;border-radius:5px;text-align:left;padding:10px;color:var(--atlas-tool-copy)}.atlas-workbench .studypropertytabs button[aria-selected=true]{background:var(--atlas-tool-surface);border-color:var(--atlas-tool-edge);color:var(--atlas-tool-heading)}.atlas-workbench .studypropertiesbody{grid-column:2;grid-row:2;padding:18px 22px;min-height:220px;max-height:calc(100dvh - 205px)}.atlas-workbench #study-settings-error{grid-column:2;grid-row:3;padding:0 22px}.atlas-workbench .studypropertiesfooter{grid-column:1/-1;grid-row:4;min-width:0;padding:14px 22px}.atlas-workbench .studyplotrow{grid-template-columns:minmax(80px,1fr) 36px 48px 77px 82px 60px;gap:7px}.atlas-workbench .studysectiontitle{letter-spacing:0;text-transform:lowercase;font-size:11px}.atlas-workbench .studysectiontitle::first-letter{text-transform:uppercase}
.atlas-workbench .tradingbar .chartstylemenu{width:460px;max-height:calc(100dvh - 80px)}.atlas-workbench .chartstylemenu section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:7px 0}.atlas-workbench .tradingbar .chartstylemenu button{font-size:12px;height:49px;border:1px solid var(--atlas-tool-edge);border-radius:6px;gap:8px}.atlas-workbench .tradingbar .chartstylemenu button span{font-size:11px}.atlas-workbench .tradingbar .chartstylemenu .style-settings-entry{grid-column:1/-1;border:0;width:100%;margin:0}
@media(min-width:1600px){body.atlas-workbench .shell{grid-template-columns:0 215px minmax(0,1fr) 338px}body.atlas-workbench.hidewatch .shell{grid-template-columns:0 minmax(0,1fr) 338px}body.atlas-workbench.hideai .shell{grid-template-columns:0 215px minmax(0,1fr)}body.atlas-workbench.hidewatch.hideai .shell{grid-template-columns:0 minmax(0,1fr)}}
@media(min-width:1001px) and (max-width:1190px){body.atlas-workbench .shell{grid-template-columns:0 160px minmax(0,1fr) 260px}body.atlas-workbench.hidewatch .shell{grid-template-columns:0 minmax(0,1fr) 260px}body.atlas-workbench.hideai .shell{grid-template-columns:0 160px minmax(0,1fr)}body.atlas-workbench.hidewatch.hideai .shell{grid-template-columns:0 minmax(0,1fr)}.atlas-canvas-actions kbd{display:none}}
@media(min-width:651px) and (max-width:1000px){body.atlas-workbench .shell,body.atlas-workbench.hideai .shell{grid-template-columns:0 168px minmax(0,1fr)}body.atlas-workbench.hidewatch .shell,body.atlas-workbench.hidewatch.hideai .shell{grid-template-columns:0 minmax(0,1fr)}.atlas-workbench #terminal .workspacehead{flex-wrap:wrap}.atlas-canvas-actions kbd{display:none}#analysis-tool-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body.atlas-workbench .shell,body.atlas-workbench.hidewatch .shell,body.atlas-workbench.hideai .shell,body.atlas-workbench.hidewatch.hideai .shell{grid-template-columns:0 minmax(0,1fr)}.atlas-workbench #terminal .workspacehead{flex-wrap:wrap;gap:8px}.atlas-workbench .workspacehead h1{font-size:18px}.atlas-canvas-actions{gap:4px}.atlas-canvas-actions button{font-size:10px;padding:7px 8px;gap:5px}.atlas-canvas-actions #analysis-tools-open span{max-width:120px}.atlas-canvas-actions kbd{display:none}.atlas-canvas-actions svg{width:16px;height:16px}.atlas-canvas-actions #canvas-select span{display:none}.atlas-tool-library{width:calc(100vw - 14px);height:calc(100dvh - 28px);border-radius:11px}.atlas-library-heading{padding:20px 16px 14px}.atlas-library-heading h2{font-size:23px}.atlas-library-heading p{font-size:11px}.atlas-tool-search{margin:0 16px 15px;padding:8px 10px}.atlas-tool-search input{font-size:12px}.atlas-tool-body{display:flex;flex-direction:column}.atlas-tool-categories{display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:6px;padding:10px 12px;border-right:0;border-bottom:1px solid var(--atlas-tool-edge);flex-shrink:0}.atlas-tool-categories button{white-space:nowrap;flex-shrink:0;min-height:35px;padding:6px 8px;font-size:10px;gap:5px}.atlas-tool-categories button[data-tool-category=saved]{margin-top:0}.atlas-tool-categories button svg{width:16px;height:16px}.atlas-tool-results{padding:15px 12px 20px}.atlas-tool-results-heading h3{font-size:15px}.atlas-tool-results-heading p{font-size:10px}.atlas-tool-results-heading>span{font-size:9px}#analysis-tool-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.atlas-tool-preview{height:70px;padding:11px 10px}.atlas-tool-choice{min-height:207px}.atlas-tool-choice strong{font-size:11px;padding:10px 9px 0}.atlas-tool-description{font-size:10px;padding:5px 9px 9px}.atlas-tool-placement{padding:7px 9px;font-size:9px}.atlas-tool-placement>span{display:none}.atlas-tool-footer{padding:10px 14px;font-size:9px}.atlas-tool-footer>span:last-child{display:none}.atlas-workbench .libraryheading{padding:19px 16px 13px}.atlas-workbench .libraryheading h2{font-size:22px}.atlas-workbench .librarybody{height:calc(100% - 176px)}.atlas-workbench .libraryside{padding:0 12px 12px;gap:5px}.atlas-workbench .libraryside button{font-size:10px;padding:8px 7px;gap:4px}.atlas-workbench .libraryside svg{width:14px;height:14px}.atlas-workbench .librarytabs{padding:12px 14px 10px}.atlas-workbench #technical-list{grid-template-columns:1fr;padding:0 12px 20px}.atlas-workbench .librarylisthead{padding:0 14px 8px}.atlas-workbench .libraryfooter{padding:8px 13px}.atlas-workbench .indicatorproperties form{display:flex;flex-direction:column}.atlas-workbench .studypropertiesheading{padding:18px 18px 10px}.atlas-workbench .studypropertytabs{flex-direction:row;margin:0;padding:7px 12px;border-right:0;border-bottom:1px solid var(--atlas-tool-edge)}.atlas-workbench .studypropertytabs button{font-size:12px;padding:8px 10px}.atlas-workbench .studypropertiesbody{padding:16px;min-height:180px;max-height:calc(100dvh - 235px)}.atlas-workbench .studypropertiesfooter{padding:12px}.atlas-workbench .studyplotrow{grid-template-columns:minmax(80px,1fr) 34px 44px 72px}.atlas-workbench .tradingbar .chartstylemenu{left:8px;right:8px;top:53px;width:auto;max-height:calc(100dvh - 65px)}.atlas-workbench .tradingbar .chartstylemenu button{height:49px}.atlas-workbench .tradingbar .chartstylemenu button span{font-size:11px}}
@media(min-width:1001px){body.atlas-workbench .watch{grid-column:2;grid-row:1}body.atlas-workbench main{grid-column:3;grid-row:1}body.atlas-workbench .copilot{grid-column:4;grid-row:1}body.atlas-workbench.hidewatch main{grid-column:2}body.atlas-workbench.hidewatch .copilot{grid-column:3}body.atlas-workbench.hidewatch.hideai main{grid-column:2}}
@media(min-width:651px) and (max-width:1000px){body.atlas-workbench .watch{grid-column:2}}
.atlas-workbench .studyplotrow{border-color:var(--atlas-tool-edge);grid-template-columns:minmax(80px,1fr) 36px 56px 80px 88px 60px}.atlas-workbench .indicatorproperties input[type=color]{background:var(--atlas-tool-well);border-color:var(--atlas-tool-edge)}
@media(max-width:650px){.atlas-workbench .studyplotrow{grid-template-columns:minmax(80px,1fr) 34px 50px 76px}}
.atlas-tool-card{content-visibility:auto;contain-intrinsic-size:auto 204px}
