@import url('https://fonts.googleapis.com/css2?family=Special+Gothic:wght@700&display=swap');
:root{font-family:'Segoe UI',system-ui,sans-serif;font-size:14px;color:#1b1c22;background:#f8f8f8;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #4441c8;outline-offset:2px}
a{color:#19178c}p{line-height:1.58}h1,h2,h3{font-family:'Avenir Next','Segoe UI',sans-serif;letter-spacing:-.035em}h1{font-size:clamp(31px,3vw,43px);margin:14px 0 9px;font-weight:800;line-height:1.14}h2{font-size:22px;font-weight:800}h3{font-size:17px;font-weight:800}.muted{color:#6b718e}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#7d849b;display:inline-flex;align-items:center;gap:7px}.eyebrow.teal{color:#0f0c97}.eyebrow-line{display:inline-block;height:1px;width:20px;background:#a6aaba;margin:0 3px}
.app-shell{min-height:100vh;display:flex}.sidebar{background:#1a1b23;color:#f8f9fa;display:flex;flex-direction:column;width:256px;min-width:256px;height:100vh;position:sticky;top:0;padding:30px 19px 20px;z-index:2}.brand-lockup{padding:0 13px 17px}.brand-mark{font-family:"Avenir Next","Segoe UI",sans-serif;letter-spacing:-.07em;font-weight:800;font-size:29px;line-height:1;position:relative;color:white}.brand-mark>span:not(.mark-dot){color:#8f99ba}.mark-dot{position:absolute;background:#8590b5;width:5px;height:5px;border-radius:50%;top:-6px;left:29px}.brand-sub{font-size:8px;font-weight:800;letter-spacing:.22em;color:#8d94a8;margin-top:9px}.sidebar-rule{height:1px;background:#323543;margin:7px 2px 25px}.sidebar-rule.medium{margin:27px 2px 25px}.sidebar-section-caption{color:#80879d;font-size:10px;font-weight:700;letter-spacing:.14em;margin:0 12px 20px}.select-label{font-size:11px;color:#b9bdc9;font-weight:600;padding:0 12px;margin-bottom:7px}.select-label.space{display:block;margin-top:17px}.select-box{border:1px solid #414456;background:#23242f;border-radius:9px;height:42px;display:flex;align-items:center;gap:8px;padding:0 11px;color:#989eb0;min-width:0}.select-box select{appearance:none;flex:1;min-width:0;width:100%;background:transparent;color:#edeef0;border:0;outline:none;font-size:12px;font-weight:600}.select-box select option{color:#171927;background:white}.select-box:has(select:focus){outline:2px solid #3f3dcd}.main-nav{display:flex;flex-direction:column;gap:4px}.nav-link{background:none;border:0;color:#a5aaba;display:flex;align-items:center;gap:13px;border-radius:9px;padding:13px 13px;font-size:12px;text-align:left;position:relative;font-weight:700}.nav-link>span:nth-child(2){flex:1;display:flex;justify-content:space-between;gap:7px}.nav-link:hover{background:#2a2b35;color:white}.nav-link.active{background:#313441;color:#e8eaf0}.nav-link.active svg{color:#959fbe}.active-indicator{position:absolute;right:8px;width:4px;height:4px;border-radius:50%;background:#929cbc}.nav-count{font-size:10px;color:#8b91a5}.sidebar-grow{flex:1}.sidebar-bottom{border-top:1px solid #323543;padding-top:15px}.connection-button{background:none;border:0;color:#ebecee;width:100%;padding:9px;display:flex;gap:10px;align-items:center;text-align:left;font-size:12px;font-weight:700}.connection-button>span:nth-child(2){flex:1}.online-dot{width:7px;height:7px;border-radius:50%;background:#dba65b}.online-dot.online{background:#3936d3}.online-dot.offline{background:#f27a7a}.auth-panel{background:#222430;padding:12px;border-radius:9px;color:#c6c9d0}.auth-panel label{font-size:11px}.auth-panel input{margin:7px 0;width:100%;border:1px solid #575c73;border-radius:5px;background:#171921;color:#fff;padding:8px}.auth-panel button{color:#171826;background:#bec3d2;border:0;padding:7px 10px;border-radius:5px;font-weight:700}.auth-panel small{display:block;line-height:1.4;font-size:10px;margin-top:7px;color:#9ea3b4}.sidebar-footnote{display:flex;gap:8px;align-items:center;color:#898fa4;font-size:9px;letter-spacing:.09em;margin:22px 9px 0}
.workspace{flex:1;min-width:0}.topbar{height:65px;padding:0 47px;border-bottom:1px solid #e6e7ea;background:#fff;display:flex;align-items:center;justify-content:space-between}.breadcrumbs{display:flex;align-items:center;gap:12px;color:#848aa0;font-size:12px;min-width:0}.breadcrumbs b{font-weight:800;color:#353846;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-right{display:flex;align-items:center;gap:15px}.read-only{display:flex;align-items:center;gap:6px;color:#838aa0;font-size:11px}.refresh-btn,.icon-button{border:1px solid #e2e3e7;background:white;color:#4f5368;border-radius:8px;padding:8px;display:flex;align-items:center;justify-content:center}.refresh-btn:hover,.icon-button:hover{background:#f1f2f4}.main-inner{max-width:1520px;padding:35px 47px 0;margin:0 auto;min-height:calc(100vh - 65px);display:flex;flex-direction:column}.page-heading{display:flex;justify-content:space-between;gap:25px;align-items:center;margin:8px 0 32px}.page-description{color:#707693;font-size:13px;margin:0;max-width:760px}.header-version{display:flex;align-items:center;gap:12px;min-width:220px}.version-icon{background:#e9eaee;color:#18168d;border:1px solid #d2d5e0;border-radius:12px;padding:12px}.header-version b{font-size:12px;display:block}.header-version span{font-size:11px;color:#82899f;display:block;margin-top:4px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric{border:1px solid #e8e9eb;border-radius:11px;background:#fff;padding:20px 20px 17px;min-height:126px;box-shadow:0 1px 1px #181a2904}.metric-label{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:9px;letter-spacing:.095em;color:#757b97;font-weight:800}.metric-label svg{color:#9298ab}.metric strong{display:block;font:800 28px/1.3 "Avenir Next","Segoe UI",sans-serif;letter-spacing:-.04em;margin-top:11px}.metric>span{color:#8f95a9;font-size:11px}.scope-banner{background:#f0f1f3;border:1px solid #d7dae2;border-radius:9px;padding:12px 15px;margin:17px 0 0;display:flex;align-items:flex-start;gap:10px;color:#464a5d;font-size:12px;line-height:1.5}.scope-banner b{color:#2a2d48}.scope-banner svg{flex-shrink:0;margin-top:1px}.scope-banner.amber{background:#fff8ea;border-color:#f1e3c0;color:#86673b}.scope-banner.amber b{color:#765126}.content-section{padding:41px 0 55px;flex:1}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}.section-heading h2{margin:9px 0 0}.section-heading h2 span{font-size:16px;color:#959bae}.filter-toolbar{display:flex;gap:9px;flex-wrap:wrap}.filter-search,.control-select{height:37px;display:flex;align-items:center;gap:8px;border:1px solid #e2e3e6;border-radius:7px;background:#fff;color:#8b91a5;padding:0 11px}.filter-search input{border:0;outline:none;color:#333644;width:145px;font-size:11px}.control-select select{appearance:none;border:0;background:#fff;font-size:11px;color:#51566c;outline:0;max-width:140px}.product-group{margin-bottom:42px}.product-header{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #dedfe3;margin-bottom:15px;padding-bottom:13px}.product-header h3{font-size:22px;margin:6px 0 0}.product-count{font-size:11px;color:#7c839a}.findings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}.finding-card{background:white;border:1px solid #e5e6ea;border-radius:11px;padding:24px;min-width:0;transition:border-color .15s;display:flex;flex-direction:column;height:100%}.finding-card:hover{border-color:#ccced5}.finding-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.kind{display:inline-flex;align-items:center;background:#ecedef;color:#282683;border-radius:4px;padding:5px 8px;font-size:10px;text-transform:capitalize;font-weight:800}.kind-friction{color:#aa6a42;background:#fcf0e8}.kind-mixed{color:#8572ae;background:#f2eff9}.kind-emerging{color:#8c7a47;background:#f8f5e8}.finding-id{font-size:10px;color:#9ea4b5;word-break:break-all}.finding-card h3{font-size:17px;line-height:1.42;margin:17px 0 10px}.finding-claim{color:#585d75;font-size:12px;line-height:1.75;margin:0}
.finding-body-spacer{flex:1 1 auto;min-height:18px}.evidence-line{border-top:1px solid #eeeef0;margin-top:17px;padding:14px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:10px;color:#9197ab}.evidence-count{font-weight:800;color:#363b50;font-size:12px}.evidence-count small{font-weight:500;color:#6c7290}.count-note{display:inline-block;font-size:9px;color:#959aad}.dot-divider{color:#c4c6cd}.opportunity{background:#f4f5f6;border-left:2px solid #4644c5;margin-top:17px;padding:13px 14px}.opportunity-label{font-size:9px;font-weight:900;letter-spacing:.075em;display:flex;gap:7px;align-items:center;color:#32309d}.opportunity-label span{font-weight:500;letter-spacing:0;text-transform:none;color:#838aa0;margin-left:auto}.opportunity p{font-size:12px;line-height:1.6;margin:7px 0 0;color:#4a4e61}.category-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:14px}.category-tag{font-size:9px;color:#6b718e;background:#f3f3f4;border-radius:3px;padding:5px 7px}.evidence-toggle{display:flex;align-items:center;justify-content:space-between;background:none;border:0;border-top:1px solid #eeeef0;margin-top:18px;padding:17px 12px 0;width:calc(100% + 24px);margin-left:-12px;margin-right:-12px;font-size:11px;color:#19178c;font-weight:800;border-radius:8px}.evidence-toggle>span{display:flex;align-items:center;gap:8px}.evidence-toggle:hover{color:#282b45}.evidence-panel{margin-top:16px;background:#f9f9f9;border:1px solid #e7e8ea;border-radius:8px;padding:9px}.evidence-item{background:#fff;border:1px solid #eaebed;border-radius:7px;margin:6px 0;padding:13px}.evidence-meta,.evidence-bottom{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#868da2}.evidence-meta .verified{color:#1a188f}.warning-text{color:#a35f33}.evidence-item blockquote{margin:12px 0;padding-left:12px;border-left:2px solid #bfc3cf;font-size:12px;line-height:1.6;color:#373a48}.evidence-bottom{align-items:center}.evidence-bottom button,.retrieved-foot button{border:0;color:#19178c;background:none;display:inline-flex;gap:5px;align-items:center;font-size:11px;font-weight:800;white-space:nowrap;padding:4px}
.explore-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.ask-panel,.ask-sidebar,.provenance-card,.method-card,.answer-box,.comparison-col{background:#fff;border:1px solid #e4e5e9;border-radius:11px;padding:24px}.input-title{display:block;font-size:12px;font-weight:800;margin-bottom:10px}.ask-panel textarea{width:100%;border:1px solid #dfe0e4;border-radius:8px;resize:vertical;min-height:100px;padding:13px 14px;line-height:1.6;color:#373a48;background:#fcfcfc;outline-color:#3634b5}.ask-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0}.ask-controls label{font-size:10px;color:#878ea3;font-weight:800}.ask-controls select{display:block;width:100%;border:1px solid #e2e4e8;border-radius:6px;color:#474a5d;padding:11px 7px;margin-top:7px;background:#fff;min-width:0;font-size:11px}.compare-check{display:flex;gap:9px;align-items:center;font-size:11px;color:#474b5e}.compare-check span{color:#9298ab}.compare-check input{accent-color:#17159c}.ask-actions{display:flex;align-items:center;gap:15px;margin:22px 0 0}.primary-button{border:0;border-radius:7px;background:#18168f;color:#fff;display:inline-flex;gap:12px;align-items:center;justify-content:center;padding:11px 15px;font-weight:800;font-size:12px}.primary-button:hover{background:#2f3250}.ask-actions span{color:#9499ac;font-size:10px}.index-prompt{border:1px solid #e0e2e6;background:#fbfbf1;border-radius:8px;padding:15px;margin-top:20px;font-size:11px}.index-prompt p{color:#7b8299}.secondary-button{border:1px solid #969cb1;border-radius:6px;color:#28267d;background:#f7f8f9;padding:8px 12px;display:inline-flex;gap:8px;align-items:center}.index-status{margin-top:20px;color:#585e7c;font-size:11px;display:flex;gap:8px;align-items:center}.ask-sidebar h3{font-size:21px;margin:18px 0 9px}.ask-sidebar p{color:#737996;font-size:12px}.aside-separator{height:1px;background:#e9e9eb;margin:21px 0}.scope-row{display:flex;justify-content:space-between;margin-bottom:12px;font-size:11px;color:#798097}.scope-row b{color:#2f3344}.aside-small{border-top:1px solid #e9e9eb;padding-top:18px;line-height:1.7}.result-section{margin-top:34px}.result-section h2{margin:11px 0 15px}.answer-box{background:#fdfdfe}.answer-tag{display:flex;gap:7px;align-items:center;font-size:10px;font-weight:800;text-transform:uppercase;color:#2e2c91}.answer-body{white-space:pre-wrap;font-size:12px;color:#3a3d4c;line-height:1.9}.answer-limit{border-top:1px solid #e8e8ea;display:flex;gap:9px;align-items:flex-start;color:#798097;font-size:11px;padding-top:14px}.answer-limit svg{flex-shrink:0}.result-subhead{font-size:15px;margin:30px 0 12px}.result-subhead span{color:#8f95a9;font-size:12px}.retrieval-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.retrieved-row{border:1px solid #e4e5e9;border-radius:8px;background:#fff;padding:17px;min-width:0}.retrieved-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#888ea3;font-size:10px}.retrieved-top b{color:#18168d;background:#ebecf0;padding:4px 6px;border-radius:3px}.retrieved-top .push{margin-left:auto}.retrieved-row p{font-size:12px;line-height:1.7;color:#444759}.retrieved-foot{border-top:1px solid #f0f0f2;padding-top:9px;display:flex;justify-content:space-between;align-items:center;gap:7px;color:#9da2b3;font-size:10px}.comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.comparison-col{background:#fafafa;padding:12px}.comparison-col .retrieved-row{margin-bottom:10px}.comparison-head{display:flex;align-items:center;justify-content:space-between;padding:5px 9px 12px;gap:10px}.comparison-head h3{font-size:14px;margin:0}.comparison-head span{font-size:10px;color:#8e94a8}
.events-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px}.event-card{background:#fff;border:1px solid #e9e6de;border-radius:10px;padding:20px}.event-header{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#989eb0}.event-card h3{font-size:15px;text-transform:capitalize}.event-card p{color:#5d627b;font-size:12px}.event-card blockquote{font-size:12px;color:#4f5369;border-left:2px solid #e7bc9c;margin:16px 0;padding-left:13px;line-height:1.7}.event-card small{color:#989eb0}.method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.method-card svg{color:#22208a}.method-card h3{margin:19px 0 9px}.method-card p{color:#767b97;font-size:12px}.provenance-card{margin-top:19px}.provenance-card h3{margin:0 0 18px}.provenance-grid{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px 15px;font-size:12px}.provenance-grid span{color:#848aa0}.provenance-grid code{font-family:ui-monospace,monospace;color:#4e5267;overflow-wrap:anywhere}.denom-list{margin-top:15px;max-width:560px}.denom-list>div{display:flex;justify-content:space-between;border-bottom:1px solid #ececee;padding:8px 0;font-size:12px;color:#656b86}.method-quiet{display:flex;gap:10px;align-items:center;color:#9ca1b3;font-size:11px;margin-top:23px}.empty-state,.empty-project{background:#fff;border:1px dashed #d9dbe0;border-radius:12px;padding:55px 30px;text-align:center;color:#7b829a}.empty-state h3,.empty-project h2{color:#343745}.empty-state p,.empty-project p{max-width:520px;margin:0 auto;font-size:12px}.empty-project{margin:70px auto;max-width:700px}.empty-project code{display:inline-block;margin-top:20px;padding:10px;background:#f2f2f3;border-radius:5px;color:#444961}.notice{display:flex;align-items:center;gap:12px;padding:14px;margin:15px 0;border-radius:7px;font-size:12px;line-height:1.5}.notice.error{background:#fff0ed;color:#934e40;border:1px solid #f4d5cd}.notice.warning{background:#fff7e8;color:#925e35;border:1px solid #f0dfbb}.notice button{border:0;background:none;color:inherit;font-weight:800;margin-left:auto}.skeleton{padding:40px;color:#8a90a5}.footer{margin-top:auto;display:flex;justify-content:space-between;gap:10px;align-items:center;padding:28px 0;border-top:1px solid #e5e6ea;color:#9ba0b2;font-size:10px;letter-spacing:.04em}.footer-logo{font-family:"Avenir Next","Segoe UI",sans-serif;font-weight:800;letter-spacing:-.03em;color:#656b86}
.drawer-wrap{position:fixed;inset:0;background:#13142088;z-index:20;display:flex;justify-content:flex-end}.source-drawer{width:min(550px,100%);background:#fff;height:100%;overflow:auto;padding:29px 33px;box-shadow:-10px 0 40px #1a1b2222}.drawer-head{display:flex;justify-content:space-between;align-items:center}.drawer-title{font-size:23px;line-height:1.35;margin:24px 0 12px}.source-meta{display:flex;gap:8px;flex-wrap:wrap;color:#747a97;font-size:11px}.source-meta span{border:1px solid #e5e7eb;padding:5px 7px;border-radius:4px}.source-quote-meta{display:flex;gap:8px;margin-top:24px;color:#555b7c;font-size:11px;align-items:flex-start;line-height:1.5}.claim-context{margin-top:23px;background:#f4f4f5;padding:15px;border-radius:8px}.claim-context p{font-size:12px;color:#4e5267;margin:7px 0 0}.source-document{margin-top:24px;border:1px solid #e4e5e8;border-radius:9px;padding:20px;background:#fbfbfb}.source-title{font-weight:800;color:#363948}.source-body{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#3d4050}.source-document mark{background:#d8dbe4;color:#24263d;padding:1px 2px;border-radius:3px}.source-link{display:flex;align-items:center;gap:7px;margin-top:17px;font-size:12px}.drawer-foot{font-size:11px;color:#8c92a7;margin-top:30px;line-height:1.7}
@media (max-width:1150px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.findings-list{grid-template-columns:1fr}.topbar{padding:0 26px}.main-inner{padding:32px 26px 0}.explore-layout{grid-template-columns:1fr}.method-grid{grid-template-columns:1fr 1fr}}
@media (max-width:750px){.app-shell{display:block}.sidebar{position:relative;width:100%;min-width:0;height:auto;padding:15px}.brand-lockup{padding:4px 6px 10px}.brand-mark{font-size:23px}.brand-sub{font-size:7px}.sidebar-rule,.sidebar-section-caption,.sidebar-bottom{display:none}.sidebar .select-label{display:inline-block;margin:0 8px 8px 0;padding:0}.sidebar .select-label.space{margin-left:10px;margin-top:0}.select-box{width:47%;display:inline-flex;margin:0 1% 9px;height:37px}.main-nav{flex-direction:row;overflow:auto;padding-top:3px}.nav-link{white-space:nowrap;padding:9px 10px;font-size:11px}.nav-count,.active-indicator{display:none}.topbar{height:47px;padding:0 15px}.read-only{display:none}.breadcrumbs{gap:6px;font-size:10px}.main-inner{padding:20px 16px 0}.page-heading{display:block;margin:8px 0 22px}.header-version{margin-top:18px}.metric-grid{gap:8px}.metric{padding:14px;min-height:106px}.metric-label{font-size:8px}.metric strong{font-size:23px}.metric>span{font-size:10px}.content-section{padding:29px 0}.section-heading{display:block}.filter-toolbar{margin-top:16px}.product-header{align-items:start;gap:12px}.product-header h3{font-size:18px}.product-count{font-size:10px;text-align:right}.finding-card{padding:18px}.ask-controls{grid-template-columns:1fr}.retrieval-list,.comparison-grid,.events-list,.method-grid{grid-template-columns:1fr}.source-drawer{padding:20px 17px}.footer{font-size:8px}.provenance-grid{grid-template-columns:110px minmax(0,1fr)}}
.category-families{margin-top:15px;display:grid;gap:6px}.category-family{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.category-family>span{font-size:9px;font-weight:800;letter-spacing:.04em;color:#798098;min-width:96px}.category-family .category-row{margin:0}.event-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.event-actions button{border:0;background:none;color:#19178c;display:flex;align-items:center;gap:5px;font-size:11px;font-weight:800}

/* V12.1 — Shared, independently scrolling evidence rail.
   The findings workspace remains visible and usable beside the panel. */
:root { --evidence-rail-width: clamp(330px, 23.5vw, 460px); }
.app-shell.evidence-open .workspace { margin-right: var(--evidence-rail-width); }
.app-shell .workspace { transition: margin-right 180ms ease; }
.finding-card-selected { border-color: #3d3bbe; box-shadow: 0 0 0 1px #959fbe55; }
.finding-card-selected .evidence-toggle { color: #110f94; background: #f1f2f5; padding-bottom: 12px; }
.evidence-rail-wrap { position: fixed; inset: 0 0 0 auto; width: var(--evidence-rail-width); z-index: 12; pointer-events: none; }
.evidence-rail-scrim { display: none; }
.finding-evidence-rail {
  pointer-events: auto; display: flex; flex-direction: column; height: 100vh; height: 100dvh;
  min-width: 0; background: #fff; border-left: 1px solid #dfe1e5;
  box-shadow: -8px 0 28px #1719281c; animation: evidence-rail-enter 180ms ease-out;
}
@keyframes evidence-rail-enter { from { transform: translateX(24px); opacity: .75; } to { transform: translateX(0); opacity: 1; } }
.finding-evidence-head { padding: 25px 23px 18px; flex: 0 0 auto; border-bottom: 1px solid #ebebed; }
.finding-evidence-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.finding-evidence-heading .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.finding-evidence-head h2 { margin: 16px 0 12px; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.finding-evidence-head > p { font-size: 11px; line-height: 1.65; color: #656b86; margin: 12px 0 0; }
.finding-evidence-context { display: flex; flex-wrap: wrap; gap: 6px; color: #5a5f77; font-size: 10px; font-weight: 700; }
.finding-evidence-context span { background: #f1f1f3; padding: 5px 7px; border-radius: 4px; }
.finding-evidence-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; padding: 16px 20px 25px; scroll-behavior: auto; }
.finding-evidence-scroll:focus-visible { outline: 2px solid #3735b5; outline-offset: -4px; }
.finding-evidence-summary { color: #6d7391; font-size: 11px; margin-bottom: 17px; }
.finding-evidence-summary b { color: #2e314d; }
.finding-evidence-summary span { margin: 0 5px; }
.finding-evidence-limit { padding: 11px; margin-bottom: 15px; border-radius: 6px; font-size: 11px; line-height: 1.5; background: #f5f5f6; color: #5b6078; }
.evidence-rail-message { padding: 24px 0; font-size: 12px; color: #6e7491; }
.evidence-review { border: 1px solid #e4e5e8; border-radius: 9px; margin-bottom: 12px; padding: 15px 14px 12px; background: #fff; }
.evidence-review-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 10px; margin-bottom: 13px; }
.evidence-review-head b { color: #45495c; overflow-wrap: anywhere; }
.evidence-review-head > span:last-child { margin-left: auto; color: #81889e; }
.evidence-review-index { font-size: 10px; font-weight: 800; color: #19178c; background: #ecedf1; padding: 4px 6px; border-radius: 4px; }
.evidence-review-observation { border-top: 1px solid #eeeeef; padding: 14px 0 8px; }
.evidence-review-observation:first-of-type { border-top: 0; }
.evidence-review-verification { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 9px; }
.evidence-review-verification > span:last-child { color: #9399ac; }
.evidence-review blockquote { margin: 12px 0; padding-left: 12px; border-left: 2px solid #4644c5; color: #393c4b; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.evidence-observation-claim { color: #60657f; font-size: 11px; line-height: 1.55; margin: 10px 0; }
.evidence-observation-claim > span { display: block; text-transform: uppercase; color: #8b91a6; font-size: 9px; font-weight: 800; letter-spacing: .035em; margin-bottom: 3px; }
.evidence-review-tags { display: flex; gap: 6px; flex-wrap: wrap; color: #686e8b; font-size: 9px; }
.evidence-review-tags > span { background: #f2f2f3; padding: 4px 6px; border-radius: 4px; }
.evidence-review-tags > .safety-tag { background: #fff4e7; color: #a36237; display: inline-flex; align-items: center; gap: 4px; }
.evidence-observation-link, .evidence-review-open { border: 0; color: #19178c; background: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; font-size: 10px; font-weight: 800; text-align: left; }
.evidence-observation-link { margin-top: 9px; }
.evidence-review-open { border-top: 1px solid #efeff0; padding-top: 10px; width: 100%; margin-top: 7px; }
.evidence-rail-disclaimer { color: #898fa4; line-height: 1.65; font-size: 10px; padding: 12px 3px 20px; }
@media (max-width: 999px) {
  .app-shell.evidence-open .workspace { margin-right: 0; }
  .evidence-rail-wrap { width: min(430px, 90vw); }
  .evidence-rail-scrim { display: block; pointer-events: auto; position: fixed; inset: 0; border: 0; border-radius: 0; background: #13142065; padding: 0; z-index: -1; }
}
@media (max-width: 750px) {
  .evidence-rail-wrap { width: min(430px, 100vw); }
  .finding-evidence-head { padding: 19px 18px 14px; }
  .finding-evidence-scroll { padding: 13px 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .finding-evidence-rail { animation: none; }
  .app-shell .workspace { transition: none; }
}



/* V12.5 — controlled SiGNAL brand refinement. Body text deliberately stays
   on the original Segoe UI/system sans-serif stack. Brand accents do not
   override functional warning, safety or verification colors. */
:root {
  --signal-blue: #3430ff;
  --signal-blue-hover: #2923e4;
  --signal-blue-light: #f3f3ff;
  --signal-blue-border: #dfdefb;
}

/* Use the designer-provided transparent light logo against the dark sidebar. */
.brand-lockup { padding: 2px 10px 18px; }
.brand-logo { display:block; width:100%; max-width:188px; height:auto; object-fit:contain; }
.brand-sub { margin-top:9px; color:#a3a4bd; }
.sidebar { background:#171925; }
.sidebar-rule, .sidebar-bottom { border-color:#383b4b; }
.sidebar-rule { background:#383b4b; }
.sidebar-section-caption { color:#999eaf; }
.select-box { background:#232736; border-color:#3e4555; color:#b3b1ff; }
.select-box select { color:#f2f3fa; }
.select-box:has(select:focus) { outline-color:#a6a3ff; }
.select-label { color:#c0c6d6; }
.nav-link { color:#b6bcc9; }
.nav-link:hover { background:#292d42; }
.nav-link.active { background:#302f50; color:#fff; }
.nav-link.active svg { color:#aaa7ff; }
.active-indicator { background:#aba8ff; }
.nav-count { color:#a5a9be; }
.sidebar-footnote { color:#acaec2; }
.connection-button { color:#dadcf4; }
.online-dot.online { background:#a9a7ff; }

/* Reserve the display face for the main page title, not every header or label.
   All paragraphs, buttons, metadata and card titles keep their original fonts. */
.page-heading h1 {
  font-family:'Special Gothic','Segoe UI',sans-serif;
  font-weight:700;
  font-size:clamp(32px,2.7vw,44px);
  line-height:1.16;
  letter-spacing:-.032em;
}
.page-heading { align-items:center; }
.page-description { color:#686e8b; }

/* Use blue where interaction or brand emphasis requires it, not in all copy. */
a, .eyebrow.teal, .teal, .evidence-toggle,
.evidence-observation-link, .evidence-review-open,
.retrieved-foot button, .event-actions button, .source-link {
  color:var(--signal-blue);
}
a:hover, .evidence-toggle:hover, .evidence-observation-link:hover,
.retrieved-foot button:hover, .event-actions button:hover { color:var(--signal-blue-hover); }
button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, a:focus-visible { outline-color:var(--signal-blue); }
.primary-button { background:var(--signal-blue); }
.primary-button:hover { background:var(--signal-blue-hover); }
.eyebrow-line { background:#c3c1fc; }
.breadcrumbs b { color:#3c3c53; }
.version-icon { background:#eeedff; border-color:var(--signal-blue-border); color:var(--signal-blue); }
.scope-banner { background:#f4f4ff; border-color:var(--signal-blue-border); color:#4d5271; }
.scope-banner b { color:#343650; }
.scope-banner.amber { background:#fff8ea; border-color:#f1e3c0; color:#86673b; }
.scope-banner.amber b { color:#765126; }
.kind:not(.kind-strength):not(.kind-friction):not(.kind-mixed):not(.kind-emerging) { background:#f0f2f8; color:#445270; }
.finding-card-selected { border-color:#aba9ff; box-shadow:0 0 0 1px #3430ff25; }
.finding-card-selected .evidence-toggle { color:var(--signal-blue); background:#f1f0ff; }
.opportunity { background:#f5f5ff; border-left-color:#6561ff; }
.opportunity-label { color:#3430be; }
.icon-button:hover,.refresh-btn:hover { background:#f2f1ff; }
.finding-evidence-context span, .evidence-review-index { background:#eeedff; color:#4842d4; }
.evidence-review blockquote { border-left-color:#7773ff; }
.finding-evidence-scroll:focus-visible { outline-color:#7470ff; }
.source-document mark { background:#e1e0ff; color:#2824a6; }

@media (max-width:750px) {
  .brand-lockup { padding:4px 6px 12px; }
  .brand-logo { max-width:172px; }
  .page-heading h1 { font-size:clamp(29px,7vw,38px); }
}


/* V12 Increment 8 — semantic tag palette for the #3430FF identity.
   Semantic types stay distinct; category tags are cool neutrals; safety stays
   visibly cautionary. Typography, layout, and research values are unchanged. */
:root {
  --tag-strength-fg: #302bd1;
  --tag-strength-bg: #ecebff;
  --tag-friction-fg: #943353;
  --tag-friction-bg: #fff0f4;
  --tag-mixed-fg: #6341a0;
  --tag-mixed-bg: #f3efff;
  --tag-emerging-fg: #385a85;
  --tag-emerging-bg: #edf3fe;
  --tag-neutral-fg: #445270;
  --tag-neutral-bg: #f0f2f8;
  --tag-discovered-fg: #57468f;
  --tag-discovered-bg: #f2efff;
  --tag-safety-fg: #993747;
  --tag-safety-bg: #ffedf0;
}

/* Findings: classification semantics, never a confidence score. */
.kind { background: var(--tag-neutral-bg); color: var(--tag-neutral-fg); }
.kind.kind-strength { background: var(--tag-strength-bg); color: var(--tag-strength-fg); }
.kind.kind-friction { background: var(--tag-friction-bg); color: var(--tag-friction-fg); }
.kind.kind-mixed { background: var(--tag-mixed-bg); color: var(--tag-mixed-fg); }
.kind.kind-emerging { background: var(--tag-emerging-bg); color: var(--tag-emerging-fg); }
/* Exception/safety records aren't ordinary friction findings. */
.event-card .kind { background: var(--tag-safety-bg); color: var(--tag-safety-fg); }

/* Taxonomies are neutral lenses on evidence, not severity/quality signals. */
.category-family > span { color: #5b6680; }
.category-tag {
  background: var(--tag-neutral-bg);
  color: var(--tag-neutral-fg);
  border: 1px solid #e3e8f2;
}
.category-family--discovered .category-tag {
  background: var(--tag-discovered-bg);
  color: var(--tag-discovered-fg);
  border-color: #e4dff8;
}
.category-family--discovered > span { color: var(--tag-discovered-fg); }

/* Small provenance badges and retrieval labels previously using mint-green. */
.evidence-review-tags { color: var(--tag-neutral-fg); }
.evidence-review-tags > span {
  background: var(--tag-neutral-bg);
  color: var(--tag-neutral-fg);
}
.evidence-review-tags > .safety-tag {
  background: var(--tag-safety-bg);
  color: var(--tag-safety-fg);
}
.retrieved-top b {
  background: var(--tag-strength-bg);
  color: var(--tag-strength-fg);
}
.source-meta span { border-color: #e3e8f2; background: #f7f8fc; }
.source-quote-meta, .index-status, .answer-tag { color: var(--tag-strength-fg); }


/* V12 Increment 9 — Special Gothic OG (Bold), near-black sidebar, cool neutrals.
   This block replaces the prior blue sidebar and the over-wide display font.
   No backend, stored research or interaction semantics are changed. */
:root {
  --signal-ink: #20212b;
  --signal-muted: #657085;
  --signal-subtle: #8790a0;
  --signal-bg: #f8f9fc;
  --signal-border: #e3e6f0;
  --signal-blue: #3430ff;
  --signal-blue-hover: #2622da;
  --sidebar-bg: #111218;
  --sidebar-input: #1d202b;
  --sidebar-selected: #282844;
}

/* Restore the pre-experiment body typography; display weight is reserved for titles. */
body, button, input, select, textarea {
  font-family: 'Segoe UI', system-ui, sans-serif;
}
body { color: var(--signal-ink); background: var(--signal-bg); }
h1, h2, h3 {
  font-family: 'Special Gothic', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.28;
}
.page-heading h1 {
  font-family: 'Special Gothic', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 2.7vw, 44px);
  line-height: 1.16;
  letter-spacing: -.032em;
}
.section-heading h2 { font-size: clamp(20px, 1.75vw, 25px); letter-spacing: -.021em; }
.product-header h3 { font-size: 21px; }
.finding-card h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.012em; }
.finding-evidence-head h2 { font-size: 19px; }
.metric strong { font-family: 'Segoe UI',system-ui,sans-serif; font-weight: 800; }
.brand-sub { font-family: 'Segoe UI',system-ui,sans-serif; }

/* Accessible ink-black sidebar, consistently legible at 10–12px labels. */
.sidebar { background: var(--sidebar-bg); color: #f7f7fc; }
.sidebar-rule { background: #373946; }
.sidebar-bottom { border-top-color: #373946; }
.sidebar-section-caption { color: #c0c5d5; }
.select-label { color: #d4d7e4; }
.select-box {
  background: var(--sidebar-input);
  border-color: #656a82;
  color: #b8b8ff;
}
.select-box select { color: #fafaff; }
.select-box select option { background: #1d202b; color: #fafaff; }
.select-box:has(select:focus) { outline: 2px solid #a8a6ff; }
.nav-link { color: #d2d5e2; }
.nav-link svg { color: #bfc2d4; }
.nav-link:hover { background: #222534; color: #fff; }
.nav-link:hover svg { color: #fff; }
.nav-link.active { background: var(--sidebar-selected); color: #fff; }
.nav-link.active svg { color: #aaa8ff; }
.nav-count { color: #d9dcf3; }
.active-indicator { display: none; }
.connection-button { color: #f1f1ff; }
.connection-button:hover { background: #242533; }
.online-dot.online { background: #aaa8ff; }
.sidebar-footnote { color: #bfc4d8; }
.auth-panel { background: #232635; color: #eef0ff; }
.auth-panel label, .auth-panel small { color: #d0d4e8; }
.auth-panel input { background: #12151f; border-color: #61667e; color: #fff; }
.auth-panel button { color: #211dbd; background: #eeeefe; }
.brand-sub { color: #c0c3d1; }

/* Replace legacy sage metadata with neutrals from the current palette. */
.eyebrow { color: #657085; }
.eyebrow.teal { color: var(--signal-blue); }
.eyebrow-line { background: #bbbaff; }
.page-description, .metric > span, .finding-claim, .product-count { color: #626b7c; }
.metric-label { color: #596579; }
.metric-label svg { color: #838aa5; }
.section-heading h2 span { color: #707a8e; }
.breadcrumbs { color: #667185; }
.read-only { color: #606b81; }
.filter-search, .control-select { color: #687288; }
.filter-search input, .control-select select { color: #303b53; }
.finding-id, .count-note, .dot-divider { color: #7e8798; }
.evidence-line { color: #747d8f; }
.evidence-count { color: #2b2a61; }
.evidence-count small { color: #636c7d; }
.category-family > span { color: #515d73; }
.finding-card:hover { border-color: #bdbbff; }
.finding-evidence-summary, .finding-evidence-head > p,
.evidence-review-head > span:last-child, .evidence-review-verification > span:last-child,
.evidence-observation-claim, .evidence-rail-disclaimer { color: #677284; }
.evidence-review-verification .verified, .source-quote-meta { color: #302bd1; }
.evidence-review-verification .warning-text { color: #943353; }
.evidence-review-tags > .safety-tag { background: var(--tag-safety-bg); color: var(--tag-safety-fg); }

/* Readable blue focus/selection without introducing new decorative accents. */
button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, a:focus-visible { outline-color: #6562ff; }
.finding-card-selected { border-color: #aaa7ff; }
.finding-card-selected .evidence-toggle { color: var(--signal-blue); background: #efeeff; }
.evidence-toggle, .evidence-observation-link, .source-link,
.retrieved-foot button, .event-actions button { color: #302bd1; }
.evidence-toggle:hover, .evidence-observation-link:hover, .source-link:hover,
.retrieved-foot button:hover, .event-actions button:hover { color: var(--signal-blue-hover); }

@media (max-width: 750px) {
  .page-heading h1 { font-size:clamp(29px,7vw,38px); }
}

/* V12 Increment 10 — Appearance: System / Light / Dark.
   The near-black sidebar and the supplied SiGNAL logo stay consistent between modes.
   Functional safety, provenance, and category colors retain distinct meanings. */
.theme-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 9px;
  color: #4b5269;
  background: #fff;
  border: 1px solid #e2e3e7;
  border-radius: 8px;
  white-space: nowrap;
}
.theme-select:hover { background: #f3f2ff; border-color: #cac7ff; }
.theme-select:focus-within { outline: 2px solid #7975ff; outline-offset: 2px; }
.theme-select select {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  min-width: 43px;
  cursor: pointer;
}
.theme-select select option { background: #fff; color: #222435; }
@media (max-width:750px) {
  .top-right { gap: 7px; }
  .theme-select { padding: 0 6px; gap: 4px; }
  .theme-select select { min-width: 43px; }
  .topbar .breadcrumbs > span:first-child { display: none; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --signal-ink: #ebedfa;
  --signal-muted: #bec5d9;
  --signal-subtle: #acb5cb;
  --signal-bg: #11141f;
  --signal-border: #32384c;
  --signal-blue: #b3b0ff;          /* readable text on dark surfaces */
  --signal-blue-hover: #dbd9ff;
  --signal-blue-border: #5554a1;
  --tag-strength-fg: #c1beff;
  --tag-strength-bg: #2b2955;
  --tag-friction-fg: #ffc1d1;
  --tag-friction-bg: #4a293b;
  --tag-mixed-fg: #ddc7ff;
  --tag-mixed-bg: #3c2c57;
  --tag-emerging-fg: #bfd8ff;
  --tag-emerging-bg: #293950;
  --tag-neutral-fg: #c2cbe5;
  --tag-neutral-bg: #303649;
  --tag-discovered-fg: #dacaff;
  --tag-discovered-bg: #362e51;
  --tag-safety-fg: #ffbcca;
  --tag-safety-bg: #462837;
  background: #11141f;
  color: #ebedfa;
}
html[data-theme="dark"] body { background: #11141f; color: #ebedfa; }
html[data-theme="dark"] .workspace { color: #ebedfa; }
html[data-theme="dark"] .sidebar { background: #111218; }
html[data-theme="dark"] a { color: #b3b0ff; }
html[data-theme="dark"] a:hover { color: #dbd9ff; }
html[data-theme="dark"] .muted,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .product-count,
html[data-theme="dark"] .page-description,
html[data-theme="dark"] .metric > span,
html[data-theme="dark"] .finding-claim,
html[data-theme="dark"] .method-quiet,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer-logo { color: #b5bed5; }
html[data-theme="dark"] .eyebrow.teal,
html[data-theme="dark"] .teal { color: #b9b7ff; }
html[data-theme="dark"] .eyebrow-line { background: #6262a2; }

/* Navigation and global controls. */
html[data-theme="dark"] .topbar {
  background: #171b28;
  border-bottom-color: #31364a;
}
html[data-theme="dark"] .breadcrumbs,
html[data-theme="dark"] .read-only,
html[data-theme="dark"] .header-version span { color: #b5bdd3; }
html[data-theme="dark"] .breadcrumbs b { color: #e4e5ff; }
html[data-theme="dark"] .refresh-btn,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .theme-select {
  background: #232839;
  border-color: #444a65;
  color: #e4e6f7;
}
html[data-theme="dark"] .theme-select:hover,
html[data-theme="dark"] .refresh-btn:hover,
html[data-theme="dark"] .icon-button:hover { background: #303550; }
html[data-theme="dark"] .theme-select select option {
  color: #f0f1fc;
  background: #232839;
}
html[data-theme="dark"] .theme-select:focus-within { outline-color: #a29eff; }
html[data-theme="dark"] :is(button,input,select,textarea,a):focus-visible { outline-color: #b3b0ff; }

/* Layout, metrics, and finding cards. */
html[data-theme="dark"] .metric,
html[data-theme="dark"] .finding-card,
html[data-theme="dark"] .ask-panel,
html[data-theme="dark"] .ask-sidebar,
html[data-theme="dark"] .provenance-card,
html[data-theme="dark"] .method-card,
html[data-theme="dark"] .answer-box,
html[data-theme="dark"] .comparison-col,
html[data-theme="dark"] .retrieved-row,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .empty-project {
  background: #1d2230;
  border-color: #353b51;
  box-shadow: none;
}
html[data-theme="dark"] .metric-label,
html[data-theme="dark"] .metric-label svg,
html[data-theme="dark"] .section-heading h2 span,
html[data-theme="dark"] .product-count,
html[data-theme="dark"] .finding-id,
html[data-theme="dark"] .count-note,
html[data-theme="dark"] .dot-divider { color: #b4bdd3; }
html[data-theme="dark"] .metric strong,
html[data-theme="dark"] .product-header h3,
html[data-theme="dark"] .finding-card h3,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .method-card h3,
html[data-theme="dark"] .empty-state h3,
html[data-theme="dark"] .empty-project h2 { color: #f5f5ff; }
html[data-theme="dark"] .product-header,
html[data-theme="dark"] .footer { border-color: #353b51; }
html[data-theme="dark"] .finding-card:hover,
html[data-theme="dark"] .finding-card-selected { border-color: #8782fa; }
html[data-theme="dark"] .finding-card-selected { box-shadow: 0 0 0 1px #8986ff55; }
html[data-theme="dark"] .finding-claim { color: #c9d0e3; }
html[data-theme="dark"] .evidence-line,
html[data-theme="dark"] .evidence-toggle { border-color: #41485c; }
html[data-theme="dark"] .evidence-line,
html[data-theme="dark"] .count-note,
html[data-theme="dark"] .evidence-count small { color: #b9c2d7; }
html[data-theme="dark"] .evidence-count { color: #e7e6ff; }
html[data-theme="dark"] .evidence-toggle,
html[data-theme="dark"] .evidence-observation-link,
html[data-theme="dark"] .retrieved-foot button,
html[data-theme="dark"] .event-actions button,
html[data-theme="dark"] .source-link { color: #bcb9ff; }
html[data-theme="dark"] .evidence-toggle:hover,
html[data-theme="dark"] .evidence-observation-link:hover,
html[data-theme="dark"] .retrieved-foot button:hover,
html[data-theme="dark"] .event-actions button:hover { color: #e4e2ff; }
html[data-theme="dark"] .finding-card-selected .evidence-toggle {
  color: #e0deff;
  background: #343157;
}
html[data-theme="dark"] .opportunity {
  color: #e6e8fb;
  background: #272942;
  border-left-color: #918dff;
}
html[data-theme="dark"] .opportunity-label { color: #c9c6ff; }
html[data-theme="dark"] .opportunity-label span,
html[data-theme="dark"] .opportunity p { color: #cdd1e7; }
html[data-theme="dark"] .category-family > span { color: #c4cce0; }
html[data-theme="dark"] .category-family--discovered > span { color: #d8c9ff; }
html[data-theme="dark"] .category-tag { border-color: #454c65; }
html[data-theme="dark"] .category-family--discovered .category-tag { border-color: #63547d; }
html[data-theme="dark"] .version-icon {
  background: #303055;
  border-color: #5852a1;
  color: #cecbff;
}

/* Alerts, provenance, and safety retain their own semantics. */
html[data-theme="dark"] .scope-banner,
html[data-theme="dark"] .claim-context {
  color: #d4d7fb;
  background: #262843;
  border-color: #484574;
}
html[data-theme="dark"] .scope-banner b { color: #f1eeff; }
html[data-theme="dark"] .scope-banner.amber,
html[data-theme="dark"] .notice.warning,
html[data-theme="dark"] .evidence-review-tags > .safety-tag {
  background: #453323;
  border-color: #72583d;
  color: #ffd6a7;
}
html[data-theme="dark"] .scope-banner.amber b { color: #ffdfa9; }
html[data-theme="dark"] .notice.error {
  color: #ffced4;
  background: #452936;
  border-color: #8b495f;
}
html[data-theme="dark"] .notice.warning { border-style: solid; border-width: 1px; }
html[data-theme="dark"] .notice button { color: inherit; }
html[data-theme="dark"] .event-card .kind { background: var(--tag-safety-bg); color: var(--tag-safety-fg); }
html[data-theme="dark"] .event-card p,
html[data-theme="dark"] .event-card blockquote { color: #d6d9eb; }
html[data-theme="dark"] .event-header,
html[data-theme="dark"] .event-card small { color: #c2c8db; }
html[data-theme="dark"] .event-card blockquote { border-left-color: #ba7694; }
html[data-theme="dark"] .method-card svg { color: #b6b1ff; }
html[data-theme="dark"] .method-card p,
html[data-theme="dark"] .ask-sidebar p,
html[data-theme="dark"] .index-prompt p,
html[data-theme="dark"] .aside-small { color: #bdc6db; }
html[data-theme="dark"] .provenance-grid span,
html[data-theme="dark"] .scope-row { color: #bec7db; }
html[data-theme="dark"] .provenance-grid code,
html[data-theme="dark"] .scope-row b { color: #f2f2fc; }
html[data-theme="dark"] .denom-list > div,
html[data-theme="dark"] .aside-separator,
html[data-theme="dark"] .aside-small { border-color: #3e4559; }
html[data-theme="dark"] .aside-separator { background: #3e4559; }

/* Research-question form, search results, and answer panel. */
html[data-theme="dark"] .filter-search,
html[data-theme="dark"] .control-select,
html[data-theme="dark"] .ask-panel textarea,
html[data-theme="dark"] .ask-controls select,
html[data-theme="dark"] .secondary-button {
  background: #161b28;
  border-color: #4b526b;
  color: #eceefa;
}
html[data-theme="dark"] .filter-search input,
html[data-theme="dark"] .control-select select {
  background: transparent;
  color: #edf0fc;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #a4aec4; opacity: 1; }
html[data-theme="dark"] .ask-controls label,
html[data-theme="dark"] .compare-check,
html[data-theme="dark"] .compare-check span,
html[data-theme="dark"] .ask-actions span,
html[data-theme="dark"] .retrieved-top,
html[data-theme="dark"] .retrieved-foot,
html[data-theme="dark"] .answer-limit,
html[data-theme="dark"] .comparison-head span,
html[data-theme="dark"] .result-subhead span { color: #c0c9dd; }
html[data-theme="dark"] .compare-check input { accent-color: #8c88ff; }
html[data-theme="dark"] .primary-button { background: #4d49ed; color: #fff; }
html[data-theme="dark"] .primary-button:hover { background: #6965ff; }
html[data-theme="dark"] .index-prompt {
  background: #292c3b;
  border-color: #535a75;
  color: #e1e5f4;
}
html[data-theme="dark"] .secondary-button { color: #d0cdff; }
html[data-theme="dark"] .index-status,
html[data-theme="dark"] .answer-tag,
html[data-theme="dark"] .source-quote-meta { color: #c3c0ff; }
html[data-theme="dark"] .answer-body,
html[data-theme="dark"] .retrieved-row p { color: #e0e4f4; }
html[data-theme="dark"] .retrieved-foot,
html[data-theme="dark"] .answer-limit { border-color: #3d4356; }
html[data-theme="dark"] .comparison-col { background: #1a1f2d; }
html[data-theme="dark"] .retrieved-top b { background: var(--tag-strength-bg); color: var(--tag-strength-fg); }

/* The source reader and evidence rail must be true dark surfaces, not white drawers. */
html[data-theme="dark"] .drawer-wrap { background: #040510bb; }
html[data-theme="dark"] .source-drawer,
html[data-theme="dark"] .finding-evidence-rail {
  color: #e9eafb;
  background: #1a1e2c;
  border-color: #41465d;
  box-shadow: -10px 0 34px #02030c88;
}
html[data-theme="dark"] .finding-evidence-head,
html[data-theme="dark"] .evidence-review-observation,
html[data-theme="dark"] .evidence-review-open { border-color: #3d455c; }
html[data-theme="dark"] .finding-evidence-head h2,
html[data-theme="dark"] .drawer-title { color: #f3f3ff; }
html[data-theme="dark"] .finding-evidence-head > p,
html[data-theme="dark"] .finding-evidence-context,
html[data-theme="dark"] .finding-evidence-summary,
html[data-theme="dark"] .finding-evidence-summary b,
html[data-theme="dark"] .evidence-review-head b,
html[data-theme="dark"] .evidence-review-head > span:last-child,
html[data-theme="dark"] .evidence-observation-claim,
html[data-theme="dark"] .evidence-observation-claim > span,
html[data-theme="dark"] .evidence-review-verification > span:last-child,
html[data-theme="dark"] .evidence-rail-disclaimer,
html[data-theme="dark"] .drawer-foot,
html[data-theme="dark"] .source-meta { color: #bcc6dd; }
html[data-theme="dark"] .finding-evidence-context span,
html[data-theme="dark"] .evidence-review-index {
  color: #c4bfff;
  background: #302d57;
}
html[data-theme="dark"] .evidence-review,
html[data-theme="dark"] .source-document {
  background: #222739;
  border-color: #444c65;
}
html[data-theme="dark"] .evidence-review blockquote,
html[data-theme="dark"] .source-title,
html[data-theme="dark"] .source-body { color: #eaedfa; }
html[data-theme="dark"] .evidence-review blockquote { border-left-color: #9e9aff; }
html[data-theme="dark"] .evidence-observation-claim > span { color: #c9c6ff; }
html[data-theme="dark"] .evidence-review-tags > span { background: var(--tag-neutral-bg); color: var(--tag-neutral-fg); }
html[data-theme="dark"] .evidence-review-tags > .safety-tag { background: var(--tag-safety-bg); color: var(--tag-safety-fg); }
html[data-theme="dark"] .evidence-review-verification .verified { color: #c0bdff; }
html[data-theme="dark"] .evidence-review-verification .warning-text { color: #ffb5c9; }
html[data-theme="dark"] .evidence-rail-message,
html[data-theme="dark"] .skeleton { color: #cad1e4; }
html[data-theme="dark"] .finding-evidence-limit,
html[data-theme="dark"] .claim-context {
  color: #d5dcf2;
  background: #292e44;
}
html[data-theme="dark"] .source-meta span { background: #292e40; border-color: #48516b; }
html[data-theme="dark"] .claim-context p { color: #e0e3f3; }
html[data-theme="dark"] .source-document mark {
  color: #f0ecff;
  background: #454083;
}
html[data-theme="dark"] .source-quote-meta { color: #c5c2ff; }
html[data-theme="dark"] .source-link { color: #c4c0ff; }
html[data-theme="dark"] .evidence-review-tags { color: #c1c9df; }
html[data-theme="dark"] .finding-evidence-scroll:focus-visible { outline-color: #a9a6ff; }
html[data-theme="dark"] .evidence-panel { background: #252b3d; border-color: #424b65; }
html[data-theme="dark"] .evidence-item { background: #202538; border-color: #434c65; }
html[data-theme="dark"] .evidence-item blockquote { color: #e4e7f8; }
html[data-theme="dark"] .evidence-meta,
html[data-theme="dark"] .evidence-bottom { color: #c1cbe0; }
html[data-theme="dark"] .empty-project code { background: #30374a; color: #d8d8ff; }
html[data-theme="dark"] .evidence-rail-scrim { background: #060810bb; }
html[data-theme="dark"] ::selection { background: #544fa9; color: #fff; }

/* V12.12 — Consistent, custom dropdowns with keyboard navigation and theme-safe menus.
   This styles the trigger AND the option list; native OS selects are no longer used. */
.signal-select {
  --select-bg: #fff;
  --select-border: #d8dce7;
  --select-ink: #26293b;
  --select-muted: #66718b;
  --select-menu-bg: #fff;
  --select-hover: #f2f1ff;
  --select-active: #eae9ff;
  --select-active-ink: #302bd1;
  --select-shadow: 0 18px 48px #17182e22, 0 3px 12px #15182c12;
  position: relative;
  min-width: 0;
  width: 100%;
}
.signal-select-trigger {
  cursor: pointer;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--select-border);
  border-radius: 10px;
  background: var(--select-bg);
  color: var(--select-ink);
  font: 600 12px/1.35 "Segoe UI", Arial, sans-serif;
  text-align: left;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.signal-select-trigger:hover:not(:disabled), .signal-select-trigger.is-open {
  border-color: #908cff;
  box-shadow: 0 0 0 3px #3430ff13;
}
.signal-select-trigger:focus-visible {
  outline: 2px solid #3430ff;
  outline-offset: 2px;
}
.signal-select-trigger:disabled { cursor: not-allowed; opacity: .55; }
.signal-select-icon { color: #6964df; display: flex; flex: 0 0 auto; }
.signal-select-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-select-placeholder { color: var(--select-muted); }
.signal-select-chevron { color: var(--select-muted); flex: 0 0 auto; transition: transform .16s; }
.signal-select-trigger.is-open .signal-select-chevron { transform: rotate(180deg); color: #7771ff; }
.signal-select-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: max(100%, 220px);
  max-width: min(340px, calc(100vw - 20px));
  max-height: min(320px, 55vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px; /* breathing room between hover/selected option bubbles */
  background: var(--select-menu-bg);
  color: var(--select-ink);
  border: 1px solid var(--select-border);
  border-radius: 13px;
  box-shadow: var(--select-shadow);
  z-index: 80;
  animation: signal-select-in .14s cubic-bezier(.2,.8,.2,1) both;
  scrollbar-width: thin;
}
.signal-select--right .signal-select-menu { left: auto; right: 0; }
.signal-select-option {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--select-ink);
  font: 500 12px/1.4 "Segoe UI", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  outline: 0;
  transition: background .12s, color .12s;
}
.signal-select-option.is-active:not(:disabled), .signal-select-option:hover:not(:disabled) {
  background: var(--select-hover);
}
.signal-select-option.is-selected:not(:disabled) {
  color: var(--select-active-ink);
  background: var(--select-active);
  font-weight: 700;
}
.signal-select-option:focus-visible { outline: 2px solid #7771ff; outline-offset: -2px; }
.signal-select-option:disabled { cursor: not-allowed; opacity: .52; }
.signal-select-option-content { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.signal-select-option-label { overflow-wrap: anywhere; }
.signal-select-option-description { color: var(--select-muted); font: 400 10px/1.45 "Segoe UI", Arial, sans-serif; }
.signal-select-check { flex: 0 0 auto; color: var(--select-active-ink); }
@keyframes signal-select-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Same controls in every region, with height tuned to their context. */
.signal-select--sidebar {
  --select-bg: #222431;
  --select-border: #45495e;
  --select-ink: #f5f5ff;
  --select-muted: #c8c9df;
  --select-menu-bg: #1e202c;
  --select-hover: #353451;
  --select-active: #39345f;
  --select-active-ink: #e0dfff;
  --select-shadow: 0 18px 36px #05060c80;
  margin: 0 0 10px;
}
.signal-select--sidebar .signal-select-trigger { min-height: 43px; border-radius: 9px; }
.signal-select--sidebar .signal-select-icon { color: #b6b1ff; }
.signal-select--sidebar .signal-select-menu { min-width: 100%; }
.signal-select--sidebar .signal-select-option-description { color: #bbbed3; }
.signal-select--toolbar { width: auto; min-width: 155px; }
.signal-select--toolbar .signal-select-trigger { min-height: 38px; padding: 0 11px; border-radius: 8px; font-size: 11px; }
.signal-select--toolbar .signal-select-menu { min-width: 245px; }
.signal-select--form .signal-select-trigger { min-height: 44px; }
.signal-select--header { width: auto; min-width: 130px; }
.signal-select--header .signal-select-trigger { min-height: 36px; border-radius: 9px; font-size: 11px; padding: 0 9px; }
.signal-select--header .signal-select-menu { min-width: 230px; }
.ask-controls .ask-field { min-width: 0; }
.ask-controls .ask-field > label { display: block; font-size: 10px; font-weight: 800; margin: 0 0 7px; }
.filter-toolbar, .topbar, .section-heading { position: relative; }
.topbar { z-index: 10; }
.filter-toolbar .signal-select:has(.signal-select-menu) { z-index: 30; }

/* The black sidebar remains black in both appearance modes. */
html[data-theme="dark"] .signal-select:not(.signal-select--sidebar) {
  --select-bg: #171c2b;
  --select-border: #505771;
  --select-ink: #f0f1ff;
  --select-muted: #bac3df;
  --select-menu-bg: #23283a;
  --select-hover: #343651;
  --select-active: #34315f;
  --select-active-ink: #d1ccff;
  --select-shadow: 0 18px 42px #050711ac;
}
html[data-theme="dark"] .signal-select-option:focus-visible,
html[data-theme="dark"] .signal-select-trigger:focus-visible { outline-color: #bbb6ff; }
html[data-theme="dark"] .signal-select-trigger:hover:not(:disabled),
html[data-theme="dark"] .signal-select-trigger.is-open { border-color: #928dff; box-shadow: 0 0 0 3px #928dff25; }
html[data-theme="dark"] .signal-select-icon { color: #b7b2ff; }

@media (max-width: 750px) {
  .sidebar .signal-select--sidebar { display: inline-block; vertical-align: top; width: 47%; margin: 0 1% 9px; }
  .signal-select--toolbar { min-width: 138px; }
  .signal-select--header { min-width: 106px; }
  .signal-select--header .signal-select-trigger { min-height: 34px; }
  .signal-select--form .signal-select-menu { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-select-menu { animation: none; }
  .signal-select-trigger, .signal-select-chevron, .signal-select-option { transition: none; }
}

/* V12.13: claim-screening disclosures (base Increment 12 styles remain unchanged). */
.verification-summary {
  display:flex;align-items:flex-start;gap:10px;
  padding:11px 13px;margin:18px 0;
  background:var(--signal-blue-light,#f3f3ff);
  border:1px solid var(--signal-blue-border,#dfdefb);
  border-radius:8px;color:var(--signal-blue,#3430ff);
  font-size:12px;line-height:1.6;
}
.verification-summary svg{flex-shrink:0;margin-top:2px}
.verification-audit{margin-top:18px;border-top:1px solid #a7aabe55;padding-top:14px;font-size:12px}
.verification-audit summary{cursor:pointer;color:var(--signal-blue,#3430ff);font-weight:700;list-style-position:inside}
.verification-audit ol{padding:0;margin:13px 0 0;list-style:none;display:grid;gap:9px}
.verification-audit li{border:1px solid #989bbb50;background:transparent;border-radius:7px;padding:11px 12px}
.verification-audit-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.verification-audit-top span{font-size:10px;text-transform:capitalize;font-weight:700}
.verification-visible{color:#7671f2}
.verification-withheld{color:#cd7382}
.verification-audit p{line-height:1.55;white-space:pre-wrap;margin:7px 0}
.verification-audit small{color:inherit;opacity:.75;line-height:1.6;display:block}


/* V12.14 — review-grouped evidence, scope checking, and relevance notices. */
.retrieval-list { align-items: start; }
.retrieved-review-card { display: flex; flex-direction: column; gap: 0; }
.retrieved-review-card > .retrieved-top { margin-bottom: 8px; }
.retrieved-quote { padding: 12px 0 8px; border-top: 1px solid var(--signal-blue-border,#e3e5f1); }
.retrieved-quote-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 10px; color: var(--select-muted,#7a8199); }
.retrieved-citation { display: inline-flex; padding: 4px 7px; border-radius: 5px; font-weight: 800; color: #3430ff; background: #ecebff; }
.retrieved-quote p { overflow-wrap: anywhere; margin: 10px 0; }
.retrieved-review-card .retrieved-foot { border-top: 0; padding-top: 2px; }
.relevance-disclosure, .scope-mismatch-notice {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; margin: 14px 0;
  border: 1px solid #d5d5fa; border-radius: 9px; background: #f4f4ff;
  color: #36318e; font: 500 12px/1.55 "Segoe UI", Arial, sans-serif;
}
.relevance-disclosure svg, .scope-mismatch-notice svg { flex: 0 0 auto; margin-top: 2px; }
.relevance-disclosure--warning, .scope-mismatch-notice { background: #f4f2ff; }
.scope-mismatch-notice { flex-wrap: wrap; align-items: center; }
.scope-mismatch-notice > span { flex: 1 1 260px; }
.scope-mismatch-notice button { background: #3430ff; color: white; border: 0; border-radius: 7px; padding: 7px 11px; font-size: 11px; font-weight: 700; cursor: pointer; }
.relevance-mode-note { padding: 0 8px; line-height: 1.5; }
html[data-theme="dark"] .relevance-disclosure, html[data-theme="dark"] .scope-mismatch-notice {
  background: #252744; border-color: #50518a; color: #e0dfff;
}
html[data-theme="dark"] .retrieved-citation { background: #33305e; color: #dbd9ff; }
html[data-theme="dark"] .retrieved-quote { border-color: #363d55; }
html[data-theme="dark"] .scope-mismatch-notice button { background: #6763ff; color: #fff; }

.comparison-col .retrieval-list { grid-template-columns: 1fr; }

/* V14.1: isolated account entry and discreet project controls; V12 design retained. */
.v14-auth-screen { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:28px; background:var(--page-bg,#f7f8fb); color:var(--text,#161a24); }
.v14-auth-card { width:min(100%,450px); padding:clamp(28px,4vw,48px); background:var(--surface,#fff); border:1px solid rgba(110,126,145,.22); border-radius:16px; display:flex; flex-direction:column; gap:12px; box-shadow:0 22px 60px rgba(14,30,43,.065); }
.v14-auth-logo { max-width:145px; max-height:50px; object-fit:contain; object-position:left; margin-bottom:23px; }
.v14-auth-eyebrow { text-transform:uppercase; font-size:11px; font-weight:700; letter-spacing:.14em; color:#299c9b; }
.v14-auth-card h1 { font-size:clamp(24px,3.8vw,34px); line-height:1.15; margin:0; }
.v14-auth-card p { margin:2px 0 16px; opacity:.7; line-height:1.55; }
.v14-auth-card label { font-size:13px; font-weight:650; margin-top:6px; }
.v14-auth-card input,.v14-mini-form input,.v14-mini-form textarea { border:1px solid #aeb8c5; border-radius:7px; padding:11px; min-width:0; width:100%; background:var(--surface,#fff); color:var(--text,#161a24); }
.v14-auth-card button,.v14-mini-form button { cursor:pointer; }
.v14-primary { margin-top:18px; padding:13px 16px; border:0; background:#179b9d; border-radius:7px; color:white; font-weight:750; }
.v14-primary:disabled { opacity:.6; cursor:wait; }
.v14-switch { background:transparent; border:0; color:inherit; font-size:13px; text-decoration:underline; padding:8px; }
.v14-auth-card small { font-size:11px; opacity:.6; line-height:1.5; margin-top:12px; }
.v14-project-heading { display:flex; align-items:center; justify-content:space-between; }
.v14-text-action { border:0; background:transparent; color:inherit; cursor:pointer; opacity:.8; font-size:12px; text-align:left; }
.v14-mini-form { display:flex; flex-direction:column; gap:8px; margin:8px 0 12px; }
.v14-mini-form button { border:1px solid rgba(100,145,160,.5); padding:7px; background:rgba(41,156,155,.12); border-radius:6px; color:inherit; }
.v14-mini-form label,.v14-mini-form small { font-size:11px; line-height:1.5; opacity:.8; }
.v14-account-status { display:flex; gap:9px; align-items:center; min-width:0; margin-bottom:8px; font-size:11px; }
.v14-account-status span:last-child { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.v14-signout { display:block; width:100%; margin-top:10px; padding:9px; border:1px solid rgba(110,126,145,.25); background:transparent; color:inherit; border-radius:6px; text-align:left; cursor:pointer; }

.v14-share-toggle { margin:8px 0 6px; }
.v14-mini-form select { background:var(--surface,#fff); color:var(--text,#161a24); border:1px solid #aeb8c5; border-radius:7px; padding:8px; width:100%; }

/* V14.2: designer-approved primary identity. Brand blue never substitutes for
   semantic warnings, success or physical-safety statuses. */
:root { --signal-blue:#3430FF; --signal-blue-hover:#2420df; --signal-blue-border:#d3d1ff; --signal-blue-light:#f4f4ff; }
.v14-auth-eyebrow { color: #3430FF; }
.v14-primary, .v142-action { background:#3430FF; color:white; }
.v14-primary:hover, .v142-action:hover:not(:disabled) { background:#2420df; }
.v14-auth-logo { display:block; width:218px; max-width:100%; height:auto; max-height:initial; margin-bottom:20px; object-fit:contain; object-position:left; }
.brand-logo { max-width:185px; width:100%; }
.sidebar .nav-link.active { background:#3430FF; color:white; }
.sidebar .nav-link.active svg { color:white; }
.sidebar .nav-link:hover:not(.active){background:#2c2c55;color:#fff}
.sidebar .signal-select--sidebar { --select-active:#3430FF; --select-active-ink:#fff; }
.sidebar .signal-select--sidebar .signal-select-icon { color:#9593ff; }
.v14-mini-form button {background:#3430FF;color:#fff;border:1px solid #3430FF;}
.v14-auth-card input:focus-visible, .v14-mini-form input:focus-visible {outline:2px solid #3430FF;outline-offset:2px}

/* Product discovery lives in the existing workspace, not a replacement shell. */
.v142-discovery { max-width:1190px; margin:0 auto 65px; }
.v142-intro {padding:28px 0 22px;max-width:770px}
.v142-kicker {font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:850;color:#3430FF;display:inline-flex;align-items:center;gap:7px}
.v142-intro h1 {font-size:clamp(31px,3.4vw,48px);font-family:'Special Gothic','Segoe UI',sans-serif;letter-spacing:-.035em;line-height:1.14;margin:15px 0 12px}
.v142-intro p {font-size:13px;line-height:1.85;color:var(--text-muted,#6f7486);margin:0 0 22px}
.v142-notice,.v142-completion {display:flex;align-items:flex-start;gap:10px;background:#f1f0ff;border:1px solid #dbd9ff;border-radius:9px;color:#424069;font-size:11px;line-height:1.6;padding:11px 14px}
.v142-notice svg,.v142-completion svg {color:#3430FF;flex-shrink:0}
.v142-search {background:var(--surface,#fff);border:1px solid var(--border,#e0e3e9);padding:23px;border-radius:14px;box-shadow:0 8px 30px #17163408}
.v142-search>label {font-size:12px;font-weight:800;display:block;margin-bottom:10px}
.v142-query-row {display:flex;gap:10px}
.v142-query {display:flex;align-items:center;gap:9px;border:1px solid #cbd0d9;border-radius:8px;min-height:51px;padding:0 13px;flex:1;min-width:0;background:var(--surface,#fff)}
.v142-query svg {color:#888cac;flex-shrink:0}.v142-query input {width:100%;height:46px;min-width:0;background:none;border:0;color:var(--text,#202333);font-size:13px;outline:0}
.v142-query:focus-within {outline:2px solid #3430FF55;border-color:#3430FF}
.v142-action {border:0;border-radius:8px;padding:0 19px;white-space:nowrap;font-size:12px;font-weight:800;display:flex;gap:9px;align-items:center;justify-content:center;cursor:pointer}
.v142-action:disabled,.v142-product button:disabled {opacity:.45;cursor:not-allowed}
.v142-search-options {display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:15px 0}
.v142-search-options label {font-size:11px;color:var(--text-muted,#6a7184);display:flex;gap:10px;align-items:center}
.v142-search-options select,.v142-depth select,.v142-history {max-width:100%;font-size:11px;border:1px solid #ccd0da;border-radius:7px;background:var(--surface,#fff);color:var(--text,#222);padding:9px 10px}
.v142-consent {font-size:11px;line-height:1.55;color:var(--text,#313342);display:flex;align-items:flex-start;gap:8px;margin:14px 0}
.v142-consent input {accent-color:#3430FF}
.v142-budget {display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.v142-budget span {background:#f2f2f6;border-radius:6px;padding:6px 9px;color:#595d7a;font-size:10px}
.v142-search small,.v142-depth small {font-size:10px;line-height:1.65;color:var(--text-muted,#81869e);display:block;margin-top:12px}
.v142-message {display:flex;align-items:center;gap:9px;padding:12px 15px;margin-top:16px;border-radius:8px;background:#f0f0ff;border:1px solid #dddafe;color:#3430a9;font-size:12px}
.v142-error {color:#a53744;background:#fff1f2;border-color:#f5cbd0}
.v142-starter {border:1px dashed #c5c7d8;padding:42px 25px;text-align:center;border-radius:12px;margin-top:23px;color:#777b91}.v142-starter svg {color:#3430FF}.v142-starter h2 {font-size:16px;color:var(--text,#252633);margin:16px 0 8px}.v142-starter p {font-size:12px;line-height:1.7;max-width:480px;margin:0 auto}
.v142-results {margin-top:34px}
.v142-section-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:18px}.v142-section-heading h2 {font-size:23px;margin:6px 0 0;letter-spacing:-.025em}
.v142-fixture {padding:10px 13px;background:#fff8df;border:1px solid #e9dbaa;color:#745c21;border-radius:7px;font-size:11px;margin:0 0 13px}
.v142-depth {display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 20px;font-size:11px}.v142-depth label {font-weight:750}.v142-depth small {margin:0}
.v142-products {display:grid;grid-template-columns:repeat(auto-fill,minmax(246px,1fr));gap:13px}
.v142-product {display:flex;flex-direction:column;background:var(--surface,#fff);border:1px solid var(--border,#e4e4e9);border-radius:11px;padding:19px;min-height:215px}
.v142-product-type {font-size:9px;letter-spacing:.12em;font-weight:850;color:#3430FF}
.v142-product h3 {font-size:16px;line-height:1.45;margin:13px 0 8px;overflow-wrap:anywhere}
.v142-product p {color:var(--text-muted,#777b8c);font-size:11px;margin:0 0 15px}
.v142-product-stats {display:grid;gap:5px;font-size:10px;color:#71788f;margin-top:auto;line-height:1.5}
.v142-product button {display:flex;justify-content:center;align-items:center;gap:9px;border:1px solid #3430FF;color:#3430FF;background:transparent;border-radius:7px;padding:11px 10px;font-size:11px;font-weight:800;cursor:pointer;margin-top:18px}
.v142-product button:hover:not(:disabled) {background:#eeedff}
.v142-pending {font-size:12px;color:var(--text,#50546e);padding:15px;background:var(--surface,#fff);border-radius:8px}.v142-pending button,.v142-collection button {color:#3430FF;font-size:11px;font-weight:750;cursor:pointer;background:none;border:0;display:inline-flex;gap:5px;align-items:center}
.v142-collections {display:grid;gap:8px}.v142-collection {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--border,#e0e2e7);background:var(--surface,#fff);border-radius:8px;font-size:12px}.v142-collection span {display:grid;gap:7px}.v142-collection small {font-size:10px;color:#757a94}.v142-collection .v142-warning {color:#b33b49}
.v142-completion {margin-top:13px}
.v142-empty {padding:20px;font-size:12px;color:#6d758a}
@media(max-width:700px) {.v142-query-row{flex-direction:column}.v142-action{padding:15px}.v142-search{padding:17px}.v142-intro{padding-top:10px}.v142-products{grid-template-columns:1fr}}
html[data-theme="dark"] .v142-budget span,html[data-theme="dark"] .v142-notice,html[data-theme="dark"] .v142-completion {background:#262448;color:#d2d1ff;border-color:#4943ae}
html[data-theme="dark"] .v142-search,html[data-theme="dark"] .v142-query,html[data-theme="dark"] .v142-product,html[data-theme="dark"] .v142-history,html[data-theme="dark"] .v142-depth select,html[data-theme="dark"] .v142-search-options select {background:#1a2030;color:#f1f3fb;border-color:#4b506c}
html[data-theme="dark"] .v142-fixture {background:#413419;color:#f5d37b;border-color:#776030}


/* V14.3: keep designer-blue #3430FF in light mode; restore accessible lavender
   for text and interactive controls in dark mode. Original sidebar logo is a
   separate asset. These rules intentionally FOLLOW all V14.2 overrides. */
:root, html[data-theme="light"] {
  --signal-blue:#3430FF;
  --signal-blue-hover:#2420df;
  --signal-blue-border:#d3d1ff;
}
html[data-theme="dark"] {
  --signal-blue:#b3b0ff;
  --signal-blue-hover:#dcd9ff;
  --signal-blue-border:#5c58a1;
  --signal-blue-light:#282748;
}
html[data-theme="dark"] .sidebar .nav-link.active {
  background:#393758; color:#f5f3ff;
  box-shadow:inset 3px 0 0 #b3b0ff;
}
html[data-theme="dark"] .sidebar .nav-link.active svg,
html[data-theme="dark"] .sidebar .signal-select--sidebar .signal-select-icon,
html[data-theme="dark"] .v142-kicker,
html[data-theme="dark"] .v142-product-type,
html[data-theme="dark"] .v142-starter svg,
html[data-theme="dark"] .v142-pending button,
html[data-theme="dark"] .v142-collection button,
html[data-theme="dark"] .v142-notice svg,
html[data-theme="dark"] .v142-completion svg { color:#b3b0ff; }
html[data-theme="dark"] .sidebar .signal-select--sidebar {
  --select-active:#393758; --select-active-ink:#f5f3ff;
}
html[data-theme="dark"] .v142-action,
html[data-theme="dark"] .v14-mini-form button { background:#aaa6ff; color:#111326; border-color:#aaa6ff; }
html[data-theme="dark"] .v142-action:hover:not(:disabled),
html[data-theme="dark"] .v14-mini-form button:hover:not(:disabled) { background:#cecaff; color:#101125; }
html[data-theme="dark"] .v142-product button { color:#c9c6ff; border-color:#aaa6ff; }
html[data-theme="dark"] .v142-product button:hover:not(:disabled) { background:#393758; color:#fff; }
html[data-theme="dark"] .v142-query:focus-within { outline:2px solid #aaa6ff66; border-color:#aaa6ff; }
html[data-theme="dark"] .v142-consent input { accent-color:#aaa6ff; }
html[data-theme="dark"] .v142-message,
html[data-theme="dark"] .v142-notice,
html[data-theme="dark"] .v142-completion {
  background:#292745; border-color:#525083; color:#e9e6ff;
}
html[data-theme="dark"] .v142-collection,
html[data-theme="dark"] .v142-pending,
html[data-theme="dark"] .v142-starter {
  background:#1d2332; border-color:#464b62; color:#e8e9f7;
}
html[data-theme="dark"] .v142-collection small,
html[data-theme="dark"] .v142-product-stats,
html[data-theme="dark"] .v142-collection span b { color:#d3d6ea; }
html[data-theme="dark"] .v142-budget span { background:#2b2b43; color:#e4e2ff; }
html[data-theme="dark"] .v142-query input,
html[data-theme="dark"] .v142-search > label { color:#f1f2fb; }
html[data-theme="dark"] .v142-search-options select,
html[data-theme="dark"] .v142-depth select,
html[data-theme="dark"] .v142-history { color:#f1f2fb; }
html[data-theme="dark"] .v142-error {background:#3c2432;border-color:#a65b77;color:#ffced9;}
html[data-theme="dark"] .v142-fixture {background:#42351d;color:#ffde91;}
/* Auth always uses the uploaded main blue logo, including for dark OS themes. */
.v14-auth-logo { max-width:100%; }
/* V14.3 analysis staging, integrated into existing discovery panel. */
.v143-prepare { margin-top:34px; padding:24px; background:var(--surface,#fff); border:1px solid var(--border,#e3e6ef); border-radius:12px; }
.v143-prepare h2 { font-size:22px; margin:7px 0 8px; }
.v143-prepare p { color:var(--text-muted,#656c81); font-size:12px; line-height:1.7; }
.v143-form {display:grid;gap:13px;margin-top:17px}
.v143-form label {display:grid;gap:7px;font-size:12px;font-weight:720;color:var(--text,#202333)}
.v143-form select,.v143-form input,.v143-form textarea { width:100%;padding:11px 12px;background:var(--surface,#fff);color:var(--text,#202333);border:1px solid var(--border,#ccd0dc);border-radius:7px; }
.v143-form textarea {min-height:86px;resize:vertical;line-height:1.55}
.v143-note {font-size:11px;line-height:1.65;color:var(--text-muted,#666d80);margin-top:9px}
.v143-summary {margin-top:13px;padding:13px;border:1px solid #d2d0fb;background:#f4f3ff;border-radius:8px; font-size:12px;color:#3a3866;line-height:1.65}
.v143-summary button {margin:10px 0 0;border:1px solid #3430FF;background:#3430FF;color:white;padding:10px 14px;border-radius:7px;font-weight:780;display:block}
.v143-choices {display:flex;gap:13px;align-items:center;flex-wrap:wrap}
.v143-choices label {display:flex;align-items:center;gap:8px}
.v143-choices input {width:auto}
html[data-theme="dark"] .v143-prepare {background:#1d2332;border-color:#464b62;color:#f1f2fb}
html[data-theme="dark"] .v143-summary {background:#292745;border-color:#55518f;color:#eae7ff}
html[data-theme="dark"] .v143-summary button {background:#aaa6ff;color:#111326;border-color:#aaa6ff}
@media(max-width:700px){.v143-prepare{padding:17px}}

/* Keep the primary blue sign-in wordmark readable regardless of stored theme. */
.v14-auth-screen { background:#f7f8fc; color:#1d2030; }
.v14-auth-screen .v14-auth-card { background:#fff; color:#1d2030; border-color:#d9dce8; }
.v14-auth-screen .v14-auth-card input { background:#fff; color:#202333; border-color:#b6bfd0; }
.v14-auth-screen .v14-auth-card input:focus-visible { outline:2px solid #3430FF; }
.v14-auth-screen .v14-primary { background:#3430FF; color:#fff; }
.v14-auth-screen .v14-primary:hover { background:#2420df; }

/* V14.4: Section 03 uses the same editorial heading and spacing as 01/02.
   Input fields remain naturally bounded, without an enclosing lone card. */
.v143-prepare.v142-results {
  margin-top:38px; padding:0; background:none; border:0; border-radius:0;
  box-shadow:none;
}
.v143-prepare .v142-section-heading {margin-bottom:12px}
.v143-prepare .v142-section-heading h2 {font-size:23px;margin:6px 0 0;letter-spacing:-.025em}
.v143-prepare > p {max-width:780px;font-size:12px;line-height:1.85}
.v143-form {max-width:820px;gap:16px;margin-top:22px}
.v143-form textarea {background:var(--surface,#fff)}
.v143-form label {max-width:820px}
.v143-form > .v142-action {justify-self:start;min-height:46px}
.v143-summary {max-width:820px}
html[data-theme="dark"] .v143-prepare.v142-results {background:none;border:0;color:var(--text,#fff)}
/* The eventual handoff is a *separate* fourth section, not an extra card
   pretending analysis has already happened. */
.v144-handoff {padding-bottom:34px}
.v144-refresh {display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border,#d5d8e4);background:var(--surface,#fff);color:var(--text,#333);
  font-size:11px;font-weight:700;padding:9px 12px;border-radius:8px;cursor:pointer}
.v144-refresh:disabled {opacity:.55;cursor:wait}
.v144-intro {font-size:12px;line-height:1.8;color:var(--text-muted,#656d81);max-width:780px}
.v144-reports {display:grid;gap:12px;margin-top:16px}
.v144-report {border:1px solid var(--border,#e0e4ec);background:var(--surface,#fff);border-radius:11px;
  padding:16px 18px;display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap}
.v144-report > div {display:grid;gap:6px}
.v144-report strong {font-size:14px}.v144-report small {color:var(--text-muted,#6d7284);font-size:11px;line-height:1.55}
.v144-report .v142-action {padding:12px 17px;min-height:44px}
.v144-waiting {display:flex;align-items:flex-start;gap:13px;padding:15px 0;border-top:1px solid var(--border,#dedfe7)}
.v144-waiting > svg {color:var(--brand,#3430FF);flex-shrink:0}
.v144-waiting strong {font-size:12px}
.v144-waiting p {color:var(--text-muted,#717688);font-size:11px;line-height:1.75;margin:8px 0 0;max-width:750px}
.v144-workspace-preview {font-style:italic}
.v144-archive {margin-top:19px;padding-top:16px;border-top:1px solid var(--border,#dde1ea)}
.v144-archive p {font-size:11px;line-height:1.7;color:var(--text-muted,#74788c)}
.v144-archive-actions {display:flex;gap:8px;flex-wrap:wrap}
.v144-archive-actions button {display:inline-flex;gap:7px;align-items:center;border:1px solid var(--border,#ccd2df);
 background:var(--surface,#fff);color:var(--text,#212433);font-weight:750;font-size:11px;border-radius:8px;padding:10px 12px;cursor:pointer}
.v144-archive-actions button:hover:not(:disabled),.v144-refresh:hover:not(:disabled) {border-color:var(--brand,#3430FF)}
.v144-archive-actions button:disabled {opacity:.55}
html[data-theme="dark"] .v144-waiting > svg {color:#b3b0ff}
@media(max-width:700px) {
 .v143-prepare.v142-results {padding:0}
 .v144-report {align-items:stretch}
 .v144-report .v142-action {width:100%}
 .v144-handoff .v142-section-heading {align-items:flex-start}
}

/* V14.5 — Dark-mode contrast repair for research preparation.
   Do not apply light-mode dark labels to dark canvas. Preserve the lavender
   accent in dark mode and original #3430FF in light mode. */
html[data-theme="dark"] .v143-prepare .v143-form > label,
html[data-theme="dark"] .v143-prepare .v143-choices label,
html[data-theme="dark"] .v143-prepare .v145-admin-approve label { color:#edf0ff; }
html[data-theme="dark"] .v143-prepare > p,
html[data-theme="dark"] .v143-prepare .v143-note,
html[data-theme="dark"] .v143-prepare .v145-queue-help { color:#bac5df; }
html[data-theme="dark"] .v143-prepare .v143-form select,
html[data-theme="dark"] .v143-prepare .v143-form textarea { background:#fefeff; color:#202336; border-color:#c6cadd; }
html[data-theme="dark"] .v143-prepare .v143-form select:focus-visible,
html[data-theme="dark"] .v143-prepare .v143-form textarea:focus-visible { outline-color:#b3b0ff; }
html[data-theme="dark"] .v143-prepare .v143-choices input,
html[data-theme="dark"] .v145-admin-approve input { accent-color:#b3b0ff; }
html[data-theme="dark"] .v144-waiting strong,
html[data-theme="dark"] .v144-archive strong { color:#f2f3ff; }
html[data-theme="dark"] .v144-waiting p,
html[data-theme="dark"] .v144-archive p,
html[data-theme="dark"] .v144-intro { color:#bfc8e0; }
/* V14.5 — visually lightweight, editorial job queue (not another boxed step). */
.v145-queue {max-width:820px;margin:23px 0 0;border-top:1px solid var(--border,#dadddf);padding-top:16px}
.v145-queue-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.v145-queue-head>strong{font-size:13px}
.v145-queue-help{font-size:11px;line-height:1.7;color:#626b80}
.v145-job{padding:14px 0;border-bottom:1px solid var(--border,#dadddf);display:flex;gap:15px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.v145-job strong{display:block;text-transform:capitalize;font-size:12px}
.v145-job small{display:block;font-size:11px;color:#677187;margin:6px 0;overflow-wrap:anywhere}
.v145-job-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.v145-admin-approve{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.v145-admin-approve label{display:flex;align-items:center;gap:7px;font-size:11px}
.v145-worker-note{margin-top:12px;font-size:11px;line-height:1.7;color:#6d6d85}
.v145-job .v145-job-alert{color:#a44159;font-weight:700}
html[data-theme="dark"] .v145-queue{border-color:#424a66}
html[data-theme="dark"] .v145-queue-head>strong,
html[data-theme="dark"] .v145-job strong{color:#edf0ff}
html[data-theme="dark"] .v145-job{border-color:#424a66}
html[data-theme="dark"] .v145-job small,
html[data-theme="dark"] .v145-worker-note{color:#bec7e1}
html[data-theme="dark"] .v145-job .v145-job-alert{color:#ffb6c8}

.v145-estimate {font-size:11px;line-height:1.7;color:#555a75;max-width:400px}
html[data-theme="dark"] .v145-estimate{color:#cbd3ea}


/* V14.6 — Intake uses the SAME field system as Ask the Evidence.
   Its SignalSelect menus inherit V12 gridwork.css .ask-controls skin.
   Light mode uses the existing #3430FF brand; dark controls use charcoal
   backgrounds and the accessible lavender accent. */
.v146-form { max-width:820px; gap:20px; }
.v146-form .ask-controls.v146-single-select { display:block; margin:0; min-width:0; }
.v146-form .ask-controls.v146-single-select .ask-field { position:relative; min-width:0; }
.v146-form .ask-controls.v146-single-select .ask-field > label,
.v146-form .v146-field > label { display:block; margin:0 0 10px; font-size:12px; font-weight:750; letter-spacing:0; color:#343747; }
.v146-form .v146-field { min-width:0; }
.v146-form .v146-textarea { display:block; width:100%; min-height:118px;
  padding:16px; border:1px solid #dfe0e4; border-radius:4px; background:#fafafa;
  color:#373a48; font-size:16px; line-height:1.55; resize:vertical;
}
.v146-form .v146-textarea:focus-visible { outline:2px solid #3430FF; outline-offset:2px; }
.v146-form .ask-controls .signal-select--form { width:100%; }
.v146-form .ask-controls .signal-select--form .signal-select-trigger { width:100%; min-height:50px; font-size:14px; padding:0 16px; }
.v146-form .v143-choices label { color:#343747; font-size:12px; font-weight:650; }
.v146-action-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:2px 0 4px; }
.v146-main-action.primary-button { display:inline-flex; width:auto; max-width:100%; align-items:center;
  justify-content:center; gap:12px; min-height:50px; white-space:normal;
  padding:14px 22px; border-radius:7px; font-size:13px; font-weight:800;
  line-height:1.4; background:#3430FF; color:white; text-align:center; }
.v146-main-action.primary-button:hover:not(:disabled) { background:#2420df; }
.v146-main-action.primary-button:disabled { opacity:.48; }
.v146-preview-action.v144-refresh { min-height:50px; padding:13px 17px; font-size:12px; gap:10px; }
.v146-request-action.primary-button { margin-top:14px; margin-bottom:8px; }
.v146-source-preview { max-width:820px; margin-top:25px; border-top:1px solid #dedfe7; padding-top:18px; }
.v146-source-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; }
.v146-source-head strong { font-size:14px; }
.v146-source-head span,.v146-source-preview > p { color:#6d738a; font-size:11px; line-height:1.7; }
.v146-source-item { border:1px solid #e0e3ed; background:#fcfcfe; padding:15px 18px; margin-top:10px; border-radius:7px; }
.v146-source-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; color:#22243a; font-size:12px; }
.v146-source-meta span,.v146-source-item small { font-size:10px; color:#66708a; overflow-wrap:anywhere; }
.v146-source-item blockquote { margin:12px 0; border-left:2px solid #3430FF; padding-left:12px; white-space:pre-wrap; line-height:1.65; font-size:12px; color:#3e435b; }
.v146-source-item a { color:#3430FF; }
html[data-theme="dark"] .v146-form .ask-controls.v146-single-select .ask-field > label,
html[data-theme="dark"] .v146-form .v146-field > label,
html[data-theme="dark"] .v146-form .v143-choices label { color:#edf0ff; }
html[data-theme="dark"] .v146-form .v146-textarea { background:#161923; border-color:#4b526b; color:#f1f0f6; }
html[data-theme="dark"] .v146-form .v146-textarea:focus-visible { outline-color:#b3b0ff; }
html[data-theme="dark"] .v146-main-action.primary-button { background:#b3b0ff; color:#15172a; }
html[data-theme="dark"] .v146-main-action.primary-button:hover:not(:disabled) { background:#d0cdff; }
html[data-theme="dark"] .v146-source-preview { border-color:#4b526b; }
html[data-theme="dark"] .v146-source-head span,
html[data-theme="dark"] .v146-source-preview > p { color:#bfc8de; }
html[data-theme="dark"] .v146-source-item { background:#1b2030; border-color:#434b62; }
html[data-theme="dark"] .v146-source-meta { color:#f1f2ff; }
html[data-theme="dark"] .v146-source-meta span,
html[data-theme="dark"] .v146-source-item small { color:#bfc8dc; }
html[data-theme="dark"] .v146-source-item blockquote { color:#e5e9f8; border-color:#b3b0ff; }
html[data-theme="dark"] .v146-source-item a { color:#c5c2ff; }
@media(max-width:700px){ .v146-action-row > button { width:100%; } }


/* V14.7 — designer-first onboarding. No jargon, no light fields in dark mode.
   The two grouping choices are the entire step 03 form. */
.v147-intake { max-width:900px; }
.v147-intake .v147-product-summary { margin:10px 0 24px; font-size:13px; line-height:1.6; color:#5d6479; }
.v147-intake .v147-product-summary strong { color:#22263b; }
.v147-form { max-width:820px; }
.v147-options { padding:0; margin:0 0 22px; border:0; min-width:0; }
.v147-options legend { font-weight:800; font-size:14px; color:#292e40; padding:0; margin-bottom:13px; }
.v147-option { display:flex; align-items:flex-start; gap:15px; padding:18px 17px;
  border:1px solid #dadee9; background:transparent; cursor:pointer; margin-top:-1px; }
.v147-option:first-of-type { margin-top:0; }
.v147-option.selected { border-color:#3430FF; position:relative; z-index:1; background:rgba(52,48,255,.035); }
.v147-option input { accent-color:#3430FF; width:18px; height:18px; flex:0 0 auto; margin:2px 0 0; }
.v147-option span { display:block; min-width:0; }
.v147-option strong { display:block; color:#22263b; font-size:14px; line-height:1.4; }
.v147-option small { display:block; margin-top:5px; color:#69718a; font-size:12px; line-height:1.6; }
.v147-custom-wrap { margin:0 0 22px; }
.v147-custom-wrap > label { display:block; margin-bottom:10px; font-size:13px; font-weight:800; color:#30364a; }
.v147-custom-wrap > small { color:#69718a; font-size:11px; line-height:1.6; display:block; margin-top:9px; }
.v147-custom { display:block; width:100%; resize:vertical; min-height:125px; padding:17px;
  font-size:16px; line-height:1.55; border-radius:3px; border:1px solid #dfe0e4;
  background:#fafafa; color:#373a48; }
.v147-custom:focus-visible { outline:2px solid #3430FF; outline-offset:2px; }
.v147-batch-note { color:#6f7790; font-size:11px; line-height:1.6; margin:0 0 18px; }
.v147-analyze.primary-button { display:inline-flex; justify-content:center; align-items:center;
  gap:14px; padding:16px 23px; min-height:53px; font-size:13px; font-weight:800;
  border-radius:6px; background:#3430FF; color:#fff; }
.v147-analyze.primary-button:hover:not(:disabled) { background:#2420df; }
.v147-message { display:flex; align-items:center; gap:11px; margin:18px 0;
  color:#34304f; background:#eeeeff; border:1px solid #c6c3ff; padding:13px 15px; font-size:12px; }
.v147-admin { margin-top:25px; border-top:1px solid #dadee9; padding-top:13px; }
.v147-admin summary { cursor:pointer; font-size:11px; font-weight:700; color:#727894; }
.v147-admin-job { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:12px; }
.v147-admin-job label { display:flex; gap:8px; align-items:center; }
.v147-admin-job p,.v147-admin > p { font-size:11px; line-height:1.6; color:#707890; }
html[data-theme="dark"] .v147-intake .v147-product-summary { color:#b8c3dd; }
html[data-theme="dark"] .v147-intake .v147-product-summary strong { color:#f5f5ff; }
html[data-theme="dark"] .v147-options legend { color:#edf0ff; }
html[data-theme="dark"] .v147-option { border-color:#454c63; }
html[data-theme="dark"] .v147-option.selected { border-color:#b3b0ff; background:rgba(179,176,255,.08); }
html[data-theme="dark"] .v147-option input { accent-color:#b3b0ff; }
html[data-theme="dark"] .v147-option strong { color:#f3f3ff; }
html[data-theme="dark"] .v147-option small { color:#c1c9de; }
html[data-theme="dark"] .v147-custom-wrap > label { color:#f0f0ff; }
html[data-theme="dark"] .v147-custom-wrap > small,html[data-theme="dark"] .v147-batch-note { color:#bdc7df; }
html[data-theme="dark"] .v143-prepare .v147-form textarea.v147-custom {
  background:#161b28; border-color:#4b526b; color:#edf0fc; }
html[data-theme="dark"] .v143-prepare .v147-form textarea.v147-custom::placeholder { color:#a4aec4; opacity:1; }
html[data-theme="dark"] .v147-custom:focus-visible { outline-color:#b3b0ff; }
html[data-theme="dark"] .v147-analyze.primary-button { background:#b3b0ff; color:#15172a; }
html[data-theme="dark"] .v147-analyze.primary-button:hover:not(:disabled) { background:#d0cdff; }
html[data-theme="dark"] .v147-message { background:#2d2d52; border-color:#6160a8; color:#eeeefe; }
html[data-theme="dark"] .v147-admin { border-color:#454c63; }
html[data-theme="dark"] .v147-admin summary,html[data-theme="dark"] .v147-admin-job p,
html[data-theme="dark"] .v147-admin > p { color:#c6cce0; }
@media(max-width:700px){.v147-analyze.primary-button{width:100%;}.v147-option{padding:15px 12px;}}

/* V14.8 · optional source import uses the existing form palette in both modes. */
.v148-import {margin:28px 0 6px;padding:18px 0;border-top:1px solid var(--line,#e2e4e9);
  border-bottom:1px solid var(--line,#e2e4e9)}
.v148-import summary{font-size:14px;font-weight:800;color:var(--text,#242737);cursor:pointer;
  padding:7px 0;list-style:revert}
.v148-upload-form{display:flex;flex-direction:column;align-items:stretch;gap:12px;max-width:700px;padding:19px 0 8px}
.v148-upload-form label{font-weight:800;color:var(--text,#30364a);font-size:13px}
.v148-upload-form input,.v148-upload-form select{width:100%;max-width:100%;font-size:14px;
  min-height:50px;padding:12px 15px;border:1px solid #dfe0e4;border-radius:7px;
  background:#fafafa;color:#252a3d;font-family:inherit}
.v148-upload-form input[type=file]{cursor:pointer}
.v148-upload-form small{line-height:1.7;color:#717993}
.v148-upload-form .primary-button{align-self:flex-start;min-width:190px;padding:14px 22px;margin-top:8px}
.v148-integrity-note{font-size:12px;line-height:1.7;color:#737b91;margin-top:20px}
html[data-theme="dark"] .v148-import{border-color:#3e4354}
html[data-theme="dark"] .v148-import summary,html[data-theme="dark"] .v148-upload-form label{color:#f0efff}
html[data-theme="dark"] .v148-upload-form input,html[data-theme="dark"] .v148-upload-form select{
  background:#181b25;color:#f0efff;border-color:#4c546e}
html[data-theme="dark"] .v148-upload-form small,html[data-theme="dark"] .v148-integrity-note{color:#b9c4de}
html[data-theme="dark"] .v148-upload-form .primary-button{background:#b3b0ff;color:#15172a}
.v148-issue-index{margin:28px 0 20px}
.v148-issue-index h2{font-size:21px;margin:0 0 8px}
.v148-issue-index>p{font-size:12px;line-height:1.6;color:#717990;margin:0 0 15px}
.v148-issue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.v148-issue-grid article{padding:17px;background:var(--card,#fff);border:1px solid #dfe0e7;border-radius:8px}
.v148-issue-grid strong{display:block;font-size:13px;line-height:1.5}
.v148-issue-grid small{display:block;font-size:11px;margin-top:8px;color:#747a90}
.v148-issue-grid p{font-size:12px;line-height:1.6;margin:12px 0 0}
html[data-theme="dark"] .v148-issue-index>p,html[data-theme="dark"] .v148-issue-grid small{color:#b8c3dd}
html[data-theme="dark"] .v148-issue-grid article{background:#1c202d;border-color:#495069;color:#f0efff}
.v148-job-progress{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:14px 0;
  padding:12px;border:1px solid #dfe1eb;border-radius:8px;font-size:12px}
.v148-job-progress code{font-size:11px;overflow-wrap:anywhere;color:#3430ff}
html[data-theme="dark"] .v148-job-progress{border-color:#4b526b;color:#eeeefb}
html[data-theme="dark"] .v148-job-progress code{color:#b3b0ff}

/* V14.9 local owner controls inherit the established form color tokens. */
.v149-operator { width:100%;display:block;margin-top:8px; }
.v149-operator-details { display:grid;gap:12px;max-width:760px;margin-top:12px; }
.v149-operator-details p { margin:0;color:var(--muted-text,inherit);line-height:1.6; }
.v149-confirm { display:grid;gap:10px;max-width:500px;padding:14px 0; }
.v149-confirm input { display:block;box-sizing:border-box;width:100%;max-width:450px;
  background:var(--input-bg,#f8f8fa);color:var(--text,#212230);
  border:1px solid var(--input-border,#a5a5b8);padding:12px 15px;font:inherit; }
.v149-confirm button { justify-self:start; min-height:44px;padding:10px 18px; }
.v149-log { min-width:0;max-width:100%; }
.v149-log pre {font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;
  max-height:180px;overflow:auto;padding:12px;background:rgba(110,110,150,.09);}
html[data-theme="dark"] .v149-confirm input {background:#161923;color:#f5f4ff;border-color:#575769;}

/* V14.10 — quiet designer-facing research handoff. The blue/lavender accents
   remain theme specific. No inherited white-button overrides or invisible labels. */
.v1410-handoff {
  --v1410-accent: #3430ff;
  --v1410-on-accent: #fff;
  --v1410-edge: #d9dbea;
  --v1410-ink: #222639;
  --v1410-secondary: #606c83;
  --v1410-soft: #f4f3ff;
  --v1410-canvas: #fff;
  color:var(--v1410-ink);
}
html[data-theme="dark"] .v1410-handoff {
  --v1410-accent: #b3b0ff;
  --v1410-on-accent: #131525;
  --v1410-edge: #454b60;
  --v1410-ink: #f1f2ff;
  --v1410-secondary: #bec7de;
  --v1410-soft: #25283b;
  --v1410-canvas: #1a1e2a;
}
.v1410-handoff .v1410-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.v1410-handoff .v1410-heading h2 {color:var(--v1410-ink);font-size:clamp(22px,2.2vw,29px)}
.v1410-handoff .v1410-heading .v142-kicker {color:var(--v1410-accent)}
.v1410-handoff .v1410-button {
  appearance:none; display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:43px; padding:11px 17px; border-radius:7px; border:1px solid transparent;
  font-family:inherit; font-size:13px; font-weight:750; line-height:1.3; text-align:center;
  cursor:pointer; transition:background-color .15s,border-color .15s,transform .15s,color .15s;
  white-space:normal;
}
.v1410-handoff .v1410-button:hover:not(:disabled) {transform:translateY(-1px)}
.v1410-handoff .v1410-button:active:not(:disabled) {transform:translateY(0)}
.v1410-handoff .v1410-button:focus-visible,
.v1410-handoff .v1410-text-action:focus-visible {outline:3px solid var(--v1410-accent);outline-offset:3px}
.v1410-handoff .v1410-button:disabled {opacity:.45;cursor:not-allowed;transform:none}
.v1410-handoff .v1410-button-primary {background:var(--v1410-accent);color:var(--v1410-on-accent);border-color:var(--v1410-accent)}
.v1410-handoff .v1410-button-primary:hover:not(:disabled) {background:#2420de;border-color:#2420de;color:#fff;box-shadow:0 4px 14px #3430ff22}
html[data-theme="dark"] .v1410-handoff .v1410-button-primary:hover:not(:disabled) {background:#d0cdff;border-color:#d0cdff;color:#161728;box-shadow:0 4px 14px #b3b0ff1a}
.v1410-handoff .v1410-button-secondary {background:transparent;color:var(--v1410-accent);border-color:var(--v1410-accent)}
.v1410-handoff .v1410-button-secondary:hover:not(:disabled) {background:var(--v1410-soft)}
.v1410-handoff .v1410-button-subtle {background:transparent;color:var(--v1410-secondary);border-color:var(--v1410-edge);font-size:12px;min-height:38px}
.v1410-handoff .v1410-button-subtle:hover:not(:disabled) {color:var(--v1410-ink);border-color:var(--v1410-accent);background:var(--v1410-soft)}
.v1410-ready-list {display:grid;gap:13px;margin:20px 0 0}
.v1410-ready {display:flex;gap:24px;justify-content:space-between;align-items:center;flex-wrap:wrap;
  background:var(--v1410-soft);padding:20px 22px;border:1px solid var(--v1410-edge);border-radius:10px}
.v1410-ready-copy {display:flex;gap:14px;align-items:center;min-width:0}
.v1410-ready-mark {width:33px;height:33px;display:grid;place-items:center;border:1px solid var(--v1410-accent);
  border-radius:50%;color:var(--v1410-accent);flex:0 0 auto}
.v1410-ready strong {font-size:17px;color:var(--v1410-ink);display:block;line-height:1.35}
.v1410-ready p {color:var(--v1410-secondary);font-size:12px;line-height:1.6;margin:6px 0 0}
.v1410-progress {display:flex;gap:13px;align-items:flex-start;padding:22px 0;border-top:1px solid var(--v1410-edge)}
.v1410-progress-dot {width:9px;height:9px;margin-top:6px;background:var(--v1410-accent);border-radius:50%;flex:0 0 auto}
.v1410-progress strong {color:var(--v1410-ink);font-size:14px}
.v1410-progress p,.v1410-progress small {color:var(--v1410-secondary);font-size:12px;line-height:1.7;display:block;margin:7px 0}
.v1410-progress-bar {height:6px;background:var(--v1410-edge);border-radius:5px;overflow:hidden;max-width:360px;margin-top:13px}
.v1410-progress-bar > span {height:100%;display:block;background:var(--v1410-accent);border-radius:5px;transition:width .2s}
.v1410-owner {border-top:1px solid var(--v1410-edge);padding-top:18px;margin-top:28px;color:var(--v1410-ink)}
.v1410-owner > summary {display:flex;align-items:center;gap:9px;flex-wrap:wrap;cursor:pointer;list-style:none;color:var(--v1410-ink);font-size:13px;font-weight:760;padding:8px 0}
.v1410-owner > summary::-webkit-details-marker {display:none}
.v1410-owner > summary:before {content:'+';color:var(--v1410-accent);font-weight:800;font-size:19px;line-height:1}
.v1410-owner[open] > summary:before {content:'−'}
.v1410-owner > summary:hover {color:var(--v1410-accent)}
.v1410-owner > summary > small {color:var(--v1410-secondary);font-size:11px;font-weight:500}
.v1410-owner-content {padding-top:8px;display:grid;gap:20px}
.v1410-job {padding:18px 0 20px;border-bottom:1px solid var(--v1410-edge)}
.v1410-job-head {display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.v1410-job-head strong,.v1410-cost-head strong {color:var(--v1410-ink);font-size:14px}
.v1410-job-head p,.v1410-cost p {color:var(--v1410-secondary);font-size:12px;line-height:1.6;margin:5px 0 0}
.v1410-approval {max-width:630px;margin-top:18px;padding:18px 20px;background:var(--v1410-soft);border:1px solid var(--v1410-edge);border-radius:8px;display:grid;gap:15px}
.v1410-approval > div > span {display:block;color:var(--v1410-secondary);font-size:12px}
.v1410-approval > div > strong {display:block;color:var(--v1410-ink);font-size:26px;margin-top:4px}
.v1410-approval small {display:block;color:var(--v1410-secondary);font-size:11px;margin-top:5px;line-height:1.5}
.v1410-warning {color:#a54b42;font-size:12px;margin:0}
html[data-theme="dark"] .v1410-warning {color:#ffb1a5}
.v1410-check {display:flex;align-items:center;gap:10px;color:var(--v1410-ink);font-size:12px;font-weight:650;cursor:pointer}
.v1410-check input {width:17px;height:17px;accent-color:var(--v1410-accent)}
.v1410-approval .v1410-button-primary {justify-self:start}
.v1410-operator {max-width:680px;margin-top:15px;display:grid;gap:13px}
.v1410-operator > p,.v1410-start p {margin:0;color:var(--v1410-secondary);font-size:12px;line-height:1.6}
.v1410-actions {display:flex;flex-wrap:wrap;gap:10px}
.v1410-start {margin-top:3px;padding:16px;border:1px solid var(--v1410-edge);background:var(--v1410-soft);border-radius:8px;display:grid;gap:12px;max-width:460px}
.v1410-start p strong {color:var(--v1410-ink)}
.v1410-start input {padding:13px 14px;width:100%;color:var(--v1410-ink);background:var(--v1410-canvas);border:1px solid var(--v1410-edge);border-radius:5px}
.v1410-start input:focus-visible {outline:2px solid var(--v1410-accent);outline-offset:1px}
.v1410-start .v1410-button-primary {justify-self:start}
.v1410-text-action {background:transparent;border:0;padding:5px 2px;text-decoration:underline;text-underline-offset:3px;color:var(--v1410-accent);font-size:12px;font-weight:700;cursor:pointer}
.v1410-text-action:hover {text-decoration-thickness:2px}
.v1410-technical {font-size:11px;color:var(--v1410-secondary);margin-top:14px}
.v1410-technical > summary {cursor:pointer;line-height:1.7}
.v1410-technical pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow-y:auto;padding:12px;border:1px solid var(--v1410-edge);border-radius:5px;color:var(--v1410-ink);background:var(--v1410-soft)}
.v1410-technical code {font-size:11px;overflow-wrap:anywhere}
.v1410-cost-head {display:flex;justify-content:space-between;gap:10px;align-items:center}
.v1410-cost-head > span {font-size:11px;color:var(--v1410-accent);font-weight:750}
.v1410-cost-number {font-size:22px;color:var(--v1410-ink);margin-top:10px;display:block}
.v1410-cost small {color:var(--v1410-secondary);font-size:11px;display:block;margin-top:7px}
.v1410-integrity-note {font-size:11px;line-height:1.6;color:var(--v1410-secondary);margin-top:18px;max-width:760px}
@media(max-width:650px) {
  .v1410-ready {align-items:stretch;padding:18px}
  .v1410-ready > .v1410-button {width:100%}
  .v1410-handoff .v1410-heading {align-items:flex-start}
  .v1410-handoff .v1410-button-subtle {align-self:flex-start}
  .v1410-owner > summary > small {width:100%;padding-left:22px}
}
@media(prefers-reduced-motion:reduce) {.v1410-handoff .v1410-button,.v1410-progress-bar>span {transition:none}}
.v1410-ready .v1410-ready-cost {display:block;margin-top:7px;color:var(--v1410-secondary);font-size:11px;line-height:1.5}


/* V14.11.1 — Make all sidebar controls reachable on short screens. */
@media (min-width:751px) {
  .sidebar {
    height:100vh;
    height:100dvh;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:thin;
    scrollbar-color:#73738b #111218;
    overscroll-behavior-y:contain;
    padding-bottom:24px;
  }
  .sidebar-bottom {flex-shrink:0; padding-bottom:14px;}
  .sidebar-grow {min-height:0;}
}
@media(max-width:750px) {
  .sidebar {height:auto;min-height:0;overflow:visible;}
  .sidebar-bottom {display:block;}
}
.v1411-sidebar-actions {display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;margin:6px 0 8px;}
.v1411-sidebar-actions .v14-share-toggle {margin:0;}
.v1411-sidebar-delete {display:inline-flex;align-items:center;gap:5px;padding:7px 5px;
  background:transparent;border:1px solid transparent;border-radius:5px;color:#ffadb8;
  font-size:11px;font-weight:700;line-height:1.15;cursor:pointer;}
.v1411-sidebar-delete:hover,.v1411-sidebar-delete:focus-visible {background:#412431;border-color:#9c5464;color:#fff;}
.v1411-delete-backdrop {position:fixed;inset:0;z-index:1500;background:rgba(7,9,18,.79);
  display:grid;place-items:center;padding:18px;overflow-y:auto;}
.v1411-delete-dialog {width:min(480px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;
  padding:25px;border:1px solid #d6d7e2;border-radius:11px;background:#fff;color:#292b3b;
  box-shadow:0 20px 75px #0006;}
.v1411-delete-dialog h2 {font-size:22px;color:inherit;margin:0 0 15px;}
.v1411-delete-dialog p {font-size:13px;line-height:1.6;color:#5b6174;}
.v1411-delete-dialog label {display:block;margin:18px 0 8px;font-size:13px;font-weight:750;color:inherit;}
.v1411-delete-dialog input {display:block;width:100%;box-sizing:border-box;padding:12px;
  background:#f7f7fb;color:#292b3b;border:1px solid #aeb2c5;border-radius:5px;font:inherit;}
.v1411-delete-dialog input:focus-visible {outline:2px solid #3430ff;outline-offset:2px;}
.v1411-delete-controls {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:22px;}
.v1411-delete-controls button {padding:11px 15px;border-radius:6px;font-weight:750;font-size:13px;min-height:43px;cursor:pointer;}
.v1411-delete-controls button:disabled {opacity:.45;cursor:not-allowed;}
.v1411-cancel {background:transparent;border:1px solid #aeb2c5;color:inherit;}
.v1411-delete-confirm {background:#ad283e;border:1px solid #ad283e;color:#fff;}
.v1411-delete-confirm:hover:not(:disabled) {background:#8d1b30;}
.v1411-delete-error {color:#ad283e;font-size:12px;font-weight:700;margin-top:12px;}
html[data-theme="dark"] .v1411-delete-dialog {background:#212534;color:#f5f5ff;border-color:#515b70;}
html[data-theme="dark"] .v1411-delete-dialog p {color:#c4cce0;}
html[data-theme="dark"] .v1411-delete-dialog input {background:#161923;color:#f5f5ff;border-color:#596279;}
html[data-theme="dark"] .v1411-delete-error {color:#ffb2bd;}

/* V14.11.2 — Fix the empty-product heading against the ACTUAL dark theme.
   The V12 --text token can resolve to dark ink in this inherited component. */
html[data-theme="dark"] .v142-starter h2,
[data-theme="dark"] .v142-starter h2 { color:#f5f4ff; }
html[data-theme="dark"] .v142-starter p,
[data-theme="dark"] .v142-starter p { color:#e0e3f4; }
.v142-starter h2 {font-weight:800;line-height:1.35}

/* One contextual research step, no duplicated refresh/owner controls. */
.v14112-flow {--v14112-fg:#222639;--v14112-muted:#606c83;--v14112-line:#d9dbea;--v14112-panel:#f4f3ff;--v14112-accent:#3430ff;color:var(--v14112-fg)}
html[data-theme="dark"] .v14112-flow {--v14112-fg:#f2f3ff;--v14112-muted:#c5cbe0;--v14112-line:#464b64;--v14112-panel:#1e2233;--v14112-accent:#b3b0ff}
.v14112-flow .v142-section-heading h2 {color:var(--v14112-fg)}
.v14112-stage {margin-top:18px;padding:23px 24px;background:var(--v14112-panel);border:1px solid var(--v14112-line);border-radius:10px;display:grid;gap:14px;max-width:800px}
.v14112-product {display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin:0;color:var(--v14112-fg)}
.v14112-product strong {font-size:16px;color:var(--v14112-fg)}
.v14112-product span {font-size:12px;color:var(--v14112-muted)}
.v14112-main,.v14112-loading {display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.6;font-weight:650;color:var(--v14112-fg);margin:0}
.v14112-main svg,.v14112-loading svg {flex-shrink:0;color:var(--v14112-accent)}
.v14112-main strong {font-weight:850}
.v14112-muted {margin:0;font-size:12px;line-height:1.75;color:var(--v14112-muted)}
.v14112-muted strong {color:var(--v14112-fg)}
.v14112-stage .v1410-button {justify-self:start;max-width:100%}
.v14112-confirm {display:flex;align-items:center;gap:10px;color:var(--v14112-fg);font-size:13px;line-height:1.6;cursor:pointer}
.v14112-confirm input {width:18px;height:18px;accent-color:var(--v14112-accent)}
.v14112-confirm-input {width:100%;max-width:440px;min-height:45px;background:var(--v1410-canvas);color:var(--v14112-fg);border:1px solid var(--v14112-line);border-radius:6px;padding:11px 13px;font:inherit;font-size:13px}
.v14112-confirm-input:focus-visible {outline:2px solid var(--v14112-accent);outline-offset:2px}
.v14112-warning {margin:0;color:#a54b42;font-size:13px;line-height:1.6}
html[data-theme="dark"] .v14112-warning {color:#ffb6ac}
.v14112-cost {color:var(--v14112-fg);font-size:13px;margin:0;font-weight:650}
.v14112-cost small {font-weight:400;display:block;margin-top:5px;color:var(--v14112-muted)}
.v14112-checking {display:flex;gap:5px;align-items:center;font-size:10px;color:var(--v14112-muted)}
.v14112-spinner {animation:v14112-spin 1s linear infinite;flex-shrink:0}
@keyframes v14112-spin {to{transform:rotate(360deg)}}
.v14112-technical {margin-top:18px;font-size:11px;color:var(--v14112-muted)}
.v14112-technical summary {cursor:pointer;color:var(--v14112-muted);padding:7px 0}
.v14112-technical pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:140px;overflow-y:auto;background:var(--v14112-panel);color:var(--v14112-fg);padding:10px;border-radius:5px}
.v14112-other {margin:5px 0;color:var(--v14112-muted);font-size:12px}
.v14112-other summary {cursor:pointer}
.v14112-other-list {display:grid;gap:5px;margin:9px 0}
.v14112-other-list button {display:flex;gap:9px;justify-content:space-between;align-items:center;border:1px solid var(--v14112-line);border-radius:5px;background:transparent;color:var(--v14112-fg);font:inherit;text-align:left;cursor:pointer;padding:10px 12px}
.v14112-other-list button:hover {background:var(--v14112-panel)}
.v14112-other-list small {color:var(--v14112-muted)}
@media(max-width:650px) {.v14112-stage{padding:17px}.v14112-stage .v1410-button {width:100%}}
@media(prefers-reduced-motion:reduce) {.v14112-spinner{animation:none}}

.v14112-checking {min-height:16px;}

/* V14.11.3: explicit, non-fabricated progress for local imports and subsequent
   research-inventory refresh. Kept beside the user's action, not in a toast
   that obscures the app. No percentage is shown without real server progress. */
.v14113-import-progress,
.v14113-readiness {
  display:flex;align-items:flex-start;gap:13px;
  border:1px solid #d6d4ff;border-radius:10px;
  background:#f3f2ff;color:#292746;
  padding:16px 18px;margin:14px 0 18px;
  font-size:13px;line-height:1.6;
}
.v14113-import-progress strong,
.v14113-readiness strong {display:block;font-weight:800;color:inherit}
.v14113-import-progress p,
.v14113-readiness p {margin:4px 0 0;color:#51516e;font-size:12px;line-height:1.65}
.v14113-import-progress svg,
.v14113-readiness svg {flex-shrink:0;color:#3430ff;margin-top:2px}
.v14113-readiness {margin-top:26px}
html[data-theme="dark"] .v14113-import-progress,
html[data-theme="dark"] .v14113-readiness {
  border-color:#5c598c;background:#22243a;color:#f1f0ff;
}
html[data-theme="dark"] .v14113-import-progress p,
html[data-theme="dark"] .v14113-readiness p {color:#c9cbe2}
html[data-theme="dark"] .v14113-import-progress svg,
html[data-theme="dark"] .v14113-readiness svg {color:#b3b0ff}

/* V14.11.4: sidebar forms are always dark, even when the research workspace
   uses light mode. Auth-screen fields are deliberately unaffected. */
.sidebar .v14-mini-form input:not([type="checkbox"]),
.sidebar .v14-mini-form textarea,
.sidebar .v14-mini-form select {
  background: #1d202b;
  color: #f6f5ff;
  border: 1px solid #666b82;
  caret-color: #b3b0ff;
}
.sidebar .v14-mini-form input::placeholder,
.sidebar .v14-mini-form textarea::placeholder { color: #adb3c7; opacity: 1; }
.sidebar .v14-mini-form input:focus-visible,
.sidebar .v14-mini-form textarea:focus-visible,
.sidebar .v14-mini-form select:focus-visible {
  outline: 2px solid #b3b0ff;
  outline-offset: 2px;
  border-color: #b3b0ff;
}

/* V14.12.2 — Match cards, no-duplicate collection UI and passive provider checks.
   Includes the V14.12.1 consent visibility fix (install this patch alone). */
.v142-consent,
.v142-search-options .v142-consent {
  color:#282b3d;font-size:12px;font-weight:650;line-height:1.5;cursor:pointer;
}
html[data-theme="dark"] .v142-consent,
html[data-theme="dark"] .v142-search-options .v142-consent {color:#f4f2ff;}
.v142-consent input[type="checkbox"] {
  width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:#3430ff;cursor:pointer;
}
html[data-theme="dark"] .v142-consent input[type="checkbox"] {accent-color:#b3b0ff;}
.v142-consent input[type="checkbox"]:focus-visible {outline:2px solid #3430ff;outline-offset:3px;}
html[data-theme="dark"] .v142-consent input[type="checkbox"]:focus-visible {outline-color:#b3b0ff;}

.v142-products-toolbar {display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 14px;}
.v142-products-toolbar label {display:flex;align-items:center;gap:12px;font-size:12px;font-weight:750;color:var(--text,#282c3a);}
.v142-products-toolbar select {font:inherit;font-weight:600;padding:10px 12px;border-radius:7px;border:1px solid var(--border,#cbd0da);background:var(--surface,#fff);color:var(--text,#202333);max-width:100%;cursor:pointer;}
.v142-products-toolbar select:focus-visible {outline:2px solid #3430ff;outline-offset:2px;}
.v142-products-toolbar small {font-size:11px;line-height:1.5;color:var(--text-muted,#53596b);}
.v142-product-stats b {font-weight:750;color:var(--text,#282b39);}
.v142-product .v142-collected-button,
.v142-product .v142-collected-button:disabled {background:#eeeef6;border-color:#c4c6d2;color:#454a60;opacity:1;cursor:default;}
.v142-product--collected {border-color:#a5a1e9;}
.v142-pending {display:flex;align-items:center;flex-wrap:wrap;gap:10px;line-height:1.65;}
.v142-pending .v14112-spinner {color:var(--signal-blue,#3430ff);flex:0 0 auto;}
.v142-auto-check {font-size:11px;font-weight:700;color:var(--text-muted,#555e76);}
.v142-collection-progress {display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--text-muted,#5f687c);}
.v142-collection-progress .v14112-spinner {color:var(--signal-blue,#3430ff);}
.v142-pending button,.v142-collection-progress button {padding:5px 8px;text-decoration:underline;text-underline-offset:3px;}
.v142-pending button:disabled,.v142-collection-progress button:disabled {opacity:.55;cursor:not-allowed;}
html[data-theme="dark"] .v142-products-toolbar label,
html[data-theme="dark"] .v142-product-stats b {color:#f1f2fb;}
html[data-theme="dark"] .v142-products-toolbar select {background:#1a2030;color:#f1f2fb;border-color:#616987;}
html[data-theme="dark"] .v142-products-toolbar select:focus-visible {outline-color:#b3b0ff;}
html[data-theme="dark"] .v142-products-toolbar small,
html[data-theme="dark"] .v142-auto-check,
html[data-theme="dark"] .v142-collection-progress {color:#c9cde4;}
html[data-theme="dark"] .v142-product .v142-collected-button,
html[data-theme="dark"] .v142-product .v142-collected-button:disabled {background:#30334c;color:#dad8ff;border-color:#6f6d9b;opacity:1;}
html[data-theme="dark"] .v142-product--collected {border-color:#7672b4;}
@media(max-width:700px) {
  .v142-products-toolbar {align-items:stretch;}
  .v142-products-toolbar label {flex-direction:column;align-items:stretch;gap:6px;}
}


/* SiGNAL V14.12.6 · Ask the Evidence editorial answer and approval separation. */
/* Scoped to AI answer components. Keeps the existing research and free-search UI intact. */
.qa-answer-action-state { display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:8px 0;color:var(--text-muted,#66718a);font-size:12px;font-weight:650;line-height:1.5; }
.qa-answer-action-state svg { color:#3430ff;flex:0 0 auto; }
.qa-empty-hint { color:var(--text-muted,#64708a);font-size:12px;line-height:1.6;margin:16px 0 0; }
.qa-workflow {display:flex;flex-direction:column;gap:16px;margin-top:24px;padding:24px;border:1px solid #d7dbee;border-radius:14px;background:#f8f8fc;color:#23293a;}
.qa-workflow-top {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.qa-kicker {font-size:10px;font-weight:800;letter-spacing:.105em;color:#4c49a2;}
.qa-model {font-size:11px;font-weight:550;color:#68738a;}
.qa-workflow-title {font-size:22px;line-height:1.2;letter-spacing:-.035em;font-weight:800;color:inherit;margin:0;}
.qa-workflow-question {margin:-6px 0 0;font-size:14px;line-height:1.55;font-weight:550;color:#454e65;}
.qa-price-line {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-top:1px solid #dfe1ed;border-bottom:1px solid #dfe1ed;}
.qa-price-line>div{display:grid;gap:4px;min-width:0;}
.qa-price-line span {font-size:13px;font-weight:750;line-height:1.4;}
.qa-price-line small {font-size:11px;line-height:1.45;color:#66718a;font-weight:450;}
.qa-price-line strong {font-size:20px;letter-spacing:-.035em;white-space:nowrap;color:#23293a;}
.qa-evidence-count {display:flex;align-items:center;gap:9px;font-size:12px;font-weight:650;color:#59627b;}
.qa-evidence-count svg {flex:none;color:#3430ff;}
.qa-retrieval-note {display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.65;color:#4d5975;margin:0;}
.qa-retrieval-note svg {margin-top:2px;flex:none;color:#6660b9;}
.qa-source-details,.qa-report-sources,.qa-method-details {border-top:1px solid #dfe1ec;padding-top:4px;min-width:0;}
.qa-source-details > summary,.qa-report-sources > summary,.qa-method-details > summary {display:flex;gap:9px;align-items:center;justify-content:space-between;cursor:pointer;padding:12px 2px;font-size:12px;line-height:1.45;font-weight:750;color:#373d63;list-style:none;}
.qa-source-details > summary::-webkit-details-marker,.qa-report-sources > summary::-webkit-details-marker,.qa-method-details > summary::-webkit-details-marker{display:none;}
.qa-source-details > summary::after,.qa-method-details > summary::after {content:'+';font-size:19px;line-height:1;font-weight:400;color:#7370b4;}
.qa-source-details[open] > summary::after,.qa-method-details[open] > summary::after {content:'−';}
.qa-source-details > summary span {font-weight:550;color:#697187;}
.qa-source-details > .retrieval-list,.qa-report-sources > .retrieval-list {margin-top:13px;}
.qa-consent-row {display:flex;align-items:flex-start;flex-direction:column;gap:12px;}
.qa-workflow .qa-checkbox {display:flex;gap:11px;align-items:center;border:1px solid #cbd0e2;border-radius:9px;background:#fff;padding:13px 15px;font-size:12px;line-height:1.45;color:#323a53;max-width:100%;}
.qa-workflow .qa-checkbox span {color:inherit!important;}
.qa-workflow .qa-checkbox input {flex:none;width:18px;height:18px;accent-color:#3430ff;}
.qa-workflow .primary-button,.qa-workflow .secondary-button {min-height:43px;font-size:12px;font-weight:750;}
.qa-microcopy {font-size:12px;line-height:1.6;color:#56617b;margin:0;}
.qa-detail-row {display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-top:1px solid #e4e6ee;font-size:11px;line-height:1.45;}
.qa-detail-row span {color:#647087;}
.qa-detail-row strong {color:inherit;font-weight:750;overflow-wrap:anywhere;text-align:right;}
.qa-report {margin:34px 0 38px;border:1px solid #dfe2ed;border-radius:16px;background:#fff;color:#1f2636;overflow:hidden;}
.qa-report-header {padding:32px 36px 29px;border-bottom:1px solid #e3e5ed;}
.qa-report-topline {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px;}
.qa-report-eyebrow {display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.3;font-weight:850;letter-spacing:.09em;text-transform:uppercase;color:#3430ff;}
.qa-report-eyebrow svg {flex:none;}
.qa-report-saved {display:inline-flex;align-items:center;gap:5px;border:1px solid #daddec;color:#59637b;border-radius:999px;font-size:11px;font-weight:700;padding:6px 10px;}
.qa-report-saved svg {color:#3430ff;}
.qa-report .qa-report-title {color:#1f2636;font-size:clamp(22px,2.6vw,32px);font-weight:780;letter-spacing:-.045em;line-height:1.25;max-width:980px;overflow-wrap:anywhere;margin:0 0 15px;}
.qa-report-subtitle {font-size:12px;line-height:1.6;color:#647087;}
.qa-report-body {padding:14px 36px 30px;}
.qa-insights {max-width:1000px;}
.qa-insight {display:grid;grid-template-columns:48px minmax(0,1fr);gap:20px;padding:23px 0;border-bottom:1px solid #e4e6ef;}
.qa-insight-index {font-size:13px;font-weight:800;color:#6764c5;line-height:1.8;font-variant-numeric:tabular-nums;}
.qa-insight-content {min-width:0;}
.qa-report .qa-insight-copy {font-size:16px;line-height:1.65;font-weight:475;color:#222b3d;letter-spacing:-.007em;overflow-wrap:anywhere;margin:0 0 13px;}
.qa-insight-sources {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.qa-report button.qa-source-chip {display:inline-flex;align-items:center;gap:7px;border:1px solid #d9dcf0;border-radius:7px;background:#f8f8ff;color:#3430bf;font-size:11px;font-weight:750;line-height:1.25;min-height:31px;padding:6px 10px;cursor:pointer;text-decoration:none;white-space:normal;text-align:left;transition:background .12s,border-color .12s;}
.qa-report button.qa-source-chip svg {flex:none;}
.qa-report button.qa-source-chip:hover {background:#ebebff;border-color:#7771df;}
.qa-report button.qa-source-chip:focus-visible,.qa-report-sources > summary:focus-visible,.qa-source-details > summary:focus-visible,.qa-method-details > summary:focus-visible {outline:2px solid #3430ff;outline-offset:3px;}
.qa-cannot-answer {display:flex;align-items:flex-start;gap:12px;margin:20px 0;padding:16px 0;border-bottom:1px solid #e4e6ef;color:#494d66;line-height:1.55;font-size:14px;}
.qa-cannot-answer svg {flex:none;color:#7170aa;}
.qa-limitations {max-width:1000px;padding:24px 0;border-bottom:1px solid #e4e6ef;}
.qa-limits-heading {display:flex;align-items:center;gap:9px;margin-bottom:9px;font-size:13px;font-weight:800;color:#313855;}
.qa-limits-heading svg {color:#77739d;flex:none;}
.qa-limitations>p {font-size:12px;line-height:1.75;color:#59667c;margin:0 0 8px;max-width:900px;}
.qa-limitations>.qa-verification-note,.qa-verification-note {font-size:11px;color:#80879b;line-height:1.65;margin:0;}
.qa-report-sources {margin-top:11px;}
.qa-report-sources > summary {display:flex;justify-content:space-between;align-items:center;gap:10px;}
.qa-report-sources > summary >span:first-child {display:flex;align-items:center;gap:10px;}
.qa-report-sources > summary svg {color:#3430ff;flex:none;}
.qa-source-count {color:#7a8397;font-weight:550;text-align:right;}
.qa-report-method {margin-top:8px;}
.qa-report-method .qa-verification-note {padding:11px 0;}
/* Dark mode matches the existing SiGNAL palette; no blanket bright warnings. */
html[data-theme="dark"] .qa-answer-action-state {color:#c5c9de;}
html[data-theme="dark"] .qa-answer-action-state svg {color:#b3b0ff;}
html[data-theme="dark"] .qa-empty-hint {color:#c1c7da;}
html[data-theme="dark"] .qa-workflow {background:#202536;border-color:#535b77;color:#f2f2fc;}
html[data-theme="dark"] .qa-kicker {color:#b3b0ff;}
html[data-theme="dark"] .qa-model {color:#c1c7dd;}
html[data-theme="dark"] .qa-workflow-question {color:#d2d5e7;}
html[data-theme="dark"] .qa-price-line {border-color:#41485f;}
html[data-theme="dark"] .qa-price-line small,html[data-theme="dark"] .qa-microcopy {color:#bbc3d9;}
html[data-theme="dark"] .qa-price-line strong {color:#fff;}
html[data-theme="dark"] .qa-evidence-count {color:#c8cce1;}
html[data-theme="dark"] .qa-evidence-count svg,html[data-theme="dark"] .qa-retrieval-note svg {color:#b3b0ff;}
html[data-theme="dark"] .qa-retrieval-note {color:#d1d4ed;}
html[data-theme="dark"] .qa-source-details,html[data-theme="dark"] .qa-report-sources,html[data-theme="dark"] .qa-method-details {border-color:#454b62;}
html[data-theme="dark"] .qa-source-details > summary,html[data-theme="dark"] .qa-report-sources > summary,html[data-theme="dark"] .qa-method-details > summary {color:#e8e8ff;}
html[data-theme="dark"] .qa-source-details > summary span,html[data-theme="dark"] .qa-source-count {color:#c6cbe0;}
html[data-theme="dark"] .qa-workflow .qa-checkbox {background:#282e41;border-color:#5c637e;color:#f0f0fb;}
html[data-theme="dark"] .qa-detail-row {border-color:#41485f;}
html[data-theme="dark"] .qa-detail-row span {color:#c1c8db;}
html[data-theme="dark"] .qa-report {background:#1e2331;border-color:#515976;color:#f1f2fe;}
html[data-theme="dark"] .qa-report-header {border-color:#3d445a;}
html[data-theme="dark"] .qa-report-eyebrow,html[data-theme="dark"] .qa-report-saved svg {color:#b3b0ff;}
html[data-theme="dark"] .qa-report-saved {color:#d1d5ec;border-color:#515977;}
html[data-theme="dark"] .qa-report .qa-report-title,html[data-theme="dark"] .qa-report .qa-insight-copy {color:#f1f2fb;}
html[data-theme="dark"] .qa-report-subtitle {color:#c2c8dd;}
html[data-theme="dark"] .qa-insight,html[data-theme="dark"] .qa-limitations,html[data-theme="dark"] .qa-cannot-answer {border-color:#40465c;}
html[data-theme="dark"] .qa-insight-index {color:#b3b0ff;}
html[data-theme="dark"] .qa-report button.qa-source-chip {background:#302f4e;border-color:#65638e;color:#e2e0ff;}
html[data-theme="dark"] .qa-report button.qa-source-chip:hover {background:#3d3a65;border-color:#b3b0ff;}
html[data-theme="dark"] .qa-report button.qa-source-chip:focus-visible {outline-color:#b3b0ff;}
html[data-theme="dark"] .qa-limits-heading {color:#e5e6fb;}
html[data-theme="dark"] .qa-limits-heading svg {color:#b3b0ff;}
html[data-theme="dark"] .qa-limitations>p,html[data-theme="dark"] .qa-cannot-answer {color:#d2d7e8;}
html[data-theme="dark"] .qa-limitations>.qa-verification-note,html[data-theme="dark"] .qa-verification-note {color:#b0b9cf;}
html[data-theme="dark"] .qa-report-sources > summary svg {color:#b3b0ff;}
@media(max-width:780px) {
  .qa-report-header {padding:25px 22px 22px;}
  .qa-report-body {padding:12px 22px 22px;}
  .qa-insight {grid-template-columns:30px minmax(0,1fr);gap:12px;padding:20px 0;}
  .qa-report .qa-insight-copy {font-size:15px;}
  .qa-workflow {padding:20px;}
}
@media(max-width:450px) {
  .qa-report-header {padding:22px 16px;}
  .qa-report-body {padding:7px 16px 20px;}
  .qa-price-line {align-items:flex-start;flex-direction:column;gap:10px;}
  .qa-report-sources > summary {align-items:flex-start;flex-direction:column;}
  .qa-source-count {text-align:left;}
}


/* SiGNAL V14.12.8: one-paragraph synthesis before individual findings. */
.qa-overview { margin:18px 0 8px; padding:23px 25px 24px; border:1px solid #dbddf4; border-left:3px solid #3430ff; border-radius:10px; background:#f8f8ff; max-width:1010px; }
.qa-overview-label { margin:0 0 12px; color:#3430bf; font-size:11px; line-height:1.4; font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
.qa-report .qa-overview-copy { margin:0; color:#222b3d; font-size:17px; font-weight:540; letter-spacing:-.01em; line-height:1.7; max-width:930px; overflow-wrap:anywhere; }
.qa-overview-sources { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:15px; }
html[data-theme="dark"] .qa-overview {background:#282d42;border-color:#545b82;border-left-color:#b3b0ff;}
html[data-theme="dark"] .qa-overview-label {color:#bcb8ff;}
html[data-theme="dark"] .qa-report .qa-overview-copy {color:#f1f2fc;}
@media(max-width:780px) { .qa-overview {padding:19px 18px 21px;margin-top:12px;} .qa-report .qa-overview-copy {font-size:16px;} }
@media(max-width:450px) { .qa-overview {padding:17px 14px 19px;} }
/* Static portfolio adaptation. Original interface styles are intentionally retained. */
.demo-scope { border-left: 3px solid #24a3a0; }
.demo-ai-disabled { padding: 5rem 1.7rem; text-align: center; display: flex; align-items: center; flex-direction: column; gap: 1rem; }
.demo-ai-disabled p { max-width: 590px; line-height: 1.65; }
.demo-ai-disabled button { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; max-width: 340px; }
.demo-product-picker { width: 100%; max-width: 540px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line, #8290a050); background: var(--surface, #fff); color: var(--text, inherit); border-radius: 10px; margin: 8px 0 23px; }
.demo-progress { display: block; width: 100%; max-width: 650px; margin: 16px 0 18px; min-height: 11px; }
.demo-step-list { display: grid; gap: 10px; margin: 18px 0 24px; }
.demo-step-list>div { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; opacity: 0.45; }
.demo-step-list>div.current { opacity: 1; font-weight: 600; }
.demo-step-list>div.done { opacity: 0.85; }
.demo-step-number { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }


/* SiGNAL V12.16 — RESEARCH CARDS
 * Built from V12.14, not the rejected V12.15 editorial experiment.
 * No decorative eyebrow headings, generic gradients, glass or anonymous icon grids.
 * The finding cards remain the primary navigational objects.
 * The existing functionality and semantic caution are preserved.
 */
:root {
  --craft-accent: #3430ff;
  --craft-ink: #1b1b21;
  --craft-muted: #606270;
  --craft-hairline: #d9d9dc;
  --craft-paper: #fff;
  --craft-canvas: #f7f7f5;
  --craft-soft: #f1f0ff;
  --craft-highlight: #eae9ff;
}
body, .workspace { background: var(--craft-canvas); color: var(--craft-ink); }
.workspace { min-width:0; }
.sidebar { background:#111218; border-right:1px solid #2c2c35; }
.brand-lockup { padding: 5px 10px 25px; }
.sidebar-rule { margin-bottom:20px; }
.sidebar-rule.medium { margin: 16px 2px 20px; }
.select-label { font-size:12px; margin:0 0 7px; color:#bfc2cd; }
.select-label.space { margin-top:18px; }
.main-nav { gap:3px; }
.nav-link { border-radius:5px; min-height:44px; font-size:12px; }
.nav-link.active { background:#292835; color:white; box-shadow: inset 3px 0 0 #a39fff; }
.nav-link.active svg { color:#aaa6ff; }
.nav-link .active-indicator { display:none; }
.sidebar-footnote { font-size:10px; letter-spacing:0; }
.topbar { height:64px; background:var(--craft-paper); border-bottom:1px solid var(--craft-hairline); }
.main-inner { max-width:1480px; padding-top:40px; }
h1, h2, h3 { font-family:'Special Gothic','Arial Black','Segoe UI',sans-serif; letter-spacing:-.035em; }
h1 { font-size:clamp(31px,3.15vw,43px); margin:0 0 10px; font-weight:700; line-height:1.13; }
h2 { font-size:23px; font-weight:700; }
h3 { font-weight:700; }
.page-heading { margin: 0 0 32px; align-items:flex-start; }
.page-description { max-width:710px; font-size:13px; line-height:1.6; color:var(--craft-muted); }
.header-version { background:transparent; border:0; align-items:center; min-width:0; }
.version-icon { border-radius:4px; padding:9px; background:var(--craft-soft); border-color:#d8d6fd; color:#3430ff; }
.header-version span { color:var(--craft-muted); font-size:11px; }
/* One annotated data band, rather than four little promotional widgets. */
.metric-grid { gap:0; border:1px solid var(--craft-hairline); border-radius:7px; background:var(--craft-paper); overflow:hidden; }
.metric { border:0; border-right:1px solid var(--craft-hairline); box-shadow:none; border-radius:0; min-height:108px; padding:17px 23px 16px; background:transparent; display:flex; flex-direction:column; }
.metric:last-child { border-right:0; }
.metric-label { font-size:11px; font-weight:650; letter-spacing:0; text-transform:none; color:var(--craft-muted); }
.metric-label svg { display:none; }
.metric strong { order:-1; margin:0 0 9px; font:700 30px/1 'Special Gothic','Arial Black',sans-serif; color:var(--craft-ink); }
.metric > span { font-size:10px; color:var(--craft-muted); margin-top:4px; }
.scope-banner { border-radius:5px; background:var(--craft-soft); border-color:#dfdefb; margin-top:17px; font-size:12px; }
.content-section { padding:38px 0 50px; }
.section-heading { align-items:center; margin-bottom:21px; }
.section-heading h2 { margin:0; line-height:1.25; font-size:24px; }
.section-heading h2 span { font:500 14px 'Segoe UI',system-ui,sans-serif; color:var(--craft-muted); }
.filter-toolbar { gap:8px; }
.filter-search { min-height:40px; background:var(--craft-paper); border-radius:5px; border-color:var(--craft-hairline); }
.filter-search input { font-size:12px; }
.product-group { margin-bottom:42px; }
.product-header { align-items:baseline; border-bottom:1px solid #bfc0c9; margin-bottom:14px; padding:0 0 12px; }
.product-header h3 { font-size:20px; margin:0; }
.product-count { font-size:11px; color:var(--craft-muted); }
/* The user's useful two-column cards remain intact. No equalizing with blank space at the bottom. */
.findings-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:stretch; }
.finding-card {
  position:relative; display:flex; flex-direction:column; height:100%; min-width:0;
  padding:25px 26px 20px; background:var(--craft-paper); border:1px solid var(--craft-hairline);
  border-radius:6px; box-shadow:none;
  transition:border-color .13s ease, box-shadow .13s ease;
}
.finding-card:hover { border-color:#8f8aff; box-shadow:0 3px 0 #3430ff12; }
.finding-card-selected { border-color:var(--craft-accent); box-shadow:inset 0 0 0 1px var(--craft-accent); }
.finding-card h3 { font-size:20px; line-height:1.32; margin:19px 0 12px; letter-spacing:-.02em; }
.finding-claim { font-size:13px; line-height:1.7; color:#4d4f5b; }
.finding-top { align-items:center; }
.finding-id { font:600 10px/1.3 'Segoe UI',sans-serif; letter-spacing:0; color:#757686; }
.kind { border-radius:3px; padding:5px 8px; font-size:10px; font-weight:750; text-transform:none; }
.finding-body-spacer { flex:1 1 auto; min-height:28px; }
.evidence-line { border-top:1px solid var(--craft-hairline); margin-top:0; padding-top:14px; font-size:11px; gap:7px; color:var(--craft-muted); }
.evidence-count { color:var(--craft-ink); font-weight:750; font-size:12px; }
.evidence-count small { color:var(--craft-muted); }
.count-note { font-size:10px; color:var(--craft-muted); }
/* The design question has a distinct evidence-to-possibility treatment, no sparkles. */
.opportunity { background:#f4f3ff; border:0; border-left:3px solid var(--craft-accent); border-radius:0; margin-top:18px; padding:13px 15px 15px; }
.opportunity-label { font-size:11px; letter-spacing:0; text-transform:none; font-weight:800; color:#2824ad; }
.opportunity-label span { font-size:10px; color:#66657e; }
.opportunity p { font-size:12px; line-height:1.58; color:#36374a; }
.category-families { margin-top:16px; gap:9px; }
.category-family { gap:6px; }
.category-family>span { font-size:10px; text-transform:none; letter-spacing:0; min-width:94px; color:#666879; }
.category-row { margin:0; }
.category-tag { border-radius:3px; padding:5px 7px; background:#f2f2f3; border:1px solid #e5e5e9; color:#55586d; font-size:10px; }
.category-family--discovered .category-tag { background:#f3f0ff; border-color:#e5dfff; color:#595078; }
.evidence-toggle { margin-top:18px; padding:13px 12px; border-top:1px solid var(--craft-hairline); border-radius:4px; font-size:12px; color:#2825c8; }
.evidence-toggle>span { gap:9px; }
.evidence-toggle:hover { background:#f4f3ff; color:var(--craft-accent); }
.finding-card-selected .evidence-toggle { background:var(--craft-soft); color:var(--craft-accent); padding:13px 12px; }
/* Ask: form is a deliberate work surface; results remain separate grouped cards. */
.explore-layout { align-items:start; gap:16px; }
.ask-panel, .ask-sidebar { border:1px solid var(--craft-hairline); border-radius:6px; box-shadow:none; background:var(--craft-paper); }
.ask-panel { padding:27px 29px 26px; }
.ask-panel .input-title { font-size:12px; font-weight:750; letter-spacing:0; text-transform:none; }
.ask-panel textarea { font-size:16px; min-height:118px; line-height:1.55; border-radius:4px; padding:16px; background:#fafafa; }
.ask-sidebar { padding:25px 23px; }
.ask-sidebar h3 { font-size:20px; margin:0 0 12px; }
.ask-sidebar>p { font-size:12px; line-height:1.62; }
.ask-controls { gap:10px; }
.ask-controls .ask-field > label { font-size:11px; font-weight:700; }
.ask-actions { margin-top:17px; }
.primary-button { border-radius:4px; background:var(--craft-accent); }
.primary-button:hover { background:#211bdb; }
.result-section { margin-top:35px; }
.result-section > h2 { margin-top:0; }
.answer-box { border:1px solid var(--craft-hairline); border-radius:6px; background:var(--craft-paper); padding:24px 28px; }
.answer-body { font-size:14px; line-height:1.72; }
.answer-tag { font-size:11px; letter-spacing:0; text-transform:none; }
.retrieved-review-card, .retrieved-row, .comparison-col { border-radius:5px; border-color:var(--craft-hairline); box-shadow:none; }
.retrieved-quote blockquote { border-left:2px solid var(--craft-accent); }
/* Evidence feels like a document, not a modal full of decorative badges. */
.finding-evidence-rail, .source-drawer { background:var(--craft-paper); }
.finding-evidence-head { border-bottom:1px solid var(--craft-hairline); }
.drawer-section-title { display:inline-flex; gap:8px; align-items:center; font:700 15px 'Special Gothic','Arial Black',sans-serif; color:var(--craft-ink); }
.field-name { display:block; font-size:11px; font-weight:700; color:var(--craft-muted); margin-bottom:8px; }
.source-document { border-radius:4px; border-color:var(--craft-hairline); }
.evidence-review { border-radius:5px; border-color:var(--craft-hairline); }
.evidence-review-index, .retrieved-citation { border-radius:3px; }
.evidence-review-verification > span, .evidence-review-head > span { font-size:10px; }
.source-document mark { background:#e5e4ff; color:#211eba; border-radius:1px; }
/* Other views still use distinct, legible cards. */
.event-card, .method-card, .provenance-card { border-radius:6px; }
.method-grid, .events-list { gap:14px; }
/* Not another stripe of tiny all-caps labels. */
.eyebrow, .sidebar-section-caption, .brand-sub { display:none; }
.footer { color:var(--craft-muted); }
@media (max-width: 1150px) {
  .findings-list { grid-template-columns:1fr; }
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metric:nth-child(2) { border-right:0; }
  .metric:nth-child(-n+2) { border-bottom:1px solid var(--craft-hairline); }
  .page-heading { gap:14px; }
}
@media (max-width:750px) {
  .main-inner { padding:24px 16px 0; }
  .page-heading { margin-bottom:24px; }
  .page-heading h1 { font-size:31px; }
  .metric { min-height:94px; padding:15px 16px; }
  .metric strong { font-size:25px; }
  .metric-label { font-size:10px; }
  .metric > span { font-size:9px; }
  .section-heading { align-items:flex-start; }
  .section-heading h2 { font-size:21px; }
  .finding-card { padding:20px; }
  .finding-card h3 { font-size:19px; }
  .finding-body-spacer { min-height:20px; }
  .ask-panel { padding:21px 18px; }
  .ask-sidebar { padding:20px 18px; }
}
@media (prefers-reduced-motion:reduce) {
  .finding-card { transition:none; }
}
/* Dark theme is authored, not browser inversion. */
html[data-theme="dark"] {
  --craft-ink:#f1f0f6;
  --craft-muted:#b4b8c9;
  --craft-hairline:#3e4251;
  --craft-paper:#1d202a;
  --craft-canvas:#12141d;
  --craft-soft:#282849;
  --craft-highlight:#34315b;
}
html[data-theme="dark"] body, html[data-theme="dark"] .workspace { background:var(--craft-canvas); color:var(--craft-ink); }
html[data-theme="dark"] .topbar { background:var(--craft-paper); border-color:var(--craft-hairline); }
html[data-theme="dark"] .metric-grid { background:var(--craft-paper); border-color:var(--craft-hairline); }
html[data-theme="dark"] .metric { background:transparent; border-color:var(--craft-hairline); }
html[data-theme="dark"] .metric strong { color:var(--craft-ink); }
html[data-theme="dark"] .metric-label, html[data-theme="dark"] .metric>span { color:var(--craft-muted); }
html[data-theme="dark"] .page-description, html[data-theme="dark"] .product-count, html[data-theme="dark"] .finding-claim { color:var(--craft-muted); }
html[data-theme="dark"] .finding-card, html[data-theme="dark"] .ask-panel, html[data-theme="dark"] .ask-sidebar, html[data-theme="dark"] .answer-box, html[data-theme="dark"] .evidence-review, html[data-theme="dark"] .retrieved-row, html[data-theme="dark"] .retrieved-review-card, html[data-theme="dark"] .event-card, html[data-theme="dark"] .method-card, html[data-theme="dark"] .provenance-card, html[data-theme="dark"] .comparison-col { background:var(--craft-paper); border-color:var(--craft-hairline); }
html[data-theme="dark"] .finding-card:hover, html[data-theme="dark"] .finding-card-selected { border-color:#aaa5ff; }
html[data-theme="dark"] .finding-card-selected { box-shadow:inset 0 0 0 1px #aaa5ff; }
html[data-theme="dark"] .finding-card h3, html[data-theme="dark"] .finding-card .evidence-count, html[data-theme="dark"] .ask-sidebar h3 { color:var(--craft-ink); }
html[data-theme="dark"] .finding-id, html[data-theme="dark"] .count-note, html[data-theme="dark"] .evidence-line, html[data-theme="dark"] .evidence-count small { color:var(--craft-muted); }
html[data-theme="dark"] .evidence-line, html[data-theme="dark"] .evidence-toggle, html[data-theme="dark"] .product-header { border-color:var(--craft-hairline); }
html[data-theme="dark"] .opportunity { background:#25253e; border-left-color:#aaa5ff; }
html[data-theme="dark"] .opportunity-label { color:#cfcbff; }
html[data-theme="dark"] .opportunity-label span, html[data-theme="dark"] .opportunity p { color:#d4d4e7; }
html[data-theme="dark"] .category-tag { background:#272a36; border-color:#424456; color:#d3d4e2; }
html[data-theme="dark"] .category-family--discovered .category-tag { background:#302c43; border-color:#504462; color:#e1d4fa; }
html[data-theme="dark"] .finding-card-selected .evidence-toggle { background:#302b53; color:#d6d3ff; }
html[data-theme="dark"] .evidence-toggle:hover { background:#302b53; color:#d6d3ff; }
html[data-theme="dark"] .scope-banner { background:#2c2d47; border-color:#4a4b72; color:#e6e5ff; }
html[data-theme="dark"] .ask-panel textarea { background:#161923; color:#f1f0f6; }
html[data-theme="dark"] .source-drawer, html[data-theme="dark"] .finding-evidence-rail { background:var(--craft-paper); }
html[data-theme="dark"] .drawer-section-title { color:var(--craft-ink); }
html[data-theme="dark"] .field-name { color:var(--craft-muted); }
html[data-theme="dark"] .source-document { border-color:var(--craft-hairline); }
html[data-theme="dark"] .source-document mark { background:#474080; color:#fff; }
html[data-theme="dark"] .metric:nth-child(-n+2) { border-bottom-color:var(--craft-hairline); }


/* V12.16a — heading capitalization hierarchy.
 * Major page/section headings are uppercase; research record titles use
 * presentation-only Title Case. Quotes and body text keep source casing. */
.page-heading h1,
.section-heading h2,
.product-header h3,
.result-section > h2,
.result-subhead {
  text-transform: uppercase;
  letter-spacing: -.024em;
}
.page-heading h1 { font-size:clamp(29px, 3vw, 40px); line-height:1.16; }
.section-heading h2 { font-size:22px; line-height:1.3; }
.product-header h3 { font-size:19px; }
.finding-card h3, .finding-evidence-head h2 { text-transform:none; }
@media (max-width:750px) {
  .page-heading h1 { font-size:29px; line-height:1.16; }
  .section-heading h2 { font-size:20px; }
}

/* V12.16b — claim-screening result contrast.
   The inherited light lavender surface was unreadable in dark mode.
   Scope just the automated screening summary, not all semantic tags. */
.verification-summary {
  background:#eeecff;
  border:1px solid #bbb7f6;
  color:#272365;
}
.verification-summary b, .verification-summary svg { color:inherit; }
html[data-theme="dark"] .verification-summary {
  background:#282840;
  border-color:#57557f;
  color:#edeaff;
}
html[data-theme="dark"] .verification-summary b,
html[data-theme="dark"] .verification-summary svg { color:#edeaff; }


/* SiGNAL V12.17 — Gridwork
   Inspired by the supplied Drawing Board concept's *surface treatment* only.
   Preserves the V12.16b layout, data hierarchy, behavior and source interactions.
   Solid offset shadows, square cards, visible but quiet grid.
   No ornamental eyebrow labels, hero drawings, gradients or glass surfaces.
*/
:root {
  --gridwork-grid: rgba(85, 91, 110, .095);
  --gridwork-background: #f5f5f1;
  --gridwork-ink: #151720;
  --gridwork-edge: #20212c;
  --gridwork-shadow: #252631;
  --gridwork-soft-edge: #6b6f86;
  --gridwork-unit: 26px;
  /* Fixed grid origin meets the desktop sidebar / toolbar at their join. */
  --gridwork-origin-x: 256px;
  --gridwork-origin-y: 65px;
  --gridwork-heading-plane: #f5f5f1;
  --gridwork-heading-rgb: 245, 245, 241;
}

/* A graph-paper working surface behind the ORIGINAL content structure. */
.workspace {
  background-color: var(--gridwork-background);
  background-image:
    linear-gradient(to right, var(--gridwork-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gridwork-grid) 1px, transparent 1px);
  background-size: var(--gridwork-unit) var(--gridwork-unit);
  background-position: var(--gridwork-origin-x) var(--gridwork-origin-y);
  background-attachment: fixed, fixed; /* grid is anchored to viewport, not document */
}
.main-inner { background: transparent; }
/* The navigation and top bar remain solid, keeping controls readable. */
.topbar { background: var(--craft-paper); }

/* No rounded generic dashboard tiles: a single square data band. */
.metric-grid {
  border: 1px solid var(--gridwork-edge);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--gridwork-shadow);
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Findings remain two-column and equal-height. Room for the solid shadows is
   accounted for in the GRID gap, not added as empty space inside any card. */
.findings-list {
  column-gap: 22px;
  row-gap: 22px;
  padding: 0 6px 7px 0;
}
.finding-card {
  border: 1px solid var(--gridwork-edge);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--gridwork-shadow);
  transition:
    transform 135ms ease,
    box-shadow 135ms ease,
    border-color 135ms ease;
}
.finding-card:hover {
  border-color: var(--craft-accent);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--gridwork-shadow);
}
.finding-card-selected,
.finding-card-selected:hover {
  border-color: var(--craft-accent);
  box-shadow: 5px 5px 0 var(--craft-accent);
}

/* The information on the cards is unchanged; only their physical language shifts. */
.kind,
.category-tag,
.evidence-toggle,
.finding-card-selected .evidence-toggle,
.opportunity,
.version-icon { border-radius: 0; }
.evidence-toggle:focus-visible { outline-offset: -1px; }

/* Question work surface and adjacent reference pane — two distinct panels,
   not a stack of miniature promotional widgets. */
.ask-panel,
.ask-sidebar,
.answer-box,
.comparison-col,
.provenance-card,
.method-card,
.event-card,
.empty-state,
.empty-project {
  border: 1px solid var(--gridwork-edge);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--gridwork-shadow);
}
.explore-layout,
.method-grid,
.events-list { gap: 20px; }
.result-section { padding-right: 5px; }

/* Retrieved reviews are individual physical records; nested citations and
   metadata do not need their own shadows. */
.retrieval-list,
.retrieved-reviews { gap: 17px; }
.retrieved-review-card,
.retrieved-row {
  border: 1px solid var(--gridwork-edge);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--gridwork-shadow);
}
.source-document,
.evidence-review,
.finding-evidence-context span,
.source-meta span,
.claim-context { border-radius: 0; }
.evidence-review { border-color: var(--gridwork-soft-edge); }
.finding-evidence-rail { border-left: 2px solid var(--gridwork-edge); }
.source-drawer { border-left: 2px solid var(--gridwork-edge); }

/* Keep functional callouts flat, without a shadow inside a shadow. */
.scope-banner,
.index-prompt,
.notice,
.verification-summary { border-radius: 0; }

/* Eyebrows: DO NOT resurrect them as part of this design. */
.eyebrow,
.sidebar-section-caption,
.brand-sub { display: none !important; }

/* The graph paper is intentionally subtler in dark mode. Cards have brighter
   outlines, not glass or glowing effects. */
html[data-theme="dark"] {
  --gridwork-grid: rgba(174, 177, 206, .065);
  --gridwork-background: #151722;
  --gridwork-edge: #8b8ca6;
  --gridwork-shadow: #060811;
  --gridwork-soft-edge: #555a72;
  --gridwork-heading-plane: #151722;
  --gridwork-heading-rgb: 21, 23, 34;
}
html[data-theme="dark"] .workspace {
  background-color: var(--gridwork-background);
  background-image:
    linear-gradient(to right, var(--gridwork-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gridwork-grid) 1px, transparent 1px);
  background-size: var(--gridwork-unit) var(--gridwork-unit);
  background-position: var(--gridwork-origin-x) var(--gridwork-origin-y);
  background-attachment: fixed, fixed;
}
html[data-theme="dark"] .metric-grid,
html[data-theme="dark"] .finding-card,
html[data-theme="dark"] .ask-panel,
html[data-theme="dark"] .ask-sidebar,
html[data-theme="dark"] .answer-box,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .method-card,
html[data-theme="dark"] .provenance-card,
html[data-theme="dark"] .comparison-col,
html[data-theme="dark"] .retrieved-review-card,
html[data-theme="dark"] .retrieved-row {
  border-color: var(--gridwork-edge);
  box-shadow: 4px 4px 0 var(--gridwork-shadow);
}
html[data-theme="dark"] .finding-card {
  box-shadow: 5px 5px 0 var(--gridwork-shadow);
}
html[data-theme="dark"] .finding-card:hover {
  border-color: #aaa7ff;
  box-shadow: 6px 6px 0 var(--gridwork-shadow);
}
html[data-theme="dark"] .finding-card-selected,
html[data-theme="dark"] .finding-card-selected:hover {
  border-color: #aaa7ff;
  box-shadow: 5px 5px 0 #6f69ff;
}
html[data-theme="dark"] .finding-evidence-rail,
html[data-theme="dark"] .source-drawer { border-left-color: var(--gridwork-edge); }
html[data-theme="dark"] .evidence-review { border-color: var(--gridwork-soft-edge); }

@media (max-width: 1150px) {
  .findings-list { grid-template-columns: 1fr; }
  .metric-grid { margin-right: 4px; }
}
@media (max-width: 750px) {
  :root { --gridwork-unit: 22px; --gridwork-origin-x: 0px; --gridwork-origin-y: 0px; }
  .findings-list { row-gap: 19px; padding-right: 6px; }
  .metric-grid { border-radius: 0; gap: 0; }
  .metric { border-radius: 0; }
  .metric:nth-child(odd) { border-right: 1px solid var(--craft-hairline); }
  .metric:nth-child(even) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--craft-hairline); }
  .ask-panel,
  .ask-sidebar,
  .answer-box,
  .event-card,
  .method-card,
  .provenance-card { box-shadow: 3px 3px 0 var(--gridwork-shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .finding-card { transition: none; }
  .finding-card:hover { transform: none; }
}

/* V12.20 — TEXT-BOUNDED translucent masks.
   Do NOT shade the whole page/section/product header: they also contain
   whitespace, controls, counts and run metadata which should show the grid.
   Only actual display-heading glyph boxes receive a small translucent halo.
   The h1/h2/h3 width is intrinsic (rather than stretching across its row),
   and the grid remains fixed on .workspace as set above. */
.page-heading,
.section-heading,
.product-header,
.result-section > h2,
.result-section > h3,
.result-subhead,
.footer {
  background: transparent;
  background-image: none;
}
/* Normal inline descriptions, the run/version summary, product counts,
   form controls and the footer need NO translucent mask. */
.page-heading h1,
.section-heading h2,
.product-header h3,
.result-section > h2,
.result-section > h3,
.result-subhead {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
}
/* On multi-line headings the halo is no wider than the heading's own box;
   it does not spread to adjacent columns or blank layout space. */
.page-heading h1::before,
.section-heading h2::before,
.product-header h3::before,
.result-section > h2::before,
.result-section > h3::before,
.result-subhead::before {
  content: "";
  position: absolute;
  inset: 1px -5px;
  z-index: -1;
  pointer-events: none;
  background: rgba(var(--gridwork-heading-rgb), .78);
  filter: blur(5px);
}
/* No gradient/backdrop pseudo-elements on the layout wrappers. */
.page-heading::before,
.section-heading::before,
.product-header::before,
.footer::before {
  content: none;
}
.page-heading { padding: 16px 16px 18px; }
.section-heading { padding: 12px 14px; }
.product-header {
  padding: 13px 14px 14px;
  border-bottom: 2px solid var(--gridwork-edge);
  margin-bottom: 18px;
}
/* Keep the entire left column black even beyond the sticky sidebar's viewport
   height on long findings pages. The workspace paints its own background. */
.app-shell { background: #000000; }
/* Avoid accidental rounded badges and oversized strips in the left navigation. */
.sidebar,
html[data-theme="dark"] .sidebar {
  background: #000000;
  background-image: none;
  color: #f8f8ff;
  border-right: 1px solid #34343f;
}
.sidebar .sidebar-rule { background: #31313e; }
.sidebar .sidebar-bottom { border-top-color: #31313e; }
.sidebar .select-label { color: #d0d1df; }
.sidebar .signal-select--sidebar {
  --select-bg: #121218;
  --select-border: #575769;
  --select-ink: #f6f5ff;
  --select-muted: #c3c3d7;
  --select-menu-bg: #101016;
  --select-hover: #24243a;
  --select-active: #302b56;
  --select-active-ink: #f5f4ff;
}
.sidebar .signal-select--sidebar .signal-select-trigger,
.sidebar .signal-select--sidebar .signal-select-menu,
.sidebar .signal-select--sidebar .signal-select-option,
.sidebar .nav-link,
.sidebar .connection-button,
.sidebar .auth-panel,
.sidebar .auth-panel input,
.sidebar .auth-panel button {
  border-radius: 0;
}
.sidebar .signal-select--sidebar .signal-select-trigger {
  background: var(--select-bg);
  border-color: var(--select-border);
  color: var(--select-ink);
  box-shadow: none;
}
.sidebar .signal-select--sidebar .signal-select-trigger:hover:not(:disabled),
.sidebar .signal-select--sidebar .signal-select-trigger.is-open {
  border-color: #b9b6ff;
  box-shadow: inset 3px 0 0 #aaa6ff;
}
.sidebar .signal-select--sidebar .signal-select-menu {
  background: var(--select-menu-bg);
  border-color: var(--select-border);
  color: var(--select-ink);
}
.sidebar .signal-select--sidebar .signal-select-option.is-active:not(:disabled),
.sidebar .signal-select--sidebar .signal-select-option:hover:not(:disabled) { background: var(--select-hover); }
.sidebar .signal-select--sidebar .signal-select-option.is-selected:not(:disabled) { background: var(--select-active); color: var(--select-active-ink); }
.sidebar .nav-link { color: #d6d6e2; }
.sidebar .nav-link:hover { background: #1d1c28; color: #fff; }
.sidebar .nav-link.active {
  background: #23212e;
  color: #fff;
  box-shadow: inset 4px 0 0 #aaa6ff;
}
.sidebar .nav-count { color: #d3cfff; }
.sidebar .connection-button { color: #f2f1ff; }
.sidebar .connection-button:hover { background: #1e1d29; }
.sidebar .auth-panel { background: #111119; color: #e8e8f1; }
.sidebar .auth-panel input { background: #07070a; color: #fff; }
.sidebar .auth-panel button { background: #cecbff; color: #1c1a48; }
@media (max-width: 750px) {
  .page-heading { padding: 12px 10px 14px; }
  .section-heading { padding: 10px 8px; }
  .product-header { padding: 11px 8px 13px; }
}


/* V12.19 — Ask the Evidence selectors use the SAME square, dark component
   styling as the black sidebar, in both application themes.  This is a visual
   override only: choices, keyboard navigation and values are untouched. */
.ask-controls .signal-select--form,
html[data-theme="dark"] .ask-controls .signal-select--form {
  --select-bg: #121218;
  --select-border: #575769;
  --select-ink: #f6f5ff;
  --select-muted: #c3c3d7;
  --select-menu-bg: #101016;
  --select-hover: #24243a;
  --select-active: #302b56;
  --select-active-ink: #f5f4ff;
  --select-shadow: 4px 4px 0 #08080f;
}
.ask-controls .signal-select--form .signal-select-trigger,
.ask-controls .signal-select--form .signal-select-menu,
.ask-controls .signal-select--form .signal-select-option {
  border-radius: 0;
}
.ask-controls .signal-select--form .signal-select-trigger {
  background: var(--select-bg);
  border-color: var(--select-border);
  color: var(--select-ink);
  min-height: 43px;
  box-shadow: none;
}
.ask-controls .signal-select--form .signal-select-trigger:hover:not(:disabled),
.ask-controls .signal-select--form .signal-select-trigger.is-open,
html[data-theme="dark"] .ask-controls .signal-select--form .signal-select-trigger:hover:not(:disabled),
html[data-theme="dark"] .ask-controls .signal-select--form .signal-select-trigger.is-open {
  border-color: #b9b6ff;
  box-shadow: inset 3px 0 0 #aaa6ff;
}
.ask-controls .signal-select--form .signal-select-menu {
  background: var(--select-menu-bg);
  border-color: var(--select-border);
  color: var(--select-ink);
  z-index: 90;
}
.ask-controls .signal-select--form .signal-select-option.is-active:not(:disabled),
.ask-controls .signal-select--form .signal-select-option:hover:not(:disabled) {
  background: var(--select-hover);
}
.ask-controls .signal-select--form .signal-select-option.is-selected:not(:disabled) {
  background: var(--select-active);
  color: var(--select-active-ink);
}
.ask-controls .signal-select--form .signal-select-option-description {
  color: #c3c3d7;
}
/* Open menus stay above neighboring form fields and their labels. */
.ask-controls .ask-field:has(.signal-select-menu) {
  position: relative;
  z-index: 15;
}



/* V12.22 — Align the inquiry work surface and explanation panel.
   Keep desktop columns equal-height; on narrow screens they stack naturally. */
@media (min-width: 1151px) {
  .explore-layout { align-items: stretch; }
  .explore-layout > .ask-panel,
  .explore-layout > .ask-sidebar { align-self: stretch; min-width: 0; }
}
.ask-sidebar { display: flex; flex-direction: column; }
.ask-sidebar .search-mode-guide {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--craft-hairline);
  display: grid;
  gap: 11px;
}
.ask-sidebar .search-mode-guide p {
  margin: 0;
  color: var(--craft-muted);
  line-height: 1.56;
  font-size: 12px;
}
.ask-sidebar .search-mode-guide strong {
  color: var(--craft-ink);
  font-weight: 800;
}
.ask-sidebar .search-mode-guide .search-mode-caution {
  font-size: 11px;
  line-height: 1.55;
}
@media (max-width: 1150px) {
  .explore-layout { align-items: start; }
  .explore-layout > .ask-panel,
  .explore-layout > .ask-sidebar { align-self: auto; }
  .ask-sidebar .search-mode-guide { margin-top: 16px; }
}


/* V12.23 — Workspace dropdowns have a light-mode treatment.
   Sidebar selectors remain the original near-black controls. This changes only
   presentation, not the shared SignalSelect component or interaction model. */
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) {
  --select-bg: #fcfcff;
  --select-border: #8c90a9;
  --select-ink: #202136;
  --select-muted: #626783;
  --select-menu-bg: #ffffff;
  --select-hover: #f0efff;
  --select-active: #e4e2ff;
  --select-active-ink: #2925b2;
  --select-shadow: 4px 4px 0 #292a3b;
}
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-trigger {
  background: var(--select-bg);
  border-color: var(--select-border);
  color: var(--select-ink);
}
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-trigger:hover:not(:disabled),
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-trigger.is-open {
  border-color: #3430ff;
  box-shadow: inset 3px 0 0 #3430ff;
}
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-menu {
  background: var(--select-menu-bg);
  border-color: var(--select-border);
  color: var(--select-ink);
  box-shadow: var(--select-shadow);
}
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-option {
  color: var(--select-ink);
}
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-option.is-active:not(:disabled),
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-option:hover:not(:disabled) {
  background: var(--select-hover);
}
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-option.is-selected:not(:disabled) {
  background: var(--select-active);
  color: var(--select-active-ink);
}
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-option-description {
  color: var(--select-muted);
}
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-icon,
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-chevron {
  color: #514cc3;
}
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-trigger,
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-menu,
html[data-theme="light"] .workspace .signal-select:not(.signal-select--sidebar) .signal-select-option {
  border-radius: 0;
}


/* V14 portfolio demo: use SiGNAL's existing accessible custom dropdowns for
   both OXO selectors, with theme-specific menu + trigger colors. */
.v142-search, .v142-query-row { min-width: 0; max-width: 100%; box-sizing: border-box; }
.v142-query-row { display: flex; align-items: stretch; gap: 12px; }
.v142-product-choice { flex: 1 1 0; min-width: 0; max-width: 100%; }
.v142-product-choice .signal-select { width: 100%; }
.v142-product-choice .signal-select-trigger { min-height: 52px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.v142-product-choice .signal-select-menu { width: 100%; max-width: 100%; box-sizing: border-box; }
.v142-query-row > .v142-action { flex: 0 0 auto; min-height: 52px; }
.v142-query-row:has(.signal-select-menu), .v147-form:has(.signal-select-menu) { position: relative; z-index: 25; }
.v147-intake .v147-product-summary { display: block; margin: 4px 0 10px; }
.v147-form .demo-product-picker { width: 100%; max-width: 540px; height: auto; padding: 0; margin: 0 0 23px; background: transparent; border: 0; border-radius: 0; }
.v147-form .demo-product-picker .signal-select { width: 100%; }
.v147-form .demo-product-picker .signal-select-trigger { min-height: 51px; padding: 0 15px; font-size: 14px; border-radius: 9px; }
.v147-form .demo-product-picker .signal-select-menu { width: 100%; max-width: 100%; box-sizing: border-box; }
.v142-product-choice .signal-select-option-label, .demo-product-picker .signal-select-option-label { font-size: 13px; }
.v142-product-choice .signal-select-option-description, .demo-product-picker .signal-select-option-description { font-size: 11px; }
html[data-theme="light"] .v142-product-choice .signal-select,
html[data-theme="light"] .v147-form .demo-product-picker .signal-select {
  --select-bg: #fcfcff; --select-border: #8c90a9; --select-ink: #202136;
  --select-muted: #626783; --select-menu-bg: #fff; --select-hover: #f0efff;
  --select-active: #e4e2ff; --select-active-ink: #2925b2;
}
html[data-theme="dark"] .v142-product-choice .signal-select,
html[data-theme="dark"] .v147-form .demo-product-picker .signal-select {
  --select-bg: #171c2b; --select-border: #505771; --select-ink: #f0f1ff;
  --select-muted: #bac3df; --select-menu-bg: #23283a; --select-hover: #343651;
  --select-active: #34315f; --select-active-ink: #d1ccff;
}
@media (max-width: 850px) {
  .v142-query-row { flex-direction: column; }
  .v142-query-row > .v142-action { width: 100%; min-height: 48px; padding: 13px 17px; }
}

/* SiGNAL portfolio walkthrough V4 — one product, one dataset, then analysis.
   Theme tokens scope to this view; no native select controls or fake upload forms. */
.sdemo {
  --sd-ink:#1f2334;
  --sd-muted:#656b82;
  --sd-panel:#ffffff;
  --sd-panel-alt:#f6f6fc;
  --sd-edge:#d4d8e6;
  --sd-lavender:#4942bf;
  --sd-accent:#eceaff;
  color:var(--sd-ink);
  max-width:1010px;
  padding:5px 0 78px;
}
html[data-theme="dark"] .sdemo {
  --sd-ink:#f2f2ff;
  --sd-muted:#bac2d8;
  --sd-panel:#1d2232;
  --sd-panel-alt:#181d2c;
  --sd-edge:#505871;
  --sd-lavender:#aea5ff;
  --sd-accent:#292741;
}
.sdemo-intro { padding: 0 0 26px; }
.sdemo-intro h1 { color:var(--sd-ink); margin:10px 0 10px; font-size:clamp(28px,3.4vw,44px); line-height:1.12; }
.sdemo-intro > p { max-width:690px; font-size:14px; line-height:1.7; margin:0; color:var(--sd-muted); }
.sdemo-kicker { display:flex; align-items:center; gap:8px; font-size:10px; line-height:1.45; letter-spacing:.12em; font-weight:850; color:var(--sd-lavender); text-transform:uppercase; }
.sdemo-disclaimer { margin-top:23px; padding:13px 16px; display:flex; align-items:flex-start; gap:12px; background:var(--sd-accent); border:1px solid var(--sd-edge); border-radius:9px; color:var(--sd-ink); font-size:11px; line-height:1.65; max-width:840px; }
.sdemo-disclaimer svg { flex-shrink:0; color:var(--sd-lavender); margin-top:1px; }
.sdemo-chooser, .sdemo-match, .sdemo-progress-card { border:1px solid var(--sd-edge); background:var(--sd-panel); border-radius:12px; padding:25px 27px; margin:0 0 21px; }
.sdemo-chooser label { display:block; color:var(--sd-ink); font-weight:800; font-size:13px; margin-bottom:12px; }
.sdemo-chooser-row { display:flex; align-items:stretch; gap:13px; min-width:0; }
.sdemo-picker { flex:1 1 0; min-width:0; }
.sdemo-picker .signal-select { width:100%; }
.sdemo-picker .signal-select-trigger { width:100%; height:49px; min-height:49px; padding:0 15px; border-radius:9px; }
.sdemo-picker .signal-select-menu { max-width:100%; width:100%; z-index:100; }
.sdemo-picker .signal-select-option-description { font-size:11px; }
.sdemo-chooser:has(.signal-select-menu) { position:relative; z-index:40; }
.sdemo .sdemo-button {
  display:inline-flex; justify-content:center; align-items:center; gap:12px;
  padding:12px 20px; min-height:49px; white-space:nowrap;
  background:#afa6ff; color:#16162a; border:1px solid #afa6ff;
  border-radius:8px; font-size:12px; line-height:1.25; font-weight:850;
  transition:background-color .15s,border-color .15s,transform .15s;
}
.sdemo .sdemo-button:hover:not(:disabled) { background:#c8c1ff; border-color:#c8c1ff; transform:translateY(-1px); }
.sdemo .sdemo-button:disabled { opacity:.5; cursor:not-allowed; }
.sdemo-match { margin-top:21px; }
.sdemo-dataset { display:flex; flex-wrap:wrap; gap:22px; align-items:center; justify-content:space-between; margin-top:18px; }
.sdemo-dataset-body { display:flex; gap:17px; align-items:center; flex:1 1 320px; min-width:0; }
.sdemo-dataset-icon { flex:0 0 auto; border:1px solid var(--sd-edge); background:var(--sd-panel-alt); color:var(--sd-lavender); width:51px; height:51px; display:flex; align-items:center; justify-content:center; border-radius:10px; }
.sdemo-dataset-meta { flex:1; min-width:0; }
.sdemo-dataset-meta h2 { color:var(--sd-ink); font-size:18px; line-height:1.25; margin:0 0 7px; }
.sdemo-dataset-meta p { color:var(--sd-muted); font-size:11px; line-height:1.55; margin:0; }
.sdemo-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:17px; }
.sdemo-selected { display:inline-flex; align-items:center; gap:7px; color:var(--sd-lavender); font-weight:800; font-size:11px; }
.sdemo-progress-header { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; margin-bottom:23px; }
.sdemo-progress-product { color:var(--sd-muted); font-size:12px; font-weight:700; }
.sdemo-progress-title { color:var(--sd-ink); display:flex; align-items:center; gap:11px; font-size:17px; font-weight:800; min-height:38px; }
.sdemo-progress-title svg { color:var(--sd-lavender); }
.sdemo-progress-track { background:var(--sd-accent); height:9px; border-radius:15px; overflow:hidden; margin-top:19px; }
.sdemo-progress-track > span { display:block; height:100%; background:#aca2ff; transition:width .2s linear; border-radius:15px; }
.sdemo-progress-caption { color:var(--sd-muted); font-size:11px; margin:12px 0 0; }
.sdemo-completed { display:flex; align-items:center; gap:16px; margin-bottom:21px; }
.sdemo-completed > svg { flex:0 0 auto; color:var(--sd-lavender); }
.sdemo-completed h2 { font-size:22px; margin:0 0 3px; color:var(--sd-ink); }
.sdemo-completed p { font-size:12px; color:var(--sd-muted); margin:0; }
.sdemo-restart { display:inline-flex; align-items:center; gap:8px; margin-left:15px; border:0; background:transparent; padding:10px 4px; color:var(--sd-muted); font-weight:700; font-size:11px; }
.sdemo-restart:hover { color:var(--sd-ink); }
.sdemo-error { margin:18px 0 0; padding:12px 15px; border:1px solid #c66e79; border-radius:7px; color:#a02a3f; background:#fff3f5; font-size:12px; }
html[data-theme="dark"] .sdemo-error { color:#ffbdc8; background:#3e2635; }
.sdemo-muted { color:var(--sd-muted); font-size:12px; }
.sdemo-spin { animation:sdemo-spin .9s linear infinite; }
@keyframes sdemo-spin { to { transform:rotate(360deg); } }
@media(max-width:760px){
  .sdemo { padding-bottom:50px; }
  .sdemo-chooser,.sdemo-match,.sdemo-progress-card{padding:20px 17px;}
  .sdemo-chooser-row{flex-direction:column;}
  .sdemo-chooser-row>.sdemo-button { width:100%; }
  .sdemo-dataset { align-items:stretch; }
  .sdemo-dataset>.sdemo-button { flex:1 1 auto; }
  .sdemo-actions { justify-content:stretch; width:100%; }
  .sdemo-actions .sdemo-button { width:100%; }
  .sdemo-restart { margin:11px 0 0; }
  .sdemo-progress-card>.sdemo-button { width:100%; }
}

/* V4.1 publish patch: compact project controls + unified findings toolbar */
.v14-project-heading {
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.v14-project-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sidebar .v14-text-action {
  padding: 0;
  font-size: 11px;
  line-height: 1.2;
}
.sidebar .v14-mini-form--row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  margin: 0 0 10px;
  align-items: stretch;
}
.sidebar .v14-mini-form--row input,
.sidebar .v14-mini-form--row button,
.sidebar .signal-select--sidebar .signal-select-trigger,
.sidebar .signal-select--sidebar .signal-select-menu {
  border-radius: 0;
}
.sidebar .v14-mini-form--row input,
.sidebar .v14-mini-form--row button {
  min-height: 43px;
}
.sidebar .v14-mini-form--row button {
  width: auto;
  padding: 0 14px;
  white-space: nowrap;
  margin: 0;
}
.v1411-sidebar-delete--inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffadb8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.v1411-sidebar-delete--inline:hover,
.v1411-sidebar-delete--inline:focus-visible {
  color: #ffd4db;
  background: transparent;
  border-color: transparent;
}

.filter-toolbar {
  display: flex;
  align-items: stretch;
  gap: 18px;
}
.filter-search {
  flex: 1 1 320px;
  min-height: 48px;
  height: 48px;
  padding: 0 16px;
  border-radius: 0;
}
.filter-search input {
  width: 100%;
  min-width: 0;
  font-size: 14px;
}
.signal-select--toolbar {
  min-width: 240px;
}
.signal-select--toolbar .signal-select-trigger,
.signal-select--toolbar .signal-select-menu {
  border-radius: 0;
}
.signal-select--toolbar .signal-select-trigger {
  min-height: 48px;
  height: 48px;
  padding: 0 16px;
  font-size: 14px;
}

@media (max-width: 750px) {
  .sidebar .v14-mini-form--row {
    grid-template-columns: 1fr;
  }
  .sidebar .v14-mini-form--row button {
    width: 100%;
    padding: 11px 14px;
  }
  .filter-toolbar {
    gap: 12px;
  }
  .filter-search,
  .signal-select--toolbar {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
}


/* V6 — project panel measured for the 256px sidebar (218px content area).
   V5 let an unbounded button squeeze the project-name input. */
.sidebar .v14-project-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
  margin:0 0 10px;
}
.sidebar .v14-project-heading > .select-label {
  padding:0;
  margin:0;
  flex:0 0 auto;
  font-size:12px;
}
.sidebar .v14-project-heading-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:10px;
  min-width:0;
  margin-left:auto;
}
.sidebar .v14-project-heading-actions > button {
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:0 0 auto;
  padding:3px 0;
  line-height:1.25;
  white-space:nowrap;
  font-size:11px;
  font-weight:600;
}
.sidebar .v14-mini-form--row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 72px;
  gap:8px;
  width:100%;
  min-width:0;
  align-items:stretch;
  margin:0 0 10px;
}
.sidebar .v14-mini-form--row input:not([type="checkbox"]) {
  box-sizing:border-box;
  display:block;
  width:100%;
  min-width:0;
  height:43px;
  min-height:43px;
  padding:0 10px;
  font-size:12px;
  line-height:1.3;
  border-radius:0;
  overflow:hidden;
}
.sidebar .v14-mini-form--row button {
  width:72px;
  max-width:72px;
  height:43px;
  min-height:43px;
  padding:0 5px;
  border-radius:0;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:0;
  text-align:center;
  justify-content:center;
  white-space:nowrap;
}
.sidebar .v14-mini-form--row button:disabled {opacity:.62;}
/* Keep the compact inline treatment even when the sidebar becomes full-width. */
@media (max-width:750px) {
  .sidebar .v14-mini-form--row {
    grid-template-columns:minmax(0,1fr) 72px;
  }
  .sidebar .v14-mini-form--row button {
    width:72px;
    max-width:72px;
    padding:0 5px;
  }
}

/* Keep longer project names legible rather than truncating them at "Showc…". */
.sidebar .signal-select--sidebar .signal-select-trigger {
  min-height:49px;
  padding:7px 10px;
}
.sidebar .signal-select--sidebar .signal-select-value {
  white-space:normal;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:break-word;
}
@media (max-width:750px) {
  /* V5's old 47%-width mobile rule made the only project picker half-size. */
  .sidebar .signal-select--sidebar {
    display:block;
    width:100%;
    margin:0 0 10px;
  }
}
