/* Private opportunity discovery preview. The existing website design tokens remain authoritative. */
.jsop-progress{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:0 0 1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--line);font-size:.875rem;line-height:1.55;color:var(--muted)}
.jsop-progress span[aria-current="step"]{font-weight:700;color:var(--text);text-decoration:underline;text-underline-offset:.35em;text-decoration-color:var(--signal);text-decoration-thickness:2px}
.jsop-notice{margin:0 0 1.5rem;padding:1rem;border:1px solid var(--line);background:var(--bg);font-size:.875rem;line-height:1.6;color:var(--muted)}
.jsop-notice p{margin:0 0 .75rem}.jsop-notice label,.jsop-confirm{display:flex!important;align-items:flex-start;gap:.6rem;font-weight:600;color:var(--text);cursor:pointer}
.jsop-notice input,.jsop-confirm input{flex:0 0 auto;min-width:1.2rem;min-height:1.2rem;margin:.15rem 0 0;accent-color:var(--signal)}
.jsop-review{margin:1.75rem 0 0;padding-top:1.5rem;border-top:1px solid var(--line)}
.jsop-review h2{font-size:clamp(1.35rem,3vw,1.9rem);line-height:1.2;margin:0 0 .75rem}.jsop-review>p{line-height:1.55}
.jsop-review label:not(.jsop-confirm){margin-top:1rem}.jsop-review input[type="text"],.jsop-review input[type="email"]{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:44px;background:var(--bg);color:var(--text);border:1px solid var(--line);padding:.6rem .8rem;border-radius:3px;font:inherit}
.jsop-review textarea{min-height:220px;box-sizing:border-box}.jsop-preview :is(button,input,textarea,a):focus-visible{outline:2px solid var(--signal);outline-offset:3px}
.jsop-text-button{background:none;border:0;color:var(--signal);padding:.2em 0;min-height:24px;text-decoration:underline;font:inherit;cursor:pointer}.jsop-text-button:disabled{color:var(--muted);cursor:default}
#jsop-receipt{margin:1rem 0;padding:1rem;border:1px solid var(--line);line-height:1.6;font-weight:600;overflow-wrap:anywhere}
.jsop-preview [hidden]{display:none!important}.jsop-preview .btn{min-height:44px}
@media(max-width:480px){.jsop-progress{gap:.5rem .85rem}.jsop-notice{padding:.75rem}.jsop-review textarea{min-height:240px}}

/* v0.2: familiar conversation flow, distinct objective panel; natural reflow. */
.jsop-preview{width:min(1180px,calc(100% - 48px));padding:clamp(2rem,4vw,4rem) 0}
.jsop-preview .jspe-intro{max-width:none;margin:0 0 1.6rem}
.jsop-preview h1{font-size:clamp(2.5rem,5vw,4.2rem)}
.jsop-preview .jspe-lead{max-width:800px}
.jsop-workspace{border:0;background:transparent;padding:0}
.jsop-experimental{margin-left:auto;font-size:.78rem;align-self:center;border:1px solid var(--line);border-radius:100px;padding:.2rem .65rem;color:var(--text);font-weight:600}
.jsop-notice{border-radius:8px;max-width:800px}.jsop-notice h2,.jsop-welcome h2{font-size:1.2rem;line-height:1.35;margin:0 0 .45rem;color:var(--text)}
.jsop-notice a,.jsop-contact a,.jsop-utilities a{text-decoration:underline;text-underline-offset:.2em;color:var(--text)}
.jsop-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(255px,1fr);align-items:start;gap:clamp(1.3rem,3vw,2.7rem)}
.jsop-conversation{min-width:0}.jsop-welcome{padding:1rem 0 1.4rem}.jsop-welcome p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.65}
.jsop-preview .jspe-transcript{gap:1.35rem;margin:0 0 1.25rem}
.jsop-preview .jspe-message{border:0;padding:0;line-height:1.65;background:none;margin:0;min-width:0}
.jsop-preview .jspe-message[data-speaker=visitor]{justify-self:end;width:fit-content;max-width:min(90%,650px);background:var(--panel-2);border-radius:15px 15px 3px 15px;padding:.85rem 1rem;margin-left:1rem}
.jsop-preview .jspe-message[data-speaker=assistant]{max-width:100%;padding:.4rem 0 .5rem}
.jsop-preview .jspe-message h2{font-size:.72rem;letter-spacing:.04em;text-transform:none;color:var(--muted)}
.jsop-preview .jspe-message[data-pending=failed]{border:1px dashed var(--line)}
.jsop-pending{display:flex;align-items:center;gap:.65rem;min-height:44px;margin:0 0 .75rem;color:var(--muted);font-size:.88rem}
.jsop-dots{display:inline-flex;gap:5px;align-items:center}.jsop-dots i{width:7px;height:7px;border-radius:50%;background:currentColor;animation:jsop-pulse 1.3s ease-in-out infinite}.jsop-dots i:nth-child(2){animation-delay:.15s}.jsop-dots i:nth-child(3){animation-delay:.3s}
@keyframes jsop-pulse{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.jsop-composer{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:.8rem 1rem}.jsop-composer label{font-size:.8rem;color:var(--muted);margin:0 0 .35rem}.jsop-composer textarea{border:0;background:transparent;padding:.35rem 0;min-height:76px;max-height:250px;resize:vertical;box-sizing:border-box}.jsop-composer textarea:focus-visible{outline-offset:3px}.jsop-composer .jspe-controls{justify-content:flex-end;margin-top:.4rem}.jsop-composer .btn{min-width:100px;border-radius:9px}
.jsop-opportunity{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:1.2rem;overflow-wrap:anywhere}.jsop-opportunity summary{font-weight:700;font-size:1.1rem;cursor:pointer;min-height:32px}.jsop-opportunity h3{font-size:.8rem;color:var(--muted);margin:1rem 0 .35rem;line-height:1.45}.jsop-opportunity p,.jsop-opportunity li{font-size:.93rem;line-height:1.6;margin:.25rem 0}.jsop-opportunity ul{margin:.35rem 0 .6rem;padding-left:1.15rem}.jsop-opportunity #jsop-related{border-top:1px solid var(--line);margin-top:1rem}.jsop-opportunity .btn{display:block;width:100%;margin-top:1rem;white-space:normal}.jsop-subtle,.jsop-opportunity .jsop-subtle{font-size:.82rem;line-height:1.55;color:var(--muted)}
.jsop-review{max-width:850px;margin:1.2rem auto 0;border:0;padding:0}.jsop-review textarea{min-height:100px;max-height:640px;resize:vertical}.jsop-review #jsop-brief{min-height:0}.jsop-brief-section{border-bottom:1px solid var(--line);padding:.6rem 0 1rem}.jsop-brief-section label{font-size:.88rem}.jsop-contact{min-width:0;margin:1.3rem 0;padding:1rem;border:1px solid var(--line);border-radius:8px}.jsop-contact legend{font-weight:700;padding:0 .4rem}.jsop-contact p{margin:0 0 .8rem}.jsop-contact input{max-width:100%}
.jsop-utilities{display:flex;align-items:center;gap:.5rem 1.3rem;flex-wrap:wrap;margin:1.2rem 0 0;font-size:.85rem}.jsop-utilities :is(a,button){min-height:44px;display:inline-flex;align-items:center}.jsop-status{min-height:1.5em;margin:.75rem 0;color:var(--text)}.jsop-error{border-left:3px solid currentColor;padding:.55rem .8rem;font-weight:600}
.jsop-preview :is(button,input,textarea,a,summary):focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:760px){.jsop-preview{width:calc(100% - 32px);padding:2rem 0}.jsop-layout{display:flex;flex-direction:column;gap:1rem}.jsop-conversation,.jsop-opportunity{width:100%;box-sizing:border-box}.jsop-opportunity{padding:1rem}.jsop-experimental{margin-left:0}.jsop-progress{gap:.65rem 1rem}.jsop-preview .jspe-message[data-speaker=visitor]{max-width:94%;margin-left:.5rem}.jsop-composer .btn{width:auto}.jsop-contact{padding:.75rem}.jsop-utilities{gap:.2rem 1rem}}
@media(prefers-reduced-motion:reduce){.jsop-dots i{animation:none;opacity:1}.jsop-preview *{scroll-behavior:auto!important}}

/* v0.3: keep the conversation usable as it grows; reflow naturally on short/zoomed screens. */
.jsop-preview.jsop-engaged .jspe-intro{margin-bottom:1rem}
.jsop-preview.jsop-engaged h1{font-size:clamp(1.75rem,3vw,2.65rem);line-height:1.15;margin-bottom:.5rem}
.jsop-preview.jsop-engaged .jspe-lead{font-size:.95rem;line-height:1.5;margin-bottom:.6rem}
.jsop-preview button.btn:disabled{opacity:.55!important;cursor:not-allowed!important;box-shadow:none!important}
.jsop-is-busy #jsop-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (min-width:900px) and (min-height:760px){
 .jsop-preview.jsop-engaged .jspe-transcript{max-height:clamp(220px,39vh,520px);overflow-y:auto;overscroll-behavior:contain;padding:.35rem .65rem .5rem .15rem;scrollbar-gutter:stable}
 .jsop-preview.jsop-engaged .jsop-opportunity{max-height:62vh;overflow-y:auto;overscroll-behavior:contain}
}

/* Homepage invitation is scoped to the existing theme tokens and reflows without a fixed height. */
.jsop-home-entry{background:var(--panel);border-block:1px solid var(--line);scroll-margin-top:2rem;padding:clamp(2rem,4vw,4rem) 0}
.jsop-home-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(1.5rem,5vw,4rem);align-items:center}
.jsop-home-grid h2{font-size:clamp(1.9rem,4vw,3rem);line-height:1.13;margin:.5rem 0 1rem}
.jsop-home-grid p{line-height:1.65;overflow-wrap:anywhere}
.jsop-home-card{border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:clamp(1rem,3vw,2rem);min-width:0}
.jsop-home-card h3{margin:0 0 .6rem;font-size:clamp(1.25rem,2.4vw,1.65rem);line-height:1.3}
.jsop-home-card .btn{min-height:44px;max-width:100%;white-space:normal;margin:.5rem 0 1rem}
.jsop-home-disclosure,.jsop-voice-disclosure{font-size:.875rem;line-height:1.6;color:var(--text);margin:.65rem 0 0}
.jsop-home-disclosure a{text-decoration:underline;text-underline-offset:.2em;color:inherit}
.jsop-home-entry a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:760px){.jsop-home-grid{grid-template-columns:minmax(0,1fr);gap:1.25rem}}

/* Review boundary: generated content is displayed, never editable. */
.jsop-generated{border:1px solid var(--line);border-radius:8px;padding:1rem;margin:1.1rem 0;background:var(--panel)}
.jsop-generated h3,.jsop-nonbinding h3{margin:0 0 .45rem;font-size:1rem}
.jsop-brief-section h4{font-size:.92rem;margin:0 0 .35rem}
.jsop-brief-section:last-child{border-bottom:0;padding-bottom:0}
.jsop-generated-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.jsop-review #jsop-additions{min-height:100px;max-height:640px}
.jsop-nonbinding{padding:1rem;border:1px solid var(--line);border-radius:8px;margin:1rem 0}
.jsop-nonbinding p{margin:0;line-height:1.55}
.jsop-preview :is(#jsop-review-title,#jsop-receipt,#jsop-query,#jsop-additions){scroll-margin-top:8rem}

/* Keep programmatically scrolled content clear of the existing sticky site navigation. */
.jsop-preview :is(.jspe-message,#jsop-pending,#jsop-transcript,#jsop-review-title,#jsop-receipt,#jsop-query,#jsop-additions){scroll-margin-block-start:9rem;scroll-margin-block-end:1rem}
.jsop-preview input[type=password]{display:block;max-width:100%;width:30rem;box-sizing:border-box;min-height:44px;margin:.5rem 0 1rem;padding:.6rem .8rem;background:var(--bg);color:var(--text);border:1px solid var(--line);font:inherit}
@media (max-width:760px){.jsop-preview :is(.jsop-layout,.jsop-review,.jsop-generated,.jsop-contact){min-width:0;max-width:100%;overflow-wrap:anywhere}.jsop-preview .jsop-progress{font-size:.85rem}}
