/* AT-01: reserve a compact assistant dock outside the landing-page reading area. */

/* AT-02: the query owns a full row before compact search actions. */
@media(max-width:600px){
.ni-searchbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:start!important}
.ni-searchbar .ni-query{grid-column:1/-1;display:grid!important;grid-template-columns:24px minmax(0,1fr);width:100%!important;min-width:0!important;gap:8px!important;box-sizing:border-box}
.ni-query>.ni-search-icon{grid-column:1;grid-row:1;align-self:center;justify-self:center}
.ni-query>input{grid-column:2;grid-row:1;width:100%!important;min-width:0!important;font-size:16px!important;min-height:44px;box-sizing:border-box}
.ni-query>.ni-search-submit{grid-column:1/-1;grid-row:2;min-height:44px!important;width:100%;white-space:nowrap}
.ni-searchbar>.ni-button,.ni-searchbar>.ni-refresh{min-height:44px!important;min-width:44px!important;white-space:nowrap}
}

/* AT-03: feature assistant gets a separate dock, outside the scrolling document. */
html:has(body:is([data-tool],.market-briefing-page)>.atlas-assistant-page-launcher){height:100%;overflow:hidden!important}
body:is([data-tool],.market-briefing-page):has(>.atlas-assistant-page-launcher){height:calc(100dvh - 56px)!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
body:is([data-tool],.market-briefing-page):has(>.atlas-assistant-page-launcher)::after{content:"";position:fixed;left:0;right:0;bottom:0;height:56px;background:var(--at-bg,#fff);border-top:1px solid var(--at-line,#bbb);z-index:2147482990;pointer-events:none}
body:is([data-tool],.market-briefing-page)>.atlas-assistant-page-launcher{position:fixed!important;left:auto!important;right:12px!important;top:auto!important;bottom:6px!important;width:64px!important;height:44px!important;min-width:44px;min-height:44px;transform:none!important;border-radius:12px!important;z-index:2147483000!important}

html[data-theme="dark"] body:is([data-tool],.market-briefing-page):has(>.atlas-assistant-page-launcher)::after{background:#111;border-color:#444}

/* AT-04: reading templates share explicit light/dark colors. */
html[data-theme="dark"]:has(body.article-page){color-scheme:dark;background:#111;color:#eee;--line:#3c3c3c;--muted:#b5b5b5;--paper:#111}
html[data-theme="dark"] body.article-page{background:#111;color:#eee}
html[data-theme="dark"] .article-page :is(.back-link,.terminal-link,.article-tags a,.source-title,.article-loading,footer,#article .summary){color:#bdbdbd}
html[data-theme="dark"] .article-page :is(.badge,.retry){color:#eee;background:#222;border-color:#666}
html[data-theme="dark"] .article-page :is(a,button):focus-visible{outline-color:#eee}
html[data-theme="dark"] .article-page .brand img{filter:invert(1)}
html[data-theme="dark"]:has(body.aletheia-research){color-scheme:dark;--ar-ink:#efefef;--ar-muted:#b5b5b5;--ar-rule:#444;--ar-paper:#111;--ar-soft:#1e1e1e}
html[data-theme="dark"] .aletheia-research :is(.ar-intro,.ar-question p,.ar-steps p,.ar-product p:not(.ar-eyebrow),.ar-faq dd,h1 span){color:#c7c7c7}
html[data-theme="dark"] .aletheia-research :is(.ar-languages a[aria-current],.ar-question .ar-question-example){color:var(--ar-ink)}
html[data-theme="dark"] .aletheia-research :is(.ar-button,.ar-question,.ar-boundary,.ar-example small){border-color:var(--ar-rule)}
html[data-theme="dark"] .aletheia-research .ar-button-primary{background:#eee;color:#111;border-color:#eee}
html[data-theme="dark"] .aletheia-research .ar-button:hover{background:#333;color:#fff}
html[data-theme="dark"] .aletheia-research .ar-button-primary:hover{background:#fff;color:#111}
html[data-theme="dark"] .aletheia-research :is(a,summary):focus-visible{outline-color:#eee}
html[data-theme="dark"] .aletheia-research .ar-brand img{filter:invert(1)}

/* AT-05: explicit readable foreground on the briefing assistant control. */
body.market-briefing-page button.atlas-assistant-page-launcher,body.market-briefing-page button.atlas-assistant-page-launcher *{color:#fff!important}
body.market-briefing-page button.atlas-assistant-page-launcher{background:#111827!important;border:1px solid #8b94a3!important;font-size:14px!important;font-weight:600!important}

/* AT-06: arrows own columns; labels keep their actual content width. */
body.market-briefing-page .mb-market-bar{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:6px!important;align-items:center}
body.market-briefing-page .mb-market-tabs{min-width:0!important;width:100%!important;overflow-x:auto!important;gap:8px!important;scroll-padding-inline:4px;scroll-snap-type:x proximity}
body.market-briefing-page .mb-market-tab{flex:0 0 auto!important;width:auto!important;min-width:44px!important;padding:12px!important;white-space:nowrap;scroll-snap-align:start}
body.market-briefing-page .mb-scroll{position:static!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:0!important}

/* AT-07: consistent readable controls and touch targets on the entry header. */
.atlas-entry .ae-header :is(.ae-motion,.atlas-guide-launcher,.docta-theme-toggle,.ae-locale-switch>summary){font-size:14px!important;line-height:1.4!important;min-height:44px!important;height:auto!important;box-sizing:border-box;padding:10px 12px!important;white-space:nowrap}
.atlas-entry .ae-header .docta-theme-toggle span{font-size:inherit!important}
.atlas-entry .ae-languages a{font-size:14px!important;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:600px){.atlas-entry .ae-header{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important}.atlas-entry .ae-header .ae-brand{flex:1 0 100%;margin:0!important}.atlas-entry .ae-header .ae-nav{flex:1 0 100%;margin:0!important}.atlas-entry .ae-header :is(.ae-motion,.atlas-guide-launcher,.docta-theme-toggle,.ae-locale-switch){order:3!important;margin:0!important}}

.atlas-entry .ae-locale-switch>summary{min-width:44px!important}
@media(max-width:600px){.atlas-entry .ae-locale-switch .ae-languages{left:0!important;right:auto!important;max-width:calc(100vw - 32px)!important}}

/* AT-08: field names remain readable before any input is entered. */
.yc-entry-field>label{font-size:14px!important;line-height:1.5!important;font-weight:500!important;letter-spacing:normal!important;margin-bottom:6px!important}
@media(max-width:700px){.yc-entry-auth-column{padding-top:16px!important}.yc-entry-utility-row{margin-bottom:12px!important}.yc-entry-auth-copy{margin-bottom:12px!important;line-height:1.65!important}.yc-entry-auth h2{margin-bottom:12px!important}.yc-entry-tabs{margin-bottom:12px!important}.yc-entry-auth-kicker{margin-bottom:8px!important}}

/* AT-09: guest/error message and actions have independent rows. */
@media(max-width:600px){.ic-status{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important}.ic-status>span{flex:1 0 100%;min-width:0;line-height:1.7}.ic-status>.ic-button{flex:0 0 auto;white-space:nowrap!important;min-height:44px!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px!important;font-size:14px!important}}

/* AT-10: no empty chat column while the workspace is collapsed. */
.atlas-entry .ae-chat-area:has(.ae-chat-window[hidden]){display:none!important}
@media(min-width:901px){.atlas-entry .ae-main:has(.ae-chat-window[hidden]){grid-template-columns:minmax(0,1fr)!important;max-width:1160px!important;margin-inline:auto!important;gap:0!important}.atlas-entry .ae-main:has(.ae-chat-window[hidden]) .ae-hero{width:100%;max-width:960px;margin-inline:auto}.atlas-entry .ae-main:has(.ae-chat-window[hidden]) .ae-description{max-width:820px!important}}

/* AT-11: article navigation has readable labels and touch targets. */
.article-page .terminal-link,.article-page .back-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px!important;font-size:14px!important;line-height:1.5!important;padding:8px 10px;white-space:nowrap}
.article-page .back-link{justify-content:flex-start;margin-bottom:24px}
.article-page .article-tags{gap:8px;margin-block:16px 24px}
.article-page .article-tags a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;font-size:13px!important;line-height:1.5;padding:8px 10px;border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere}
@media(max-width:700px){.article-page .masthead{height:auto!important;min-height:72px;flex-wrap:wrap;gap:8px 12px;padding:12px 18px}.article-page .terminal-link{margin-left:auto}.article-page .article-shell{padding-top:16px}}

/* AT-12: compact screens scroll the command area away and retain only one asset row. */
@media(max-height:600px),(max-width:600px){
html:root body.terminal-v2-page .terminal-command{position:static!important;top:auto!important}
html:root body.terminal-v2-page .terminal-workspace-tabs{position:sticky!important;top:0!important;bottom:auto!important;left:auto!important;right:auto!important;width:100%!important;height:56px!important;min-height:56px!important;max-height:56px!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;padding:4px 8px!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;z-index:80}
html:root body.terminal-v2-page .terminal-workspace-tabs button{flex:0 0 auto!important;display:flex!important;align-items:center;gap:6px;min-height:44px!important;padding:6px 12px!important;width:auto!important;white-space:nowrap}
html:root body.terminal-v2-page .terminal-workspace-tabs button :is(code,span){max-width:none;white-space:nowrap;margin:0!important}
html:root body.terminal-v2-page .terminal-function-tabs{position:relative!important;top:auto!important;margin-left:0!important}
html:root body.terminal-v2-page .terminal-canvas{padding:16px 16px 48px!important}
html:root body.terminal-v2-page .atlas-feature-nav{flex-wrap:nowrap!important;overflow-x:auto!important;min-width:0}
html:root body.terminal-v2-page .atlas-feature-nav>a{flex:0 0 auto}
}

/* AT-13: research overflow menu stays inside the viewport and scrolls independently. */
html:has(body.terminal-v2-page .terminal-more-tools[open]){overflow:hidden!important}
html:root body.terminal-v2-page .terminal-function-tabs:has(.terminal-more-tools[open]){z-index:2147483010!important}
html:root body.terminal-v2-page .terminal-more-tools[open]::before{content:"";position:fixed;inset:0;background:#0008;z-index:1}
html:root body.terminal-v2-page .terminal-more-tools[open]>summary{position:fixed!important;top:10px!important;left:50%!important;right:auto!important;width:min(600px,calc(100vw - 24px));box-sizing:border-box;transform:translateX(-50%);min-height:44px;display:flex;align-items:center;padding:10px 14px!important;background:var(--ui-neutral-255,#fff);color:var(--ui-neutral-41,#292929);border:1px solid var(--ui-neutral-216,#d8d8d8);z-index:3}
html:root body.terminal-v2-page .terminal-more-tools[open]>summary::after{content:"收起 ×";margin-left:auto;font-size:13px}
html[lang="en"] body.terminal-v2-page .terminal-more-tools[open]>summary::after{content:"Close ×"}
html:root body.terminal-v2-page .terminal-more-tools[open] .terminal-more-menu{position:fixed!important;top:62px!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translateX(-50%);width:min(600px,calc(100vw - 24px))!important;min-width:0!important;max-height:calc(100dvh - 78px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:12px!important;box-sizing:border-box;z-index:3;background:var(--ui-neutral-255,#fff)}
html:root body.terminal-v2-page .terminal-more-menu button{width:100%;min-height:44px;padding:10px!important;white-space:normal!important;font-size:14px!important;line-height:1.5!important}
body.terminal-v2-page:has(.terminal-more-tools[open])>[data-chat-pet],body.terminal-v2-page:has(.terminal-more-tools[open])>.chat-pet-tools{visibility:hidden!important;pointer-events:none!important}

/* The terminal already has an AI command; its floating portrait must not block research triggers. */
html:root body.terminal-v2-page .terminal-more-tools:not([open])>.terminal-more-menu{display:none!important}

/* AT14 BEGIN: keep research content inside the first horizontal display segment. */
@media(vertical-viewport-segments:2){
html:has(body.aletheia-research){height:100%;overflow:hidden!important}
body.aletheia-research[data-atlas-compact-dock]{position:absolute!important;left:env(viewport-segment-left 0 0,0px)!important;top:env(viewport-segment-top 0 0,0px)!important;width:env(viewport-segment-width 0 0,100vw)!important;height:env(viewport-segment-height 0 0,100dvh)!important;min-height:0!important;margin:0!important;overflow-y:auto!important;overflow-x:hidden!important}
}
/* AT14 END */

/* AT-15: short embedded windows stay above the reserved assistant dock. */
/* RESTORE-01: preserve the original animated character and its draggable controls. */

/* RERUN-010: fit the primary terminal actions on phones while retaining 44px targets. */
@media(max-width:600px){
 html:root body.terminal-v2-page .terminal-command-meta{gap:3px}
 html:root body.terminal-v2-page .terminal-command-meta :is(.terminal-ai-toggle,.terminal-exit,#atlas-paper-trade-launcher,.docta-theme-toggle){font-size:12px!important;min-height:44px!important;letter-spacing:0!important}
 html:root body.terminal-v2-page .terminal-command-meta #atlas-paper-trade-launcher{padding:6px 8px!important;gap:6px!important}
 html:root body.terminal-v2-page .terminal-command-meta .docta-theme-toggle{width:auto!important;display:flex!important;justify-content:center;align-items:center;padding:6px 8px!important;gap:5px!important}
}
@media(max-width:300px){
 html:root body.terminal-v2-page .terminal-command-meta #atlas-paper-trade-launcher{width:88px!important;white-space:normal!important;line-height:1.15!important;padding:4px 6px!important;gap:4px!important}
 html:root body.terminal-v2-page .terminal-command-meta .docta-theme-toggle{padding:6px 4px!important;gap:3px!important}
}

@media(max-width:600px){html:root body.terminal-v2-page .terminal-command-meta .terminal-ai-toggle{width:44px!important;min-width:44px!important;padding:4px!important;flex:0 0 44px}}

@media(max-width:360px){
 html:root body.terminal-v2-page .terminal-command-meta .docta-theme-toggle{display:grid!important;grid-template-columns:1fr;grid-auto-rows:1fr;gap:0!important;padding:4px 7px!important;min-width:48px;line-height:1.1!important}
 html:root body.terminal-v2-page .terminal-command-meta .docta-theme-toggle>span[aria-hidden="true"]{display:none}
}

/* RERUN-012: let the terminal fit folded outer screens and classic scrollbars. */
html:root:has(>body.terminal-v2-page),html:root body.terminal-v2-page{min-width:0!important}

/* RERUN-013: the intermediate tablet rail stays vertical above the phone breakpoint. */
@media(min-width:601px) and (max-width:760px) and (min-height:601px){
 html:root body.terminal-v2-page .terminal-workspace-tabs{flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;overflow-x:hidden!important;overflow-y:auto!important;padding-bottom:72px!important}
 html:root body.terminal-v2-page .terminal-workspace-tabs button{width:100%!important;min-height:54px!important;height:54px!important;flex:0 0 auto!important}
}

/* RERUN-014: the vertical rail ends above the fixed account control. */
@media(min-width:601px) and (min-height:601px){
 html:root body.terminal-v2-page .terminal-workspace-tabs{bottom:calc(76px + env(safe-area-inset-bottom))!important;height:auto!important;padding-bottom:12px!important;overflow-x:hidden!important;overflow-y:auto!important;scroll-padding-block:12px}
}

/* RERUN-015: keep instrument names and maturities readable in narrow cards. */
html:root body.terminal-v2-page .atlas-desk-card .atlas-instrument-row>span{min-width:0}
html:root body.terminal-v2-page .atlas-desk-card .atlas-instrument-row strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance;line-height:1.45}

/* RERUN-016: phone market cards retain the full index name, quote and change. */
html:root body.terminal-v2-page .atlas-region-quote{grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center}
html:root body.terminal-v2-page .atlas-region-quote>span{min-width:0;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:keep-all;overflow-wrap:anywhere}
html:root body.terminal-v2-page .atlas-region-quote>em{display:block!important;white-space:nowrap}
@media(max-width:480px){html:root body.terminal-v2-page .atlas-region-grid{grid-template-columns:minmax(0,1fr)!important}}
/* RERUN-018: Quant light palette; generated from the six live stylesheets. */
:root[data-atlas-quant][data-theme="light"]{color-scheme:light;--bg:#f6f7f7;--surface:#edefef;--surface2:#e8eaea;--surface3:#e2e4e4;--line:#d3d6d6;--line-soft:#dcdfdf;--fg:#1a170f;--muted:#585d59;--dim:#828b86;--accent:#323723;--green:#315c3f;--red:#68271e;}
:root[data-atlas-quant][data-theme="light"] input,:root[data-atlas-quant][data-theme="light"] select,:root[data-atlas-quant][data-theme="light"] textarea{background:#f2f4f3;border:1px solid #c5cac6;}
:root[data-atlas-quant][data-theme="light"] .sidebar{background:#f2f4f3;}
:root[data-atlas-quant][data-theme="light"] .atlas-mark{border:1px solid #3d4237;}
:root[data-atlas-quant][data-theme="light"] .nav-item.active{background:#dee3de;border-color:#c6cfc2;}
:root[data-atlas-quant][data-theme="light"] .nav-item .nav-count{border:1px solid #c6ccc5;}
:root[data-atlas-quant][data-theme="light"] .dot.running{background:#63552a;}
:root[data-atlas-quant][data-theme="light"] .avatar{background:#d5dbd4;}
:root[data-atlas-quant][data-theme="light"] .breadcrumb .slash{color:#525b53;}
:root[data-atlas-quant][data-theme="light"] .btn{border:1px solid #c5cbc6;}
:root[data-atlas-quant][data-theme="light"] .btn:hover{background:#d8ded7;border-color:#adb7ab;}
:root[data-atlas-quant][data-theme="light"] .btn.primary{color:#eaeee6;}
:root[data-atlas-quant][data-theme="light"] .btn.primary:hover{background:#1f2216;}
:root[data-atlas-quant][data-theme="light"] .hero{background:linear-gradient(115deg,#e2e8e2,#ebefec 72%);}
:root[data-atlas-quant][data-theme="light"] .hero-art{color:#565e4f3f;}
:root[data-atlas-quant][data-theme="light"] .hero .eyebrow{color:#596747;}
:root[data-atlas-quant][data-theme="light"] .hero-kicker{color:#4b5941;}
:root[data-atlas-quant][data-theme="light"] .step-num{border:1px solid #c2cbbd;}
:root[data-atlas-quant][data-theme="light"] .template-icon{background:#dae1d8;}
:root[data-atlas-quant][data-theme="light"] .tag,:root[data-atlas-quant][data-theme="light"] .badge{border:1px solid #c7cfc6;background:#e5eae5;}
:root[data-atlas-quant][data-theme="light"] .badge.demo{color:#63552a;background:#e5e1d6;border-color:#d4ccb6;}
:root[data-atlas-quant][data-theme="light"] .badge.real{background:#d9e7de;border-color:#b8cebc;}
:root[data-atlas-quant][data-theme="light"] .badge.community{color:#292f47;background:#d4d7df;border-color:#aeb4c7;}
:root[data-atlas-quant][data-theme="light"] .badge.failed{background:#e4d6d4;border-color:#d0b5af;}
:root[data-atlas-quant][data-theme="light"] .badge.running{color:#63552a;background:#e5e3d8;border-color:#d5d0ba;}
:root[data-atlas-quant][data-theme="light"] th{background:#eaeeeb;}
:root[data-atlas-quant][data-theme="light"] tbody tr:hover{background:#e4e9e4;}
:root[data-atlas-quant][data-theme="light"] .notice{border:1px solid #cccfc3;color:#4f523c;background:#e7eae2;}
:root[data-atlas-quant][data-theme="light"] .notice.error{color:#56261a;border-color:#c8afa6;background:#e7deda;}
:root[data-atlas-quant][data-theme="light"] .notice.info{color:#39464b;border-color:#b6c3cc;background:#dfe6ea;}
:root[data-atlas-quant][data-theme="light"] .lab-toolbar{background:#eaeeeb;}
:root[data-atlas-quant][data-theme="light"] .canvas-scroll{background-color:#eff3f0;background-image:radial-gradient(#b3bbaf60 1px,transparent 1px);}
:root[data-atlas-quant][data-theme="light"] .canvas-lines path{stroke:#adbaa7;}
:root[data-atlas-quant][data-theme="light"] .node{border:1px solid #c0c9bc;background:#e4eae4;}
:root[data-atlas-quant][data-theme="light"] .node:hover{border-color:#90a083;}
:root[data-atlas-quant][data-theme="light"] .node.selected{border-color:#4d6239;}
:root[data-atlas-quant][data-theme="light"] .node-icon{background:#d1dacd;}
:root[data-atlas-quant][data-theme="light"] .node-num{color:#54604e;}
:root[data-atlas-quant][data-theme="light"] .node-subtitle{color:#545e4f;}
:root[data-atlas-quant][data-theme="light"] .node-detail{color:#3b4234;}
:root[data-atlas-quant][data-theme="light"] .node-foot{color:#535f4f;}
:root[data-atlas-quant][data-theme="light"] .port{background:#94a586;border:2px solid #e4eae4;}
:root[data-atlas-quant][data-theme="light"] .node.drop-hover{border-color:#1a220a;}
:root[data-atlas-quant][data-theme="light"] .canvas-footer .status-line{color:#54624a;}
:root[data-atlas-quant][data-theme="light"] .stage-tabs{background:#e9eee9;}
:root[data-atlas-quant][data-theme="light"] .stage-tab.selected{background:#d1dbcb;color:#2b3720;border-color:#aec0a3;}
:root[data-atlas-quant][data-theme="light"] .field>span,:root[data-atlas-quant][data-theme="light"] .field>label{color:#393f35;}
:root[data-atlas-quant][data-theme="light"] .selected-factor{border:1px solid #c5d1bf;background:#e3eae1;}
:root[data-atlas-quant][data-theme="light"] .factor-tile{border:1px solid #cad4c5;background:#e6ece4;}
:root[data-atlas-quant][data-theme="light"] .factor-tile:hover{border-color:#859872;}
:root[data-atlas-quant][data-theme="light"] .filter-pill.selected{background:#d4dccf;border-color:#b4c1ac;}
:root[data-atlas-quant][data-theme="light"] .code-snippet{background:#f1f6f1;color:#4a593d;}
:root[data-atlas-quant][data-theme="light"] .spinner{border:2px solid #a7b49d;}
:root[data-atlas-quant][data-theme="light"] .legend i{background:#2d3d22;}
:root[data-atlas-quant][data-theme="light"] .legend i.benchmark{background:#848f81;}
:root[data-atlas-quant][data-theme="light"] .chart text{fill:#76836f;}
:root[data-atlas-quant][data-theme="light"] .chart .grid-line{stroke:#d1dace;}
:root[data-atlas-quant][data-theme="light"] .chart .series{stroke:#2b3a20;}
:root[data-atlas-quant][data-theme="light"] .chart .benchmark{stroke:#879480;}
:root[data-atlas-quant][data-theme="light"] .split-train{background:#c5d0be;color:#2b361f;}
:root[data-atlas-quant][data-theme="light"] .split-validation{background:#94a186;color:#f1f6ef;}
:root[data-atlas-quant][data-theme="light"] .split-holdout{background:#464b36;color:#e4eadf;}
:root[data-atlas-quant][data-theme="light"] .definition-list dd{color:#33392e;}
:root[data-atlas-quant][data-theme="light"] .validation-json{color:#4e5e41;}
:root[data-atlas-quant][data-theme="light"] .modal{border:1px solid #b7c3ae;background:#e9f0e8;}
:root[data-atlas-quant][data-theme="light"] .modal-heading{background:#e9f0e8;}
:root[data-atlas-quant][data-theme="light"] .toast{border:1px solid #a5b59c;background:#d4e0ced9;color:#192212;}
:root[data-atlas-quant][data-theme="light"] .toast.error{border-color:#bb9286;background:#e0cdc7ef;color:#33180f;}
:root[data-atlas-quant][data-theme="light"] .skip-link{color:#fafafa;}
:root[data-atlas-quant][data-theme="light"] .tutorial-banner{background:#e0e7dd;border:1px solid #bfceb4;color:#3a482d;}
:root[data-atlas-quant][data-theme="light"] .graph-errors{border-top:1px solid #cfb3a9;color:#673627;background:#e9e1db;}
:root[data-atlas-quant][data-theme="light"] .terminal-note{color:#54644a;background:#f1f7ee;}
:root[data-atlas-quant][data-theme="light"] .card-active{border-color:#96b084;}
:root[data-atlas-quant][data-theme="light"] .split-summary>div{border:1px solid #c5d2bc;border-left:3px solid #8da47d;background:#e5ece1;}
:root[data-atlas-quant][data-theme="light"] .factor-drag-ghost{background:#cbd7c3;color:#1a2312;border:1px solid #3e562a;}
:root[data-atlas-quant][data-theme="light"]{--v2-bg:#eff2ef;--v2-card:#e6ebe6;--v2-line:#ced6cc;--v2-light:#2d3320;--v2-muted:#66735f;--v2-accent:#394429;}
:root[data-atlas-quant][data-theme="light"] .v2-sidebar{background:#eaefea;}
:root[data-atlas-quant][data-theme="light"] .v2-brand strong{color:#596548;}
:root[data-atlas-quant][data-theme="light"] .v2-brand small{color:#555d50;}
:root[data-atlas-quant][data-theme="light"] .v2-mode-switch{background:#f1f6f1;}
:root[data-atlas-quant][data-theme="light"] .v2-mode-switch a.active{background:#d1dacc;color:#1e2514;}
:root[data-atlas-quant][data-theme="light"] .v2-nav-label{color:#54604e;}
:root[data-atlas-quant][data-theme="light"] .v2-nav{color:#555f4f;}
:root[data-atlas-quant][data-theme="light"] .v2-nav small{color:#54604d;}
:root[data-atlas-quant][data-theme="light"] .v2-nav.active{background:#d6e0d2;color:#1c2412;}
:root[data-atlas-quant][data-theme="light"] .v2-nav:hover{background:#e0e8dd;color:#1c2412;}
:root[data-atlas-quant][data-theme="light"] .v2-nav.active .icon{color:#475631;}
:root[data-atlas-quant][data-theme="light"] .v2-session{color:#4b563f;}
:root[data-atlas-quant][data-theme="light"] .v2-session small{color:#54604e;}
:root[data-atlas-quant][data-theme="light"] .v2-breadcrumb{color:#555e50;}
:root[data-atlas-quant][data-theme="light"] .v2-breadcrumb strong{color:#343e29;}
:root[data-atlas-quant][data-theme="light"] .v2-breadcrumb>span{color:#b4c1ae;}
:root[data-atlas-quant][data-theme="light"] .v2-edition{color:#54604e;}
:root[data-atlas-quant][data-theme="light"] .v2-draft{color:#55604d;}
:root[data-atlas-quant][data-theme="light"] .v2-heading p{color:#55604e;}
:root[data-atlas-quant][data-theme="light"] .v2-heading .eyebrow{color:#55624b;}
:root[data-atlas-quant][data-theme="light"] .v2-footer{color:#54604d;}
:root[data-atlas-quant][data-theme="light"] .v2-home-hero{border:1px solid #c4d1be;background:radial-gradient(ellipse at 80% 60%,#d3dfcd77,transparent 55%),linear-gradient(120deg,#e2e9dd,#e7eee4 65%);}
:root[data-atlas-quant][data-theme="light"] .v2-pill{border:1px solid #aabc9d;color:#4b6036;}
:root[data-atlas-quant][data-theme="light"] .v2-home-hero h2{color:#222a17;}
:root[data-atlas-quant][data-theme="light"] .v2-home-hero p{color:#56624b;}
:root[data-atlas-quant][data-theme="light"] .v2-hero-module{border:1px solid #9ab08466;background:#d7e3cfa8;color:#3d4c2c;}
:root[data-atlas-quant][data-theme="light"] .v2-hero-module .icon{color:#566944;}
:root[data-atlas-quant][data-theme="light"] .v2-hero-module span{color:#546846;}
:root[data-atlas-quant][data-theme="light"] .v2-hero-branch:before{border:1px solid #a4b88f49;}
:root[data-atlas-quant][data-theme="light"] .v2-hero-branch:after{border:1px solid #a4b88f49;}
:root[data-atlas-quant][data-theme="light"] .v2-hero-branch>div{border:1px solid #b0c19e;background:#e2eddd;color:#556942;}
:root[data-atlas-quant][data-theme="light"] .v2-hero-caption{color:#556c42;}
:root[data-atlas-quant][data-theme="light"] .v2-stat-strip{background:#e7ede5;}
:root[data-atlas-quant][data-theme="light"] .v2-stat-strip strong{color:#28311c;}
:root[data-atlas-quant][data-theme="light"] .v2-stat-strip span{color:#55604e;}
:root[data-atlas-quant][data-theme="light"] .v2-feature-card .eyebrow{color:#54634b;}
:root[data-atlas-quant][data-theme="light"] .v2-card-symbol{border:1px solid #beceb3;background:#dde8d7;}
:root[data-atlas-quant][data-theme="light"] .v2-card-symbol .icon{color:#536742;}
:root[data-atlas-quant][data-theme="light"] .v2-feature-card p{color:#55614c;}
:root[data-atlas-quant][data-theme="light"] .v2-studio-invitation,:root[data-atlas-quant][data-theme="light"] .v2-community-banner{border:1px solid #c3d1bb;background:linear-gradient(110deg,#e0e8dc,#e7efe5);}
:root[data-atlas-quant][data-theme="light"] .v2-studio-invitation>div>.icon,:root[data-atlas-quant][data-theme="light"] .v2-community-banner>div>.icon{color:#556945;}
:root[data-atlas-quant][data-theme="light"] .v2-studio-invitation p,:root[data-atlas-quant][data-theme="light"] .v2-community-banner p{color:#55634b;}
:root[data-atlas-quant][data-theme="light"] .v2-empty{color:#55604e;}
:root[data-atlas-quant][data-theme="light"] .v2-empty>.icon{color:#536647;}
:root[data-atlas-quant][data-theme="light"] .v2-name{background:#e8efe5;}
:root[data-atlas-quant][data-theme="light"] .v2-name>span{color:#55634b;}
:root[data-atlas-quant][data-theme="light"] .v2-name>small{color:#56644a;}
:root[data-atlas-quant][data-theme="light"] .v2-step-heading>span{background:#dde8d6;border:1px solid #c4d5b9;color:#566d40;}
:root[data-atlas-quant][data-theme="light"] .v2-step-heading p{color:#55614c;}
:root[data-atlas-quant][data-theme="light"] .v2-filterbar>select,:root[data-atlas-quant][data-theme="light"] .v2-catalog-controls>select{background:#e6efe2;}
:root[data-atlas-quant][data-theme="light"] .v2-search .icon{color:#546548;}
:root[data-atlas-quant][data-theme="light"] .v2-search input{background:#eaf1e7;border:1px solid #ccdbc5;}
:root[data-atlas-quant][data-theme="light"] .v2-universe{border:1px solid #ccd9c5;background:#e6efe2;}
:root[data-atlas-quant][data-theme="light"] .v2-universe:hover{border-color:#a5bf93;}
:root[data-atlas-quant][data-theme="light"] .v2-universe.selected{border-color:#6f8c57;background:#dbe9d4;}
:root[data-atlas-quant][data-theme="light"] .v2-universe-top{color:#536548;}
:root[data-atlas-quant][data-theme="light"] .v2-universe h3{color:#314224;}
:root[data-atlas-quant][data-theme="light"] .v2-universe p{color:#546548;}
:root[data-atlas-quant][data-theme="light"] .v2-universe-bottom{border-top:1px solid #ccd9c5;}
:root[data-atlas-quant][data-theme="light"] .v2-universe-bottom>span{color:#39492b;}
:root[data-atlas-quant][data-theme="light"] .v2-universe-bottom small{color:#546548;}
:root[data-atlas-quant][data-theme="light"] .v2-status{border:1px solid #c6cebe;background:#dde2d8;color:#57604d;}
:root[data-atlas-quant][data-theme="light"] .v2-status.ready{color:#537638;border-color:#bdd4b0;background:#d7e9cf;}
:root[data-atlas-quant][data-theme="light"] .v2-availability-reason{color:#656049;}
:root[data-atlas-quant][data-theme="light"] .v2-pagination{color:#55634a;}
:root[data-atlas-quant][data-theme="light"] .v2-goal{border:1px solid #c4d4ba;background:#e4eede;}
:root[data-atlas-quant][data-theme="light"] .v2-goal>.icon{color:#566c42;}
:root[data-atlas-quant][data-theme="light"] .v2-goal strong{color:#364b26;}
:root[data-atlas-quant][data-theme="light"] .v2-goal small{color:#536747;}
:root[data-atlas-quant][data-theme="light"] .v2-goal.selected{background:#cde1c2;border-color:#6e8f53;}
:root[data-atlas-quant][data-theme="light"] .v2-pack{border:1px solid #ccdac3;background:#e6efe2;}
:root[data-atlas-quant][data-theme="light"] .v2-pack:hover{border-color:#9db789;}
:root[data-atlas-quant][data-theme="light"] .v2-pack-icon{background:#d4e3ca;}
:root[data-atlas-quant][data-theme="light"] .v2-pack-icon>.icon{color:#56703c;}
:root[data-atlas-quant][data-theme="light"] .v2-pack h3{color:#2f4022;}
:root[data-atlas-quant][data-theme="light"] .v2-pack p{color:#556548;}
:root[data-atlas-quant][data-theme="light"] .v2-pack small{color:#536846;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe{border:1px solid #afc3a1;background:#e6f0e0;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-title{border-bottom:1px solid #c2d4b6;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-title>.icon{color:#506b39;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-title>span{color:#556845;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-pool{background:#ddedd5;border-bottom:1px solid #c3d8b5;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-pool>.icon{color:#556f3e;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-pool strong{color:#2e4522;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-pool p{color:#536846;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-group{border:1px solid #c0d3b2;background:#e0ecd9;}
:root[data-atlas-quant][data-theme="light"] .v2-group-heading{background:#dae8d1;border-bottom:1px solid #c3d5b8;}
:root[data-atlas-quant][data-theme="light"] .v2-group-heading>strong{color:#4b6435;}
:root[data-atlas-quant][data-theme="light"] .v2-group-heading>span{color:#536b43;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-factor{border-bottom:1px solid #cbddc1;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-factor strong{color:#3e5829;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-factor code{color:#526c42;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-factor select{background:#dfeed9;}
:root[data-atlas-quant][data-theme="light"] .v2-group-empty{color:#546648;}
:root[data-atlas-quant][data-theme="light"] .v2-drop-hint{border:1px dashed #acc49c;color:#526944;}
:root[data-atlas-quant][data-theme="light"] .v2-drop-active{background-color:#cde4c0!important;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-controls{border-top:1px solid #c2d9b3;background:#e7f2e3;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-controls .field>span{color:#536e40;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-controls .field input,:root[data-atlas-quant][data-theme="light"] .v2-recipe-controls .field select{background:#dfefd8;border-color:#bed9ae;}
:root[data-atlas-quant][data-theme="light"] .v2-data-caption{color:#546746;}
:root[data-atlas-quant][data-theme="light"] .v2-data-caption strong{color:#7b5632;}
:root[data-atlas-quant][data-theme="light"] .v2-panel{background:#e8f0e4;border-color:#ccdbc5;}
:root[data-atlas-quant][data-theme="light"] .v2-panel-head{border-bottom:1px solid #ccdcc4;}
:root[data-atlas-quant][data-theme="light"] .v2-panel-head .count-label{color:#526a43;}
:root[data-atlas-quant][data-theme="light"] .v2-panel-content>p{color:#566548;}
:root[data-atlas-quant][data-theme="light"] .v2-panel-content .field>span{color:#4c603e;}
:root[data-atlas-quant][data-theme="light"] .v2-panel-content .field input,:root[data-atlas-quant][data-theme="light"] .v2-panel-content .field select,:root[data-atlas-quant][data-theme="light"] .v2-panel-content .field textarea{background:#eaf3e6;border-color:#c9ddbd;}
:root[data-atlas-quant][data-theme="light"] .v2-source-card{border:1px solid #c3d5b8;background:#e5f0df;}
:root[data-atlas-quant][data-theme="light"] .v2-source-card .icon{color:#52703d;}
:root[data-atlas-quant][data-theme="light"] .v2-source-card strong{color:#324525;}
:root[data-atlas-quant][data-theme="light"] .v2-source-card p{color:#556647;}
:root[data-atlas-quant][data-theme="light"] .v2-source-card.selected{border-color:#55733c;background:#d6e5ce;}
:root[data-atlas-quant][data-theme="light"] .v2-upload-strip{border:1px solid #b7d2a4;background:#dcedd4;}
:root[data-atlas-quant][data-theme="light"] .v2-upload-strip p{color:#536f3e;}
:root[data-atlas-quant][data-theme="light"] .v2-universe-selection{border:1px solid #bcd2ad;background:#ddebd5;}
:root[data-atlas-quant][data-theme="light"] .v2-universe-selection>strong{color:#344e21;}
:root[data-atlas-quant][data-theme="light"] .v2-universe-selection p{color:#546e40;}
:root[data-atlas-quant][data-theme="light"] .v2-universe-selection details{border-top:1px solid #b9d5ac;}
:root[data-atlas-quant][data-theme="light"] .v2-universe-selection summary{color:#496a32;}
:root[data-atlas-quant][data-theme="light"] .v2-member-list label{border-bottom:1px solid #c6ddb8;}
:root[data-atlas-quant][data-theme="light"] .v2-member-list small{color:#536a43;}
:root[data-atlas-quant][data-theme="light"] .v2-factline{border-bottom:1px solid #caddbf;}
:root[data-atlas-quant][data-theme="light"] .v2-factline span{color:#536845;}
:root[data-atlas-quant][data-theme="light"] .v2-factline strong{color:#3b4f2a;}
:root[data-atlas-quant][data-theme="light"] .v2-source-directory>div{border-bottom:1px solid #c9ddbd;}
:root[data-atlas-quant][data-theme="light"] .v2-source-directory p{color:#556747;}
:root[data-atlas-quant][data-theme="light"] .v2-source-directory small{color:#536845;}
:root[data-atlas-quant][data-theme="light"] .v2-tabbar{border-bottom:1px solid #c2d5b6;}
:root[data-atlas-quant][data-theme="light"] .v2-tabbar button{color:#546746;}
:root[data-atlas-quant][data-theme="light"] .v2-tabbar button.active{color:#213016;}
:root[data-atlas-quant][data-theme="light"] .v2-tabbar button span{color:#536d40;}
:root[data-atlas-quant][data-theme="light"] .v2-filter-grid select{background:#e5f0dd;border-color:#c3dab4;}
:root[data-atlas-quant][data-theme="light"] .v2-catalog-caption{color:#536b42;}
:root[data-atlas-quant][data-theme="light"] .v2-catalog-list{border:1px solid #c8ddbb;background:#e6f1e1;}
:root[data-atlas-quant][data-theme="light"] .v2-factor-row{border-bottom:1px solid #caddbf;}
:root[data-atlas-quant][data-theme="light"] .v2-factor-row:hover{background:#dfeed7;}
:root[data-atlas-quant][data-theme="light"] .v2-factor-title>.inline-link,:root[data-atlas-quant][data-theme="light"] .v2-factor-title>strong{color:#385026;}
:root[data-atlas-quant][data-theme="light"] .v2-factor-row-main>p{color:#556a44;}
:root[data-atlas-quant][data-theme="light"] .v2-factor-tags>span{color:#546a44;background:#dae9d2;border:1px solid #c4ddb6;}
:root[data-atlas-quant][data-theme="light"] .v2-factor-row-main>code{color:#53703d;}
:root[data-atlas-quant][data-theme="light"] .v2-expression-editor{color:#3e5627!important;}
:root[data-atlas-quant][data-theme="light"] .v2-research-flow>div{border:1px solid #b9d2a8;background:#dcedd4;color:#354d23;}
:root[data-atlas-quant][data-theme="light"] .v2-research-flow span{color:#536b43;}
:root[data-atlas-quant][data-theme="light"] .v2-research-flow>b{color:#52723b;}
:root[data-atlas-quant][data-theme="light"] .v2-lint{border:1px solid #c0ca9a;background:#e6ead3;color:#59602d;}
:root[data-atlas-quant][data-theme="light"] .v2-lint.valid{border-color:#afd19c;background:#d7ecce;color:#4e702e;}
:root[data-atlas-quant][data-theme="light"] .v2-lint.invalid{border-color:#bc9b88;background:#e7d9ce;color:#684428;}
:root[data-atlas-quant][data-theme="light"] .v2-target-card{background:#e3f0dd;border:1px solid #c1d8b4;}
:root[data-atlas-quant][data-theme="light"] .v2-target-card>.icon{color:#50713d;}
:root[data-atlas-quant][data-theme="light"] .v2-target-card h2{color:#283e18;}
:root[data-atlas-quant][data-theme="light"] .v2-target-card p{color:#546b43;}
:root[data-atlas-quant][data-theme="light"] .v2-target-card code{background:#ebf7e6;border:1px solid #bfdcb2;color:#507439;}
:root[data-atlas-quant][data-theme="light"] .v2-target-card>span{color:#516a43;}
:root[data-atlas-quant][data-theme="light"] .v2-target-card.selected{border-color:#57863c;background:#cfe5c6;}
:root[data-atlas-quant][data-theme="light"] .v2-target-card.selected>span{color:#223713;}
:root[data-atlas-quant][data-theme="light"] .v2-timeline:before{background:#aed89b;}
:root[data-atlas-quant][data-theme="light"] .v2-timeline b{border:1px solid #9cc389;background:#d6edcd;color:#355821;}
:root[data-atlas-quant][data-theme="light"] .v2-timeline span{color:#526c41;}
:root[data-atlas-quant][data-theme="light"] .v2-choice-row strong{color:#324a1f;}
:root[data-atlas-quant][data-theme="light"] .v2-choice-row p{color:#536a43;}
:root[data-atlas-quant][data-theme="light"] .v2-model-card{background:#e5f1de;border:1px solid #c3d9b5;}
:root[data-atlas-quant][data-theme="light"] .v2-model-family{color:#526c41;}
:root[data-atlas-quant][data-theme="light"] .v2-model-card h2{color:#314420;}
:root[data-atlas-quant][data-theme="light"] .v2-model-card p{color:#536944;}
:root[data-atlas-quant][data-theme="light"] .v2-model-selection{color:#536c41;}
:root[data-atlas-quant][data-theme="light"] .v2-model-card.selected{border-color:#6a8a53;background:#d6e5cc;}
:root[data-atlas-quant][data-theme="light"] .v2-model-card.selected .v2-model-selection{color:#3e542b;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-map>div{border:1px solid #bbd3ac;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-map small{color:#566944;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-map p{color:#556b42;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-train{background:#d5e5cd;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-train>div>span{background:#bad2ab;color:#2c401b;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-train b{color:#536b43;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-purge{background:#ebf4e6;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-purge>span{color:#5a6846;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-purge>strong{color:#516432;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-holdout{background:#bccdae!important;border-color:#8fa672!important;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-holdout h2{color:#253112;}
:root[data-atlas-quant][data-theme="light"] .v2-validation-holdout small,:root[data-atlas-quant][data-theme="light"] .v2-validation-holdout p{color:#516536;}
:root[data-atlas-quant][data-theme="light"] .v2-check-row{color:#52703b;}
:root[data-atlas-quant][data-theme="light"] .v2-check-row>.icon{color:#52723c;}
:root[data-atlas-quant][data-theme="light"] .v2-check-row.issue{color:#73562a;}
:root[data-atlas-quant][data-theme="light"] .v2-check-row.issue>.icon{color:#775e36;}
:root[data-atlas-quant][data-theme="light"] .v2-three-notes h3{color:#3d5426;}
:root[data-atlas-quant][data-theme="light"] .v2-three-notes p{color:#556a44;}
:root[data-atlas-quant][data-theme="light"] .v2-allocation{border:1px solid #bfd7ab;background:#deeed4;}
:root[data-atlas-quant][data-theme="light"] .v2-allocation span{background:#93bc74;color:#223116;}
:root[data-atlas-quant][data-theme="light"] .v2-allocation span:nth-child(2n){background:#a9ca93;}
:root[data-atlas-quant][data-theme="light"] .v2-allocation p{color:#52703d;}
:root[data-atlas-quant][data-theme="light"] .v2-run-footer{border:1px solid #aac690;background:linear-gradient(115deg,#cfe1c0,#e4f2dc);}
:root[data-atlas-quant][data-theme="light"] .v2-run-footer h2{color:#2e4218;}
:root[data-atlas-quant][data-theme="light"] .v2-run-footer p{color:#566e40;}
:root[data-atlas-quant][data-theme="light"] .v2-code-panel{background:#ebf3e7;border-color:#c4d9b5;}
:root[data-atlas-quant][data-theme="light"] .v2-code-tabs{border-bottom:1px solid #cbdebc;background:#e6f0de;}
:root[data-atlas-quant][data-theme="light"] .v2-code-tabs>button{border-right:1px solid #cedfc1;color:#556945;}
:root[data-atlas-quant][data-theme="light"] .v2-code-tabs>button.active{color:#39511f;background:#e9f4e3;}
:root[data-atlas-quant][data-theme="light"] .v2-code-caption{border-bottom:1px solid #d2e5c9;color:#536f3e;}
:root[data-atlas-quant][data-theme="light"] .v2-code-editor{background:#eff7ec!important;color:#405827!important;}
:root[data-atlas-quant][data-theme="light"] .v2-code-editor:focus{outline:1px solid #91b972;}
:root[data-atlas-quant][data-theme="light"] .v2-code-actions{background:#e2eedb;border-top:1px solid #c5dbb6;}
:root[data-atlas-quant][data-theme="light"] .v2-review-empty{color:#546b43;}
:root[data-atlas-quant][data-theme="light"] .v2-review-empty>.icon{color:#537933;}
:root[data-atlas-quant][data-theme="light"] .v2-review-empty h3{color:#354e20;}
:root[data-atlas-quant][data-theme="light"] .v2-review-summary{color:#58713d;}
:root[data-atlas-quant][data-theme="light"] .v2-finding{border:1px solid #bdcfab;border-left:3px solid #98b774;background:#e0edd5;}
:root[data-atlas-quant][data-theme="light"] .v2-finding>span{color:#56723b;}
:root[data-atlas-quant][data-theme="light"] .v2-finding>p{color:#44562c;}
:root[data-atlas-quant][data-theme="light"] .v2-finding>small{color:#586845;}
:root[data-atlas-quant][data-theme="light"] .v2-finding.error,:root[data-atlas-quant][data-theme="light"] .v2-finding.high{border-color:#c9a893;background:#ebe2d5;}
:root[data-atlas-quant][data-theme="light"] .v2-patch{border-top:1px solid #c1d6af;}
:root[data-atlas-quant][data-theme="light"] .v2-patch h3{color:#344320;}
:root[data-atlas-quant][data-theme="light"] .v2-patch p{color:#566d41;}
:root[data-atlas-quant][data-theme="light"] .v2-patch label{color:#556746;}
:root[data-atlas-quant][data-theme="light"] .v2-patch pre{border:1px solid #c1d5af;}
:root[data-atlas-quant][data-theme="light"] .v2-diff-before{background:#ecddd3;border-color:#ceb49d!important;color:#734b31;}
:root[data-atlas-quant][data-theme="light"] .v2-diff-after{background:#deefd4;color:#55703c;}
:root[data-atlas-quant][data-theme="light"] .v2-python-data{border-top:1px solid #cadfbc;color:#556a43;}
:root[data-atlas-quant][data-theme="light"] .v2-output{border-top:1px solid #cbdfbf;background:#f3f9f0;}
:root[data-atlas-quant][data-theme="light"] .v2-output h3{color:#536e40;}
:root[data-atlas-quant][data-theme="light"] .v2-output h4{color:#536e40;}
:root[data-atlas-quant][data-theme="light"] .v2-output>p{color:#51713d;}
:root[data-atlas-quant][data-theme="light"] .v2-output pre{color:#53733b;}
:root[data-atlas-quant][data-theme="light"] .v2-output pre.error{color:#80502b;}
:root[data-atlas-quant][data-theme="light"] .v2-output small{color:#50723b;}
:root[data-atlas-quant][data-theme="light"] .v2-shell button:focus-visible,:root[data-atlas-quant][data-theme="light"] .v2-shell a:focus-visible,:root[data-atlas-quant][data-theme="light"] .v2-shell input:focus-visible,:root[data-atlas-quant][data-theme="light"] .v2-shell select:focus-visible{outline:2px solid #3b581e;}
@media (max-width:800px){:root[data-atlas-quant][data-theme="light"] .v2-studio-mobile-nav{border-bottom:1px solid #c9dbc0;background:#e7f1e2;}
:root[data-atlas-quant][data-theme="light"] .v2-studio-mobile-nav>a{color:#536944;}
:root[data-atlas-quant][data-theme="light"] .v2-studio-mobile-nav>a.active{color:#2d421a;background:#cce1bf;}}
@media (max-width:560px){:root[data-atlas-quant][data-theme="light"] .v2-mobile-logo strong{color:#556d40;}
:root[data-atlas-quant][data-theme="light"] .v2-three-notes>div+div{border-top:1px solid #c5d9ba;}
:root[data-atlas-quant][data-theme="light"] .v2-topbar{background:#eaf1e8ef;}}
:root[data-atlas-quant][data-theme="light"] .v2-project-bar{border:1px solid #c1d9b3;background:#e5f0dd;}
:root[data-atlas-quant][data-theme="light"] .v2-project-bar .field>span{color:#556a43;}
:root[data-atlas-quant][data-theme="light"] .v2-project-bar .field input,:root[data-atlas-quant][data-theme="light"] .v2-project-bar .field select{background:#eaf4e5;}
@media (max-width:560px){:root[data-atlas-quant][data-theme="light"] .v2-simple-mobile-nav{border-bottom:1px solid #cadebf;background:#e8f2e3;}
:root[data-atlas-quant][data-theme="light"] .v2-simple-mobile-nav>a{color:#556944;}
:root[data-atlas-quant][data-theme="light"] .v2-simple-mobile-nav>a.active{background:#d0e2c3;color:#2c4019;}}
:root[data-atlas-quant][data-theme="light"] .v2-mapping-details{border-top:1px solid #c2d8b4;}
:root[data-atlas-quant][data-theme="light"] .v2-mapping-details>summary{color:#516b38;}
:root[data-atlas-quant][data-theme="light"] .v2-binding-list>div{border:1px solid #bcd2ac;background:#dfefd6;}
:root[data-atlas-quant][data-theme="light"] .v2-binding-list strong{color:#405d29;}
:root[data-atlas-quant][data-theme="light"] .v2-binding-list p{color:#526a43;}
:root[data-atlas-quant][data-theme="light"] .v2-forecast-evidence{border:1px solid #bad3aa;background:#ddecd5;}
:root[data-atlas-quant][data-theme="light"] .v2-forecast-evidence strong{color:#304523;}
:root[data-atlas-quant][data-theme="light"] .v2-forecast-evidence p{color:#526944;}
:root[data-atlas-quant][data-theme="light"] .v2-forecast-filters{border-bottom:1px solid #cadcbd;}
:root[data-atlas-quant][data-theme="light"] .v2-recipe-pool .v2-subset-rule{color:#596845;}
:root[data-atlas-quant][data-theme="light"] .v2-members-link{color:#32421f;border:1px solid #a2bc8b;background:#d0e2c4;}
:root[data-atlas-quant][data-theme="light"] .v2-members-link:hover{background:#c2d9b3;border-color:#557338;}
:root[data-atlas-quant][data-theme="light"] .v2-context-status{color:#736837;background:#e7e5d4;border:1px solid #c9c39e;}
:root[data-atlas-quant][data-theme="light"] .rq-steps>a{color:#565f4e;background:#eaf0e8;}
:root[data-atlas-quant][data-theme="light"] .rq-steps b{color:#54624b;}
:root[data-atlas-quant][data-theme="light"] .rq-steps a.active{background:#d5e1ce;border-color:#64784a;color:#161b0e;}
:root[data-atlas-quant][data-theme="light"] .rq-steps a.active b{color:#263717;}
:root[data-atlas-quant][data-theme="light"] .rq-steps a.visited{border-color:#afc49f;color:#475737;}
:root[data-atlas-quant][data-theme="light"] .rq-summary{border:1px solid #b4c5a6;background:#e5eddf;}
:root[data-atlas-quant][data-theme="light"] .rq-summary summary{border-bottom:1px solid #c7d5bd;color:#252f19;}
:root[data-atlas-quant][data-theme="light"] .rq-summary dt,:root[data-atlas-quant][data-theme="light"] .rq-baseline dt{color:#55624c;}
:root[data-atlas-quant][data-theme="light"] .rq-summary dd,:root[data-atlas-quant][data-theme="light"] .rq-baseline dd{color:#334026;}
:root[data-atlas-quant][data-theme="light"] .rq-summary p{color:#55634b;}
:root[data-atlas-quant][data-theme="light"] .rq-mode{border-left:2px solid #556f37;}
:root[data-atlas-quant][data-theme="light"] .rq-mode p{color:#55634a;}
:root[data-atlas-quant][data-theme="light"] .rq-pagination{border-top:1px solid #c3d0b8;}
:root[data-atlas-quant][data-theme="light"] .rq-pagination>span{color:#56644a;}
:root[data-atlas-quant][data-theme="light"] .rq-rule{color:#536246!important;}
:root[data-atlas-quant][data-theme="light"] .rq-rule strong{color:#243012;}
:root[data-atlas-quant][data-theme="light"] .rq-set-group{border:1px solid #bccfaf;background:#e9f3e5;}
:root[data-atlas-quant][data-theme="light"] .rq-set-group.exclude{border-color:#c5b49c;background:#f0ede4;}
:root[data-atlas-quant][data-theme="light"] .rq-set-title>span{color:#556449;}
:root[data-atlas-quant][data-theme="light"] .rq-filter>span{color:#586845;}
:root[data-atlas-quant][data-theme="light"] .rq-filter select,:root[data-atlas-quant][data-theme="light"] .rq-filter input{background:#eff8ec;color:#364625;border:1px solid #b5cea3;}
:root[data-atlas-quant][data-theme="light"] .rq-explicit{border-top:1px solid #c2d5b7;}
:root[data-atlas-quant][data-theme="light"] .rq-explicit>summary,:root[data-atlas-quant][data-theme="light"] .rq-resolution-evidence>summary{color:#3f532d;}
:root[data-atlas-quant][data-theme="light"] .rq-resolve>span{color:#546a44;}
:root[data-atlas-quant][data-theme="light"] .rq-empty{color:#55614c;}
:root[data-atlas-quant][data-theme="light"] .rq-pool-count strong{color:#233010;}
:root[data-atlas-quant][data-theme="light"] .rq-pool-count small{color:#556648;}
:root[data-atlas-quant][data-theme="light"] .rq-pool-count span{color:#566449;}
:root[data-atlas-quant][data-theme="light"] .rq-pool-count>i{color:#536f3e;}
:root[data-atlas-quant][data-theme="light"] .rq-members{background:#cbdebf;border:1px solid #c2d8b5;}
:root[data-atlas-quant][data-theme="light"] .rq-members label{background:#e8f2e3;}
:root[data-atlas-quant][data-theme="light"] .rq-members input{accent-color:#556b3a;}
:root[data-atlas-quant][data-theme="light"] .rq-members b{color:#556a44;}
:root[data-atlas-quant][data-theme="light"] .rq-members strong{color:#28361a;}
:root[data-atlas-quant][data-theme="light"] .rq-members small{color:#556548;}
:root[data-atlas-quant][data-theme="light"] .rq-home{border:1px solid #b4caa4;background:linear-gradient(125deg,#dae8d1,#ebf3e7);}
:root[data-atlas-quant][data-theme="light"] .rq-home p{color:#556647;}
:root[data-atlas-quant][data-theme="light"] .rq-home li a{background:#e9f4e4;border:1px solid #bbd1ac;}
:root[data-atlas-quant][data-theme="light"] .rq-home li b{color:#576a43;}
:root[data-atlas-quant][data-theme="light"] .rq-home li strong{color:#2d3f20;}
:root[data-atlas-quant][data-theme="light"] .rq-home li span{color:#556747;}
:root[data-atlas-quant][data-theme="light"] .rq-home li .icon{color:#536a43;}
:root[data-atlas-quant][data-theme="light"] .rq-baseline>p{color:#566548;}
:root[data-atlas-quant][data-theme="light"] .rq-method{border:1px solid #bbd1ac;background:#e7f2e1;}
:root[data-atlas-quant][data-theme="light"] .rq-method.selected{border-color:#5c7b3c;background:#d1e4c6;}
:root[data-atlas-quant][data-theme="light"] .rq-method input{accent-color:#4c6532;}
:root[data-atlas-quant][data-theme="light"] .rq-method strong{color:#2d3d1e;}
:root[data-atlas-quant][data-theme="light"] .rq-method span{color:#576747;}
:root[data-atlas-quant][data-theme="light"] .rq-signal-rule>span{border:1px solid #b3caa0;background:#d8e9cd;color:#455c2f;}
:root[data-atlas-quant][data-theme="light"] .rq-signal-rule>b{color:#556845;}
:root[data-atlas-quant][data-theme="light"] .rq-assumption{border-left:2px solid #a18b53;background:#efebdc;}
:root[data-atlas-quant][data-theme="light"] .rq-assumption strong{color:#68582b;}
:root[data-atlas-quant][data-theme="light"] .rq-assumption p{color:#695f44!important;}
:root[data-atlas-quant][data-theme="light"] .rq-review-grid>div{border-top:1px solid #c2d8b5;}
:root[data-atlas-quant][data-theme="light"] .rq-review-grid p{color:#566449;}
:root[data-atlas-quant][data-theme="light"] .rq-report-questions b{color:#566549;}
:root[data-atlas-quant][data-theme="light"] .rq-report-questions p{color:#455536;}
:root[data-atlas-quant][data-theme="light"] .rq-report-table .panel-body>p{color:#56624b;}
:root[data-atlas-quant][data-theme="light"] .rq-report-assumptions>div{border:1px solid #bac3a9;background:#e1e8da;}
:root[data-atlas-quant][data-theme="light"] .rq-report-assumptions strong{color:#2e3920;}
:root[data-atlas-quant][data-theme="light"] .rq-report-assumptions p{color:#576549;}
:root[data-atlas-quant][data-theme="light"] .rq-report-pills span{border:1px solid #b8c8a9;color:#485a36;}
:root[data-atlas-quant][data-theme="light"] .v2-dsl-evidence{border:1px solid var(--v2-line, #c1d3b8);background:#e9f0e8;color:#38482a;}
:root[data-atlas-quant][data-theme="light"] .v2-dsl-heading span,:root[data-atlas-quant][data-theme="light"] .v2-dsl-meta{color:#546b42;}
:root[data-atlas-quant][data-theme="light"] .v2-dsl-formula{color:#1e2c11;}
:root[data-atlas-quant][data-theme="light"] .v2-dsl-operation{border-top:1px solid #c9dbc1;}
:root[data-atlas-quant][data-theme="light"] .v2-dsl-inputs{color:#546945;}
:root[data-atlas-quant][data-theme="light"] .v2-dsl-timing{border-top:1px solid #c9dbc1;}
:root[data-atlas-quant][data-theme="light"] .v2-dsl-evidence details{border-top:1px solid #c9dbc1;}
:root[data-atlas-quant][data-theme="light"] .v2-dsl-evidence summary{color:#455c30;}
:root[data-atlas-quant][data-theme="light"] .v2-dsl-evidence.stale{border-color:#bfb08a;color:#64542b;}
:root[data-atlas-quant][data-theme="light"] .v2-review-boundary{border:1px solid #c0c4af;color:#555942;background:#e3e8de;}
:root[data-atlas-quant][data-theme="light"]{--sq-bg:#f2f4f5;--sq-panel:#eaedef;--sq-panel-soft:#e5e9eb;--sq-line:#ced5d8;--sq-text:#131718;--sq-muted:#5a666b;--sq-green:#345b4b;}
:root[data-atlas-quant][data-theme="light"] .sq-shell :focus-visible{outline:2px solid #285242;}
:root[data-atlas-quant][data-theme="light"] .sq-shell input,:root[data-atlas-quant][data-theme="light"] .sq-shell select,:root[data-atlas-quant][data-theme="light"] .sq-shell textarea{background:#eff2f3;border:1px solid #bfc8cb;}
:root[data-atlas-quant][data-theme="light"] .sq-shell input[type="checkbox"]{accent-color:#1f372d;}
:root[data-atlas-quant][data-theme="light"] .sq-sidebar{background:#f0f3f4;}
:root[data-atlas-quant][data-theme="light"] .sq-brand b{color:#475459;}
:root[data-atlas-quant][data-theme="light"] .sq-brand small{color:#4f595e;}
:root[data-atlas-quant][data-theme="light"] .sq-workspace-label{color:#1e2628;}
:root[data-atlas-quant][data-theme="light"] .sq-workspace-label span{color:#4f5a5e;}
:root[data-atlas-quant][data-theme="light"] .sq-nav.active,:root[data-atlas-quant][data-theme="light"] .sq-nav:hover{background:#dbe2e5;}
:root[data-atlas-quant][data-theme="light"] .sq-nav-caption{color:#4c5a61;}
:root[data-atlas-quant][data-theme="light"] .sq-step{color:#4f5a5f!important;}
:root[data-atlas-quant][data-theme="light"] .sq-step b{color:#4b5b62;}
:root[data-atlas-quant][data-theme="light"] .sq-step .icon{color:#4a5b63;}
:root[data-atlas-quant][data-theme="light"] .sq-step.active{background:#1c2c25;color:#dcede6!important;}
:root[data-atlas-quant][data-theme="light"] .sq-step.active b,:root[data-atlas-quant][data-theme="light"] .sq-step.active .icon{color:#a4c8ba;}
:root[data-atlas-quant][data-theme="light"] .sq-step:hover:not(.active){background:#dfe6e9;color:#172023!important;}
:root[data-atlas-quant][data-theme="light"] .sq-sidebar-bottom{color:#4e5a5f;}
:root[data-atlas-quant][data-theme="light"] .sq-breadcrumb{color:#4d5a60;}
:root[data-atlas-quant][data-theme="light"] .sq-breadcrumb strong{color:#1b2326;}
:root[data-atlas-quant][data-theme="light"] .sq-breadcrumb > span{color:#a4b9c2;}
:root[data-atlas-quant][data-theme="light"] .sq-version{color:#4e5b60;}
:root[data-atlas-quant][data-theme="light"] .sq-mode-switch{border:1px solid #b1bfc6;}
:root[data-atlas-quant][data-theme="light"] .sq-footer{color:#4a5c64;}
:root[data-atlas-quant][data-theme="light"] .sq-kicker{color:#4e605a;}
:root[data-atlas-quant][data-theme="light"] .sq-button{border:1px solid #b0bec4;background:#e1e8eb;color:#172023;}
:root[data-atlas-quant][data-theme="light"] .sq-button:hover:not(:disabled){border-color:#55716c;background:#d6e3e3;}
:root[data-atlas-quant][data-theme="light"] .sq-button.primary{background:#1b2e25;color:#daeae4;border-color:#1b2e25;}
:root[data-atlas-quant][data-theme="light"] .sq-button.primary:hover:not(:disabled){background:#0c1c14;}
:root[data-atlas-quant][data-theme="light"] .sq-inline-link{color:#182d24;}
:root[data-atlas-quant][data-theme="light"] .sq-status{color:#4c5b61;border:1px solid #afc0c8;}
:root[data-atlas-quant][data-theme="light"] .sq-status.ready{color:#315243;border-color:#a6bfb6;background:#d6e5e0;}
:root[data-atlas-quant][data-theme="light"] .sq-status.warning{color:#7c642b;border-color:#c9bea3;}
:root[data-atlas-quant][data-theme="light"] .sq-panel > header{border-bottom:1px solid #cfd9dd;}
:root[data-atlas-quant][data-theme="light"] .sq-note{border:1px solid #b9ccc7;background:#deece9;color:#3d564b;}
:root[data-atlas-quant][data-theme="light"] .sq-note p{color:#3d564b;}
:root[data-atlas-quant][data-theme="light"] .sq-note.warning{background:#e8e6de;border-color:#cbc4b6;color:#69582f;}
:root[data-atlas-quant][data-theme="light"] .sq-note.warning p{color:#675836;}
:root[data-atlas-quant][data-theme="light"] .sq-note.error{background:#e4d7d8;border-color:#c4969a;color:#551919;}
:root[data-atlas-quant][data-theme="light"] .sq-note.error p{color:#551919;}
:root[data-atlas-quant][data-theme="light"] .sq-field > span{color:#2d3a3f;}
:root[data-atlas-quant][data-theme="light"] .sq-field > span > small{color:#4e5f5a;}
:root[data-atlas-quant][data-theme="light"] .sq-field > small{color:#4d5c61;}
:root[data-atlas-quant][data-theme="light"] .sq-advanced > summary{color:#324246;}
:root[data-atlas-quant][data-theme="light"] .sq-empty{border:1px dashed #abc1ca;color:#4b5c63;}
:root[data-atlas-quant][data-theme="light"] .sq-empty h3{color:#314247;}
:root[data-atlas-quant][data-theme="light"] .sq-subtle{color:#4b5c62;}
:root[data-atlas-quant][data-theme="light"] .sq-section-heading h2 > span{color:#4b5c63;}
:root[data-atlas-quant][data-theme="light"] .sq-research-name label > span{color:#4b5b63;}
:root[data-atlas-quant][data-theme="light"] .sq-research-name > span{color:#4a5b63;}
:root[data-atlas-quant][data-theme="light"] .sq-summary > details{background:#e6eef0;border:1px solid #bfced3;}
:root[data-atlas-quant][data-theme="light"] .sq-summary details > div{border-top:1px solid #bfced3;}
:root[data-atlas-quant][data-theme="light"] .sq-summary dt{color:#485e65;}
:root[data-atlas-quant][data-theme="light"] .sq-summary dd{color:#32464a;}
:root[data-atlas-quant][data-theme="light"] .sq-summary p{color:#495e65;}
:root[data-atlas-quant][data-theme="light"] .sq-summary-equation{color:#294c3a;border-top:1px solid #bcd3d7;}
:root[data-atlas-quant][data-theme="light"] .sq-summary-equation small{color:#496561;}
:root[data-atlas-quant][data-theme="light"] .sq-page-navigation > span{color:#495d65;}
:root[data-atlas-quant][data-theme="light"] .sq-home-hero{border:1px solid #bacdd1;background:linear-gradient(120deg, #e0e9ec, #ecf0f2);}
:root[data-atlas-quant][data-theme="light"] .sq-home-hero h2{color:#16201f;}
:root[data-atlas-quant][data-theme="light"] .sq-forecast-visual > div{background:#e0ecee;border:1px solid #b0c7ca;}
:root[data-atlas-quant][data-theme="light"] .sq-forecast-visual > div > span{color:#4c6160;}
:root[data-atlas-quant][data-theme="light"] .sq-forecast-visual strong{color:#1f3728;}
:root[data-atlas-quant][data-theme="light"] .sq-forecast-visual small{color:#4a635f;}
:root[data-atlas-quant][data-theme="light"] .sq-forecast-visual > b{color:#48655d;}
:root[data-atlas-quant][data-theme="light"] .sq-forecast-visual section > span{color:#4a645d;}
:root[data-atlas-quant][data-theme="light"] .sq-overview-steps > a{background:#e7edef;}
:root[data-atlas-quant][data-theme="light"] .sq-overview-steps > a:hover{border-color:#74938d;background:#dfebea;}
:root[data-atlas-quant][data-theme="light"] .sq-overview-steps b{color:#4b635d;}
:root[data-atlas-quant][data-theme="light"] .sq-overview-steps .icon{color:#4c615d;}
:root[data-atlas-quant][data-theme="light"] .sq-recipe-card{background:#e8eef0;}
:root[data-atlas-quant][data-theme="light"] .sq-future-workspaces article{background:#ebf0f2;border:1px solid #cbdae0;color:#485e66;}
:root[data-atlas-quant][data-theme="light"] .sq-future-workspaces strong{color:#4a5b63;}
:root[data-atlas-quant][data-theme="light"] .sq-future-workspaces small{color:#485e66;}
:root[data-atlas-quant][data-theme="light"] .sq-future-workspaces article.active{border-color:#a4c2b9;color:#375544;}
:root[data-atlas-quant][data-theme="light"] .sq-future-workspaces article.active strong{color:#2b4135;}
:root[data-atlas-quant][data-theme="light"] .sq-choice{background:#e7eff2;border:1px solid #aabdc5;color:#3e565f;}
:root[data-atlas-quant][data-theme="light"] .sq-choice strong{color:#1a292e;}
:root[data-atlas-quant][data-theme="light"] .sq-choice > span{color:#4c615e;}
:root[data-atlas-quant][data-theme="light"] .sq-choice.selected{background:#d7e8e1;border-color:#436c57;}
:root[data-atlas-quant][data-theme="light"] .sq-choice.selected .icon,:root[data-atlas-quant][data-theme="light"] .sq-choice.selected strong{color:#1a3124;}
:root[data-atlas-quant][data-theme="light"] .sq-family{background:#e6eff2;border:1px solid #b4c9d2;color:#495e64;}
:root[data-atlas-quant][data-theme="light"] .sq-family strong{color:#26393f;}
:root[data-atlas-quant][data-theme="light"] .sq-family [data-mechanism-status="blocked"]{color:#6a4b28;}
:root[data-atlas-quant][data-theme="light"] .sq-family.selected{border-color:#4a6857;background:#d7e7de;}
:root[data-atlas-quant][data-theme="light"] .sq-family.selected strong{color:#1a261d;}
:root[data-atlas-quant][data-theme="light"] .sq-equation-strip,:root[data-atlas-quant][data-theme="light"] .sq-validation-flow{background:#e7f0f3;border:1px solid #b3cdd6;color:#436360;}
:root[data-atlas-quant][data-theme="light"] .sq-equation-strip > .icon,:root[data-atlas-quant][data-theme="light"] .sq-validation-flow > .icon{color:#456669;}
:root[data-atlas-quant][data-theme="light"] .sq-contract-values > div{border:1px solid #b7d0d5;background:#e4eff3;}
:root[data-atlas-quant][data-theme="light"] .sq-contract-values span{color:#486465;}
:root[data-atlas-quant][data-theme="light"] .sq-contract-values strong{color:#2a403c;}
:root[data-atlas-quant][data-theme="light"] .sq-timeline > div{border-top:2px solid #6c9283;}
:root[data-atlas-quant][data-theme="light"] .sq-timeline span{color:#496459;}
:root[data-atlas-quant][data-theme="light"] .sq-basket-members label{background:#dbe7eb;}
:root[data-atlas-quant][data-theme="light"] .sq-review-grid > div{border:1px solid #b8ced6;}
:root[data-atlas-quant][data-theme="light"] .sq-review-grid span{color:#485e66;}
:root[data-atlas-quant][data-theme="light"] .sq-selected-factors{background:#e1ebee;border:1px dashed #96b4b1;}
:root[data-atlas-quant][data-theme="light"] .sq-selected-factor{background:#e9f1f4;border:1px solid #b5cbd4;}
:root[data-atlas-quant][data-theme="light"] .sq-selected-factor code{color:#4b6163;}
:root[data-atlas-quant][data-theme="light"] .sq-drag-grip{color:#466068;}
:root[data-atlas-quant][data-theme="light"] .sq-drop-caption{color:#49655f;}
:root[data-atlas-quant][data-theme="light"] .sq-drop-active{outline:2px solid #234e3a!important;background:#c1dad1!important;}
:root[data-atlas-quant][data-theme="light"] .sq-drop-zone{color:#4c625c;border:1px dashed #a5c9c0;}
:root[data-atlas-quant][data-theme="light"] .sq-drag-ghost{background:#182c21;color:#cceae1;border:1px solid #375f4d;}
:root[data-atlas-quant][data-theme="light"] .sq-search{background:#e1ebef;border:1px solid #aac1ca;}
:root[data-atlas-quant][data-theme="light"] .sq-search > .icon{color:#485f66;}
:root[data-atlas-quant][data-theme="light"] .sq-catalog-count{color:#485e65;}
:root[data-atlas-quant][data-theme="light"] .sq-catalog-count > span{color:#4d5d60;}
:root[data-atlas-quant][data-theme="light"] .sq-module{background:#e3ecef;border:1px solid #b2c9d3;}
:root[data-atlas-quant][data-theme="light"] .sq-module h3{color:#23353a;}
:root[data-atlas-quant][data-theme="light"] .sq-module-meta{color:#475d66;}
:root[data-atlas-quant][data-theme="light"] .sq-module-types{color:#486265;}
:root[data-atlas-quant][data-theme="light"] .sq-catalog-pagination{color:#4b5d63;}
:root[data-atlas-quant][data-theme="light"] .sq-table th{color:#475f66;border-bottom:1px solid #aec8d1;}
:root[data-atlas-quant][data-theme="light"] .sq-table td{border-bottom:1px solid #c3d8df;color:#28393d;}
:root[data-atlas-quant][data-theme="light"] .sq-table td small{color:#465f67;}
:root[data-atlas-quant][data-theme="light"] .sq-run-list article{border-bottom:1px solid #b4cbd3;}
:root[data-atlas-quant][data-theme="light"] .sq-run-list span,:root[data-atlas-quant][data-theme="light"] .sq-run-list small{color:#485e65;}
:root[data-atlas-quant][data-theme="light"] .sq-report-tabs{border-bottom:1px solid #b5cdd5;}
:root[data-atlas-quant][data-theme="light"] .sq-report-stat{border:1px solid #b4cad2;background:#e2edf1;}
:root[data-atlas-quant][data-theme="light"] .sq-report-stat > span{color:#476066;}
:root[data-atlas-quant][data-theme="light"] .sq-report-stat > strong{color:#1b2c2b;}
:root[data-atlas-quant][data-theme="light"] .sq-report-code{background:#ebf4f7;color:#486666;border:1px solid #b4d2db;}
:root[data-atlas-quant][data-theme="light"] .sq-key-values dt{color:#466067;}
:root[data-atlas-quant][data-theme="light"] .sq-key-values dd{color:#2b4245;}
:root[data-atlas-quant][data-theme="light"] .sq-comparison-picker label{background:#d7e6eb;border:1px solid #a4c7d2;}
:root[data-atlas-quant][data-theme="light"] .sq-forecast-identity{border:1px solid #9fbdaf;background:#ddece6;}
:root[data-atlas-quant][data-theme="light"] .sq-forecast-identity code{color:#2d4b37;}
:root[data-atlas-quant][data-theme="light"] .sq-forecast-identity small{color:#4a6356;}
:root[data-atlas-quant][data-theme="light"] .sq-report-warning-list{color:#3e555b;}
@media  (max-width: 1240px) {:root[data-atlas-quant][data-theme="light"] .sq-summary summary > span{color:#4a635a;}}
@media  (max-width: 850px) {:root[data-atlas-quant][data-theme="light"] .sq-mobile-brand b{color:#4e5f5f;}
:root[data-atlas-quant][data-theme="light"] .sq-mobile-step{border-bottom:1px solid #bcd2da;background:#e3ecef;}
:root[data-atlas-quant][data-theme="light"] .sq-mobile-step > label{color:#495e64;}}
@media  (max-width: 560px) {:root[data-atlas-quant][data-theme="light"] .sq-timeline > div{border-left:2px solid #6c9283;}}
:root[data-atlas-quant][data-theme="light"] .sq-progress{background:#c6dcd8;}
:root[data-atlas-quant][data-theme="light"] .sq-progress > span{background:#395b4b;}
:root[data-atlas-quant][data-theme="light"] .sq-factor-risk > label{background:#dcecef;}
:root[data-atlas-quant][data-theme="light"] .sq-shell .v2-factor-row[draggable="true"]:before{color:#496463;}
:root[data-atlas-quant][data-theme="light"] .sq-report-detail{color:#28373b;}
:root[data-atlas-quant][data-theme="light"] .sq-report-detail p{color:#485e65;}
:root[data-atlas-quant][data-theme="light"] .sq-report-detail .sq-advanced{background:#e3edf1;}
:root[data-atlas-quant][data-theme="light"] .sq-summary-counts > article{border:1px solid #bdd2d7;background:#e5edf0;}
:root[data-atlas-quant][data-theme="light"] .sq-summary-counts span{color:#4b6062;}
:root[data-atlas-quant][data-theme="light"] .sq-summary-counts strong{color:#1d2f28;}
:root[data-atlas-quant][data-theme="light"] .sq-summary-counts small{color:#486366;}
:root[data-atlas-quant][data-theme="light"] .sq-mode-card,:root[data-atlas-quant][data-theme="light"] .sq-module-card{border:1px solid var(--border,#cbd3cb);background:var(--panel,#e8eee8);}
:root[data-atlas-quant][data-theme="light"] .sq-mode-card>span,:root[data-atlas-quant][data-theme="light"] .sq-module-icon{background:#d0dacd;color:#40512b;}
:root[data-atlas-quant][data-theme="light"] .sq-mode-card p,:root[data-atlas-quant][data-theme="light"] .sq-module-card p{color:var(--muted,#545c51);}
:root[data-atlas-quant][data-theme="light"] .sq-mode-card strong{color:#40512b;}
:root[data-atlas-quant][data-theme="light"] .sq-mode-card:hover,:root[data-atlas-quant][data-theme="light"] .sq-module-card.available{border-color:#97a687;}
:root[data-atlas-quant][data-theme="light"] .sq-mode-card:focus-visible{outline:2px solid #40512b;}
:root[data-atlas-quant][data-theme="light"] .sq-module-card.planned{background:var(--panel,#e8eee8);}
:root[data-atlas-quant][data-theme="light"] .sq-core-equation{color:#212d17;}
:root[data-atlas-quant][data-theme="light"] .sq-core-equation small{color:#536048;}
:root[data-atlas-quant][data-theme="light"] .sq-module-roadmap{color:#3e4739;}
:root[data-atlas-quant][data-theme="light"] .rq-filter-result-count strong{color:#212d17;}
:root[data-atlas-quant][data-theme="light"] .rq-filter-result-count span{color:var(--muted,#545c51);}
:root[data-atlas-quant][data-theme="light"] .mfe-editor{border-top:1px solid var(--border,#cbd3cb);}
:root[data-atlas-quant][data-theme="light"] .mfe-editor textarea{background:#eff4f0;border:1px solid #c3cebf;}
:root[data-atlas-quant][data-theme="light"] .sq-family > small{color:#6f593e;}
:root[data-atlas-quant][data-theme="light"] .sq-field output{color:#324541;}
:root[data-atlas-quant][data-theme="light"] .sq-model-placeholder > span{color:#162a1a;}
:root[data-atlas-quant][data-theme="light"] .sq-model-placeholder > strong{color:#4d6159;}
:root[data-atlas-quant][data-theme="light"] .fin-workspace input[type="file"]{border:1px dashed var(--sq-line, #ced5d8);background:var(--sq-panel, #eaedef);}
:root[data-atlas-quant][data-theme="light"] .fin-source-list article{border-bottom:1px solid var(--sq-line, #ced5d8);}
:root[data-atlas-quant][data-theme="light"] .fin-source-list article p{color:var(--sq-muted, #4f5a5e);}
:root[data-atlas-quant][data-theme="light"] .fin-source-list small,:root[data-atlas-quant][data-theme="light"] .fin-definitions small,:root[data-atlas-quant][data-theme="light"] .fin-table-scroll small{color:var(--sq-muted, #4f5a5e);}
:root[data-atlas-quant][data-theme="light"] .fin-pagination > span{color:var(--sq-muted, #4f5a5e);}
:root[data-atlas-quant][data-theme="light"] .fin-step-tabs{border-bottom:1px solid var(--sq-line, #ced5d8);}
:root[data-atlas-quant][data-theme="light"] .fin-step-tabs a{color:var(--sq-muted, #4f5a5e);}
:root[data-atlas-quant][data-theme="light"] .fin-step-tabs a:hover{color:var(--sq-text, #131718);background:var(--sq-panel-soft, #e5e9eb);}
:root[data-atlas-quant][data-theme="light"] .fin-step-tabs a[aria-current]{color:var(--sq-text, #131718);}
:root[data-atlas-quant][data-theme="light"] .fin-step-footer{border-top:1px solid var(--sq-line, #ced5d8);}
:root[data-atlas-quant][data-theme="light"] .fin-summary dt{color:var(--sq-muted, #4f5a5e);}
:root[data-atlas-quant][data-theme="light"] .fin-progress{background:var(--sq-panel-soft, #e5e9eb);color:var(--sq-text, #131718);border:1px solid var(--sq-line, #ced5d8);}
:root[data-atlas-quant][data-theme="light"] .fin-progress > span{color:var(--sq-muted, #4f5a5e);}
:root[data-atlas-quant][data-theme="light"] .fin-declarations fieldset{border:1px solid var(--sq-line, #ced5d8);}
:root[data-atlas-quant][data-theme="light"] .fin-definitions article{border:1px solid var(--sq-line, #ced5d8);}
:root[data-atlas-quant][data-theme="light"] .fin-definitions article.selected{border-color:var(--sq-text, #131718);}
:root[data-atlas-quant][data-theme="light"] .fin-table-scroll th{color:var(--sq-muted, #4f5a5e);}
:root[data-atlas-quant][data-theme="light"] .fin-table-scroll th,:root[data-atlas-quant][data-theme="light"] .fin-table-scroll td{border-bottom:1px solid var(--sq-line, #ced5d8);}
:root[data-atlas-quant][data-theme="light"] .acq-states{border:1px solid var(--sq-line, #ced5d8);}
:root[data-atlas-quant][data-theme="light"] .uf-workbench{border:1px solid var(--sq-border,#ced4d5);background:var(--sq-panel,#eaedef);}
:root[data-atlas-quant][data-theme="light"] .uf-presets{border-bottom:1px solid var(--sq-border,#ced4d5);}
:root[data-atlas-quant][data-theme="light"] .uf-presets>span{color:var(--sq-muted,#535a57);}
:root[data-atlas-quant][data-theme="light"] .uf-directory{border-bottom:1px solid var(--sq-border,#ced4d5);}
:root[data-atlas-quant][data-theme="light"] .uf-directory summary span{color:var(--sq-muted,#535a57);}
:root[data-atlas-quant][data-theme="light"] .uf-pool-list>div{border:1px solid var(--sq-border,#ced4d5);}
:root[data-atlas-quant][data-theme="light"] .uf-pool-list span{color:var(--sq-muted,#535a57);}
:root[data-atlas-quant][data-theme="light"] .uf-group{border-left:2px solid #42553f;background:#e5eae7;}
:root[data-atlas-quant][data-theme="light"] .uf-group.exclude{background:#e8e4e4;}
:root[data-atlas-quant][data-theme="light"] .uf-group>header>span{color:var(--sq-muted,#535a57);}
:root[data-atlas-quant][data-theme="light"] .uf-result-header{border-top:1px solid var(--sq-border,#ced4d5);}
:root[data-atlas-quant][data-theme="light"] .uf-result-header span{color:var(--sq-muted,#535a57);}
:root[data-atlas-quant][data-theme="light"] .uf-pagination>span{color:var(--sq-muted,#535a57);}
:root[data-atlas-quant][data-theme="light"] .uf-value-selected .btn{background:#cfdacf;border-color:#a5b49e;}
:root[data-atlas-quant][data-theme="light"] .uf-value-options small{color:var(--sq-muted,#535a57);}
:root[data-atlas-quant][data-theme="light"] .uf-value-options [aria-pressed=true]{border-color:#91a682;background:#cfdacf;}
:root[data-atlas-quant][data-theme="light"] .uf-value-count,:root[data-atlas-quant][data-theme="light"] .uf-value-empty{color:var(--sq-muted,#535a57);}
:root[data-atlas-quant][data-theme="light"] .uf-directory-heading span{color:var(--sq-muted,#535a57);}
:root[data-atlas-quant][data-theme="light"] .sq-model-formulas{border:1px solid var(--line, #c5cdc3);background:var(--surface, #e9f0e8);}
:root[data-atlas-quant][data-theme="light"] .sq-model-equation{color:var(--text, #181711);}
:root[data-atlas-quant][data-theme="light"] .sq-model-entry summary{color:var(--muted, #555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-model-identity{color:var(--muted, #555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-model-meta{color:var(--muted, #555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-model-hyperparameters div{border:1px solid var(--line, #c5cdc3);}
:root[data-atlas-quant][data-theme="light"] .sq-model-hyperparameters dt{color:var(--muted, #555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-model-input{border-bottom:1px solid var(--line, #c5cdc3);}
:root[data-atlas-quant][data-theme="light"] .sq-model-input > summary > small{color:var(--muted, #555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-model-input-source dt{color:var(--muted, #555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-report-edit-note{color:var(--muted, #555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-model-output-definition{color:var(--muted,#555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-table td > small,:root[data-atlas-quant][data-theme="light"] .sq-table th > small{color:var(--muted,#555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart{border:1px solid var(--line,#c5cdc3);background:var(--surface,#e9f0e8);}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart svg text{fill:var(--muted,#6d7768);}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart .grid{stroke:#bec8be;}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart .reference{stroke:#6f613d;}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart .point{fill:#53682b;}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart .positive{fill:#5d733c;}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart .negative{fill:#814c3a;}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart .muted-bar{fill:#8a9a83;}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart .whisker{stroke:#5d733c;}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart .median{stroke:#161e0b;}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart .axis-title{fill:var(--text,#181711);}
:root[data-atlas-quant][data-theme="light"] .sq-data-chart > p{color:var(--muted,#555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-industry-count{color:var(--muted,#555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-industry-card{border:1px solid var(--line,#c5cdc3);}
:root[data-atlas-quant][data-theme="light"] .sq-industry-path{color:var(--muted,#555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-industry-badges span{background:#d4dfd4;color:#495936;}
:root[data-atlas-quant][data-theme="light"] .sq-industry-card footer a{color:var(--muted,#555d51);}
:root[data-atlas-quant][data-theme="light"] .sq-industry-proxies>span{color:var(--muted,#555d51);}
:root[data-atlas-quant][data-theme="light"]{--bg:#f6f8f6;--surface:#ffffff;--surface2:#f0f4f1;--surface3:#e8eeea;--fg:#1a2820;--muted:#4c6255;--dim:#566b5d;--line:#c8d4cc;--line-soft:#dce4de;--accent:#315c44;--green:#236947;--red:#a43b35;--v2-bg:#f6f8f6;--v2-card:#fff;--v2-line:#c8d4cc;--v2-light:#1a2820;--v2-muted:#4c6255;--v2-accent:#315c44;--sq-bg:#f6f8f6;--sq-panel:#ffffff;--sq-panel-soft:#f0f4f1;--sq-line:#c8d4cc;--sq-text:#1a2820;--sq-muted:#4c6255;--sq-green:#315c44;color-scheme:light}
:root[data-atlas-quant][data-theme="light"] #atlas-quant-identity{background:#f0f4f1;color:#253b2c;border-color:#c8d4cc}
:root[data-atlas-quant][data-theme="light"] #atlas-quant-identity button{background:#fff;color:#253b2c;border-color:#b4c5ba}

/* RERUN-019: reserve text space for the Quant search icon at every breakpoint. */
html[data-atlas-quant] .v2-search input{padding-inline-start:40px!important}
html[data-atlas-quant] .v2-search>.icon{left:12px!important;top:50%!important;transform:translateY(-50%);width:16px!important;height:16px!important;pointer-events:none}

/* RERUN-021: readable code workspace labels, controls and editor across device widths. */
html[data-atlas-quant] .v2-project-bar .field>span,
html[data-atlas-quant] .v2-code-caption,
html[data-atlas-quant] .v2-code-caption>span,
html[data-atlas-quant] .v2-research-flow>div>span{font-size:12px!important;line-height:1.6!important}
html[data-atlas-quant] .v2-project-bar .btn,
html[data-atlas-quant] .v2-code-actions .btn{font-size:13px!important;min-height:44px!important;padding:10px 12px!important;line-height:1.5!important}
html[data-atlas-quant] .v2-project-bar .field input,
html[data-atlas-quant] .v2-project-bar .field select{font-size:14px!important;min-height:44px!important}
html[data-atlas-quant] .v2-code-actions{flex-wrap:wrap;gap:8px}
html[data-atlas-quant] .v2-code-caption{flex-wrap:wrap;gap:8px 12px}
html[data-atlas-quant] .v2-code-editor{font-size:14px!important;line-height:1.65!important;min-height:180px!important}
@media(max-width:600px){
html[data-atlas-quant] .v2-project-bar .field input,
html[data-atlas-quant] .v2-project-bar .field select,
html[data-atlas-quant] .v2-code-editor{font-size:16px!important}
}

/* RERUN-022: keep code filename and expression limits legible on the dark editor. */
html[data-atlas-quant][data-theme="dark"] .v2-code-caption{color:#90aa78!important}

/* RERUN-023: retain the original noninteractive route-heading focus rule after theme overrides. */
html[data-atlas-quant][data-theme="light"] .sq-main h1[tabindex="-1"]:focus{outline:none}

/* RERUN-024: readable and touch-sized mobile page-heading and community actions. */
@media(max-width:600px){
html[data-atlas-quant] .v2-heading .btn,
html[data-atlas-quant] .v2-community-banner .btn{font-size:13px!important;min-height:44px!important;min-width:44px;padding:10px 12px!important;line-height:1.5!important;max-width:100%;white-space:normal}
}

/* RERUN-025: keep the mobile wordmark on one line within narrow foldable headers. */
html[data-atlas-quant] .sq-mobile-brand{white-space:nowrap;line-height:1.2;flex-shrink:0}
html[data-atlas-quant] .sq-topbar-actions{flex-shrink:0}
@media(max-width:340px){
html[data-atlas-quant] .sq-topbar{padding-inline:12px;gap:8px}
html[data-atlas-quant] .sq-mobile-brand{font-size:18px}
html[data-atlas-quant] .sq-topbar-actions{gap:8px}
}

/* RERUN-026: balance short research headings so narrow screens do not leave isolated final characters. */
html[data-atlas-quant] .v2-heading h1,
html[data-atlas-quant] .v2-community-banner h2{text-wrap:balance}

/* RERUN-026 narrow follow-up: preserve the complete short Chinese title on a 280px cover screen. */
@media(max-width:300px){html[data-atlas-quant] .v2-heading h1{font-size:23px;line-height:1.4}}

/* RERUN-027: preserve the search input's transparent, borderless inner surface in light mode. */
html[data-atlas-quant][data-theme="light"] .sq-search input{border:0!important;background:transparent!important}

/* RERUN-028: give search hints distinct readable colors for each theme. */
html[data-atlas-quant][data-theme="light"] .sq-search input::placeholder{color:#52616a;opacity:1}
html[data-atlas-quant][data-theme="dark"] .sq-search input::placeholder{color:#9eafb4;opacity:1}

/* RERUN-029: readable comparison identities and timestamps with contained long version IDs. */
html[data-atlas-quant] .sq-comparison-picker label{font-size:13px;line-height:1.5}
html[data-atlas-quant] .sq-comparison-picker label>span{min-width:0}
html[data-atlas-quant] .sq-comparison-picker small{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin-top:4px}

/* RERUN-030: separate historical versions from research logs and give mobile headings room. */
html[data-atlas-quant] .sq-content>.sq-button+.sq-legacy{margin-top:16px}
html[data-atlas-quant] .sq-legacy>.table-wrap+.page-heading{margin-top:32px;gap:12px;align-items:flex-start}
html[data-atlas-quant] .sq-legacy>.table-wrap+.page-heading>div{min-width:0}
html[data-atlas-quant] .sq-legacy>.table-wrap+.page-heading h1{font-size:clamp(22px,2.4vw,28px);line-height:1.35;text-wrap:balance}
@media(max-width:600px){
html[data-atlas-quant] .sq-legacy>.table-wrap+.page-heading{flex-direction:column;align-items:stretch}
html[data-atlas-quant] .sq-legacy>.table-wrap+.page-heading>.btn{align-self:flex-start;min-height:44px}
}

/* RERUN-032: keep legacy research tables and supporting text legible. */
html[data-atlas-quant] .sq-legacy table th,
html[data-atlas-quant] .sq-legacy .row-sub,
html[data-atlas-quant] .sq-legacy table .badge,
html[data-atlas-quant] .sq-legacy>.footnote{font-size:12px;line-height:1.6}
html[data-atlas-quant] .sq-legacy table td,
html[data-atlas-quant] .sq-legacy table .row-title{font-size:13px;line-height:1.6}
html[data-atlas-quant] .sq-legacy table .btn{font-size:13px;line-height:1.5;min-height:44px;padding:10px 12px}
html[data-atlas-quant] .sq-legacy>.footnote{margin-top:10px}

/* RERUN-033: research table metadata and actions stay readable at every width. */
html[data-atlas-quant] .sq-table th,
html[data-atlas-quant] .sq-table small{font-size:12px;line-height:1.6}
html[data-atlas-quant] .sq-table td,
html[data-atlas-quant] .sq-table .sq-inline-link{font-size:13px;line-height:1.6}
html[data-atlas-quant] .sq-panel:has(.sq-table) .sq-button.small,
html[data-atlas-quant] .sq-content:has(.sq-table)>.sq-catalog-pagination .sq-button.small{font-size:13px;line-height:1.5;min-height:44px;padding:10px 12px}
html[data-atlas-quant] .sq-table .sq-inline-link{display:inline-flex;align-items:center;min-height:44px}
html[data-atlas-quant] .sq-content:has(.sq-table)>.sq-catalog-pagination{font-size:12px;line-height:1.6;flex-wrap:wrap;gap:12px}

/* RERUN-034: improve dark legacy-table metadata contrast. */
html[data-atlas-quant]:not([data-theme="light"]) .sq-legacy table th,
html[data-atlas-quant]:not([data-theme="light"]) .sq-legacy table .dim,
html[data-atlas-quant]:not([data-theme="light"]) .sq-legacy .row-sub{color:#95a19a}

/* RERUN-036: narrow-screen histogram labels wrap within equal-height cells. */
@media(max-width:360px){
body.market-briefing-page .mb-hist-column>span{width:100%;height:4.2em;font-size:12px;line-height:1.4;white-space:normal;text-align:center;overflow-wrap:anywhere;text-wrap:balance}
}

/* RERUN-037: light-theme price changes remain legible on white and tinted tiles. */
html:not([data-theme="dark"]) body.market-briefing-page{--mb-up:#146d4d;--mb-down:#b03d2b}

/* RERUN-040: readable focus-asset rows on narrow phones. */
@media(max-width:480px){
body[data-tool="hot"] .ht-focus{grid-template-columns:minmax(0,1fr);gap:0}
body[data-tool="hot"] .ht-focus-asset{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px 0;border-bottom:1px solid var(--ht-line)}
body[data-tool="hot"] .ht-focus-asset:last-of-type{border-bottom:0}
body[data-tool="hot"] .ht-asset-name strong{font-size:13px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
body[data-tool="hot"] .ht-focus-asset .ht-symbol{font-size:12px}
body[data-tool="hot"] .ht-asset-value{flex-direction:column;align-items:flex-end;text-align:right;gap:5px}
body[data-tool="hot"] .ht-asset-value .ht-change{font-size:12px}
body[data-tool="hot"] .ht-asset-time{font-size:12px;line-height:1.5}
body[data-tool="hot"] .ht-focus-note{font-size:12px;margin-top:4px}
}

/* RERUN-040: retain full asset identities at intermediate and desktop widths too. */
body[data-tool="hot"] .ht-focus-asset .ht-asset-name strong{font-size:13px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
body[data-tool="hot"] .ht-focus-asset .ht-symbol,body[data-tool="hot"] .ht-asset-time,body[data-tool="hot"] .ht-focus-note,body[data-tool="hot"] .ht-asset-value .ht-change{font-size:12px}
body[data-tool="hot"] .ht-asset-time{line-height:1.5}

/* RERUN-041: readable controls, dates, provenance and table labels. */
body[data-tool="hot"] .ht-tab,body[data-tool="hot"] .ht-desk-chip{font-size:13px!important}
body[data-tool="hot"] .ht-date,body[data-tool="hot"] .ht-feature-tag,body[data-tool="hot"] .ht-hero>.ht-eyebrow,body[data-tool="hot"] .ht-hero-foot,body[data-tool="hot"] .ht-root th,body[data-tool="hot"] .ht-security .ht-symbol,body[data-tool="hot"] .ht-data-note,body[data-tool="hot"] .ht-data-note .ht-link,body[data-tool="hot"] .ht-methodology,body[data-tool="hot"] .ht-scroll-note,body[data-tool="hot"] .ht-story-meta,body[data-tool="hot"] .ht-story-meta time,body[data-tool="hot"] .ht-recency-label{font-size:12px;line-height:1.6}
body[data-tool="hot"] .ht-hero>.ht-eyebrow{flex-wrap:wrap;row-gap:8px}
body[data-tool="hot"] .ht-security{flex-wrap:wrap;row-gap:4px}

/* RERUN-042: retain usable controls on landscape phones and tablets. */
body[data-tool="hot"] .ht-button,body[data-tool="hot"] .ht-tab,body[data-tool="hot"] .ht-desk-chip{min-height:44px;min-width:44px}
body[data-tool="hot"] .ht-lane-pause{min-width:44px;width:44px;min-height:44px;height:44px;flex:0 0 44px}
body[data-tool="hot"] .at-brand,body[data-tool="hot"] .at-return{min-height:44px;display:inline-flex;align-items:center}
body[data-tool="hot"] #at-language{min-height:44px}
body[data-tool="hot"] #at-theme{min-width:44px;width:44px;min-height:44px;height:44px}

/* RERUN-043: avoid squeezed dates and isolated final heading characters. */
body[data-tool="hot"] .ht-intro-toolbar>div:first-child{flex-wrap:wrap;row-gap:8px}
body[data-tool="hot"] .ht-intro-toolbar .ht-date{white-space:nowrap}
body[data-tool="hot"] .ht-hero h2{text-wrap:balance}
@media(max-width:360px){
body[data-tool="hot"] .ht-section-top{flex-direction:column;align-items:flex-start;gap:12px}
body[data-tool="hot"] .ht-section-top>div{min-width:0;max-width:100%}
body[data-tool="hot"] .ht-section-top>.ht-link{white-space:nowrap;align-self:flex-start}
body[data-tool="hot"] .ht-section-top h2{text-wrap:balance}
}

/* RERUN-044: give narrow news directory headers a separate summary row. */
@media(max-width:600px){
body[data-tool] .ni-directory-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
body[data-tool] .ni-directory-head>strong{flex:1 1 auto;min-width:0;font-size:13px}
body[data-tool] .ni-directory-head>.ni-button{flex:0 0 auto;white-space:nowrap;min-height:44px}
body[data-tool] .ni-directory-head>.ni-directory-count{flex:1 0 100%;min-width:0;font-size:12px;line-height:1.6;text-align:left}
}

/* RERUN-045: distinguish search prompts on the dark news surface. */
html[data-theme="dark"] body[data-tool] .ni-query input::placeholder,html[data-theme="dark"] body[data-tool] #ni-instrument-search::placeholder{color:#a0ada5;opacity:1}

/* RERUN-046: readable directory controls and complete source metadata. */
body[data-tool] .ni-label,body[data-tool] .ni-directory-count,body[data-tool] .ni-coverage,body[data-tool] .ni-results-head>span,body[data-tool] .ni-story-meta,body[data-tool] .ni-story-bottom{font-size:12px;line-height:1.6}
body[data-tool] .ni-story-meta{flex-wrap:wrap;gap:6px 9px}
body[data-tool] .ni-publisher{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;max-width:100%}
body[data-tool] .ni-story-bottom{flex-wrap:wrap;row-gap:6px}
body[data-tool] .ni-button,body[data-tool] .ni-desk,body[data-tool] .ni-clear{font-size:13px;min-height:44px;min-width:44px}
body[data-tool] .ni-field select,body[data-tool] .ni-field input{min-height:44px}

/* RERUN-047: align shared tool-page header controls with the assistant. */
body[data-tool] .at-brand,body[data-tool] .at-return{min-height:44px;display:inline-flex;align-items:center}
body[data-tool] #at-language{min-height:44px}
body[data-tool] #at-theme{min-width:44px;width:44px;min-height:44px;height:44px}

/* RERUN-049: readable, complete interactive article and analysis tags. */
body[data-tool] .ni-story-tag{font-size:13px;line-height:1.4;min-height:44px;padding:8px 10px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}

/* RERUN-050: match search field and submit target on tablet and desktop. */
body[data-tool] .ni-query input{min-height:44px}
body[data-tool] .ni-search-submit{min-height:44px;font-size:13px}
@media(min-width:641px){body[data-tool] .ni-query input{font-size:14px}}

/* RERUN-051: give compact IPO filters room instead of compressing market names. */
@media(max-width:600px){body[data-tool=ipo] .ic-sidebar{grid-template-columns:minmax(0,1fr);gap:18px}body[data-tool=ipo] .ic-filter-block{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body[data-tool=ipo] .ic-filter-block>.ic-label,body[data-tool=ipo] .ic-filter-block>.ic-select{grid-column:1/-1}body[data-tool=ipo] .ic-filter-block>.ic-label{margin:0}body[data-tool=ipo] .ic-market-option{margin:0;min-height:44px;gap:6px;padding:8px;white-space:nowrap}}

/* RERUN-052: let IPO company names use the card width on narrow screens. */
@media(max-width:480px){body[data-tool=ipo] .ic-agenda-day{grid-template-columns:minmax(0,1fr);gap:10px}body[data-tool=ipo] .ic-agenda-date{flex-direction:row;align-items:center;gap:12px;padding:0}body[data-tool=ipo] .ic-event:not(.ic-event-compact){flex-direction:column;align-items:stretch;gap:12px}body[data-tool=ipo] .ic-event:not(.ic-event-compact) .ic-event-meta{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}body[data-tool=ipo] .ic-event-price{overflow-wrap:anywhere}}

/* RERUN-053: readable IPO dates, symbols, prices and functional labels. */
body[data-tool=ipo] .ic-filter-block .ic-label,body[data-tool=ipo] .ic-event-market,body[data-tool=ipo] .ic-mono,body[data-tool=ipo] .ic-badge,body[data-tool=ipo] .ic-event-price,body[data-tool=ipo] .ic-agenda-date span,body[data-tool=ipo] .ic-status,body[data-tool=ipo] .ic-status-hint,body[data-tool=ipo] .ic-today-month,body[data-tool=ipo] .ic-coverage summary,body[data-tool=ipo] .ic-coverage-body,body[data-tool=ipo] .ic-sidebar-note{font-size:12px;line-height:1.6}
body[data-tool=ipo] .ic-event-identity strong{font-size:14px;line-height:1.5}
body[data-tool=ipo] .ic-toolbar .ic-button,body[data-tool=ipo] .ic-searchbar .ic-button{min-height:44px;min-width:44px}
body[data-tool=ipo] .ic-toolbar .ic-button:not(.ic-arrow),body[data-tool=ipo] .ic-searchbar .ic-button{font-size:13px}
body[data-tool=ipo] .ic-coverage summary{min-height:44px;padding:12px 0;box-sizing:border-box}

/* RERUN-054: readable monthly IPO cells without compressed 8px event labels. */
body[data-tool=ipo] .ic-month-grid{min-width:840px}
body[data-tool=ipo] .ic-weekday{font-size:12px}
body[data-tool=ipo] .ic-event-compact{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"symbol kind" "name name";gap:5px 6px;padding:8px 6px;min-height:44px;align-items:start}
body[data-tool=ipo] .ic-event-symbol{grid-area:symbol;font-size:12px;line-height:1.5}
body[data-tool=ipo] .ic-event-kind{grid-area:kind;font-size:12px;line-height:1.5;opacity:1;text-align:right}
body[data-tool=ipo] .ic-event-name{grid-area:name;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body[data-tool=ipo] .ic-day-number{min-width:44px;min-height:44px;font-size:13px}
body[data-tool=ipo] .ic-more{min-height:44px;font-size:12px}

/* RERUN-054 second pass: reserve the complete ticker before wrapping event type. */
body[data-tool=ipo] .ic-event-compact{grid-template-columns:auto minmax(0,1fr)}
body[data-tool=ipo] .ic-event-symbol{white-space:nowrap}
body[data-tool=ipo] .ic-event-kind{white-space:normal;overflow-wrap:anywhere;min-width:0}

/* RERUN-054 final pass: keep event type intact instead of a one-character orphan. */
body[data-tool=ipo] .ic-event-compact{grid-template-columns:minmax(0,1fr);grid-template-areas:"symbol" "name" "kind"}
body[data-tool=ipo] .ic-event-kind{text-align:left}

/* RERUN-055: make the dark IPO search prompt readable at full opacity. */
html[data-theme=dark] body[data-tool=ipo] .ic-search::placeholder{color:#a0ada5;opacity:1}

/* RERUN-055 light-theme follow-up: remove the same contrast-reducing opacity. */
html[data-theme=light] body[data-tool=ipo] .ic-search::placeholder{color:#727570;opacity:1}

/* RERUN-056: readable data-catalog controls across touch layouts. */
#atlas-feature-panel.af-standalone[data-feature=data] .af-catalog input,#atlas-feature-panel.af-standalone[data-feature=data] .af-catalog select{min-height:44px}
#atlas-feature-panel.af-standalone[data-feature=data] .af-dataset small{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:900px){#atlas-feature-panel.af-standalone[data-feature=data] .af-catalog input,#atlas-feature-panel.af-standalone[data-feature=data] .af-catalog select{font-size:16px}}

/* RERUN-057: readable dark data-catalog search hint. */
html[data-theme=dark] #atlas-feature-panel.af-standalone[data-feature=data] .af-catalog input::placeholder{color:#a0ada5;opacity:1}

/* RERUN-058: standalone feature panels use the actual tool-theme border token. */
#atlas-feature-panel.af-standalone{border-color:var(--at-line)}

/* RERUN-061: keep all four tool header controls together on compact screens. */
@media(max-width:360px){body[data-tool] .at-top-right:has(.atlas-tool-launcher){display:grid;grid-template-columns:minmax(0,1fr) 84px 44px 44px;align-items:center;justify-content:stretch;gap:6px}body[data-tool] .at-top-right:has(.atlas-tool-launcher) .at-return{min-width:0;width:auto;white-space:normal;text-align:center;justify-content:center;line-height:1.4}body[data-tool] .at-top-right:has(.atlas-tool-launcher) #at-language{width:84px;min-width:0}}

/* RERUN-062: readable touch fields and actions in the stock research form. */
#atlas-feature-panel.af-standalone[data-feature=picker] .af-field input,#atlas-feature-panel.af-standalone[data-feature=picker] .af-field select,#atlas-feature-panel.af-standalone[data-feature=picker] .af-button{min-height:44px}
@media(max-width:900px){#atlas-feature-panel.af-standalone[data-feature=picker] .af-field input,#atlas-feature-panel.af-standalone[data-feature=picker] .af-field select,#atlas-feature-panel.af-standalone[data-feature=picker] .af-field textarea{font-size:16px}}

/* RERUN-063: preserve the form state visibility contract. */
#atlas-feature-panel[data-feature=picker] .af-button[hidden]{display:none}

/* RERUN-064: legible research instructions in dark form fields. */
html[data-theme=dark] #atlas-feature-panel[data-feature=picker] .af-field input::placeholder,html[data-theme=dark] #atlas-feature-panel[data-feature=picker] .af-field textarea::placeholder{color:#a0ada5;opacity:1}

/* RERUN-066: a full touch target for the library landing action. */
body[data-tool=reports] .at-cta{min-height:44px;align-items:center}

/* RERUN-072: full touch targets for terminal empty-state and portfolio actions. */
#terminal-canvas .terminal-button,#terminal-canvas .ap-button{min-height:44px;align-items:center}

/* RERUN-074: readable embedded company news, including narrow phone layouts. */
body.embed .story{grid-template-columns:64px minmax(0,1fr)}
body.embed .story h3{font-size:16px;line-height:1.55}
body.embed .story p{font-size:14px;line-height:1.7}
body.embed .story .meta,body.embed .story .symbols,body.embed .story-time,body.embed .story-time small,body.embed #status{font-size:12px;line-height:1.6}
body.embed .story .meta{flex-wrap:wrap;overflow-wrap:anywhere}
body.embed #more{font-size:14px;min-height:44px}
@media(max-width:480px){body.embed .story{grid-template-columns:minmax(0,1fr);gap:7px}body.embed .story-time{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 9px}body.embed .story-time small{display:inline}}

/* RERUN-075: the embedded-news full-list link remains readable on dark terminals. */
html[data-theme=dark] .atlas-news-all{color:#ccc;border-color:#444}

/* RERUN-076: give narrow detail actions whole rows instead of squeezing CJK labels. */
@media(max-width:360px){#terminal-canvas .terminal-screen-header{grid-template-columns:minmax(0,1fr)}#terminal-canvas .terminal-screen-header>.terminal-screen-actions,#terminal-canvas .terminal-screen-header>.ap-security-actions{grid-column:1/-1;justify-self:start;justify-content:flex-start;flex-wrap:wrap;width:100%;min-width:0}#terminal-canvas .terminal-screen-header :is(.terminal-button,.ap-button){flex-shrink:0;max-width:100%;word-break:keep-all}}

/* RERUN-077: header action groups share the same vertical alignment. */
#terminal-canvas .terminal-screen-header>.ap-security-actions{margin-top:0;align-items:center}

/* RERUN-079: keep the desktop function and security context readable. */
@media(min-width:1181px){
 html:root body.terminal-v2-page .terminal-command .terminal-context{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;gap:2px 8px;flex:0 0 190px;min-width:0;max-width:190px;white-space:nowrap;align-items:center}
 html:root body.terminal-v2-page .terminal-command .terminal-context>.terminal-context-code{display:block;grid-column:1;grid-row:1/3;font-size:12px}
 html:root body.terminal-v2-page .terminal-command .terminal-context>strong{display:block;grid-column:2;grid-row:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.4}
 html:root body.terminal-v2-page .terminal-command .terminal-context>span:last-child{display:block;grid-column:2;grid-row:2;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.4}
}

/* RERUN-082: narrow quote cards keep complete volume values readable. */
@media(max-width:360px){
 #terminal-canvas .terminal-security-head+.terminal-kpi-strip{grid-template-columns:minmax(0,1fr)}
 #terminal-canvas .terminal-security-head+.terminal-kpi-strip>.terminal-kpi{border-left:0;border-top:1px solid var(--terminal-line)}
}

/* RERUN-086: a page-level account launcher stays below an open research window. */
html:root body.terminal-v2-page:has(#docta-chat-companion-window:not([hidden]))>#atlas-account-slot{z-index:800}

/* RERUN-088: long quote values stay in the left reading column, clear of the mobile companion. */
@media(min-width:361px) and (max-width:640px){
 #terminal-canvas .terminal-security-head+.terminal-kpi-strip>.terminal-kpi:is(:first-child,:last-child){grid-column:1/-1;border-left:0}
 #terminal-canvas .terminal-security-head+.terminal-kpi-strip>.terminal-kpi{border-top:1px solid var(--terminal-line)}
 #terminal-canvas .terminal-security-head+.terminal-kpi-strip>.terminal-kpi:nth-child(2){border-left:0}
}

/* RERUN-090: expanded menu uses a text close label, not the closed chevron's box. */
html:root body.terminal-v2-page .terminal-more-tools[open]>summary::after{transform:none;rotate:none;width:auto;height:auto;border:0;flex:0 0 auto;line-height:1.4;align-self:center}

/* RERUN-091: history pagination needs readable spacing and touch-size controls. */
html:root body.terminal-v2-page .terminal-price-table-controls{display:grid;grid-template-columns:auto auto auto;gap:8px;align-items:center;width:fit-content;max-width:100%;box-sizing:border-box;padding:12px}
html:root body.terminal-v2-page .terminal-price-table-controls>button{min-height:44px;min-width:44px;padding:8px 12px;border:1px solid var(--terminal-line);border-radius:4px;background:var(--ui-neutral-255,#fff);color:var(--ui-neutral-41,#292929);font:inherit;font-size:13px;line-height:1.4;white-space:nowrap;cursor:pointer}
html:root body.terminal-v2-page .terminal-price-table-controls>button:disabled{opacity:.45;cursor:default}
html:root body.terminal-v2-page .terminal-price-table-controls>button:focus-visible{outline:2px solid #568cff;outline-offset:2px}
html:root body.terminal-v2-page .terminal-price-table-controls>span{min-width:0;color:var(--ui-neutral-41,#292929);font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap}
@media(max-width:360px){
 html:root body.terminal-v2-page .terminal-price-table-controls{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 html:root body.terminal-v2-page .terminal-price-table-controls>span{grid-column:1/-1;grid-row:1}
 html:root body.terminal-v2-page .terminal-price-table-controls>button:first-child{grid-column:1;grid-row:2}
 html:root body.terminal-v2-page .terminal-price-table-controls>button:last-child{grid-column:2;grid-row:2}
}

/* RERUN-092: the valuation definition list needs its own responsive metric layout. */
html:root body.terminal-v2-page #terminal-canvas .atlas-f10-grid[data-valuation-scope="latest"]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0 24px;padding:0}
html:root body.terminal-v2-page .atlas-f10-grid[data-valuation-scope="latest"]>.atlas-f10-metric{min-width:0;padding:16px;border:1px solid var(--terminal-line);background:var(--ui-neutral-255,#fff);display:flex;flex-direction:column;align-items:flex-start;gap:8px}
html:root body.terminal-v2-page .atlas-f10-grid[data-valuation-scope="latest"] dt{margin:0;font-size:13px;line-height:1.5;font-weight:600;color:var(--ui-neutral-93,#5d5d5d)}
html:root body.terminal-v2-page .atlas-f10-grid[data-valuation-scope="latest"] dd{margin:0;font-size:clamp(22px,2vw,28px);line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums;color:var(--ui-neutral-41,#292929);overflow-wrap:anywhere}
html:root body.terminal-v2-page .atlas-f10-grid[data-valuation-scope="latest"] .atlas-f10-unit{margin-left:2px;font-size:.7em;font-weight:500}
html:root body.terminal-v2-page .atlas-f10-grid[data-valuation-scope="latest"] .atlas-f10-period{display:block;margin-top:auto;font-size:12px;line-height:1.5;color:var(--ui-neutral-93,#5d5d5d);overflow-wrap:anywhere}
html:root body.terminal-v2-page .atlas-f10-grid[data-valuation-scope="latest"] .atlas-f10-period a{text-decoration:underline;text-underline-offset:2px}
@media(max-width:1100px){html:root body.terminal-v2-page #terminal-canvas .atlas-f10-grid[data-valuation-scope="latest"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){html:root body.terminal-v2-page #terminal-canvas .atlas-f10-grid[data-valuation-scope="latest"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){html:root body.terminal-v2-page #terminal-canvas .atlas-f10-grid[data-valuation-scope="latest"]{grid-template-columns:minmax(0,1fr)}}

/* RERUN-093 / RERUN-097: when a mapped page and its evidence are both confirmed empty, keep one action group. */
html:root body.terminal-v2-page .terminal-screen:has(>.terminal-unavailable[data-state="empty"])>.terminal-core-inline[data-function-id]:has(>.terminal-unavailable[data-state="empty"]){margin-top:0;padding:0 24px 24px;border:0}
html:root body.terminal-v2-page .terminal-screen:has(>.terminal-unavailable[data-state="empty"])>.terminal-core-inline[data-function-id]:has(>.terminal-unavailable[data-state="empty"])>.terminal-core-inline-title{font-size:14px;line-height:1.5;font-weight:600;margin:0 0 8px;padding:0}
html:root body.terminal-v2-page .terminal-screen:has(>.terminal-unavailable[data-state="empty"])>.terminal-core-inline[data-function-id]>.terminal-unavailable[data-state="empty"]{padding:0;margin:0;border:0;background:none;min-height:0}
html:root body.terminal-v2-page .terminal-screen:has(>.terminal-unavailable[data-state="empty"])>.terminal-core-inline[data-function-id]>.terminal-unavailable[data-state="empty"]>strong,
html:root body.terminal-v2-page .terminal-screen:has(>.terminal-unavailable[data-state="empty"])>.terminal-core-inline[data-function-id]>.terminal-unavailable[data-state="empty"]>.terminal-empty-actions{display:none}
html:root body.terminal-v2-page .terminal-screen:has(>.terminal-unavailable[data-state="empty"])>.terminal-core-inline[data-function-id]>.terminal-unavailable[data-state="empty"]>p{margin:0;font-size:13px;line-height:1.6}

/* RERUN-095: a readable inline guide with independent overflow on short viewports. */
html:root body.terminal-v2-page aside.atlas-guide-panel{box-sizing:border-box;overflow:auto;overscroll-behavior:contain;margin-top:12px;margin-bottom:12px;padding:16px;background:var(--ui-neutral-255,#fff);color:var(--ui-neutral-41,#292929);border:1px solid var(--terminal-line);border-radius:6px}
html:root body.terminal-v2-page aside.atlas-guide-panel .atlas-guide-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:var(--ui-neutral-255,#fff);z-index:2}
html:root body.terminal-v2-page aside.atlas-guide-panel button{box-sizing:border-box;min-height:44px;min-width:44px;max-width:100%;padding:8px 12px;border:1px solid var(--terminal-line);border-radius:4px;background:var(--ui-neutral-255,#fff);color:var(--ui-neutral-41,#292929);font:inherit;font-size:14px;line-height:1.5;white-space:normal;cursor:pointer}
html:root body.terminal-v2-page aside.atlas-guide-panel>button{margin:8px 8px 0 0}
html:root body.terminal-v2-page aside.atlas-guide-panel .atlas-guide-head>button{flex:0 0 44px;width:44px;font-size:20px;padding:4px}
html:root body.terminal-v2-page aside.atlas-guide-panel>p{font-size:14px;line-height:1.6;margin:12px 0;max-width:780px}
html:root body.terminal-v2-page aside.atlas-guide-panel h3{font-size:18px;line-height:1.4;margin:12px 0}
html:root body.terminal-v2-page aside.atlas-guide-panel .atlas-guide-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
html:root body.terminal-v2-page aside.atlas-guide-panel button:focus-visible{outline:2px solid #568cff;outline-offset:2px}
html:root body.terminal-v2-page aside.atlas-guide-panel button:disabled{opacity:.45;cursor:default}

/* RERUN-095: keep scrolled text behind the full guide header, including its padding. */
html:root body.terminal-v2-page aside.atlas-guide-panel .atlas-guide-head{top:-16px;margin:-16px -16px 0;padding:16px}
html:root body.terminal-v2-page #atlas-personal-panel>aside.atlas-guide-panel{padding:16px!important;flex-shrink:0}

@media(max-height:500px){html:root body.terminal-v2-page #atlas-personal-panel>aside.atlas-guide-panel .atlas-guide-head{position:static}}

/* RERUN-100: keep quote values legible before the price-summary column squeezes their grid. */
@media(max-width:1100px){html:root body.terminal-v2-page .atlas-customer-instrument .atlas-instrument-quote{grid-template-columns:minmax(0,1fr);gap:24px}}
@media(max-width:600px){html:root body.terminal-v2-page .atlas-customer-instrument .atlas-quote-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}html:root body.terminal-v2-page .atlas-customer-instrument .atlas-quote-grid .atlas-f10-metric dd{font-size:22px!important}}
@media(max-width:380px){html:root body.terminal-v2-page .atlas-customer-instrument .atlas-quote-grid .atlas-f10-metric dd{font-size:18px!important}}
@media(max-width:300px){html:root body.terminal-v2-page .atlas-customer-instrument .atlas-quote-grid{grid-template-columns:minmax(0,1fr)}}

/* RERUN-101: prevent background scrolling from squeezing the native workspace dialog. */
html:root:has(body.terminal-v2-page #atlas-personal-panel:modal){overflow:hidden!important}

/* RERUN-168: the research guide theme control belongs in its header. */
body.aletheia-research .ar-header{flex-wrap:wrap;padding-block:20px}
body.aletheia-research .ar-header .docta-theme-toggle{position:static;display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:44px;box-sizing:border-box;margin:0;padding:10px 12px;border:1px solid var(--ar-rule);border-radius:4px;background:var(--ar-paper);color:var(--ar-ink);font:500 12px/1.5 Arial,sans-serif;white-space:nowrap;cursor:pointer}
body.aletheia-research .ar-header .docta-theme-toggle:hover{background:var(--ar-soft)}
body.aletheia-research .ar-header .docta-theme-toggle:focus-visible{outline:2px solid var(--ar-ink);outline-offset:3px}
@media(max-width:940px){body.aletheia-research .ar-header{gap:12px 16px}body.aletheia-research .ar-nav{order:3;width:100%;margin-left:0;flex-wrap:wrap}body.aletheia-research .ar-brand{margin-right:auto}}
@media(max-width:420px){body.aletheia-research .ar-brand{flex-basis:100%}body.aletheia-research .ar-languages{margin-right:auto}}

/* RERUN-169: readable, reachable research-guide navigation at every width. */
body.aletheia-research .ar-nav{gap:8px 16px;flex-wrap:wrap}
body.aletheia-research .ar-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:1.4}
body.aletheia-research .ar-languages{gap:4px;align-items:center}
body.aletheia-research .ar-languages a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;box-sizing:border-box;font-size:14px;line-height:1.4}

/* RERUN-170: keep the entry disclaimer readable beside the companion. */
body.atlas-entry:has(>.docta-companion-pet) .shared-product-disclaimer{box-sizing:border-box;padding-right:calc(var(--atlas-footer-pet-width,220px) + 108px)}
@media(max-width:700px){body.atlas-entry:has(>.docta-companion-pet) .shared-product-disclaimer{padding-right:22px;padding-bottom:calc(var(--atlas-footer-pet-height,212px) + 16px + env(safe-area-inset-bottom,0px))}}

/* RERUN-170: retain the terms link as one readable label. */
body.atlas-entry .shared-product-disclaimer a{display:inline-block}

/* RERUN-171: readable product navigation with consistent control height. */
body.atlas-entry .ae-header{flex-wrap:wrap;row-gap:12px}
body.atlas-entry .ae-header .ae-nav{flex-wrap:wrap;max-width:100%;gap:12px}
body.atlas-entry .ae-header .ae-nav>a,body.atlas-entry .ae-header .ae-nav>button{font-size:14px!important;line-height:1.4!important;min-height:44px!important;min-width:44px;box-sizing:border-box;padding-block:8px;white-space:nowrap}

/* RERUN-172: retain product entry points on tablet and unfolded widths. */
@media(min-width:601px) and (max-width:900px){body.atlas-entry .ae-header .ae-nav{display:flex!important;flex:1 0 100%;order:5;justify-content:flex-start;margin:0!important}body.atlas-entry .ae-header .ae-nav>button{display:flex!important}}

/* RERUN-173: entry guide controls fit inside the panel at narrow widths. */
html:root body.atlas-entry aside.atlas-guide-panel button{box-sizing:border-box;min-height:44px;min-width:44px;max-width:100%;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
html:root body.atlas-entry aside.atlas-guide-panel .atlas-guide-head>button{flex:0 0 44px;width:44px;font-size:20px}
@media(max-width:700px){html:root body.atlas-entry aside.atlas-guide-panel>button{margin-right:0}}

/* RERUN-174: the open guide takes input priority over the floating companion. */
body.atlas-entry .ae-shell:has(>.atlas-guide-panel){z-index:auto}
body.atlas-entry .ae-shell>.atlas-guide-panel{z-index:822}
