/* SAGE dark appearance shared by public, private and member pages. */
html[data-theme=dark] body.sage-console,html[data-theme=dark] body.owner-console{background:#f1f3f5;color:#dceefa}
html[data-theme=dark] body.sage-console #content.wrap{background:#f1f3f5;color:#dceefa}
html[data-theme=dark] body.sage-console #content.wrap>.loading{color:#49677a!important}
html[data-theme=dark] body.sage-console #content.wrap .console-status-line h1{color:#17384d}
html[data-theme=dark] body.sage-console #content.wrap .console-status-line :is(time,h1 span){color:#49677a}
html[data-theme=dark] body.sage-console #content.wrap .console-live{color:#167448;text-shadow:none}
html[data-theme=dark] body.sage-console #content.wrap .console-live.degraded{color:#865511}
html[data-theme=dark] .owner-console .owner-shell>:is(h1,p,.eyebrow){color:#17384d}
html[data-theme=dark] .owner-console .owner-brand{color:#f0f7ff;background:#071b2b;padding:12px 16px;border-radius:10px}
html[data-theme=dark] .owner-console #owner-content{background:#071b2b;color:#dceefa;border-radius:12px;padding:18px}
html[data-theme=dark] .owner-console .owner-brand-subtitle{color:#a3dcef}




html[data-theme=dark] body:has(.topbar){background:#f1f3f5!important}

html[data-theme=dark] :is(button,a,input,select,textarea,summary):focus-visible{outline-color:#93deff!important}

/* Preserve the original dark navigation frame. */
body.sage-console :is(.masthead,.console-sidebar,.console-submenu){--console-cyan:#6bddff;--ink:#dceefa;--muted:#a5cadd;color:#dceefa;color-scheme:dark}

/* Dialog surfaces must stay dark as well as their text. */
html[data-theme=dark] .reader-donation{background:linear-gradient(145deg,#0a2b40,#041725)!important;color:#dceefa!important;border:1px solid #397491;border-radius:18px;box-shadow:0 24px 70px #0008}
html[data-theme=dark] .reader-donation header{background:linear-gradient(120deg,#12394f,#17445d);border-color:#42768f;box-shadow:none}
html[data-theme=dark] .reader-donation header h2{color:#f0f8ff!important}
html[data-theme=dark] .reader-donation .reader-donation-message{background:#102f43;color:#dceefa!important;border-left-color:#71cbe9;box-shadow:none}
html[data-theme=dark] .reader-donation [data-donation-status]{background:#12394f;color:#e1f4ff!important;border-color:#497b94}
html[data-theme=dark] .reader-donation .donation-amounts label{background:#10344c!important;color:#e1f4ff!important;border-color:#497b94;box-shadow:none}
html[data-theme=dark] .reader-donation .donation-amounts label:has(input:checked){background:#1c526c!important;color:#fff!important;border-color:#91def7;box-shadow:none}
html[data-theme=dark] .reader-donation .donation-amounts label>span{background:transparent!important;color:inherit!important}
html[data-theme=dark] .reader-donation .donation-methods section{background:#0d2c41!important;border-color:#397491;box-shadow:none}
html[data-theme=dark] .reader-donation :is(p,label,legend,h3,.donation-payment-note){color:#c8e1f2!important}
html[data-theme=dark] .reader-donation :is(input[type=number],select){background:#082337;color:#e1f4ff;border-color:#497b94;color-scheme:dark}
html[data-theme=dark] .reader-donation :is(button,a.button){background:#16475f!important;color:#f0f8ff!important;border-color:#70b9d5!important}
html[data-theme=dark] .reader-donation :is(button,a.button):hover{background:#205c77!important}
html[data-theme=dark] .reader-donation .donation-qr img{background:#fff;padding:10px;border-radius:9px}

/* Consistent navigation and information text across every public section. */
body.sage-console .console-nav-item:is(.selected,:hover)>a{color:#f0f8ff!important}
body.sage-console .console-nav-item:is(.selected,:hover)>details>summary{color:#d7f4ff!important}
body.sage-console .footer .editorial-disclaimer{background:#0a2639;border:1px solid #285971;border-radius:10px;padding:18px}
body.sage-console .footer .editorial-disclaimer :is(p,h2){color:#c8e1f2!important}
body.sage-console .reader-menu section,body.sage-console .reader-menu details{border-color:#397491}
body.sage-console .reader-menu :is(a,small,.reader-setting-note){color:#c8e1f2}

/* Small values and counters inherit the same readable palette as their panels. */
body.sage-console #content.console-workspace .life-inline-value{color:#dceefa!important}
body.sage-console #content.console-workspace .sage-monitor-tabs span{background:#17445d!important;color:#e1f4ff!important}
body.sage-console #content.console-workspace .color-art{background:linear-gradient(135deg,#12394f,#092337)!important;color:#dceefa!important}
body.sage-console #content.console-workspace .color-art :is(span,small){color:#dceefa!important}

body.sage-console #content.console-workspace .article-country-badge,body.sage-console #content.console-workspace .article-country-badge span{background:#12394f;color:#dceefa!important;border-color:#397491}

body.sage-console #content.console-workspace .badge:not(.category-badge){background:#12394f!important;color:#dceefa!important;border:1px solid #397491}
body.sage-console #content.console-workspace .perspective-summary-number{color:#9be5ff!important}
body.sage-console #content.console-workspace :is(.perspective-summary-empty,.watcher-live,.sage-monitor-metrics>div){background:#12394f!important;color:#dceefa!important;border-color:#397491}

body.sage-console #content.console-workspace :is(.evaluation-controls,.evaluation-checks){background:#0d2c41!important;color:#dceefa!important;border-color:#397491}

body.sage-console #content.console-workspace :is(.sage-monitor-entry time,.sage-monitor-entry .meta){color:#b8d2e5!important}

/* Section browsing uses a compact search field without a theme directory. */
body.sage-console #content .section-search{margin:18px 0 24px;max-width:800px}
body.sage-console #content .section-search .theme-search{display:grid;gap:8px;width:100%;color:#c8e1f2}
body.sage-console #content .section-search input{width:100%;min-height:44px}

/* Page totals are public and remain readable next to navigation controls. */
body.sage-console #content :is(.pagination,.sage-register-pagination){display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin:24px 0;padding:14px;border:1px solid #397491;border-radius:10px;background:#0d2c41;text-align:center}
body.sage-console #content .pagination-status{display:block;color:#e1f4ff!important;font:600 15px/1.5 'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere}
@media(max-width:650px){body.sage-console #content :is(.pagination,.sage-register-pagination){grid-template-columns:1fr 1fr;gap:10px}body.sage-console #content .pagination-status{grid-column:1/-1;grid-row:1}body.sage-console #content :is(.pagination,.sage-register-pagination)>button{grid-row:2;min-width:0;white-space:normal}}

/* Compact research cards: five across on desktop, readable on smaller screens. */
body.sage-console #content.console-workspace[data-route="/analyses"] .stories-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}
body.sage-console #content.console-workspace .story.analysis-story{padding:12px;display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}
body.sage-console #content.console-workspace .analysis-story .color-art{height:64px;min-height:0;margin:0;border-radius:6px}
body.sage-console #content.console-workspace .analysis-story .color-art>span{font-size:28px}
body.sage-console #content.console-workspace .analysis-story .color-art>small{font-size:9px;bottom:6px;left:9px}
body.sage-console #content.console-workspace .analysis-story h3{font-size:16px!important;line-height:1.45;margin:9px 0 0}
body.sage-console #content.console-workspace .analysis-story .meta{font-size:11px!important;margin:0}
body.sage-console #content.console-workspace .analysis-story .category-badge{font-size:10px!important;padding:5px 7px!important}
body.sage-console #content.console-workspace .analysis-story .article-title-arrow{display:inline;color:#9be5ff;white-space:nowrap}
@media(max-width:1200px){body.sage-console #content.console-workspace[data-route="/analyses"] .stories-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){body.sage-console #content.console-workspace[data-route="/analyses"] .stories-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){body.sage-console #content.console-workspace[data-route="/analyses"] .stories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){body.sage-console #content.console-workspace[data-route="/analyses"] .stories-grid{grid-template-columns:1fr}}

/* Compact section headings leave room for search and the actual dossiers. */
body.sage-console #content.console-workspace .console-workspace-head{padding:8px 12px;margin:0 0 10px;border-radius:8px}
body.sage-console #content.console-workspace .console-workspace-head>div{font-size:12px;gap:6px;margin:0 0 6px}
body.sage-console #content.console-workspace .console-workspace-head nav{gap:6px;padding:0}
body.sage-console #content.console-workspace .console-workspace-head nav a{padding:4px 9px!important;min-height:28px;font-size:11px!important}
body.sage-console #content.console-workspace :is(.page-intro,.sage-page-head){padding:10px 14px!important;margin:0 0 12px!important;border-radius:8px}
body.sage-console #content.console-workspace .page-intro{display:flex!important;align-items:center;gap:12px}
body.sage-console #content.console-workspace :is(.page-intro,.sage-page-head) h1{font-size:24px!important;line-height:1.25!important;margin:3px 0!important;font-weight:600;letter-spacing:0}
body.sage-console #content.console-workspace :is(.page-intro,.sage-page-head) :is(.eyebrow,.kicker){font-size:10px!important;line-height:1.3;margin:0}
body.sage-console #content.console-workspace :is(.page-intro p,.sage-page-question){font-size:13px!important;line-height:1.45!important;margin:4px 0 0!important;max-width:100ch}
body.sage-console #content.console-workspace .page-intro #refresh{flex-shrink:0;padding:7px 10px!important;min-height:32px;font-size:12px!important}
body.sage-console #content.console-workspace .sage-monitor-heading{margin:0 0 10px;gap:10px}
body.sage-console #content.console-workspace .sage-monitor-heading p{margin:0;font-size:12px!important}
body.sage-console #content.console-workspace .sage-monitor-heading #refresh{padding:7px 10px!important;min-height:32px}
body.sage-console #content .section-search{margin:12px 0 16px}
body.sage-console #content.console-workspace .toolbar{margin:12px 0 16px}
@media(max-width:650px){body.sage-console #content.console-workspace :is(.page-intro,.sage-page-head){padding:10px 12px!important}body.sage-console #content.console-workspace :is(.page-intro,.sage-page-head) h1{font-size:21px!important}body.sage-console #content.console-workspace .page-intro{flex-wrap:wrap}body.sage-console #content.console-workspace .page-intro>div{flex:1 1 240px}body.sage-console #content.console-workspace .page-intro #refresh{margin-left:auto}}

/* Main navigation already lives in the sidebar; the section starts with its breadcrumb. */
body.sage-console #content.console-workspace .console-workspace-head nav{display:none}
body.sage-console #content.console-workspace .console-workspace-head>div{margin:0}

/* Prospective research: explicit domains, documented opinions and live estimates. */
body.sage-console #content.console-workspace :is(.prospective-assessment,.prospective-evaluation-overview){background:#0d2c41;border:1px solid #397491;border-radius:10px;padding:16px;margin:16px 0;color:#dceefa}
.prospective-assessment>header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.prospective-assessment time{font-size:12px;color:#b8d2e5}
.prospective-estimate{display:grid;gap:6px;margin:14px 0}.prospective-estimate>strong{font-size:26px;color:#9be5ff}
.prospective-opinions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.prospective-opinions>article{background:#102f43;border:1px solid #397491;border-radius:8px;padding:12px}.prospective-opinions h4{margin:0 0 8px}
.prospective-domain{margin:20px 0}.prospective-domain>h2{border-left:3px solid #71cbe9;padding-left:12px}.prospective-domain-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
@media(max-width:950px){.prospective-domain-cards,.prospective-opinions{grid-template-columns:1fr}}
