/* Shared frame and assistant. Market and position charts retain their own configurable tokens. */
body.terminal-theme{--ink:#dce5ef;--muted:#91a1b3;--line:#293747;--bg:#0c131c;font-size:13px;line-height:1.65}
.terminal-theme .sidebar{width:176px;padding:22px 12px;background:#0d1621}
.terminal-theme .workspace{margin-left:176px}
.terminal-theme main{max-width:1700px;padding:18px 24px 40px}
.terminal-theme header{height:48px;background:#101a26}
.terminal-theme .page-heading h1{font-size:22px;font-weight:600;letter-spacing:.04em}
.terminal-theme .page-heading p{display:block;font-size:12px}
.terminal-theme .eyebrow{font-size:10px;letter-spacing:.8px}
.terminal-theme .notice{font-size:11px;line-height:1.6;padding:7px 12px;margin-bottom:13px}
.terminal-theme .card{background:#121e2b;border-color:var(--line);border-radius:6px}
.terminal-theme .workbench-tabs{gap:8px;margin-bottom:14px}
.terminal-theme .workbench-tabs button{padding:11px 13px;background:#111d2a;border:1px solid #29394c;border-radius:5px}
.terminal-theme .workbench-tabs button.active{background:#1b2e43;border-color:#6788ad;box-shadow:inset 0 2px #9fc5f0}
.terminal-theme .workbench-tabs strong{font-size:14px;font-weight:550;letter-spacing:.03em}
.terminal-theme .workbench-tabs small{font-size:11px;color:#95a8bd}
.terminal-theme .workbench-tabs button span{color:#82a4c9}
.terminal-theme .brand small{font-size:10px;line-height:1.6}
.terminal-theme .section-title{font-size:14px;margin-bottom:15px}
.terminal-theme .muted{font-size:11px;line-height:1.75}
.terminal-theme .empty{font-size:12px;line-height:1.8}
.terminal-theme .technical-nav>summary{font-size:11px}
.terminal-theme th{font-size:11px}
.terminal-theme .date-field label{font-size:11px}
.terminal-theme .date-field select{min-width:150px;font:12px Consolas,monospace;padding:7px 10px}
.model-header{display:flex;align-items:center;gap:8px;font-size:11px;padding:5px 9px!important;white-space:nowrap}
.model-header i{width:6px;height:6px;background:#c3a26c;border-radius:50%}
.model-header[data-state=SUCCESS] i{background:#71bba5}
.model-header b{font-weight:500;color:#b0cced}
.model-console .section-title h2{font-size:20px;margin:2px 0;letter-spacing:.04em}
.model-eyebrow{font-size:10px;color:#8eabc9;letter-spacing:.08em}
.model-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.model-status-grid>div{padding:12px 14px;background:#0e1823;border:1px solid #29384a;border-radius:4px;min-width:0}
.model-status-grid span{display:block;font-size:10px;color:#91a5bc}
.model-status-grid strong{display:block;font-size:13px;margin:4px 0;color:#d2e0f1;overflow-wrap:anywhere}
.model-status-grid small{display:block;color:#8196af;font-size:10px}
.model-choice{display:grid;grid-template-columns:1fr 1fr;max-width:680px;gap:10px}
.model-choice button{text-align:left;padding:11px 15px}
.model-choice button.active{background:#1e344d;border-color:#88a8cf}
.model-choice strong{display:block;font-size:13px;font-weight:550}
.model-choice small{display:block;color:#94aac2;font-size:11px;margin-top:3px}
.model-configuration{font-size:12px;color:#a1b3c9;max-width:1000px}
.model-configuration pre{max-width:620px;font-size:11px}
.assistant-grid{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.3fr);gap:18px}
.assistant-grid textarea{min-height:118px;font-size:13px;line-height:1.8}
.assistant-grid label{font-size:12px}
.assistant-grid .boundary-note{margin:0 0 16px;font-size:11px}
.assistant-grid>.card{min-width:0}
.assistant-output #monitor-answer{font-size:13px;line-height:1.95;white-space:pre-line;color:#c0d0e4;text-align:left;padding:0;min-height:145px}
.assistant-output #monitor-answer.empty{padding:26px 0;color:#8a9fb8}
.assistant-output .monitor-citation{padding:10px 12px;margin:7px 0}
.assistant-output h3{font-size:12px;margin-top:20px}
.model-answer-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;font-size:10px;color:#9eb2c9}
.model-answer-meta span{padding:4px 8px;border:1px solid #2c4055;border-radius:3px;background:#152639}
.model-report-tools{margin:24px 0 16px;padding-top:18px;border-top:1px solid #293b50}
.model-report-tools h3{font-size:13px;margin:0 0 7px}
.model-event-link{font-size:11px;background:transparent!important;border:0!important;padding:4px 0!important;color:#9cbbdf!important}
.model-report-preview{display:block;width:100%;height:78vh;min-height:620px;border:1px solid #ccd8df;background:white;border-radius:8px;margin-top:20px;box-shadow:0 4px 18px #142b3d12}
@media(max-width:640px){.model-report-preview{height:75vh;min-height:480px}}
.model-call-notice{padding:9px 11px;margin:8px 0;border-left:2px solid #d0a767;background:#24271e;color:#c6b687;font-size:11px;line-height:1.8}
.model-inline-choice{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}
.model-inline-choice button{font-size:10px!important;padding:4px 7px!important}
.model-inline-choice button.active{border-color:#8fb0d9!important;background:#233b55!important}
[data-model-status]{font-size:10px!important;line-height:1.75;color:#97abc4;overflow-wrap:anywhere}
.model-result-status{padding:8px 10px;border:1px solid #34506b;border-radius:4px;color:#adc7e5;font-size:10px;margin:7px 0;line-height:1.8}
.data-build .db-hero{background:#152438;border-color:#32445a;border-radius:6px;padding:21px 24px}
.data-build .db-hero h2{font-size:22px;font-weight:550;letter-spacing:.03em}
.data-build .db-hero p{font-size:12px;line-height:1.9;max-width:970px}
.data-build .db-section-heading h2{font-size:16px;font-weight:550}
.data-build .db-section-heading p{font-size:11px;line-height:1.8}
.data-build .db-section{background:#121e2b;padding:20px}
.data-build .db-stage{background:#101b29;border-top:2px solid #567897}
.data-build .db-stage strong{font-size:12px}
.data-build .db-stage p{font-size:11px;line-height:1.75}
.data-build .db-stage small{font-size:10px}
.data-build .db-chart-card{background:#101b28;padding:17px}
.data-build .db-chart-head h3{font-size:13px}
.data-build .db-chart .db-axis{fill:#a7bbd3;font-size:11px}
.data-build .db-chart-caption{font-size:11px;line-height:1.8}
.data-build .db-notice{font-size:11px;line-height:1.85}
.data-build .db-kpi>span{font-size:11px}
.data-build .db-kpi strong{font-weight:500}
.data-build .db-stages{position:relative}
.data-build .db-stages .db-stage b{color:#83a7cf}
@media(max-width:1100px){.model-header #model-header-status{display:none}.assistant-grid{grid-template-columns:1fr}.model-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.terminal-theme .sidebar{position:relative;width:100%;inset:auto;padding:12px}.terminal-theme .workspace{margin-left:0}.terminal-theme .sidebar .brand{display:none}.terminal-theme .nav-label,.terminal-theme .sidebar-bottom,.terminal-theme .technical-nav{display:none}.terminal-theme .sidebar nav{display:flex;gap:4px;flex-wrap:wrap}.terminal-theme .sidebar nav button{padding:7px 9px;font-size:12px;flex:1;white-space:nowrap;justify-content:center}.terminal-theme .sidebar nav button span{display:none}.terminal-theme header{padding:0 14px}.terminal-theme main{padding:14px 12px 30px}.terminal-theme .breadcrumb{display:none}.terminal-theme .header-right{width:100%;justify-content:space-between;gap:8px}.terminal-theme .page-heading{align-items:flex-start;gap:10px}.terminal-theme .page-heading h1{font-size:20px}.terminal-theme .page-heading p{font-size:11px;max-width:210px}.terminal-theme .eyebrow{letter-spacing:0;font-size:9px}.terminal-theme .date-field select{min-width:122px;width:122px;font-size:11px}.terminal-theme .date-field label{font-size:10px}.terminal-theme .workbench-tabs{gap:6px;grid-template-columns:repeat(2,minmax(0,1fr))}.terminal-theme .workbench-tabs button{padding:9px 11px}.terminal-theme .workbench-tabs strong{font-size:13px}.model-choice{grid-template-columns:1fr 1fr}.model-choice button{padding:10px}.model-choice small{font-size:10px}.assistant-grid{gap:12px}.assistant-grid>.card{padding:16px}.model-status-grid>div{padding:9px}.data-build .db-hero{padding:18px}.data-build .db-hero h2{font-size:20px}.data-build .db-section{padding:16px}}
@media(prefers-reduced-motion:reduce){.model-choice button,.model-header{transition:none!important}}

.terminal-theme nav button{background:transparent;border-color:transparent}.terminal-theme nav button.active{background:#1c2d40;color:#dfedfc}.terminal-theme nav button:hover{background:#182838}
