/* Skylark Terminal 2026 — natively remade analytical module interface */
#terminal-native-body.terminal-native-body{min-height:450px;padding:21px 23px 30px;background:var(--panel2);color:var(--ink);display:flex;flex-direction:column;gap:16px}
#terminalview .termcenter[data-term-mode=module] #embedded-module{scroll-margin-top:160px}
#terminalview .termcenter[data-term-mode=module] #embedded-module .embedded-bar{background:var(--panel);padding:18px 23px}
.native-controls{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:end;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:13px 15px}
.native-input-label{font-size:11px;color:var(--muted);font-weight:650;display:flex;flex-direction:column;gap:6px;min-width:130px}
.native-select{background:var(--panel2);color:var(--ink);border:1px solid var(--border);border-radius:8px;padding:11px 12px;font:inherit;font-size:12px;min-width:120px;max-width:100%;height:42px}
.native-select:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.native-action{padding:10px 14px;min-height:41px;cursor:pointer;font-size:12px!important;font-weight:700}
.native-source-banner{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:.018em;overflow-wrap:anywhere;line-height:1.7;border-left:2px solid var(--cyan);padding:4px 10px}
.native-note{font-size:12px;line-height:1.72;color:var(--muted);margin:0;overflow-wrap:anywhere}
.native-error-title{font-size:16px;color:var(--ink);margin:15px 0 0;font-weight:800}
.native-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px}
.native-field{padding:15px;background:var(--panel);border:1px solid var(--border);border-radius:10px;min-width:0;display:flex;flex-direction:column;gap:8px}
.native-field-label{font-size:10px;letter-spacing:.055em;text-transform:uppercase;font-weight:800;color:var(--muted)}
.native-field-value{font-size:18px;line-height:1.2;font-weight:800;color:var(--ink);overflow-wrap:anywhere}
.native-chart-card{background:var(--panel);border:1px solid var(--border);padding:16px 16px 8px;border-radius:13px;overflow:hidden}
.native-chart-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.native-chart-head h3{font-size:15px;font-weight:800;color:var(--ink);margin:0}
.native-chip{font-size:10px;color:var(--cyan);border:1px solid var(--border);padding:5px 8px;background:var(--panel2);border-radius:8px;white-space:normal}
.native-chart-card>svg{width:100%;height:auto;display:block;min-height:210px;max-height:410px;cursor:crosshair}
.native-chart-card svg path{vector-effect:non-scaling-stroke}
.native-chart-hover{padding:9px 8px 5px;border-top:1px solid var(--border);font-size:11px;min-height:25px;color:var(--ink);font-weight:650}
.native-table-wrap{width:100%;max-height:470px;overflow:auto;border:1px solid var(--border);border-radius:11px;background:var(--panel)}
.native-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}
.native-table th{background:var(--panel2);color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.035em;position:sticky;top:0;z-index:1}
.native-table td,.native-table th{white-space:nowrap;text-align:left;border-bottom:1px solid var(--border);padding:11px 13px}
.native-table tbody tr:hover{background:var(--panel2)}
.native-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:12px}
.native-report-tile{padding:16px;background:var(--panel);border:1px solid var(--border);border-radius:12px;display:flex;flex-direction:column;gap:12px;justify-content:space-between;min-height:145px}
.native-report-tile h3{font-weight:800;font-size:14px;line-height:1.5;color:var(--ink);margin:0}
.native-report-tile button{align-self:flex-start}
.native-document-viewer{width:100%;height:74vh;min-height:550px;background:white;border:1px solid var(--border);border-radius:10px}
.native-article-view{padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--panel);line-height:1.7;white-space:pre-wrap}
.native-article-view h3{font-size:18px;margin:0 0 15px;color:var(--ink)}
.native-cpi-form{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--border);padding:17px;border-radius:12px}
.native-cpi-form .native-select{flex:1 1 150px}
.native-cpi-result{display:block;flex:1 1 100%;color:var(--cyan);font-size:21px;font-weight:800;line-height:1.35;margin-top:7px}
#terminal-native-body .terminal-inline-signin{max-width:100%}
@media(max-width:760px){
 #terminal-native-body.terminal-native-body{padding:14px 12px;gap:11px}
 .native-controls{padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .native-controls .native-input-label{min-width:0}
 .native-controls button{grid-column:1/-1}
 .native-select{width:100%;min-width:0}
 .native-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .native-field{padding:12px}
 .native-field-value{font-size:14px}
 .native-report-grid{grid-template-columns:1fr}
 .native-chart-card{padding:12px 8px 7px}
 .native-chart-card>svg{min-height:155px}
 .native-table td,.native-table th{padding:9px}
 .native-document-viewer{height:72vh;min-height:450px}
}

/* Canonical GMM source-backed pairwise R² heatmap. Never color unavailable values as valid. */
.native-matrix-wrap{overflow:auto;max-height:640px}
.native-matrix{font-variant-numeric:tabular-nums;white-space:nowrap;min-width:790px}
.native-matrix th,.native-matrix td{text-align:center!important;font-size:10px!important;padding:11px 8px!important}
.native-matrix td.native-matrix-cell{background:rgba(39,198,233,var(--matrix-strength,0));font-weight:750;min-width:54px}
.native-matrix td.native-matrix-missing{color:var(--muted);opacity:.5;background:transparent}
.native-matrix td.native-matrix-diagonal{background:var(--panel2);color:var(--muted)}

/* November 18 UX consolidation — one toolbar, no empty stacked rows */
#terminalview .termcenter[data-term-mode=module] .workspacehead,
#terminalview .termcenter[data-term-mode=module] > .toolstrip{
  display:none!important
}
#terminalview .termcenter[data-term-mode=module]{
  padding-top:8px!important
}
#terminalview .termcenter[data-term-mode=module] #embedded-module{
  margin:0!important;
  scroll-margin-top:82px!important;
  overflow:visible!important;
  min-height:0
}
#terminalview .termcenter[data-term-mode=module] #embedded-module .embedded-bar{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:wrap;gap:8px 12px;padding:9px 12px!important;
  position:relative;z-index:20;background:var(--panel)!important
}
#terminalview .embedded-bar .module-picker{flex:0 0 auto;z-index:50}
#terminalview .embedded-bar #embedded-title{
  white-space:nowrap;font-size:14px!important;font-weight:800!important;line-height:1.2;
  margin:0!important;max-width:270px;overflow:hidden;text-overflow:ellipsis
}
#terminalview .embedded-bar .native-inline-controls{
  display:flex!important;align-items:center;justify-content:flex-start;flex:0 1 auto;
  flex-wrap:nowrap;min-width:0;gap:7px!important;border:0!important;padding:0!important;
  margin:0!important;background:none!important;border-radius:0!important
}
#terminalview .embedded-bar .native-input-label{
  display:flex;flex-direction:row;align-items:center;gap:5px;
  min-width:0!important;font-size:10px;font-weight:650;white-space:nowrap
}
#terminalview .embedded-bar .native-select{
  min-width:80px;max-width:115px;height:34px;padding:6px 26px 6px 9px;
  border-radius:8px;font-size:11px
}
#terminalview .embedded-bar .native-action{
  min-height:34px;padding:6px 10px;font-size:11px!important;white-space:nowrap
}
#terminalview .embedded-bar .native-status-chip{
  margin-left:auto;font-weight:700;font-size:9px;
  overflow:hidden;text-overflow:ellipsis;max-width:230px;white-space:nowrap;
  padding:7px 9px;line-height:1.2
}
#terminalview .embedded-bar .native-status-chip[data-state=error]{color:#ffb2a6;border-color:#b66559}
#terminalview .embedded-bar .embedded-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
#terminalview .embedded-bar #close-embedded{padding:7px 11px;min-height:34px;font-size:11px!important;white-space:nowrap}
#terminalview #terminal-native-body.terminal-native-body{
  min-height:0!important;padding:10px 12px 16px!important;gap:9px!important
}
#terminal-native-body .native-source-banner{
  margin:0!important;padding:0 0 1px 2px!important;border-left:0!important;
  background:transparent!important;max-width:100%;font-size:10px;
  color:var(--muted);line-height:1.35
}
#terminal-native-body .native-note{font-size:11px;line-height:1.5}
#terminal-native-body .native-chart-card{padding:9px 12px 6px}
#terminal-native-body .native-chart-head{margin-bottom:4px!important}
#terminal-native-body .native-chart-head:has(> .native-chip:only-child){margin-bottom:0!important;min-height:0}
#terminal-native-body .native-chart-card>svg{max-height:380px;min-height:165px}
#terminal-native-body .native-chart-hover{padding:5px 4px;font-size:10px}
#terminal-native-body .native-inline-alert{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
  background:var(--panel);border:1px solid var(--border);border-left:3px solid #d89a68;
  border-radius:9px;padding:12px 14px;min-height:0
}
#terminal-native-body .native-inline-alert-copy{display:flex;flex-direction:column;gap:4px;max-width:760px}
#terminal-native-body .native-inline-alert-copy strong{font-size:12px;color:var(--ink)}
#terminal-native-body .native-inline-alert-copy span{font-size:11px;line-height:1.5;color:var(--muted)}
#terminal-native-body .native-inline-alert .button{min-height:33px;padding:6px 11px}
#terminalview .embedded-bar .module-picker-trigger{min-height:34px!important;padding:7px 11px!important}
#terminalview .termcenter[data-term-mode=module] .termright{display:none!important}
@media(max-width:1200px){
 #terminalview .embedded-bar .native-status-chip{order:8;margin-left:0}
 #terminalview .embedded-bar .embedded-actions{margin-left:auto}
 #terminalview .embedded-bar .native-inline-controls{flex-wrap:wrap}
}
@media(max-width:760px){
 #terminalview .termcenter[data-term-mode=module] #embedded-module .embedded-bar{gap:7px!important;padding:10px!important}
 #terminalview .embedded-bar .module-picker{flex:0 0 auto!important}
 #terminalview .embedded-bar .module-picker-trigger{width:auto!important;justify-content:flex-start!important}
 #terminalview .embedded-bar #embedded-title{flex:1;max-width:calc(100vw - 190px);white-space:normal;font-size:12px!important}
 #terminalview .embedded-bar .native-inline-controls{order:4;flex:1 1 100%;flex-wrap:wrap}
 #terminalview .embedded-bar .native-input-label{flex:0 1 auto}
 #terminalview .embedded-bar .native-status-chip{order:6;margin-right:auto}
 #terminalview .embedded-bar .embedded-actions{order:3}
 #terminalview #terminal-native-body.terminal-native-body{padding:8px 9px 12px!important}
}

/* Native signed spread columns and History disclosure */
body[data-theme=dark]{
 background:#040b19!important;
 --bg:#040b19;--panel:#09162b;--panel2:#0d1c35;--panel3:#152745;
 --ink:#e4edfd;--muted:#95abc9;--border:#253951;
 --shadow:0 12px 44px rgba(1,4,13,.38);--subtle:rgba(32,99,178,.16)
}
body[data-theme=dark] #terminalview .termcenter{background:var(--bg)}
#terminal-native-body .native-spread-column{shape-rendering:crispEdges;opacity:.96}
#terminal-native-body .native-spread-column:hover{opacity:1;filter:brightness(1.23)}
#terminal-native-body .native-history-disclosure{border:1px solid var(--border);border-radius:11px;background:var(--panel);overflow:hidden}
#terminal-native-body .native-history-summary{display:flex;align-items:center;gap:11px;list-style:none;cursor:pointer;padding:13px 16px;font-size:12px;font-weight:800;color:var(--ink);user-select:none}
#terminal-native-body .native-history-summary::-webkit-details-marker{display:none}
#terminal-native-body .native-history-summary:hover{background:var(--panel2)}
#terminal-native-body .native-history-summary:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}
#terminal-native-body .native-history-count{font-size:10px;color:var(--muted);font-weight:650}
#terminal-native-body .native-history-chevron{color:var(--cyan);margin-left:auto;display:inline-block;transition:transform .18s ease}
#terminal-native-body details[open]>.native-history-summary .native-history-chevron{transform:rotate(180deg)}
#terminal-native-body .native-history-content{padding:4px 12px 12px;display:flex;flex-direction:column;gap:9px;border-top:1px solid var(--border)}
#terminal-native-body .native-history-export{align-self:flex-end;min-height:32px!important;padding:6px 11px!important}
#terminal-native-body .native-history-content>.native-table-wrap{margin:0;max-height:360px}
@media(max-width:760px){#terminal-native-body .native-history-summary{padding:12px 13px}#terminal-native-body .native-history-content{padding:8px}}

/* Published report galleries and complete native article reader */
#terminal-native-body .native-weekly-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:13px}
#terminal-native-body .native-weekly-tile{overflow:hidden;gap:9px;min-height:0;padding:13px}
#terminal-native-body .native-weekly-card-image{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:var(--panel2);display:block}
#terminal-native-body .native-weekly-tile h3{font-size:14px;line-height:1.45}
#terminal-native-body .native-weekly-tile .native-note{font-size:11px;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}
#terminal-native-body .native-weekly-tile .native-chip{align-self:start}
#terminal-native-body .native-weekly-tile .native-action{align-self:start}
#terminal-native-body .native-weekly-article{background:var(--panel);border:1px solid var(--border);border-radius:13px;padding:clamp(17px,3.1vw,33px);max-width:100%;color:var(--ink)}
#terminal-native-body .native-weekly-article>button{margin-bottom:17px}
#terminal-native-body .native-weekly-article h2{font-size:clamp(24px,2.3vw,36px);font-weight:800;line-height:1.2;letter-spacing:-.035em;max-width:970px;margin:0 0 10px}
#terminal-native-body .native-weekly-date{font-size:11px;color:var(--cyan);font-weight:700;letter-spacing:.03em;margin-bottom:19px}
#terminal-native-body .native-weekly-hero{display:block;width:100%;height:auto;max-height:570px;aspect-ratio:16/9;object-fit:contain;background:var(--panel2);border-radius:10px;border:1px solid var(--border);margin:0 0 23px}
#terminal-native-body .native-weekly-deck{font-size:clamp(14px,1.25vw,17px);font-weight:650;color:var(--ink);line-height:1.7;max-width:970px;margin:0 0 25px}
#terminal-native-body .native-weekly-full-body{max-width:970px;display:flex;flex-direction:column;gap:17px}
#terminal-native-body .native-weekly-full-body p{font-size:14px;line-height:1.85;color:var(--ink);white-space:pre-wrap;margin:0}
#terminal-native-body .native-weekly-full-body h2{font-size:21px;margin:19px 0 1px;color:var(--ink);line-height:1.35}
#terminal-native-body .native-weekly-full-body h3{font-size:18px;margin:11px 0 1px;color:var(--ink);line-height:1.35}
#terminal-native-body .native-weekly-full-body h4{font-size:15px;margin:8px 0 1px;color:var(--ink)}
#terminal-native-body .native-weekly-full-body ul,
#terminal-native-body .native-weekly-full-body ol{font-size:14px;color:var(--ink);line-height:1.85;display:flex;flex-direction:column;gap:7px;padding-left:25px;margin:0}
#terminal-native-body .native-weekly-full-body strong{font-weight:800;color:var(--ink)}
#terminal-native-body .native-report-tile>p.native-note:not(:empty){display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
#terminal-native-body .native-report-tile .button{align-self:flex-start;min-height:34px}
@media(max-width:760px){
 #terminal-native-body .native-weekly-grid{grid-template-columns:1fr}
 #terminal-native-body .native-weekly-article{padding:16px 12px}
 #terminal-native-body .native-weekly-full-body p{font-size:13px;line-height:1.8}
 #terminal-native-body .native-weekly-full-body{gap:13px}
}

#terminal-native-body .native-weekly-article{scroll-margin-top:100px!important}


/* 2026-11-18: Advanced native research interactions */
#terminal-native-body .native-source-disclosure{background:var(--panel);border:1px solid var(--border);border-radius:9px;overflow:hidden}
#terminal-native-body .native-source-summary{display:flex;align-items:center;cursor:pointer;padding:7px 11px;font-size:10px;letter-spacing:.035em;font-weight:700;color:var(--muted);list-style:none}
#terminal-native-body .native-source-summary::-webkit-details-marker{display:none}
#terminal-native-body .native-source-summary:after{content:'▾';display:inline-block;margin-left:auto;color:var(--cyan);transition:transform .15s}
#terminal-native-body .native-source-disclosure[open]>.native-source-summary:after{transform:rotate(180deg)}
#terminal-native-body .native-source-disclosure[open]{padding-bottom:10px}
#terminal-native-body .native-source-disclosure>.native-source-banner,#terminal-native-body .native-source-disclosure>.native-note,#terminal-native-body .native-source-disclosure>.native-source-link{margin:5px 11px 0;display:block}
#terminal-native-body .native-source-disclosure>.native-source-link{font-size:10px;color:var(--cyan);text-decoration:underline}
#terminal-native-body .native-spread-legend{display:flex;flex-wrap:wrap;gap:15px;align-items:center;margin-bottom:2px;font-size:10px;font-weight:750}
#terminal-native-body .native-spread-key{color:#29c4e8}
#terminal-native-body .native-price-key{color:#f4bf69}
#terminal-native-body .native-spread-asset-line{filter:drop-shadow(0 0 2px rgba(244,191,105,.35));pointer-events:none}
#terminal-native-body .native-matrix-cell:not(.native-matrix-diagonal){cursor:help;transition:filter .14s,outline-color .14s}
#terminal-native-body .native-matrix-cell:hover,#terminal-native-body .native-matrix-cell:focus-visible{outline:2px solid #f4bf69;outline-offset:-3px;filter:brightness(1.25)}
.native-matrix-popover{position:fixed;z-index:99999;background:#111f36;color:#e4edfd;border:1px solid #57759a;border-radius:12px;box-shadow:0 18px 46px rgba(0,0,0,.55);width:300px;padding:15px;pointer-events:none;font-size:11px}
.native-matrix-popover[hidden]{display:none}
.native-popover-title{display:block;font-size:15px;line-height:1.35;margin-bottom:10px;font-weight:800;color:#f4bf69}
.native-popover-row{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px solid #293c53;padding:5px 0}
.native-popover-row span{color:#a6bad2}
.native-popover-row b{font-weight:800;text-align:right;color:#f4f7ff}
.native-popover-foot{margin:10px 0 0;color:#92aecd;font-size:10px;line-height:1.5}
#terminal-native-body .native-asset-pairs-dropdown>.native-table-wrap{margin:8px;max-width:calc(100% - 16px)}
#terminal-native-body .native-onchain-metrics{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
#terminal-native-body .native-onchain-network{display:flex;flex-direction:column;gap:10px}
#terminal-native-body .native-onchain-network h3{font-size:14px;font-weight:800;margin:0}
#terminal-native-body .native-onchain-network .native-field-value{font-size:17px}
#terminal-native-body .native-backtest-summary{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
#terminal-native-body .native-backtest-summary .native-field-value{font-size:15px}
#terminal-native-body .native-backtest-bars{background:var(--panel);border:1px solid var(--border);border-radius:11px;padding:13px 16px;display:flex;flex-direction:column;gap:7px}
#terminal-native-body .native-backtest-bars h3{font-size:14px;font-weight:800;margin:0 0 8px}
#terminal-native-body .native-backtest-bar-row{display:grid;grid-template-columns:65px 1fr 75px;gap:12px;align-items:center;min-height:22px}
#terminal-native-body .native-backtest-name{font-size:11px;font-weight:800;color:var(--muted)}
#terminal-native-body .native-backtest-track{height:12px;background:var(--panel2);border-radius:4px;overflow:hidden;border:1px solid var(--border)}
#terminal-native-body .native-backtest-bar{height:100%;background:linear-gradient(90deg,#177da1,#35c7e8);border-radius:2px}
#terminal-native-body .native-backtest-bar[data-direction=negative]{background:linear-gradient(90deg,#a15161,#e48b79)}
#terminal-native-body .native-backtest-result{text-align:right;font-size:11px;color:var(--ink)}
#terminalview .embedded-bar .native-inline-controls{flex-wrap:wrap!important}
#terminalview .embedded-bar .native-inline-controls .native-input-label{font-size:9px;gap:4px}
#terminalview .embedded-bar .native-inline-controls .native-select{min-width:77px;max-width:126px;font-size:10px;height:32px;padding:5px 17px 5px 6px}
@media(max-width:780px){#terminal-native-body .native-backtest-bar-row{grid-template-columns:46px 1fr 65px;gap:6px}#terminal-native-body .native-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.native-matrix-popover{max-width:calc(100vw - 18px)}}

/* V6: put the full FLI scatter visualization ahead of raw data and beside its statistics */
#terminal-native-body .native-scatter-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(215px,245px);gap:13px;align-items:start;min-width:0}
#terminal-native-body .native-scatter-layout>.native-chart-card{min-width:0}
#terminal-native-body .native-scatter-layout>.native-chart-card svg{min-height:310px;max-height:none}
#terminal-native-body .native-scatter-summary{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-self:start}
#terminal-native-body .native-scatter-summary .native-field{padding:10px 12px;gap:5px;min-height:57px}
#terminal-native-body .native-scatter-summary .native-field-label{font-size:9px}
#terminal-native-body .native-scatter-summary .native-field-value{font-size:15px;line-height:1.24}
#terminal-native-body .native-scatter-summary .native-field:last-child .native-field-value{font-size:10px;line-height:1.44;font-weight:650}
#terminal-native-body .native-scatter-data>.native-table-wrap{max-height:320px;margin-top:7px}
#terminal-native-body .native-scatter-data{border:1px solid var(--border);border-radius:10px;background:var(--panel);padding:10px 12px}
#terminal-native-body .native-scatter-data>summary{cursor:pointer;font-size:12px;font-weight:760;user-select:none}
#terminal-native-body .native-methodology-details{padding:11px 12px 5px;color:var(--ink);line-height:1.62}
#terminal-native-body .native-methodology-details h3{font-size:13px;margin:0 0 10px}
#terminal-native-body .native-methodology-details p{font-size:12px;color:var(--muted);margin:0 0 11px;line-height:1.75}
#terminal-native-body .native-methodology-provenance{display:grid;grid-template-columns:minmax(120px,185px) minmax(0,1fr);gap:6px 10px;margin-top:15px;padding-top:12px;border-top:1px solid var(--border);font-size:11px;overflow-wrap:anywhere}
#terminal-native-body .native-methodology-provenance dt{font-weight:800;color:var(--muted)}
#terminal-native-body .native-methodology-provenance dd{margin:0;color:var(--ink)}
/* Low-contrast cyan scrollbar on a subdued navy track, including data tables and module menu */
html,body,#terminalview,#terminal-native-body,#terminal-native-body *,
#module-picker-menu,#terminal-recent-list{scrollbar-color:#287996 #0a1930;scrollbar-width:thin}
#terminalview ::-webkit-scrollbar,#terminal-native-body ::-webkit-scrollbar{width:9px;height:9px}
#terminalview ::-webkit-scrollbar-track,#terminal-native-body ::-webkit-scrollbar-track{background:#0a1930;border-radius:9px}
#terminalview ::-webkit-scrollbar-thumb,#terminal-native-body ::-webkit-scrollbar-thumb{background:#287996;border:2px solid #0a1930;border-radius:9px}
#terminalview ::-webkit-scrollbar-thumb:hover,#terminal-native-body ::-webkit-scrollbar-thumb:hover{background:#36afd3}
/* Network Regime original scores, history, stress flags and expanded metric list. */
#terminal-native-body .native-bnr{display:grid;gap:13px}
#terminal-native-body .native-bnr-top{padding:16px;border:1px solid var(--border);background:var(--panel);border-radius:12px;display:flex;align-items:center;gap:15px;flex-wrap:wrap}
#terminal-native-body .native-bnr-score{min-width:84px;min-height:84px;border:3px solid var(--cyan);border-radius:100%;display:grid;place-items:center;font-size:26px;font-weight:800;color:var(--cyan)}
#terminal-native-body .native-bnr-title{font-weight:800;font-size:17px}
#terminal-native-body .native-bnr-sub{font-size:11px;color:var(--muted);margin:5px 0}
#terminal-native-body .native-bnr-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
#terminal-native-body .native-bnr-flag{padding:10px 13px;background:rgba(239,178,84,.08);border:1px solid rgba(239,178,84,.3);border-radius:9px;color:var(--ink);font-size:12px}
#terminal-native-body .native-bnr-flag strong{display:block;margin-bottom:4px}
#terminal-native-body .native-bnr-chart-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
#terminal-native-body .native-bnr-table{max-height:540px}
#terminal-native-body .native-bnr-table td:first-child{white-space:normal;min-width:150px}
#terminal-native-body .native-bnr-table td:last-child{white-space:normal;min-width:120px}
#terminal-native-body .native-bnr-cards .native-field{padding:12px;gap:5px}
#terminal-native-body .native-bnr-cards .native-field-value{font-size:14px}
#terminal-native-body .native-bnr .native-history-disclosure{margin-bottom:8px}
@media(max-width:1150px){
 #terminal-native-body .native-scatter-layout{grid-template-columns:minmax(0,1fr) 200px}
 #terminal-native-body .native-bnr-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:770px){
 #terminal-native-body .native-scatter-layout{grid-template-columns:minmax(0,1fr)}
 #terminal-native-body .native-scatter-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #terminal-native-body .native-scatter-layout>.native-chart-card svg{min-height:220px}
 #terminal-native-body .native-bnr-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 #terminal-native-body .native-methodology-provenance{grid-template-columns:minmax(0,1fr)}
}

/* Account-bound research alerts; no additional library or paid notification service */
.terminal-alert-button{white-space:nowrap;min-height:38px;display:inline-flex;align-items:center;gap:7px;font-weight:800}
#terminal-alert-unread{font-size:10px;font-weight:800;border-radius:15px;min-width:17px;padding:2px 5px;background:#2fc8e8;color:#041023;text-align:center}
.terminal-alert-panel{position:fixed;top:78px;right:18px;width:min(500px,calc(100vw - 24px));max-height:calc(100vh - 96px);overflow-y:auto;z-index:10000;padding:21px 22px;border:1px solid var(--border);border-radius:15px;background:var(--panel,#081b31);box-shadow:0 24px 60px rgba(0,0,0,.45);color:var(--ink)}
.terminal-alert-panel[hidden]{display:none!important}
.terminal-alert-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.terminal-alert-heading h2{font-size:17px;font-weight:850;margin:0}
.terminal-alert-dismiss{cursor:pointer;min-height:30px;min-width:30px;background:var(--panel2);border:1px solid var(--border);color:var(--ink);border-radius:8px;font-size:19px}
.terminal-alert-help{font-size:11px;line-height:1.65;color:var(--muted);margin:7px 0 14px}
.terminal-alert-status{font-size:12px;font-weight:700;color:var(--cyan);line-height:1.6;padding:7px 9px;border-left:2px solid var(--cyan);margin:10px 0;background:var(--panel2)}
.terminal-alert-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:var(--panel2);padding:13px;border:1px solid var(--border);border-radius:10px}
.terminal-alert-field{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:11px;font-weight:700}
.terminal-alert-select{background:var(--panel);color:var(--ink);border:1px solid var(--border);border-radius:7px;font:inherit;font-size:12px;min-height:38px;max-width:100%;width:100%;padding:7px 8px}
.terminal-alert-checkbox{display:flex;gap:8px;align-items:flex-start;font-size:11px;line-height:1.4;font-weight:650;color:var(--ink)}
.terminal-alert-checkbox input{accent-color:#30b8da;margin-top:2px}
#terminal-alert-email-help{grid-column:1/-1;margin:0}
.terminal-alert-submit{grid-column:1/-1}
.terminal-alert-section-title{font-size:13px;margin:15px 0 7px;font-weight:850}
.terminal-alert-row,.terminal-alert-event{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:10px 0;font-size:11px;line-height:1.6}
.terminal-alert-row span,.terminal-alert-event span{min-width:0;overflow-wrap:anywhere}
.terminal-alert-event.unread{border-left:2px solid var(--cyan);padding-left:8px}
.terminal-alert-delete{cursor:pointer;color:var(--cyan);background:var(--panel2);border:1px solid var(--border);border-radius:7px;padding:6px 8px;font-size:10px;flex:0 0 auto}
.terminal-alert-refresh{width:100%;margin-top:10px}
.terminal-alert-toast{position:fixed;bottom:20px;right:16px;max-width:min(430px,calc(100vw - 32px));z-index:10001;padding:16px 19px;background:var(--panel);color:var(--ink);border:1px solid var(--cyan);box-shadow:0 10px 30px #0008;border-radius:12px;font-size:12px;line-height:1.55}
.terminal-alert-toast p{font-size:11px;line-height:1.65;margin:8px 0}
.terminal-alert-toast-close{background:transparent;color:var(--cyan);border:0;cursor:pointer;font-size:12px}
#terminal-recent-list .terminal-recent-link{width:100%;display:flex;align-items:center;justify-content:space-between;gap:9px;color:inherit;background:transparent;border:0;border-bottom:1px solid var(--border);padding:11px 2px;cursor:pointer;font:inherit;text-align:left}
#terminal-recent-list .terminal-recent-link:hover{color:var(--cyan)}
#terminal-recent-list .terminal-recent-clear{font-size:10px;color:var(--muted);border:0;background:transparent;text-decoration:underline;cursor:pointer;padding:10px 0}
@media(max-width:680px){.terminal-alert-panel{top:65px;right:8px;padding:14px 13px}.terminal-alert-button{font-size:11px!important;padding:8px 10px!important}}
@media(max-width:350px){.terminal-alert-form{grid-template-columns:1fr}.terminal-alert-checkbox,#terminal-alert-email-help,.terminal-alert-submit{grid-column:auto}}

.terminal-alert-email-verify{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--panel)}
.terminal-alert-email-verify[hidden]{display:none!important}
.terminal-alert-email-verify .terminal-alert-help{grid-column:1/-1}
.terminal-alert-email-verify button{font-size:11px;min-height:35px}
@media(max-width:480px){.terminal-alert-email-verify{grid-template-columns:1fr}}

.terminal-recent-menu-group{padding:7px 9px;margin:8px 0 12px;border:1px solid var(--border);border-radius:9px;background:var(--panel2)}
.terminal-recent-menu-group .eyebrow{font-size:10px;margin:2px 0 5px;color:var(--cyan)}
#terminal-recent-menu .terminal-recent-link{font-size:11px;padding:6px 2px;min-height:30px}
#terminal-recent-menu .terminal-recent-clear{display:none}

body[data-theme=light] #terminalview,body[data-theme=light] #terminal-native-body,
body[data-theme=light] #terminal-native-body *,body[data-theme=light] #module-picker-menu{scrollbar-color:#6aafc8 #dfedf3}
body[data-theme=light] #terminalview ::-webkit-scrollbar-track,body[data-theme=light] #terminal-native-body ::-webkit-scrollbar-track{background:#dfedf3}
body[data-theme=light] #terminalview ::-webkit-scrollbar-thumb,body[data-theme=light] #terminal-native-body ::-webkit-scrollbar-thumb{background:#6aafc8;border-color:#dfedf3}

/* V6 account hamburger and compact single-row research variables. */
body[data-terminal-standalone=true] .terminal-account-hamburger{min-width:42px;max-width:42px;min-height:40px;padding:8px;display:inline-grid;place-items:center}
body[data-terminal-standalone=true] .terminal-hamburger-lines{display:flex;flex-direction:column;justify-content:center;gap:5px;width:20px}
body[data-terminal-standalone=true] .terminal-hamburger-lines i{height:2px;width:100%;border-radius:4px;background:currentColor;display:block}
body[data-terminal-standalone=true] .terminal-account-panel{max-height:min(81vh,700px);overflow-y:auto}
body[data-terminal-standalone=true] .terminal-account-link{display:block;width:100%;min-height:42px;padding:11px 13px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:700 12px/1.5 inherit;text-align:left;text-decoration:none;cursor:pointer}
body[data-terminal-standalone=true] .terminal-account-link:hover{background:var(--panel2);color:var(--cyan)}
body[data-terminal-standalone=true] .terminal-account-inline-login{margin:10px 0 14px}
body[data-layout=unified] #terminalview .toolstrip{height:auto;max-width:100%;display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;gap:7px;padding:10px 12px}
body[data-layout=unified] #terminalview .toolstrip [data-recession-toggle]{display:inline-flex;white-space:nowrap;order:5}
body[data-layout=unified] #terminalview .toolstrip #chart-zoom-reset{order:6}
body[data-layout=unified] #terminalview .chart-head #chart-data-pill{display:none!important}
body[data-layout=unified] #terminalview .native-status-chip{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
body[data-layout=unified] #terminalview .toolstrip #data-state{display:none!important}

/* 2026-11-19: recently viewed only in the right research sidebar. */
#terminal-recent-list{display:flex;flex-direction:column;gap:0;max-width:100%;overflow:hidden}
#terminal-recent-list .terminal-recent-link{
 -webkit-appearance:none;appearance:none;display:flex!important;align-items:center;justify-content:space-between;
 gap:9px;width:100%;min-width:0;padding:10px 2px!important;
 border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;color:var(--ink)!important;
 font:650 11px/1.5 "Inter",Arial,sans-serif!important;white-space:normal!important;
 text-align:left;cursor:pointer;transition:color .16s,background .16s
}
#terminal-recent-list .terminal-recent-link span:first-child{min-width:0;overflow-wrap:anywhere}
#terminal-recent-list .terminal-recent-link span:last-child{flex-shrink:0;color:var(--cyan)}
#terminal-recent-list .terminal-recent-link:hover,#terminal-recent-list .terminal-recent-link:focus-visible{
 background:var(--panel2)!important;color:var(--cyan)!important
}
#terminal-recent-list .terminal-recent-clear{
 background:transparent;color:var(--muted);border:0;font-size:10px;cursor:pointer;
 text-decoration:underline;padding:9px 0;text-align:left
}
.terminal-recent-menu-group{display:none!important}

/* Non-modal on-chart inspection card: transparent enough to preserve the plotted data. */
.skylark-inspection-host{position:relative!important}
.skylark-chart-mini-card{
 position:absolute!important;z-index:25;pointer-events:none;
 width:max-content;max-width:248px;min-width:160px;
 background:rgba(13,29,49,.87);color:#eef8ff;
 border:1px solid rgba(52,190,228,.60);border-radius:11px;
 box-shadow:0 9px 26px rgba(1,10,26,.28);
 padding:11px 12px;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
 font:500 10px/1.55 "Inter",Arial,sans-serif!important;
 font-variant-numeric:tabular-nums;text-align:left
}
.skylark-chart-mini-card[hidden]{display:none!important}
.skylark-chart-mini-card>strong{display:block;margin-bottom:6px;font-size:12px;letter-spacing:.02em;color:#7edcf4;font-weight:800}
.skylark-mini-detail{display:flex;align-items:flex-start;justify-content:space-between;gap:13px;padding:3px 0;border-top:1px solid rgba(160,202,224,.15)}
.skylark-mini-detail>span{color:#c2d6e6;font-size:10px}
.skylark-mini-detail>b{color:white;max-width:150px;text-align:right;overflow-wrap:anywhere;font-size:10px}
body[data-theme="light"] .skylark-chart-mini-card{background:rgba(245,252,255,.91);color:#10283c;border-color:rgba(38,153,189,.55);box-shadow:0 7px 23px rgba(21,65,89,.16)}
body[data-theme="light"] .skylark-chart-mini-card>strong{color:#007b9d}
body[data-theme="light"] .skylark-mini-detail>span{color:#416678}
body[data-theme="light"] .skylark-mini-detail>b{color:#113349}
#terminalview .native-bnr-chart-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
#terminalview .native-bnr-custom-window{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#terminalview .native-bnr-custom-window[hidden]{display:none!important}
#terminalview .native-bnr-custom-window .native-input-label{min-width:130px}
#terminalview .native-bnr-chart{position:relative}
#terminalview .native-bnr-chart>svg{width:100%;display:block;touch-action:pan-y;cursor:crosshair}
#terminalview .native-chart-card>svg,#terminalview .native-scatter-layout svg{touch-action:pan-y;cursor:crosshair}
#terminalview .native-gbc-summary{padding:12px 14px 8px}
#terminalview .native-gbc-summary h3{font-size:14px;font-weight:800;color:var(--ink);margin:0 0 10px}
#terminalview .native-gbc-summary p{font-size:12px;line-height:1.75;color:var(--ink);margin:0}

/* Gesture-enabled charts: the host owns pinch and drag, not the page zoom. */
#master-chart,#terminalview .native-bnr-chart>svg,#terminalview .native-chart-card>svg,#terminalview .native-scatter-layout svg{touch-action:none!important;cursor:grab}
#master-chart:active,#terminalview .native-bnr-chart>svg:active,#terminalview .native-chart-card>svg:active{cursor:grabbing}
