
/* Skylark three-product information architecture — isolated preview only */
.top {gap:18px}
.product-links {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.product-links .product-link {padding:9px 11px;font-size:12px;font-weight:700;color:var(--muted);border-radius:9px;transition:background .2s,color .2s}
.product-links .product-link:hover,.product-links .product-link[aria-current=page]{background:var(--subtle);color:var(--ink)}
.product-links .terminal-product {font-size:12px;letter-spacing:.025em;padding:11px 18px;box-shadow:0 6px 20px #168bc123}
.product-links .terminal-product[aria-current=page] {box-shadow:0 0 0 2px #74cdfa55,0 6px 18px #168bc120}
.product-links .term-subdomain{font-size:9px;font-weight:600;opacity:.85}
.design-preview-bar {display:flex;justify-content:center;align-items:center;gap:18px;background:var(--panel2);border-bottom:1px solid var(--border);padding:9px 16px}
.design-preview-bar .switch button{padding:7px 12px;font-size:11px}
.design-preview-bar .muted{font-size:10px}
.marketing-section{display:none;min-width:0}
body[data-layout=wordpress][data-section=home] #wp-home-section {display:block}
body[data-layout=wordpress][data-section=research] #wp-research-section{display:block}
body[data-layout=wordpress][data-section=api] #wp-api-section{display:block}
body[data-layout=wordpress][data-section=research] #wp-home-section,
body[data-layout=wordpress][data-section=api] #wp-home-section{display:none}
.publication-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}
.publication-card{padding:24px;min-width:0;display:flex;gap:20px;align-items:stretch}
.publication-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}
.publication-details h2{font-size:23px;line-height:1.13}
.publication-details p{color:var(--muted);font-size:12px}
.publication-details .button{align-self:flex-start;margin-top:auto}
.pub-tags{display:flex;flex-wrap:wrap;gap:7px;margin:5px 0}
.book-cover,.report-cover{width:153px;min-width:153px;min-height:235px;padding:16px 14px;background:linear-gradient(152deg,#143c62,#070d17 63%,#071c33);border:1px solid #345775;border-radius:5px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:10px 8px 20px #0003;position:relative;overflow:hidden}
.book-cover:before{content:'';position:absolute;inset:10px;pointer-events:none;border:1px solid #d6b57655}
.book-cover-top{font-size:8px;font-weight:700;letter-spacing:.18em;color:#d6b576;text-align:center}
.book-cover-title{font-family:"Space Grotesk",sans-serif;color:#fff;font-size:21px;font-weight:800;letter-spacing:-.045em;line-height:1.07;text-align:center;position:relative}
.book-cover-rule{height:1px;background:#c9a465}
.book-cover-bottom{font-size:8px;color:#b7cada;text-align:center;letter-spacing:.08em}
.report-cover{background:linear-gradient(165deg,#182c47,#091322 57%,#0c2842);justify-content:flex-start;gap:15px}
.report-cover strong{color:#fff;font-family:"Space Grotesk",sans-serif;font-size:17px;line-height:1.2;letter-spacing:-.01em}
.report-cover-lines{display:flex;align-items:flex-end;gap:7px;height:75px;margin-top:5px}
.report-cover-lines span{width:24%;border-radius:3px 3px 0 0;background:linear-gradient(0deg,#175c96,#35bad5)}
.report-cover-lines span:nth-child(1){height:33%}.report-cover-lines span:nth-child(2){height:72%}.report-cover-lines span:nth-child(3){height:51%}.report-cover-lines span:nth-child(4){height:94%}
.api-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,.8fr);gap:22px;padding:27px;background:linear-gradient(125deg,var(--panel),var(--panel2))}
.api-hero h2{font-size:28px}
.api-features{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}
.api-visual{background:#0a1b30;border:1px solid #2b4a67;border-radius:13px;padding:20px;display:flex;flex-direction:column;justify-content:center;gap:12px;color:#e9f4ff;min-height:215px}
.api-visual code{font-size:12px;color:#a5e5ff;overflow-wrap:anywhere}
.api-visual strong{font-family:"Space Grotesk",sans-serif;font-size:28px;color:#e4b965}
.api-visual small{color:#96b5cf}
.module-launcher{margin-bottom:17px;padding:19px}
.launcher-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}
.launcher-top p{max-width:650px}
.launcher-top input{width:240px;max-width:100%;padding:11px 13px;border:1px solid var(--border);background:var(--panel2);color:var(--ink);border-radius:9px;font:inherit;font-size:12px}
.terminal-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.terminal-module-tile{display:flex;align-items:center;gap:9px;min-width:0;text-align:left;padding:11px;background:var(--panel2);border:1px solid var(--border);border-radius:9px;font-size:11px;font-weight:700;color:var(--ink)}
.terminal-module-tile:hover{border-color:var(--cyan);background:var(--subtle)}
.module-ico{color:var(--cyan);font-size:17px;width:22px;text-align:center}
.terminal-module-tile span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.terminal-module-tile span:last-child{color:var(--cyan)}
.embedded-module{margin-bottom:17px;overflow:hidden}
.embedded-bar{padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border)}
.embedded-actions{display:flex;gap:7px;flex-wrap:wrap}
#embedded-frame{display:block;width:100%;height:min(76vh,900px);min-height:520px;border:0;background:white}
.embedded-module[hidden]{display:none}
.term-modules-nav{display:grid;grid-template-columns:1fr;gap:3px}
button.module-opener{display:flex;width:100%;align-items:center;text-align:left;gap:9px;background:none;border:0;color:var(--muted);border-radius:9px;font-size:12px;padding:11px 10px;font-weight:650}
button.module-opener:hover{color:var(--ink);background:var(--subtle)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;clip:rect(0,0,0,0);overflow:hidden}
@media(max-width:1320px){.publication-grid{grid-template-columns:1fr}.terminal-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.top{height:auto;min-height:76px;flex-wrap:wrap;padding:12px 16px}.top-actions{flex-wrap:wrap}.product-links{order:1;width:100%;justify-content:flex-start}.design-preview-bar{flex-wrap:wrap;gap:8px}.api-hero{grid-template-columns:1fr}}
@media(max-width:660px){.publication-card{flex-direction:column}.book-cover,.report-cover{height:210px;width:148px;min-height:210px}.terminal-module-grid{grid-template-columns:1fr}.launcher-top{align-items:stretch;flex-direction:column}.launcher-top input{width:100%}.embedded-bar{align-items:stretch;flex-direction:column}#embedded-frame{min-height:430px}.product-links{gap:2px}.product-links .product-link{padding:8px}.product-links .terminal-product{padding:9px 12px}}

/* Compact module launcher: no large grid above the primary chart on entry. */
.module-picker{position:relative;z-index:15;flex:0 0 auto}
.module-picker-trigger{display:flex;align-items:center;gap:9px;border:1px solid #2a90ca;border-radius:9px;background:linear-gradient(115deg,#103b66,#136ca7);color:#f2faff;white-space:nowrap;padding:10px 13px;font-size:12px;font-weight:800;min-height:38px}
.module-picker-trigger:hover{filter:brightness(1.1)}
.module-picker-trigger[aria-expanded=true]{box-shadow:0 0 0 2px #48c7f033}
.module-picker-icon{font-size:16px;color:#55d9f8;line-height:1}
.module-picker-count{background:#ffffff20;border-radius:6px;padding:2px 6px;font-size:10px}
.module-picker-chevron{margin-left:3px;color:#a6e9fa;font-size:13px}
.module-picker-trigger[aria-expanded=true] .module-picker-chevron{transform:rotate(180deg)}
.module-picker-menu{position:absolute;top:calc(100% + 8px);left:0;width:min(540px,calc(100vw - 42px));max-height:min(73vh,650px);overflow-y:auto;background:var(--panel);border:1px solid #3473a5;box-shadow:0 18px 50px #0009;border-radius:13px;padding:16px;z-index:60}
.module-picker-menu[hidden]{display:none!important}
.module-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.module-menu-heading h3{margin-top:5px}
.module-picker-menu input{width:100%;border:1px solid var(--border);border-radius:9px;background:var(--panel2);color:var(--ink);padding:12px 13px;margin-bottom:13px;font:inherit;font-size:12px}
.module-picker-menu .terminal-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.module-picker-menu .terminal-module-tile{min-height:46px;padding:10px}
.module-menu-footer{border-top:1px solid var(--border);padding-top:12px;margin-top:12px;font-size:10px;color:var(--muted);line-height:1.6}
#terminalview .chart-shell{scroll-margin-top:100px}
@media(max-width:760px){.module-picker{flex:1 1 100%}.module-picker-trigger{width:100%;justify-content:center}.module-picker-menu{width:100%;max-height:65vh}.module-picker-menu .terminal-module-grid{grid-template-columns:1fr}.module-picker-menu .terminal-module-tile{min-height:42px}#terminalview .chart-shell{scroll-margin-top:170px}}
/* Chart-first compact mobile view: modules are accessible from toolbar, so hide the redundant rails. */
@media(max-width:760px){
 body[data-layout=unified] .design-preview-bar{display:none}
 #terminalview .termleft{display:none}
 #terminalview .workspacehead{margin-bottom:12px;gap:7px}
 #terminalview .workspacehead h1{font-size:22px}
 #terminalview .workspacehead p{font-size:11px}
 #terminalview .workspacehead .button{font-size:10px;padding:7px}
 #terminalview .termcenter{padding-top:14px}
 #terminalview .toolstrip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px}
 #terminalview .toolstrip .module-picker{grid-column:1/-1;min-width:0}
 #terminalview .toolstrip select{width:100%;max-width:100%;padding:8px 9px;font-size:11px}
 #terminalview .toolstrip .toolgroup{grid-column:1/-1;justify-content:stretch}
 #terminalview .toolstrip .toolgroup button{flex:1}
 #terminalview .toolstrip .spacer,#terminalview .toolstrip #data-state{display:none}
 #terminalview .chart-shell{scroll-margin-top:115px}
}/* Verified-source chart styling. No placeholder curve or interpolated prices. */
.terminal-chart-tooltip{font-size:10px;color:var(--ink);position:absolute;left:20px;right:20px;bottom:0;pointer-events:none;min-height:18px;line-height:1.5;font-weight:600}
.chart-source-row{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:7px 18px;font-size:10px;line-height:1.45;color:var(--muted);margin:7px 4px 14px;padding:0 4px}
.chart-source-row span{max-width:100%;overflow-wrap:anywhere}
#terminalview .chart-body{padding-bottom:21px}
#terminalview .chartwarning[hidden]{display:none!important}
#terminalview .chartwarning{color:#f4b4a5;bottom:36px;max-width:90%;pointer-events:none}
#chart-export{padding:6px 9px;font-size:10px;margin-left:auto}
#chart-export[disabled]{opacity:.4;cursor:default}
#master-chart{touch-action:pan-y;cursor:crosshair}
@media(max-width:760px){.terminal-chart-tooltip{font-size:9px;left:8px;right:8px}.chart-source-row{padding:0 10px}.chart-body{padding-bottom:24px!important}}

/* Unified Terminal: each approved original analytical engine renders within the workspace. */
body[data-layout=unified] .termcenter[data-term-mode=module] .chart-shell,
body[data-layout=unified] .termcenter[data-term-mode=module] .termgrid,
body[data-layout=unified] .termcenter[data-term-mode=module] .bottom,
body[data-layout=unified] .termcenter[data-term-mode=module] .chart-source-row{display:none!important}
body[data-layout=unified] .termcenter[data-term-mode=module] .toolstrip > select,
body[data-layout=unified] .termcenter[data-term-mode=module] .toolstrip > .toolgroup,
body[data-layout=unified] .termcenter[data-term-mode=module] .toolstrip > .spacer,
body[data-layout=unified] .termcenter[data-term-mode=module] .toolstrip > .chip{display:none!important}
body[data-layout=unified] .termcenter[data-term-mode=module] .toolstrip{justify-content:space-between}
body[data-layout=unified]:has(.termcenter[data-term-mode=module]) .termright{display:none!important}
body[data-layout=unified]:has(.termcenter[data-term-mode=module]) .term-wrap{grid-template-columns:230px minmax(0,1fr)}
#terminalview .termcenter[data-term-mode=module] .embedded-module{margin-top:0;box-shadow:none}
#terminalview .termcenter[data-term-mode=module] #embedded-frame{display:block;width:100%;height:calc(100vh - 295px);min-height:590px;border:0;background:var(--panel2)}
#terminalview .termcenter[data-term-mode=module] #embedded-frame[hidden]{display:none!important}
#terminalview .termcenter[data-term-mode=module] #embedded-external{display:none!important}
#terminalview .termcenter[data-term-mode=module] .embedded-bar{background:var(--panel);padding:19px 23px;position:relative;z-index:3}
.module-embedded-status{padding:28px 26px;min-height:140px;background:var(--panel2);color:var(--ink)}
.module-embedded-status h3{font-size:17px;color:var(--cyan);margin-bottom:9px}
.module-embedded-status p{max-width:690px;font-size:13px;color:var(--muted);line-height:1.7}
.module-embedded-status[hidden]{display:none!important}
@media(max-width:1360px){body[data-layout=unified]:has(.termcenter[data-term-mode=module]) .term-wrap{grid-template-columns:192px minmax(0,1fr)}}
@media(max-width:760px){
 body[data-layout=unified]:has(.termcenter[data-term-mode=module]) .term-wrap{display:block}
 #terminalview .termcenter[data-term-mode=module] #embedded-frame{height:75vh;min-height:510px}
 #terminalview .termcenter[data-term-mode=module] .embedded-bar{display:flex;align-items:flex-start;flex-direction:column;gap:10px;padding:15px}
 .module-embedded-status{padding:18px}
}/* Sticky header navigation safety for embedded modules. Prevent close control landing behind top design switcher. */
#terminalview .embedded-module{scroll-margin-top:165px!important}
#terminalview .chart-shell{scroll-margin-top:165px!important}
@media(max-width:760px){#terminalview .embedded-module{scroll-margin-top:115px!important}#terminalview .chart-shell{scroll-margin-top:130px!important}}
/* Native in-Terminal authentication, using the original Skylark API and existing 2FA. */
.terminal-inline-signin{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px;max-width:800px}
.terminal-inline-signin input{flex:1 1 215px;min-width:170px;background:var(--panel);color:var(--ink);border:1px solid var(--border);border-radius:10px;padding:12px;font:inherit;font-size:13px}
.terminal-inline-signin .button{min-height:42px}
.terminal-signin-notice{flex:1 1 100%;font-size:12px;color:var(--muted);min-height:18px}
@media(max-width:760px){.terminal-inline-signin input,.terminal-inline-signin .button{width:100%;flex:1 1 100%}}
/* Sidebars, research rails, and lab buttons use in-Terminal navigation rather than old-page hrefs. */
#terminalview nav.nav button.terminal-native-nav{display:flex;align-items:center;gap:11px;width:100%;text-align:left;font-size:12px;font-weight:650;padding:12px 10px;border:0;border-radius:10px;color:var(--muted);background:transparent;margin:3px 0}
#terminalview nav.nav button.terminal-native-nav:hover,#terminalview nav.nav button.terminal-native-nav:focus-visible{color:var(--ink);background:var(--subtle)}
#terminalview nav.nav button.terminal-native-nav span:first-child{width:20px;text-align:center;color:var(--cyan);font-size:17px}
#terminalview button.researchlink.terminal-native-nav{display:flex;align-items:center;justify-content:space-between;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--border);width:100%;padding:12px 0;font-size:12px;color:var(--ink)}
#terminalview button.researchlink.terminal-native-nav:hover{color:var(--cyan)}
#terminalview button.button.terminal-native-nav{cursor:pointer}
@media(max-width:760px){#terminalview nav.nav button.terminal-native-nav{width:auto;white-space:nowrap;flex:0 0 auto}}
/* Nov 18: direct-to-research layout, no concept-switch strip or oversized intro */
body[data-layout=unified] #terminalview .termcenter{padding-top:8px!important}
body[data-layout=unified] #terminalview .termleft,
body[data-layout=unified] #terminalview .termright{padding-top:9px!important}
body[data-layout=unified] #terminalview .toolstrip{margin-top:0!important}
body[data-layout=unified] #terminalview .term-wrap{min-height:calc(100vh - 76px)}
@media(max-width:760px){
 body[data-layout=unified] #terminalview .termcenter{padding-top:7px!important}
 body[data-layout=unified] #terminalview .termleft,
 body[data-layout=unified] #terminalview .termright{padding-top:8px!important}
}


/* Grouped research-module navigation */
.module-picker-menu .terminal-module-grid{display:flex!important;flex-direction:column;gap:13px}
.module-picker-menu .module-category{min-width:0;width:100%;display:flex;flex-direction:column;gap:7px}
.module-picker-menu .module-category+.module-category{border-top:1px solid var(--border);padding-top:12px}
.module-picker-menu .module-category-heading{font-size:10px;font-weight:850;letter-spacing:.09em;color:var(--cyan);text-transform:uppercase;margin:0 0 1px 2px}
.module-picker-menu .module-category-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.module-picker-menu .module-category-tiles>.terminal-module-tile{min-width:0;width:100%;min-height:43px}
@media(max-width:580px){.module-picker-menu .module-category-tiles{grid-template-columns:1fr}}

/* V6 unified analytical toolbar: keep every variable (including recessions) in one row. */
body[data-layout=unified] #terminalview .toolstrip{
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 gap:7px!important;overflow-x:auto!important;overflow-y:visible!important;
 scrollbar-width:thin;overscroll-behavior-x:contain;min-width:0;
}
body[data-layout=unified] #terminalview .toolstrip > *{flex:0 0 auto!important;min-width:0}
body[data-layout=unified] #terminalview .toolstrip select{
 width:auto!important;max-width:none!important;padding:8px 9px!important;
}
body[data-layout=unified] #terminalview #model-selector{width:210px!important}
body[data-layout=unified] #terminalview #asset-selector{width:154px!important}
body[data-layout=unified] #terminalview #chart-range{width:99px!important}
body[data-layout=unified] #terminalview .toolstrip .module-picker{grid-column:auto!important;min-width:135px!important}
body[data-layout=unified] #terminalview .chart-custom-window{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
body[data-layout=unified] #terminalview .chart-custom-window[hidden]{display:none!important}
body[data-layout=unified] #terminalview .chart-custom-window label{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}
body[data-layout=unified] #terminalview .chart-custom-window input{width:121px;padding:7px 6px;border-radius:7px;background:var(--panel2);color:var(--ink);border:1px solid var(--border)}
body[data-layout=unified] #terminalview .toolstrip [data-recession-toggle]{flex-shrink:0!important;white-space:nowrap}
body[data-layout=unified] #terminalview .toolstrip #chart-zoom-reset{white-space:nowrap;padding:8px 9px}
body[data-layout=unified] #terminalview .toolstrip #data-state{display:none!important}
body[data-layout=unified] .termcenter[data-term-mode=module] .toolstrip > #chart-custom-window,
body[data-layout=unified] .termcenter[data-term-mode=module] .toolstrip > #chart-range,
body[data-layout=unified] .termcenter[data-term-mode=module] .toolstrip > #chart-zoom-reset,
body[data-layout=unified] .termcenter[data-term-mode=module] .toolstrip > [data-recession-toggle]{display:none!important}
body[data-layout=unified] #terminalview .native-matrix-omitted{background:transparent!important;border-color:transparent!important;pointer-events:none}
body[data-layout=unified] #terminalview #master-chart{touch-action:pan-y}

/* V6 streamlined navigator: model choices reside in Modules, not a second dropdown. */
#terminalview #model-selector[hidden]{display:none!important}
#terminalview #theme-btn{border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
#terminalview .termleft .terminal-sidebar-alert{display:flex!important;align-items:center;gap:10px;width:100%;height:auto;
 justify-content:flex-start;text-align:left;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:650;padding:12px 10px}
#terminalview .termleft .terminal-sidebar-alert:hover,#terminalview .termleft .terminal-sidebar-alert:focus-visible{
 color:var(--cyan);background:var(--subtle)}
#terminalview .termleft .terminal-sidebar-alert span:first-child{width:20px;text-align:center}
#terminalview .toolstrip .chart-scale-control{display:flex;gap:7px;align-items:center;white-space:nowrap;color:var(--muted);font-size:11px;font-weight:700}
#terminalview .toolstrip .chart-scale-control select{color:var(--ink);background:var(--panel2);border:1px solid var(--border);
 border-radius:9px;min-height:38px;max-width:140px;padding:8px 9px;font-size:11px}
#terminalview .toolstrip .chart-scale-control:has(select:focus-visible){color:var(--cyan)}
@media(max-width:760px){#terminalview .toolstrip .chart-scale-control{grid-column:auto;flex-wrap:wrap}
 #terminalview .toolstrip .chart-scale-control select{width:100%;max-width:100%}}

/* On narrow screens, make the sidebar Tools action accessible without restoring
   the full desktop navigation or moving Alerts back into the header. */
@media(max-width:760px){
 #terminalview .termleft{display:block!important;width:100%;padding:2px 12px 8px!important;border:0!important;background:transparent!important}
 #terminalview .termleft > .eyebrow,#terminalview .termleft > nav[aria-label],
 #terminalview .termleft > .divider,#terminalview .termleft > .navtitle{display:none!important}
 #terminalview .termleft > nav.nav:not([aria-label]){display:flex!important;flex-wrap:wrap;gap:8px;align-items:center}
 #terminalview .termleft > nav.nav:not([aria-label]) > *{flex:0 1 auto}
 #terminalview .termleft .terminal-sidebar-alert{width:auto!important;border:1px solid var(--border)!important;
  padding:9px 12px!important;border-radius:9px!important;background:var(--panel)!important}
}

/* Header is OUTSIDE #terminalview; remove persistent framing without
   suppressing keyboard-visible focus indication. */
body[data-terminal-standalone="true"] .top #theme-btn{
 border:0!important;background:transparent!important;box-shadow:none!important;
 border-radius:0!important;outline:0!important
}
body[data-terminal-standalone="true"] .top #theme-btn:focus-visible{
 outline:2px solid var(--cyan)!important;outline-offset:3px!important;border-radius:6px!important
}

/* Historical recession shading is a permanent chart feature, not a toolbar input. */
#terminalview [data-recession-toggle],body[data-layout=unified] #terminalview [data-recession-toggle]{display:none!important}
#terminalview .chart-nber-legend{display:inline-flex;align-items:center;gap:7px;white-space:normal}
#terminalview .chart-nber-swatch{background:rgba(146,168,196,.42);width:17px;height:10px;border:1px solid rgba(146,168,196,.75);border-radius:2px}
