/* Generated by scripts/build-site-styles.mjs. Edit the source stylesheets; preserve their order. */
/* Source: compact-toolbar.css; SHA-256: 435c9db609116178f48ebbf5ccea7c9917e2f32d8cce92e321266a36c803da48 */
/* Shared outer toolbar. Its content belongs to the active view, with native
   controls and dialogs keeping their original calculation/event owners. */
.center-workspace-toolbar{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;height:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;white-space:nowrap;touch-action:pan-x pinch-zoom}
.center-workspace-toolbar[hidden]{display:none!important}
.center-workspace-toolbar.compact-toolbar-inline{height:44px;min-height:44px;max-height:44px;flex:0 0 44px}
body[data-center-tool] .atlas-canvas-heading{gap:4px;overflow:hidden}
body[data-center-tool] .atlas-canvas-heading::after{display:none}
body[data-center-tool] .atlas-center-frame:focus,body[data-center-tool] .atlas-center-frame:focus-visible,body[data-center-tool] .atlas-center-frame[data-center-focus]{outline:2px solid var(--focus);outline-offset:-2px}
body[data-center-tool]:not([data-chart-controls]) .atlas-canvas-heading>:not(.center-workspace-toolbar):not(.symbol-selector-trigger):not(.mobile-workbench-button){display:none!important}
body[data-center-tool]:not([data-chart-controls]) #mobile-tools-toggle{display:none}
body[data-center-tool] .atlas-canvas-heading>.symbol-selector-trigger{flex:none}
body[data-chart-controls] .atlas-canvas-heading{overflow-x:auto}
body[data-chart-controls] .center-workspace-toolbar{flex:0 0 auto;overflow:visible}
.compact-toolbar-group{display:inline-flex;align-items:center;gap:4px;flex:none;min-width:0;height:100%;padding:0 4px;border-right:1px solid var(--border-soft);white-space:nowrap}
.compact-toolbar-group:last-child{border-right:0}
.compact-toolbar-group:empty{display:none}
.compact-toolbar-field{display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--muted);font:11px var(--font);white-space:nowrap}
.compact-toolbar-summary{display:inline-flex;align-items:baseline;gap:8px;flex:none;font:12px var(--font);font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap}
.compact-toolbar-summary strong,.compact-toolbar-summary b{font-weight:600}
.compact-toolbar-summary.ml-index{padding:0;margin:0;border:0;background:transparent}
.compact-toolbar-summary.ml-index strong{font-size:12px;line-height:1.4;letter-spacing:normal}
.compact-toolbar-summary.ml-index>span{margin:0;display:inline;font-size:11px}
.compact-toolbar-muted{font-size:11px;color:var(--muted)}
.compact-toolbar-action,.compact-toolbar-tabs>button,.center-workspace-toolbar button,.center-workspace-toolbar select,.center-workspace-toolbar input{box-sizing:border-box;min-height:32px;max-height:36px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font:12px var(--font);line-height:1.4;padding:4px 8px;flex:none}
.center-workspace-toolbar input[type=search]{width:160px;min-width:112px}
.center-workspace-toolbar input[type=date],.center-workspace-toolbar input[type=month]{width:128px}
.center-workspace-toolbar button,.compact-toolbar-action,.compact-toolbar-tabs>button{cursor:pointer;background:transparent;border-color:transparent;white-space:nowrap}
.center-workspace-toolbar button:hover:not(:disabled),.compact-toolbar-action:hover:not(:disabled),.compact-toolbar-tabs>button:hover:not(:disabled){background:var(--surface-hover);border-color:var(--border)}
.center-workspace-toolbar :is(button,select,input):focus-visible,.compact-toolbar-dialog :is(button,select,input,textarea,summary,a):focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.center-workspace-toolbar :disabled{opacity:1;background:var(--surface);color:var(--subtle);cursor:not-allowed}
.center-workspace-toolbar :is([aria-pressed=true],[aria-selected=true]),.compact-toolbar-tabs>[aria-selected=true],.compact-toolbar-tabs>[aria-pressed=true]{background:var(--surface-raised);border-color:var(--border);color:var(--text)}
.compact-toolbar-tabs{display:inline-flex;align-items:center;gap:4px;flex:none;white-space:nowrap}
.center-workspace-toolbar .workspace-view-tabs{overflow:visible;gap:4px}
.center-workspace-toolbar .workspace-view-tabs button{gap:4px;min-height:32px;padding:4px 8px}
.center-workspace-toolbar .workspace-region-code{font-size:11px;color:var(--muted)}
.center-workspace-toolbar .workspace-toolbar-title,.center-workspace-toolbar .workspace-current-instrument{display:none}
.center-workspace-toolbar .workspace-toolbar{display:contents}
.center-workspace-toolbar svg{flex:none;width:16px;height:16px;max-height:16px;stroke:currentColor}
.center-workspace-toolbar .gain,.compact-toolbar-dialog .gain{color:var(--green)}
.center-workspace-toolbar .loss,.compact-toolbar-dialog .loss{color:var(--red)}
.center-workspace-toolbar :is(.positive,.housing-state.above,.theme-state.pass),.compact-toolbar-dialog :is(.positive,.housing-state.above,.theme-state.pass,[data-direction=UP]){color:var(--green)}
.center-workspace-toolbar :is(.negative,.housing-state.below,.theme-state.fail),.compact-toolbar-dialog :is(.negative,.housing-state.below,.theme-state.fail,[data-direction=DOWN]){color:var(--red)}
.compact-toolbar-dialog :is(.housing-state.neutral,.housing-state.warmup,.theme-state.hold,[data-direction=pending]){color:var(--muted)}
.center-workspace-toolbar .center-data-actions{margin-left:auto;padding-left:8px}
.center-workspace-toolbar .center-data-title{display:none}
.compact-toolbar-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(640px,calc(100% - 24px));max-width:calc(100% - 24px);height:auto;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font:13px/1.6 var(--font);overflow:hidden;box-shadow:none}
.compact-toolbar-dialog::backdrop{background:var(--styles-surface-4)}
.compact-toolbar-dialog[open]{display:flex;flex-direction:column}
.compact-toolbar-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:8px 16px;border-bottom:1px solid var(--border);background:var(--surface);min-height:48px}
.compact-toolbar-dialog-header h2,.compact-toolbar-dialog-header h3{margin:0;font-size:15px;line-height:1.5;font-weight:600}
.compact-toolbar-dialog-header button{flex:none;min-height:44px;min-width:44px;padding:8px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);font:12px var(--font);cursor:pointer}
.compact-toolbar-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px}
.compact-toolbar-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.compact-toolbar-fields label,.compact-toolbar-dialog-body>.compact-toolbar-field{display:flex;flex-direction:column;align-items:stretch;gap:4px;font-size:12px;color:var(--muted);white-space:normal}
.compact-toolbar-dialog :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0;min-height:36px;padding:8px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font:13px var(--font)}
.compact-toolbar-dialog :is(p,dl){margin:0 0 12px}
.compact-toolbar-dialog :is(h3,h4){font-size:13px;margin:12px 0 8px}
.compact-toolbar-dialog table{width:100%;border-collapse:collapse;font-size:12px}
.compact-toolbar-dialog :is(th,td){padding:8px;border-bottom:1px solid var(--border);text-align:left}
.compact-toolbar-dialog .compact-toolbar-summary{display:flex;flex-wrap:wrap;white-space:normal;align-items:baseline}
.compact-toolbar-dialog .compact-toolbar-group{height:auto;flex-wrap:wrap;padding:0;border:0}
.compact-toolbar-dialog .compact-toolbar-action{min-height:36px;border-color:var(--border)}
.compact-toolbar-dialog .ml-direction-panel{padding:0 0 12px;margin:0 0 12px;border-bottom:1px solid var(--border)}
.compact-toolbar-dialog :is(.ml-direction-main,.ml-direction-main>div,.ml-direction-formula,.ml-collection-line){display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.compact-toolbar-dialog .ml-direction-main{justify-content:space-between;margin-bottom:12px}
.compact-toolbar-dialog .ml-direction-value{font-size:20px;font-weight:600}
.compact-toolbar-dialog :is(.ml-direction-kind,.ml-collection-line){font-size:11px;color:var(--muted)}
.compact-toolbar-dialog .ml-collection-line button{min-height:36px;padding:4px 8px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);font:12px var(--font);cursor:pointer}
.compact-toolbar-dialog .ml-score-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.compact-toolbar-dialog .ml-score{padding:12px;min-height:0}
.compact-toolbar-dialog .ml-axis-value{font-size:24px;line-height:1.4}
@media(max-width:620px),(pointer:coarse){
  .center-workspace-toolbar{gap:4px}
  .center-workspace-toolbar.compact-toolbar-inline{height:48px;min-height:48px;max-height:48px;flex-basis:48px}
  .compact-toolbar-group{gap:4px;padding-inline:0}
  .center-workspace-toolbar :is(button,select,input),.compact-toolbar-action,.compact-toolbar-tabs>button,.center-workspace-toolbar .workspace-view-tabs button{min-height:44px;max-height:44px;min-width:44px}
  .center-workspace-toolbar input[type=search]{width:144px}
  .center-workspace-toolbar select{max-width:128px}
  .center-workspace-toolbar [data-toolbar-open]{max-width:160px;overflow:hidden;text-overflow:ellipsis}
  /* Observed values and units keep their full width in the scrollable header. */
  .center-workspace-toolbar [data-toolbar-open$="-observation"]{max-width:none}
  .center-workspace-toolbar .compact-toolbar-summary{gap:4px}
  .compact-toolbar-dialog{width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px)}
  .compact-toolbar-dialog-header{padding:4px 12px}
  .compact-toolbar-dialog-body{padding:12px}
  .compact-toolbar-dialog :is(input,select,textarea,.compact-toolbar-action){min-height:44px}
  .compact-toolbar-dialog .ml-collection-line button{min-height:44px}
}
@media(max-width:380px){.compact-toolbar-fields,.compact-toolbar-dialog .ml-score-row{grid-template-columns:1fr}}


/* Source: ui/rsi-simulation.css; SHA-256: 44dee9b40ee74d13c879e2934db4a0ed4732884d57c0c1e7e8d3f9b6a86dab11 */
/* WP6 shares the chart's existing surface, type and financial color roles. */
.rsi-simulation-hud{flex:none;min-width:0;padding:7px 12px 6px;border-bottom:1px solid var(--border);background:var(--bg);font:12px var(--font-system,var(--font));font-variant-numeric:tabular-nums;color:var(--text)}
.rsi-simulation-hud>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin-bottom:5px}
.rsi-simulation-name{white-space:nowrap;color:var(--muted)}
.rsi-simulation-hud small{font-size:11px;color:var(--muted);font-weight:400}
.rsi-simulation-hud .rsi-win-badge{min-height:28px;padding:4px 9px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);white-space:nowrap;font:600 12px var(--font-system,var(--font));font-variant-numeric:tabular-nums;cursor:pointer}
.rsi-win-badge:hover{background:var(--surface-hover)}
.rsi-position-grid{display:grid;grid-template-columns:repeat(5,minmax(70px,1fr)) minmax(215px,1.6fr);gap:3px 14px;margin:0}
.rsi-position-grid>div{min-width:0}.rsi-position-grid dt{font-size:11px;color:var(--muted);line-height:1.5}.rsi-position-grid dd{margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.rsi-next-trigger dd span{display:block}
.rsi-simulation-hud>footer{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5}
.rsi-simulation-hud>footer button{margin-left:auto;min-height:24px;padding:0 5px;font-size:11px;color:var(--muted);border:0;background:transparent;cursor:pointer}
.rsi-detail-dialog{width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;color:var(--text);background:var(--bg);border:1px solid var(--border);font-family:var(--font-system,var(--font))}
.rsi-detail-dialog[open]{display:flex;flex-direction:column}.rsi-detail-dialog>.compact-toolbar-dialog-header{flex:none;position:sticky;top:0;z-index:2;background:var(--surface)}
.rsi-detail-body{min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain;font-size:12px;line-height:1.65}
.rsi-detail-body .rsi-history-page{padding:12px 0;overflow:visible}.rsi-detail-body .compact-toolbar-inline{min-height:36px;position:sticky;top:-16px;z-index:1;display:flex;background:var(--bg)}
.rsi-simulation-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin:0 0 20px;font-variant-numeric:tabular-nums}.rsi-simulation-metrics>div{border-bottom:1px solid var(--border);padding:0 0 10px;min-width:0}.rsi-simulation-metrics dt{color:var(--muted);font-size:11px}.rsi-simulation-metrics dd{margin:4px 0 0;font-size:16px;overflow-wrap:anywhere}.rsi-simulation-metrics small{font-size:12px;color:var(--muted)}
.rsi-simulation-details p{color:var(--muted);line-height:1.75}.rsi-simulation-details h3,.rsi-simulation-settings h3{font-size:13px;margin:16px 0 8px}.rsi-simulation-details summary,.rsi-split-summary>summary{cursor:pointer;min-height:32px;display:flex;align-items:center;color:var(--text)}
.rsi-simulation-table{max-width:100%;overflow:auto}.rsi-simulation-table table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px;text-align:right;font-variant-numeric:tabular-nums}.rsi-simulation-table :is(th,td){padding:7px 8px;border-bottom:1px solid var(--border)}.rsi-simulation-table th{color:var(--muted);position:sticky;top:0;background:var(--surface)}
.rsi-csv-download{display:inline-flex;align-items:center;min-height:36px;padding:4px 10px;margin-top:12px;border:1px solid var(--border);color:var(--text);text-decoration:none;border-radius:4px}
.rsi-simulation-settings{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--border)}.rsi-simulation-settings>label{display:flex;flex-direction:column;gap:4px;margin:8px 0;color:var(--muted)}.rsi-simulation-settings input{width:100%;min-width:0;min-height:32px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:3px;padding:4px 8px;font:13px var(--font)}
.rsi-simulation-settings button{border:1px solid var(--border);margin:4px 8px 0 0}.rsi-simulation-note{font-size:11px;color:var(--muted)}.rsi-simulation-error{margin:4px 0;color:var(--red)}
.rsi-simulation-hud :is(button,a):focus-visible,.rsi-detail-dialog :is(button,input,select,a,summary):focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
@media(max-width:1000px){.rsi-position-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 12px}.rsi-simulation-hud>footer{gap:3px 10px}}
@media(max-width:640px){.rsi-simulation-hud{padding:5px 8px}.rsi-simulation-name{font-size:11px}.rsi-simulation-name small{display:none}.rsi-simulation-hud .rsi-win-badge{min-height:44px;padding:4px 7px;font-size:11px}.rsi-position-grid{gap:3px 8px}.rsi-position-grid dt{font-size:11px}.rsi-position-grid dd{font-size:11px}.rsi-next-trigger{grid-column:1/-1;display:flex;gap:6px;align-items:baseline}.rsi-next-trigger dd span{display:inline}.rsi-next-trigger dd span+span:before{content:' / '}.rsi-simulation-hud>footer{font-size:11px;line-height:1.4;gap:1px 6px}.rsi-simulation-hud>footer button{min-height:44px}.rsi-detail-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.rsi-detail-dialog>.compact-toolbar-dialog-header{min-height:48px}.rsi-detail-dialog>.compact-toolbar-dialog-header button{min-width:44px;min-height:44px}.rsi-detail-body{padding:12px}.rsi-simulation-metrics{gap:10px 12px}.rsi-simulation-metrics dd{font-size:13px}.rsi-simulation-settings input{font-size:16px;min-height:44px}.rsi-simulation-settings button,.rsi-csv-download{min-height:44px}}
@media(max-width:340px){.rsi-position-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rsi-simulation-hud>header{gap:4px}.rsi-simulation-hud .rsi-win-badge{font-size:11px;padding:4px 5px}.rsi-simulation-hud>footer [data-rsi-ongoing]{display:block}}

/* R4: one disclosure in the actual price pane; all controls retain 44px hits.
   The seven 22px rows, 18px clock, 16px padding and 2px border total 190px. */
.rsi-workbench .rsi-trading-criteria{position:absolute;z-index:7;box-sizing:border-box;display:block;min-width:44px;min-height:44px;margin:0;padding:8px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);font:11px/22px var(--font-system,var(--font));font-variant-numeric:tabular-nums;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;touch-action:manipulation}
.rsi-workbench .rsi-trading-criteria:hover{background:var(--surface-hover)}
.rsi-workbench .rsi-trading-criteria:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.rsi-criteria-row{display:grid;grid-template-columns:58px minmax(0,1fr);column-gap:6px;align-items:center;height:22px;line-height:22px}
.rsi-criteria-row>span{color:var(--muted)}.rsi-criteria-row>strong{font:500 11px/22px var(--font-system,var(--font));text-align:right}
.rsi-criteria-row[data-criteria-field=criteria]{font-weight:600}.rsi-criteria-row[data-criteria-field=criteria]>strong{font-size:11px}
.rsi-trading-criteria[data-criteria-state=met] [data-criteria-field=current]>strong{color:var(--green)}
.rsi-trading-criteria[data-criteria-state=waiting] [data-criteria-field=current]>strong{color:var(--muted)}
.rsi-criteria-clock{display:flex;justify-content:space-between;height:18px;line-height:18px;font-size:11px;color:var(--muted)}
.rsi-trading-criteria[data-criteria-collapsed=true]{padding:0 7px;font-size:12px;line-height:42px}
.rsi-criteria-chip{display:flex;align-items:center;justify-content:center;gap:6px;height:100%;line-height:normal}
.rsi-criteria-chip small{font-size:11px;color:var(--muted)}
.rsi-criteria-details>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin:0 0 14px;font-variant-numeric:tabular-nums}
.rsi-criteria-details>dl>div{min-width:0;padding-bottom:7px;border-bottom:1px solid var(--border)}.rsi-criteria-details dt{color:var(--muted);font-size:11px}.rsi-criteria-details dd{margin:3px 0 0;font-size:13px;overflow-wrap:anywhere}
.rsi-criteria-details>p,.rsi-criteria-details details p{color:var(--muted);line-height:1.7}
.rsi-detail-dialog .rsi-criteria-details summary,.rsi-detail-dialog .rsi-split-summary>summary,.rsi-detail-dialog .rsi-simulation-hud button{min-height:44px}
@media(max-width:430px){.rsi-criteria-details>dl{grid-template-columns:1fr;gap:8px}.rsi-criteria-details>dl>div{display:grid;grid-template-columns:74px minmax(0,1fr);gap:6px}.rsi-criteria-details dd{margin:0}}


/* Source: legacy-workspace-toolbar.css; SHA-256: a48dca7a58d39272639b7088b6ddc9ec3894a0320b73d341bd35081906e9560a */
/* One shell-owned row; original controls stay with their legacy event owners. */

.legacy-workspace-toolbar { display:flex; align-items:center; gap:4px; flex:1 0 auto; min-width:0; height:100%; white-space:nowrap; color:var(--text); font:12px/1.4 var(--font); }
.legacy-toolbar-group { flex:none; gap:4px; }
.legacy-toolbar-title { flex:none; color:var(--text); font-weight:600; padding-inline:4px; }
.legacy-toolbar-field { position:relative; display:flex; align-items:center; flex:none; min-width:0; margin:0; }
.legacy-toolbar-field-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.legacy-toolbar-field :is(input,select) { box-sizing:border-box; width:112px; max-width:100%; min-width:0; min-height:32px; height:32px; padding:4px 8px; border:1px solid var(--border-strong); border-radius:4px; background:var(--bg); color:var(--text); font:12px/1.4 var(--font); }
.legacy-toolbar-field input::placeholder { color:var(--muted); opacity:1; }
.legacy-toolbar-search input { width:160px; }
.legacy-toolbar-action { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:4px; min-width:32px; min-height:32px; height:32px; padding:4px 8px; border:1px solid transparent; border-radius:4px; color:var(--muted); background:transparent; font:12px/1.4 var(--font); white-space:nowrap; cursor:pointer; }
.legacy-toolbar-action:hover:not(:disabled) { color:var(--text); background:var(--surface-hover); }
.legacy-toolbar-action[aria-pressed=true] { color:var(--accent-ink); background:var(--accent-soft); }
.legacy-toolbar-action:disabled { cursor:not-allowed; opacity:.45; }
.legacy-toolbar-action svg { width:17px; height:17px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.legacy-toolbar-icon-action { width:32px; padding:4px; }
.legacy-toolbar-icon-action > span:not(.daily-help-icon) { display:none; }
.legacy-toolbar-icon-action .daily-help-icon { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; border:1px solid currentColor; border-radius:50%; font:600 11px/1 var(--font); }
.legacy-toolbar-actions { margin-left:auto; }
.legacy-toolbar-summary { display:inline-block; flex:none; max-width:180px; min-width:0; padding-inline:4px; overflow:hidden; text-overflow:ellipsis; color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.legacy-toolbar-month { min-width:96px; text-align:center; color:var(--text); font-size:12px; }
.legacy-toolbar-state { color:var(--accent-ink); }
.legacy-workspace-toolbar :is(button,input,select):focus-visible,
.legacy-toolbar-dialog :is(button,input,select,a):focus-visible { outline:2px solid var(--focus,var(--accent)); outline-offset:-2px; }
.legacy-toolbar-dialog { box-sizing:border-box; width:min(440px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:0; border:1px solid var(--border-strong); border-radius:8px; background:var(--surface); color:var(--text); overflow:hidden; }
.legacy-toolbar-dialog[open] { display:flex; flex-direction:column; }
.legacy-toolbar-dialog::backdrop { background:var(--legacy-toolbar-backdrop); }
.legacy-toolbar-dialog-heading { display:flex; flex:none; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border); background:var(--surface); }
.legacy-toolbar-dialog-heading h2 { margin:0; font:600 15px/1.5 var(--font); }
.legacy-toolbar-dialog-heading > button { min-width:44px; min-height:36px; padding:4px 8px; color:var(--text); font:12px/1.4 var(--font); border-radius:4px; }
.legacy-toolbar-dialog-heading > button:hover { background:var(--surface-hover); }
.legacy-toolbar-dialog-body { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; gap:12px; padding:16px; overflow:auto; overscroll-behavior:contain; }
.legacy-toolbar-dialog-body > * { flex-shrink:0; }
.legacy-toolbar-detail-field { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:12px; }
.legacy-toolbar-detail-field .legacy-toolbar-field-label { position:static; width:auto; height:auto; clip-path:none; white-space:normal; font:12px/1.5 var(--font); color:var(--muted); }
.legacy-toolbar-detail-field select { width:100%; }
.legacy-toolbar-dialog-body > .legacy-toolbar-action { align-self:flex-start; border-color:var(--border-strong); }
.legacy-toolbar-dialog-body > .legacy-toolbar-summary { max-width:none; padding:0; white-space:normal; }
.legacy-toolbar-source { color:var(--muted); font:var(--copy-size,14px)/var(--copy-leading,1.8) var(--font); overflow-wrap:anywhere; }
.legacy-toolbar-source p { margin:12px 0 0; }
.legacy-toolbar-source a { color:var(--accent-ink); text-decoration:underline; text-underline-offset:3px; }
/* Hiding takes effect only after every replacement is mounted and synchronized. */
body[data-center-toolbar-hosted=true] #data-view > :is(.daily-heading,.asset-filters,.asset-table-summary,.asset-context,.asset-mobile-nav),
body[data-center-toolbar-hosted=true] #ipo-view > :is(.ipo-heading,.ipo-calendar-nav,.ipo-calendar-message),
body[data-center-toolbar-hosted=true] #evidence-view > :is(.evidence-mobile-heading,.evidence-controls,.evidence-pagination) { display:none!important; }
body[data-center-toolbar-hosted=true][data-embedded=true] #main { padding:0; }
body[data-center-toolbar-hosted=true] #ipo-view,
body[data-center-toolbar-hosted=true] #evidence-view { padding:0; gap:0; }
body[data-center-toolbar-hosted=true] #evidence-view { grid-template-rows:minmax(0,1fr); }
body[data-center-toolbar-hosted=true] #evidence-view .evidence-table-shell,
body[data-center-toolbar-hosted=true] #ipo-view .ipo-table-shell { position:relative; border-radius:0; }
body[data-center-toolbar-hosted=true] :is(.evidence-table,.ipo-table) > caption { position:absolute; width:1px; height:1px; padding:0; margin:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:760px) {
  body[data-embedded=true][data-center-toolbar-hosted=true] #data-view > .asset-mobile-nav {
    display:flex !important;
    align-items:center;
    min-height:44px;
  }
  body[data-embedded=true] #data-view .asset-mobile-nav button { min-height:44px; font-size:12px; }
  body[data-embedded=true] #data-view .asset-mobile-nav > span { font-size:12px; }
}
@media(max-width:760px),(pointer:coarse) {
  .legacy-toolbar-action,.legacy-toolbar-field :is(input,select) { min-height:44px; height:44px; }
  .legacy-toolbar-icon-action { width:44px; min-width:44px; }
  .legacy-toolbar-title { display:none; }
  .legacy-toolbar-search input { width:136px; }
  .legacy-toolbar-dialog-heading > button { min-height:44px; }
  .legacy-toolbar-dialog-heading { padding:8px 12px; }
  .legacy-toolbar-dialog-body { padding:12px; }
}


/* Source: vendor/skullet/styles.css; SHA-256: e534dbfda1efba19fba2b5f2895d895f191b3857e8be3c1cde1e9d9e82022f4e */
/* Atlas's neutral-block adapter for Skullet 0.0.3 (MIT).
   Original CSS and license: tools/skullet/upstream; exact digests: provenance.json.
   Generated public copy: node scripts/sync-skullet.mjs. Keep this source owned.
   Only aria-hidden/inert skeleton paint enters Reveal. Live controls, text,
   media and custom elements keep their own paint and interaction contracts. */
:root {
  --skullet: 1;
  --skullet-base: var(--surface-hover, #202a39);
}

.atlas-skeleton-paint[skullet-reveal] {
  position: relative;
}

.atlas-skeleton-paint > [skullet-pane] {
  display: block;
}

.atlas-skeleton-paint [skullet-loading] {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.atlas-skeleton-paint [skullet-inactive] {
  display: none !important;
}

.atlas-skeleton-paint [skullet-layer] {
  position: absolute;
  inset: 0;
  overflow: visible;
}

/* Also used by the static boot shell and createSkeletonBox perimeter bars. */
[skullet-bar] {
  display: block;
  background-color: var(--skullet-base);
  background-repeat: no-repeat;
}

/* Hide source blocks only after Reveal has created its measured layer.
   Before enhancement (including disabled scripting), the blocks stay visible.
   The layer's shadow-root rectangles are painted by the pinned Skullet runtime. */
@scope (.atlas-skeleton-paint [skullet-loading]) to ([skullet-own], [skullet-layer]) {
  :scope [skullet-block],
  :scope [skullet-covered] {
    visibility: hidden !important;
  }
}


/* Source: loading-surfaces.css; SHA-256: a6be49111fa5543272323c07070fa9520a028378b2284e3d708b78468331af20 */
/* Shared loading geometry. Price paths and invented numeric samples have no place here. */
:root{--loading-surface:var(--bg,#0b0e14);--loading-border:var(--border-soft,#20252e);--skullet-base:var(--surface-hover,#202a39);--skullet-highlight:#52617433;--skullet-animation:pulse;--skullet-speed:slow;--skullet-radius:3px}
.atlas-loading-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.atlas-skeleton{position:relative;min-width:0;width:100%;height:100%;min-height:220px;overflow:hidden;pointer-events:none;user-select:none}
.atlas-skeleton-paint,.atlas-skeleton-paint>[skullet-pane],.atlas-skeleton-paint [skullet-loading],.atlas-skeleton-paint [skullet-ghost]{width:100%;height:100%;min-height:inherit}
.atlas-skeleton-shape{height:100%;min-height:inherit;display:flex;flex-direction:column;padding:0;gap:0;box-sizing:border-box}
.atlas-skeleton-toolbar,.atlas-skeleton-heading,.atlas-skeleton-footer{display:flex;align-items:center;gap:8px;height:40px;min-height:40px;padding:0 12px;flex:none;border-bottom:1px solid var(--loading-border);box-sizing:border-box}
.atlas-skeleton-chart{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 66px;grid-template-rows:minmax(0,1fr) 28px}
.atlas-skeleton-chart>.atlas-skeleton-plot{grid-column:1;grid-row:1;min-height:0;border-radius:0}
.atlas-skeleton-y-axis{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:12px 8px;box-sizing:border-box}
.atlas-skeleton-x-axis{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:space-between;padding:0 12px;box-sizing:border-box}
.atlas-skeleton-scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;flex:none}
.atlas-skeleton-scores>[skullet-block]{height:112px;border-radius:4px;background:var(--skullet-base);opacity:.55}
.atlas-skeleton-stack{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;padding:0 12px 12px;box-sizing:border-box}
.atlas-skeleton-stack>[skullet-block]{flex:1;min-height:72px;border-radius:4px;background:var(--skullet-base);opacity:.4}
.atlas-skeleton-split{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:12px;flex:1;min-height:0;padding:12px;box-sizing:border-box}
.atlas-skeleton-table-head{display:flex;align-items:center;gap:12px;min-height:36px;padding:0 12px;border-bottom:1px solid var(--loading-border);box-sizing:border-box}
.atlas-skeleton [skullet-bar]{background:var(--skullet-base);border-radius:var(--skullet-radius);flex:none;max-width:100%}
.atlas-skeleton-paint:not([data-enhanced]) [skullet-bar],.atlas-inline-loading [skullet-bar]{animation:atlas-skeleton-pulse 2.4s ease-in-out infinite}
.atlas-skeleton-plot{flex:1;min-height:120px;border-radius:3px;background:var(--skullet-base);opacity:.32}
.atlas-skeleton-oscillator{height:92px;border-radius:3px;background:var(--skullet-base);opacity:.26}
.atlas-skeleton-footer{margin-top:auto}
.atlas-skeleton-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.atlas-skeleton-fields>div{display:grid;gap:12px}
.atlas-skeleton-rows{display:flex;flex:1;flex-direction:column;justify-content:flex-start;gap:0;min-height:0}
.atlas-skeleton-row{display:flex;align-items:center;gap:12px;min-height:40px;padding:0 12px;border-bottom:1px solid var(--loading-border);box-sizing:border-box;overflow:hidden}
.atlas-skeleton-row>[skullet-bar]{flex:0 1 auto}
.atlas-has-skeleton{position:relative;min-height:240px}
.atlas-has-skeleton>:not(.atlas-skeleton){visibility:hidden!important;pointer-events:none!important}
.atlas-has-skeleton>.atlas-skeleton,.atlas-has-skeleton>.atlas-center-loading{position:absolute;inset:0;z-index:20}
.atlas-inline-loading{height:3px;position:relative;flex:none;overflow:hidden;width:100%}
.atlas-inline-loading>[skullet-bar]{display:block;width:40%;height:3px;background:var(--skullet-base)}
.atlas-center-loading{position:absolute;inset:0;z-index:21;background:var(--loading-surface);min-height:0}
.atlas-center-loading .atlas-skeleton{opacity:0;animation:atlas-center-skeleton-in 0s linear 200ms forwards}
@keyframes atlas-center-skeleton-in{to{opacity:1}}
.atlas-center-frame[data-center-status=loading],.atlas-center-frame[data-center-status=error],.center-workspace-toolbar[data-center-status=loading],.center-workspace-toolbar[data-center-status=error]{visibility:hidden;pointer-events:none}
.atlas-center-error{height:100%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;box-sizing:border-box;text-align:center;color:var(--text);overflow:auto}
.atlas-center-error strong{font-size:16px}
.atlas-center-error p{margin:0;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.atlas-center-error button{min-width:88px;min-height:44px;padding:8px 16px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);font:inherit;cursor:pointer}
.atlas-center-error button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.atlas-chart-pending{position:absolute;inset:0;z-index:2;pointer-events:none}
.atlas-chart-pending[hidden],body[data-center-tool] .atlas-chart-pending{display:none}
.eth-empty.atlas-has-skeleton{position:absolute;inset:0;display:block;padding:0;transform:none;max-width:none;min-height:0}
.eth-empty .atlas-skeleton{min-height:0}
.atlas-skeleton[data-atlas-skeleton=detail]{min-height:180px}
.atlas-boot-bar[data-skullet-boot]{animation:none}
.atlas-boot-canvas.atlas-has-skeleton{min-height:0}
@keyframes atlas-skeleton-pulse{0%,100%{opacity:.45}50%{opacity:.85}}
@media(max-width:620px){.atlas-skeleton-toolbar{gap:8px;padding-inline:8px}.atlas-skeleton-scores{gap:8px;padding:8px}.atlas-skeleton-scores>[skullet-block]{height:96px}.atlas-skeleton-split{grid-template-columns:minmax(0,1fr);padding:8px}.atlas-skeleton-row{gap:8px;padding-inline:8px}.atlas-skeleton-row>[skullet-bar]:nth-child(n+4),.atlas-skeleton-table-head>[skullet-bar]:nth-child(n+4){display:none}.atlas-skeleton-chart{grid-template-columns:minmax(0,1fr) 56px}}
@media(prefers-reduced-motion:reduce){.atlas-skeleton *,.atlas-inline-loading *,.atlas-center-loading .atlas-skeleton{animation:none!important;transition:none!important;opacity:1}}

body[data-center-tool] .workspace-toast{display:none!important}
.atlas-plot[aria-busy=true]::after{content:"";position:absolute;top:0;left:0;width:36%;height:3px;background:var(--skullet-base);animation:atlas-skeleton-pulse 2.4s ease-in-out infinite;pointer-events:none}
@media(prefers-reduced-motion:reduce){.atlas-plot[aria-busy=true]::after{animation:none}}

.atlas-skeleton[data-atlas-skeleton=rsi] .atlas-skeleton-shape{padding:0;gap:0;min-height:0}
.atlas-skeleton[data-atlas-skeleton=rsi] .atlas-skeleton-toolbar{height:40px;min-height:40px;border-bottom:1px solid var(--border-soft)}
.atlas-skeleton-rsi-meta{display:flex;align-items:center;gap:12px;height:24px;padding:0 12px;overflow:hidden;flex:none}
.atlas-skeleton-rsi-panels{flex:1;min-height:0;position:relative}
.atlas-skeleton-rsi-panels>.atlas-skeleton-plot,.atlas-skeleton-rsi-panels>.atlas-skeleton-oscillator{position:absolute;left:var(--atlas-rsi-left);right:var(--atlas-rsi-right);height:auto;min-height:0}
.atlas-skeleton-rsi-panels>.atlas-skeleton-plot{top:var(--atlas-rsi-top);height:calc(var(--atlas-rsi-price-bottom) - var(--atlas-rsi-top))}
.atlas-skeleton-rsi-panels>.atlas-skeleton-oscillator{top:calc(var(--atlas-rsi-price-bottom) + var(--atlas-rsi-gap));bottom:var(--atlas-rsi-bottom)}
@media(max-width:620px){.atlas-skeleton[data-atlas-skeleton=rsi] .atlas-skeleton-toolbar{height:48px;min-height:48px}}

.atlas-skeleton-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:4px;flex:1;min-height:180px}
.atlas-skeleton-calendar>[skullet-block]{background:var(--skullet-base);color:transparent;opacity:.55;border-radius:3px}
.atlas-boot-canvas>.atlas-skeleton,.atlas-chart-pending>.atlas-skeleton,.atlas-center-loading>.atlas-skeleton{height:100%;min-height:0}
@media(max-height:740px){.atlas-skeleton,.atlas-skeleton-plot,.atlas-skeleton-calendar,.atlas-has-skeleton{min-height:0}.atlas-skeleton-rows{gap:0}.atlas-skeleton-row{min-height:32px;padding-bottom:0}}
@media(max-width:640px){.atlas-skeleton-calendar{gap:0;min-height:0}.atlas-skeleton-calendar>[skullet-block]{border-radius:0}}

/* A nested page has a center only; the parent already owns all four tool rails. */
html[data-embedded] #atlas-boot-shell,body[data-embedded=true] #atlas-boot-shell{grid-template-columns:minmax(0,1fr)}
html[data-embedded] #atlas-boot-shell .atlas-boot-main,body[data-embedded=true] #atlas-boot-shell .atlas-boot-main{grid-template-rows:minmax(0,1fr)}
html[data-embedded] #atlas-boot-shell :is(.atlas-boot-side,.atlas-boot-top,.atlas-boot-bottom),body[data-embedded=true] #atlas-boot-shell :is(.atlas-boot-side,.atlas-boot-top,.atlas-boot-bottom){display:none!important}


/* Source: editorial-system.css; SHA-256: b8a15177a42edd71de10e556678aead25da871e0a6eef7c30071ade52281ee75 */
/* Atlas workbench — measured against TradingView's desktop chart perimeter.
 * Visual roles only. Financial series, data, toolbar ownership and scroll geometry remain with their original components.
 * Direction and skill provenance: design-system/bitcoin-cycle-atlas/MASTER.md.
 */
:root { --workbench-top:38px; --workbench-gap:0px; }

body { font-variant-numeric: tabular-nums; }
::selection { background: var(--ui-primary); color: var(--on-ui-primary); }
body :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: var(--focus);
}
body :is(input, select, textarea) { accent-color: var(--ui-primary); }

/* The replay start preview is described as a blue guide in the existing UI.
   Its meaning is independent of the keyboard focus and navigation accents. */
.chart-replay-picker { stroke: var(--replay-picker); }
.chart-replay-picker-label { fill: var(--replay-picker); }

/* Archived comparison links keep their existing controls and chart series. */
#compare-view select {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
#compare-view .lab-segmented button[aria-pressed=true] {
  background: var(--surface-hover);
  color: var(--ui-link);
}

/* One perimeter. Primary destinations use their existing labels; chart tools
   remain in their own group. The toolbar and original scroll owners persist. */
body[data-shell=chart] :is(.atlas-sidebar, .workbench-rail, .atlas-canvas-heading),
.workbench-bottom.workbench-bottom-bar { background: var(--sidebar); }
.atlas-page .atlas-workbench, .atlas-plot { background: var(--bg); }
.atlas-sidebar .atlas-brand { color: var(--accent-ink); border-radius: 0; }
.atlas-sidebar .atlas-brand > span { font-weight: 500; }
.atlas-sidebar .workbench-icon,
.workbench-rail .atlas-nav :is(a, button),
.workbench-detail-tools .workbench-icon { border-radius: 2px; }
.workbench-rail .atlas-nav :is(a, button):is(.active, [aria-current=page]) {
  color: var(--nav-active-text);
  background: var(--nav-active-bg);
  box-shadow: none;
}
.atlas-canvas-heading :is(button, select, input),
.workbench-bottom-bar button,
.legacy-toolbar-action { border-radius: 3px; }
.atlas-canvas-heading button.symbol-selector-trigger {
  font-weight: 600;
  color: var(--text);
  border-color: var(--border);
  letter-spacing: normal;
}
.atlas-canvas-heading .symbol-selector-name:empty { display: none; }
.symbol-selector-label { color: var(--muted); font-variant-numeric: tabular-nums; }
.center-workspace-toolbar :is(button, select, input),
.legacy-toolbar-field :is(input, select) { font-size: 12px; }
.center-workspace-toolbar :is(select, input),
.legacy-toolbar-field :is(input, select) {
  background: var(--surface);
  border-color: var(--border-strong);
}
.center-workspace-toolbar .compact-toolbar-tabs > button,
.center-workspace-toolbar .workspace-view-tabs button {
  border-radius: 0;
  border-color: transparent;
}
.center-workspace-toolbar :is(.compact-toolbar-tabs, .workspace-view-tabs) > :is([aria-selected=true], [aria-pressed=true]),
#workbench-frequency button[aria-pressed=true] {
  color: var(--ui-link);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.compact-toolbar-group { border-color: var(--border); }
.compact-toolbar-summary { letter-spacing: 0; }
.center-workspace-toolbar .workspace-region-code { color: var(--subtle); }
.legacy-toolbar-state { color: var(--ui-link); }
.center-workspace-toolbar .workspace-view-tabs button {
  gap: 8px;
  font-weight: 500;
}
.center-workspace-toolbar .workspace-view-tabs button[aria-selected=true] {
  color: var(--text);
  font-weight: 650;
}
.center-workspace-toolbar .compact-toolbar-group {
  padding-inline: 8px;
  gap: 8px;
}
.center-workspace-toolbar .compact-toolbar-summary {
  font-size: 12px;
  font-weight: 500;
}
.center-workspace-toolbar :is(.compact-toolbar-summary strong, .compact-toolbar-summary b) {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.center-workspace-toolbar .workspace-region-code {
  font: 11px/1.4 var(--font-mono);
  padding-right: 4px;
  border-right: 1px solid var(--border);
}
.workbench-bottom-bar button[aria-pressed=true] {
  background: transparent;
  color: var(--ui-link);
  box-shadow: none;
}
.workbench-bottom-bar .journal-count {
  border-radius: 2px;
  color: var(--text);
  background: var(--surface-hover);
}

/* Shared floating surfaces: solid, quiet and clearly separated from the plot. */
body :is(.workspace-dialog, .symbol-search-dialog, .chart-export-dialog,
  .research-annotations-dialog, .chart-go-to-dialog, .indicator-library,
  .indicator-settings-dialog, .compact-toolbar-dialog, .legacy-toolbar-dialog,
  .monthly-backtest) {
  border-color: var(--border-strong);
  border-radius: var(--panel-radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  box-shadow: var(--shadow);
}
body :is(.workspace-dialog, .symbol-search-dialog, .chart-export-dialog,
  .research-annotations-dialog, .chart-go-to-dialog, .indicator-library,
  .indicator-settings-dialog, .compact-toolbar-dialog, .legacy-toolbar-dialog,
  .monthly-backtest, .research-reader)::backdrop { background: var(--dialog-backdrop); }
:is(.workspace-dialog-header, .symbol-search-heading, .indicator-library-heading,
  .compact-toolbar-dialog-header, .legacy-toolbar-dialog-heading) {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
:is(.workspace-dialog-header, .symbol-search-heading, .indicator-library-heading,
  .compact-toolbar-dialog-header, .legacy-toolbar-dialog-heading) :is(h2, h3) {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  text-wrap: balance;
}
body :is(.chart-export-dialog, .research-annotations-dialog, .chart-go-to-dialog,
  .indicator-settings-dialog, .indicator-library, .monthly-backtest)
  :is(input, select, textarea) {
  border-color: var(--border-strong);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
}
:is(.compact-toolbar-dialog-header, .legacy-toolbar-dialog-heading) > button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
:is(.compact-toolbar-dialog-header, .legacy-toolbar-dialog-heading) > button:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.compact-toolbar-dialog-body { line-height: 1.7; }
.compact-toolbar-dialog-body :is(h3, h4) { color: var(--text); }
.compact-toolbar-dialog :is(th, td) { border-color: var(--border-soft); }
.compact-toolbar-dialog th { color: var(--muted); font-weight: 500; }

/* The search is a ruled instrument directory with distinct identity and
   exchange columns. Its fixed search/header and original list scroll remain. */
body .symbol-search-dialog { width: min(760px, calc(100% - 24px)); height: min(680px, calc(100dvh - 64px)); max-height: min(680px, calc(100dvh - 64px)); border-radius: 12px; background: var(--surface); box-shadow: none; }
.symbol-search-heading { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.symbol-search-heading h2 { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.symbol-search-input { padding: 4px 20px 8px; background: transparent; }
.symbol-search-input input { height: 40px; font-size: 16px; }
.symbol-search-filters { padding: 4px 20px 12px; gap: 8px; }
.symbol-search-filters span {
  padding: 0 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-link);
  font-size: 12px;
}
.symbol-search-filters span + span { border-left: 1px solid var(--border); padding-left: 12px; }
.symbol-search-results { padding: 0; }
body .symbol-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  margin: 0;
  height: 46px;
  min-height: 46px;
  border-radius: 8px;
}
.symbol-search-row .symbol-search-mark {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
}
.symbol-search-source { max-width: none; padding-left: 12px; border-left: 0; font-size: 12px; }
.symbol-search-row:hover, .symbol-search-row[aria-selected=true] {
  border-color: transparent;
  border-bottom-color: var(--border);
  background: var(--surface-hover);
  box-shadow: none;
}
.symbol-search-symbol strong { font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.symbol-search-name { font-size: 12px; color: var(--text); }
.symbol-search-footer { padding-inline: 20px; }
.symbol-search-current { border-radius: 0; background: transparent; color: var(--ui-link); }
.symbol-search-close:hover { background: var(--surface-hover); color: var(--text); }
.workspace-dialog-tabs button { border-radius: 0; }
.workspace-dialog-tabs button[aria-pressed=true] {
  background: transparent;
  border-color: transparent;
  color: var(--ui-link);
  box-shadow: none;
}
.workspace-command { border-radius: 0; border-bottom: 1px solid var(--border-soft); }
.workspace-command strong { font-weight: 550; }
.workspace-command-search, .workspace-dialog input { background: var(--bg); }

/* Plot-side reading and configuration panels share the same text hierarchy. */
.chart-details-panel .reader-heading { border-color: var(--border); }
.chart-details-panel .reader-heading h2 { color: var(--text); font-weight: 600; }
.chart-details-panel .reader-body :is(p, li) { color: var(--muted); }
.chart-details-panel .reader-body :is(h2, h3, h4) { color: var(--text); }
.chart-details-panel .reader-body a { color: var(--ui-link); }
.chart-details-panel .reader-pagination { border-color: var(--border); }
body :is(.chart-context-menu, .chart-bottom-popover, .cycle-chart-menu,
  .price-axis-options > div, .price-axis-options > fieldset) {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--border-strong);
  border-radius: 4px;
}
body :is(.chart-context-menu, .cycle-chart-menu) button:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.atlas-plot > .lab-chart-foot {
  border-color: var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
}
.chart-indicator-manager .indicator-label { color: var(--muted); }
.atlas-plot[data-compact-layout] .indicator-row :is(.indicator-label, .indicator-value) {
  background: var(--indicator-label-bg);
}
.analysis-window-heading, .analysis-indicator-window {
  background: var(--surface);
  border-color: var(--border);
}
.indicator-library-row { border-color: var(--border-soft); border-radius: 0; }
.indicator-library-item { color: var(--text); }
.indicator-library-item:hover { background: var(--surface-hover); }
.indicator-categories button[aria-pressed=true],
.indicator-library-views button[aria-pressed=true] {
  background: var(--nav-active-bg);
  color: var(--ui-link);
  border-color: var(--border);
}
.indicator-settings-content fieldset { border-color: var(--border); border-radius: 3px; }
.chart-export-dialog > :is(header, footer), .chart-export-facts {
  background: var(--surface);
  border-color: var(--border);
}
.research-annotation-row { border-color: var(--border-soft); border-radius: 0; }
.research-annotation-row.is-selected { background: var(--nav-active-bg); border-color: var(--border); }

/* Desktop chart panels share edges: 52px left tools, a 38px header,
   a 45px right rail and a 38px time bar. Keep the actual outer toolbar as
   its original DOM owner; only its desktop placement spans the perimeter. */
@media (min-width: 621px) {
  body[data-shell=chart] {
    --sidebar-width: 52px;
    --rail-width: 45px;
    background: var(--sidebar);
  }
  body[data-shell=chart] .atlas-sidebar {
    width: 52px;
    padding: 0;
    gap: 0;
    border: 0;
    background: var(--sidebar);
  }
  body[data-shell=chart] .atlas-sidebar .atlas-brand {
    width: 52px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    border-bottom: 0;
    box-sizing: border-box;
  }
  body[data-shell=chart] .workspace {
    margin-left: 52px!important;
    width: calc(100% - 52px);
    background: var(--bg);
  }
  body[data-shell=chart] .workspace.atlas-details-layout > #main {
    padding: 38px 0 0 0;
  }
  body[data-shell=chart] .atlas-canvas-heading {
    position: fixed;
    inset: 0 0 auto 52px;
    width: auto;
    max-width: none;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0 4px;
    gap: 2px;
    border: 0;
    background: var(--sidebar);
    z-index: 45;
  }
  body[data-shell=chart] .atlas-canvas-heading > .workbench-icon {
    height: 38px;
    min-height: 38px;
    width: 38px;
    padding: 8px;
    border-radius: 0;
  }
  body[data-shell=chart] .atlas-canvas-heading > .workbench-icon :is(.icon, svg) {
    width: 22px;
    height: 22px;
  }
  body[data-shell=chart] .atlas-canvas-heading :is(.workbench-mode, #workbench-scenario) {
    width: auto;
    max-width: none;
    padding-inline: 10px;
  }
  body[data-shell=chart] .atlas-canvas-heading #atlas-mode-name,
  body[data-shell=chart] #workbench-scenario-name { font-size: 13px; }
  body[data-shell=chart] .atlas-canvas-heading button.symbol-selector-trigger {
    height: 32px;
    min-height: 32px;
    min-width: 0;
    max-width: 240px;
    padding-inline: 8px;
    margin: 0;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
  }
  body[data-shell=chart] .atlas-canvas-heading .symbol-selector-name { display: inline; font-size: 14px; font-weight: 500; }
  body[data-shell=chart] .symbol-selector-label { font-size: 12px; font-weight: 400; color: var(--muted); }
  body[data-shell=chart] #workbench-frequency { padding: 0 8px 0 0; }
  body[data-shell=chart] #workbench-frequency .lab-segmented { display: none; }
  body[data-shell=chart] #workbench-interval-select {
    display: block;
    width: 58px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 4px 16px 4px 8px;
    border: 0;
    border-radius: 4px;
    color: var(--text);
    background-color: transparent;
    font-size: 14px;
  }
  body[data-shell=chart] #workbench-interval-select:hover { background-color: var(--surface-hover); }
  body[data-shell=chart] #workbench-interval-select option { background: var(--surface-raised); }
  body[data-shell=chart] .center-workspace-toolbar { gap: 4px; }
  body[data-shell=chart] .center-workspace-toolbar :is(button, select, input) {
    min-height: 28px;
    height: 28px;
    max-height: 32px;
    font-size: 13px;
  }
  body[data-shell=chart] .center-workspace-toolbar button:where(.center-data-action) {
    min-width: 32px;
    min-height: 32px;
    height: 32px;
  }
  body[data-shell=chart] .center-workspace-toolbar .workspace-view-tabs button {
    min-height: 32px;
    height: 32px;
    padding-inline: 10px;
    border-radius: 4px;
  }
  body[data-shell=chart] .compact-toolbar-group { height: 28px; }
  body[data-shell=chart] .compact-toolbar-group:where(.center-data-actions) { height: 32px; }
  body[data-shell=chart] .compact-toolbar-group :is([aria-selected=true], [aria-pressed=true]) {
    background: var(--surface-hover);
    color: var(--text);
  }
  body[data-shell=chart] .workbench-tools {
    width: 52px;
    margin: 0;
    gap: 0;
    align-items: center;
  }
  body[data-shell=chart] .atlas-sidebar .workbench-icon,
  body[data-shell=chart] #workbench-navigation .chart-navigation button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 7px;
    border-radius: 4px;
  }
  body[data-shell=chart] .atlas-sidebar .workbench-icon .icon,
  body[data-shell=chart] #workbench-navigation .chart-navigation button svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.35;
  }
  body[data-shell=chart] #workbench-navigation { width: 36px; padding-top: 0; margin-top: 0; }
  body[data-shell=chart] #workbench-navigation .chart-navigation { align-items: center; gap: 0; }
  body[data-shell=chart] .workbench-rail {
    width: 45px;
    min-width: 0;
    max-width: 45px;
    height: calc(100dvh - 38px);
    margin-top: 38px;
    padding: 0;
    border: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    flex-direction: column;
    align-items: center;
    background: var(--sidebar);
  }
  body[data-shell=chart] .workbench-rail .atlas-nav {
    gap: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
  }
  body[data-shell=chart] .workbench-rail .atlas-nav :is(a, button),
  body[data-shell=chart] .workbench-rail > .workbench-icon,
  body[data-shell=chart] .workbench-detail-tools .workbench-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 4px;
    color: var(--muted);
    line-height: 1;
  }
  body[data-shell=chart] .workbench-rail :is(a, button) > span:last-child:not([data-icon]),
  body[data-shell=chart] .workbench-rail .atlas-nav :is(a, button) > .atlas-nav-label:last-child:not([data-icon]) {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  body[data-shell=chart] .workbench-rail :is(.icon, svg) { width: 24px; height: 24px; stroke-width: 1.35; }
  body[data-shell=chart] .workbench-rail .atlas-nav :is(a, button):hover {
    color: var(--text);
    background: var(--surface-hover);
  }
  body[data-shell=chart] .workbench-rail .atlas-nav :is(.active, [aria-current=page]) {
    color: var(--nav-active-text);
    background: var(--nav-active-bg);
    box-shadow: none;
  }
  body[data-shell=chart] .workbench-detail-tools {
    align-items: center;
    gap: 0;
    padding-block: 0;
  }
  body[data-shell=chart] .chart-details-panel {
    height: calc(100% - 38px);
    margin-top: 38px;
    border: 0;
    border-right: 0;
    background: var(--sidebar);
  }
  body[data-shell=chart] .has-chart-bottom-bar { --chart-bottom-height: 38px; }
  body[data-shell=chart] .workbench-bottom.workbench-bottom-bar { padding: 0 8px; border-top: 1px solid var(--border-soft); }
  body[data-shell=chart] .workbench-bottom-scroll,
  body[data-shell=chart] .workbench-bottom-bar :is(.workbench-ranges, .workbench-axis, .workbench-status) { height: 36px; max-height: 36px; }
  body[data-shell=chart] .workbench-bottom-bar :is(button, .workbench-update) { height: 32px; min-height: 32px; font-size: 12px; }
  body[data-shell=chart] .workbench-bottom-bar button[aria-pressed=true] { color: var(--text); background: var(--surface-hover); }
}
.atlas-rail-tooltip {
  position: fixed;
  z-index: 95;
  width: max-content;
  max-width: min(260px, calc(100vw - 16px));
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: var(--shadow);
  font: 12px/1.5 var(--font);
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
}
@media (max-width: 620px) { .atlas-rail-tooltip { display: none; } }
@media (max-width: 620px), (pointer: coarse) {
  .center-workspace-toolbar .compact-toolbar-group { padding-inline: 4px; gap: 4px; }
  .center-workspace-toolbar .workspace-view-tabs button { gap: 4px; }
  .center-workspace-toolbar :is(.compact-toolbar-summary strong, .compact-toolbar-summary b) { font-size: 12px; }
  .symbol-search-heading h2 { font-size: 14px; font-weight: 500; }
  .symbol-search-heading, .symbol-search-input { padding: 12px 16px; }
  .symbol-search-filters { flex-wrap: wrap; padding: 12px 16px; }
  .symbol-search-close { width: 44px; height: 44px; }
  body .symbol-search-row { gap: 8px; padding: 8px; height: auto; min-height: 44px; }
  .symbol-search-mark { width: 24px; }
  .symbol-search-source { padding-left: 8px; }
  .symbol-search-name { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
  .symbol-search-footer { padding-inline: 16px; }
}
/* Touch hardware and compact windows keep the original 44px interaction
   contract without clipping controls inside the measured desktop header. */
@media (min-width: 621px) and (pointer: coarse), (min-width: 621px) and (max-width: 1100px) {
  body[data-shell=chart] .workspace.atlas-details-layout > #main { padding-top: 52px; }
  body[data-shell=chart] .atlas-canvas-heading { height: 48px; min-height: 48px; max-height: 48px; }
  body[data-shell=chart] .atlas-sidebar .atlas-brand { height: 48px; min-height: 48px; }
  body[data-shell=chart] .workbench-rail { height: calc(100dvh - 52px); margin-top: 52px; }
  body[data-shell=chart] .chart-details-panel,
  body[data-shell=chart] .workspace.atlas-details-layout > .atlas-chat { height: calc(100% - 52px); margin-top: 52px; }
  body[data-shell=chart] .atlas-canvas-heading > .workbench-icon,
  body[data-shell=chart] .atlas-canvas-heading button.symbol-selector-trigger,
  body[data-shell=chart] #workbench-interval-select,
  body[data-shell=chart] .center-workspace-toolbar :is(button, select, input),
  body[data-shell=chart] .center-workspace-toolbar .workspace-view-tabs button {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    min-width: 44px;
  }
  body[data-shell=chart] .compact-toolbar-group { height: 44px; }
  body[data-shell=chart] .workbench-tools { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
  body[data-shell=chart] .atlas-sidebar .workbench-icon,
  body[data-shell=chart] #workbench-navigation .chart-navigation button { width: 44px; height: 44px; min-height: 44px; }
  body[data-shell=chart] #workbench-navigation { width: 44px; flex: none; }
  body[data-shell=chart] .has-chart-bottom-bar { --chart-bottom-height: 48px; }
  body[data-shell=chart] .workbench-bottom-scroll,
  body[data-shell=chart] .workbench-bottom-bar :is(.workbench-ranges, .workbench-axis, .workbench-status) { height: 44px; max-height: 44px; }
  body[data-shell=chart] .workbench-bottom-bar :is(button, .workbench-update) { height: 44px; min-height: 44px; min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-canvas-heading :is(button, select, input),
  .workbench-rail .atlas-nav :is(a, button),
  .symbol-search-row, .workspace-command { transition: none; }
}

/* R19 P0 changes paint and reading type only. The existing shell geometry,
   chart numbers, toolbar density and card composition belong to P1/P2/P3. */
body { font-family:var(--font);font-size:var(--body-size);line-height:var(--copy-leading);letter-spacing:var(--type-tracking);word-break:keep-all; }
body :is(.method-card,.reading-card,.research-reader,.research-reader-content,.native-chart-reader,.atlas-settings-body,.eth-data-dialog,.equity-detail-dialog,.forecast-journal-dialog) :is(p,li),
body #chart-reader .reader-body :is(p,li) {
  font-family:var(--font);font-size:var(--copy-size);line-height:var(--copy-leading);
}
:is(.dialog-lead,.reader-lead,.research-lead) {
  font-family:var(--font);font-size:var(--type-body-sm);line-height:var(--copy-leading);
}
button.theme-setting { min-height:44px;padding:8px 12px;font:var(--type-body-sm)/var(--copy-leading) var(--font);border:1px solid var(--border-strong);border-radius:var(--control-radius);color:var(--text);background:var(--surface); }
button.theme-setting[aria-pressed=true] { color:var(--accent-ink);background:var(--accent-soft); }
button.theme-setting:focus-visible { outline:2px solid var(--focus);outline-offset:2px; }
.symbol-selector-chevron { color:var(--icon-muted);opacity:1; }
/* These are paint roles only: retain 64px gutter, fitted glyph coordinates,
   tag rectangles, visibility priority and the final SVG paint owner. */
.atlas-plot svg :is([data-price-axis-label="tick"],.market-time-label,.price-time-label,.chart-empty-message) { fill:var(--chart-axis-ink); }
.atlas-plot svg :is(.cross-price-tag,.market-price-tag,.cross-date-tag,.market-date-tag)>rect { fill:var(--chart-tag-bg); }
.atlas-plot svg :is(.cross-price-tag,.market-price-tag,.cross-date-tag,.market-date-tag)>text { fill:var(--chart-tag-ink); }
/* The protected equity renderer supplies inline legacy paint. These exact
   comparison-table roles may override that paint without changing its values. */
table[data-equity-comparison-year]>caption { color:var(--text)!important; }
table[data-equity-comparison-year] :is(th,td) { border-bottom-color:var(--border)!important; }
/* The established data-sheet gate requires an opaque dark sticky header.
   Pair its retained surface with its own ink in either surrounding theme. */
body[data-shell=dashboard] #data-view .daily-heading { background:var(--ledger-sticky-bg);color:var(--ledger-sticky-ink); }
body[data-shell=dashboard] #data-view .daily-heading :is(h1,h2,strong,button) { color:var(--ledger-sticky-ink); }
body[data-shell=dashboard] #data-view .daily-heading :is(p,span,small) { color:var(--ledger-sticky-muted); }


/* Source: editorial-panels.css; SHA-256: bb790dd645cc2b088d74d3a4d13b19ca54ef51e80535757c322be7c9e5b34b12 */
/* Atlas analytical panels, shared by React and its host document.
   The host also paints portaled summaries. All calculations and chart owners
   remain in their original components; these rules only arrange their output. */

/* Let the single observed chart use the working viewport. The SVG receives
   this figure's measured height through the vendor's public height prop. */
#market-view .ml-scroll:has(> #ml-panel .ml-compact-price-card) {
  display: flex;
  flex-direction: column;
}

#market-view #ml-panel:has(.ml-compact-price-card) {
  display: flex;
  flex: 1 0 320px;
  min-height: 320px;
}
#market-view .ml-compact-price-card {
  flex: 1;
  min-height: 0;
  width: 100%;
}
#market-view .ml-compact-price-card [data-ztd-chart="observed"] {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
#market-view .ml-viewport-chart {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 290px;
  margin: 0;
}
#market-view .ml-viewport-chart > .ztd-root {
  position: absolute;
  inset: 0;
}
#market-view .ml-scroll > .ml-sources {
  flex: none;
}

/* Three observed factor charts share the center. The index price stays
   collapsed so the rows can use the working height. */
#market-view .ml-scroll:has(> #ml-panel .ml-axis-stack) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#market-view #ml-panel:has(.ml-axis-stack) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
#market-view .ml-axis-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(180px, 1fr));
  flex: 1 1 auto;
  min-height: 540px;
  gap: 4px;
}
#market-view .ml-axis-chart {
  min-width: 0;
  min-height: 0;
  display: flex;
}
#market-view .ml-axis-chart .ml-ztd-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
#market-view .ml-axis-chart [data-ztd-chart="observed"] {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
#market-view .ml-axis-chart .ml-viewport-chart {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#market-view .ml-axis-chart .atlas-funnest-observed-chart {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#market-view .ml-axis-chart .atlas-funnest-observed-plot-slot {
  flex: 1 1 auto;
  min-height: 96px;
  overflow: hidden;
}
#market-view .ml-axis-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
#market-view .ml-axis-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
#market-view .ml-axis-readout > span:last-child {
  flex: none;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
#market-view .ml-axis-chart .ml-date-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
#market-view .ml-axis-chart input[type="range"] {
  flex: 1 1 auto;
  height: 22px;
  min-height: 22px;
  padding: 0;
}
#market-view .ml-index-chart {
  flex: none;
  margin-top: 4px;
}
#market-view .ml-index-chart > summary {
  min-height: 32px;
  padding: 6px 2px;
  cursor: pointer;
}

/* Compact data panes use the same neutral chrome as the chart workbench. */
body:not([data-rsi-workbench=true]) main:not([data-loading-kind=rsi]) #market-view .ml-scroll {
  padding: 8px 12px 12px;
}
#market-view .ml-two-col {
  gap: 0;
  margin-top: 0;
}
#market-view .ml-two-col > .ml-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}
#market-view .ml-card > h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
#market-view .ml-card > .ml-muted {
  max-width: 64ch;
  line-height: 1.6;
}
#market-view .ml-shock-row {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  column-gap: 12px;
}
#market-view .ml-shock-row > label:first-child {
  align-items: baseline;
  font-size: 13px;
}
#market-view .ml-shock-row output {
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
#market-view .ml-shock-row + .ml-muted {
  margin-top: 12px;
}
#market-view .ml-field {
  gap: 4px;
  margin: 12px 0;
  font-size: 12px;
}
#market-view .ml-input-grid {
  gap: 0 12px;
}
#market-view :is(.ml-field, .ml-weight) input {
  border-radius: 3px;
  min-height: 32px;
  padding: 4px 8px;
  background: var(--surface);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
#market-view .ml-primary {
  min-height: 36px;
  margin-top: 12px;
  border-color: var(--ui-primary);
  border-radius: 3px;
  background: var(--ui-primary);
  color: var(--on-ui-primary);
  font-weight: 500;
}
#market-view .ml-primary:hover:not(:disabled) {
  background: var(--ui-primary-hover, var(--ui-primary));
  border-color: var(--ui-primary-hover, var(--ui-primary));
}
#market-view .ml-results {
  margin: 12px 0;
}
#market-view .ml-results > div {
  align-items: baseline;
  padding: 8px 0;
  border-color: var(--border-soft);
}
#market-view .ml-results dt {
  font-size: 13px;
}
#market-view .ml-results dd {
  min-width: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.3;
  text-align: right;
}
#market-view .ml-results dd:has(details) {
  font-family: var(--font);
  font-size: 13px;
}
#market-view .ml-results dd summary {
  padding: 4px 0;
  min-height: 32px;
  text-align: right;
}
#market-view .ml-results dd p {
  max-width: 48ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}
#market-view :is(.ml-pill, .ml-tag) {
  border: 0;
  border-left: 2px solid var(--border);
  border-radius: 0;
  padding: 4px 0 4px 8px;
  background: transparent;
  line-height: 1.6;
  white-space: normal;
}
#market-view .ml-warn {
  border-left-color: var(--accent-ink);
}
#market-view .ml-empty-copy {
  padding: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}
#market-view .ml-error {
  border-width: 0 0 0 2px;
  border-radius: 0;
  padding: 8px 12px;
  background: var(--surface);
  line-height: 1.6;
}
#market-view .ml-empty {
  border: 0;
  border-block: 1px solid var(--border-soft);
  border-radius: 0;
}

/* Source details retain readable text inside compact disclosures. */
#market-view :is(.ml-original, .ml-sources),
.rsi-workbench-panel .ml-sources {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
#market-view :is(.ml-original, .ml-sources) > summary {
  min-height: 32px;
  padding: 8px 0;
  color: var(--muted);
}
#market-view :is(.ml-original, .ml-sources)[open] > summary {
  color: var(--text);
}
#market-view .ml-original > p {
  max-width: 72ch;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
}
#market-view .ml-source-body {
  padding: 4px 0 12px;
  font-size: 13px;
  line-height: 1.65;
}
#market-view .ml-source-body > p {
  max-width: 72ch;
}
#market-view .ml-source-body article {
  padding: 12px 0 0;
  margin-top: 12px;
  border-color: var(--border-soft);
}
#market-view .ml-source-body article p {
  max-width: 72ch;
  font-size: 12px;
  line-height: 1.6;
}
#market-view .ml-theme-grid {
  gap: 0;
}
#market-view .ml-theme-grid .ml-card {
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#market-view .ml-theme-grid .ml-card p {
  font-size: 13px;
  line-height: 1.6;
}

/* Ledger styling leaves sticky ownership and both native scroll axes intact. */
#market-view .ml-table-wrap {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin: 8px 0;
}
#market-view :is(.ml-table-wrap, .housing-table, .theme-table) caption {
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
#market-view :is(.ml-table-wrap, .housing-table, .theme-table) thead th {
  background: var(--surface);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
#market-view :is(.ml-table-wrap, .housing-table, .theme-table) :is(td, th) {
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.5;
  border-bottom-color: var(--border-soft);
}
#market-view :is(.ml-table-wrap, .housing-table, .theme-table) tbody tr:hover > :is(th, td) {
  background: var(--surface-hover);
}
#market-view :is(.ml-table-wrap, .housing-table, .theme-table) tr > :first-child {
  background: var(--surface);
}
#market-view :is(.ml-table-wrap, .housing-table, .theme-table) thead tr > :first-child {
  background: var(--surface);
}

/* The three axes are a single aligned readout, including portaled summaries. */
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score-row {
  gap: 0;
  margin: 12px 0;
  border-block: 1px solid var(--border);
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score {
  min-height: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score + .ml-score {
  border-left: 1px solid var(--border-soft);
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score h3 {
  margin: 0;
  font-size: 13px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score h3 span {
  font-size: 16px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-value {
  margin: 8px 0;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-stats {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-collection {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-main {
  padding: 4px 0 12px;
  gap: 12px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-value {
  font-size: 24px;
  line-height: 1.2;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-formula strong {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] :is(.ml-direction-method, .ml-legacy-score) summary {
  padding: 8px 0;
  color: var(--muted);
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] :is(.ml-direction-method, .ml-legacy-score) p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* RSI keeps its price/oscillator allocation. The records and side pane share
   the same rule-based hierarchy as market, housing and theme research. */
.rsi-workbench-panel {
  background: var(--surface);
}
.rsi-workbench-panel > header {
  min-height: 38px;
  padding: 0 8px 0 12px;
  background: var(--surface);
  font-size: 13px;
}
.rsi-workbench-panel > header button {
  min-width: 32px;
  min-height: 32px;
}
.rsi-workbench-panel-scroll {
  padding: 12px;
  line-height: 1.6;
}
.rsi-workbench-panel-scroll > p {
  font-size: 13px;
}
.rsi-workbench-panel-scroll > form + form {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.rsi-panel-field {
  margin-bottom: 12px;
}
.rsi-data-list {
  grid-template-columns: minmax(76px, .8fr) minmax(0, 1.4fr);
  gap: 0 12px;
}
.rsi-data-list :is(dt, dd) {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.rsi-history-page {
  padding: 12px;
}
.rsi-history h2 {
  padding-top: 4px;
  font-size: 14px;
}
.rsi-backtest-form {
  align-items: end;
  gap: 12px;
  margin: 12px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.rsi-backtest-form input {
  min-height: 32px;
  background: var(--surface);
  border-radius: 3px;
}
.rsi-backtest-form > button {
  min-height: 36px;
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: var(--on-ui-primary);
}
.rsi-backtest-form > button:hover:not(:disabled) {
  border-color: var(--ui-primary-hover, var(--ui-primary));
  background: var(--ui-primary-hover, var(--ui-primary));
}
.rsi-backtest-metrics {
  gap: 12px 16px;
  margin: 12px 0;
}
.rsi-backtest-metrics > div {
  padding-right: 16px;
  border-right: 1px solid var(--border-soft);
}
.rsi-backtest-metrics > div:last-child {
  padding-right: 0;
  border-right: 0;
}
.rsi-backtest-metrics dd {
  margin-top: 4px;
  font-family: var(--font);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

/* Housing views: compact measurement strip and a plain research ledger. */
.housing-relation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 12px 0;
}
.housing-relation-stats > div {
  gap: 4px;
  padding: 0 12px;
}
.housing-relation-stats > div + div {
  border-left: 1px solid var(--border-soft);
}
.housing-relation-stats strong {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}
.housing-relation-layout {
  gap: 16px;
  padding: 12px;
}
.housing-relation-layout h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.housing-details summary, .theme-method summary {
  padding-block: 8px;
  color: var(--muted);
}
.housing-details p, .theme-method p {
  font-size: 13px;
  line-height: 1.65;
}
.housing-caveat, .theme-caveat {
  max-width: 72ch;
  font-size: 12px;
  line-height: 1.65;
}

/* Theme evidence is a document index beside the chart, not a card grid. */
.theme-inspector {
  padding: 12px;
  background: var(--surface);
}
.theme-inspector h2 {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  text-wrap: pretty;
}
.theme-inspector p {
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.6;
}
.theme-inspector .theme-availability {
  margin-top: 8px;
  padding-left: 8px;
  border-left: 2px solid var(--accent);
}
.theme-criterion-readout {
  margin-top: 12px;
  padding-top: 12px;
  border-color: var(--border-soft);
}
.theme-criterion-readout b {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.theme-criterion-readout b span {
  margin-left: 0;
  font-size: 12px;
  font-weight: 400;
}
.theme-verdict {
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 4px 12px;
  gap: 4px;
  background: transparent;
}
.theme-verdict-strip {
  gap: 0;
}
.theme-timeline > li {
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border-color: var(--border-soft);
}
.theme-timeline .theme-evidence-title {
  white-space: normal;
  font-size: 14px;
  line-height: 1.5;
}
.theme-timeline p {
  max-width: 72ch;
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.65;
}
.theme-source-actions {
  gap: 12px;
}
.theme-section-heading {
  padding-block: 8px;
  background: transparent;
}
.theme-section-heading h2 {
  font-size: 14px;
}
.theme-editor {
  padding: 12px;
  background: transparent;
}
.theme-editor h2 {
  font-size: 14px;
}
.theme-criteria-editor {
  gap: 16px;
}
.theme-criteria-editor fieldset {
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.theme-criteria-editor legend {
  padding: 0 8px 0 0;
  font-weight: 600;
}
.theme-criteria-editor textarea {
  background: var(--surface);
  font-size: 13px;
  line-height: 1.6;
}
.theme-evidence-check {
  align-items: flex-start;
  padding-block: 8px;
  line-height: 1.65;
}
.theme-evidence-check input {
  margin-top: 2px;
}

@media (min-width: 1001px) {
  #market-view .ml-two-col > .ml-card:first-child {
    padding-right: 16px;
    border-right: 1px solid var(--border);
  }
  #market-view .ml-two-col > .ml-card:last-child {
    padding-left: 16px;
  }
  #market-view .ml-theme-grid .ml-card + .ml-card {
    border-left: 1px solid var(--border-soft);
  }
}

@media (max-width: 1000px) {
  #market-view .ml-two-col > .ml-card + .ml-card {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  body:not([data-rsi-workbench=true]) main:not([data-loading-kind=rsi]) #market-view .ml-scroll {
    padding: 4px 8px 12px;
  }
  #market-view .ml-two-col > .ml-card {
    padding: 12px 0;
  }
  #market-view .ml-input-grid {
    gap: 0 16px;
  }
  #market-view .ml-shock-row {
    padding-block: 12px;
    column-gap: 12px;
  }
  #market-view .ml-results > div {
    gap: 12px;
    flex-wrap: wrap;
  }
  #market-view .ml-results dd {
    margin-left: auto;
    font-size: 18px;
  }
  #market-view .ml-theme-grid .ml-card {
    padding: 12px 0;
  }
  #market-view .ml-theme-grid .ml-card + .ml-card {
    border-top: 1px solid var(--border-soft);
  }
  #market-view :is(.ml-table-wrap, .housing-table, .theme-table) :is(td, th) {
    padding: 8px;
  }
  #market-view :is(.ml-field, .ml-weight) input,
  #market-view .ml-primary,
  #market-view :is(.ml-original, .ml-sources) > summary,
  #market-view .ml-results dd summary {
    min-height: 44px;
  }
  #market-view :is(.ml-field, .ml-weight) input {
    font-size: 16px;
  }
  .rsi-workbench-panel > header {
    min-height: 48px;
  }
  .rsi-workbench-panel > header button {
    min-width: 44px;
    min-height: 44px;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score {
    padding: 12px 8px;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-value {
    font-size: 24px;
  }
  .rsi-history-page {
    padding: 12px 8px;
  }
  .rsi-backtest-form {
    gap: 12px;
  }
  .rsi-backtest-form :is(input, button) {
    min-height: 44px;
  }
  .rsi-backtest-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .rsi-backtest-metrics > div {
    min-width: 0;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .rsi-backtest-metrics dd {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  .housing-relation-stats {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }
  .housing-relation-stats > div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    padding: 12px 0;
  }
  .housing-relation-stats > div + div {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }
  .housing-relation-stats small {
    grid-column: 1 / -1;
  }
  .housing-relation-layout {
    gap: 16px;
    padding: 12px 8px;
  }
  .theme-inspector {
    padding: 12px;
  }
  .theme-timeline > li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }
  .theme-verdict {
    padding-inline: 12px;
  }
}

@media (max-width: 380px) {
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score + .ml-score {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 12px;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-value {
    margin: 0 0 8px;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] :is(.ml-axis-stats, .ml-axis-collection, .ml-warning) {
    grid-column: 1 / -1;
  }
}

/* Assumptions occupy a compact column beside the unchanged calculated output. */
#market-view .ml-analysis-layout {
  align-items: start;
}
#market-view .ml-analysis-layout > .ml-card {
  min-width: 0;
}
#market-view .ml-analysis-layout > .ml-card > h3 {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}
#market-view .ml-scenario-layout .ml-shock-row {
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px 12px;
  padding-block: 12px;
}
#market-view .ml-scenario-layout .ml-shock-row > label:first-child {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  grid-column: 1 / -1;
  gap: 8px;
  align-items: baseline;
}
#market-view .ml-scenario-layout .ml-axis-symbol {
  color: var(--muted);
  font-size: 16px;
}
#market-view .ml-scenario-layout .ml-shock-row output {
  font-size: 20px;
}
#market-view .ml-scenario-layout .ml-weight {
  display: grid;
  gap: 4px;
  align-items: start;
  font-size: 11px;
}
#market-view .ml-scenario-layout .ml-weight input {
  width: 100%;
  min-width: 0;
}
#market-view .ml-scenario-layout .ml-shock-row > input[type="range"] {
  align-self: end;
  min-height: 32px;
  accent-color: var(--ui-primary);
}
#market-view .ml-sensitivity-field,
#market-view .ml-input-group .ml-field-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 120px);
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
}
#market-view .ml-scenario-reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(144px, .6fr);
  align-items: end;
  gap: 16px;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border);
}
#market-view :is(.ml-principal-reading, .ml-result-context) {
  margin: 0;
}
#market-view :is(.ml-principal-reading, .ml-result-context) dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
#market-view .ml-principal-reading dd {
  margin: 4px 0 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 24px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#market-view .ml-result-context {
  display: grid;
  gap: 8px;
}
#market-view .ml-result-context > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
#market-view .ml-result-context dd {
  margin: 0;
  font: 14px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
}
#market-view .ml-reading-heading {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
}
#market-view .ml-input-group {
  min-width: 0;
  margin: 16px 0 0;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}
#market-view .ml-input-group legend {
  padding: 0 12px 0 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
#market-view .ml-input-group .ml-input-grid {
  gap: 0 12px;
}
#market-view .ml-input-group .ml-field {
  min-width: 0;
  margin: 8px 0;
}
#market-view .ml-input-group input {
  min-width: 0;
  width: 100%;
}
#market-view .ml-economics-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 12px 0;
}
#market-view .ml-economics-results > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 12px 12px 12px 0;
}
#market-view .ml-economics-results dd {
  font-size: 18px;
  text-align: left;
  overflow-wrap: anywhere;
}
#market-view .ml-economics-results > .ml-principal-result {
  grid-column: 1 / -1;
  grid-row: 1;
  gap: 4px;
  padding: 4px 0 16px;
  border-bottom-color: var(--border);
}
#market-view .ml-economics-results > .ml-principal-result dd {
  font-size: 24px;
  line-height: 1.2;
}
#market-view .ml-economics-results > .ml-payback-result {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  padding-right: 0;
}
#market-view .ml-economics-results > .ml-payback-result dd {
  justify-self: end;
  font-size: 13px;
}

/* The diagnosis dialog separates standardized readings from the underlying
   observation and its clock. The stored direction and all values are intact. */
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, .8fr);
  align-items: end;
  gap: 16px;
  padding: 4px 0 16px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-main > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-label {
  font-size: 14px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-kind {
  grid-column: 1;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-value {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 24px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-formula {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-formula strong {
  font-size: 20px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-measure {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score .ml-axis-value {
  display: block;
  margin: 4px 0 12px;
  font-size: 24px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-observations {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-stats {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-observations dt {
  color: var(--muted);
  font-size: 11px;
}
.compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-stats > span:first-child {
  font-size: 13px;
}

/* Backtest assumptions form one column; the result, equity curve and records
   remain separate reading surfaces, with their existing scroll owners. */
.rsi-experiment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.rsi-experiment-input,
.rsi-experiment-result {
  min-width: 0;
  padding: 4px 0 16px;
}
.rsi-experiment-result {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.rsi-experiment-result > h3 {
  margin: 4px 0 12px;
  font-size: 14px;
  font-weight: 500;
}
.rsi-experiment-input .rsi-backtest-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}
.rsi-experiment-input .rsi-backtest-form > label {
  min-width: 0;
  gap: 4px;
}
.rsi-experiment-input .rsi-backtest-form input {
  min-width: 0;
  width: 100%;
  min-height: 32px;
}
.rsi-experiment-input .rsi-backtest-form > button {
  grid-column: 1 / -1;
  min-height: 36px;
}
.rsi-experiment-result .rsi-backtest-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0 0 16px;
}
.rsi-experiment-result .rsi-backtest-metrics > div {
  min-width: 0;
  padding: 8px 0;
  border-right: 0;
  border-bottom: 1px solid var(--border-soft);
}
.rsi-experiment-result .rsi-backtest-metrics dd {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.rsi-experiment-result .rsi-backtest-metrics > .rsi-metric-primary {
  grid-column: 1 / -1;
  padding-top: 4px;
  padding-bottom: 12px;
  border-bottom-color: var(--border);
}
.rsi-experiment-result .rsi-metric-primary dd {
  font-size: 24px;
}
.rsi-experiment-result > p:not(.ml-error) {
  max-width: 64ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.rsi-experiment-result > .ml-loading-skeleton {
  height: 280px;
  min-height: 280px;
}

/* Housing analysis places the three distinct correlations beside the scatter
   and lag ledger. A price chart's height and coordinate mapping are untouched. */
.housing-relation-workspace {
  display: grid;
  grid-template-columns: minmax(180px, 224px) minmax(0, 1fr);
}
.housing-relation-workspace .housing-relation-stats {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding: 0;
  border-right: 1px solid var(--border);
}
.housing-relation-workspace .housing-relation-stats > div {
  padding: 16px 12px;
  gap: 4px;
  border-left: 0;
  border-bottom: 1px solid var(--border-soft);
}
.housing-relation-workspace .housing-relation-stats strong {
  font-size: 24px;
}
.housing-relation-workspace .housing-relation-layout {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0 12px 16px;
}
.housing-relation-workspace .housing-relation-layout > div {
  min-width: 0;
}
.housing-summary-readings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0;
}
.housing-summary-readings > div {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.housing-summary-readings dt {
  color: var(--muted);
  font-size: 12px;
}
.housing-summary-readings dd {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.housing-summary-readings > :is(.housing-summary-context, .housing-summary-principal, .housing-summary-correlation) {
  grid-column: 1 / -1;
}
.housing-summary-readings > .housing-summary-context {
  padding-top: 0;
}
.housing-summary-readings :is(.housing-summary-context, .housing-summary-correlation) dd {
  font-size: 14px;
}
.housing-summary-readings .housing-summary-principal dd {
  font-size: 24px;
}

/* A selected theme source reads as a short document with a separate judgment
   ledger. Both sources and recorded judgments keep their original actions. */
.theme-chart-layout {
  grid-template-columns: minmax(0, 1fr) 264px;
}
.theme-inspector {
  padding: 12px;
}
.theme-evidence-reading {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.theme-evidence-reading h2 {
  font-size: 14px;
  line-height: 1.5;
}
.theme-evidence-reading > time {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.theme-evidence-reading .theme-availability {
  display: block;
  margin-block: 8px;
  font-size: 12px;
  line-height: 1.65;
}
.theme-evidence-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.theme-evidence-actions :is(a, button) {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.theme-judgment-reading {
  padding-top: 12px;
}
.theme-judgment-reading > h2 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.theme-judgment-reading .theme-criterion-readout {
  display: block;
  width: auto;
  margin: 0;
  padding: 12px 0;
  border-top: 0;
  border-bottom: 1px solid var(--border-soft);
}
.theme-judgment-reading .theme-criterion-readout:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.theme-judgment-reading .theme-criterion-readout p {
  margin-bottom: 0;
}
.housing-method ul,
.theme-method ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
}
.housing-method li,
.theme-method li {
  min-width: 0;
  margin: 0;
}

@media (min-width: 1001px) {
  #market-view .ml-analysis-layout,
  .rsi-experiment-layout {
    grid-template-columns: minmax(264px, 320px) minmax(0, 1fr);
  }
  .rsi-experiment-input {
    padding-right: 16px;
  }
  .rsi-experiment-result {
    padding: 4px 0 16px 16px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

@media (max-width: 1000px) {
  .housing-relation-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .housing-relation-workspace .housing-relation-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
  }
  .housing-relation-workspace .housing-relation-stats > div {
    padding: 12px;
  }
  .housing-relation-workspace .housing-relation-layout {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .theme-chart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .theme-inspector {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 16px;
  }
  .theme-evidence-reading {
    padding: 0 16px 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .theme-judgment-reading {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  #market-view .ml-scenario-reading {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  #market-view .ml-scenario-layout .ml-shock-row > input[type="range"],
  .rsi-experiment-input .rsi-backtest-form :is(input, button),
  .theme-evidence-actions :is(a, button) {
    min-height: 44px;
  }
  #market-view .ml-result-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #market-view .ml-result-context > div {
    display: grid;
    gap: 4px;
  }
  #market-view .ml-economics-results {
    grid-template-columns: minmax(0, 1fr);
  }
  #market-view .ml-economics-results > div:not(.ml-principal-result) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 0;
  }
  #market-view .ml-economics-results > .ml-payback-result dd {
    margin-left: auto;
  }
  #market-view .ml-input-group input,
  .rsi-experiment-input .rsi-backtest-form input {
    font-size: 16px;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-formula {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    justify-items: start;
    text-align: left;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-direction-formula > span:nth-of-type(n+2) {
    grid-column: 1 / -1;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 16px;
    padding: 12px 0;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score + .ml-score {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-measure {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-score .ml-axis-value {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-observations {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 12px;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] .ml-axis-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: baseline;
  }
  .compact-toolbar-dialog[data-toolbar-dialog="market-summary"] :is(.ml-axis-collection, .ml-warning) {
    grid-column: 1 / -1;
  }
  .housing-relation-workspace .housing-relation-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .housing-relation-workspace .housing-relation-stats > div {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 0;
  }
  .housing-relation-workspace .housing-relation-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }
  .housing-summary-readings {
    gap: 0 16px;
  }
  .housing-summary-readings dd {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  .theme-inspector {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .theme-evidence-reading {
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .housing-method ul,
  .theme-method ul {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Source: editorial-ledgers.css; SHA-256: e52c762148a868f32d399ff8d24f21e04fab8334075fa28ac5888e26a342b571 */
/* Atlas · Financial tables, calendars and research reading surfaces.
 * Presentation only: keep the original scroll owners, sticky cells, measured
 * row allocation, dialog lifecycle and shell-hosted toolbar visibility.
 * Visual decisions: design-system/bitcoin-cycle-atlas/MASTER.md.
 * Atlas records have no direct TradingView counterpart. Apply the observed
 * neutral surfaces, compact type and rules without replacing their data model.
 */

/* Asset comparison retains its two-line observations and measured fill rows. */
#data-view.daily-workspace {
  --asset-paper: var(--bg);
  --asset-grid: var(--border-soft);
  --asset-muted: var(--muted);
  --asset-route: var(--ui-primary);
}
#data-view .asset-table-panel {
  border-inline: 0;
  border-bottom: 0;
}
#data-view .asset-comparison-table thead th {
  padding-block: 4px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  border-bottom-color: var(--border);
}
#data-view .asset-comparison-table .asset-mobile-name-header {
  text-align: left;
  padding-left: 12px;
  box-shadow: 1px 0 0 var(--border);
}
#data-view .asset-comparison-table .asset-name {
  background: var(--surface);
  box-shadow: 1px 0 0 var(--border);
  letter-spacing: normal;
}
#data-view .asset-name-symbol {
  font-weight: 600;
  letter-spacing: normal;
}
#data-view .asset-name-label {
  font-weight: 500;
}
#data-view .asset-comparison-table .asset-group {
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}
#data-view .asset-category {
  color: var(--subtle);
}
#data-view .asset-comparison-table :is(#asset-start-header,#asset-latest-header,.asset-ytd-header) {
  padding-inline: 12px;
  text-align: right;
}
#data-view .asset-comparison-table .asset-stat-header {
  padding-inline: 4px 12px;
  text-align: right;
}
#data-view .asset-comparison-table :is(#asset-start-header,.asset-start,.asset-ytd-header,.asset-ytd,.asset-judgment-header,.asset-judgment-cell) {
  border-left: 1px solid var(--border);
}
#data-view .asset-comparison-table #asset-latest-header {
  color: var(--text);
}
#data-view .asset-cell-date {
  color: var(--subtle);
}
#data-view .asset-comparison-table .asset-group-start:not(:first-child) > :is(th,td) {
  border-top-color: var(--border);
}
#data-view .asset-comparison-table .asset-latest,
#data-view .asset-comparison-table .asset-ytd {
  font-weight: 600;
}
#data-view .asset-comparison-table .asset-judgment-header {
  text-align: left;
  padding-left: 16px;
}
#data-view .asset-judgment {
  font-weight: 500;
  letter-spacing: normal;
}
#data-view .asset-judgment:is(.asset-judgment-strong-buy,.asset-judgment-strong-sell) {
  font-weight: 650;
}
#data-view .asset-comparison-table tbody tr:is(:hover,:focus-within) > :is(td,.asset-name) {
  background: var(--surface-hover);
}
#data-view .asset-comparison-table tbody tr:focus-within > .asset-name {
  box-shadow: inset 2px 0 var(--focus), 1px 0 var(--border);
}

/* Dialog titles, tab strips and record lists share the terminal's UI scale. */
#data-view :is(.daily-method-dialog,.asset-history-dialog) {
  border-color: var(--border-strong);
  border-radius: var(--panel-radius);
  background: var(--surface);
}
#data-view :is(.daily-method-heading,.asset-history-heading) {
  border-bottom-color: var(--border);
  background: var(--surface);
}
#data-view :is(.daily-method-heading,.asset-history-heading) h2 {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: normal;
}
#data-view .asset-history-heading p {
  color: var(--subtle);
  font-weight: 500;
  letter-spacing: normal;
}
#data-view .daily-method-dialog h3 {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
}
#data-view .daily-method-dialog :is(p,li) {
  font-size: 14px;
  line-height: 1.65;
}
#data-view .asset-selected-reason {
  padding: 0 0 8px 12px;
  border-left-color: var(--accent-ink);
  background: transparent;
}
#data-view .asset-reason-metrics {
  gap: 12px;
  margin-block: 16px;
}
#data-view .asset-reason-metrics > div {
  padding: 8px 0;
  border: 0;
  border-block: 1px solid var(--border-soft);
  background: transparent;
}
#data-view .asset-reason-metrics dt {
  font-size: 12px;
}
#data-view .asset-reason-metrics dd {
  font-size: 20px;
  font-weight: 500;
}
#data-view .asset-history-mode {
  gap: 16px;
  margin-block: 12px;
  border-bottom: 1px solid var(--border);
}
#data-view .asset-history-mode button {
  padding-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#data-view .asset-history-mode button[aria-pressed=true] {
  color: var(--ui-link);
  background: transparent;
  box-shadow: inset 0 -2px var(--ui-primary);
}
#data-view .asset-history-inline {
  color: var(--ui-link);
}
#data-view .asset-history-groups button {
  border-color: transparent;
  border-radius: 3px;
}
#data-view .asset-history-groups button[aria-pressed=true] {
  border-color: var(--border);
  background: var(--surface-hover);
}
#data-view :is(.asset-history-disclosure,.asset-history-reason,.asset-history-method p) {
  font-size: 13px;
  line-height: 1.6;
}
#data-view .asset-history-family h3 {
  padding-block: 4px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
#data-view .asset-history-asset[data-selected=true] {
  background: var(--surface-raised);
  box-shadow: inset 2px 0 var(--ui-primary);
}
#data-view .asset-history-metrics {
  gap: 12px;
}
#data-view .asset-history-detail-heading h3 {
  font-size: 16px;
}
#data-view .asset-history-metrics dd {
  font-size: 20px;
  font-weight: 500;
}
#data-view .asset-history-record-list {
  grid-template-columns: minmax(0,1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
#data-view .asset-history-record-list button {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
}
#data-view .asset-history-record-list button[aria-pressed=true] {
  background: var(--surface-raised);
  box-shadow: inset 2px 0 var(--ui-primary);
}
#data-view .asset-history-record-list strong {
  font-size: 12px;
  font-weight: 500;
}

/* Research rows keep the title and the actual instrument/source metadata. */
#evidence-view {
  --evidence-row-height: 48px;
}
#evidence-view .evidence-controls input {
  color: var(--text);
  background: var(--bg);
  border-color: var(--border-strong);
}
#evidence-view .evidence-controls input::placeholder {
  color: var(--muted);
}
body #evidence-view .evidence-table-shell {
  border: 0;
  border-radius: 0;
  background: var(--bg);
}
#evidence-view .evidence-table caption {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
}
#evidence-view .evidence-table thead {
  background: var(--surface);
}
#evidence-view .evidence-table th {
  height: 32px;
  padding: 4px 12px;
  border-bottom-color: var(--border);
  color: var(--muted);
  font-weight: 500;
}
#evidence-view .evidence-table td {
  padding: 4px 12px;
  border-bottom-color: var(--border-soft);
  font-size: 13px;
}
#evidence-view .evidence-table tbody tr:is(:hover,:focus-within) {
  background: var(--surface-hover);
}
#evidence-view .evidence-table tbody tr:focus-within > .evidence-rank {
  box-shadow: inset 2px 0 var(--focus);
}
#evidence-view .evidence-rank,
#evidence-view .evidence-date {
  color: var(--subtle);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
body #evidence-view .evidence-title button.research-open {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: center;
  justify-items: start;
  gap: 2px;
  color: var(--text);
  padding-block: 0;
}
body #evidence-view .evidence-title button.research-open > .evidence-title-text {
  max-width: 100%;
  white-space: normal;
  -webkit-line-clamp: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
#evidence-view .research-row-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  color: var(--subtle);
  font: 12px/1.4 var(--font);
}
#evidence-view .research-row-symbols {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#evidence-view .research-row-record {
  display: none;
}
#evidence-view :is(.evidence-publisher,.evidence-role) {
  color: var(--muted);
  line-height: 1.5;
}
#evidence-view .evidence-grade {
  border-left: 1px solid var(--border-soft);
}
#evidence-view .evidence-title button.research-open:hover {
  color: var(--ui-link);
}
#evidence-view .evidence-grade button {
  justify-content: center;
  border-radius: 3px;
}
#evidence-view .evidence-grade .research-summary-badge {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-link);
  font-weight: 500;
  text-decoration: none;
}
#evidence-view .evidence-pagination {
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
}
#evidence-view .evidence-pagination button {
  border-color: transparent;
  border-radius: var(--control-radius);
}
#evidence-view .evidence-empty td {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
}

/* A single reading column stays within the fixed action band and scroll owner. */
.research-reader {
  width: min(840px,calc(100% - 48px));
  border-color: var(--border-strong);
  border-radius: var(--panel-radius);
  background: var(--surface);
  --reader-surface: var(--surface);
}
.research-reader-nav {
  height: 48px;
  padding-inline: 16px;
  background: var(--surface);
}
.research-wordmark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
}
.research-reader-nav > div:first-child > span:last-child {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: normal;
}
.research-reader-actions button {
  min-height: 32px;
  padding: 4px 8px;
  border-color: transparent;
  border-radius: var(--control-radius);
  background: transparent;
  font-size: 13px;
}
.research-reader-actions [data-reader-action=close] {
  background: transparent;
  border-color: transparent;
}
.research-article {
  max-width: 720px;
  padding: 24px 24px 40px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: normal;
}
.research-article-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.research-article-heading > :is(.research-tags,#research-reader-title,.research-deck) {
  grid-column: 1 / -1;
}
.research-tags {
  gap: 8px 12px;
  margin-bottom: 12px;
}
.research-tags span {
  padding: 0 12px 0 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.research-tags span:last-child {
  padding-right: 0;
  border-right: 0;
}
.research-article #research-reader-title {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: normal;
}
.research-article p.research-deck {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.research-byline {
  font-size: 13px;
}
.research-avatar {
  display: none;
}
.research-meta {
  display: grid;
  grid-template-columns: auto auto;
  align-self: center;
  justify-items: end;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 12px;
}
.research-meta a {
  grid-column: 1 / -1;
  margin-left: 0;
}
.research-article a {
  color: var(--ui-link);
}
.research-article .research-provenance {
  margin: 16px 0 20px;
  padding: 8px 12px;
  border-left-color: var(--border-strong);
  border-radius: 0;
  background: var(--surface-raised);
  font-size: 13px;
  line-height: 1.65;
}
.research-article h2 {
  margin: 24px 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
}
.research-article > section {
  padding-block: 16px;
  border-top: 1px solid var(--border-soft);
}
.research-article > section > h2 {
  margin: 0 0 12px;
}
.research-article > section > :last-child {
  margin-bottom: 0;
}
.research-article h3 {
  margin: 12px 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.research-article p.research-lead {
  font-size: 15px;
  line-height: 1.7;
}
.research-article p {
  margin-block: 12px;
}
.research-claim {
  padding: 16px 0;
  border-bottom-color: var(--border-soft);
}
.research-claim:first-of-type {
  padding-top: 0;
}
.research-claim:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.research-article .research-verdict {
  display: inline-block;
  padding: 0 0 0 8px;
  border-left: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
}
.research-related {
  padding: 8px;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.research-related:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.research-source-grid {
  gap: 0;
  font-size: 13px;
}
.research-source-grid > div {
  padding-block: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.research-source-grid dt {
  color: var(--muted);
  font-size: 12px;
}
.research-hash {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.research-content-switch {
  gap: 16px;
  padding: 0;
  margin-bottom: 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.research-content-switch button {
  flex: none;
  min-height: 36px;
  padding-inline: 0;
  border-radius: 0;
  font-weight: 500;
}
.research-content-switch button[aria-pressed=true] {
  color: var(--ui-link);
  background: transparent;
  box-shadow: inset 0 -2px var(--ui-primary);
}
.research-source-text {
  padding: 16px;
  border-color: var(--border-soft);
  border-radius: var(--control-radius);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.7;
}
.research-article-footer {
  margin-top: 24px;
  padding-top: 16px;
}
.research-reading-progress {
  height: 2px;
}
.research-reading-progress span {
  background: var(--ui-primary);
}
.research-caveat {
  color: var(--muted);
}

/* IPO schedules use compact calendar labels and the existing complete ledger. */
body #ipo-view .ipo-table-shell {
  border-color: var(--border-soft);
  border-radius: 0;
  background: var(--bg);
}
#ipo-view .ipo-table {
  font-size: 13px;
}
#ipo-view .ipo-table caption {
  padding: 8px 12px;
  border-bottom-color: var(--border);
  background: var(--surface);
  font-weight: 500;
}
#ipo-view .ipo-table th {
  padding-block: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
#ipo-view .ipo-table td {
  padding-block: 6px;
  border-bottom-color: var(--border-soft);
  vertical-align: middle;
}
#ipo-view .ipo-table .ipo-name {
  background: var(--surface);
  font-weight: 500;
  box-shadow: 1px 0 var(--border);
}
#ipo-view .ipo-table :is(th,td):nth-child(4),
#ipo-view .ipo-table :is(th,td):nth-child(6),
#ipo-view .ipo-table :is(th,td):nth-child(9) {
  border-left: 1px solid var(--border);
}
#ipo-view .ipo-table tbody tr:is(:hover,:focus-within),
#ipo-view .ipo-table tbody tr:is(:hover,:focus-within) > .ipo-name {
  background: var(--surface-hover);
}
#ipo-view :is(.ipo-num,.ipo-dday) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
#ipo-view .ipo-badge {
  padding: 0 0 0 8px;
  border-left: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  line-height: 1.6;
}
#ipo-view .ipo-state-closed {
  opacity: 1;
  color: var(--muted);
}
#ipo-view .ipo-state-closed .ipo-name {
  color: var(--muted);
}
#ipo-view .ipo-month-weekdays {
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  font-size: 12px;
}
#ipo-view .ipo-month-weekdays > span {
  padding-left: 8px;
}
#ipo-view .ipo-month-grid {
  border-color: var(--border-soft);
}
#ipo-view .ipo-month-day {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: 24px auto auto;
  align-content: start;
  gap: 4px;
  padding: 8px;
  border-color: var(--border-soft);
  background: var(--bg);
}
#ipo-view .ipo-month-day:is(:hover,:active) {
  background: var(--surface-hover);
}
#ipo-view .ipo-month-day.is-outside {
  background: var(--surface);
}
#ipo-view .ipo-month-day.is-outside .ipo-day-number {
  color: var(--subtle);
}
#ipo-view .ipo-day-number {
  justify-self: start;
  min-width: 24px;
  min-height: 24px;
  color: var(--text);
  font: 500 14px/24px var(--font);
  font-variant-numeric: tabular-nums;
  text-align: left;
}
#ipo-view .ipo-month-day.is-today .ipo-day-number {
  outline: 1px solid var(--ui-primary);
  border-radius: var(--control-radius);
  background: var(--surface-hover);
  color: var(--text);
  text-align: center;
}
#ipo-view .ipo-day-events { min-width: 0; }
#ipo-view .ipo-cal-event {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  line-height: 1.5;
}
#ipo-view .ipo-cal-event > span {
  font-size: 11px;
  font-weight: 500;
}
#ipo-view .ipo-cal-event strong {
  color: var(--text);
  font-weight: 500;
}
#ipo-view .ipo-month-day.is-outside .ipo-cal-event strong {
  color: var(--muted);
}
#ipo-view .ipo-day-more {
  font-size: 11px;
  line-height: 1.5;
}
#ipo-view .ipo-day-dialog {
  border-color: var(--border-strong);
  border-radius: var(--panel-radius);
  background: var(--surface);
}
#ipo-view .ipo-day-dialog > header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
#ipo-view .ipo-day-dialog h2 {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
}
#ipo-view .ipo-date-event {
  padding-block: 12px;
  border-bottom-color: var(--border-soft);
}
#ipo-view .ipo-date-event h3 {
  font-size: 14px;
  line-height: 1.5;
  margin-block: 8px;
}
#ipo-view .ipo-date-event p,
#ipo-view .ipo-day-dialog > p {
  font-size: 13px;
  line-height: 1.6;
}
#ipo-view .ipo-source-panel {
  border-radius: var(--panel-radius);
  background: var(--surface-raised);
}
#ipo-view .ipo-source-panel p {
  font-size: 13px;
  line-height: 1.6;
}

/* Existing methodology disclosures keep their contents and source links. */
.research-detail-content :is(p,li),
#method-dialog :is(p,li) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.research-detail-content h3,
#method-dialog h3 {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: normal;
}
.research-detail-content .formula-block,
#method-dialog .method-formula {
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}
.research-detail-content :is(th,td) {
  font-size: 12px;
  border-bottom-color: var(--border-soft);
}
.research-detail-content th {
  background: var(--surface);
  color: var(--muted);
}

@media (max-width: 760px) {
  #data-view .asset-comparison-table .asset-mobile-name-header {
    padding-left: 8px;
  }
  #data-view .asset-comparison-table .asset-judgment-header {
    padding-left: 12px;
  }
  #data-view .asset-history-metrics dd {
    font-size: 20px;
  }
  #data-view .asset-history-record-list button {
    grid-template-columns: minmax(0,1fr);
  }
  #ipo-view .ipo-month-weekdays > span {
    padding-left: 4px;
  }
  #ipo-view .ipo-month-day {
    grid-template-rows: 24px auto auto;
    gap: 4px;
    padding: 4px;
  }
  #ipo-view .ipo-day-number {
    min-width: 24px;
    min-height: 24px;
    font-size: 13px;
    line-height: 24px;
  }
  #ipo-view .ipo-cal-event {
    display: block;
    gap: 0;
    font-size: 11px;
    line-height: 1.45;
  }
  #ipo-view .ipo-cal-event strong {
    display: block;
    color: inherit;
  }
  #ipo-view .ipo-day-more {
    font-size: 11px;
  }
}
@media (max-width: 640px) {
  #evidence-view {
    --evidence-row-height: 64px;
  }
  #evidence-view .evidence-table :is(th,td) {
    padding-inline: 8px;
  }
  body #evidence-view .evidence-title button.research-open > .evidence-title-text {
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.4;
  }
  #evidence-view .research-row-meta {
    font-size: 11px;
  }
  .research-reader {
    width: 100%;
    border: 0;
    border-radius: 0;
  }
  .research-reader-nav {
    height: 56px;
    padding-inline: 12px;
  }
  .research-reader-actions button {
    min-height: 44px;
    padding-inline: 8px;
  }
  .research-article {
    padding: 20px 16px 32px;
    font-size: 15px;
  }
  .research-article-heading {
    display: block;
    padding-bottom: 16px;
  }
  .research-meta {
    display: flex;
    margin-top: 12px;
    gap: 8px 12px;
  }
  .research-meta a {
    margin-left: auto;
  }
  .research-article #research-reader-title {
    font-size: 22px;
    letter-spacing: normal;
  }
  .research-article h2 {
    font-size: 16px;
  }
  .research-article p.research-lead {
    font-size: 15px;
  }
  .research-source-grid > div {
    grid-template-columns: 88px minmax(0,1fr);
    gap: 12px;
  }
  .research-source-text {
    padding: 12px;
    font-size: 12px;
  }
  .research-content-switch button {
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  #evidence-view .research-row-meta {
    width: 100%;
  }
  #evidence-view .research-row-symbols {
    flex: none;
    max-width: 44%;
  }
  #evidence-view .research-row-record {
    display: block;
    flex: 1;
    min-width: 0;
    padding-left: 8px;
    border-left: 1px solid var(--border);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font);
  }
}
@media (max-width: 620px) {
  #data-view .asset-selected-reason {
    padding-left: 12px;
  }
  #data-view .asset-reason-metrics {
    gap: 0;
  }
  #data-view .asset-reason-metrics > div {
    padding-block: 8px;
    border-top: 0;
  }
  #data-view .asset-reason-metrics dd {
    font-size: 20px;
  }
}
@media (max-height: 800px) {
  #ipo-view .ipo-month-day {
    display: flex;
    padding-block: 4px;
    gap: 0;
  }
  #ipo-view .ipo-day-number {
    min-width: 24px;
    min-height: 20px;
    font-size: 13px;
    line-height: 20px;
  }
  #ipo-view :is(.ipo-cal-event,.ipo-day-more) {
    font-size: 11px;
    line-height: 16px;
  }
}
@media (max-width: 760px), (pointer: coarse) {
  #data-view .asset-history-dialog button,
  #data-view .daily-method-heading button,
  #data-view #asset-history-close,
  #data-view #history-date,
  #data-view #history-slider,
  .research-reader-actions button,
  .research-content-switch button,
  .research-related {
    min-height: 44px;
  }
  #data-view .daily-method-heading button,
  #data-view #asset-history-close,
  .research-reader-actions button {
    min-width: 44px;
  }
}

/* R19 P3: dashboard filters and reading cards. The research paginator and
   asset ledger keep their measured row/header sizes and native scroll owners.
   Data tables are the density exception; prose and filter labels use 15px. */
body[data-shell=dashboard][data-page=evidence] #evidence-view .evidence-controls {
  display: grid;
  grid-template-columns: minmax(156px,1fr) max-content max-content max-content;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius-sm);
  background: var(--surface-raised);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: 4px;
  overscroll-behavior-x: contain;
}
body[data-shell=dashboard] #evidence-view .evidence-controls > * {
  min-width: 0;
}
body[data-shell=dashboard] #evidence-view .evidence-controls :is(input,select,button) {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--pill-radius);
  background: var(--surface);
  color: var(--text);
  font: 400 var(--type-body-sm)/20px var(--font);
}
body[data-shell=dashboard] #evidence-view .evidence-search input {
  width: 100%;
}
body[data-shell=dashboard] #evidence-view .evidence-controls select {
  max-width: 180px;
}
body[data-shell=dashboard] #evidence-view .evidence-controls button:hover {
  background: var(--surface-hover);
}
body[data-shell=dashboard] #evidence-view .evidence-table-shell {
  border: 1px solid var(--border);
  border-radius: var(--card-radius-sm);
  background: var(--surface);
}
body[data-shell=dashboard] #evidence-view .evidence-pagination {
  min-width: 0;
  padding-block: 4px 0;
  border-top: 0;
  font-size: var(--type-meta);
}
body[data-shell=dashboard] #evidence-view .evidence-pagination button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--pill-radius);
  background: var(--surface);
  color: var(--text);
  font: 400 var(--type-body-sm)/20px var(--font);
}
body[data-shell=dashboard] #evidence-view .evidence-pagination button:disabled {
  color: var(--subtle);
  cursor: default;
}
body[data-shell=dashboard] #evidence-view :is(input,select,button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}

/* Preserve the wide action/filter grid's height and the table's bottom edge.
   The 44px controls use the space previously occupied by toolbar padding. */
body[data-shell=dashboard] #data-view .daily-heading {
  padding-block: 2px;
  border-bottom: 0;
}
body #data-view .asset-filters {
  padding-block: 2px;
  border-radius: var(--card-radius-sm);
  background: var(--surface-raised);
}
body #data-view :is(.daily-back,.daily-action,.asset-filter-reset),
body #data-view .asset-filters :is(input,select) {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--pill-radius);
  background: var(--surface);
  color: var(--text);
  font: 400 var(--type-body-sm)/20px var(--font);
}
body #data-view .daily-back {
  width: 44px;
  padding: 12px;
}
body #data-view :is(.daily-action,.asset-filter-reset):hover:not(:disabled) {
  background: var(--surface-hover);
}
body #data-view .asset-table-summary {
  font: 400 var(--type-meta)/16px var(--font);
}
body #data-view .asset-context {
  font-size: var(--type-body-sm);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body #data-view .asset-table-panel {
  border-top: 1px solid var(--border);
  border-radius: var(--card-radius-sm) var(--card-radius-sm) 0 0;
}
body #data-view :is(.asset-history-mode,.asset-history-groups) {
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
}
body #data-view :is(.asset-history-mode,.asset-history-groups) button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--pill-radius);
  background: var(--surface);
  color: var(--text);
  font-size: var(--type-body-sm);
  box-shadow: none;
}
body #data-view :is(.asset-history-mode,.asset-history-groups) button[aria-pressed=true] {
  border-color: var(--accent-ink);
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: none;
}
body #data-view :is(.asset-reason-metrics,.asset-history-metrics,.asset-history-record-list) {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr));
  gap: 12px;
  border: 0;
}
body #data-view :is(.asset-reason-metrics,.asset-history-metrics) > div,
body #data-view .asset-history-record-list button {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius-sm);
  background: var(--surface-raised);
}
body #data-view .asset-history-record-list button {
  grid-template-columns: minmax(0,1fr);
  min-height: 44px;
  overflow-wrap: anywhere;
}
body #data-view .asset-history-record-list button[aria-pressed=true] {
  border-color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: none;
}
body #data-view .asset-history-record-list :is(strong,span),
body #data-view :is(.asset-reason-metrics,.asset-history-metrics) dt {
  font-size: var(--type-meta);
}
body #data-view :is(.daily-method-dialog,.asset-history-dialog) {
  border-radius: var(--card-radius-md);
}
body #data-view .daily-method-dialog :is(p,li),
body #data-view :is(.asset-selected-reason,.asset-history-disclosure,.asset-history-reason,.asset-history-empty),
body #data-view .asset-history-method p {
  font-size: var(--type-body-sm);
  line-height: 1.6;
}
body #data-view :is(button,input,select,[tabindex],a,summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}

/* The original reader keeps its own fixed action band and scroll restoration. */
body .research-reader {
  border-radius: var(--card-radius-md);
}
body .research-article,
body .research-article p:is(.research-deck,.research-lead),
body .research-article .research-provenance,
body .research-source-text,
body .research-related {
  font-size: var(--type-body-sm);
  line-height: 1.6;
}
body .research-article :is(.research-meta,.research-tags span,.research-small,.research-media-kind,.research-article-footer),
body .research-byline > div > span,
body .research-content-switch span {
  font-size: var(--type-meta);
}
body .research-crosslinks {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap: 12px;
}
body .research-crosslinks > span {
  grid-column: 1 / -1;
  font-size: var(--type-meta);
}
body .research-related,
body .research-article .research-provenance {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius-sm);
  background: var(--surface-raised);
}
body .research-related {
  min-width: 0;
  min-height: 44px;
  overflow-wrap: anywhere;
}
body .research-reader-actions button,
body .research-content-switch button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--pill-radius);
  color: var(--text);
  background: var(--surface);
  font-size: var(--type-body-sm);
}
body .research-content-switch {
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
body .research-content-switch button[aria-pressed=true] {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: none;
}
body .research-reader :is(a,button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}
@media (max-width: 640px) {
  body .research-reader { border-radius: 0; }
  /* Phone IPO: one scrolling control row, then a continuous month grid. */
  body #ipo-view .ipo-topbar {
    position: relative;
    z-index: 4;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    margin: 0;
    padding: 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    scrollbar-width: none;
  }
  body #ipo-view .ipo-topbar::-webkit-scrollbar { display: none; }
  body #ipo-view .ipo-topbar:has(details[open]) { overflow: visible; }
  body #ipo-view .ipo-topbar :is(.ipo-heading, .ipo-calendar-nav, .ipo-toolbar) {
    display: contents;
  }
  body #ipo-view .ipo-topbar .ipo-month-controls { order: 1; }
  body #ipo-view .ipo-topbar .ipo-segmented { order: 2; }
  body #ipo-view .ipo-topbar .ipo-search { order: 3; }
  body #ipo-view .ipo-topbar .ipo-calendar-jumps { order: 4; }
  body #ipo-view .ipo-topbar .ipo-source-disclosure { order: 5; }
  body #ipo-view .ipo-topbar :is(.ipo-month-controls, .ipo-calendar-jumps, .ipo-segmented) {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  body #ipo-view .ipo-topbar .ipo-segmented {
    gap: 4px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }
  body #ipo-view .ipo-topbar :is(.ipo-segmented button, .ipo-calendar-nav button, .ipo-source-disclosure summary) {
    flex: none;
    height: 32px;
    min-width: 0;
    min-height: 32px;
    padding: 0 8px;
    line-height: 30px;
  }
  body #ipo-view .ipo-topbar .ipo-month-controls button {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }
  body #ipo-view .ipo-topbar .ipo-page-label {
    flex: none;
    min-width: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    line-height: 32px;
    white-space: nowrap;
  }
  body[data-shell=dashboard] #ipo-view .ipo-topbar .ipo-segmented button {
    min-width: 0;
    width: auto;
    padding: 0 8px;
  }
  body[data-shell=dashboard] #ipo-view .ipo-topbar input.ipo-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 72px;
    max-width: none;
    height: 32px;
    min-height: 32px;
    padding: 0 8px;
  }
  body #ipo-view .ipo-topbar .ipo-source-disclosure { position: relative; flex: none; }
  body #ipo-view .ipo-month-page {
    grid-template-rows: 22px minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    overflow: hidden;
  }
  body[data-shell=dashboard] #ipo-view :is(.ipo-month-weekdays, .ipo-month-grid) {
    width: 100%;
    min-width: 0;
    gap: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  body #ipo-view .ipo-month-weekdays {
    align-items: end;
    height: 22px;
    font-size: 11px;
    text-align: center;
  }
  body #ipo-view .ipo-month-weekdays > span { padding: 0; text-align: center; }
  body[data-shell=dashboard] #ipo-view .ipo-month-grid {
    grid-template-rows: repeat(var(--ipo-weeks, 6), minmax(0, 1fr));
    border: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }
  body[data-shell=dashboard] #ipo-view button.ipo-month-day {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-content: start;
    gap: 2px;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 3px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg);
  }
  body[data-shell=dashboard] #ipo-view .ipo-month-day.is-outside { background: var(--surface); }
  body[data-shell=dashboard] #ipo-view .ipo-month-day.is-today { border-color: var(--border); }
  body #ipo-view .ipo-day-number {
    justify-self: start;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 16px;
    padding: 0;
    outline: none;
    border-radius: 0;
    background: transparent;
    font: 500 12px/16px var(--font);
    text-align: left;
  }
  body #ipo-view .ipo-month-day.is-today .ipo-day-number {
    width: 20px;
    height: 20px;
    outline: none;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 600;
    line-height: 20px;
    text-align: center;
  }
  body #ipo-view .ipo-day-events { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
  body #ipo-view .ipo-cal-event {
    display: block;
    min-width: 0;
    font-size: 11px;
    line-height: 13px;
  }
  body #ipo-view .ipo-cal-event > span { display: none; }
  body #ipo-view .ipo-cal-event strong {
    display: block;
    min-width: 0;
    overflow: visible;
    color: var(--accent-ink);
    font-size: 11px;
    font-weight: 500;
    line-height: 13px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-overflow: unset;
  }
  body #ipo-view .ipo-cal-event strong::before { content: none; }
  body #ipo-view .ipo-cal-event[data-kind=subscription] strong { color: var(--green); }
  body #ipo-view .ipo-day-more {
    font-size: 10px;
    line-height: 12px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  body .research-reader-scroll { scroll-behavior: auto; }
  body #data-view :is(button,input,select),
  body #evidence-view :is(button,input,select),
  body .research-reader :is(a,button) { transition: none; }
}


/* Source: relay-room.css; SHA-256: 929cd9216d7dd505dd2b81f1e7906705467df1e9bc9647b9ba8947acee758d4b */
#relay-view[hidden]{display:none!important}
body[data-page="relay"]{overflow:hidden}

.relay-room{
  container:relay/inline-size;
  display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);
  height:100%;min-width:0;min-height:0;
  color:var(--text);background:var(--surface);
  font:var(--type-body-sm)/1.55 var(--font);
}
.relay-room *{box-sizing:border-box}

/* Telegram Web K geometry from tweb updateColumnWidths.ts. The list is 360px with a 320px minimum, and the message column is 696px. */
.relay-panes{
  --relay-layout:split;
  --relay-list-width:clamp(320px,100cqi - 520px,360px);
  --relay-media-max:420px;
  --relay-column:696px;
  display:grid;grid-template-columns:var(--relay-list-width) minmax(0,1fr);grid-template-rows:minmax(0,1fr);
  height:100%;min-width:0;min-height:0;background:var(--bg);
}
.relay-backdrop{display:none;background:var(--bg)}

/* 채널 목록 */
.relay-rooms{
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  border-right:1px solid var(--border);background:var(--surface);
}
.relay-rooms-head{display:flex;align-items:center;gap:8px;height:48px;padding:0 8px 0 16px;border-bottom:1px solid var(--border)}
.relay-rooms-head h2{margin:0;font-size:13px;font-weight:500;letter-spacing:0;color:var(--text)}
.relay-rooms-total{flex:1;color:var(--muted);font-size:var(--type-meta);font-variant-numeric:tabular-nums}
.relay-refresh{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:var(--pill-radius);background:transparent;color:var(--muted);cursor:pointer;transition:background .15s ease,color .15s ease}
.relay-refresh:hover{background:var(--surface-hover);color:var(--text)}
.relay-refresh .icon{width:18px;height:18px}

.relay-filter-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:8px 12px 10px;border-bottom:1px solid var(--border)}
.relay-filter-form label{display:block;min-width:0}
.relay-filter-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.relay-filter-form :is(input,select,button){min-width:44px;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--border-strong);border-radius:var(--pill-radius);background:var(--surface);color:var(--text);font:inherit}
.relay-filter-form :is(input,select){width:100%;font-size:16px}
.relay-filter-form button{font-size:var(--type-meta);cursor:pointer}
.relay-filter-form button[hidden]{display:none}
.relay-filter-form :is(input,select,button):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.relay-filter-form output{grid-column:1/-1;font-size:var(--type-meta);line-height:1.4;color:var(--muted)}

.relay-room-list{list-style:none;margin:0;padding:6px 8px;display:grid;align-content:start;gap:2px;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}
.relay-room-item{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;width:100%;min-height:64px;padding:8px;border:0;border-radius:2px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;transition:background .15s ease}
.relay-room-item:hover{background:var(--surface-hover)}
.relay-room-item[aria-current="true"]{background:var(--accent-soft)}
.relay-room-item[aria-current="true"] .relay-room-name{color:var(--accent-ink)}
.relay-room-avatar,.relay-peer-avatar{display:grid;place-items:center;flex:none;border:1px solid var(--border);border-radius:50%;font-weight:500;line-height:1}
.relay-room-avatar{width:48px;height:48px;font-size:19px}
.relay-peer-avatar{width:40px;height:40px;font-size:16px}
:is(.relay-room-avatar,.relay-peer-avatar)[data-kind="chat"]{background:var(--accent);color:var(--on-accent)}
:is(.relay-room-avatar,.relay-peer-avatar)[data-kind="articles"]{background:var(--accent-soft);color:var(--accent-ink)}
:is(.relay-room-avatar,.relay-peer-avatar)[data-kind="editions"]{background:var(--surface-hover);color:var(--text)}
.relay-room-copy{display:grid;gap:2px;min-width:0}
.relay-room-top{display:flex;align-items:baseline;gap:8px;min-width:0}
.relay-room-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:15px;font-weight:500;line-height:22px}
.relay-room-time{flex:none;color:var(--muted);font-size:var(--type-meta);font-variant-numeric:tabular-nums}
.relay-room-sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:14px;line-height:20px}
.relay-rooms-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;height:36px;padding:0 16px;border-top:1px solid var(--border);color:var(--muted);font-size:var(--type-meta);font-weight:400;font-variant-numeric:tabular-nums}
.relay-rooms-foot time{color:var(--text)}

.relay-detail{container:relay-pane/inline-size;display:grid;grid-template-rows:auto auto minmax(0,1fr);min-width:0;min-height:0;background:var(--bg)}
.relay-detail-head{position:relative;z-index:4;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;height:48px;padding:0 12px;border-bottom:1px solid var(--border);background:var(--surface)}
.relay-head-lead{display:flex;align-items:center;gap:8px;min-width:0;grid-column:1;justify-self:start;max-width:100%}
.relay-head-center{display:flex;align-items:center;justify-content:center;grid-column:2;min-width:0}
.relay-head-date{display:flex;align-items:center;justify-content:flex-end;gap:6px;grid-column:3;justify-self:end;min-width:0}
.relay-head-stamp{display:inline-flex;align-items:center;height:32px;padding:0 10px;border:1px solid var(--border);border-radius:var(--pill-radius);color:var(--muted);font-size:13px;line-height:32px;font-variant-numeric:tabular-nums;white-space:nowrap}
.relay-detail-head--dates{gap:8px;padding:0 12px}
.relay-detail-head--dates .relay-peer{flex:1;min-width:0}
.relay-detail-head--dates :is(.relay-peer-sub,.relay-peer-updated){display:none}
.relay-detail-head--dates .relay-peer-avatar{width:28px;height:28px;font-size:13px}
.relay-date-rail{display:flex;flex:1 1 0;align-items:center;gap:6px;min-width:0;height:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline:8px;scrollbar-width:none}
.relay-date-rail::-webkit-scrollbar{display:none}
.relay-day-chip,.relay-date-rail .relay-edition-chip{flex:none;height:32px;min-width:44px;min-height:32px;padding:0 10px;border:1px solid var(--border);border-radius:var(--pill-radius);background:transparent;color:var(--muted);font:inherit;font-size:13px;line-height:32px;font-variant-numeric:tabular-nums;cursor:pointer}
.relay-day-chip:hover,.relay-date-rail .relay-edition-chip:hover{border-color:var(--border-strong);color:var(--text)}
.relay-day-chip.active,.relay-date-rail .relay-edition-chip.active{border-color:var(--accent-ink);background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
.relay-edition-menu{position:relative;flex:0 1 auto;min-width:0}
.relay-edition-trigger{display:inline-flex;align-items:center;gap:6px;height:32px;min-width:44px;max-width:100%;padding:0 8px 0 12px;border:1px solid var(--border);border-radius:var(--pill-radius);background:transparent;color:var(--text);font:inherit;font-size:13px;line-height:32px;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer}
.relay-edition-trigger .icon{width:16px;height:16px;color:var(--muted)}
.relay-edition-trigger[aria-expanded="true"]{border-color:var(--accent-ink);background:var(--accent-soft);color:var(--accent-ink)}
.relay-edition-list{position:absolute;z-index:6;top:calc(100% + 4px);right:0;left:auto;display:grid;gap:2px;width:max-content;min-width:140px;max-width:min(240px,calc(100vw - 24px));max-height:min(360px,60dvh);margin:0;padding:4px;overflow:auto;border:1px solid var(--border);border-radius:2px;background:var(--surface);box-shadow:none}
.relay-edition-list[hidden]{display:none}
.relay-edition-list .relay-edition-chip{display:flex;align-items:center;width:100%;min-width:0;height:auto;min-height:44px;padding:0 12px;border:0;border-radius:2px;background:transparent;color:var(--text);font:inherit;font-size:13px;line-height:20px;text-align:left;cursor:pointer}
.relay-edition-list .relay-edition-chip:hover{background:var(--surface-hover)}
.relay-edition-list .relay-edition-chip.active{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
.relay-detail-head .relay-paper-status{flex:none;color:var(--text);font-size:13px;font-weight:500;line-height:20px;font-variant-numeric:tabular-nums;white-space:nowrap}
.relay-peer{display:grid;gap:1px;min-width:0;flex:1}
.relay-peer h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:15px;font-weight:500;line-height:22px;letter-spacing:0}
.relay-peer-sub{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:var(--type-meta);line-height:18px}
.relay-peer-updated{flex:none;color:var(--muted);font-size:var(--type-meta);font-variant-numeric:tabular-nums}
.relay-room-back,.relay-detail-back{place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:var(--pill-radius);background:transparent;color:var(--text);cursor:pointer;transition:background .15s ease}
.relay-room-back{display:none}
.relay-detail-back{display:grid}
:is(.relay-room-back,.relay-detail-back):hover{background:var(--surface-hover)}
:is(.relay-room-back,.relay-detail-back) .icon{width:20px;height:20px}
.relay-filter-note{margin:0;padding:6px 16px;border-bottom:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:var(--type-meta);line-height:1.4;overflow-wrap:anywhere}
.relay-detail-body{grid-row:3;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;clip-path:inset(0);padding:0 16px;background:var(--bg);scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}
.relay-empty{margin:0;padding:24px;border:1px solid var(--border);border-radius:2px;background:var(--surface);color:var(--muted);font-size:var(--type-body-sm);line-height:var(--copy-leading);overflow-wrap:anywhere}
.relay-detail-body>.relay-empty{max-width:var(--relay-column);margin:16px auto}

.relay-chat{list-style:none;margin:0 auto;padding:8px 0 24px;display:grid;grid-template-columns:minmax(0,1fr);align-content:end;gap:6px;width:100%;max-width:var(--relay-column);min-height:100%}
.relay-day{display:flex;justify-content:center;padding:10px 0 2px;pointer-events:none}
.relay-day span{padding:4px 12px;border:1px solid var(--border);border-radius:var(--pill-radius);background:var(--surface);color:var(--muted);font-size:var(--type-meta);font-weight:550;letter-spacing:0;box-shadow:none}
.relay-msg{display:flex;justify-content:flex-end;min-width:0}
.relay-bubble{position:relative;width:fit-content;max-width:min(92%,560px);min-width:0;margin-left:auto;padding:8px 12px 6px;border:1px solid var(--border);border-radius:2px;background:var(--surface-raised);color:var(--text);overflow-wrap:anywhere}
.relay-bubble:has(>.relay-msg-images){width:min(100%,var(--relay-media-max))}
.relay-msg-author{display:block;margin-bottom:2px;color:var(--accent-ink);font-size:var(--type-meta);font-weight:600;line-height:18px}
.relay-msg-text{margin:0;white-space:normal;word-break:break-word;font-size:var(--type-body-sm);line-height:var(--copy-leading)}
.relay-msg-inline-link{color:var(--accent-ink);text-decoration:none;border-bottom:1px solid var(--border-strong);transition:border-color .15s ease}
.relay-msg-inline-link:hover{border-bottom-color:var(--accent-ink)}
.relay-msg-quote{margin:0 0 6px;padding:6px 10px;border-left:3px solid var(--accent-ink);border-radius:2px;background:var(--surface);color:var(--muted);font-size:var(--type-body-sm);line-height:var(--copy-leading);word-break:break-word}
.relay-reply{display:grid;gap:2px;margin:0 0 6px;padding:6px 10px;border-left:3px solid var(--accent-ink);border-radius:2px;background:var(--surface);font-size:var(--type-meta)}
.relay-reply-name{color:var(--accent-ink);font-size:var(--type-meta);font-weight:600}
.relay-reply-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.relay-msg-withheld{margin:2px 0 0;color:var(--muted);font-size:var(--type-body-sm)}
.relay-msg-link{display:inline-flex;align-items:center;min-width:44px;min-height:44px;color:var(--accent-ink);font-size:var(--type-body-sm);text-decoration:none}
.relay-msg-link:hover{text-decoration:underline;text-underline-offset:2px}
.relay-msg-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:2px 8px;margin-top:4px;color:var(--muted);font-size:var(--type-meta);line-height:18px;font-variant-numeric:tabular-nums}
.relay-msg-album{color:var(--muted)}

/* 사진·앨범 */
.relay-msg-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin-top:6px;max-width:var(--relay-media-max)}
.relay-msg-images[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.relay-msg-images[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.relay-msg-image{display:block;width:100%;min-width:0;min-height:44px;padding:0;overflow:hidden;border:0;border-radius:2px;background:var(--surface);color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:zoom-in}
.relay-msg-image img{display:block;width:100%;height:auto;max-height:320px;object-fit:contain;background:var(--surface);transition:opacity .15s ease}
.relay-msg-images[data-count="1"] .relay-msg-image img{max-height:560px}
.relay-msg-image:hover img{opacity:.92}
.relay-msg--media .relay-bubble{padding:4px}
.relay-msg--media .relay-msg-images{margin-top:0}
.relay-msg--media[data-media="1"] .relay-msg-foot{position:static;justify-content:flex-end;margin:4px 4px 0;padding:0;border-radius:0;background:transparent;color:var(--muted);backdrop-filter:none}
.relay-msg--media[data-media="1"] .relay-msg-album{color:var(--muted)}

/* 링크 미리보기 */
.relay-msg-previews{display:grid;gap:6px;margin-top:8px;max-width:100%}
.relay-preview{display:grid;gap:2px;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--border);border-left:2px solid var(--accent-ink);border-radius:2px;background:var(--surface);color:inherit;text-decoration:none;transition:background .15s ease}
.relay-preview:hover{background:var(--surface-hover)}
.relay-preview-site{color:var(--accent-ink);font-size:var(--type-meta);font-weight:600}
.relay-preview-title{font-size:var(--type-body-sm);font-weight:600;line-height:1.4}
.relay-preview-description{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:var(--type-body-sm);line-height:var(--copy-leading);-webkit-box-orient:vertical;-webkit-line-clamp:3}
.relay-preview-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:var(--type-meta)}

.relay-feed{width:100%;max-width:var(--relay-column);margin:0 auto;padding:16px 0 24px}
.relay-articles{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.relay-article{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:16px;align-items:start;width:100%;min-height:44px;padding:14px 16px;border:1px solid var(--border);border-radius:2px;background:var(--surface-raised);color:inherit;text-align:left;cursor:pointer;font:inherit;transition:background .15s ease,border-color .15s ease}
.relay-article:has(.relay-article-thumb--empty){grid-template-columns:minmax(0,1fr)}
.relay-article:hover{background:var(--surface-hover);border-color:var(--border-strong)}
.relay-article-copy{display:grid;min-width:0;align-content:start}
.relay-article-meta,.relay-article-foot{color:var(--muted);font-size:var(--type-meta);line-height:20px}
.relay-article-title{display:-webkit-box;overflow:hidden;margin-top:4px;color:var(--text);font-size:17px;font-weight:600;line-height:24px;letter-spacing:0;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.relay-article-excerpt{display:-webkit-box;overflow:hidden;margin-top:6px;color:var(--muted);font-size:var(--type-body-sm);line-height:var(--copy-leading);-webkit-box-orient:vertical;-webkit-line-clamp:2}
.relay-article-foot{margin-top:8px}
.relay-article-thumb{display:block;width:120px;height:84px;overflow:hidden;border-radius:2px;background:var(--surface)}
.relay-article-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .15s ease}
.relay-article:hover .relay-article-thumb img{opacity:.88}
.relay-article-thumb--empty{display:none}

.relay-reader{width:100%;max-width:680px;margin:0 auto;padding:32px 0 56px;color:var(--text);touch-action:pan-y}
.relay-reader-head>h2{margin:0;color:var(--text);font:700 32px/40px var(--font);letter-spacing:-.014em;word-break:keep-all;overflow-wrap:break-word}
.relay-reader-byline{display:flex;align-items:center;gap:12px;margin-top:24px;padding-bottom:24px;border-bottom:1px solid var(--border)}
.relay-reader-avatar{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:var(--surface);color:var(--text)}
.relay-reader-avatar .icon{width:20px;height:20px}
.relay-reader-byline-copy{display:grid;gap:2px;min-width:0}
.relay-reader-author{color:var(--text);font:600 14px/20px var(--font)}
.relay-reader-meta{color:var(--muted);font:400 13px/18px var(--font)}
.relay-body{margin-top:32px;color:var(--text);font:400 var(--body-size)/var(--copy-leading) var(--font);letter-spacing:-.003em;word-break:keep-all;overflow-wrap:break-word}
.relay-body p{margin:0 0 28px}
.relay-body p:last-child{margin-bottom:0}
.relay-body h2{margin:44px 0 14px;color:var(--text);font:600 23px/30px var(--font);letter-spacing:-.012em}
.relay-body h3{margin:34px 0 10px;color:var(--text);font:600 19px/26px var(--font);letter-spacing:-.008em}
.relay-body blockquote{margin:32px 0;padding:0 0 0 20px;border-left:3px solid var(--border-strong);color:var(--text);font-style:italic}
.relay-reader-figure{margin:44px 0}
.relay-reader-figure:first-child{margin-top:0}
.relay-reader-figure img{display:block;width:100%;height:auto;border:0;border-radius:0;background:var(--surface)}
.relay-reader-figure figcaption{margin-top:10px;color:var(--muted);font:400 14px/20px var(--font)}
.relay-reader-link{color:var(--text);text-decoration:underline;text-decoration-color:var(--text);text-underline-offset:3px}
.relay-reader-empty{color:var(--muted);font:400 var(--type-body-sm)/var(--copy-leading) var(--font)}
.relay-reader-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:48px;padding-top:20px;border-top:1px solid var(--border);color:var(--muted);font:400 13px/20px var(--font)}
.relay-reader-foot a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;max-width:100%;color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.relay-reader-foot a:hover{text-decoration:underline;text-underline-offset:3px}

.relay-detail-body:has(.relay-paper){display:flex;flex-direction:column;padding:0;overflow:hidden}
.relay-paper{display:flex;flex-direction:column;width:100%;max-width:none;height:100%;min-width:0;min-height:0;margin:0;padding:0}
.relay-paper-open{position:absolute;inset:8px;display:block;width:auto;height:auto;min-width:0;min-height:0;padding:0;border:0;background:transparent;color:inherit;cursor:zoom-in}
.relay-paper-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.relay-paper-status{color:var(--muted);font-size:var(--type-meta);font-variant-numeric:tabular-nums}
.relay-paper-body{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;flex:1;gap:0;min-width:0;min-height:0}
.relay-paper-stage{position:relative;display:block;min-width:0;min-height:0;height:auto;padding:0;overflow:hidden;border:0;border-radius:0;background:var(--bg);touch-action:pan-y}
.relay-paper-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:2px;background:transparent}
.relay-paper-placeholder{min-width:0;max-width:100%;padding:40px 20px;color:var(--muted);text-align:center;white-space:pre-wrap;overflow-wrap:anywhere}
.relay-paper-turn{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 8px;pointer-events:none}
.relay-turn{width:44px;height:44px;border:1px solid var(--border);border-radius:var(--pill-radius);background:var(--media-scrim);color:var(--on-media);font-size:18px;cursor:pointer;pointer-events:auto}
.relay-turn:disabled{opacity:.4;cursor:default}
.relay-pager{display:flex;flex-direction:row;gap:6px;min-width:0;max-height:none;overflow-x:auto;overflow-y:hidden;padding:8px;border-top:1px solid var(--border);background:var(--surface);scroll-padding-inline:8px;scrollbar-width:thin;scrollbar-color:var(--subtle) transparent}
.relay-page-chip{display:flex;flex:none;flex-direction:column;align-items:center;gap:4px;width:72px;min-width:72px;height:auto;min-height:44px;padding:4px;border:1px solid var(--border);border-radius:2px;background:transparent;color:var(--muted);cursor:pointer;font:inherit;font-size:11px;line-height:14px;font-variant-numeric:tabular-nums}
.relay-page-chip img{display:block;width:64px;height:88px;object-fit:cover;object-position:top center;border-radius:2px;background:var(--bg)}
.relay-page-chip span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.relay-page-chip:hover{border-color:var(--border-strong);color:var(--text)}
.relay-page-chip.active{border-color:var(--accent-ink);background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
@container relay-pane (max-width: 640px){
  .relay-paper-open{inset:16px 12px}
}
@container relay-pane (min-width: 641px){
  .relay-paper-open{inset:4px}
}
@container relay (width <= 1024px){
  .relay-room[data-relay-pane="room"]:has(.relay-paper) .relay-rooms{display:none}
  .relay-room[data-relay-pane="room"]:has(.relay-paper) .relay-panes{grid-template-columns:minmax(0,1fr)}
  .relay-room[data-relay-pane="room"]:has(.relay-paper) .relay-room-back{display:grid}
}

.relay-topic-evidence{min-width:0;max-width:100%;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:break-word;word-break:keep-all}
.relay-topic-evidence summary{min-height:44px;align-content:center;color:var(--text);cursor:pointer}
.relay-topic-evidence summary:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.relay-topic-evidence ul{margin:4px 0;padding-left:18px}
.relay-topic-evidence p{margin:4px 0}
.relay-topic-evidence .relay-topic-evidence-quote{margin:3px 0 4px;padding:0 0 0 8px;border-radius:0;background:transparent;color:inherit;font-size:inherit;line-height:inherit}

@container relay (width < 600px){
  .relay-panes{--relay-layout:stack;--relay-list-width:360px;--relay-media-max:340px;grid-template-columns:minmax(0,1fr)}
  .relay-rooms{border-right:0}
  .relay-room[data-relay-pane="list"] .relay-detail,
  .relay-room[data-relay-pane="room"] .relay-rooms{display:none}
  .relay-room[data-relay-pane="room"] .relay-room-back{display:grid}
  .relay-room-item[aria-current="true"]{background:transparent}
  .relay-room-item[aria-current="true"]:hover{background:var(--surface-hover)}
  .relay-room-item[aria-current="true"] .relay-room-name{color:var(--text)}
}

@container relay-pane (width < 560px){
  .relay-detail-head{gap:6px;padding:0 8px}
  .relay-detail-head--dates .relay-peer-avatar{display:none}
  .relay-detail-head--dates .relay-peer{flex:1;min-width:0}
  .relay-peer-updated{display:none}
  .relay-detail-body{padding:0 8px}
  .relay-bubble{max-width:92%}
  .relay-article{grid-template-columns:minmax(0,1fr) 84px;gap:12px;padding:12px}
  .relay-article-thumb{width:84px;height:84px}
  .relay-article-title{font-size:16px;line-height:22px}
  .relay-reader{padding:20px 0 40px}
  .relay-reader-head>h2{font-size:26px;line-height:34px}
  .relay-reader-byline{margin-top:20px;padding-bottom:20px}
  .relay-body{margin-top:24px}
  .relay-body p{margin-bottom:24px}
  .relay-body h2{margin:32px 0 12px;font-size:21px;line-height:28px}
  .relay-body h3{margin:28px 0 10px;font-size:18px;line-height:24px}
  .relay-reader-figure{margin:32px 0}
}

.relay-room :is(button,a,.relay-detail-body):focus-visible{outline:2px solid var(--focus);outline-offset:-3px}
.relay-viewer{width:min(960px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);margin:auto;padding:12px;border:0;border-radius:2px;background:rgb(12,12,14);color:#fff}
.relay-viewer::backdrop{background:rgb(0 0 0 / 78%)}
.relay-viewer-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:44px}
.relay-viewer-count{margin-right:auto;color:rgb(214,214,216);font-size:13px;font-variant-numeric:tabular-nums}
.relay-viewer-close,.relay-viewer-step{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:var(--pill-radius);background:transparent;color:#fff;cursor:pointer}
.relay-viewer-close:hover,.relay-viewer-step:hover{background:rgb(255 255 255 / 12%)}
.relay-viewer-step:disabled{opacity:.35;cursor:default}
.relay-viewer-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-width:0}
.relay-viewer-image{display:block;width:100%;max-height:calc(100vh - 140px);object-fit:contain;background:rgb(12,12,14)}
.relay-viewer :is(button,img):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media (max-width:640px){
  .relay-viewer{display:flex;flex-direction:column;width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:8px;border-radius:0}
  .relay-viewer-stage{position:relative;flex:1;min-height:0;grid-template-columns:minmax(0,1fr);align-content:center}
  .relay-viewer-step{position:absolute;top:50%;z-index:1;background:rgb(0 0 0 / 48%);transform:translateY(-50%)}
  .relay-viewer-step[data-relay-action="image-prev"]{left:8px}
  .relay-viewer-step[data-relay-action="image-next"]{right:8px}
  .relay-viewer-image{max-height:calc(100vh - 88px)}
}

.relay-blank-state{display:grid;align-content:start;justify-items:start;gap:12px;min-width:0;padding:20px}
.relay-blank-clock{margin:0;color:var(--muted);font-size:var(--type-meta);font-variant-numeric:tabular-nums}
.relay-retry{min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:var(--pill-radius);background:var(--surface);color:var(--text);font:inherit;font-size:var(--type-meta);cursor:pointer}
.relay-retry:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

@media (prefers-reduced-motion:reduce){
  .relay-room,.relay-room *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


/* Source: ui/chart-legend.css; SHA-256: fff51dccb106d60c9c27f7b08b6d82d109ee44639390c38e2645cb9023ee047b */
/* The price axis has first claim on its measured gutter. The legend reserves
   the upper-right corner; readouts/replay HUD use the remainder at the left.
   Model, macro and event text yields to this rectangle without moving anchors. */
.atlas-plot>.lab-chart-foot.chart-legend-dock,
.chart-replay-active.chart-replay-atlas.atlas-plot:not([data-chart-focus=true])>.lab-chart-foot.chart-legend-dock:not([hidden]),
.chart-replay-active.chart-replay-atlas.atlas-plot[data-chart-replay-mode="cutoff-backtest"]>.lab-chart-foot.chart-legend-dock:not([hidden]){
  position:absolute;inset:var(--chart-legend-top,22px) var(--chart-legend-right,4px) auto auto;
  display:block!important;box-sizing:border-box;width:var(--chart-legend-width,max-content);max-width:42%;height:var(--chart-legend-height,20px);max-height:none;min-height:0;
  margin:0;padding:0 4px;border:1px solid var(--border);border-radius:2px;background:var(--surface);color:var(--muted);
  overflow:visible;pointer-events:auto;touch-action:manipulation;z-index:8;
}
.atlas-plot>.lab-chart-foot.chart-legend-dock[hidden],
.atlas-plot[data-chart-focus=true]>.lab-chart-foot.chart-legend-dock{display:none!important}
.chart-legend-dock [hidden]{display:none!important}
.atlas-plot[data-mode=price]>.chart-legend-dock .lab-legend,
.atlas-plot>.chart-legend-dock .lab-legend{display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-end;gap:4px;width:max-content;max-width:100%;height:100%;min-width:0;flex:none;margin:0;padding:0;overflow:visible}
.chart-legend-dock .chart-legend-row{display:flex;flex:0 0 auto;align-items:center;gap:4px;min-width:0;max-width:100%;height:100%;overflow:visible}
.atlas-plot>.chart-legend-dock .chart-legend-row-label{flex:none;width:auto;font:11px/16px var(--font,sans-serif);color:var(--subtle);white-space:nowrap}
.chart-legend-dock .chart-legend-items{display:flex;align-items:center;flex:0 0 auto;gap:4px;min-width:0;overflow:hidden}
.atlas-plot>.chart-legend-dock .chart-legend-entry{display:inline-flex;align-items:center;flex:none;gap:4px;width:max-content;max-width:none;margin:0;padding:0;border:0;font:12px/16px var(--font,sans-serif);white-space:nowrap;color:var(--muted)}
.atlas-plot>.chart-legend-dock .chart-legend-entry>span{font:inherit;line-height:inherit;white-space:nowrap}
.atlas-plot>.chart-legend-dock .chart-legend-entry>svg{display:block;position:static;flex:none;width:16px;height:14px;min-width:16px;max-width:18px;max-height:14px;overflow:visible;pointer-events:none}
.atlas-plot>.chart-legend-dock .chart-legend-entry.cycle-style-sample>svg{width:22px;min-width:22px;max-width:22px}
.chart-legend-dock button{box-sizing:border-box;flex:none;min-width:32px;height:24px;margin:0;padding:2px 6px;border:1px solid var(--border-strong);border-radius:4px;background:var(--surface-raised);color:var(--text);font:12px/16px var(--font,sans-serif);white-space:nowrap;cursor:pointer}
.chart-legend-dock .chart-legend-more{min-height:24px}
.chart-legend-dock button:hover{background:var(--surface-hover)}
.rsi-chart-canvas>.chart-legend-dock button{min-height:24px}
.atlas-plot>.chart-legend-dock .chart-legend-more{position:relative;min-width:24px;height:16px;min-height:16px;padding:0 4px;border:0;background:transparent;isolation:isolate}
.atlas-plot>.chart-legend-dock .chart-legend-more::before{content:"";position:absolute;inset:0;z-index:-1;border:1px solid var(--border-strong);border-radius:2px;background:var(--surface-raised)}
.atlas-plot>.chart-legend-dock .chart-legend-more:hover::before{background:var(--surface-hover)}
.chart-legend-dock button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
/* Replay uses stronger visibility selectors; the chip must still own its full
   44px box without inheriting the single-line legend's padding and border. */
.atlas-plot>.lab-chart-foot.chart-legend-dock[data-legend-mode=chip],
.chart-replay-active.chart-replay-atlas.atlas-plot:not([data-chart-focus=true])>.lab-chart-foot.chart-legend-dock[data-legend-mode=chip]:not([hidden]),
.chart-replay-active.chart-replay-atlas.atlas-plot[data-chart-replay-mode="cutoff-backtest"]>.lab-chart-foot.chart-legend-dock[data-legend-mode=chip]:not([hidden]){padding:0;border:0;background:transparent}
.chart-legend-dock[data-legend-mode=chip]>.chart-legend-open{display:block;width:100%;min-width:0;height:44px;padding:4px;border-color:var(--border);background:var(--surface);font-size:12px}
.atlas-plot>.chart-legend-dock>.lab-caveat{display:none}
.atlas-plot>.native-chart-legend-source{display:none!important}
.atlas-plot[data-legend-dock=top-right][data-legend-visible=true]>:is(#lab-metrics,.workbench-market-info,.chart-replay-hud):not(.atlas-quote-hud,.quote-hud-source-controls){max-width:var(--chart-legend-hud-max-width,55%)!important;right:auto}
.atlas-plot[data-legend-dock=top-right][data-legend-visible=true]>.chart-replay-hud{width:var(--chart-legend-hud-max-width,55%)}

.chart-legend-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(var(--dialog-viewport-height,100dvh) - 24px);margin:auto;padding:0;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--text);font:13px/1.6 var(--font,sans-serif);overflow:hidden}
.chart-legend-dialog[open]{display:flex;flex-direction:column}
.chart-legend-dialog::backdrop{background:var(--dialog-backdrop)}
.chart-legend-dialog>header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 16px;border-bottom:1px solid var(--border)}
.chart-legend-dialog h2{margin:0;font-size:16px;font-weight:600}
.chart-legend-dialog>header>button{flex:none;box-sizing:border-box;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:4px;background:var(--surface-raised);color:var(--text);font:inherit;cursor:pointer}
.chart-legend-dialog>header>button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.chart-legend-dialog-content{flex:1 1 auto;min-height:0;min-width:0;padding:16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
.chart-legend-dialog-content::-webkit-scrollbar{display:none}
.chart-legend-dialog-content section+section{margin-top:24px}
.chart-legend-dialog-content h3{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--text)}
.chart-legend-dialog-content ul{margin:0;padding:0;list-style:none}
.chart-legend-dialog-content li{padding:12px 0;border-bottom:1px solid var(--border-soft)}
.chart-legend-dialog-content p{margin:6px 0 0;color:var(--muted);overflow-wrap:anywhere}
.chart-legend-dialog-sample{display:flex;align-items:center;gap:8px;color:var(--text);font-size:13px;white-space:normal}
.chart-legend-dialog-sample>svg{position:static;display:block;flex:none;width:22px;height:16px;max-width:30px;overflow:visible}
.chart-legend-dialog[data-fullscreen=true]{inset:var(--dialog-viewport-top,0px) 0 auto;margin:0;width:100vw;max-width:100vw;height:var(--dialog-viewport-height,100dvh);max-height:var(--dialog-viewport-height,100dvh);border:0;border-radius:0}


/* Source: ui/quote-hud.css; SHA-256: e4790f7fd6f5f77f91eff5861398d75c70d02bcffbb25502b15e01a478acd68c */
/* Two permanent rows; each field occupies its actual text width. The local
   container also works in the embedded React chart, which has no plot container. */
.atlas-plot>.atlas-quote-hud,.atlas-plot>#lab-metrics.atlas-quote-hud{
  position:absolute;inset:8px 66px auto 8px;display:grid;grid-template-rows:20px 20px;gap:0;
  width:auto;max-width:calc(100% - 74px)!important;height:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:0;
  background:transparent;overflow:visible;white-space:nowrap;line-height:20px;font:12px/20px var(--font,sans-serif);
  font-variant-numeric:tabular-nums;pointer-events:none;z-index:5;text-shadow:none;
  container:quote-hud / inline-size;
}
.atlas-plot>.atlas-quote-hud .quote-hud-row{display:flex;align-items:center;flex-flow:row nowrap;gap:6px;min-width:0;width:max-content;max-width:100%;height:20px;line-height:20px;overflow:visible}
.atlas-plot>.atlas-quote-hud .quote-hud-row>[data-quote-field]{flex:0 0 auto;min-width:0}
.atlas-plot>.atlas-quote-hud :is(.quote-hud-name,.quote-hud-price){margin:0;font:inherit;font-weight:600;letter-spacing:0;color:var(--text)}
.atlas-plot>.atlas-quote-hud :is(.quote-hud-interval,.quote-hud-kind,.quote-hud-change,.quote-hud-source,.quote-hud-time,.quote-hud-rsi){display:block;flex:none;font:inherit;line-height:20px;white-space:nowrap;overflow:visible;text-overflow:clip;letter-spacing:0;color:var(--muted)}
.atlas-plot>.atlas-quote-hud .quote-hud-kind{font-size:11px;color:var(--subtle)}
.atlas-plot>.atlas-quote-hud .quote-hud-meta{font-size:11px;column-gap:6px}
.atlas-plot>.atlas-quote-hud .quote-hud-time{min-width:0}
.atlas-plot>.atlas-quote-hud .quote-hud-rsi{display:inline-flex;gap:3px}
.atlas-quote-hud .quote-hud-rsi b{display:inline-block;font:inherit;text-align:right;color:var(--text)}
.atlas-quote-hud [data-source-visible=false]{visibility:hidden}
.atlas-plot>.atlas-quote-hud .quote-hud-source{pointer-events:auto}
.atlas-plot>.atlas-quote-hud [data-tone=up]{color:var(--green)}
.atlas-plot>.atlas-quote-hud [data-tone=down]{color:var(--red)}
.atlas-plot>.atlas-quote-hud[data-quote-state=assumption] :is(.quote-hud-price,.quote-hud-kind){color:var(--data-gold-ink)}
.atlas-quote-hud .quote-hud-detail,.quote-hud-source-controls>#workbench-market-status{
  position:absolute!important;inset:auto!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip-path:inset(50%);white-space:normal!important;border:0!important;
}
/* The original refresh action occupies the otherwise empty axis header. Its
   complete status remains its accessible description and the source tooltip. */
.atlas-plot>.workbench-market-info.quote-hud-source-controls{
  inset:2px 8px auto auto;left:auto;width:44px;max-width:44px;height:44px;min-height:44px;
  padding:0;margin:0;gap:0;background:transparent;overflow:visible;text-shadow:none;
}
.atlas-plot>.quote-hud-source-controls #workbench-market-refresh{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:12px;pointer-events:auto}
@media(max-width:430px){
  .atlas-plot>.atlas-quote-hud .quote-hud-row{font-size:11px;column-gap:4px}
}
@container quote-hud (max-width:430px){
  .atlas-plot>.atlas-quote-hud .quote-hud-row{font-size:11px;column-gap:4px}
}
/* At a 320px plot the HUD has 246px. Keep the name, price/unit, previous-bar
   change, full clock and RSI visible. Only the redundant observed price label
   and an intraday provider label move to accessible text; assumptions stay named. */
@container quote-hud (max-width:280px){
  .atlas-plot>.atlas-quote-hud .quote-hud-row{column-gap:3px}
  .atlas-plot>.atlas-quote-hud:not([data-quote-state=assumption]) .quote-hud-kind,
  .atlas-plot>.atlas-quote-hud[data-quote-intraday=true] .quote-hud-source{
    position:absolute;width:1px;max-width:1px;height:1px;margin:-1px;padding:0;border:0;
    overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none;
  }
}


/* Source: ui/shell-layout.css; SHA-256: 79a4009cc48e2d8fe1fe751971b18e7ff2ce21b903f0e4ea4c9f7b963a0b9950 */
/* R19 P1: the shared page frame, original navigation and outer sections.
 * Chart coordinates and the independent content scroll owners stay local.
 * P0 owns the palette; later stages own chart chrome and section internals. */
body[data-shell=dashboard] {
  --app-sidebar-width: 0px;
  --app-header-height: 112px;
  /* Keep the workspace's header reservation inside the viewport-sized body.
     overflow:clip alone lets its top margin collapse past the fixed heading. */
  display: flow-root;
  background: var(--surface-raised);
}
body[data-shell=dashboard] :is(.atlas-sidebar, #root > .atlas-sidebar) {
  display: none !important;
}
body[data-shell=dashboard] .atlas-dashboard-header.atlas-canvas-heading {
  position: fixed;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 44px 44px;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  padding: 8px max(var(--shell-gutter), calc((100% - var(--shell-container-wide)) / 2));
  box-sizing: border-box;
  overflow: visible;
  background: var(--bg);
}
body[data-shell=dashboard] .atlas-dashboard-header > .atlas-sidebar-toggle {
  display: none;
}
body[data-shell=dashboard] .atlas-dashboard-header > .atlas-shell-copy {
  grid-area: 1 / 1;
  min-width: 0;
  align-self: center;
  align-items: baseline;
}
body[data-shell=dashboard] .atlas-shell-copy > .atlas-shell-heading {
  flex: none;
  font-size: 20px;
  line-height: 28px;
  font-weight: 650;
}
body[data-shell=dashboard] .atlas-dashboard-header > .atlas-shell-controls {
  grid-area: 1 / 2;
  max-width: min(45vw, 480px);
  align-self: center;
}
body[data-shell=dashboard] .atlas-dashboard-nav {
  grid-area: 2 / 1 / 3 / -1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
  height: 44px;
}
body[data-shell=dashboard] .atlas-dashboard-nav > .atlas-nav {
  display: flex;
  flex: 1 1 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  /* Real end space keeps a fractional last edge inside the integer scrollport;
     scroll-padding alone cannot create any additional scrollable distance. */
  padding: 0 4px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  scrollbar-width: none;
  scroll-padding-inline: 4px;
}
body[data-shell=dashboard] .atlas-dashboard-nav .atlas-nav :is(a, button) {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--pill-radius);
  background: transparent;
  color: var(--muted);
  font: 500 var(--type-body-sm)/20px var(--font);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
body[data-shell=dashboard] .atlas-dashboard-nav .atlas-nav :is(a, button):hover {
  color: var(--text);
  background: var(--surface-hover);
}
body[data-shell=dashboard] .atlas-dashboard-nav .atlas-nav [aria-current=page] {
  color: var(--nav-active-text);
  background: var(--nav-active-bg);
}
body[data-shell=dashboard] .atlas-dashboard-nav .atlas-nav :is(a, button) > span:last-child:not([data-icon]) {
  position: static;
  display: inline !important;
  width: auto;
  height: auto;
  margin: 0;
  clip-path: none;
  overflow: visible;
}
body[data-shell=dashboard] .atlas-dashboard-nav .atlas-nav svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 1;
}
body[data-shell=dashboard] .atlas-nav-scroll {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
body[data-shell=dashboard] .atlas-nav-scroll[hidden] { display: none; }
body[data-shell=dashboard] .atlas-nav-scroll:disabled { color: var(--subtle); cursor: default; }
body[data-shell=dashboard] .atlas-nav-scroll svg { width: 20px; height: 20px; }
body[data-shell=dashboard] .atlas-dashboard-nav :is(a, button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}
body[data-shell=dashboard] .workspace,
body[data-shell=dashboard] #root > .workspace {
  margin-left: 0 !important;
  margin-top: var(--app-header-height);
  width: 100%;
  height: calc(100dvh - var(--app-header-height));
  min-width: 0;
  min-height: 0;
  padding: 12px var(--shell-gutter) calc(12px + var(--content-bottom-height));
  box-sizing: border-box;
  background: var(--surface-raised);
}
body[data-shell=dashboard] #main {
  width: 100%;
  max-width: var(--shell-container);
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 !important;
  box-sizing: border-box;
}
body[data-shell=dashboard][data-shell-width=wide] #main { max-width: var(--shell-container-wide); }
body[data-shell=dashboard] #main > :is(#evidence-view, #ipo-view, #data-view, #market-view, #relay-view) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  /* Outer-card paint stays below the header while source popovers retain
     their own overflow/scroll owners. */
  box-shadow: 0 2px 8px var(--shadow-color);
  /* Each section keeps its own scroll/overlay contract. In particular the
     IPO source disclosure must be able to extend beyond a short card. */
  box-sizing: border-box;
}
body[data-shell=dashboard] .content-bottom-bar {
  left: 0;
  right: 0;
  width: 100%;
  padding-inline: max(var(--shell-gutter), calc((100% - var(--shell-container-wide)) / 2));
}
/* The original chart navigation keeps its exact rail/tray dimensions. */
body[data-shell=chart] .workbench-rail .atlas-nav :is(a, button) { border-radius: var(--pill-radius); }
@media (max-width: 620px) {
  /* The original mobile stylesheet hides this ID in a direct header slot.
     Settings now owns the indicator's existing 44px phone-dock slot, so the
     display override must outrank that ID rule while keeping its geometry. */
  body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] > #atlas-display-options {
    display: inline-flex;
  }
}
@media (max-width: 767px) {
  body[data-shell=dashboard] { --shell-gutter: 12px; }
  body[data-shell=dashboard] .workspace,
  body[data-shell=dashboard] #root > .workspace { padding-block: 8px calc(8px + var(--content-bottom-height)); }
  body[data-shell=dashboard] .atlas-shell-copy > .atlas-shell-heading { font-size: 17px; line-height: 24px; }
  body[data-shell=dashboard] .atlas-dashboard-header .atlas-page-description { display: none; }
  body[data-shell=dashboard] .atlas-dashboard-nav .atlas-nav :is(a, button) { padding-inline: 12px; }
}


/* Source: chart-chrome.css; SHA-256: 24bbb03ae9ca45fa3f7938c1a89a96b82884cb855d59ebb33dce235d32e606cd */
/* P2-CHROME-b16a7c6 — paint for the existing Atlas workbench.
 * The source renderers still own the chart, overlays, replay and comparison.
 * Do not change SVG fonts, transforms, gutter allocation or axis coordinates.
 * The 38px fine-pointer / 48px compact toolbar and phone dock retain their
 * existing allocation; 44px compact targets are never reduced here. */

/* The palette lives in styles.css's single root block. A preference only
 * selects roles inside chart owners; financial judgments keep green/red. */
:root[data-chart-colors=international] :is(.atlas-plot, .chart-legend-dialog) {
  --chart-candle-up: var(--positive-ink);
  --chart-candle-down: var(--negative-ink);
}

/* A card encloses the existing title, toolbar, canvas and lower controls.
 * Its ordinary 1px border participates in normal allocation; the SVG still
 * measures its actual rectangular plot. The card remains the same owner when
 * an embedded workspace replaces the plot contents. */
body[data-shell=chart][data-page=outlook] .atlas-chart-stage,
body[data-shell=chart][data-page=outlook] .workspace.native-chart-workspace > #main.native-chart-workbench {
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--card-radius-md);
  background: var(--surface);
}
@media (min-width: 621px) {
  body[data-shell=chart][data-page=outlook] .workspace.atlas-details-layout > #main,
  body[data-shell=chart][data-page=outlook] .workspace.native-chart-workspace > #main.native-chart-workbench {
    padding: 0 !important;
  }
  body[data-shell=chart][data-page=outlook] .atlas-canvas-heading {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
  }
  body[data-shell=chart][data-page=outlook] .workbench-rail {
    height: 100dvh;
    margin-top: 0;
  }
  body[data-shell=chart][data-page=outlook] .chart-details-panel {
    height: 100%;
    margin-top: 0;
    padding-top: var(--workbench-gap);
  }
}

/* Keep the original toolbar, controls and disclosure owners. Rounded controls
 * only change their paint; their pointer/keyboard targets stay the same size. */
body[data-shell=chart] .atlas-canvas-heading {
  background: var(--workbench-frame);
  color: var(--workbench-frame-ink);
  border-bottom-color: var(--border);
}
body[data-shell=chart] .atlas-canvas-heading :is(button, select, summary),
body[data-shell=chart] .atlas-canvas-heading > .workbench-icon,
body[data-shell=chart] .atlas-canvas-heading button.symbol-selector-trigger,
body[data-shell=chart] .shell-instrument-slot > .workbench-icon,
body[data-shell=chart] .atlas-canvas-heading #workbench-interval-select,
body[data-shell=chart] .atlas-canvas-heading[data-mobile-heading=phone-dock] :is(.workbench-icon, .mobile-workbench-button, .shell-feature-toggle),
body[data-shell=chart] .workbench-bottom-bar :is(button, select) {
  border-radius: var(--pill-radius);
}
body[data-shell=chart] .atlas-canvas-heading :is(button, select, summary, input),
body[data-shell=chart] .atlas-canvas-heading #workbench-interval-select,
body[data-shell=chart] .atlas-canvas-heading #workbench-frequency button,
body[data-shell=chart] .shell-instrument-slot[data-mobile-disclosure=true] .shell-feature-toggle,
body[data-shell=chart] .atlas-canvas-heading :is(.workbench-symbol, .center-workspace-toolbar, .center-data-actions) {
  background: var(--surface);
  color: var(--text);
}
body[data-shell=chart] .atlas-canvas-heading button.symbol-selector-trigger {
  background: var(--surface-raised);
}
body[data-shell=chart] .atlas-canvas-heading :is(button, select, summary):hover:not(:disabled),
body[data-shell=chart] .atlas-canvas-heading #workbench-interval-select:hover:not(:disabled),
body[data-shell=chart] .atlas-canvas-heading #workbench-frequency button:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-hover);
}
body[data-shell=chart] .atlas-canvas-heading :is([aria-pressed=true], [aria-expanded=true]),
body[data-shell=chart] .atlas-canvas-heading #workbench-frequency button[aria-pressed=true] {
  color: var(--accent-ink);
  background: var(--accent-soft);
}
body[data-shell=chart] .atlas-canvas-heading::after {
  color: var(--workbench-frame-muted);
}
body[data-shell=chart] .atlas-canvas-heading :is(button, select, summary):focus-visible,
body[data-shell=chart] .workbench-bottom-bar :is(button, select):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
body[data-shell=chart] .workbench-bottom.workbench-bottom-bar {
  background: var(--surface);
  border-top-color: var(--border);
}

/* The side rails use the same frame, ink and pressed chip as the header. */
body[data-shell=chart] {
  background: var(--workbench-frame);
}
body[data-shell=chart] :is(.atlas-sidebar, .workbench-rail) {
  background: var(--workbench-frame);
  color: var(--workbench-frame-ink);
}
body[data-shell=chart] :is(
  .atlas-sidebar .workbench-icon,
  #workbench-navigation .chart-navigation button,
  .workbench-rail .atlas-nav :is(a, button),
  .workbench-rail > .workbench-icon,
  .workbench-detail-tools .workbench-icon
) {
  border-radius: var(--pill-radius);
  color: var(--workbench-frame-muted);
  background: transparent;
}
body[data-shell=chart] :is(
  .atlas-sidebar .workbench-icon,
  #workbench-navigation .chart-navigation button,
  .workbench-rail .atlas-nav :is(a, button),
  .workbench-rail > .workbench-icon,
  .workbench-detail-tools .workbench-icon
):hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-hover);
}
body[data-shell=chart] :is(
  .atlas-sidebar .workbench-icon[aria-pressed=true],
  #workbench-navigation .chart-navigation button[aria-pressed=true],
  .workbench-rail .atlas-nav :is(.active, [aria-current=page])
) {
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: none;
}
body[data-shell=chart] :is(
  .atlas-sidebar .workbench-icon,
  #workbench-navigation .chart-navigation button,
  .workbench-rail .atlas-nav :is(a, button)
):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

/* Preserve the measured legend rectangle, source disclosure and real 44px
 * chip. No shadow, clipping, padding or font changes can cover price ticks. */
:is(body[data-shell=chart], body[data-embedded=true]) .atlas-plot > .lab-chart-foot.chart-legend-dock {
  border-radius: var(--card-radius-sm);
  border-color: var(--border);
  color: var(--muted);
  background: var(--surface);
}
:is(body[data-shell=chart], body[data-embedded=true]) .atlas-plot > .chart-legend-dock[data-legend-mode=chip] {
  background: transparent;
}
:is(body[data-shell=chart], body[data-embedded=true]) .chart-legend-dock button,
:is(body[data-shell=chart], body[data-embedded=true]) .atlas-plot > .chart-legend-dock .chart-legend-more::before {
  border-radius: var(--pill-radius);
}
body[data-shell=chart] .chart-legend-dialog {
  border-radius: var(--card-radius-md);
}
body[data-shell=chart] .chart-legend-dialog > header > button {
  border-radius: var(--pill-radius);
}
body[data-shell=chart] .chart-legend-dialog[data-fullscreen=true] {
  border-radius: 0;
}

/* The readout remains transparent and keeps its source-owned compact width,
 * line height and plot-right-gap. Full values remain in the original details. */
:is(body[data-shell=chart], body[data-embedded=true]) .atlas-plot > :is(.atlas-readout, .eth-readout, .eth-readout-source) {
  background: transparent;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
body[data-shell=chart] .eth-readout-line > strong {
  color: var(--text);
}
body[data-shell=chart] .readout-kind,
body[data-shell=chart] .eth-ohlc-details > summary {
  border-radius: var(--pill-radius);
}
body[data-shell=chart] .eth-ohlc-details > summary {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-raised);
}
:is(body[data-shell=chart], body[data-embedded=true]) .atlas-plot > .atlas-quote-hud [data-tone=up],
body[data-shell=chart] .eth-readout .eth-gain {
  color: var(--chart-candle-up);
}
:is(body[data-shell=chart], body[data-embedded=true]) .atlas-plot > .atlas-quote-hud [data-tone=down],
body[data-shell=chart] .eth-readout .eth-loss {
  color: var(--chart-candle-down);
}
/* Axis paint only. The renderer's measured type, fitted textLength, final
 * paint layer, boundary lines and fixed minRight=64 are unchanged. */
:is(body[data-shell=chart], body[data-embedded=true]) .atlas-plot svg :is([data-price-axis-label=tick], .market-time-label, .price-time-label) {
  fill: var(--chart-axis-ink);
}

/* One native preference in the original settings reader. It is always a real
 * 44px target, including a desktop with the compact historical toolbar. */
body .chart-colors-setting,
body .chart-details-panel .atlas-settings-body .chart-colors-setting {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  color: var(--text);
  font: var(--type-body-sm)/1.6 var(--font);
}
body .chart-colors-setting > select,
body .chart-details-panel .atlas-settings-body .chart-colors-setting > select {
  flex: 1 1 190px;
  box-sizing: border-box;
  width: 100%;
  min-width: 44px;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 28px 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--pill-radius);
  color: var(--text);
  background: var(--surface);
  font: var(--type-body-sm)/1.6 var(--font);
  color-scheme: inherit;
}
body .chart-colors-setting > select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Q-P2CHROME-1: the financial working field and focused analysis surfaces
 * have their own dark scheme. Unregistered root colour roles keep their
 * light-dark() expressions, so paint resolves at each actual surface.
 * App navigation, headings and the user-selected light/dark theme remain
 * independent of these financial canvas and analysis layers. */
body .atlas-plot {
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}
body :is(.eth-data-dialog, .equity-detail-dialog, .forecast-journal,
  .native-chart-dialog, .chart-legend-dialog, .workspace-dialog,
  .symbol-search-dialog, .indicator-library, .indicator-settings-dialog,
  .research-annotations-dialog, .chart-go-to-dialog, .chart-export-dialog,
  .chart-bottom-popover, .research-reader, .btc-refresh-notice) {
  color-scheme: dark;
  color: var(--text);
}
/* Reader links are text, so they use the theme's ink role rather than the
 * decorative accent used by controls and chart marks. */
body .research-reader {
  --reader-accent: var(--accent-ink);
}
/* Historical comparison is a long financial document, including the body
 * that owns its native scroll. This does not change its scroll allocation. */
body[data-page=compare] {
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

/* Settings remain ordinary cards in the user's chosen theme. The existing
 * panel padding and gaps expose the same dark workbench frame as the canvas
 * toolbar; every title, label and icon paints on its real section surface.
 * No new clip, shadow, inset or size changes the existing reader geometry. */
body[data-shell=chart] #chart-reader {
  background: var(--workbench-frame);
}
body[data-shell=chart] #chart-reader > :is(.reader-heading, .reader-body,
  .chart-detail-actions, .reader-pagination) {
  background: var(--surface);
  color: var(--text);
}

/* Compact shell measured from funnest.xyz/trade at 390×844 and 768×1024:
   48px app bar, 52px symbol row, chart, 56px bottom tabs.
   Above 1024 the desktop chart frame stays. */
.atlas-trade-upper,
.atlas-trade-status,
.atlas-trade-tabs,
.atlas-trade-quote,
.atlas-trade-tools { display: none; }
body.atlas-funnest-compact {
  --zt-upper: 0px;
  --zt-bar: 48px;
  --zt-top: 48px;
  --zt-rail: 0px;
  --zt-status: 56px;
  --atlas-trade-tabs: 56px;
  background: rgb(16, 16, 19);
}
body.atlas-funnest-compact .atlas-trade-upper {
  display: none !important;
}
body.atlas-funnest-compact .atlas-trade-upper-tab { display: none; }
body.atlas-funnest-compact .atlas-trade-search,
body.atlas-funnest-compact .atlas-trade-account,
body.atlas-funnest-compact .atlas-trade-draw {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgb(176, 176, 186);
  pointer-events: auto;
}
body.atlas-funnest-compact .atlas-trade-search { background: transparent; color: rgb(176, 176, 186); }
body.atlas-funnest-compact .atlas-trade-search svg,
body.atlas-funnest-compact .atlas-trade-account svg,
body.atlas-funnest-compact .atlas-trade-indicators svg,
body.atlas-funnest-compact .atlas-trade-tools-btn svg,
body.atlas-funnest-compact .atlas-trade-draw svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.atlas-funnest-compact .atlas-trade-status { display: none; }
body.atlas-funnest-compact .atlas-trade-tabs {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 72;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: auto;
  height: 56px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: rgb(16, 16, 19);
  border: 0;
  box-sizing: border-box;
}
body.atlas-funnest-compact .atlas-trade-pages {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}
body.atlas-funnest-compact .atlas-trade-pages::-webkit-scrollbar { display: none; }
body.atlas-funnest-compact .atlas-trade-page {
  display: grid;
  flex: 0 0 100%;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
body.atlas-funnest-compact .atlas-trade-dots {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 8px;
}
body.atlas-funnest-compact .atlas-trade-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(90, 90, 98);
}
body.atlas-funnest-compact .atlas-trade-dot[data-current="true"] { background: rgb(236, 236, 239); }
body.atlas-funnest-compact .atlas-trade-tab {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: auto;
  min-width: 0;
  height: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgb(126, 126, 135);
  font: 500 12px/14px var(--font);
  text-decoration: none;
  cursor: pointer;
}
body.atlas-funnest-compact .atlas-trade-tab span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.atlas-funnest-compact .atlas-trade-tab svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.atlas-funnest-compact .atlas-trade-tab[aria-current="page"],
body.atlas-funnest-compact .atlas-trade-tab[aria-pressed="true"] {
  background: transparent;
  color: rgb(236, 236, 239);
}
body.atlas-funnest-compact .atlas-trade-tab:focus-visible,
body.atlas-funnest-compact .atlas-trade-brand:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
body.atlas-funnest-compact[data-shell="dashboard"] .workspace,
body.atlas-funnest-compact[data-shell="chart"] .workspace {
  box-sizing: border-box;
  padding-bottom: var(--atlas-trade-tabs);
}
body.atlas-funnest-compact[data-shell="chart"] .workbench-rail { display: none; }
body.atlas-funnest-compact[data-shell="chart"] .workspace {
  margin-left: 0 !important;
  width: 100% !important;
}
body.atlas-funnest-compact[data-shell="chart"] #main,
body.atlas-funnest-compact[data-shell="chart"] .atlas-chart-stage,
body.atlas-funnest-compact[data-shell="chart"] .atlas-plot {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
}
body.atlas-funnest-compact[data-shell="chart"] :is(.workbench-bottom, .workbench-bottom-bar) {
  display: none !important;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-chart-stage {
  border: 0;
  border-radius: 0;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  order: 0;
  gap: 8px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  background: var(--workbench-frame);
  border: 0;
  color: var(--workbench-frame-ink);
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] {
  order: 0;
  flex-wrap: nowrap;
  align-content: center;
  gap: 0 8px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 8px;
  border-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"]::before {
  content: none;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(.symbol-selector-trigger, .workbench-symbol) {
  order: 1;
  flex: 0 1 220px;
  width: auto;
  min-width: 140px;
  max-width: none;
  height: 44px;
  min-height: 44px;
  justify-content: flex-start;
  padding: 0 8px;
  background: transparent;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] > :is(.symbol-selector-trigger, .workbench-symbol) {
  flex: 1 1 0;
  min-width: 0;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > #workbench-frequency {
  order: 2;
  flex: 1 1 180px;
  width: auto;
  min-width: 160px;
  max-width: none;
  height: 44px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  background: transparent;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] > #workbench-frequency {
  order: 5;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(#mobile-tools-toggle, #mobile-details-toggle, #workbench-chart-type, #atlas-mode-menu, #atlas-display-options, .shell-instrument-slot, .shell-history-slot, .workspace-history-controls, #workbench-chart-menu) {
  order: 3;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] > :is(#mobile-tools-toggle, #mobile-details-toggle, #workbench-chart-type, #atlas-mode-menu, #atlas-display-options, .shell-instrument-slot, .shell-history-slot, .workspace-history-controls, #workbench-chart-menu) {
  order: 6;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(#workbench-workspace, .auth-account) {
  order: 3;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] > :is(#workbench-workspace, .auth-account) {
  order: 2;
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  margin-left: 0;
  background: transparent;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading #workbench-interval-select {
  display: none;
}
body.atlas-funnest-compact[data-shell="chart"] #workbench-frequency .lab-segmented {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  height: 44px;
  overflow-x: auto;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] .shell-feature-panel {
  bottom: var(--atlas-trade-tabs);
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-trade-brand,
body.atlas-funnest-compact[data-shell="chart"] .atlas-trade-price {
  display: none;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(.shell-instrument-slot, .shell-history-slot, .workspace-history-controls, #workbench-chart-menu) {
  order: 3;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  overflow: visible;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] .shell-feature-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  font-size: 0;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] .shell-feature-toggle::after {
  content: "⋯";
  font-size: 20px;
  line-height: 44px;
}
body.atlas-funnest-compact[data-shell="chart"] #workbench-frequency legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
body.atlas-funnest-compact[data-shell="chart"] #workbench-frequency .lab-segmented button {
  width: auto;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--pill-radius);
  background: transparent;
  color: var(--workbench-frame-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
body.atlas-funnest-compact[data-shell="chart"] #workbench-frequency .lab-segmented button[aria-pressed="true"] {
  background: var(--surface-hover);
  color: var(--text);
}
body.atlas-funnest-compact .auth-account [data-auth-action="account"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--pill-radius);
  background: transparent;
  color: var(--workbench-frame-ink);
}
body.atlas-funnest-compact .auth-account [data-auth-action="account"] :is(svg, .auth-account-mark) {
  display: block;
  width: 22px;
  height: 22px;
}
body.atlas-funnest-compact .atlas-trade-login { display: none; }
body.atlas-funnest-compact[data-shell="chart"][data-center-tool]:not([data-chart-controls]) .workbench-bottom { display: none; }
body.atlas-funnest-compact[data-shell="chart"][data-center-tool]:not([data-chart-controls]) .atlas-canvas-heading[data-mobile-heading="phone-dock"] {
  flex-wrap: nowrap;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  overflow-x: auto;
}
body.atlas-funnest-compact[data-shell="chart"][data-center-tool]:not([data-chart-controls]) .atlas-canvas-heading[data-mobile-heading="phone-dock"]::before {
  content: none;
}
body.atlas-funnest-compact[data-shell="chart"][data-center-tool]:not([data-chart-controls]) .atlas-canvas-heading[data-mobile-heading="phone-dock"] > #mobile-details-toggle {
  order: 3;
}
body.atlas-funnest-compact[data-center-tool]:not([data-chart-controls]) .symbol-selector-trigger {
  overflow: hidden;
  justify-content: center;
  gap: 0;
  padding: 0;
}
body.atlas-funnest-compact[data-center-tool]:not([data-chart-controls]) .symbol-selector-trigger :is(.symbol-selector-name, .symbol-selector-label) {
  display: none;
}
body.atlas-funnest-compact .workspace.atlas-details-layout > .atlas-chat {
  top: var(--zt-top) !important;
  right: 0 !important;
  bottom: var(--zt-status) !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  border: 0;
  border-radius: 0;
  border-left: 1px solid var(--border);
}
body.atlas-funnest-compact .workspace.atlas-details-layout,
body.atlas-funnest-compact .workspace.atlas-details-layout[data-details-open="true"] {
  grid-template-columns: minmax(0, 1fr) 0 0 !important;
}
@media (min-width: 641px) and (max-width: 768px) {
  body.atlas-funnest-compact[data-shell="chart"] .atlas-sidebar {
    display: flex;
    position: fixed;
    inset: 48px auto var(--atlas-trade-tabs) 0;
    width: 48px;
    height: auto;
    min-height: 0;
    padding: 4px 0;
    border-right: 1px solid rgb(44, 44, 53);
    background: rgb(16, 16, 19);
    z-index: 40;
    overflow: hidden;
  }
  body.atlas-funnest-compact[data-shell="chart"] .atlas-sidebar > :not(.workbench-tools) { display: none; }
  body.atlas-funnest-compact[data-shell="chart"][data-center-tool]:not([data-chart-controls]) .atlas-sidebar { display: none; }
  body.atlas-funnest-compact[data-shell="chart"][data-center-tool]:not([data-chart-controls]) .workspace {
    margin-left: 0 !important;
    width: 100% !important;
  }
  body.atlas-funnest-compact[data-shell="chart"] .workspace {
    margin-left: 48px !important;
    width: calc(100% - 48px) !important;
  }
}
@media (max-width: 640px) {
  body.atlas-funnest-compact[data-shell="chart"] .atlas-sidebar { display: none; }
}

/* The measured shell wins over the earlier phone-dock and tablet-rail rules. */
body.atlas-funnest-compact {
  overflow: hidden;
}
body.atlas-funnest-compact[data-shell="dashboard"] .workspace,
body.atlas-funnest-compact[data-shell="chart"] .workspace,
body.atlas-funnest-compact[data-shell="chart"][data-center-tool]:not([data-chart-controls]) .workspace {
  position: fixed !important;
  top: var(--zt-top) !important;
  right: var(--zt-rail) !important;
  bottom: var(--zt-status) !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: rgb(16, 16, 19);
}
body.atlas-funnest-compact .atlas-canvas-heading:not([hidden]),
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading,
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] {
  position: fixed;
  top: var(--zt-upper);
  right: 0;
  left: 0;
  z-index: 74;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  align-content: center;
  order: 0;
  gap: 4px;
  width: auto;
  height: var(--zt-bar) !important;
  min-height: var(--zt-bar) !important;
  max-height: var(--zt-bar) !important;
  margin: 0;
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  background: rgb(23, 23, 28);
  border: 0;
  color: rgb(236, 236, 239);
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"]::before,
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"]::after {
  content: none;
}
body.atlas-funnest-compact[data-shell="dashboard"][hidden],
body.atlas-funnest-compact .atlas-dashboard-header[hidden] {
  display: none !important;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :not(.symbol-selector-trigger):not(.workbench-symbol):not(.workbench-live-quote):not(.atlas-trade-price):not(#workbench-frequency):not(.atlas-trade-indicators):not(.atlas-trade-tools-btn):not(.atlas-trade-draw):not(.atlas-trade-brand):not(.atlas-trade-search):not(.atlas-trade-account):not(.center-workspace-toolbar):not(.lab-toolbar) {
  display: none !important;
}
/* Center controls share the same 48px row and scroll sideways. */
body.atlas-funnest-compact[data-shell="chart"][data-center-tool] .atlas-canvas-heading > .center-workspace-toolbar:not([hidden]):not(:empty) {
  display: flex !important;
  flex: 1 1 auto;
  align-items: center;
  order: 20;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  color: rgb(236, 236, 239);
  font-size: 12px;
}
body.atlas-funnest-compact[data-shell="chart"][data-center-tool] .center-workspace-toolbar :is(.compact-toolbar-field, .compact-toolbar-muted, .workspace-region-code) {
  font-size: 12px;
}
/* Cycle comparison keeps its own range controls and scrolls above the tabs. */
body.atlas-funnest-compact[data-page="compare"] {
  --zt-bar: 48px;
  --zt-top: 48px;
  overflow: hidden;
}
body.atlas-funnest-compact[data-page="compare"] .workspace,
body.atlas-funnest-compact[data-page="compare"] main {
  min-height: 0 !important;
}
body.atlas-funnest-compact[data-page="compare"] .atlas-canvas-heading {
  flex-wrap: nowrap;
  align-content: center;
  row-gap: 0;
  padding: 0 8px;
}
body.atlas-funnest-compact[data-page="compare"] .atlas-canvas-heading > #workbench-frequency {
  display: none !important;
}
body.atlas-funnest-compact[data-page="compare"] .atlas-canvas-heading > .lab-toolbar {
  display: flex !important;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  order: 20;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  padding: 0;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  background: rgb(16, 16, 19);
  color: rgb(236, 236, 239);
}
body.atlas-funnest-compact[data-page="compare"] .lab-toolbar-group {
  width: auto;
  flex: none;
  justify-content: flex-start;
  gap: 8px;
}
body.atlas-funnest-compact[data-page="compare"] .lab-toolbar :is(select, button) {
  box-sizing: border-box;
  min-height: 32px;
  max-height: 32px;
  font-size: 12px;
}
body.atlas-funnest-compact[data-page="compare"] #compare-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-height: none;
  margin: 0;
  overflow: auto;
  background: rgb(16, 16, 19);
}
body.atlas-funnest-compact[data-center-tool]:not([data-chart-controls]) .atlas-canvas-heading > :is(.atlas-trade-indicators, .atlas-trade-tools-btn, .atlas-trade-draw) {
  display: none !important;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(.symbol-selector-trigger, .workbench-symbol),
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] > :is(.symbol-selector-trigger, .workbench-symbol) {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgb(236, 236, 239);
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-trade-price {
  display: none !important;
}
body.atlas-funnest-compact .atlas-trade-price[hidden] { display: none !important; }
body.atlas-funnest-compact .atlas-trade-price strong {
  color: rgb(236, 236, 239);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
}
body.atlas-funnest-compact .atlas-trade-change {
  color: rgb(179, 188, 204);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 14px;
}
body.atlas-funnest-compact .atlas-trade-change[data-tone="down"] { color: var(--negative-ink, #f06767); }
body.atlas-funnest-compact .atlas-trade-change[data-tone="up"] { color: var(--positive-ink, #22ab94); }
body.atlas-funnest-compact .atlas-trade-brand {
  display: grid !important;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-right: 0;
  border-radius: 6px;
  color: rgb(236, 236, 239);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
}
body.atlas-funnest-compact .atlas-trade-account {
  position: static;
  width: 36px;
  height: 36px;
  color: rgb(236, 236, 239);
}
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) #workbench-frequency {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: auto;
  display: flex !important;
  align-items: center;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0;
  overflow: hidden !important;
  background: transparent !important;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading[data-mobile-heading="phone-dock"] > #workbench-frequency {
  order: 3;
}
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .atlas-canvas-heading > :is(.symbol-selector-trigger, .workbench-symbol) {
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) #workbench-frequency .lab-segmented {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  width: auto !important;
  height: 32px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
body.atlas-funnest-compact[data-shell="chart"] #workbench-frequency .interval-more {
  display: inline-flex;
  flex: none;
  align-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  justify-content: center;
}
body.atlas-funnest-compact[data-shell="chart"][data-page="compare"] #workbench-frequency {
  display: none !important;
}
body.atlas-funnest-compact[data-center-tool]:not([data-chart-controls]) #workbench-frequency {
  display: none !important;
}
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) #workbench-frequency .lab-segmented button {
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 6px;
  font-size: 12px;
}
body.atlas-funnest-compact[data-shell="chart"] #workbench-interval-select { display: none !important; }
body.atlas-funnest-compact[data-shell="chart"] .atlas-sidebar { display: none !important; }
body.atlas-funnest-compact.atlas-draw-open[data-shell="chart"]:not([data-center-tool]) .atlas-sidebar {
  display: flex !important;
  position: fixed;
  top: var(--zt-top);
  right: auto;
  bottom: var(--zt-status);
  left: 0;
  z-index: 36;
  flex-direction: column !important;
  align-items: center !important;
  width: 44px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
  padding: 8px 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: rgb(16, 16, 19);
  border: 0;
}
body.atlas-funnest-compact .workbench-tools,
body.atlas-funnest-compact .chart-drawbar,
body.atlas-funnest-compact .chart-draw-tools,
body.atlas-funnest-compact .chart-draw-utilities {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 44px !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
}
body.atlas-funnest-compact .chart-draw-group,
body.atlas-funnest-compact .chart-drawbar button {
  width: 32px !important;
  height: 32px !important;
}
body.atlas-funnest-compact[data-shell="chart"] :is(.symbol-selector-name, .symbol-selector-label) {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.atlas-funnest-compact #workbench-frequency > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .atlas-plot > :is(#lab-metrics, .workbench-market-info) {
  left: 8px !important;
  right: 8px !important;
  max-width: calc(100% - 16px) !important;
}
body.atlas-funnest-compact.atlas-draw-open[data-shell="chart"]:not([data-center-tool]) .atlas-plot > :is(#lab-metrics, .workbench-market-info) {
  left: 48px !important;
  max-width: calc(100% - 56px) !important;
}
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .chart-legend-dock { top: 8px !important; }
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .atlas-plot > #lab-metrics { top: 8px !important; }
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .atlas-plot > .workbench-market-info { top: var(--source-top, 44px) !important; }
body.atlas-funnest-compact #workbench-frequency button {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
}
body.atlas-funnest-compact .atlas-trade-brand { order: 0; }
body.atlas-funnest-compact .atlas-trade-price { order: 2; }
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(.symbol-selector-trigger, .workbench-symbol) { order: 1; }
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > #workbench-frequency { order: 3; }
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(.atlas-trade-indicators, .atlas-trade-tools-btn, .atlas-trade-draw, .atlas-trade-search, .atlas-trade-account) { order: 4; }
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(#atlas-mode-menu, #chart-tools-menu) { order: 3; }
body.atlas-funnest-compact[data-shell="chart"] .atlas-sidebar > :not(.workbench-tools) { display: none !important; }
body.atlas-funnest-compact[data-shell="chart"][data-center-tool]:not([data-chart-controls]) .atlas-sidebar { display: none !important; }
body.atlas-funnest-compact .atlas-trade-tab[aria-current="page"] {
  background: transparent;
  color: rgb(236, 236, 239);
}
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .atlas-canvas-heading > :is(#atlas-mode-menu, #chart-tools-menu) {
  display: inline-flex !important;
  flex: 0 0 30px !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: rgb(176, 176, 186);
  font-size: 0 !important;
}
body.atlas-funnest-compact #chart-tools-menu { width: 30px !important; max-width: 30px !important; }
body.atlas-funnest-compact #chart-tools-menu .chart-tools-button {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  gap: 0 !important;
}
body.atlas-funnest-compact :is(#atlas-mode-menu, #chart-tools-menu) :is(span, .chart-tools-chevron) { display: none !important; }
body.atlas-funnest-compact :is(#atlas-mode-menu, #chart-tools-menu) svg { display: block; width: 18px; height: 18px; }
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .atlas-canvas-heading > :is(.atlas-trade-indicators, .atlas-trade-tools-btn) {
  display: inline-flex !important;
  order: 3;
  flex: 0 0 32px;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(176, 176, 186);
}
body.atlas-funnest-compact[data-shell="chart"][data-page="compare"] .atlas-canvas-heading > :is(.atlas-trade-indicators, .atlas-trade-tools-btn, .atlas-trade-draw, .atlas-trade-price) {
  display: none !important;
}
body.atlas-funnest-compact .atlas-trade-draw {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  color: rgb(176, 176, 186);
}
body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .atlas-canvas-heading > :is(.atlas-trade-draw, .atlas-trade-search, .atlas-trade-account) {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
}
body.atlas-funnest-compact .atlas-trade-draw[aria-pressed="true"] { color: rgb(236, 236, 239); }
body.atlas-funnest-compact[data-center-tool] .atlas-trade-draw { display: none !important; }
body.atlas-funnest-compact[data-center-tool]:not([data-chart-controls]) .atlas-canvas-heading > :is(.symbol-selector-trigger, .workbench-symbol) {
  flex: 0 0 32px !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
}
body.atlas-funnest-compact[data-center-tool]:not([data-chart-controls]) .symbol-selector-trigger :is(.symbol-selector-name, .symbol-selector-label) {
  display: none !important;
}
body.atlas-funnest-compact .atlas-trade-tab svg {
  width: 18px;
  height: 18px;
}
body.atlas-funnest-compact .atlas-chart-stage,
body.atlas-funnest-compact #main,
body.atlas-funnest-compact .atlas-workbench {
  height: 100%;
  min-height: 0;
  background: rgb(16, 16, 19);
}

/* Content pages keep the same app bar and bottom tabs, with a title row
   and a horizontally scrolling page nav instead of the chart's symbol row. */
body.atlas-funnest-compact[data-shell="dashboard"] {
  --zt-bar: 48px;
  --zt-top: 48px;
  --zt-status: 100px;
}
body.atlas-funnest-compact[data-shell="dashboard"] .atlas-dashboard-header.atlas-canvas-heading {
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  overflow: hidden;
  background: rgb(23, 23, 28);
  color: rgb(236, 236, 239);
}
body.atlas-funnest-compact[data-shell="dashboard"] .atlas-shell-copy {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: none;
  min-width: 0;
  height: 48px;
  margin: 0;
}
body.atlas-funnest-compact[data-shell="dashboard"] .atlas-shell-heading {
  min-width: 0;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 48px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.atlas-funnest-compact[data-shell="dashboard"] .atlas-page-description,
body.atlas-funnest-compact[data-shell="dashboard"] .atlas-dashboard-header > .auth-account {
  display: none !important;
}
body.atlas-funnest-compact[data-shell="dashboard"] .atlas-dashboard-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 48px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
body.atlas-funnest-compact[data-shell="dashboard"] .atlas-dashboard-nav > .atlas-nav {
  display: flex;
  align-items: center;
  flex: none;
  width: max-content;
  min-width: 100%;
  height: 48px;
}
body.atlas-funnest-compact[data-shell="dashboard"] .atlas-dashboard-nav .atlas-nav :is(a, button) {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  flex: none;
}
body.atlas-funnest-compact #ipo-view .ipo-table-shell,
body.atlas-funnest-compact #compare-view :is(.lab-table-scroll, .table-scroll) {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
body.atlas-funnest-compact #ipo-view .ipo-table {
  width: max-content;
  min-width: 100%;
}
body.atlas-funnest-compact[data-shell="chart"] .center-workspace-toolbar :is(button, a, select, .compact-toolbar-action) {
  flex: none;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
}
body.atlas-funnest-compact[data-shell="dashboard"] .content-bottom-bar {
  position: fixed;
  left: 0 !important;
  right: 0 !important;
  bottom: 56px !important;
  width: auto !important;
  height: 44px;
  z-index: 71;
  padding-inline: 12px;
  background: rgb(16, 16, 19);
}
body.atlas-funnest-compact[data-shell="dashboard"] .content-bottom-bar .footer {
  font-size: 12px;
}
body.atlas-funnest-compact[data-shell="dashboard"] :is(#evidence-view, #ipo-view, #relay-view, #market-view, #data-view) {
  min-width: 0;
  max-width: 100%;
}
body.atlas-funnest-compact[data-shell="dashboard"] #evidence-view .evidence-controls {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

/* Indicator browser and chart tools menu, measured from the Funnest trade page. */
dialog.indicator-library.indicator-browser{
  position:fixed;z-index:80;box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-width:min(560px,calc(100vw - 32px));
  height:auto;max-height:min(480px,calc(100dvh - 160px));margin:0;padding:12px;border:0;border-radius:12px;background:#17171c;color:#e4e4e5;
  box-shadow:rgba(0,0,0,.16) 0 8px 28px,#2c2c35 0 0 0 1px;font:14px/1.4 var(--font,Pretendard,sans-serif);overflow:auto
}
body.atlas-funnest-compact dialog.indicator-library.indicator-browser{
  width:min(360px,calc(100vw - 16px));max-width:min(360px,calc(100vw - 16px));padding:8px
}
dialog.indicator-library.indicator-browser[open]{display:flex;flex-direction:column}
dialog.indicator-library.indicator-browser::backdrop{background:transparent}
dialog.indicator-library.indicator-browser .indicator-browser-title,
dialog.indicator-library.indicator-browser #indicator-library-description{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0
}
dialog.indicator-library.indicator-browser .indicator-library-heading{
  display:flex;align-items:center;gap:8px;box-sizing:border-box;height:48px;min-height:48px;padding:4px 4px 4px 8px;background:#17171c;border:0;position:sticky;top:0;z-index:2
}
dialog.indicator-library.indicator-browser .indicator-browser-search-icon{display:grid;width:16px;height:16px;flex:none;color:#7e7e87}
dialog.indicator-library.indicator-browser .indicator-browser-search-icon svg{width:16px;height:16px}
dialog.indicator-library.indicator-browser #indicator-search{
  flex:1;min-width:0;width:auto;box-sizing:border-box;height:32px;min-height:32px;max-height:32px;margin:0;padding:0 8px;border:1px solid #2c2c35;border-radius:8px;background:transparent;color:#ececef;font:16px/30px var(--font,sans-serif);box-shadow:none
}
dialog.indicator-library.indicator-browser #indicator-search:focus,
dialog.indicator-library.indicator-browser #indicator-search:focus-visible{outline:none;border-color:var(--accent)}
dialog.indicator-library.indicator-browser #indicator-search::placeholder{color:#7e7e87}
dialog.indicator-library.indicator-browser .indicator-browser-count{
  flex:none;padding:3px 8px;border-radius:6px;background:#202027;color:#b0b0ba;font-size:12px;line-height:14px
}
dialog.indicator-library.indicator-browser .indicator-library-heading>button{
  width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:#b0b0ba
}
dialog.indicator-library.indicator-browser .indicator-library-views{
  display:flex;gap:4px;padding:4px;background:#17171c;position:sticky;top:48px;z-index:1
}
dialog.indicator-library.indicator-browser .indicator-library-views button{
  flex:none;min-height:30px;height:30px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#7e7e87;font:500 13px/30px var(--font,sans-serif)
}
dialog.indicator-library.indicator-browser .indicator-library-views button[aria-pressed=true]{background:#202027;color:#ececef}
dialog.indicator-library.indicator-browser .indicator-browser-body{display:flex;flex-direction:column;min-height:0;flex:1}
dialog.indicator-library.indicator-browser .indicator-browser-list,
dialog.indicator-library.indicator-browser .indicator-browser-detail{min-height:0;overflow:auto;overscroll-behavior:contain}
dialog.indicator-library.indicator-browser .indicator-browser-list{padding:0 0 8px}
dialog.indicator-library.indicator-browser .indicator-browser-detail,
dialog.indicator-library.indicator-browser .indicator-browser-featured,
dialog.indicator-library.indicator-browser .indicator-library-help{display:none}
dialog.indicator-library.indicator-browser .indicator-browser-section-head{display:flex;align-items:baseline;gap:8px;margin:0;padding:8px 10px 4px;color:#7e7e87}
dialog.indicator-library.indicator-browser .indicator-browser-section-head strong{font-size:12px;font-weight:500;color:#7e7e87}
dialog.indicator-library.indicator-browser .indicator-browser-section-head span,
dialog.indicator-library.indicator-browser .indicator-result-count{color:#7e7e87;font-size:12px}
dialog.indicator-library.indicator-browser .indicator-browser-cards{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
dialog.indicator-library.indicator-browser .indicator-browser-card{
  flex:none;width:148px;height:140px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px;border:0;border-radius:10px;background:#202027;color:#ececef;text-align:left;cursor:pointer
}
dialog.indicator-library.indicator-browser .indicator-browser-card[data-selected=true]{box-shadow:inset 0 0 0 1px #d0d0d6}
dialog.indicator-library.indicator-browser .indicator-browser-card-art{display:grid;width:100%;height:72px;place-items:center;color:#d24b4b}
dialog.indicator-library.indicator-browser .indicator-browser-card-art svg{width:132px;height:48px}
dialog.indicator-library.indicator-browser .indicator-browser-card strong{font-size:13px;font-weight:650;line-height:1.3}
dialog.indicator-library.indicator-browser .indicator-browser-card small{color:#7e7e87;font-size:11px}
dialog.indicator-library.indicator-browser .indicator-categories{display:flex;flex-wrap:wrap;gap:4px;padding:0}
dialog.indicator-library.indicator-browser .indicator-categories button{
  min-height:28px;padding:0 10px;border:0;border-radius:8px;background:#202027;color:#b0b0ba;font-size:12px
}
dialog.indicator-library.indicator-browser .indicator-categories button[aria-pressed=true]{background:#ececef;color:#17171c}
dialog.indicator-library.indicator-browser .indicator-library-results{padding:0;overflow:visible}
dialog.indicator-library.indicator-browser .indicator-library-row{
  display:flex;align-items:center;gap:4px;min-height:36px;padding:2px 4px;border-radius:8px
}
dialog.indicator-library.indicator-browser .indicator-library-row[data-selected=true]{background:#202027}
dialog.indicator-library.indicator-browser .indicator-library-item{
  display:flex;flex:1;min-width:0;align-items:center;min-height:40px;padding:4px 6px;background:transparent;color:#ececef;text-align:left
}
dialog.indicator-library.indicator-browser .indicator-library-item>span{display:flex;flex-direction:column;min-width:0;align-items:flex-start;line-height:1.3}
dialog.indicator-library.indicator-browser .indicator-library-item strong,
dialog.indicator-library.indicator-browser .indicator-library-item small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-shell=chart]:not(.atlas-funnest-compact) dialog.indicator-library.indicator-browser .indicator-library-item small{white-space:normal;text-overflow:clip}
dialog.indicator-library.indicator-browser .indicator-library-item small{color:#7e7e87}
dialog.indicator-library.indicator-browser .indicator-browser-row-add{
  flex:none;min-height:28px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:#7e7e87;font:500 12px/28px var(--font,sans-serif);cursor:pointer
}
dialog.indicator-library.indicator-browser .indicator-browser-row-add[aria-pressed=true]{background:transparent;color:#b0b0ba;box-shadow:none}
dialog.indicator-library.indicator-browser .indicator-browser-preview{
  display:grid;height:190px;place-items:center;margin-bottom:12px;border-radius:7px;background:#17171c;color:#d24b4b
}
dialog.indicator-library.indicator-browser .indicator-browser-preview svg{width:280px;height:72px}
dialog.indicator-library.indicator-browser .indicator-browser-detail h3{margin:0;font-size:17px;line-height:20px;font-weight:700}
dialog.indicator-library.indicator-browser .indicator-browser-by{display:block;margin:4px 0 12px;color:#7e7e87;font-size:12.5px}
dialog.indicator-library.indicator-browser .indicator-browser-actions{display:flex;gap:6px;margin-bottom:12px}
dialog.indicator-library.indicator-browser .indicator-browser-add{
  flex:1;height:38px;border:0;border-radius:8px;background:#ececef;color:#17171c;font:600 14px/38px var(--font,sans-serif);cursor:pointer
}
dialog.indicator-library.indicator-browser .indicator-browser-add[aria-pressed=true]{background:#202027;color:#ececef;box-shadow:inset 0 0 0 1px #3a3a44}
dialog.indicator-library.indicator-browser .indicator-browser-star{width:38px;height:38px;min-height:38px;border-radius:8px;background:#202027;color:#ececef}
dialog.indicator-library.indicator-browser .indicator-browser-desc{margin:0 0 14px;color:#b0b0ba;font-size:13px;line-height:1.6}
dialog.indicator-library.indicator-browser .indicator-browser-facts{display:grid;gap:8px;margin:0;padding-top:14px;border-top:1px solid #2c2c35}
dialog.indicator-library.indicator-browser .indicator-browser-facts div{display:flex;justify-content:space-between;gap:12px}
dialog.indicator-library.indicator-browser .indicator-browser-facts dt{color:#7e7e87}
dialog.indicator-library.indicator-browser .indicator-browser-facts dd{margin:0;color:#ececef}
dialog.indicator-library.indicator-browser .indicator-browser-related{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px;padding-top:14px;border-top:1px solid #2c2c35}
dialog.indicator-library.indicator-browser .indicator-browser-related strong{flex-basis:100%;font-size:12px;color:#7e7e87}
dialog.indicator-library.indicator-browser .indicator-browser-related button{
  min-height:28px;padding:0 10px;border:0;border-radius:8px;background:#202027;color:#ececef;cursor:pointer
}
dialog.indicator-library.indicator-browser footer{padding:12px 0 0;border-top:1px solid #2c2c35;color:#7e7e87}
dialog.indicator-library.indicator-browser .indicator-template-panel{margin-top:12px}
#chart-tools-menu{position:relative;display:flex;width:auto;max-width:none}
#chart-tools-menu .chart-tools-button{width:auto;max-width:none;height:32px;min-height:32px;padding:0 8px;gap:4px}
#chart-tools-menu .chart-tools-button span{font-size:13px;color:inherit}
#chart-tools-menu .chart-tools-chevron{width:14px;height:14px}
.chart-tools-panel{
  position:fixed;z-index:80;box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-width:min(560px,calc(100vw - 32px));
  height:auto;max-height:min(480px,calc(100dvh - 160px));margin:0;overflow:auto;padding:12px;border-radius:12px;
  background:#17171c;color:#e4e4e5;box-shadow:rgba(0,0,0,.16) 0 8px 28px,#2c2c35 0 0 0 1px;font:14px/1.4 var(--font,Pretendard,sans-serif)
}
body.atlas-funnest-compact .chart-tools-panel{
  width:min(360px,calc(100vw - 16px));max-width:min(360px,calc(100vw - 16px));padding:8px
}
.chart-tools-panel[hidden]{display:none}
.chart-tools-section{padding:8px 10px 4px;color:#7e7e87;font-size:12px;font-weight:700}
.chart-tools-segment,.chart-tools-layouts{display:flex;gap:4px;padding:0 4px 8px}
.chart-tools-segment button,.chart-tools-layouts button,.chart-tools-item{
  min-height:34px;border:0;border-radius:8px;background:transparent;color:#7e7e87;font:14px/34px var(--font,sans-serif);cursor:pointer
}
.chart-tools-segment button{flex:1}
.chart-tools-segment button[aria-checked=true]{background:#202027;color:#ececef}
.chart-tools-layouts{display:grid;grid-template-columns:repeat(3,1fr)}
.chart-tools-layouts button{display:grid;place-items:center;height:44px;color:#ececef;font-size:15px;font-weight:650}
.chart-tools-layouts button[aria-checked=true]{background:#202027}
.chart-tools-layouts button:disabled,.chart-tools-segment button:disabled,.chart-tools-item:disabled{opacity:.38;cursor:not-allowed}
.chart-tools-separator{height:1px;margin:4px 8px;background:#2c2c35}
.chart-tools-item{display:block;width:100%;padding:0 10px;text-align:left}
.chart-tools-item:hover:not(:disabled),.chart-tools-segment button:hover:not(:disabled),.chart-tools-layouts button:hover:not(:disabled){background:#202027;color:#ececef}
@media (min-width: 621px) {
  body[data-shell=chart] #workbench-frequency.interval-picker{display:flex;align-items:center;flex:none;position:relative;width:max-content;max-width:none;height:36px;margin:0;padding:0;border:0;background:transparent;color:#e4e4e5;font-size:14px}
  body[data-shell=chart] #workbench-frequency.interval-picker>legend{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body[data-shell=chart] #workbench-frequency.interval-picker .lab-segmented.interval-chips{display:flex;align-items:center;flex:none;width:max-content;height:32px;gap:2px;overflow:visible}
  body[data-shell=chart] #workbench-frequency.interval-picker #workbench-interval-select{display:none}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-chip{width:auto;min-width:0;max-width:none;height:32px;min-height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#7e7e87;font-size:13px;font-weight:600;line-height:32px}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-chip[aria-pressed=true]{background:#202027;color:#e4e4e5;font-weight:600}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-chip:hover:not(:disabled){color:#ececef}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-more{display:inline-flex;align-items:center;gap:2px;width:auto;height:36px;min-height:36px;padding:0 6px;border:0;border-radius:8px;background:transparent;color:#7e7e87;font-size:13px;font-weight:600}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-more:hover:not(:disabled){background:transparent;color:#ececef}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-current{display:none;font:600 13px/32px inherit;color:#e4e4e5}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-more.is-overflow .interval-current{display:inline}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-chevron{width:14px;height:14px;color:#7e7e87}
}
.interval-more-panel{position:fixed;z-index:80;box-sizing:border-box;width:148px;padding:6px;border-radius:12px;background:#17171c;color:#e4e4e5;box-shadow:rgba(0,0,0,.16) 0 8px 28px,#2c2c35 0 0 0 1px}
.interval-more-panel[hidden]{display:none}
.interval-more-panel button{display:flex;align-items:center;width:100%;height:36px;min-height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#7e7e87;font-size:14px;text-align:left;cursor:pointer}
.interval-more-panel button[aria-pressed=true],.interval-more-panel button:hover{background:#202027;color:#ececef}
@media(max-width:620px){
  .shell-feature-actions #chart-tools-menu .chart-tools-button{height:44px;min-height:44px;min-width:44px}
  body[data-shell=chart] #workbench-frequency.interval-picker{height:48px}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-chip,
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-more{width:auto;height:44px;min-height:44px;line-height:44px}
  body[data-shell=chart] .atlas-canvas-heading #workbench-frequency.interval-picker .interval-more{display:inline-flex}
}
.chart-symbol-legend{display:flex;flex-direction:column;gap:1px;min-width:0;color:#7e7e87;font-size:12px;line-height:17px}
.chart-symbol-legend-title{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-height:18px;font-size:13px;white-space:normal}
.chart-symbol-legend-title b{color:#e4e4e5;font-weight:500}
.chart-symbol-avatar{width:18px;height:18px;border-radius:50%}
.chart-symbol-legend-values{display:flex;flex-wrap:wrap;gap:2px 8px;min-height:17px}
.chart-symbol-legend-values b.is-up{color:var(--chart-candle-up)}
.chart-symbol-legend-values b.is-down{color:var(--chart-candle-down)}
.chart-symbol-legend-values b.is-flat{color:#e4e4e5}
.eth-readout-line,.eth-readout-source{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:800px){
  dialog.indicator-library.indicator-browser .indicator-library-heading>button{width:44px;height:44px;min-height:44px}
}
/* A symbol chosen in the outlook chart keeps this plot. Bitcoin research controls stay off that series. */
html:is([data-symbol="ETHUSD"],[data-symbol="MSTR"],[data-symbol="BMNR"]) :is(#workbench-scenario,#atlas-cycle-panel,#workbench-monthly-backtest,#workbench-replay,#chart-indicator-manager,[data-chart-span]){display:none!important}
.outlook-symbol-chart{position:absolute;inset:0;z-index:1}
.atlas-plot.is-guest-symbol>:is(svg,.atlas-funnest-canvas,.atlas-funnest-status,.atlas-funnest-future-date-rail,.chart-legend-dock){visibility:hidden;pointer-events:none}
.atlas-plot>.outlook-symbol-studies,.atlas-plot[data-compact-layout]>.outlook-symbol-studies{position:absolute;top:var(--indicator-top,72px);left:10px;z-index:3;width:max-content;max-width:min(360px,calc(100% - var(--plot-right-gap,80px) - 16px));min-height:0;height:auto;max-height:none;overflow:visible;pointer-events:none}
.atlas-plot>.outlook-symbol-studies[hidden]{display:none!important}
body.atlas-funnest-compact[data-shell="chart"] .atlas-plot>.outlook-symbol-studies{left:8px;max-width:calc(100% - 72px)}
/* Chart chrome uses 12px meta, 13px controls and 14px titles. Weights stay 400 or 500. */
body[data-shell=chart] .atlas-brand{font-weight:500;letter-spacing:0}
body[data-shell=chart] #atlas-cycle-panel :is(h1,h2,h3,h4,strong,b){letter-spacing:0}
body[data-shell=chart] :is(.chart-legend-row-label,.workbench-magnet-badge,.workbench-zone,.workbench-update,#atlas-update-status){font-size:12px;font-weight:400;letter-spacing:0}
body[data-shell=chart] .atlas-canvas-heading :is(button,select,summary){letter-spacing:0}
/* Compact header labels and icons sit in the middle of their 32px controls. */
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading #workbench-frequency.interval-picker {
  justify-content: safe center;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading #workbench-frequency.interval-picker .lab-segmented {
  flex: 0 1 auto;
  width: max-content !important;
  min-width: 0;
  max-width: calc(100% - 32px);
  overflow-x: auto;
  justify-content: flex-start;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading #workbench-frequency.interval-picker :is(.interval-chip, .interval-more) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  line-height: 1 !important;
  text-align: center;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(.atlas-trade-indicators, .atlas-trade-tools-btn, .atlas-trade-draw, .atlas-trade-search, .atlas-trade-account) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > :is(.atlas-trade-indicators, .atlas-trade-tools-btn, .atlas-trade-draw, .atlas-trade-search, .atlas-trade-account) svg {
  display: block;
  flex: none;
  margin: 0;
}
/* Compact indicator window uses the same touch row as the tools menu. */
body.atlas-funnest-compact dialog.indicator-library.indicator-browser .indicator-library-row,
body.atlas-funnest-compact dialog.indicator-library.indicator-browser .indicator-library-item {
  min-height: 44px;
  height: auto;
}
body.atlas-funnest-compact dialog.indicator-library.indicator-browser .indicator-library-views button,
body.atlas-funnest-compact dialog.indicator-library.indicator-browser .indicator-categories button {
  min-height: 44px;
  height: 44px;
  line-height: 44px;
}
/* The account circle takes the Bitcoin mark's top-left place. */
body[data-shell=chart] .atlas-canvas-heading #workbench-scenario { display: none !important; }
body.atlas-funnest-compact .atlas-trade-brand { display: none !important; }
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > .atlas-trade-account { order: 0; }
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-sidebar > .atlas-brand { display: none !important; }
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-sidebar > .auth-account {
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
  flex: none;
  width: 36px;
  height: 36px;
  min-width: 0;
  max-width: 36px;
  margin: 0;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-sidebar > .auth-account .auth-account-name {
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  max-width: 32px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-sidebar > .auth-account .auth-account-mark {
  width: 28px;
  height: 28px;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-sidebar > .auth-account :is(.auth-account-label, .auth-account-status) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body.atlas-funnest-compact .chart-tools-section {
  font-weight: 500;
}
body.atlas-funnest-compact .chart-tools-segment button,
body.atlas-funnest-compact .chart-tools-item {
  min-height: 44px;
  line-height: 44px;
}
/* Period, backtest and replay sit in the same header row as 지표 and 도구. */
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading > .shell-instrument-slot {
  flex: none;
  width: max-content;
  min-width: max-content;
  max-width: none;
  overflow: visible;
  gap: 2px;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading #atlas-cycle-panel {
  display: inline-flex;
  align-items: center;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  padding: 0;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading #atlas-cycle-options {
  position: relative;
  height: 32px;
  margin: 0;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading :is(#atlas-cycle-options > summary, #workbench-monthly-backtest, #workbench-replay) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: var(--pill-radius, 4px);
  background: var(--surface);
  color: var(--text);
  font: 13px/32px var(--font, sans-serif);
  gap: 6px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading :is(#atlas-cycle-options > summary, #workbench-monthly-backtest, #workbench-replay) > svg {
  width: 17px;
  height: 17px;
  flex: none;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading #atlas-cycle-options > summary {
  list-style: none;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading #atlas-cycle-options > summary::-webkit-details-marker,
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading #atlas-cycle-options > summary::marker {
  content: '';
  display: none;
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading :is(#atlas-cycle-options > summary, #workbench-monthly-backtest, #workbench-replay):hover {
  background: var(--surface-hover);
  color: var(--text);
}
body[data-shell=chart]:not(.atlas-funnest-compact) .atlas-canvas-heading :is(#atlas-cycle-options[open] > summary, #workbench-monthly-backtest[aria-expanded="true"], #workbench-replay[aria-pressed="true"]) {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
/* Relay, listings and asset comparison fill the viewport. The same links stay on the right rail. */
body[data-content-frame="full"] {
  --app-header-height: 0px;
  --content-bottom-height: 0px;
}
body[data-content-frame="full"] .atlas-dashboard-header,
body[data-content-frame="full"] #content-bottom-bar,
body[data-content-frame="full"] .footer {
  display: none !important;
}
body[data-content-frame="full"] .workspace,
body[data-content-frame="full"] #root > .workspace {
  margin: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  padding: 0 45px 0 0 !important;
  background: var(--bg);
}
body[data-content-frame="full"] #main {
  max-width: none;
  height: 100%;
}
body[data-content-frame="full"] #main > :is(#ipo-view, #data-view, #relay-view) {
  border: 0;
  box-shadow: none;
  background: var(--bg);
}
body[data-content-frame="full"] #content-rail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 45px;
  height: 100dvh;
  margin: 0;
  padding: 8px 0;
  border-left: 1px solid var(--border);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
}
body[data-content-frame="full"] #content-rail .atlas-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0;
  overflow: visible;
}
body[data-content-frame="full"] #content-rail .atlas-nav :is(a, button) {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
body[data-content-frame="full"] #content-rail .atlas-nav :is(a, button) > span:last-child:not([data-icon]) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
body[data-content-frame="full"] #content-rail .atlas-nav svg {
  width: 18px;
  height: 18px;
}
body[data-content-frame="full"] #content-rail .atlas-nav :is(a, button):hover {
  background: var(--surface-hover);
  color: var(--text);
}
body[data-content-frame="full"] #content-rail .atlas-nav :is(.active, [aria-current="page"]) {
  background: var(--surface);
  color: var(--text);
}
body[data-content-frame="full"] #content-rail .atlas-nav :is(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
body[data-content-frame="full"] #content-rail .atlas-nav-scroll {
  display: none !important;
}
body.atlas-funnest-compact[data-content-frame="full"] .workspace,
body.atlas-funnest-compact[data-content-frame="full"] #root > .workspace {
  top: 0 !important;
  right: 0 !important;
  bottom: var(--atlas-trade-tabs) !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.atlas-funnest-compact[data-content-frame="full"] #content-rail {
  display: none !important;
}
body.atlas-funnest-compact[data-content-frame="full"] :is(.atlas-trade-status, .atlas-trade-upper) {
  display: none !important;
}
body[data-content-frame="full"] #data-view .daily-heading {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  overflow: visible;
  white-space: normal;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: auto;
}
body[data-content-frame="full"] #data-view .daily-heading-title {
  display: flex !important;
  align-items: center;
  min-width: 0;
}
body[data-content-frame="full"] :is(.daily-back, .ipo-back, .daily-board-label) {
  display: none !important;
}
body[data-content-frame="full"] :is(#data-view .daily-heading h2, #ipo-view .ipo-heading h2) {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}
body[data-content-frame="full"] #ipo-view {
  padding: 0;
  gap: 0;
}
body[data-content-frame="full"] #ipo-view .ipo-heading {
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  gap: 8px;
}
body[data-content-frame="full"] #ipo-view .ipo-page-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
/* Compact account uses the same blue circle as the desktop sidebar mark. */
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > .atlas-trade-account {
  flex: 0 0 28px;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  border-radius: 50% !important;
  background: #2962ff !important;
  color: #fff !important;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > .atlas-trade-account svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}
body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading > .atlas-trade-account svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
/* Tablet keeps the phone interval set, but the symbol and intervals sit on the left instead of floating in an empty bar. */
@media (min-width: 641px) and (max-width: 1024px) {
  body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .atlas-canvas-heading > :is(.symbol-selector-trigger, .workbench-symbol) {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    min-width: 0 !important;
    max-width: 240px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 !important;
    padding: 0 4px 0 0 !important;
    overflow: hidden !important;
    color: rgb(236, 236, 239);
    font-size: 14px;
    font-weight: 500;
  }
  body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .symbol-selector-name {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .symbol-selector-label {
    color: rgb(176, 176, 186);
    font-size: 12px;
    font-weight: 400;
  }
  body.atlas-funnest-compact[data-shell="chart"]:not([data-center-tool]) .symbol-selector-chevron svg {
    width: 14px;
    height: 14px;
  }
  body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading #workbench-frequency.interval-picker {
    justify-content: flex-start;
  }
  body.atlas-funnest-compact[data-shell="chart"] .atlas-canvas-heading #workbench-frequency.interval-picker .lab-segmented {
    justify-content: flex-start;
  }
}

