/* Shared customer/public palette. Semantic warning/error and provider colors stay intact. */
/* Public content must be readable on its first paint, including direct section URLs. */
html[data-home-theme="dark"] body > :is(.hero,.sec),
html[data-home-theme="dark"] body > :is(.hero,.sec) :is(.fade-up,.reveal,.grid2>*,.grid3>*,.top-models>*,.provider-box,.faq-item) {opacity:1;transform:none;translate:none;animation:none;transition:none}
html[data-home-theme="dark"] body,
.public-page {--bg:#242424;--card:#303030;--border:#484b41;--text:#f3f3ed;--muted:#b9bdb4;--dim:#b9bdb4;--green:#c0f52a;--brand-teal:#c0f52a;--signal:#c0f52a;--ink-0:#242424;--ink-1:#303030;--ink-2:#353830;--line:#484b41;--faint:#a0a597;background-color:#242424;color:#f3f3ed;color-scheme:dark}
html[data-theme] :is(#dashboardOverlay,#docsOverlay,.dash-modal,.ep-menu) {
 --d-bg:#242424;--d-panel:#303030;--d-rail:#282828;--d-border:#484b41;--d-line:#3d4038;
 --d-text:#f3f3ed;--d-strong:#e5e8de;--d-muted:#b9bdb4;--d-dim:#adb3a5;--d-faint:#a0a597;
 --d-accent:#c0f52a;--d-accent-soft:#c0f52a15;--d-hover:#c0f52a0c;--d-list:#c5cbbd;--d-soft:#b9bdb4;--d-label:#b9bdb4;--d-bright:#f3f3ed;--d-inv-bg:#c0f52a;--d-inv-text:#202900;--d-hi:#c0f52a55;color-scheme:dark;
}
.theme-toggle,.home-theme-toggle,.setting-row:has(#swTheme),.cc-setting-row:has(#swTheme){display:none!important}
#swTheme,.cc-toggle-row:has(#swTheme){display:none!important}
#allModelsPage {--bg:#242424;--card:#303030;--border:#484b41;--text:#f3f3ed;--muted:#b9bdb4;--green:#c0f52a;--brand-teal:#c0f52a;background:#242424;color:#f3f3ed}
#allModelsPage :is(.am-top,.am-rail) {background:#282828;border-color:#484b41}
#allModelsPage :is(.am-nav-item,.am-rail-h) {color:#b9bdb4}
#allModelsPage .am-nav-item.active {background:#c0f52a15;border-color:#c0f52a40;color:#c0f52a}
html[data-theme] :is(#dashboardOverlay,#docsOverlay) .dash-main {background-color:var(--d-bg);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath d='M0 0h160v160H0z' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E")}
html[data-theme] :is(#dashboardOverlay,#docsOverlay) :is(.cd-hl,.cd-banner .cd-txt b){color:var(--d-accent);text-shadow:none}
html[data-theme] :is(#dashboardOverlay,#docsOverlay) :is(.cd-banner,.dash-card.cd-card){background:var(--d-accent-soft);border-color:#c0f52a40}
html[data-theme] :is(#dashboardOverlay,#docsOverlay) .dash-nav-item.active {background:var(--d-accent-soft);color:var(--d-accent);border-color:var(--d-accent)}
.public-page {font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.public-page .public-header,.public-page .public-footer {background:#242424;border-color:#484b41}
.public-page a {color:#c0f52a}
.public-page .public-nav-cta {background:#c0f52a;color:#202900}
.public-page :is(.public-intro p,.public-section p){color:#b9bdb4}
.public-page [class*="statusPage"] {--ink:#f3f3ed;--muted:#b9bdb4;--line:#484b41;--panel:#303030}
.public-page :is([class*="summary_"],[class*="modelCard"],[class*="metric_"],[class*="refresh_"],input){background:#303030;border-color:#484b41;color:#f3f3ed}
.public-page [class*="modelIdentity"] :is(h3,code),.public-page [class*="timelineScale"],.public-page [class*="activityLabel"],.public-page [class*="method"] p {color:#b9bdb4}
.public-page :focus-visible {outline-color:#c0f52a}

/* Catalog layout is independent from the marketing header's logo ordering. */
#allModelsPage .am-top .logo {order:0;min-width:0;flex-shrink:0}
#allModelsPage .am-top > .btn {white-space:nowrap;flex-shrink:0;min-height:44px}
#allModelsPage :is(.mdl,.mdl-top>div,.mdl-foot>div,.cat-head>div:last-of-type) {min-width:0}
#allModelsPage .mdl-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
#allModelsPage .mdl .id {overflow-wrap:anywhere}
#allModelsPage .mdl .plan {flex-shrink:1;white-space:normal;overflow-wrap:anywhere;max-width:100%;line-height:1.6}
@media(max-width:1000px){
 #allModelsPage .mdl-grid {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:768px){
 #allModelsPage .am-top {height:64px;min-height:64px;padding:10px 16px;gap:12px}
 #allModelsPage .am-burger {display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;order:0}
 #allModelsPage .am-top .logo {margin-right:auto;font-family:inherit;font-size:16px;gap:6px}
 #allModelsPage .am-top .logo img {width:28px;height:28px}
 #allModelsPage .am-back {display:none}
 #allModelsPage .am-top > .btn {padding:10px 12px!important;font-size:12px!important}
 #allModelsPage .am-body {grid-template-columns:minmax(0,1fr)}
 #allModelsPage .am-rail {top:64px;width:min(280px,calc(100vw - 48px));visibility:hidden}
 #allModelsPage .am-rail.open {visibility:visible;box-shadow:12px 0 40px #0005}
 #allModelsPage .am-nav-item {min-height:44px}
 #allModelsPage .am-main {padding:24px 16px 40px}
 #allModelsPage .am-h1 {font-size:28px;line-height:1.2}
 #allModelsPage .am-sub {font-size:14px}
 #allModelsPage .cat-head {gap:12px}
 #allModelsPage .cat-head .nm {font-size:18px;overflow-wrap:anywhere}
 #allModelsPage .cat-head .sub {font-size:12px;line-height:1.6;overflow-wrap:anywhere}
 #allModelsPage .mdl {padding:16px}
 #allModelsPage .mdl-top {flex-direction:column;gap:10px}
 #allModelsPage .mdl .id {font-size:14px;line-height:1.55}
 #allModelsPage .mdl-foot {flex-wrap:wrap;gap:8px 12px}
 #allModelsPage .mdl-foot .ctx {margin-left:0}
}
