.research-modes{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:11px;width:fit-content;background:var(--lavender);margin-bottom:18px}.research-modes button{background:transparent;color:var(--muted);font-weight:500;padding:9px 18px;border:0}.research-modes button[aria-pressed=true]{background:var(--blue);color:white}.research-scope{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:14px}.research-focus{flex:1;min-width:220px;display:grid;gap:6px}.research-scope input{width:100%}.research-dates{font-size:12px;padding:10px;border:1px solid var(--line);border-radius:8px}.research-dates[open]{display:grid;gap:8px}.research-dates label{display:grid;gap:4px}.research-help{font-size:12px;margin:12px 0}.research-examples,.research-choices{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:14px 0}.research-examples button{font-size:12px;min-height:32px;padding:6px 10px}.research-answer-lead{padding:6px 0 22px;border-bottom:1px solid var(--line);margin-bottom:22px}.research-answer-lead h2{font-size:21px;line-height:1.55;font-weight:500;margin:12px 0}.research-finding{padding:24px;border:1px solid var(--line);border-radius:12px;margin-bottom:18px;background:var(--research-surface,#fff)}.research-finding-heading{display:flex;gap:14px;align-items:baseline}.research-number{font-size:13px;color:var(--blue);font-variant-numeric:tabular-nums}.research-finding-heading h3{font-size:19px;margin:0 0 10px}.research-scope-tag{font-size:11px;color:var(--muted)}.research-part{display:grid;grid-template-columns:120px 1fr;gap:18px;padding:14px 0;border-bottom:1px solid var(--line)}.research-part h4{font-size:11px;letter-spacing:.02em;margin:4px 0;color:var(--muted)}.research-part p{margin:0;font-size:14px}.research-part.hypothesis h4{color:var(--blue)}.research-finding details{margin-top:16px;font-size:13px}.research-citation{border-left:2px solid var(--line);padding:0 0 0 14px;margin:18px 0;overflow-wrap:anywhere}.research-citation p{font-size:13px}.research-citation-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.research-citation-meta button{padding:4px 0;font-size:12px}.research-counter summary{color:var(--blue)}.research-gaps{padding:20px 0}.research-gaps li{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:8px}.research-gaps button{margin-right:8px}.research-usage{font-size:12px;padding:16px 0;border-top:1px solid var(--line)}.research-loading{padding:32px 0}.research-finding p,.research-answer-lead h2{overflow-wrap:anywhere}html[data-theme=dark]{--research-surface:#151920}.research-modes button:hover:not(:disabled){background:var(--blue);color:white}@media(max-width:640px){.research-modes{width:100%}.research-modes button{flex:1;padding:9px;font-size:12px}.research-part{grid-template-columns:1fr;gap:4px;padding:12px 0}.research-finding{padding:18px}.research-answer-lead h2{font-size:18px}.research-scope{align-items:stretch}.research-focus{min-width:0;flex-basis:100%}.research-choices button{width:100%}}
:root[data-theme] .discovery .research-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 12px;padding:18px}
.research-form .research-modes{grid-column:1/-1;grid-row:1;margin:0;align-self:start}
.research-form .discovery-input{grid-column:1;grid-row:2;background:var(--research-surface,#f6f7fa);border:1px solid var(--line);min-width:0}
.research-form .search-bottom{grid-column:2;grid-row:2}
.research-form .research-scope{grid-column:1/-1;grid-row:3;margin:0;align-items:end}
.research-form .research-help{grid-column:1/-1;grid-row:4;margin:0;color:var(--muted)}
.research-form .research-examples{grid-column:1/-1;grid-row:5;margin:0}
.research-form .research-focus{margin:0;font-size:12px}
.research-form .research-focus input{font-size:13px;min-height:38px}
.research-form .research-dates{min-height:38px;box-sizing:border-box}
.research-form .pill-select{min-height:38px;border:1px solid var(--line);border-radius:8px}
:root[data-theme] #discovery-results.research-results{background:transparent;border:0;overflow:visible}
.research-results>.research-answer-lead{padding:8px 0 22px}
.research-results>button{margin:12px 8px 12px 0}
:root[data-theme] .research-modes{background:var(--research-surface,#f6f7fa)}
:root[data-theme] .research-modes button{background:transparent;color:var(--muted);min-height:36px;border:0}
.research-form .research-dates summary{padding:0;font-weight:500}
:root[data-theme] .research-modes button[aria-pressed=true]{background:#0066cc;color:#fff}
:root[data-theme] .research-examples button.secondary,:root[data-theme] .research-choices button.secondary,:root[data-theme] .research-results button.secondary{background:var(--research-surface,#fff);color:var(--text);border:1px solid var(--line)}
:root[data-theme] .research-form input:disabled{opacity:.65}
@media(max-width:640px){:root[data-theme] .discovery .research-form{padding:12px;gap:12px 8px}.research-form .research-modes button{font-size:12px;padding:8px}.research-form .discovery-input{grid-column:1/-1}.research-form .search-bottom{grid-column:1/-1;grid-row:6}.research-form .search-bottom button{width:100%}.research-form .research-examples{gap:6px}.research-form .research-examples>span{width:100%}}
.research-branch-coverage{margin:12px 0;font-size:13px}.research-branch-coverage ul{padding-left:18px;margin:8px 0}.research-branch-coverage li{padding:3px 0;line-height:1.6;overflow-wrap:anywhere}.research-branch-coverage .text-button{padding:2px 0;min-height:28px}.research-branch-coverage summary,.research-finding-basis summary{cursor:pointer}.research-finding-basis .hint{margin:8px 0;font-size:12px}
.bt-playbook-well{background:#F6F8FC;border:1px dashed #DCE3EE;color:#071437}
html[data-theme=dark] .bt-playbook-well{background:#151724;border-color:#2C3047;color:#F8FAFC}
html[data-theme=dark] .research-usage,html[data-theme=dark] .research-usage .hint,html[data-theme=dark] .research-gaps li{color:#B4BCD0}
.bt-playbook-sub-note{color:#475569;line-height:1.45}
html[data-theme=dark] .bt-playbook-sub-note{color:#B4BCD0}
.bt-playbook-actions{margin:0;padding-left:20px;display:grid;gap:10px}
.bt-playbook-action-item{padding:10px 12px;border-radius:10px;background:#FFFFFF;border:1px solid #DCE3EE;color:#071437}
html[data-theme=dark] .bt-playbook-action-item{background:#1B1D2B;border-color:#2C3047;color:#F8FAFC}
.bt-playbook-metric{padding:6px 10px;border-radius:8px;background:#EAF3FF;border-left:3px solid #005FB8;color:#071437;font-size:12.5px;line-height:1.45}
html[data-theme=dark] .bt-playbook-metric{background:#173254;border-left-color:#3898FF;color:#F8FAFC}
.bt-playbook-disclaimer{padding-top:10px;border-top:1px dashed #DCE3EE;color:#475569;line-height:1.45}
html[data-theme=dark] .bt-playbook-disclaimer{border-top-color:#2C3047;color:#B4BCD0}
.bt-honest-ai-notice{background:#FFFBEB;border:1px dashed #D97706;color:#78350F}
html[data-theme=dark] .bt-honest-ai-notice{background:#292112;border-color:#B45309;color:#FDE68A}
.bt-playbook-crm-dialog .bt-auto-modal-box{max-width:640px;width:min(640px,95vw);max-height:90dvh;display:flex;flex-direction:column;overflow:hidden;padding:0;background:#FFFFFF;color:#071437;border:1px solid #DCE3EE}
html[data-theme=dark] .bt-playbook-crm-dialog .bt-auto-modal-box{background:#1B1D2B;color:#F8FAFC;border-color:#2C3047}
.bt-playbook-modal-head{padding:16px 20px;border-bottom:1px solid #DCE3EE;background:#F8FAFD;flex-shrink:0}
html[data-theme=dark] .bt-playbook-modal-head{border-bottom-color:#2C3047;background:#212436}
.bt-playbook-modal-sub{font-size:12px;color:#475569}
html[data-theme=dark] .bt-playbook-modal-sub{color:#B4BCD0}
.bt-playbook-modal-body{padding:16px 20px 20px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.bt-playbook-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bt-playbook-check-row{padding:8px 10px;border-radius:8px;background:#FFFFFF;border:1px solid #DCE3EE;cursor:pointer}
html[data-theme=dark] .bt-playbook-check-row{background:#1B1D2B;border-color:#2C3047}
.bt-playbook-check-row input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:#005FB8}
.bt-playbook-crm-dialog .btn-primary{background-color:#005FB8 !important;border-color:#005FB8 !important;color:#FFFFFF !important;font-weight:700;border-radius:8px;min-height:38px;padding:8px 16px}
.bt-playbook-crm-dialog .btn-primary:hover:not(:disabled){background-color:#004C94 !important;border-color:#004C94 !important}
html[data-theme=dark] .bt-playbook-crm-dialog .btn-primary{background-color:#0B6BCB !important;border-color:#0B6BCB !important;color:#FFFFFF !important}
dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog button.secondary,dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog .bt-modal-close-btn{background-color:#F6F8FC !important;border:1px solid #DCE3EE !important;color:#071437 !important;font-weight:600;border-radius:8px;min-height:38px !important;padding:8px 14px !important}
html[data-theme=dark] dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog button.secondary,html[data-theme=dark] dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog .bt-modal-close-btn{background-color:#151724 !important;border-color:#3E4463 !important;color:#F8FAFC !important}
.bt-playbook-crm-dialog select,.bt-playbook-crm-dialog input:not([type=checkbox]),.bt-playbook-crm-dialog textarea{background-color:#F6F8FC;border:1px solid #DCE3EE;color:#071437;border-radius:8px}
.bt-playbook-crm-dialog label,.bt-playbook-crm-dialog label>span{color:#1E293B}
html[data-theme=dark] .bt-playbook-crm-dialog label,html[data-theme=dark] .bt-playbook-crm-dialog label>span{color:#E2E8F0 !important}
html[data-theme=dark] .bt-playbook-crm-dialog select,html[data-theme=dark] .bt-playbook-crm-dialog input:not([type=checkbox]),html[data-theme=dark] .bt-playbook-crm-dialog textarea{background-color:#151724;border-color:#2C3047;color:#F8FAFC}
@media(max-width:640px){.bt-playbook-form-row{grid-template-columns:minmax(0,1fr)}.bt-playbook-modal-head,.bt-playbook-modal-body{padding:14px}.research-finding button,dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog button,dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog .btn-primary,dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog button.secondary,dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog .bt-modal-close-btn,dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog select,dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog input:not([type=checkbox]),dialog#bt-playbook-crm-modal.bt-playbook-crm-dialog textarea{height:auto !important;min-height:44px !important}.bt-playbook-check-row{min-height:44px;align-items:center}}
