.research-chat{max-width:900px;margin:auto;padding-bottom:36px}.research-head h1{font-size:28px;margin:22px 0 8px}.research-head p{color:#647582}.research-message{display:flex;flex-direction:column;align-items:flex-start;margin:22px 0;gap:7px}.research-author{font-size:12px;color:#6c7b87}.research-bubble{max-width:88%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.from-user{align-items:flex-end}.from-user .research-bubble{background:#e8f0f7;border-radius:16px 16px 3px 16px;padding:12px 18px}.from-assistant .research-bubble{padding:6px 0}.research-compose{margin:24px 0 18px;border:1px solid #cad5df;border-radius:14px;background:#fff;padding:14px 16px}.research-label{display:block;font-size:12px;color:#647582;margin-bottom:8px}.research-compose textarea{display:block;width:100%;box-sizing:border-box;min-height:76px;border:0;outline:none;resize:vertical;background:transparent;color:#112b3c;font:inherit;line-height:1.65}.research-compose textarea:focus-visible{outline:2px solid #5a9dce;outline-offset:4px;border-radius:4px}.research-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.research-compose-foot span{font-size:12px;color:#73818d}.research-compose #researchSend{background:#124d82;color:white;border-color:#124d82;padding:9px 24px}.research-typing,.research-welcome{color:#647582;padding:12px 0}.research-compose [role=status]{font-size:13px;color:#526775;margin:8px 0 0}.research-plan{border-top:1px solid #d8e0e7;padding-top:16px}.research-plan summary{cursor:pointer;font-weight:600}.research-plan summary span{font-weight:400;font-size:12px;color:#71808b;margin-left:10px}.research-plan dl{display:grid;grid-template-columns:110px 1fr;gap:10px 16px;font-size:14px;line-height:1.7}.research-plan dt{color:#71808b}.research-plan dd{margin:0;overflow-wrap:anywhere}@media(max-width:600px){.research-chat{padding:18px 16px}.research-bubble{max-width:96%}.research-compose-foot span{font-size:10px}.research-plan dl{grid-template-columns:78px 1fr}.research-head h1{font-size:24px}}
.research-chat #researchMessages{max-height:52vh;overflow-y:auto;overscroll-behavior:contain;padding-right:8px;scroll-behavior:smooth}.research-chat #researchMessages:empty{display:none}

/* One transcript scroll area; composer stays inside the viewport. */
.research-main{overflow:hidden}.research-chat{width:100%;max-width:1100px;flex:1;min-height:0;height:100%;display:grid;grid-template-rows:auto minmax(80px,1fr) auto auto;padding:20px 32px 16px;gap:0;margin:0 auto}.research-head{padding-bottom:8px}.research-head h1{font-size:22px;margin:12px 0 4px}.research-head p{font-size:13px;margin:0}.research-chat #researchMessages{max-height:none;min-height:0;overflow-y:auto;padding:8px 18px 18px 0;scrollbar-gutter:stable}.research-compose{margin:10px 0;padding:12px 16px}.research-compose textarea{min-height:56px;max-height:160px}.research-message{margin:16px 0}.research-bubble{max-width:85%;font-size:15px;line-height:1.8}.research-plan{padding-top:10px;font-size:13px}.research-plan[open]{max-height:32vh;overflow:auto}.research-plan dl{font-size:13px}.research-plan summary{padding:4px 0}.research-author{font-size:11px}.app:has(.research-main) .side .newbtn{background:transparent;color:#bdcbd7;border:1px solid #344552;font-size:13px;font-weight:500;padding:11px}.app:has(.research-main) .side .newbtn:hover{background:#223a4b;color:#fff}
@media(max-width:600px){.research-chat{padding:12px;grid-template-rows:auto minmax(50px,1fr) auto auto}.research-head h1{font-size:20px;margin:8px 0 3px}.research-compose-foot span{display:none}.research-compose-foot{justify-content:flex-end}.research-compose textarea{min-height:48px}.research-bubble{max-width:94%;font-size:14px}.research-plan summary span{display:none}}

.research-compose textarea{height:64px;resize:none}
.research-execution-summary{font-size:12px!important;color:#526775;margin-top:6px!important}.research-module-choice{border:1px solid #cad5df;border-radius:8px;padding:12px;margin-bottom:12px}.research-module-options label{display:flex;gap:9px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #e4eaf0}.research-module-options input{margin-top:4px;flex-shrink:0}.research-module-options small{display:block;margin-top:4px;color:#647582}.research-module-options span{min-width:0;overflow-wrap:anywhere}.research-module-choice button{margin-top:8px}
.research-job-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.research-job-heading strong{font-size:13px}.research-job-heading button{font-size:12px;padding:6px 10px;flex-shrink:0}.research-job-empty{font-size:12px;color:#647582;margin:5px 0 0}
.research-jobs:empty{display:none}.research-jobs{max-height:120px;overflow:auto;margin-top:8px;font-size:12px}.research-job{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e4eaf0}.research-job span{overflow-wrap:anywhere}.research-job button{flex-shrink:0;padding:5px 9px;font-size:12px}.research-report{line-height:1.8;overflow-wrap:anywhere}.research-report h3{font-size:17px}.research-report-finding{border-top:1px solid #d8e0e7;margin-top:14px;padding-top:10px}.research-report details{margin:6px 0}.research-report details p{white-space:pre-wrap;font-size:13px}.research-report-actions{position:sticky;bottom:0;background:#fff;padding:12px 0;display:flex;gap:12px}.research-execute-confirm{padding:12px;border:1px solid #cad5df;border-radius:8px;margin-top:12px}.research-execute-confirm label{display:block;margin:10px 0;font-size:13px}
.research-calibration{padding:10px 12px;background:#fff8ec;border:1px solid #e3cfab;border-radius:8px;margin-bottom:12px}.research-calibration h4{margin:0 0 6px}.research-calibration p{margin:5px 0}
.research-workplan{border-top:1px solid #d8e0e7;padding-top:12px}.research-workplan h3{font-size:16px}.research-workplan p,.research-workplan li,.research-workplan details{font-size:13px;line-height:1.7}.research-sampling-inputs{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.research-sampling-inputs label{display:flex;flex-direction:column;font-size:12px;gap:4px}.research-sampling-inputs input{max-width:140px;border:1px solid #cad5df;border-radius:6px;padding:7px;font:inherit}.research-sampling-table{width:100%;border-collapse:collapse;font-size:13px;margin:10px 0}.research-sampling-table th,.research-sampling-table td{padding:7px;text-align:left;border-bottom:1px solid #e4eaf0}.research-workplan details{padding:6px 0}
.research-attachment-wrap{display:flex;flex:0 0 auto;max-width:min(420px,95%);gap:4px;align-items:stretch}.research-attachment-wrap .research-attachment{flex:1 1 auto;max-width:calc(100% - 44px);min-width:0}.research-attachment-remove{flex:0 0 auto;background:#fff;color:#6d4850;border:1px solid #d8cbd0;border-radius:7px;padding:6px;font:inherit;cursor:pointer}.research-attachment-remove:hover{background:#fff1f2}.research-attachment-remove:disabled{opacity:.5;cursor:wait}
.research-image-preview{display:block;max-width:min(320px,100%);max-height:240px;object-fit:contain;border:1px solid #d8e0e7;border-radius:10px;background:#fff}
.research-attachments{font-size:12px;margin-bottom:10px}.research-attachment-list{display:flex;gap:8px;overflow:auto;max-height:98px;padding:6px 0}.research-attachment{display:flex;align-items:center;gap:8px;flex:0 0 auto;max-width:min(360px,90%);padding:7px 10px;border:1px solid #cad5df;border-radius:8px;background:#f4f8fb;color:#18394d;text-align:left;font:inherit}.research-attachment img{width:40px;height:40px;object-fit:cover;border-radius:4px}.research-attachment>span{min-width:0}.research-attachment strong,.research-attachment small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.research-attachment small{margin-top:4px;color:#647582}.research-attachment.is-pending{border-color:#b48446;background:#fff8ec}.research-attachment-list>span{color:#647582}
.research-chat{position:relative}.research-drop-hint{display:none;position:absolute;inset:12px;z-index:5;pointer-events:none;align-items:center;justify-content:center;border:2px dashed #267fa6;border-radius:16px;background:rgba(237,247,252,.95);color:#124d82;font-size:16px;font-weight:600;text-align:center;padding:20px}.research-chat.is-file-dragging .research-drop-hint{display:flex}

.research-readiness{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:10px 14px;background:#edf3f7;border-radius:8px}.research-readiness strong{font-size:13px}.research-readiness p{font-size:12px;margin:3px 0 0}.research-readiness button{font-size:12px;flex-shrink:0}.research-proposal{border-bottom:1px solid #d8e0e7;padding-bottom:12px;margin-bottom:12px}.research-proposal h3{font-size:16px}.research-proposal h4{font-size:14px}.research-proposal p,.research-proposal li{font-size:13px;line-height:1.7}@media(max-width:600px){.research-readiness{align-items:flex-start;flex-direction:column;gap:8px;padding:8px}.research-readiness p{font-size:11px}.research-readiness button{padding:6px 9px}}

/* Research workspace: readable page flow; scope gets a dedicated large dialog. */
.research-main{overflow-y:auto!important;overflow-x:hidden}
.research-main .research-chat{display:flex;flex-direction:column;height:auto;min-height:100%;box-sizing:border-box;max-width:1120px;padding:24px 32px 36px}
.research-chat #researchMessages{flex:none;max-height:46vh;min-height:140px;padding:16px 8px 12px 0}
.research-head h1{font-size:26px;line-height:1.4;margin:18px 0 8px}
.research-readiness{padding:16px 18px;gap:16px;border:1px solid #dfebf1;border-radius:12px}
.research-readiness strong{font-size:15px}.research-readiness p{font-size:13px;line-height:1.6}
.research-jobs{max-height:none;overflow:visible;padding:16px 0 8px}
.research-job-heading{justify-content:flex-start;flex-wrap:wrap;gap:10px}
.research-job-heading strong{font-size:14px;flex:1 1 160px}
.research-job-heading button{font-size:14px;min-height:44px;padding:10px 16px}
.research-job-heading .research-primary-action{background:#124d82;color:#fff;border-color:#124d82;font-weight:600}
.research-job-empty{font-size:13px;line-height:1.6;margin-top:10px}
.research-compose{padding:14px 18px;margin:12px 0 20px;border-radius:16px;box-shadow:0 4px 18px #123a5910}
.research-compose textarea{height:64px;min-height:64px;max-height:160px;font-size:15px}
.research-compose-foot{justify-content:flex-end;gap:10px}.research-compose-foot span{margin-right:auto}
.research-compose-foot button{min-height:44px}.research-label{font-size:13px;line-height:1.5}
.research-attachments:has(.research-attachment-list>span:only-child){display:none}
.research-plan[open]{max-height:none;overflow:visible}
.research-scope-dialog{box-sizing:border-box;width:min(1040px,calc(100vw - 48px));max-width:none;height:min(860px,calc(100dvh - 48px));max-height:none;padding:0;border:1px solid #d4e1eb;border-radius:20px;background:#fff;color:#112b3c;box-shadow:0 24px 100px #061d4050;overflow:hidden}
.research-scope-dialog::backdrop{background:#091e35a6;backdrop-filter:blur(3px)}
.research-scope-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 28px 20px;border-bottom:1px solid #e2eaf0;background:#f6fafd}
.research-eyebrow{font-size:11px;letter-spacing:.16em;color:#356a8b;font-weight:700}
.research-scope-toolbar h2{font-size:24px;margin:8px 0;line-height:1.4}.research-scope-toolbar p{font-size:14px;line-height:1.6;color:#536c7d;margin:0}
.research-scope-toolbar button{flex-shrink:0;min-height:44px}
.research-scope-content{height:calc(100% - 150px);overflow-y:auto;padding:24px 28px 40px;box-sizing:border-box;overscroll-behavior:contain}
.research-scope-dialog .research-plan{border:0;padding:0;font-size:15px}.research-scope-dialog .research-plan>summary{display:none}
.research-module-choice{background:#f4f9fc;border:1px solid #c7dce9;padding:22px;border-radius:14px;margin-bottom:24px}
.research-workplan .research-module-choice h3{font-size:22px;margin:0 0 10px}.research-workplan .research-module-choice p{font-size:14px;line-height:1.7}
.research-module-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.research-module-options label{background:#fff;border:1px solid #cfdee8;border-radius:12px;padding:16px;gap:12px;cursor:pointer;line-height:1.6}
.research-module-options label:has(input:checked){border-color:#2879a5;box-shadow:0 0 0 1px #2879a5;background:#eef8ff}
.research-module-options label:has(input:disabled){background:#f1f3f5;color:#627583;cursor:default}
.research-module-options input{width:20px;height:20px;accent-color:#124d82;margin:3px 0 0;min-height:0}
.research-module-options strong{font-size:16px}.research-module-options small{font-size:13px;line-height:1.6}
.research-module-choice button{font-size:14px;min-height:44px;padding:10px 16px}
#researchSaveModules{background:#124d82;color:#fff;border-color:#124d82}
.research-scope-content .research-calibration{margin-top:24px}
.research-scope-content .research-sampling-table{display:block;overflow-x:auto}
@media(max-width:768px){.research-main .research-chat{padding:18px 20px 28px}.research-job-heading strong{flex-basis:100%}.research-module-options{grid-template-columns:1fr}.research-scope-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);border-radius:16px}.research-scope-toolbar{padding:18px;min-height:130px;box-sizing:border-box}.research-scope-toolbar h2{font-size:20px}.research-scope-content{height:calc(100% - 150px);padding:18px}.research-module-choice{padding:16px}}
@media(max-width:420px){.research-main .research-chat{padding:14px 12px 24px}.research-head h1{font-size:22px}.research-readiness{padding:12px}.research-job-heading{gap:8px}.research-job-heading button{font-size:13px;padding:10px 12px}.research-compose{padding:12px}.research-scope-toolbar{gap:8px}.research-scope-toolbar h2{font-size:18px}.research-scope-toolbar p{font-size:12px}.research-scope-toolbar button{padding:8px;font-size:12px}.research-scope-content{padding:12px}.research-module-choice{padding:12px}.research-workplan .research-module-choice h3{font-size:20px}.research-module-choice button{width:100%}.research-execution-summary{line-height:1.6}}
.research-scope-dialog .research-plan{display:flex;flex-direction:column}
.research-scope-dialog #researchDesign{display:none}
.research-scope-dialog #researchProposal,.research-scope-dialog .research-workplan{display:contents}
.research-scope-dialog .research-module-choice{order:-2}
.research-scope-dialog .research-proposal{order:1;margin-top:24px}
.research-scope-dialog .research-calibration{order:3}
.research-scope-dialog #researchRefreshPlan,.research-scope-dialog #researchQuote,.research-scope-dialog #researchQuoteNotice,.research-scope-dialog #researchExecutePanel{order:2}
.research-scope-content h3{font-size:20px;margin:20px 0 10px}.research-scope-content h4{font-size:16px}.research-scope-content p,.research-scope-content li,.research-scope-content details,.research-scope-content dl,.research-scope-content table{font-size:14px;line-height:1.75}.research-scope-content button{min-height:44px}.research-scope-content .research-sampling-inputs label{font-size:14px}.research-scope-content .research-sampling-inputs input{min-height:44px;box-sizing:border-box}.research-scope-dialog .research-module-choice{margin-top:0}.research-scope-dialog .research-module-choice h3{margin-top:0}

/* Keep the composer visible; only the transcript and its context scroll. */
.research-main{overflow:hidden!important;min-height:0;height:100%;box-sizing:border-box}
.research-main .research-chat{display:grid;grid-template-rows:minmax(0,1fr) auto auto;height:100%;min-height:0;max-height:100%;padding-bottom:12px;overflow:hidden}
.research-thread{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:8px}
.research-chat #researchMessages{overflow:visible;max-height:none;min-height:0;padding:12px 0 16px}
.research-chat>.research-compose{min-height:0;margin:8px 0;max-height:45dvh;overflow-y:auto;flex-shrink:0}
.research-chat>.research-plan{max-height:36px!important;overflow:hidden!important;padding-top:4px}
.research-chat>.research-plan>summary{font-size:13px;padding:6px 0}
@media(max-width:600px){.research-main .research-chat{padding:8px 12px 8px;gap:0}.research-chat>.research-compose{padding:10px 12px;margin:6px 0}.research-compose textarea{height:52px;min-height:52px}.research-compose [role=status]:empty{display:none}.research-thread{padding-right:4px}.research-chat>.research-plan{max-height:30px!important}}

/* Let the dialog header size itself when labels wrap or text is enlarged. */
.research-scope-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.research-scope-dialog .research-scope-content{height:auto;min-height:0}
.research-scope-dialog .research-scope-toolbar{min-height:0}
.research-scope-dialog button:focus-visible,.research-scope-dialog input:focus-visible,.research-primary-action:focus-visible{outline:3px solid #47a9d5;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.research-thread,.research-chat #researchMessages{scroll-behavior:auto}}

.research-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.research-credit-badge{display:flex;align-items:center;gap:12px;padding:6px 8px 6px 16px;border:1px solid #c7dce9;border-radius:12px;background:#fff;color:#486172;font-size:14px}
.research-credit-badge strong{color:#124d82;font-size:18px;margin-left:8px;font-variant-numeric:tabular-nums}
.research-credit-badge button{min-height:40px;padding:8px 10px;font-size:12px}
@media(max-width:420px){.research-topbar{gap:8px}.research-credit-badge{padding-left:10px;gap:8px;font-size:13px}.research-credit-badge strong{font-size:17px;margin-left:4px}}

/* Report coverage: keep evidence gaps readable on phones and wider reports on desktop. */
.modalbox.research-report-modal{width:900px;max-width:100%;padding-bottom:0}
.research-report-coverage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.research-coverage-card{padding:14px;border:1px solid #d8e0e7;border-radius:12px;background:#f8fafc}
.research-coverage-card h4{margin:0 0 4px;font-size:15px}.research-coverage-card .sub{margin:0 0 8px}
.research-coverage-counts{font-size:13px;margin:8px 0;color:#25465c}
.research-coverage-card ul{padding-left:18px;margin:8px 0 0;font-size:13px;line-height:1.65}
.research-coverage-card li+li{margin-top:6px}
@media(max-width:600px){.research-report-coverage{grid-template-columns:1fr}.modalbox.research-report-modal{padding:18px 18px 0}.research-report-actions{gap:8px}}

.research-job-heading{flex-wrap:wrap;justify-content:flex-start}.research-job-heading strong{margin-right:auto}
.research-job-sync{font-size:12px!important;margin:6px 0!important;color:#647582}
.research-job-sync[data-state="offline"]{color:#8a5414}

.research-scope-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto}
.research-scope-next{padding:14px 26px;border-top:1px solid #d8e0e7;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px}
.research-scope-next p{margin:0;color:#526775;font-size:13px;line-height:1.6}
.research-scope-next button{flex-shrink:0;background:#124d82;color:#fff;padding:12px 20px;min-height:44px}
.research-scope-next button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){.research-scope-next{padding:12px;align-items:stretch;flex-direction:column;gap:8px}.research-scope-next button{width:100%}}

.research-batch-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.research-batch-card{padding:16px;border:1px solid #c7dce9;border-radius:12px;background:#f8fafc}
.research-batch-card h4{margin:0 0 8px}.research-batch-card button{width:100%;margin-top:8px}
@media(max-width:600px){.research-batch-cards{grid-template-columns:1fr}}

.research-deliveries:empty { display:none; }
.research-deliveries { margin:24px 0; }
.research-delivery-card { background:#fff; border:1px solid #c9dceb; border-radius:16px; padding:22px; margin:12px 0; }
.research-delivery-warning { color:#76551f; background:#fff8e9; padding:12px 16px; border-radius:10px; line-height:1.7; }
.research-delivery-modal { width:min(1100px,94vw); max-height:88dvh; overflow:auto; }
.research-delivery-nav { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.research-delivery-nav button[aria-pressed="true"] { background:#174f80; color:#fff; }
.research-delivery-view article { line-height:1.85; overflow-wrap:anywhere; }
.research-delivery-view article h2,.research-delivery-view article h3 { margin-top:24px; }
.research-delivery-table { overflow-x:auto; margin:16px 0; }
.research-delivery-table table { border-collapse:collapse; width:100%; min-width:560px; }
.research-delivery-table td { border:1px solid #d5dfe8; padding:10px 12px; vertical-align:top; }
.research-delivery-table tr:first-child { background:#eef5fa; font-weight:600; }
.research-delivery-view a { color:#17568b; text-decoration:underline; }
@media(max-width:600px){.research-delivery-card{padding:16px}.research-delivery-modal{width:96vw;padding:16px}.research-delivery-nav{gap:6px}.research-delivery-nav button{font-size:14px;padding:10px}}

.research-delivery-close{position:sticky;top:0;z-index:3;background:#fff;box-shadow:0 0 0 6px #fff}
.research-delivery-nav{position:sticky;top:48px;z-index:2;background:#fff;padding:8px 0;box-shadow:0 -8px #fff,0 6px #fff}

/* Intake: one starting point, reveal later stages only when relevant. */
.research-chat .research-jobs[hidden]{display:none}
.research-chat[data-intake=empty] .research-readiness,
.research-chat[data-intake=empty] .research-flow,
.research-chat[data-intake=empty] #researchExecutionSummary,
.research-chat[data-intake=empty] #researchMessages,
.research-chat[data-intake=empty]>.research-plan{display:none}
.research-main .research-chat[data-intake=empty]{display:flex;flex-direction:column;justify-content:flex-start;overflow-y:auto;max-width:1000px;padding-top:24px}
.research-chat[data-intake=empty]>.research-thread{overflow:visible;min-height:auto;flex:none;padding:0}
.research-chat[data-intake=empty] .research-topbar{margin-bottom:clamp(36px,8vh,84px)}
.research-chat[data-intake=empty] .research-head h1{font-size:32px;line-height:1.4;margin:0 0 12px;letter-spacing:-.03em}
.research-chat[data-intake=empty] .research-head>p{font-size:15px;line-height:1.8;margin:0 0 20px}
.research-chat[data-intake=empty]>.research-compose{max-height:none;overflow:visible;margin:12px 0 24px;padding:24px;border-radius:18px;box-shadow:0 4px 20px #123a5908}
.research-chat[data-intake=empty] .research-compose textarea{height:130px;min-height:100px;font-size:16px;line-height:1.8}
.research-chat[data-intake=empty] .research-label{font-size:13px;margin-bottom:12px}
.research-chat[data-intake=empty] #researchCreditRefresh{display:none}
.research-chat[data-intake=empty] .research-credit-badge{border:0;background:transparent;padding:0;font-size:12px;gap:10px}
.research-chat[data-intake=empty] .research-credit-badge strong{font-size:15px}
.research-chat[data-intake=empty] #researchCreditHistory{border:0;background:transparent;font-size:12px;padding:6px}
.research-chat:not(.insight-ready) .research-readiness{background:transparent;border:0;border-bottom:1px solid #dce5eb;border-radius:0;padding:12px 0;margin:12px 0}
@media(max-width:600px){.research-main .research-chat[data-intake=empty]{padding:16px}.research-chat[data-intake=empty] .research-topbar{margin-bottom:36px;gap:12px;flex-wrap:wrap}.research-chat[data-intake=empty] .research-head h1{font-size:26px}.research-chat[data-intake=empty]>.research-compose{padding:18px}.research-chat[data-intake=empty] .research-compose textarea{height:145px;font-size:15px}.research-chat[data-intake=empty] .research-credit-badge{gap:4px}.research-chat[data-intake=empty] .research-topbar>.ghostbtn{font-size:12px;padding:8px}}

/* Keep focus ring and actions in separate rows at every viewport/zoom. */
.research-chat .research-compose textarea{box-sizing:border-box!important;margin-bottom:18px!important;flex:none;max-width:100%}
.research-chat .research-compose-foot{position:static;clear:both;margin-top:8px;min-height:44px;flex-shrink:0}
.project-library,.workspace-home{max-width:1120px;margin:0 auto;padding:40px 32px 60px;color:#16364b;box-sizing:border-box;width:100%}
/* Full-page views own their scroll area inside the fixed-height workspace. */
.main>.project-library,.main>.workspace-home{flex:1;min-height:0;overflow-y:auto;overflow-wrap:anywhere}
.workspace-main-nav{display:grid;gap:10px;flex:none}.side-resource{flex:none;padding:8px 12px;border:0;background:transparent;color:#b9cbd7;text-align:left;font:inherit;font-size:12.5px}.side-resource:hover,.side-resource[aria-current=page]{color:#fff;text-decoration:underline;text-underline-offset:4px}
.home-intro .voice-actions{margin-top:24px}.home-intro h1{font-size:36px}.home-steps{list-style:none;padding:24px 0;margin:28px 0 36px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-top:1px solid #dce5eb;border-bottom:1px solid #dce5eb}.home-steps li{display:grid;gap:8px}.home-steps strong{font-size:15px}.home-steps span{font-size:13px;line-height:1.8;color:#637b8b}.home-projects h2,.home-support h2,.home-reminders h2{font-size:20px;margin:0 0 18px}.home-projects>div>p,.home-support>p{font-size:14px;color:#637b8b;line-height:1.8}.home-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.home-project-card{display:grid;gap:12px;text-align:left;min-width:0;border:1px solid #d7e3eb;border-radius:12px;padding:22px;background:#fff;color:#16364b;font:inherit;cursor:pointer;overflow-wrap:anywhere}.home-project-card:hover{border-color:#3793ab}.home-project-card span,.home-project-card small{font-size:12px;color:#617d8e}.home-project-card strong{font-size:19px}.home-project-card p{margin:0;font-size:14px;line-height:1.7;white-space:pre-wrap}.home-support{margin-top:36px;padding-top:24px;border-top:1px solid #dce5eb}.home-support-links{display:flex;gap:12px;flex-wrap:wrap}.home-reminders:not([hidden]){margin-top:28px;padding:20px;border-left:3px solid #4199ad;background:#eaf5f7}.home-reminders .library-list{display:flex;gap:10px;flex-wrap:wrap}.home-reminders>p{font-size:13px;line-height:1.7}.home-reminders>button{float:right}.newbtn[aria-current=page]{background:#174f80;border-color:#477d9c;color:white}
@media(max-width:650px){.home-intro h1{font-size:27px}.home-steps{grid-template-columns:1fr;gap:16px;margin:24px 0}.home-project-grid{grid-template-columns:1fr}.home-support-links{align-items:stretch;flex-direction:column}.home-project-card{padding:18px}}
.library-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.library-heading h1,.workspace-home h1{font-size:30px;line-height:1.4;letter-spacing:-.03em;margin:12px 0}.library-heading p,.workspace-home header p{color:#627988;font-size:15px;line-height:1.8;margin:0}
.library-primary{background:#174f80!important;color:#fff!important;border-color:#174f80!important}
.library-controls{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.library-controls input,.library-controls select,.library-edit input,.library-edit select{box-sizing:border-box;padding:12px;border:1px solid #cbd9e2;border-radius:8px;font:inherit;background:#fff;color:#183a50;min-width:0}.library-controls input{flex:1;min-width:160px}.library-controls select{max-width:240px}.library-edit input,.library-edit select{display:block;width:100%;margin:20px 0}.library-edit .voice-actions{margin-top:20px}
.library-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #dce5eb;padding-bottom:16px}.library-tabs button{border:0;background:transparent;color:#617886}.library-tabs button[aria-pressed=true]{color:#174f80;background:#e4edf3}
.library-row{display:flex;gap:24px;align-items:flex-start;border-bottom:1px solid #dce5eb;padding:24px 4px;position:relative}.library-row-body{min-width:0;flex:1}.library-title{border:0;padding:0;background:transparent;font:inherit;font-weight:600;font-size:18px;color:#153b57;text-align:left;cursor:pointer;overflow-wrap:anywhere}.library-title:hover{text-decoration:underline}.library-row p{font-size:14px;color:#637b8b;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}.library-row small{font-size:12px;color:#758995}.library-menu{flex:0 0 120px;background:#fff;border:1px solid #d7e1e7;border-radius:8px}.library-menu summary{cursor:pointer;font-size:13px;padding:10px 14px}.library-menu button{display:block;width:100%;padding:10px 14px;text-align:left;border:0;background:#fff;color:#22455c;font:inherit;font-size:13px;cursor:pointer}.library-menu button:hover{background:#edf4f7}.library-empty{padding:36px 0;color:#637b8b;font-size:14px;line-height:1.8}
.home-paths{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:32px 0 40px}.home-paths>section{padding:28px;border:1px solid #d7e3eb;background:#fff;border-radius:14px;display:flex;flex-direction:column;align-items:flex-start}.home-paths span{font-size:11px;letter-spacing:.1em;color:#608392}.home-paths h2{font-size:23px;margin:18px 0 10px}.home-paths p{font-size:14px;line-height:1.8;color:#637b8b;flex:1;margin:0 0 24px}.home-continue h2{font-size:20px;margin:0 0 18px}#homeRecent{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.home-recent{display:grid;grid-template-columns:1fr auto;gap:8px;padding:20px 0;border:0;border-bottom:1px solid #dce5eb;background:transparent;text-align:left;color:#16364b;cursor:pointer}.home-recent span{font-size:11px;color:#637b8b;grid-column:1/-1}.home-recent strong{font-size:15px;overflow-wrap:anywhere}.home-recent small{font-size:11px;color:#738894;align-self:center}.home-future{font-size:12px;color:#81939e;margin-top:28px}
.workspace-brand .side .workspace-main-nav .newbtn{background:transparent;color:#c2d1dc;border:1px solid #344b5b;font-size:13px;font-weight:500;padding:11px}.workspace-brand .side .workspace-main-nav .newbtn:hover{background:#203b4d;color:#fff}.workspace-brand .side .workspace-main-nav .newbtn[aria-current=page]{background:#174f80;color:#fff;border-color:#477d9c}
@media(max-width:650px){.project-library,.workspace-home{padding:24px 16px 40px}.library-heading{gap:16px;align-items:flex-start;flex-direction:column}.library-heading h1,.workspace-home h1{font-size:26px}.library-controls{gap:8px}.library-controls input{flex-basis:100%}.library-controls select{flex:1;max-width:none}.library-row{gap:12px}.library-menu{flex-basis:92px}.home-paths{grid-template-columns:1fr;gap:14px;margin:24px 0 32px}.home-paths>section{padding:22px}.home-paths h2{font-size:21px}#homeRecent{grid-template-columns:1fr}.home-recent{padding:18px 0}}

/* Purpose guidance is draft-only; the existing confirmation flow remains authoritative. */
.research-intent-start{display:none;margin:0 0 18px;gap:8px;flex-wrap:wrap}
.research-chat[data-intake=empty] .research-intent-start{display:flex}
.research-intent-start p,.research-intent-start small{width:100%;margin:0;color:#637b8b;line-height:1.7}
.research-intent-start p{font-size:13px}.research-intent-start small{font-size:12px;margin-top:4px}
.research-intent-start .ghostbtn{font-size:13px;padding:9px 12px}
.outcome-summary{margin:0 0 20px;padding:20px;background:#f4f8fa;border:1px solid #dce7ed;border-radius:12px;overflow-wrap:anywhere}
.outcome-summary h3{font-size:18px;margin:0 0 12px}.outcome-summary h4{font-size:14px;margin:20px 0 8px}
.outcome-summary p,.outcome-summary li{font-size:14px;line-height:1.8}.outcome-summary ul{padding-left:20px;margin:0}.outcome-summary small{color:#637b8b}

.home-paths>section>.ghostbtn+.ghostbtn{margin-top:12px;background:transparent;border-color:transparent;padding-left:0;font-size:13px}.home-geo{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #dce5eb;border-bottom:1px solid #dce5eb;padding:24px 0;margin-bottom:36px}.home-geo h2{font-size:17px;margin:0 0 8px}.home-geo p{font-size:13px;color:#637b8b;line-height:1.8;margin:0}.home-geo>a{white-space:nowrap}@media(max-width:650px){.home-geo{align-items:flex-start;flex-direction:column;gap:16px}}

/* Platform product entry: preserve main scroll container and two-item navigation. */
.review-diff-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.review-diff-grid>div{min-width:0;padding:12px;background:#f4f8fa;border-left:2px solid #bddce4}.review-revisions{overflow-wrap:anywhere}@media(max-width:650px){.review-diff-grid{grid-template-columns:minmax(0,1fr)}}
.review-document-section{border-top:1px solid #dce5eb;margin-top:18px;padding-top:12px}.review-document-section h4{margin:0 0 8px}.result-reviews{overflow-wrap:anywhere}.result-reviews>.ghostbtn{margin:6px 10px 6px 0}.creative-result select{margin:12px 0}.result-reviews .library-row{display:block;padding:16px 0}.result-reviews .library-row>.ghostbtn{white-space:normal;text-align:left}.result-reviews .creative-text{white-space:pre-wrap}
.proposal-gaps.creative-section{margin:0 0 24px;border-left:3px solid #4199ad;border-radius:0;background:#f4f9fa}.proposal-gaps ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:12px 0}.proposal-gaps li{max-width:100%}.proposal-gaps .ghostbtn{white-space:normal;text-align:left;font-size:13px;padding:7px 10px}.proposal-gaps h2{font-size:18px}.workbench-handoff{overflow-wrap:anywhere}
.home-business-map{margin:24px 0;padding:18px 22px;border-left:3px solid #4199ad;background:#eaf5f7;border-radius:0 12px 12px 0}.home-business-map h2{font-size:16px;margin:0 0 8px}.home-business-map p{font-size:13px;line-height:1.8;margin:6px 0;color:#547184}.home-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0 36px}.home-product{border:1px solid #d4e1e9;border-radius:16px;background:#fff;padding:24px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.home-product h2{font-size:22px;line-height:1.4;margin:0}.home-product p{font-size:14px;line-height:1.8;margin:0;color:#637b8b}.home-product>.ghostbtn{margin-top:auto;white-space:normal;text-align:left}.home-product small{font-size:12px;color:#637b8b;line-height:1.6}.home-product-planned{background:#f5f7f8;grid-column:span 1}.home-product h2 small,.home-planned{font-weight:400}.home-recent,.home-projects{margin-bottom:32px}.home-recent>p,.home-projects>p{color:#637b8b;font-size:14px;line-height:1.8}.home-work-row{display:flex;align-items:center;gap:16px;width:100%;padding:18px 0;text-align:left;border:0;border-bottom:1px solid #dce5eb;background:transparent;color:#16364b;cursor:pointer}.home-work-row strong{flex:1;overflow-wrap:anywhere;min-width:0}.home-work-row small{flex:0 0 85px;color:#54788d}.home-work-row span{font-size:12px;color:#637b8b}.home-support-links{margin:16px 0}.home-product :focus-visible,.home-work-row:focus-visible{outline:3px solid #269bb3;outline-offset:3px}@media(max-width:900px){.home-products{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.home-products{grid-template-columns:1fr}.home-work-row{flex-wrap:wrap;gap:8px}.home-work-row strong{flex-basis:calc(100% - 105px)}.home-work-row span{margin-left:101px}}

.creative-section{margin:24px 0;padding:24px;border:1px solid #d4e1e9;background:#fff;border-radius:14px}.creative-workbench label,.creative-result label{display:block;font-size:14px;margin:16px 0 7px}.creative-workbench input:not([type=checkbox]),.creative-workbench textarea,.creative-workbench select,.creative-result textarea,.creative-result select{display:block;box-sizing:border-box;width:100%;max-width:100%;padding:12px;border:1px solid #c4d4de;border-radius:8px;background:#fff;color:#16364b;font:inherit}.creative-workbench textarea{resize:vertical;min-height:85px}.creative-candidate{padding:16px 0;margin:16px 0;border-top:1px solid #dce5eb}.creative-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.creative-section>.ghostbtn,.creative-result>.ghostbtn{margin:8px 10px 8px 0}.creative-result{max-width:760px}.creative-result input[type=checkbox]{width:20px;height:20px}.creative-workbench .library-heading{align-items:flex-start}@media(max-width:650px){.creative-section{padding:16px}.creative-workbench .voice-actions{flex-wrap:wrap}.creative-result h2{font-size:22px}}
