/* Dashboard-01 composition: shadcn/ui (MIT). Local tokens and financial semantics remain Atlas-owned. */
:root{--app-sidebar-width:216px;--app-header-height:48px}
body[data-sidebar=compact]{--app-sidebar-width:68px}
.atlas-dashboard-header{position:fixed;top:0;left:var(--app-sidebar-width);right:0;z-index:45;height:var(--app-header-height);display:flex;align-items:center;gap:8px;padding:0 16px 0 12px;border-bottom:1px solid var(--border);background:var(--bg)}
.atlas-dashboard-header[hidden]{display:none}
.atlas-sidebar-toggle{width:44px;height:44px;min-width:44px;min-height:44px;flex:none;display:grid;place-items:center;border:0;background:transparent;color:var(--subtle);font-size:14px;line-height:1;cursor:pointer;border-radius:2px}
.atlas-sidebar-toggle:hover{background:var(--surface-hover);color:var(--text)}
.atlas-shell-heading{font-size:13px;font-weight:600;line-height:1.3;letter-spacing:0;margin:0;white-space:nowrap}
.atlas-shell-controls{margin-left:auto;min-width:0;display:flex;align-items:center;gap:12px;overflow-x:auto;scrollbar-width:none}
body[data-shell=dashboard] #market-header-slot.atlas-shell-controls{display:flex;align-items:center;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;gap:12px}
body[data-shell=dashboard] #market-header-slot .ml-tabs{flex:none;overflow:visible}
body[data-shell=dashboard] #market-header-slot .ml-region{flex:none;margin:0}
body[data-shell=dashboard] .atlas-sidebar,body[data-shell=dashboard] #root>.atlas-sidebar{
  position:fixed;inset:0 auto 0 0;width:var(--app-sidebar-width);height:100dvh;min-height:100dvh;max-height:none;
  display:flex;flex-direction:column;align-items:stretch;gap:0;padding:12px 8px;border:0;border-right:1px solid var(--border);background:var(--sidebar);overflow-x:hidden;overflow-y:auto;z-index:46;
}
body[data-shell=dashboard] .atlas-sidebar .atlas-brand{
  display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;height:36px;min-height:36px;padding:0 8px;margin:0 0 12px;border:0;background:none;text-decoration:none;white-space:nowrap;
}
body[data-shell=dashboard] .atlas-sidebar .atlas-brand>span{font-size:21px;color:var(--accent-ink);flex:none}
body[data-shell=dashboard] .atlas-sidebar .atlas-brand>div,body[data-shell=dashboard] .atlas-sidebar .atlas-brand>strong{display:block!important;color:var(--text);font-size:13px;font-weight:600;letter-spacing:0}
body[data-shell=dashboard] .atlas-sidebar .atlas-brand small{display:block!important;font-size:11px;letter-spacing:normal;color:var(--subtle);font-weight:500;margin-top:2px}
.atlas-sidebar-group{display:none}
body[data-shell=dashboard] .atlas-sidebar .atlas-nav{display:flex;flex-direction:column;align-items:stretch;gap:1px;width:100%;margin:0;overflow:visible;order:2}
body[data-shell=dashboard] .atlas-sidebar .atlas-nav :is(a,button){position:relative;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;height:32px;min-height:32px;padding:6px 8px;border:0;border-radius:2px;background:none;color:var(--muted);font-size:12px;font-weight:450;text-decoration:none;text-align:left;white-space:nowrap}
body[data-shell=dashboard] .atlas-sidebar .atlas-nav :is(a,button):hover{background:var(--surface-hover);color:var(--text)}
body[data-shell=dashboard] .atlas-sidebar .atlas-nav :is(.active,[aria-current=page]){background:var(--nav-active-bg);color:var(--nav-active-text)}
body[data-shell=dashboard] .atlas-nav svg{width:15px;height:15px;flex:none;opacity:.9}
body[data-shell=dashboard] .atlas-nav button>span:last-child:not([data-icon]){position:static;clip-path:none;width:auto;height:auto;overflow:visible;margin:0}
body[data-shell=dashboard] .atlas-side-foot,body[data-shell=dashboard] .workbench-tools,body[data-shell=dashboard] .mobile-chart-home{display:none!important}
/* The dashboard composition shows only the region it mounts itself. */
body[data-shell=dashboard] .workbench-rail:not(.content-rail),body[data-shell=dashboard] .workbench-bottom-bar:not(.content-bottom-bar){display:none!important}
body[data-shell=dashboard] .workspace,body[data-shell=dashboard] #root>.workspace{
  margin-left:var(--app-sidebar-width)!important;margin-top:var(--app-header-height);width:calc(100% - var(--app-sidebar-width));height:calc(100dvh - var(--app-header-height));min-height:0;
}
body[data-shell=dashboard] .workspace.atlas-details-layout{display:block;grid-template-columns:none}
body[data-shell=dashboard] #main{height:100%;min-height:0;padding-top:0!important}
body[data-shell=dashboard] :is(.daily-heading,.ipo-heading,.evidence-controls){position:relative;top:auto;right:auto;left:auto;height:auto;min-height:36px;width:100%;max-width:none;z-index:2;display:flex;align-items:center;gap:8px;padding:4px 0;margin:0 0 8px;background:transparent;border:0;box-shadow:none;overflow-x:auto;white-space:nowrap}
body[data-shell=dashboard] :is(.daily-heading-title,.ipo-heading-title,.evidence-mobile-heading){display:none!important}
body[data-shell=dashboard] #data-view .daily-heading{padding:4px 16px;border-bottom:1px solid var(--border);background:var(--surface);margin:0}
body[data-shell=dashboard] #ipo-view{padding:16px 24px 24px;gap:12px}
body[data-shell=dashboard] .ipo-heading{justify-content:space-between;flex:none;margin:0}
body[data-shell=dashboard] :is(.ipo-table-shell,.daily-table-shell,.evidence-table-wrap){border:1px solid var(--border);border-radius:0;background:var(--surface);overflow:auto}
body[data-shell=dashboard] #evidence-view{padding:16px 24px 24px}
body[data-shell=dashboard] .ml-scroll{padding:8px 24px 24px}
body[data-shell=dashboard] .ml-score-row{gap:16px;margin:16px 0}
body[data-shell=dashboard] .ml-score{border-radius:0;min-height:144px;background:var(--surface);border-left-width:1px}
body[data-shell=dashboard] .ml-score .ml-axis-value{font-size:36px}
body[data-shell=dashboard] .ml-card{border-radius:0;background:var(--surface);color:var(--text)}
body[data-shell=dashboard] .ml-sources,body[data-shell=dashboard] .ml-original{background:transparent;border-color:var(--border);border-radius:0}
body[data-sidebar=compact][data-shell=dashboard] .atlas-brand :is(div,strong),body[data-sidebar=compact][data-shell=dashboard] .atlas-sidebar-group,body[data-sidebar=compact][data-shell=dashboard] .atlas-nav .atlas-nav-label,body[data-sidebar=compact][data-shell=dashboard] .atlas-nav button>span:last-child:not([data-icon]){display:none!important}
body[data-sidebar=compact][data-shell=dashboard] .atlas-sidebar :is(.atlas-brand,.atlas-nav a,.atlas-nav button){justify-content:center;padding-inline:0}
/* The chart keeps TradingView's top/left/right/bottom working regions. */
@media(min-width:621px){
  body[data-shell=chart] .atlas-sidebar{position:fixed;inset:0 auto 0 0;width:44px;height:100dvh;min-height:100dvh;max-height:none;padding:4px 4px;display:flex;flex-direction:column;gap:8px;align-items:center;border-right:1px solid var(--border);border-bottom:0;overflow:visible;background:var(--bg)}
  body[data-shell=chart] .workspace{margin-left:44px!important;margin-top:0;width:calc(100% - 44px);height:100dvh}
  body[data-shell=chart] .atlas-sidebar .atlas-brand{width:36px;height:36px;padding:0;flex:none}
  body[data-shell=chart] .atlas-canvas-heading{position:relative;left:auto;right:auto;top:auto;width:100%;max-width:none;height:44px;min-height:44px;padding:0 8px;z-index:30;overflow-x:auto;overflow-y:hidden;flex:none;gap:4px;background:var(--bg);border-bottom:1px solid var(--border)}
  body[data-shell=chart] .workbench-rail{width:45px;min-width:0;max-width:45px;flex:0 0 45px;display:flex;flex-direction:column;align-items:center;border-left:1px solid var(--border);background:var(--bg);overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none}
  body[data-shell=chart] .workbench-rail :is(.atlas-nav,.workbench-detail-tools){display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;align-items:center;width:100%;max-width:100%;margin:8px 0;overflow:hidden}
  body[data-shell=chart] .workbench-rail :is(a,button){display:grid;place-items:center;width:34px;max-width:34px;min-height:34px;height:34px;padding:8px;overflow:hidden}
  body[data-shell=chart] .workbench-rail :is(a,button)>span:last-child:not([data-icon]){position:absolute!important;display:block!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
}
@media(max-width:1000px){
  .atlas-dashboard-header>.atlas-sidebar-toggle{display:none}
  body[data-shell=dashboard]{--app-sidebar-width:68px}
  body[data-shell=dashboard] .atlas-sidebar .atlas-brand :is(div,strong),body[data-shell=dashboard] .atlas-sidebar-group,body[data-shell=dashboard] .atlas-nav .atlas-nav-label,body[data-shell=dashboard] .atlas-nav button>span:last-child:not([data-icon]){display:none!important}
  body[data-shell=dashboard] .atlas-sidebar :is(.atlas-brand,.atlas-nav a,.atlas-nav button){justify-content:center;padding-inline:0}
  .atlas-dashboard-header{padding-inline:16px;gap:12px}
}
@media(max-width:760px),(pointer:coarse){
  body[data-shell=dashboard] .atlas-sidebar :is(.atlas-brand,.atlas-nav a,.atlas-nav button){min-height:44px;height:44px;flex-shrink:0}
}
@media(max-width:640px){
  body[data-shell=dashboard]{--app-sidebar-width:52px;--app-header-height:56px}
  body[data-shell=dashboard] .atlas-sidebar,body[data-shell=dashboard] #root>.atlas-sidebar{padding:12px 4px}
  .atlas-dashboard-header{padding-inline:12px;gap:8px}
  .atlas-shell-heading{font-size:15px}
  .atlas-dashboard-header:has(.atlas-shell-controls:not(:empty)) .atlas-shell-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .atlas-shell-controls{margin-left:0}
  body[data-shell=dashboard] :is(#ipo-view,#evidence-view){padding:8px 12px 12px}
  body[data-shell=dashboard] .ml-scroll{padding:0 12px 16px}
  body[data-shell=dashboard] .ml-score-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  body[data-shell=dashboard] .ml-score{padding:12px 8px;min-height:140px}
  body[data-shell=dashboard] .ml-score h3{font-size:12px;white-space:nowrap}
  body[data-shell=dashboard] .ml-score h3 span{font-size:17px}
  body[data-shell=dashboard] .ml-score .ml-axis-value{font-size:24px;letter-spacing:-.04em}
  body[data-shell=dashboard] .ml-score .ml-axis-stats{display:flex;flex-direction:column;gap:2px;font-size:11px}
}
@media(max-width:620px){
  body[data-shell=chart] .atlas-sidebar:not([data-mobile-open=true]),body[data-shell=chart] .workbench-rail:not([data-mobile-open=true]){display:none}
  body[data-shell=chart] .workspace{margin:0!important;width:100%;height:100dvh}
  body[data-shell=chart] .atlas-canvas-heading{position:relative;inset:auto;width:100%;max-width:none;height:calc(48px + var(--mobile-top));min-height:calc(48px + var(--mobile-top));padding:var(--mobile-top) 8px 0;gap:1px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pinch-zoom;flex:none;z-index:46;background:var(--bg);border-bottom:1px solid var(--border)}
  body[data-shell=chart] .atlas-canvas-heading>:is(#workbench-replay,.workspace-history-controls){display:none}
  body[data-shell=chart] .atlas-canvas-heading>button{min-height:44px;flex-shrink:0}
  /* Touch floor for the chart card toolbar: the reset control keeps its role and
     label, and the phone dock already reserves 44px targets. */
  body[data-shell=chart] .chart-toolbar .chart-options .icon-button{width:44px;min-width:44px;height:44px}
  body[data-shell=chart] .atlas-canvas-heading .workbench-symbol{max-width:92px;min-width:80px;flex:0 0 auto}
  body[data-shell=chart] .atlas-canvas-heading>:is(#workbench-chart-type,#atlas-mode-menu,#mobile-tools-toggle,#mobile-details-toggle){width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;flex:none}
  body[data-shell=chart] .atlas-canvas-heading #atlas-cycle-options>summary{height:44px;min-height:44px}
  /* Toolbar icons must not inherit the plotted SVG's vertical-only gesture. */
  body[data-shell=chart] .atlas-canvas-heading svg{touch-action:auto}
  body[data-shell=chart] .atlas-sidebar[data-mobile-open=true]{min-height:0;flex-direction:column;align-items:stretch;gap:8px}
  body[data-shell=chart] .workbench-rail[data-mobile-open=true] .atlas-nav{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px;overflow:visible}
}
/* RSI is a chart workspace. The source comparison stays available below it. */
.rsi-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--border)}
.rsi-toolbar strong{font-size:16px;white-space:nowrap}.rsi-toolbar strong span{font-size:12px;color:var(--muted);font-weight:400;margin-left:8px}
.rsi-toolbar button{min-height:36px;border:0;border-radius:4px;padding:8px 12px;background:transparent;color:var(--muted);cursor:pointer}
.rsi-toolbar button[aria-pressed=true]{background:var(--nav-active-bg);color:var(--nav-active-text)}
.rsi-toolbar label{display:flex;align-items:center;gap:8px;margin-left:auto;color:var(--muted);font-size:11px}
.rsi-toolbar select{max-width:260px;min-height:36px}
.rsi-level-key{display:flex;gap:16px;flex-wrap:wrap;padding:12px 0;margin:0;color:var(--muted);font-size:11px}
.rsi-level-key span:first-child{color:var(--green)}.rsi-level-key span:nth-child(2){color:var(--red)}
.rsi-workbench{display:grid;gap:16px}.rsi-chart-panel{padding:12px 16px}.rsi-chart-panel>h3{display:none}
.rsi-chart-panel .ml-chart{margin-top:8px}.rsi-chart-panel [data-chart=rsi-price]{border-bottom:1px solid var(--border)}
.rsi-crossing{fill:var(--green);font-family:var(--font);font-size:10px}.rsi-crossing-sell{fill:var(--red)}
.rsi-crossing text{paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round}
.rsi-comparison>summary{font-size:12px;color:var(--muted);cursor:pointer;min-height:32px}
.rsi-chart-panel svg{cursor:crosshair}
.atlas-sidebar :is(a,button):active{background:var(--surface-hover)}
.atlas-sidebar :is(a,button):disabled{opacity:.45;cursor:not-allowed}
@media(max-width:640px){.rsi-toolbar{gap:8px}.rsi-toolbar label{margin-left:0;width:100%;justify-content:space-between}.rsi-toolbar select{max-width:220px}.rsi-toolbar button{min-height:44px;padding:8px}.rsi-level-key{gap:8px}.rsi-chart-panel{padding:12px 8px}}
body[data-shell=dashboard] .atlas-service-workspace{padding:0}
.rsi-chart-panel>.ml-source-line{display:none}
.rsi-chart-panel [data-chart=rsi] .ml-date-selector{display:none}
.rsi-chart-panel .ml-chart-legend{margin-bottom:0}

body[data-shell=chart] .workbench-rail .atlas-nav svg{width:18px;height:18px;flex:none}
body[data-shell=chart] .workbench-rail .atlas-nav :is(a,button){color:var(--muted);text-decoration:none}
body[data-shell=chart] .workbench-rail .atlas-nav .active{color:var(--nav-active-text);background:var(--nav-active-bg)}
@media(max-width:620px){body[data-shell=chart] .workbench-rail[data-mobile-open=true] .atlas-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1 1 72px;min-height:64px;padding:8px 4px;text-decoration:none;font-size:11px;text-align:center;white-space:normal}}

.atlas-nav-code{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;font-family:var(--font-mono,monospace);font-size:11px;font-weight:600;line-height:1.4}
/* Center focus belongs to the frame; the preserved chart perimeter cannot scroll. */
body[data-center-tool] #lab-chart-stage{overflow:clip}
.atlas-center-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:var(--bg);z-index:20}
.atlas-center-frame[hidden]{display:none}
body.js[data-center-tool] .atlas-plot>:not(.atlas-center-frame):not(.atlas-center-loading){visibility:hidden;pointer-events:none}
body[data-center-tool] .atlas-canvas-heading::after{content:attr(data-center-page);font-size:12px;color:var(--muted);white-space:nowrap;padding-inline:8px}
body[data-center-tool] :is(.atlas-canvas-heading,.workbench-bottom-bar,.workbench-tools,.workbench-detail-tools,.mobile-extra-actions) :disabled{color:var(--subtle);background:var(--surface);cursor:default}
body[data-center-tool] :is(.mobile-gesture-hint,.mobile-gesture-help){display:none}
body[data-embedded=true] :is(.atlas-sidebar,.atlas-dashboard-header,.workbench-tools,.workbench-rail,.atlas-canvas-heading,.workbench-bottom-bar,.atlas-readout,.mobile-chart-home){display:none!important}
body[data-embedded=true] .workspace{margin:0!important;width:100%!important;height:100dvh}
body[data-shell=embedded]{overflow:hidden;margin:0}
.atlas-embedded-workspace{height:100dvh;min-width:0;overflow:hidden}
body #root main.atlas-embedded-workspace{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0}
.atlas-embedded-workspace #market-view{width:100%;margin:0;padding:0}
.atlas-embedded-workspace .rsi-toolbar>.symbol-selector-trigger{display:none}
body.js[data-center-tool] :is(#workbench-range-label,.workbench-status){visibility:hidden}
body[data-embedded=true] #main{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:8px 16px}
.atlas-embedded-workspace .market-lab{height:100%;padding:0}
.atlas-embedded-workspace .ml-scroll{height:100%;overflow:auto;padding:12px 16px 24px}
.rsi-history{margin-top:24px;padding-top:16px;border-top:1px solid var(--border)}
.rsi-history h2{margin:0;font-size:15px;font-weight:600}.rsi-history h2 small{margin-left:12px;font-size:11px;font-weight:400;color:var(--muted)}
.rsi-backtest-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-block:16px}
.rsi-backtest-form label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}
.rsi-backtest-form input{box-sizing:border-box;width:112px;min-height:32px;padding:4px 8px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:4px;font:12px var(--font-mono)}
.rsi-backtest-form input[type=date]{width:140px}
.rsi-history button{min-height:32px;padding:4px 12px;background:var(--surface);border:1px solid var(--border);border-radius:4px;color:var(--text);cursor:pointer;font:12px var(--font)}
.rsi-history button:hover{background:var(--surface-hover)}.rsi-history button:active{background:var(--nav-active-bg)}.rsi-history button:focus-visible,.rsi-backtest-form input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.rsi-history button:disabled{color:var(--subtle);background:var(--bg);cursor:default}
.rsi-history-meta{display:flex;flex-wrap:wrap;gap:12px;margin-block:8px;font-size:11px;color:var(--muted)}
.rsi-csv textarea{box-sizing:border-box;width:100%;height:200px;padding:12px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);font:11px/1.6 var(--font-mono);resize:vertical;white-space:pre;overflow:auto}
.rsi-csv .rsi-history-heading{margin-block:12px}.rsi-csv .rsi-history-heading button{margin-left:auto}
@media(max-width:620px){body[data-center-tool] .atlas-canvas-heading :is(#workbench-chart-type,#atlas-mode-menu,#atlas-cycle-panel){display:none}body[data-center-tool] .atlas-canvas-heading .workbench-symbol{flex:0 0 80px;min-width:80px;max-width:none}}
body[data-rsi-controls] :is(#workbench-scenario,#atlas-cycle-panel,#workbench-replay,.workbench-rail [data-mobile-target=focus],.mobile-gesture-hint,.mobile-gesture-help){display:none!important}
body[data-chart-controls] #workbench-frequency [data-lab-frequency][hidden]{display:none}
body[data-rsi-controls=ready] :is(#workbench-range-label,.workbench-status){visibility:visible!important}
body[data-rsi-controls] .mobile-extra-actions :is([data-mobile-target="#workbench-scenario"],[data-mobile-target="#workbench-replay"],[data-mobile-target=focus]){display:none!important}
body[data-rsi-controls=ready] :is(.atlas-canvas-heading,.workbench-tools,.workbench-detail-tools,.workbench-bottom-bar,.mobile-extra-actions) :disabled{color:var(--subtle);background:var(--surface);cursor:default}
@media(max-width:620px){body[data-rsi-controls] .atlas-canvas-heading :is(#workbench-chart-type,#atlas-mode-menu){display:flex}body[data-rsi-controls] .atlas-canvas-heading::after{display:none}body[data-rsi-controls] .atlas-canvas-heading .workbench-symbol{flex:0 0 80px}}
body[data-center-tool] #chart-reader{display:none!important}
@media(min-width:621px){body[data-center-tool] .workspace.atlas-details-layout{grid-template-columns:minmax(0,1fr) 0 var(--rail-width,38px)}}
.rsi-backtest-metrics{display:flex;flex-wrap:wrap;gap:24px;margin-block:24px}.rsi-backtest-metrics dt{font-size:11px;color:var(--muted)}.rsi-backtest-metrics dd{margin:4px 0 0;font:18px var(--font-mono)}
.rsi-history-heading{display:flex;align-items:center;gap:16px;margin-block:24px 12px}.rsi-history-heading label{margin-left:auto;font-size:11px;color:var(--muted)}
.rsi-ledger-scroll{max-height:360px;overflow:auto;border:1px solid var(--border);margin-top:12px}.rsi-ledger-scroll thead th{background:var(--surface);z-index:1}.rsi-ledger-scroll td{white-space:nowrap;font-variant-numeric:tabular-nums}.rsi-ledger-scroll td button{border:0;background:transparent;color:var(--muted);min-height:28px;padding:0}
.rsi-trades summary{cursor:pointer;font-size:12px}
.symbol-search-mark-tqqq,.symbol-search-mark-soxl,.symbol-search-mark-233740{font-size:14px;color:var(--muted)}

/* The asset board exposes its actual actions in the chart shell header. */
.center-data-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-left:auto;flex:none;min-width:0}
.center-data-title{margin-right:12px;color:var(--text);font-size:13px;font-weight:600;white-space:nowrap}
.center-data-action{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:36px;padding:4px 8px;border:1px solid var(--border);border-radius:4px;color:var(--text);background:var(--surface);white-space:nowrap;font-size:12px}
.center-data-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.center-data-action:hover:not(:disabled){background:var(--surface-hover)}
.center-data-action:focus-visible{outline:2px solid var(--focus,var(--accent));outline-offset:-2px}
body[data-center-tool=data] .atlas-canvas-heading:has(.center-data-actions)>:not(.center-data-actions):not(.center-workspace-toolbar):not(.symbol-selector-trigger):not(.mobile-workbench-button){display:none!important}
body[data-center-tool=data] .atlas-canvas-heading:has(.center-data-actions)::after{display:none}
body[data-data-actions-hosted=true] #data-view .daily-heading{display:none!important}
@media(pointer:coarse){.center-data-action{min-width:44px;min-height:44px}}
@media(max-width:620px){
  .center-data-title{display:none}
  .center-data-action{min-width:44px;min-height:44px;padding:4px}
  .center-data-action>span:not(.daily-help-icon){display:none}
  .center-data-actions{gap:0}
}
@media(max-width:640px){.atlas-embedded-workspace .ml-scroll{padding:8px 8px 16px}.rsi-history h2 small{display:block;margin:8px 0 0}.rsi-backtest-form{gap:8px}.rsi-backtest-form label{flex:1 0 44%}.rsi-backtest-form input,.rsi-backtest-form input[type=date]{width:100%}.rsi-history-heading{flex-wrap:wrap;gap:8px}.rsi-backtest-metrics{gap:16px}}

/* The user's workbench preference hides scroll chrome, never scroll behavior.
   Native wheel/touch/keyboard movement, sticky headers and dialog owners stay. */
*,*::before,*::after{scrollbar-width:none!important;scrollbar-gutter:auto!important;-ms-overflow-style:none}
*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* WP7: source-owned controls occupy the same perimeter positions. Only the
   instrument slot contains asset-specific actions or the hosted toolbar. */
body[data-shell=chart] .atlas-canvas-heading[data-shell-region=top]{flex-wrap:nowrap;min-width:0;box-sizing:border-box}
body[data-shell=chart] .atlas-canvas-heading[data-shell-region=top]>[data-shell-owner=top]{flex:none;order:0}
body[data-shell=chart] .atlas-canvas-heading[data-shell-region=top]>.shell-instrument-slot{display:flex;align-items:center;flex:1 1 0;min-width:32px;max-width:100%;height:100%;gap:2px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;white-space:nowrap;touch-action:pan-x pinch-zoom}
body[data-shell=chart] .shell-instrument-slot>.workbench-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;min-height:32px;padding:8px;border:0;border-radius:4px}
body[data-shell=chart] .shell-instrument-slot .center-workspace-toolbar{flex:0 0 auto;min-width:0;width:max-content;max-width:none}
body[data-shell=chart] .shell-instrument-slot :is(#workbench-scenario,#workbench-replay,#workbench-monthly-backtest){flex:none;white-space:nowrap}
body[data-shell=chart] .atlas-canvas-heading[data-shell-region=top]>.shell-instrument-slot:has(#atlas-cycle-options[open]){overflow:visible}
body[data-shell=chart] .atlas-canvas-heading[data-shell-region=top]>.workspace-history-controls{margin-left:0}
body[data-shell=chart] .atlas-canvas-heading[data-shell-region=top]>.shell-history-slot{width:76px}
body[data-shell=chart] .workbench-rail[data-shell-region=right]{flex:0 0 45px;width:45px;box-sizing:border-box}
body[data-shell=chart] .workbench-rail [data-atlas-page="market-us"]{display:none}
body[data-shell=chart] .workbench-rail[data-shell-region=right] [data-shell-owner=right]{width:44px;min-width:44px;max-width:44px;box-sizing:border-box}
body[data-shell=chart] [data-disabled-reason]{cursor:not-allowed}
@media(max-width:620px){
  body[data-shell=chart] .atlas-canvas-heading[data-shell-region=top]{max-width:100%;overflow-x:auto;overflow-y:hidden}
  /* One mobile row owns the gesture. A nested, contained feature scroller can
     trap swipes that start on the first visible asset action at 320px. */
  body[data-shell=chart] .atlas-canvas-heading[data-shell-region=top]>.shell-instrument-slot{flex:0 0 auto;max-width:none;overflow:visible;overscroll-behavior-x:auto}
  body[data-shell=chart] .shell-instrument-slot>.workbench-icon{min-width:44px;min-height:44px;height:44px}
  body[data-shell=chart] .atlas-canvas-heading[data-shell-region=top]>.shell-history-slot{display:none}
  body[data-shell=chart] .workbench-rail[data-shell-region=right][data-mobile-open=true]{flex:none;width:calc(100% - 16px)}
  body[data-shell=chart] .workbench-rail[data-shell-region=right][data-mobile-open=true] [data-shell-owner=right]{width:auto;min-width:0;max-width:none}
}

/* The phone dock controller keeps secondary controls in this disclosure. */


/* Shared disclosure content retains full source text and native controls. */
body[data-shell=chart] .shell-instrument-slot[data-mobile-disclosure=true]>.shell-feature-actions{display:flex;flex:none;flex-wrap:nowrap;align-items:center;width:max-content;max-width:none;gap:2px;white-space:nowrap}
body[data-shell=chart] .shell-instrument-slot[data-mobile-disclosure=true]>.shell-feature-actions :is(.center-workspace-toolbar,.compact-toolbar-group,.compact-toolbar-tabs){height:44px;min-height:44px;max-height:none}
body[data-shell=chart] .shell-instrument-slot[data-mobile-disclosure=true] .shell-feature-actions :is(button,select,input,summary){min-height:44px;max-height:none;min-width:44px;box-sizing:border-box}
body[data-shell=chart] .shell-instrument-slot[data-mobile-disclosure=true] .shell-feature-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;max-width:44px;min-height:44px;height:44px;padding:4px;border:0;border-radius:4px;background:transparent;color:var(--text);font:20px var(--font);cursor:pointer;box-sizing:border-box}
body[data-shell=chart] .shell-instrument-slot[data-mobile-disclosure=true] .shell-feature-toggle:hover,body[data-shell=chart] .shell-instrument-slot[data-mobile-disclosure=true] .shell-feature-toggle[aria-expanded=true]{background:var(--surface-hover)}
body[data-shell=chart] .shell-feature-panel{position:absolute;top:calc(100% + 4px);right:4px;width:min(480px,calc(100% - 8px));z-index:52;display:flex;flex-direction:column;gap:8px;max-height:calc(100dvh - 64px - var(--mobile-top,0px));padding:8px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);overflow:auto;overscroll-behavior:contain;box-sizing:border-box;white-space:normal}
body[data-shell=chart] .shell-feature-panel[hidden]{display:none!important}
body[data-shell=chart] .shell-feature-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;position:sticky;top:-8px;z-index:1;min-width:0;padding:0 0 4px;background:var(--surface);font-size:12px}
body[data-shell=chart] .shell-feature-header strong{font-weight:600;overflow-wrap:anywhere;white-space:normal}
body[data-shell=chart] .shell-feature-header button{min-width:44px;min-height:44px;padding:4px 8px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font:12px var(--font);cursor:pointer}
body[data-shell=chart] :is(.shell-interval-overflow,.shell-heading-actions){display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;max-width:100%}
body[data-shell=chart] .shell-interval-select{display:flex;align-items:center;gap:8px;font:12px var(--font);color:var(--muted)}
body[data-shell=chart] .shell-feature-panel>.shell-feature-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;width:100%;box-sizing:border-box;white-space:normal}
body[data-shell=chart] .shell-feature-actions>button{min-width:44px;min-height:44px;box-sizing:border-box}
body[data-shell=chart] .shell-feature-actions>.workbench-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:auto;min-width:44px;height:44px;min-height:44px;padding:8px;border:0;border-radius:4px;box-sizing:border-box}
body[data-shell=chart] .shell-feature-panel>.shell-feature-actions>select{min-height:44px;min-width:44px;max-width:100%;flex:1 1 auto;box-sizing:border-box}
body[data-shell=chart] .shell-feature-panel>.shell-feature-actions>#equity-scenario{max-width:100%;width:auto}
body[data-shell=chart] .shell-feature-panel>.shell-feature-actions .center-workspace-toolbar{height:auto;min-width:0;width:100%;max-width:100%;flex:1 1 100%;flex-wrap:wrap;overflow:visible;white-space:normal;box-sizing:border-box}
body[data-shell=chart] .shell-feature-panel>.shell-feature-actions :is(.compact-toolbar-group,.compact-toolbar-tabs){height:auto;min-width:0;max-width:100%;flex-wrap:wrap;white-space:normal;box-sizing:border-box}
body[data-shell=chart] .shell-feature-panel>.shell-feature-actions .compact-toolbar-group{width:100%;flex:1 1 100%;padding:0;border:0}
body[data-shell=chart] .shell-feature-panel>.shell-feature-actions .center-workspace-toolbar [data-toolbar-open]{max-width:100%;min-width:44px;min-height:44px;max-height:none;white-space:normal;overflow:visible;text-overflow:clip;flex:0 1 auto;box-sizing:border-box}
body[data-shell=chart] .shell-feature-panel>.shell-feature-actions .compact-toolbar-summary{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;white-space:normal;gap:4px}
body[data-shell=chart] .shell-feature-actions :is(button,select,input),body[data-shell=chart] .shell-feature-toggle:focus-visible,body[data-shell=chart] .shell-feature-header button:focus-visible{outline-offset:-2px}
body[data-shell=chart] .shell-feature-panel[data-shell-measuring=true]{position:fixed;inset:0 auto auto 0;visibility:hidden;pointer-events:none;width:max-content;max-width:none;max-height:none}
body[data-shell=chart] .shell-feature-panel[data-shell-measuring=true] .shell-feature-actions,body[data-shell=chart] .shell-feature-panel[data-shell-measuring=true] .center-workspace-toolbar{flex:none;flex-wrap:nowrap;width:max-content;max-width:none;white-space:nowrap}

@media(max-width:620px){
  body[data-shell=chart] .shell-feature-panel{left:4px;right:4px;width:auto}
}

.atlas-page-intro,.atlas-shell-copy{min-width:0;box-sizing:border-box}
.atlas-page-intro{position:fixed;display:block;height:14px;margin:0;padding:0;border:0;background:transparent;color:var(--text);pointer-events:none;z-index:61}
.atlas-page-intro>.atlas-shell-heading{margin:0;font-size:12px;font-weight:500;line-height:14px;letter-spacing:0;white-space:nowrap;text-align:center}
.atlas-page-description{margin:0;color:var(--muted);font:12px/1.4 var(--font);white-space:normal;word-break:keep-all;overflow-wrap:break-word}
.atlas-page-intro>.atlas-page-description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-shell=chart] .atlas-page-intro[data-heading-placement=label],body[data-shell=chart] .atlas-page-intro[data-heading-placement=label]>.atlas-shell-heading{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Hosted outlook centers use one outer workbench frame. This more specific
   source rule keeps the later shell paint from rounding that evidence edge. */
body[data-shell="chart"][data-page="outlook"][data-center-tool] .workspace.native-chart-workspace>#main.native-chart-workbench{border-radius:0}
/* Compare already scrolls its controls horizontally. Its title stays beside
   that scroll owner, after the original phone return button, in the same row. */
body[data-page=compare] .atlas-canvas-heading:has(+ .atlas-page-intro[data-heading-placement=compare])>.lab-toolbar{margin-left:76px}
.atlas-shell-copy{flex:1 1 auto;display:flex;flex-direction:row;align-items:baseline;gap:10px}
.atlas-dashboard-header .atlas-page-description{flex:0 1 auto;min-width:0;color:var(--subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.atlas-shell-copy>.atlas-shell-heading{position:static;width:auto;height:auto;margin:0;line-height:18px;clip-path:none;overflow:visible}
.atlas-dashboard-header>.atlas-shell-controls,body[data-shell=dashboard] .atlas-dashboard-header>#market-header-slot.atlas-shell-controls{flex:0 1 auto;max-width:45%;min-width:0}
body[data-embedded=true] .atlas-page-intro{display:none}
@media(max-width:640px){
  .atlas-shell-copy{flex-direction:column;align-items:flex-start;gap:1px}
  .atlas-dashboard-header .atlas-page-description{display:none}
  .atlas-dashboard-header:has(.atlas-shell-controls:not(:empty)) .atlas-shell-copy>.atlas-shell-heading{position:static;width:auto;height:auto;clip-path:none;overflow:visible}
  .atlas-dashboard-header>.atlas-shell-controls,body[data-shell=dashboard] .atlas-dashboard-header>#market-header-slot.atlas-shell-controls{max-width:44px;min-width:44px}
}

/* The compare route renders inside the price chart frame: the four perimeter
   regions stay and only the center is replaced. Price-chart content yields to
   the section that owns this route; its values, sources, settings and event
   handlers are untouched, and it returns to #main when another page is shown. */
body[data-page=compare] #outlook-view>.lab-heading,
body[data-page=compare] #outlook-view>.atlas-under-chart,
body[data-page=compare] #outlook-view>.lab-details,
body[data-page=compare] #outlook-view>#atlas-model-info,
body[data-page=compare] #lab-chart-stage>.lab-chart-meta,
body[data-page=compare] #lab-chart-stage>.atlas-inspector,
body[data-page=compare] #lab-chart-stage>#atlas-event-rail,
body[data-page=compare] .atlas-plot>:not(#compare-view){display:none!important}
body[data-page=compare] .atlas-plot>#compare-view{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px 24px;background:var(--bg)}
/* The notice and chart share main's viewport height. Keep normal document flow
   for the original source footer below it, without moving the phone dock out. */
body[data-shell=chart][data-page=compare] #main[data-btc-notice=true]>#outlook-view{height:calc(100% - var(--btc-compare-notice-height,0px));min-height:0}
/* The tool rail belongs to the chart shell, not to the price view alone. */
body[data-shell=chart][data-page=compare] .workbench-tools{display:flex}
/* Compare keeps its own controls inside the chart frame, so they inherit the
   same touch floor the rest of the shell uses on narrow or coarse pointers. */
@media(max-width:760px),(pointer:coarse){
  body[data-page=compare] #compare-view :is(button,select){min-height:44px}
  body[data-page=compare] #compare-view :is(.anchor-tab,[data-mode],[data-unit],[data-scale]){min-width:44px}
}
/* Compare owns the top row: its real toolbar is moved into the shell heading,
   and the price-only controls leave the row instead of staying visible with no
   effect. Nothing is cloned, so ids, handlers and data owners are the originals. */
body[data-page=compare] .atlas-canvas-heading>:not(.lab-toolbar){display:none!important}
body[data-page=compare] .atlas-canvas-heading>.lab-toolbar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:8px;flex:1 1 auto;min-width:0;height:100%;margin:0;padding:0;background:none;border:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pinch-zoom;scrollbar-width:none}
body[data-page=compare] .atlas-canvas-heading>.lab-toolbar .lab-toolbar-group{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-width:0;flex:none}
@media(max-width:390px){
  body[data-page=compare] .atlas-canvas-heading{display:flex!important;grid-template-rows:none;grid-template-columns:none;height:calc(48px + var(--mobile-top,0px))!important;min-height:calc(48px + var(--mobile-top,0px))!important;max-height:calc(48px + var(--mobile-top,0px))!important;padding:var(--mobile-top,0px) 4px 0}
}
@media(max-width:760px),(pointer:coarse){
  body[data-page=compare] .atlas-canvas-heading>.lab-toolbar :is(button,select){min-height:44px}
}

/* The original return control shares compare's real mobile toolbar. Its former
   standalone 52px reservation must not create a second chrome row. */
@media(max-width:620px){
  body[data-shell=chart][data-page=compare] .workspace.atlas-details-layout>#main{padding-top:0}
  body[data-shell=chart][data-page=compare] .atlas-canvas-heading>.mobile-chart-home{position:static;display:flex!important;flex:none;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:12px;gap:0;border:0;border-radius:0;background:transparent;font-size:0}
}

/* Responsive perimeter: one phone dock, original secondary controls in its
   disclosure, original range/axis footer in the information sheet. */
@media(max-width:620px){
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock]{display:flex;flex:none;flex-wrap:nowrap;align-items:center;order:100;position:relative;inset:auto;z-index:53;gap:0;width:100%;height:calc(48px + var(--mobile-bottom,0px));min-height:calc(48px + var(--mobile-bottom,0px));max-height:calc(48px + var(--mobile-bottom,0px));margin:0;padding:2px 4px calc(2px + var(--mobile-bottom,0px));border-top:1px solid var(--border);border-bottom:0;overflow:visible;box-sizing:border-box;touch-action:manipulation}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock]::after{display:none}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock]>:is(.symbol-selector-trigger,.workbench-symbol){flex:1 1 80px;width:auto;min-width:80px;max-width:none;height:44px;min-height:44px;margin:0;padding:4px;box-sizing:border-box}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock]>#workbench-frequency{flex:0 0 48px;width:48px;min-width:48px;height:44px;padding:0;margin:0;border:0}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] #workbench-interval-select{display:block;width:48px;min-width:48px;max-width:48px;height:44px;min-height:44px;padding:0;font-size:16px;box-sizing:border-box}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock]>:is(.workbench-icon,.mobile-workbench-button){display:inline-flex;flex:0 0 44px;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;margin:0;padding:10px;box-sizing:border-box}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock]>.shell-instrument-slot{flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;overflow:visible}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] .shell-feature-toggle{font-size:0;border-radius:0}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] .shell-feature-toggle::after{content:'⋯';font-size:24px}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] .shell-feature-panel{position:fixed;inset:auto 0 calc(48px + var(--mobile-bottom,0px));width:100%;max-height:calc(100dvh - 64px - var(--mobile-top,0px) - var(--mobile-bottom,0px));border-radius:0;padding:8px 12px;box-shadow:none}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] .shell-feature-header{top:-8px;padding-top:0}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] .shell-feature-actions>[data-mobile-secondary]{display:flex;flex:none;align-items:center;justify-content:center;min-height:44px;min-width:44px;height:44px;margin:0;border-radius:0}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] .workspace-history-controls>button{width:44px;min-width:44px;height:44px;min-height:44px}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] .shell-feature-panel select{font-size:16px}
  body[data-shell=chart] .workspace.atlas-details-layout>#main{padding-top:0}
  body[data-shell=chart] .mobile-workbench-backdrop:not([hidden]){inset:0 0 calc(48px + var(--mobile-bottom,0px));z-index:49}
  body[data-shell=chart] .atlas-sidebar[data-mobile-open=true],body[data-shell=chart] .workbench-rail[data-shell-region=right][data-mobile-open=true]{position:fixed;inset:auto 0 calc(48px + var(--mobile-bottom,0px));width:100%;max-width:100%;height:auto;max-height:calc(100dvh - 64px - var(--mobile-top,0px) - var(--mobile-bottom,0px));margin:0;border-radius:0;padding:8px 12px;z-index:52;overflow:auto;overscroll-behavior:contain;box-shadow:none}
  body[data-shell=chart] .mobile-tray-heading{position:sticky;top:-8px;z-index:2;margin:0;background:var(--surface)}
  body[data-shell=chart] .workbench-rail[data-mobile-open=true]>.atlas-nav{order:-2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  body[data-shell=chart] .workbench-rail[data-mobile-open=true]>.mobile-tray-heading{order:-3}
  body[data-shell=chart] .workbench-rail[data-mobile-open=true]>.workbench-bottom-bar{order:-1;display:flex;width:100%;height:auto;min-height:48px;max-height:none;padding:2px 0;border-block:1px solid var(--border);--chart-bottom-height:48px}
  body[data-shell=chart] .workbench-rail .workbench-bottom-bar :is(button,select){flex-direction:row;min-width:44px;min-height:44px;height:44px;padding:4px;gap:2px;border-radius:0}
  body[data-shell=chart] .workbench-rail .workbench-bottom-bar button::after{display:none}
  body[data-shell=chart] .workbench-rail .workbench-bottom-bar button>span:last-child:not([data-icon]){display:inline}
  body[data-shell=chart] .workbench-rail .workbench-bottom-scroll{height:44px}
  body[data-shell=chart] .workbench-rail .workbench-bottom-bar select{font-size:16px}
  body[data-shell=chart] .workbench-rail .workbench-bottom-bar :is(.workbench-axis,.workbench-range-controls){height:44px;max-height:44px}
}
/* Portrait tablet panels overlay rather than reducing the plot below a useful
   research width. Landscape tablets keep the existing split-panel owner. */
@media(min-width:621px) and (max-width:959px){
  body[data-shell=chart] .workspace.atlas-details-layout[data-details-open=true]{grid-template-columns:minmax(0,1fr) 0 var(--rail-width,45px)}
  body[data-shell=chart] .workspace.atlas-details-layout>.chart-details-panel:not([hidden]){position:fixed;top:52px;right:49px;bottom:0;width:min(360px,calc(100vw - 112px));height:calc(100dvh - 52px);max-height:calc(100dvh - 52px);margin:0;z-index:48;border-left:1px solid var(--border)}
}
@media(min-width:621px) and (max-width:1100px){
  body[data-shell=chart] .workspace .chart-details-panel :is(.reader-heading,.reader-pagination) button{width:44px;min-width:44px;height:44px;min-height:44px}
}
@media(max-width:620px){
  body[data-shell=chart][data-center-tool]:not([data-chart-controls]) .atlas-canvas-heading[data-mobile-heading=phone-dock]>:not(.center-workspace-toolbar):not(.center-data-actions):not(#mobile-details-toggle):not(.symbol-selector-trigger){display:none!important}
  /* The non-chart centre keeps only its own instrument search, at a fixed slot. */
  body[data-shell=chart][data-center-tool]:not([data-chart-controls]) .atlas-canvas-heading[data-mobile-heading=phone-dock]>.symbol-selector-trigger{flex:0 0 80px;width:80px;min-width:0;max-width:80px}
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock]>.center-workspace-toolbar{flex:1 1 0;min-width:0;width:auto;max-width:100%;height:44px;min-height:44px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pinch-zoom}
}

/* Non-chart routes keep the shell's right rail and bottom bar: the page header
   is the top region (it carries the shell heading and page description), the
   sidebar stays the left region, and content-shell.js moves the service
   navigation and the source footer into the two regions it owns. */
body[data-shell=dashboard] .atlas-dashboard-header.atlas-canvas-heading{position:fixed;top:0;left:var(--app-sidebar-width);right:0;width:auto;max-width:none;height:var(--app-header-height);min-height:var(--app-header-height);padding:0 16px 0 12px;gap:8px;background:var(--bg);border-bottom:1px solid var(--border)}
body[data-shell=dashboard] .workbench-rail{position:fixed;top:var(--app-header-height);right:0;bottom:var(--content-bottom-height);width:44px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;border-left:1px solid var(--border);border-bottom:0;background:var(--bg);overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none;z-index:44}
body[data-shell=dashboard] .workbench-rail .atlas-nav{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;margin:0;overflow:visible}
body[data-shell=dashboard] .workbench-rail .atlas-nav :is(a,button){display:grid;place-items:center;width:36px;min-height:36px;height:36px;padding:8px;overflow:hidden;border:0;background:none;color:var(--muted);text-decoration:none;cursor:pointer}
body[data-shell=dashboard] .workbench-rail .atlas-nav :is(a,button):hover{background:var(--surface-hover);color:var(--text)}
body[data-shell=dashboard] .workbench-rail .atlas-nav :is(a,button).active,body[data-shell=dashboard] .workbench-rail .atlas-nav :is(a,button)[aria-current=page]{background:var(--nav-active-bg);color:var(--nav-active-text)}
body[data-shell=dashboard] .workbench-rail .atlas-nav svg{width:18px;height:18px;flex:none;opacity:1}
body[data-shell=dashboard] .workbench-rail .atlas-nav :is(a,button)>span:last-child:not([data-icon]){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;white-space:nowrap}
body[data-shell=dashboard] .workbench-bottom-bar{position:fixed;left:var(--app-sidebar-width);right:44px;bottom:0;height:var(--content-bottom-height);display:flex;align-items:center;padding:0 12px;box-sizing:border-box;border-top:1px solid var(--border);background:var(--bg);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;z-index:44}
body[data-shell=dashboard] .workbench-bottom-bar .footer{flex:1 1 auto;min-width:0;height:100%;margin:0;padding:0;border:0;display:flex;align-items:center;justify-content:flex-start;gap:12px;font-size:11px;color:var(--subtle);white-space:nowrap}
body[data-shell=dashboard] .workbench-bottom-bar .footer>span{flex:none}
body[data-shell=dashboard] .workbench-bottom-bar .footer>span:last-child{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}
body[data-shell=dashboard] .workbench-bottom-bar .footer button{flex:none;min-height:100%;min-width:44px;padding:0 4px;font-size:11px;color:var(--muted);background:none;border:0;cursor:pointer}
body[data-shell=dashboard] .workbench-bottom-bar .footer button:hover{color:var(--accent-ink)}
body[data-shell=dashboard] .workspace{padding-right:44px;padding-bottom:var(--content-bottom-height)}
@media(max-width:1000px){
  body[data-shell=dashboard]{--app-sidebar-width:68px}
  body[data-shell=dashboard] .atlas-nav .atlas-nav-label{display:none!important}
}
@media(max-width:1100px){
  body[data-shell=dashboard] .workbench-bottom-bar .footer :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}
  /* The navigation lives in the rendered sidebar until phone widths hand it to
     the rail; both hosts keep the same 44px floor up to 1100px. */
  body[data-shell=dashboard] :is(.atlas-sidebar,.content-rail) .atlas-nav :is(a,button){width:100%;min-height:44px;height:44px}
  body[data-shell=dashboard] .atlas-sidebar .atlas-brand{min-height:44px;height:44px}
  body[data-shell=dashboard] .workbench-rail .atlas-nav :is(a,button){width:44px;min-width:44px;height:44px;min-height:44px}
}
@media(max-width:620px){body[data-shell=dashboard] .workbench-rail{display:flex}body[data-shell=dashboard] .workbench-rail .atlas-nav{flex-direction:column}}
@media(max-width:640px){
  body[data-shell=dashboard]{--app-sidebar-width:0px;--app-header-height:52px}
  body[data-shell=dashboard] .atlas-sidebar{display:none}
  body[data-shell=dashboard] .atlas-dashboard-header.atlas-canvas-heading{padding-inline:8px}
}
@media(max-width:760px),(pointer:coarse){
  body[data-shell=dashboard] .workbench-rail .atlas-nav :is(a,button){width:44px;min-width:44px;min-height:44px;height:44px}
  body[data-shell=dashboard] .workbench-rail{width:52px}
  body[data-shell=dashboard] .workbench-bottom-bar{right:52px}
  body[data-shell=dashboard] .workspace{padding-right:52px}
}

:root{--content-bottom-height:44px}
/* The rail owns the navigation, so the label-width preference has no target. */
body[data-shell=dashboard] .atlas-sidebar-toggle{display:none}
/* The chart frame and the content routes never show two copies of a region. */
body[data-shell=chart] :is(.content-rail,.content-bottom-bar){display:none!important}

/* Crosshair date readouts are metadata, not axis tick labels. */
.atlas-plot svg .cross-date-tag>text{font-size:11px}

/* Lane C: Unslop pass. The Atlas is a Korean evidence desk: graphite chrome,
   tight hairlines, source-time metadata, and its own charts as the color moment.
   Keep the TradingView-sized plot and its renderer-owned geometry untouched. */
html body[data-shell="dashboard"] {
  letter-spacing: 0;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body[data-shell="dashboard"] .atlas-dashboard-header {
  background: var(--sidebar);
  border-bottom-color: var(--border);
}
body[data-shell="dashboard"] .atlas-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}
body[data-shell="dashboard"] .atlas-sidebar .atlas-brand {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 8px;
}
body[data-shell="dashboard"] .atlas-sidebar .atlas-brand > span {
  color: var(--data-gold);
}
body[data-shell="dashboard"] .atlas-sidebar .atlas-brand > div,
body[data-shell="dashboard"] .atlas-sidebar .atlas-brand > strong {
  font-weight: 500;
}
body[data-shell="dashboard"] .atlas-sidebar .atlas-brand small {
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0;
}
body[data-shell="dashboard"] .atlas-sidebar .atlas-nav {
  gap: 2px;
}
body[data-shell="dashboard"] .atlas-sidebar .atlas-nav :is(a, button) {
  min-height: 36px;
  height: 36px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
}
body[data-shell="dashboard"] .atlas-sidebar .atlas-nav :is(.active, [aria-current="page"]) {
  box-shadow: inset 2px 0 0 var(--accent-ink);
}
body[data-shell="dashboard"] .atlas-sidebar :is(a, button):focus-visible,
body[data-shell="dashboard"] .atlas-dashboard-header :is(a, button, input, select):focus-visible,
body[data-shell="dashboard"] .workbench-rail :is(a, button):focus-visible,
body[data-shell="dashboard"] .workbench-bottom-bar :is(a, button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
body[data-shell="dashboard"] .atlas-dashboard-header .atlas-shell-heading {
  font-size: 13px;
  font-weight: 500;
}
body[data-shell="dashboard"] .atlas-dashboard-header .atlas-page-description {
  color: var(--muted);
  font-size: 12px;
}
body[data-shell="dashboard"] .workbench-bottom-bar {
  border-top-color: var(--border);
}
body[data-shell="dashboard"] .workbench-bottom-bar .footer {
  font-size: 11px;
  letter-spacing: 0;
}
body[data-shell="dashboard"] :is(.atlas-page, #evidence-view, #compare-view, #ipo-view, #relay-view) {
  color: var(--text);
  letter-spacing: 0;
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(input, select, button):focus-visible,
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(h1, h2, h3) {
  font-weight: 500;
  letter-spacing: 0;
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(p, li, .lab-eyebrow, .ipo-source-notes) {
  line-height: 1.55;
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(.evidence-table-shell, .ipo-table-shell, .table-scroll, .lab-table-scroll) {
  border-color: var(--border);
  border-radius: 0;
  box-shadow: none;
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(table th, table td) {
  border-color: var(--border-soft);
  font-variant-numeric: tabular-nums;
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(table th, caption) {
  color: var(--muted);
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(.evidence-controls, .ipo-toolbar, .lab-toolbar) {
  gap: 8px;
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(button, select, input:not([type="range"])) {
  border-radius: 3px;
  letter-spacing: 0;
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(.lab-details, .timing-details, .ipo-source-disclosure) {
  border-color: var(--border);
  border-radius: 0;
  box-shadow: none;
}
body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(.lab-details, .timing-details, .ipo-source-disclosure) > summary {
  font-weight: 400;
}
body[data-shell="dashboard"] .research-reader,
body[data-shell="dashboard"] .forecast-journal-dialog,
body[data-shell="dashboard"] .compact-toolbar-dialog,
body[data-shell="dashboard"] .workspace-dialog {
  border-color: var(--border-strong);
  border-radius: 4px;
  box-shadow: 0 8px 24px var(--shadow-color);
}
body[data-shell="dashboard"] :is(.research-reader, .forecast-journal-dialog, .compact-toolbar-dialog, .workspace-dialog) :is(h1, h2, h3) {
  font-weight: 500;
  letter-spacing: 0;
}
body[data-shell="dashboard"] :is(.research-reader, .forecast-journal-dialog, .compact-toolbar-dialog, .workspace-dialog) :is(button, input, select, textarea) {
  border-radius: 3px;
}
body[data-shell="dashboard"] :is(.research-reader, .forecast-journal-dialog, .compact-toolbar-dialog, .workspace-dialog) :is(button, input, select, textarea, a, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
body[data-shell="dashboard"] .atlas-page :is(.lab-panel, .lab-details, .timing-details, .research-chart-shell) {
  box-shadow: none;
}
body[data-shell="dashboard"] .atlas-page :is(.lab-heading, .lab-section-head, .lab-chart-meta) {
  border-color: var(--border);
}
body[data-shell="dashboard"] .atlas-page .lab-chart-meta :is(span, small) {
  font-size: 12px;
}
body[data-shell="dashboard"] .atlas-page :is(.lab-note, .lab-table-foot, .research-note, .table-footnote) {
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 760px), (pointer: coarse) {
  body[data-shell="dashboard"] .atlas-sidebar .atlas-nav :is(a, button) {
    min-height: 44px;
    height: 44px;
  }
  body[data-shell="dashboard"] :is(#evidence-view, #compare-view, #ipo-view) :is(button, select, input:not([type="range"]), summary) {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-shell="dashboard"] :is(.atlas-sidebar, .atlas-dashboard-header, .workbench-rail, .workbench-bottom-bar) * {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

/* Page-specific detail: keep source identity and time legible without adding
   new badges, panels or decorative layers. */
body[data-shell="dashboard"] #evidence-view .evidence-table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
body[data-shell="dashboard"] #evidence-view .evidence-table caption {
  min-height: 36px;
  font-size: 12px;
  line-height: 1.5;
}
body[data-shell="dashboard"] #evidence-view .evidence-table :is(th, td) {
  line-height: 1.45;
}
body[data-shell="dashboard"] #evidence-view .evidence-table tbody tr:hover td {
  background: var(--surface-hover);
}
body[data-shell="dashboard"] #ipo-view .ipo-table caption,
body[data-shell="dashboard"] #ipo-view .ipo-source,
body[data-shell="dashboard"] #ipo-view .ipo-calendar-message {
  font-size: 12px;
  line-height: 1.5;
}
body[data-shell="dashboard"] #ipo-view .ipo-table :is(th, td) {
  line-height: 1.45;
}
body[data-shell="dashboard"] #ipo-view .ipo-month-page,
body[data-shell="dashboard"] #ipo-view .ipo-month-day {
  border-radius: 2px;
  box-shadow: none;
}
body[data-shell="dashboard"] #ipo-view .ipo-source-panel,
body[data-shell="dashboard"] #ipo-view .ipo-day-dialog {
  border-color: var(--border-strong);
  border-radius: 4px;
  box-shadow: none;
}
body[data-shell="dashboard"] .relay-room {
  --relay-surface: var(--bg);
  --relay-sidebar: var(--sidebar);
  --relay-panel: var(--surface);
  --relay-panel-2: var(--surface-raised);
  --relay-rule: var(--border);
  --relay-rule-soft: var(--border-soft);
  --relay-ink: var(--text);
  --relay-ink-2: var(--muted);
  --relay-ink-3: var(--subtle);
  --relay-mark: var(--accent-ink);
  --relay-accent: var(--accent-ink);
  font-size: 13px;
  line-height: 1.55;
}
body[data-shell="dashboard"] .relay-room :is(.relay-rooms-head, .relay-detail-head, .relay-reader-head) {
  border-color: var(--border);
}
body[data-shell="dashboard"] .relay-room :is(.relay-room-name, .relay-peer > h2, .relay-reader-head h2) {
  font-weight: 500;
  letter-spacing: 0;
}
body[data-shell="dashboard"] .relay-room :is(.relay-room-sub, .relay-room-short, .relay-rooms-foot, .relay-reader-meta, .relay-msg-foot) {
  font-size: 11px;
}
body[data-shell="dashboard"] .relay-room :is(.relay-bubble, .relay-preview, .relay-topic-evidence, .relay-paper) {
  border-radius: 3px;
  box-shadow: none;
}
body[data-shell="dashboard"] .relay-room :is(.relay-msg-text, .relay-msg-quote, .relay-reply-text, .relay-reader-body) {
  line-height: 1.6;
  overflow-wrap: break-word;
}
body[data-shell="dashboard"] .relay-room :is(input, select, button):focus-visible,
body[data-shell="dashboard"] .relay-room summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
body[data-shell="dashboard"] .research-reader {
  border-radius: 4px;
}
body[data-shell="dashboard"] .research-reader-nav {
  min-height: 52px;
  height: 52px;
  padding-inline: 24px;
  font-size: 12px;
  font-weight: 400;
}
body[data-shell="dashboard"] .research-reader-actions button {
  min-height: 36px;
  border-radius: 3px;
  font-size: 12px;
}
body[data-shell="dashboard"] .research-article {
  max-width: 760px;
  padding: 40px 32px 56px;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}
body[data-shell="dashboard"] .research-article #research-reader-title {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 500;
}
body[data-shell="dashboard"] .research-article :is(h2, h3) {
  letter-spacing: 0;
  font-weight: 500;
}
body[data-shell="dashboard"] .research-article :is(.research-meta, .research-kicker, .research-article-footer) {
  font-size: 12px;
}
body[data-shell="dashboard"] .research-article :is(.research-tags span, .research-verdict) {
  border-radius: 2px;
  font-weight: 500;
}
body[data-shell="dashboard"] .research-article :is(.research-provenance, .research-related, .research-source-text) {
  border-radius: 3px;
}
@media (max-width: 640px) {
  body[data-shell="dashboard"] .research-reader-nav {
    height: 52px;
    min-height: 52px;
    padding-inline: 12px;
  }
  body[data-shell="dashboard"] .research-article {
    padding: 28px 20px 44px;
    font-size: 16px;
  }
  body[data-shell="dashboard"] .research-article #research-reader-title {
    font-size: 28px;
  }
  body[data-shell="dashboard"] .relay-room {
    font-size: 12px;
  }
}

.atlas-chat{display:flex;flex-direction:column;box-sizing:border-box;background:var(--surface);color:var(--text);border-left:1px solid var(--border)}
.workspace.atlas-details-layout>.atlas-chat{position:relative;grid-column:2;grid-row:1;z-index:40;min-width:0;min-height:0}
.atlas-chat[hidden]{display:none!important}
.atlas-chat-head{display:flex;align-items:center;gap:8px;height:44px;padding:0 8px 0 16px;flex:none;border-bottom:1px solid var(--border)}
.atlas-chat-head h2{margin:0;font-size:15px;font-weight:600;line-height:1.3}
.atlas-chat-presence{display:inline-flex;align-items:center;gap:8px;margin-right:auto;color:var(--muted);font-size:12px}
.atlas-chat-dot{width:8px;height:8px;border-radius:50%;background:var(--focus);flex:none}
.atlas-chat-head button{min-width:44px;height:32px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;cursor:pointer}
.atlas-chat-head button:hover{background:var(--surface-hover);color:var(--text)}
.atlas-chat-head button:focus-visible,.atlas-chat-form button:focus-visible,.atlas-chat-form input:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.atlas-chat-log{flex:1 1 auto;min-height:0;overflow:auto;padding:8px}
.atlas-chat-empty{margin:8px;color:var(--muted);font-size:12px;line-height:1.5}
.atlas-chat-line{display:flex;gap:8px;margin:0 0 8px}
.atlas-chat-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--surface-raised);color:var(--text);font-size:12px;flex:none}
.atlas-chat-who{display:block;margin-bottom:4px;color:var(--muted);font-size:11px}
.atlas-chat-bubble{margin:0;padding:8px 12px;border-radius:4px 14px 14px;background:var(--surface-raised);color:var(--text);font-size:13px;line-height:1.5}
.atlas-chat-form{display:flex;gap:8px;padding:8px;flex:none;border-top:1px solid var(--border)}
.atlas-chat-form input{flex:1;min-width:0;height:36px;padding:0 8px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font:inherit}
.atlas-chat-form button{height:36px;padding:0 12px;border:0;border-radius:8px;background:var(--text);color:var(--bg);font:inherit;cursor:pointer}
@media(max-width:900px){
  .workspace.atlas-details-layout>.atlas-chat{position:absolute;grid-column:1;inset:0 var(--rail-width) 0 auto;width:min(340px,calc(100% - var(--rail-width)));height:100%;box-shadow:-10px 0 28px var(--atlas-shadow-2)}
  .atlas-chat-form input,.atlas-chat-form button,.atlas-chat-head button{min-height:44px;height:44px}
}
@media(max-width:620px){
  .workspace.atlas-details-layout>.atlas-chat{position:fixed;inset:calc(54px + var(--mobile-top,0px) + var(--btc-refresh-height,0px)) 6px calc(6px + var(--mobile-bottom,0px));width:auto;height:auto;z-index:55;border:1px solid var(--border);border-radius:10px;box-shadow:none}
}
