.cv-modal { max-width: 780px; }
.cv-shell { padding: clamp(22px,4vw,40px); color: #17221c; font-size:16px; line-height:1.5; }
.cv-shell h2 { margin:8px 0 10px; font-size:clamp(25px,4.8vw,36px); line-height:1.12; letter-spacing:-.045em; }
.cv-shell h3 { font-size:21px; line-height:1.25; }
.cv-shell p { margin:8px 0 14px; }
.cv-shell button,.cv-shell textarea { font:inherit; }
.cv-shell .button { min-height:46px; font-size:14px; white-space:normal; }
.cv-shell button:focus-visible,.cv-shell textarea:focus-visible { outline:3px solid #25835d; outline-offset:3px; }
.cv-shell [hidden] { display:none!important; }
.cv-eyebrow { display:block; color:#417057; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.cv-heading { padding-bottom:16px; }
.cv-heading p,.cv-shell h2 { overflow-wrap:anywhere; }
.cv-heading>.text-button { padding:0 0 10px; min-height:36px; }
.cv-subtle,.cv-consultation-note { color:#5b685f; font-size:13px; line-height:1.5; }
.cv-notice { color:#365a46; font-size:14px; min-height:0; }
.cv-notice:empty { display:none; }
.cv-presence,.cv-call-panel { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:18px; border-radius:18px; background:#f2f5ec; margin:8px 0 18px; }
.cv-presence>div,.cv-call-panel>div { flex:1 1 220px; }
.cv-presence p,.cv-call-panel p { font-size:14px; margin:5px 0 0; color:#526358; }
.cv-presence.is-online { box-shadow:inset 0 0 0 1px #92bda4; background:#eef8f0; }
.cv-inbox { display:grid; gap:10px; }
.cv-inbox-row { display:flex; gap:14px; align-items:center; padding:18px; border:1px solid #dde5da; background:#fff; border-radius:18px; color:inherit; text-align:left; cursor:pointer; width:100%; }
.cv-inbox-row:hover { background:#f7f9f3; border-color:#a5b99b; }
.cv-avatar { flex:none; display:grid; place-items:center; width:42px; height:42px; border-radius:15px; background:#e6efdc; color:#365a46; font-weight:800; font-size:20px; }
.cv-inbox-copy { display:grid; gap:4px; min-width:0; flex:1; font-size:14px; }
.cv-row-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.cv-row-top>strong { font-size:16px; }
.cv-preview { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#657067; }
.cv-state { display:inline-block; width:fit-content; font-size:11px; line-height:1.3; font-weight:700; color:#58655a; background:#edf0e8; border-radius:100px; padding:6px 9px; }
.cv-state.is-active { background:#e7f5d1; color:#365527; }
.cv-unread { display:grid; place-items:center; flex:none; height:24px; min-width:24px; padding:0 5px; border-radius:99px; background:#17221c; color:#fff; font-size:12px; font-weight:700; }
.cv-empty { text-align:center; padding:30px 20px; background:#f7f8f3; border-radius:20px; }
.cv-empty>span { display:grid; place-items:center; width:58px; height:58px; border-radius:20px; margin:auto; background:#c8f735; font-size:34px; }
.cv-empty p { color:#637064; max-width:430px; margin-inline:auto; }
.cv-availability { font-size:14px; font-weight:600; color:#38634a; }
.cv-compose { display:grid; gap:10px; }
.cv-compose label,.cv-reply label { font-size:14px; font-weight:700; }
.cv-compose textarea,.cv-reply textarea { border:1px solid #cdd7c8; background:#fff; color:#17221c; width:100%; padding:13px; border-radius:13px; resize:vertical; min-height:84px; max-height:220px; box-sizing:border-box; }
.cv-compose>.button { justify-self:start; }
.cv-thread-actions { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.cv-messages { display:flex; flex-direction:column; gap:12px; overflow:auto; overscroll-behavior:contain; max-height:min(40vh,400px); min-height:100px; padding:18px 6px; border-top:1px solid #e4e9df; scrollbar-width:thin; }
.cv-message { align-self:flex-start; max-width:84%; background:#edf1e7; border-radius:17px 17px 17px 4px; padding:12px 15px; overflow-wrap:anywhere; }
.cv-message.is-mine { align-self:flex-end; background:#e5f4c6; border-radius:17px 17px 4px 17px; }
.cv-message p { margin:0; white-space:pre-wrap; font-size:15px; }
.cv-message time { display:block; font-size:10px; color:#697362; margin-top:5px; text-align:right; }
.cv-reply { padding-top:14px; border-top:1px solid #e4e9df; }
.cv-reply>div { display:flex; gap:10px; align-items:flex-end; margin-top:6px; }
.cv-reply textarea { min-height:70px; }
.cv-reply button { flex:none; }
.cv-consultation-note { margin-bottom:0!important; }
.cv-video { background:#17221c; border-radius:18px; position:relative; overflow:hidden; margin:14px 0; min-height:220px; }
.cv-video video[data-cv=remote] { display:block; width:100%; max-height:400px; min-height:220px; background:#17221c; object-fit:contain; }
.cv-video video[data-cv=local] { position:absolute; top:12px; right:12px; width:25%; max-height:140px; border:2px solid #fff; border-radius:12px; object-fit:cover; background:#28372d; }
.cv-video-controls { position:relative; display:flex; gap:7px; flex-wrap:wrap; padding:12px; }
.cv-video-controls .button { background:#fff; font-size:12px; padding:9px 12px; min-height:40px; border:0; }
.cv-video-controls .cv-danger { color:#fff; background:#a43636; }
.cv-video.is-local-primary video[data-cv=local] { position:static; display:block; width:100%; max-height:400px; min-height:220px; border:0; border-radius:0; object-fit:contain; }
.cv-video.is-local-primary video[data-cv=remote] { position:absolute; width:1px; height:1px; min-height:0; opacity:0; pointer-events:none; }
.cv-media-summary { margin:0!important; padding:12px 14px 0; color:#eaf4e7; font-size:12px; line-height:1.5; }
.cv-video-controls .button[aria-pressed=true] { box-shadow:inset 0 0 0 2px #c8f735; }
.cv-video-controls .button:disabled { opacity:.6; cursor:wait; }
.cv-call-panel>.text-button { min-height:44px; }
@media(max-width:560px) {
  .cv-shell { padding:24px 18px; }
  .cv-inbox-row { padding:14px 12px; gap:10px; }
  .cv-avatar { width:34px; height:34px; border-radius:12px; font-size:16px; }
  .cv-presence,.cv-call-panel { padding:15px; }
  .cv-message { max-width:91%; }
  .cv-presence>.button,.cv-call-panel>.button { flex:1 1 auto; }
  .cv-reply>div { gap:7px; }
  .cv-reply .button { padding-inline:16px; }
  .cv-video-controls .button { flex:1 1 40%; }
}
