/* Buzz 2.0 | The people ARE the product. Existing workspace stays intact. */
:root{--duo-ink:#262239;--duo-lilac:#7860c7;--duo-paper:#fff}
body.convo-mode{background:#f8f7fa;color:var(--duo-ink)}
body.convo-mode .c-shell{max-width:1100px;padding:10px 18px 68px}
body.convo-mode .app-nav{height:64px;min-height:64px;border-bottom:1px solid #eceaf3;box-shadow:none}
body.convo-mode .app-nav .brand{font-size:27px}
body.convo-mode .app-nav .brand small{display:none}
body.convo-mode .app-nav .nav-cta{margin-left:auto}
body.convo-mode .c-intro{min-height:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible;display:block;color:#29223e}
body.convo-mode .c-intro:before{display:none}
body.convo-mode .c-intro-copy{padding:8px 4px 12px;max-width:100%}
body.convo-mode .c-intro h1{font-size:clamp(24px,2.6vw,32px);color:#272139;margin:0 0 4px;letter-spacing:-.8px}
body.convo-mode .c-intro p{font-size:12px;color:#7a738b;max-width:none;margin:0}
body.convo-mode .c-eyebrow{font-size:9px;letter-spacing:1.3px;color:#8067bd;margin-bottom:7px}
body.convo-mode .c-status{display:none}
body.convo-mode .c-agent-showcase{width:100%;height:auto;min-height:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;justify-content:stretch;align-items:stretch}
body.convo-mode .c-main{display:block;margin-top:12px}
body.convo-mode .c-main-left{gap:0}
body.convo-mode .c-modes,body.convo-mode .c-main>.c-journey{display:none!important}
body.convo-mode .c-conversation{min-height:310px;height:clamp(330px,calc(100svh - 390px),660px);border:1px solid #e8e5f0;box-shadow:0 15px 45px #2921380a;border-radius:22px}
body.convo-mode .c-conversation-top{padding:12px 20px}
body.convo-mode .c-conversation-top p{margin:4px 0 0}
body.convo-mode .c-conversation-title{font-size:14px}
body.convo-mode .c-thread{padding:18px 20px}
body.convo-mode .c-bubble{font-size:13px;line-height:1.6}
body.convo-mode .c-msg-author{font-size:12px}
body.convo-mode .chat-command-actions{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;margin:0;gap:6px;padding:8px 15px 3px}
body.convo-mode .chat-command-actions button{flex-shrink:0}
body.convo-mode .c-composer{padding:11px 17px}
body.convo-mode .c-suggestions{align-items:center;gap:14px}
body.convo-mode .c-suggestions label{font-size:11px}
body.convo-mode #chat-status{font-size:10px;color:#777084}
body.convo-mode .c-btn-small{background:#f3f0fa;color:#6c57ae}
.agent-person{position:relative;isolation:isolate;display:flex;align-items:flex-start;justify-content:flex-start;text-align:left;min-width:0;height:185px;border:1px solid #e7deec;border-radius:23px;background:linear-gradient(115deg,#fff9f1,#f5e6dc);overflow:hidden;cursor:pointer;padding:21px 18px;transition:border-color .15s,box-shadow .15s;box-shadow:0 9px 25px #4030470a}
.agent-person[data-agent="ved"]{background:linear-gradient(115deg,#f2f8ff,#dce5f4);border-color:#dfe6f0}
.agent-person:before{content:"";position:absolute;z-index:-1;right:-26px;top:-82px;width:250px;height:250px;border-radius:50%;background:#ffffff60}
.agent-person:focus-visible,.agent-person.is-selected{outline:2px solid #8b72d2;outline-offset:0;border-color:#9881d4;box-shadow:0 8px 28px #7466b027}
.agent-person[data-agent="ved"].is-selected{outline-color:#709cae;border-color:#91b4bf}
.agent-person img.human-portrait{position:absolute;bottom:-4px;right:-3px;height:102%;max-width:56%;width:auto;object-fit:contain;object-position:bottom center;pointer-events:none;filter:drop-shadow(0 9px 15px #312a361a)}
.agent-person-text{position:relative;z-index:2;display:flex;flex-direction:column;gap:8px;max-width:57%;white-space:normal}
.agent-person .agent-pill{font-size:9px;letter-spacing:1.1px;font-weight:800;text-transform:uppercase;color:#9a6b7a}
.agent-person[data-agent="ved"] .agent-pill{color:#517f9d}
.agent-person strong{font:750 clamp(24px,2.5vw,37px)/1.08 'Space Grotesk',sans-serif;letter-spacing:-1px;color:#302539}
.agent-person .agent-job{font-size:12px;line-height:1.45;color:#766d80;max-width:145px}
.agent-person .agent-state{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#6d568c;font-weight:700;margin-top:auto}
.agent-person .agent-state:before{content:"";width:6px;height:6px;border-radius:100%;background:#77bd9d}
.agent-person[data-processing="true"] .agent-state:before{background:#dfab51}
.duo-quick{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:6px 0 4px}
.duo-quick button{background:#f3eefc;border:1px solid #dfd5f0;color:#7151ad;padding:8px 12px;border-radius:99px;font-size:11px;font-weight:800}
.duo-quick button[aria-pressed="true"]{color:white;background:#7258c6;border-color:#7258c6}
.duo-voice{background:transparent;color:#7557b4;border:1px solid #ddd5f1;border-radius:10px;min-width:39px;min-height:39px;font-size:17px}
.duo-voice[aria-pressed="true"]{background:#fcefe7;color:#a74d3a;border-color:#dfa59b}
body.convo-mode #workspace-panels{margin-top:14px}
body.convo-mode .agent-onboarding-portrait{animation:none!important}
body.convo-mode #source-agent-portraits .agent-person{height:185px;cursor:default}
body.convo-mode #source-agent-portraits .agent-person:focus-visible{outline:0}
body.convo-mode #source-actions{flex-wrap:wrap;overflow:visible}
body.convo-mode .agent-face{object-fit:cover;object-position:top center;background:#f3eaf2}
.hero-visual.has-duo{min-height:460px;display:flex;align-items:center;justify-content:center;padding:34px;background:radial-gradient(ellipse,#34285e,#131626 75%);}
.hero-visual.has-duo .public-duo{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:15px;max-width:610px}
.hero-visual.has-duo .agent-person{height:315px;cursor:default;background:linear-gradient(130deg,#ffefe6,#ecd8d5)}
.hero-visual.has-duo .agent-person[data-agent="ved"]{background:linear-gradient(130deg,#e3f0fa,#d3ddf0)}
.hero-visual.has-duo .agent-person img{height:92%;max-width:82%;right:-12px}
.hero-visual.has-duo .agent-person-text{max-width:90%}
.hero-visual.has-duo .agent-person strong{font-size:30px}
@media(max-width:790px){
 body.convo-mode .c-shell{padding:9px 12px 55px}
 body.convo-mode .c-intro-copy{padding:4px 1px 9px}
 body.convo-mode .c-intro h1{font-size:22px}
 body.convo-mode .c-intro p{font-size:11px}
 body.convo-mode .c-agent-showcase{gap:8px}
 body.convo-mode .agent-person{height:145px;border-radius:16px;padding:13px 11px}
 body.convo-mode .agent-person img.human-portrait{max-width:66%;right:-12px}
 body.convo-mode .agent-person-text{max-width:65%;gap:4px}
 body.convo-mode .agent-person strong{font-size:25px}
 body.convo-mode .agent-person .agent-job{font-size:10px;max-width:95px}
 body.convo-mode .agent-person .agent-pill{font-size:8px;letter-spacing:.6px}
 body.convo-mode .agent-person .agent-state{font-size:9px}
 body.convo-mode .c-main{margin-top:9px}
 body.convo-mode .c-conversation{height:clamp(315px,calc(100svh - 302px),600px);min-height:315px}
 body.convo-mode .c-thread{padding:12px}
 body.convo-mode .c-composer{padding:9px}
 body.convo-mode .c-conversation-top{padding:11px}
 body.convo-mode .c-conversation-top p{font-size:9px}
 .hero-visual.has-duo{min-height:350px;padding:15px}
 .hero-visual.has-duo .agent-person{height:280px;padding:15px 10px}
 .hero-visual.has-duo .agent-person img{max-width:100%;right:-22px;height:76%}
}
@media(max-width:375px){
 body.convo-mode .agent-person{height:129px;padding:10px 8px}
 body.convo-mode .agent-person strong{font-size:22px}
 body.convo-mode .agent-person .agent-job{font-size:9px}
 body.convo-mode .agent-person img.human-portrait{max-width:64%;right:-11px}
 body.convo-mode .c-conversation{height:clamp(300px,calc(100svh - 275px),500px)}
}
body.convo-mode #primary-chat.duo-language-open .primary-chat-form .c-suggestions{display:flex!important;padding:0 0 8px}
body.convo-mode #primary-chat.duo-language-open .primary-chat-form .c-suggestions label:first-child{display:none!important}
.duo-listen{border:1px solid #e7e0f1;background:#fbf8ff;color:#65509b;border-radius:9px;font-size:10px;font-weight:700;padding:6px 9px;margin:7px 0 3px;cursor:pointer}
.duo-listen:hover{background:#eee9fa}
@media(prefers-reduced-motion:reduce){.agent-person{transition:none}}

/* Preview review: keep the send control above the fold at every desktop height. */
@media(min-width:791px){
 body.convo-mode #primary-chat{height:clamp(285px,calc(100svh - 520px),545px)!important;min-height:285px!important}
}
body.convo-mode #primary-chat .c-suggestions,
body.convo-mode #primary-chat .chat-command-actions{display:none!important}
body.convo-mode .duo-quick{margin:0 0 8px}
body.convo-mode .c-intro-copy{padding-bottom:5px}
body.convo-mode .agent-person img.human-portrait{max-width:54%;right:-7px}
@media(max-width:790px){body.convo-mode .agent-person img.human-portrait{max-width:54%;right:-7px}}

/* Flex root-cause fix: the message thread must be allowed to shrink; a
   min-height on it previously pushed the composer outside its own panel. */
body.convo-mode #primary-chat .c-thread{min-height:0!important;flex:1 1 0%!important;overflow-y:auto}
body.convo-mode #primary-chat .c-composer{flex-shrink:0;min-height:0}
@media(min-width:791px){
 body.convo-mode #primary-chat{height:clamp(350px,calc(100svh - 420px),550px)!important;min-height:0!important}
}

/* Keep Mia and Leo above the fold on narrow customer landing screens. */
.mobile-duo-preview{display:none}
@media(max-width:790px){
 .hero-copy .mobile-duo-preview{
   display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
   gap:9px;margin:13px 0 15px;width:100%;
 }
 .hero-copy .mobile-duo-preview .agent-person{
   cursor:default;min-height:0;height:139px;padding:12px 10px;border-radius:17px;
   box-shadow:0 6px 18px #15182e12;
 }
 .hero-copy .mobile-duo-preview .agent-person-text{gap:4px;max-width:53%}
 .hero-copy .mobile-duo-preview .agent-person .agent-job{display:none}
 .hero-copy .mobile-duo-preview .agent-person strong{font-size:24px}
 .hero-copy .mobile-duo-preview .agent-person .agent-pill{font-size:8px;letter-spacing:0}
 .hero-copy .mobile-duo-preview .agent-person .agent-job{font-size:9px;max-width:96px}
 .hero-copy .mobile-duo-preview .agent-person img.human-portrait{
   height:95%;width:auto;max-width:61%;right:-10px;bottom:-4px
 }
 .hero-copy .mobile-duo-preview .agent-person .agent-state{font-size:9px}
 .hero-visual.has-duo{display:none!important}
}

.brand-photo-preview{display:block;max-width:100%;width:auto;max-height:240px;min-height:90px;object-fit:contain;border-radius:14px;border:1px solid #e7e4f0;background:#f6f4fa;padding:6px;margin:9px 0}
@media(max-width:790px){.brand-photo-preview{max-height:190px;max-width:min(100%,310px)}}

/* 320px phones: both human teammates AND the primary signup action fit above the fold. */
@media(max-width:375px){
 .hero-copy .mobile-duo-preview{margin:7px 0 8px;gap:7px}
 .hero-copy .mobile-duo-preview .agent-person{height:105px;padding:9px 7px}
 .hero-copy .mobile-duo-preview .agent-person strong{font-size:21px}
 .hero-copy .mobile-duo-preview .agent-person .agent-state{font-size:8px}
 .hero-copy .mobile-duo-preview .agent-person img.human-portrait{height:96%;max-width:54%;right:-6px}
}
