/* v0.3: shared workspace, progressive disclosure, consistent rhythm. */
:root{--qd-sidebar-width:212px;--qd-header-height:64px;--qd-bg:#f4f6f9;--qd-surface:#fff;--qd-text:#182333;--qd-muted:#68778c;--qd-border:#e3e8ef;--qd-accent:#276be6;--qd-soft:#edf3ff;--qd-raised:#f8fafd;--qd-radius:14px;--max-width:1440px;--quant-shared-nav-height:100px}
html[data-theme=dark]{--qd-bg:#10151e;--qd-surface:#19212e;--qd-text:#e9eef7;--qd-muted:#9baac0;--qd-border:#2c384a;--qd-accent:#82b2ff;--qd-soft:#243650;--qd-raised:#1e2837}
html{scroll-padding-top:120px}body.qd-v03{margin:0;padding-top:100px!important;letter-spacing:-.015em}.qd-v03 h1,.qd-v03 h2,.qd-v03 h3{text-wrap:balance}.qd-v03 p{word-break:keep-all;overflow-wrap:anywhere}.qd-v03 svg text{letter-spacing:0}.qd-v03 button,.qd-v03 a{ -webkit-tap-highlight-color:transparent}.qd-v03 .qd-shell{height:64px;border-bottom:1px solid var(--qd-border)}.qd-v03 .qd-shell-inner{max-width:none;padding:0 28px;gap:16px}.qd-v03 .qd-shell .qd-brand{display:none}.qd-v03 .qd-shell .qd-links{display:none!important}.qd-breadcrumb{display:flex;align-items:center;gap:15px;font-size:12px;color:var(--qd-muted);flex:1}.qd-breadcrumb strong{font-weight:650;color:var(--qd-text)}.qd-v03 #qd-theme{min-width:40px;width:40px;height:36px;padding:0;justify-content:center;background:transparent;border-color:transparent}.qd-v03 #qd-theme:hover{background:var(--qd-raised)}.qd-v03 #qd-theme .qd-theme-label{display:none}#qd-search{display:flex;align-items:center;gap:10px;min-height:36px;width:270px;padding:0 10px;border-radius:7px;border:1px solid var(--qd-border);background:var(--qd-raised);color:var(--qd-muted);font-size:12px;cursor:pointer}#qd-search:hover{border-color:var(--qd-accent)}#qd-search kbd{margin-left:auto;border:1px solid var(--qd-border);background:var(--qd-surface);border-radius:4px;font:10px var(--qd-font);padding:0 5px;line-height:20px;color:var(--qd-muted)}.qd-v03 #qd-preview{height:36px;top:64px;background:var(--qd-bg)}.qd-v03 .qd-preview-inner{height:36px;padding:0 28px;max-width:none;font-size:11px;gap:18px}.qd-preview-gallery{font-size:11px}.qd-preview-note{font-size:11px}
.qd-sidebar{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:var(--qd-sidebar-width);background:var(--qd-surface);border-right:1px solid var(--qd-border);z-index:600;padding:0 14px;overflow:auto}.qd-sidebar>.qd-brand{height:88px;min-height:88px;padding:0 12px;text-decoration:none;gap:11px}.qd-sidebar .qd-brand .qd-logo{height:30px;width:30px;border-radius:10px}.qd-sidebar .qd-brand>span:last-child{font-size:19px;font-weight:750}.qd-sidebar .qd-brand small{font-size:8px;letter-spacing:1.1px;font-weight:550;display:block;color:var(--qd-muted);margin-top:1px}.qd-nav-group{padding-bottom:18px}.qd-nav-group>p{font-size:10px;font-weight:600;color:var(--qd-muted);padding:0 12px;margin:4px 0 8px}.qd-nav-group>a{display:flex;align-items:center;gap:11px;height:42px;padding:0 12px;border-radius:8px;font-size:13px;font-weight:550;color:var(--qd-muted);text-decoration:none;transition:background .15s,color .15s}.qd-nav-group>a:hover{background:var(--qd-raised);color:var(--qd-text)}.qd-nav-group>a[aria-current=page]{background:var(--qd-soft);color:var(--qd-accent);font-weight:650}.qd-nav-group i{height:5px;width:5px;border-radius:50%;background:currentColor;margin-left:auto}.qd-side-footer{margin-top:auto;padding:18px 10px;border-top:1px solid var(--qd-border);display:grid;gap:12px}.qd-side-footer a{display:flex;justify-content:space-between;color:var(--qd-muted);font-size:11px;text-decoration:none}.qd-side-footer a:hover{color:var(--qd-accent)}.qd-side-footer small{font-size:10px;color:var(--qd-muted);margin-top:8px}.qd-side-footer i{display:inline-block;background:#30947d;width:5px;height:5px;border-radius:50%;margin-right:5px}
.qd-v03 :is(.panel,.lab-panel,.card,.chart-panel,.primary-chart-panel){box-shadow:0 2px 4px #142f5102;border-radius:12px}.qd-v03 :is(.panel-header,.card-header,.lab-panel-heading){gap:12px}.qd-v03 :is(.panel,.card,.lab-panel)>:is(h2,h3){line-height:1.4}.qd-v03 td,.qd-v03 th{font-variant-numeric:tabular-nums;letter-spacing:-.01em}.qd-v03 thead th{background:var(--qd-raised);color:var(--qd-muted);font-size:11px!important;font-weight:600;white-space:nowrap}.qd-v03 tbody tr{transition:background .12s}.qd-v03 tbody tr:nth-child(even){background:color-mix(in srgb,var(--qd-raised) 55%,transparent)}.qd-v03 tbody tr:hover{background:var(--qd-soft)}.qd-v03 :is(.table-wrap,.table-scroll){border-radius:8px;scrollbar-width:thin;scrollbar-color:var(--qd-border) transparent}.qd-v03 :is(.table-wrap,.table-scroll) thead th{position:sticky;top:0;z-index:1}.qd-v03 :is(input[type=search],select){min-height:38px;border-radius:7px}.qd-v03 :is(.section-index,.section-nav,.lab-tabs){scrollbar-width:none}
body.qd-v03.qd-hub .page-header{padding-top:26px;padding-bottom:24px;width:calc(100% - 56px)}body.qd-v03.qd-hub .section{width:calc(100% - 56px);max-width:1384px}body.qd-v03.qd-hub .page-header h1{font-size:29px}body.qd-v03.qd-hub .hub-status-strip strong{font-size:12px}body.qd-v03.qd-hub .section-index{border-bottom:1px solid var(--qd-border);gap:28px;padding-bottom:0;margin-bottom:20px}body.qd-v03.qd-hub .section-index a{padding-bottom:12px}body.qd-v03.qd-hub .news-headlines a{font-size:14px;font-weight:650;-webkit-line-clamp:2;white-space:normal}body.qd-v03.qd-hub .news-headlines li{padding-top:14px;padding-bottom:14px}body.qd-v03.qd-hub .panel{padding:22px}body.qd-v03.qd-hub .panel--news::before{display:none}body.qd-v03.qd-hub .panel-header h4{font-size:18px}body.qd-v03.qd-hub .summary-grid{gap:18px}body.qd-v03.qd-hub .section-heading h2{font-size:21px}body.qd-v03.qd-hub .summary-group-heading h3{font-size:12px}.qd-v03 :is(.panel,.lab-panel,.chart-card)::before{height:2px!important;width:36px!important}
.qd-command{position:fixed;inset:12vh 0 auto;margin:0 auto;padding:0;width:620px;max-width:calc(100vw - 32px);max-height:75vh;background:var(--qd-surface);color:var(--qd-text);border:1px solid var(--qd-border);border-radius:15px;box-shadow:0 24px 90px #07142e33;overflow:hidden;z-index:2000}.qd-command::backdrop{background:#0a14244d;backdrop-filter:blur(3px)}.qd-command-input{display:flex;align-items:center;gap:14px;padding:15px 20px;border-bottom:1px solid var(--qd-border);color:var(--qd-muted)}.qd-command-input input{height:36px;min-width:0;flex:1;border:0;outline:0!important;background:transparent;color:var(--qd-text);font-size:16px;padding:0}.qd-command-close{border:1px solid var(--qd-border);border-radius:5px;font:11px var(--qd-font);padding:4px 6px;background:var(--qd-raised);color:var(--qd-muted);cursor:pointer}#qd-command-results{padding:8px;overflow:auto;max-height:48vh;scrollbar-width:thin}#qd-command-results>button{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:0;background:transparent;padding:12px 14px;color:var(--qd-muted);border-radius:8px;cursor:pointer}#qd-command-results>button[aria-selected=true]{background:var(--qd-soft);color:var(--qd-accent)}#qd-command-results>button>span{display:grid;gap:3px;min-width:0}#qd-command-results strong{font-size:14px;font-weight:600;color:var(--qd-text);line-height:1.5}#qd-command-results small{font-size:11px;color:var(--qd-muted)}#qd-command-results .qd-command-arrow{margin-left:auto}.qd-command-status{padding:3px 22px 10px;margin:0;color:var(--qd-muted);font-size:11px}.qd-command-footer{display:flex;gap:18px;border-top:1px solid var(--qd-border);padding:11px 22px;color:var(--qd-muted);font-size:10px}.qd-command-footer span:last-child{margin-left:auto}
@media(min-width:1180px){body.qd-v03{padding-left:var(--qd-sidebar-width)!important}.qd-v03 .qd-shell,.qd-v03 #qd-preview{left:var(--qd-sidebar-width)}body[data-qd-project=alpha-house] .workbench-columns{gap:12px}body[data-qd-project=alpha-house] .app-shell{padding-inline:24px}}
@media(max-width:1179px){.qd-sidebar{display:none}.qd-v03 .qd-shell .qd-brand{display:flex}.qd-breadcrumb{display:none}.qd-v03 .qd-shell .qd-links{display:flex!important;gap:22px}.qd-v03 .qd-links svg,.qd-v03 .qd-links i{display:none}.qd-v03 .qd-shell-inner{padding:0 22px;gap:20px}#qd-search{width:36px;padding:0;justify-content:center;background:transparent;border:0}#qd-search span,#qd-search kbd{display:none}.qd-v03 #qd-theme{width:32px;min-width:32px}.qd-v03 .qd-links a{padding:18px 0}.qd-v03 .qd-shell .qd-links{scrollbar-width:none}}
@media(max-width:760px){.qd-v03 .qd-shell-inner{padding:0 16px;gap:12px}.qd-v03 .qd-shell .qd-brand{font-size:0;gap:0}.qd-v03 .qd-shell .qd-logo{width:28px;height:28px;font-size:18px}.qd-v03 .qd-shell .qd-links{gap:18px}.qd-v03 .qd-preview-inner{padding:0 16px;gap:16px}.qd-v03 #qd-theme{width:30px;min-width:30px}.qd-v03 #qd-search{width:30px;min-width:30px}.qd-v03 .qd-links a{font-size:12px}.qd-v03 .qd-preview-note{display:none}body.qd-v03.qd-hub .page-header,body.qd-v03.qd-hub .section{width:calc(100% - 32px)}body.qd-v03.qd-hub .page-header{padding-top:24px;padding-bottom:20px}body.qd-v03.qd-hub .page-header h1{font-size:27px}body.qd-v03.qd-hub .panel{padding:20px}body.qd-v03.qd-hub .section-index{gap:23px}body.qd-v03.qd-hub .news-headlines a{font-size:15px}.qd-command{top:16px;max-height:calc(100dvh - 32px)}#qd-command-results{max-height:60dvh}.qd-command-input{padding:12px 15px}#qd-command-results>button{padding:12px 10px}.qd-command-footer{font-size:10px;gap:12px}}
/* Keep the office controls readable in the narrower workspace column. */
@media(min-width:1180px) and (max-width:1600px){body[data-qd-project=alpha-house] .office-compact-toolbar .office-topline{flex-basis:100%;min-width:0}body[data-qd-project=alpha-house] .office-compact-toolbar .office-movement-bar{width:100%;justify-content:flex-end}}

/* Production chrome has no preview banner. */
:root{--quant-shared-nav-height:64px}html{scroll-padding-top:84px}body.qd-v03{padding-top:64px!important}.qd-side-footer small{color:var(--qd-muted)}
