/* JLJAM Deal Intelligence: normal War Room flow, never a touch-catching overlay. */
#jljamDealIntelHost { position:relative; display:block; width:100%; max-width:100%; height:auto; overflow:visible; isolation:isolate; box-sizing:border-box; scroll-margin-top:1rem; }
#jljamDealIntelHost * {box-sizing:border-box}
#jljamDealIntelHost button, #jljamDealIntelHost input, #jljamDealIntelHost select {touch-action:manipulation;pointer-events:auto}
#jljamDealIntelHost input, #jljamDealIntelHost select {min-width:0;width:100%;font-size:16px;min-height:45px;padding:10px;background:#111024;color:#fff;border:1px solid #73588f;border-radius:12px;}
#jljamDealIntelHost input:focus-visible,#jljamDealIntelHost select:focus-visible {outline:2px solid #ba83ff;outline-offset:2px}
.deal-intel-quick{background:#332047;border:1px solid #9963c3;border-radius:10px;color:#f6e6ff;font:inherit;padding:8px 12px;cursor:pointer;min-height:42px}
.di-heading,.di-saved-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.di-heading h3,.di-saved h4,.di-form h4{margin:6px 0;font-size:1.18rem}
.di-heading p,.di-form p{margin:8px 0;color:#c9b7db;font-size:.94rem;line-height:1.5}
.di-eyebrow{font-size:.7rem;letter-spacing:.1em;color:#cda8f1;overflow-wrap:anywhere}
.di-counter{white-space:nowrap;border:1px solid #69517d;border-radius:99px;padding:6px 9px;color:#e8d5fb}
.di-chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
#jljamDealIntelHost .di-chip{border:1px solid #684c82;background:#261b38;color:#fff;border-radius:12px;padding:9px 12px;text-align:left;display:grid;gap:2px;min-height:50px;cursor:pointer}
.di-chip small{font-size:.7rem;color:#cdb5df}.di-chip.di-missing{border-color:#9d607e}.di-chip.di-pending{border-color:#b58e51}.di-chip.di-verified{border-color:#4c9e8b}
.di-area,.di-form,.di-saved{border:1px solid #694880;border-radius:16px;background:#251633;padding:14px;margin-top:12px;min-width:0}
.di-controls,.di-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.di-controls label,.di-grid label{display:grid;gap:5px;font-size:.82rem;color:#dcc3ed;font-weight:600;min-width:0}
.di-controls label:nth-child(2){grid-column:span 1}
.di-full{grid-column:1/-1}
.di-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:10px}
#jljamDealIntelHost .di-actions button,#jljamDealIntelHost .di-actions a,#jljamDealIntelHost .di-saved-head button{font:inherit;font-size:.86rem;border:1px solid #765a8b;border-radius:10px;background:#302040;color:#fff;min-height:42px;padding:9px 12px;text-decoration:none;cursor:pointer}
#jljamDealIntelHost .di-actions .di-main{background:linear-gradient(110deg,#9950cf,#6a36a7);border-color:#bc87e1;font-weight:700}
#jljamDealIntelHost button[disabled]{opacity:.5;cursor:wait}
.di-status,.di-muted{color:#c7b4d4;margin:10px 0;font-size:.86rem;line-height:1.5;overflow-wrap:anywhere}
.di-search-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.di-search-links a{display:inline-flex;padding:9px 12px;color:#f6eaff;text-decoration:none;border:1px solid #8d65ab;border-radius:10px;font-size:.83rem}
.di-source{border:1px solid #755487;border-radius:12px;padding:12px;margin-top:10px}.di-source strong,.di-source small,.di-source p{display:block;overflow-wrap:anywhere}.di-source small{color:#c5a7de;margin-top:3px}.di-source p{line-height:1.45;margin:8px 0 4px}
.di-save-badge{font-size:.72rem;background:#493044;border-radius:99px;padding:5px 8px;white-space:nowrap;color:#f3d2ad}
.di-saved-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-top:1px solid #654479;padding:12px 0;overflow-wrap:anywhere}.di-saved-row>div:nth-child(2){flex:1 1 170px;min-width:0}.di-saved-row small{display:block;color:#c5b0db}.di-saved-row .di-actions{margin:0}
.di-error{color:#ffb3c0}
@media(max-width:700px){#jljamDealIntelHost{padding:12px !important;margin:10px 0}.di-controls,.di-grid{grid-template-columns:minmax(0,1fr)}.di-controls label:nth-child(2){grid-column:auto}.di-heading{flex-wrap:wrap}.di-actions>*{flex:1 1 auto}.di-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

.deal-research-coverage{font-size:0.84em;color:#9eeac8;margin-top:0.4rem;overflow-wrap:anywhere}

/* 7.10.51 Deal reliability, readable action density */
.di-needs-review{color:#f8d7ad;font-size:0.85rem;padding:.35rem .5rem;border:1px solid #9c775b;border-radius:.5rem}
.di-saved-row{min-width:0;overflow-wrap:anywhere}
.di-saved-row .di-actions{display:flex;flex-wrap:wrap;gap:.4rem}
.di-save-badge{white-space:normal}
.deal-research-coverage{display:block;margin:.5rem 0;padding:.5rem .65rem;border:1px solid rgba(137,226,181,.35);border-radius:.65rem;color:#adf1ca;background:rgba(28,72,60,.22);font-size:.88rem;overflow-wrap:anywhere}
@media (max-width:700px){.di-saved-row .di-actions>*{min-height:40px}.board-card .action-row{display:flex;flex-wrap:wrap;gap:.5rem}.board-card .action-row .btn{min-width:unset;flex:1 1 auto}}

/* v7.10.52: All research steps are INLINE in the War Room. No secondary modal, trap or nested scroll. */
#jljamDealIntelHost .di-reader{display:block;position:static;z-index:auto;overflow:visible;margin:12px 0;padding:14px;border:1px solid #916ab5;border-radius:16px;background:#1c172d;scroll-margin-top:22px}
#jljamDealIntelHost .di-reader-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#jljamDealIntelHost .di-reader-head strong{display:block;font-size:1.08rem}
#jljamDealIntelHost .di-reader-head small{display:block;color:#c6a9dd;font-size:.8rem;line-height:1.5}
#jljamDealIntelHost .di-reader button{padding:10px 12px;font:inherit;font-size:.88rem;color:#fff;background:#4b276e;border:1px solid #a16ac8;border-radius:11px;min-height:44px;max-width:100%;overflow-wrap:anywhere;cursor:pointer}
#jljamDealIntelHost .di-reader button.di-main{background:#8538c5;font-weight:750}
#jljamDealIntelHost .di-reader-toolbar{margin-top:10px;display:grid;gap:6px}
#jljamDealIntelHost .di-reader-toolbar label{font-size:.85rem;font-weight:700;color:#dbc0f6}
#jljamDealIntelHost .di-reader-toolbar>div{display:flex;gap:8px;min-width:0;align-items:stretch;flex-wrap:wrap}
#jljamDealIntelHost .di-reader-toolbar input{flex:1 1 230px;min-width:0;}
#jljamDealIntelHost .di-reader-content{margin-top:13px;line-height:1.55;overflow-wrap:anywhere}
#jljamDealIntelHost .di-reader-text{white-space:pre-wrap;color:#d8c8e7;font-size:.89rem;max-height:none;line-height:1.7}
#jljamDealIntelHost .di-reader-content summary{cursor:pointer;color:#f7dbff;padding:8px 0;font-weight:700}
#jljamDealIntelHost .di-reader-meta strong,#jljamDealIntelHost .di-reader-meta small{display:block}
#jljamDealIntelHost .di-reader-meta small{color:#b5dbcb}
#jljamDealIntelHost .di-candidates{margin-top:14px}
#jljamDealIntelHost .di-candidates h5{font-size:1rem;margin:6px 0 10px}
#jljamDealIntelHost .di-candidate{padding:10px 2px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;border-top:1px solid #5c4a6a}
#jljamDealIntelHost .di-candidate>div{flex:1 1 160px;min-width:0}
#jljamDealIntelHost .di-candidate small,#jljamDealIntelHost .di-candidate strong{display:block;overflow-wrap:anywhere}
#jljamDealIntelHost .di-candidate small{color:#b9d9c8}
#jljamDealIntelHost .di-reader-excerpt{margin:10px 0}
#jljamDealIntelHost .di-reader-progress{padding:10px;background:#312343;border-radius:12px}
@media(max-width:700px){#jljamDealIntelHost .di-reader{padding:12px}#jljamDealIntelHost .di-reader-toolbar>div{display:grid;grid-template-columns:minmax(0,1fr)}#jljamDealIntelHost .di-candidate button{width:100%}}

/* v7.10.52 native Deal Send review */
.deal-send-workspace .form-grid{display:grid;grid-template-columns:1fr;gap:14px}
.deal-send-workspace input,.deal-send-workspace textarea{width:100%;min-width:0;box-sizing:border-box;font-size:16px;line-height:1.45}
.deal-send-workspace textarea{min-height:230px;resize:vertical}
.deal-send-workspace .action-row{display:flex;flex-wrap:wrap;gap:9px}
.deal-send-workspace .action-row button{min-height:45px;touch-action:manipulation}
.deal-send-workspace #inDealSendNotice{border-left:3px solid #c397ef;padding:10px;background:rgba(136,76,189,.12);line-height:1.5}
@media(max-width:650px){.deal-send-workspace .action-row button{flex:1 1 145px}}

/* Gemini source research is optional; never traps scroll or touch. */
#jljamDealIntelHost .di-ai,.cr-gemini-direct{min-height:44px;touch-action:manipulation;border:1px solid #a86ee8;border-radius:11px;background:#2a1946;color:#f4e7ff;padding:10px 14px;font:inherit;font-weight:750;cursor:pointer}
#jljamDealIntelHost .di-ai:disabled,.cr-gemini-direct:disabled{opacity:.55;cursor:wait}

/* v7.11.3: mobile source research, direct in-card inspection, no nested scrolling */
#jljamDealIntelHost .di-external-fallback{margin-top:14px;border-top:1px solid rgba(182,143,218,.32);padding-top:10px;color:#dcc6ea}
#jljamDealIntelHost .di-external-fallback summary{cursor:pointer;min-height:42px;display:flex;align-items:center;font-size:.85rem}
#jljamDealIntelHost .di-result-head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin:12px 0}
#jljamDealIntelHost .di-result-head strong{font-size:1rem;color:#f6ebff}
#jljamDealIntelHost .di-result-head small{color:#c9b4d6;font-size:.82rem}
#jljamDealIntelHost .di-result-reason{font-size:.8rem;color:#c0d7d1}
#jljamDealIntelHost .di-related{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}
#jljamDealIntelHost .di-related h5{width:100%;margin:8px 0 0;font-size:1rem}
#jljamDealIntelHost .di-related button{flex:0 1 auto;background:#36294b;border-color:#8864a6;text-align:left}
#jljamDealIntelHost .di-reader-text{max-height:none !important}
#jljamDealIntelHost .di-chips{scrollbar-width:thin}
#jljamDealIntelHost .di-chip{min-width:0;overflow-wrap:anywhere}
#jljamDealIntelHost .di-status{white-space:normal}
@media(max-width:700px){
 #jljamDealIntelHost .di-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 #jljamDealIntelHost .di-actions>button,#jljamDealIntelHost .di-actions>a{width:100%;min-height:46px;white-space:normal}
 #jljamDealIntelHost .di-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
 #jljamDealIntelHost .di-chip{padding:12px 10px;min-height:76px}
 #jljamDealIntelHost .di-related button{width:100%}
 #jljamDealIntelHost .di-result-head{display:grid}
}

/* v7.11.3 Social Intelligence · LinkedIn / Instagram public profile previews */
#jljamDealIntelHost .di-social{display:block;margin:15px 0 0;padding:14px;border:1px solid #735b98;border-radius:16px;background:linear-gradient(135deg,#1d1932 0%,#231733 65%,#1a182e 100%);min-width:0;overflow:visible}
#jljamDealIntelHost .di-social-head h4{font-size:1.13rem;color:#fff;margin:6px 0;line-height:1.3}
#jljamDealIntelHost .di-social-head p,#jljamDealIntelHost .di-social-disclaimer{color:#ccbbdd;font-size:.87rem;line-height:1.5;margin:8px 0}
#jljamDealIntelHost .di-social-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
#jljamDealIntelHost .di-social-tabs button{border:1px solid #78678b;border-radius:12px;background:#2c2240;color:#dfcee8;padding:10px 14px;min-height:46px;cursor:pointer;font-size:.91rem;font-weight:700}
#jljamDealIntelHost .di-social-tabs button.active{border-color:#c49cea;color:#fff;background:#543079;box-shadow:inset 0 1px 0 #ffffff33}
#jljamDealIntelHost .di-social-tabs small{margin-left:5px;padding:1px 6px;border:1px solid #b59ace;border-radius:30px;font-size:.73rem}
#jljamDealIntelHost .di-social-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch;min-width:0}
#jljamDealIntelHost .di-social-card{position:relative;overflow:hidden;border:1px solid #745b94;border-radius:17px;background:#171629;min-width:0;display:flex;flex-direction:column;box-shadow:0 10px 24px #09041422}
#jljamDealIntelHost .di-social-cover{height:61px;padding:10px 14px;background:linear-gradient(110deg,#21578c,#142d59 60%,#2a1d54);color:#ffffffcc;display:flex;justify-content:flex-end;align-items:flex-start;font-size:1.1rem;font-weight:900}
#jljamDealIntelHost .di-social-instagram .di-social-cover{background:linear-gradient(115deg,#592d9f,#bc4089 60%,#df8742)}
#jljamDealIntelHost .di-social-cover span{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;width:29px;height:29px;background:#ffffff21}
#jljamDealIntelHost .di-social-core{display:flex;gap:12px;align-items:flex-end;padding:0 13px 6px;min-width:0;margin-top:-26px}
#jljamDealIntelHost .di-social-avatar{display:grid;place-items:center;flex:0 0 65px;width:65px;height:65px;border:3px solid #171629;border-radius:50%;background:linear-gradient(150deg,#8144b2,#332154);color:#fff;font-size:1.3rem;font-weight:850;letter-spacing:.03em}
#jljamDealIntelHost .di-social-meta{min-width:0;display:grid;gap:2px;padding-bottom:1px}
#jljamDealIntelHost .di-social-meta small{color:#dbc7ec;font-size:.72rem}
#jljamDealIntelHost .di-social-meta strong{color:#fff;font-size:1.04rem;line-height:1.24;overflow-wrap:anywhere}
#jljamDealIntelHost .di-social-meta span{color:#bbadd2;font-size:.78rem;overflow-wrap:anywhere}
#jljamDealIntelHost .di-social-role{color:#d8def4;font-size:.83rem;margin:5px 13px 3px;overflow-wrap:anywhere}
#jljamDealIntelHost .di-social-snippet{color:#d1c3e5;line-height:1.5;font-size:.84rem;margin:10px 13px;overflow-wrap:anywhere;flex:1}
#jljamDealIntelHost .di-social-source{display:block;color:#c9b7d2;font-size:.75rem;line-height:1.5;margin:0 13px 11px;overflow-wrap:anywhere}
#jljamDealIntelHost .di-social-actions{display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid #4e3c64;padding:11px 12px;margin-top:auto}
#jljamDealIntelHost .di-social-actions button,#jljamDealIntelHost .di-social-actions a{min-height:43px;padding:9px 11px;border:1px solid #846ca1;border-radius:10px;color:#fff;background:#2e2344;font-size:.81rem;font-family:inherit;font-weight:650;text-decoration:none;cursor:pointer;touch-action:manipulation;display:inline-flex;align-items:center;justify-content:center}
#jljamDealIntelHost .di-social-actions .di-social-primary{background:#7b36b8;border-color:#b36be5}
#jljamDealIntelHost .di-social-empty{border:1px dashed #775f8b;background:#211d36;padding:13px;border-radius:12px;color:#d0bce3;font-size:.89rem;line-height:1.5}
#jljamDealIntelHost .di-social button:focus-visible,#jljamDealIntelHost .di-social a:focus-visible{outline:3px solid #c89afa;outline-offset:3px}
@media(max-width:770px){
 #jljamDealIntelHost .di-social-grid{grid-template-columns:minmax(0,1fr)}
 #jljamDealIntelHost .di-social-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #jljamDealIntelHost .di-social-actions a{grid-column:1/-1}
 #jljamDealIntelHost .di-social{padding:12px}
 #jljamDealIntelHost .di-social-tabs button{flex:1 1 0;min-width:0}
}
@media(prefers-reduced-motion:no-preference){#jljamDealIntelHost .di-social-card{transition:border-color .18s ease,transform .18s ease}#jljamDealIntelHost .di-social-card:hover{border-color:#bb91e5;transform:translateY(-2px)}}
