/* Clinic reels chat — client-side, no server. Matches /clinics/ (black, gold, dark green). */
.mcs-chat,.mcs-chat *{box-sizing:border-box}
.mcs-launch{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:60;width:56px;height:56px;border-radius:50%;border:1px solid #c9a86a;background:#0a0a09;color:#e3cf9f;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 28px rgba(0,0,0,.55),0 0 0 4px rgba(201,168,106,.12);transition:opacity .25s,transform .25s;-webkit-tap-highlight-color:transparent}
.mcs-launch:hover{transform:translateY(-2px)}
.mcs-launch:focus-visible{outline:2px solid #e3cf9f;outline-offset:3px}
.mcs-launch svg{width:26px;height:26px}
.mcs-launch.is-dodge{opacity:0;transform:scale(.85);pointer-events:none}
.mcs-launch[aria-expanded="true"]{opacity:0;pointer-events:none}
.mcs-panel{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:61;width:370px;height:min(600px,calc(100vh - 32px));display:flex;flex-direction:column;background:#0a0a09;border:1px solid rgba(201,168,106,.45);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.6);overflow:hidden;font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;color:#ece6d8;transform-origin:bottom right;animation:mcsIn .22s ease-out}
.mcs-panel[hidden]{display:none}
@keyframes mcsIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.mcs-panel{animation:none}.mcs-launch{transition:none}}
.mcs-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:#0f2a22;border-bottom:1px solid rgba(201,168,106,.28)}
.mcs-av{flex:0 0 38px;height:38px;border-radius:50%;border:1px solid #c9a86a;display:flex;align-items:center;justify-content:center;font-family:"Playfair Display",Georgia,serif;font-size:15px;color:#e3cf9f;background:#0a0a09;letter-spacing:.04em}
.mcs-ttl{flex:1;min-width:0;line-height:1.25}
.mcs-ttl b{display:block;font-family:"Playfair Display",Georgia,serif;font-weight:500;font-size:16px;color:#ece6d8}
.mcs-ttl span{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#c9a86a}
.mcs-x{flex:0 0 40px;height:40px;border-radius:50%;border:0;background:transparent;color:#e3cf9f;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mcs-x:hover{background:rgba(201,168,106,.12)}
.mcs-x:focus-visible,.mcs-chip:focus-visible,.mcs-send:focus-visible,.mcs-act:focus-visible{outline:2px solid #e3cf9f;outline-offset:2px}
.mcs-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px;-webkit-overflow-scrolling:touch}
.mcs-msg{max-width:88%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.mcs-bot{align-self:flex-start;background:#163a2f;border:1px solid rgba(201,168,106,.18);border-bottom-left-radius:4px}
.mcs-me{align-self:flex-end;background:#c9a86a;color:#0a0a09;border-bottom-right-radius:4px;font-weight:500}
.mcs-msg b{color:#e3cf9f;font-weight:600}
.mcs-sig{display:block;margin-top:8px;font-size:12px;color:#c9a86a;letter-spacing:.02em}
.mcs-acts{align-self:flex-start;display:flex;flex-direction:column;gap:8px;width:88%}
.mcs-act{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 16px;border-radius:999px;font:600 13px/1.2 "Montserrat",system-ui,sans-serif;letter-spacing:.06em;text-decoration:none;text-align:center;cursor:pointer;border:1px solid #c9a86a}
.mcs-act.gold{background:#c9a86a;color:#0a0a09}
.mcs-act.gold:hover{background:#e3cf9f}
.mcs-act.line{background:transparent;color:#e3cf9f}
.mcs-act.line:hover{background:rgba(201,168,106,.1)}
.mcs-act svg{width:18px;height:18px;flex:0 0 18px}
.mcs-typing{align-self:flex-start;background:#163a2f;border-radius:14px;border-bottom-left-radius:4px;padding:12px 14px;display:flex;gap:4px}
.mcs-typing i{width:6px;height:6px;border-radius:50%;background:#c9a86a;opacity:.4;animation:mcsDot 1s infinite}
.mcs-typing i:nth-child(2){animation-delay:.15s}.mcs-typing i:nth-child(3){animation-delay:.3s}
@keyframes mcsDot{50%{opacity:1;transform:translateY(-2px)}}
.mcs-chips{display:flex;flex-wrap:wrap;gap:8px;padding:8px 14px 10px;border-top:1px solid rgba(201,168,106,.14)}
.mcs-chips:empty{display:none}
.mcs-chip{min-height:38px;padding:8px 14px;border-radius:999px;border:1px solid rgba(201,168,106,.6);background:transparent;color:#e3cf9f;font:500 13px/1.2 "Montserrat",system-ui,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mcs-chip:hover{background:rgba(201,168,106,.12)}
.mcs-form{display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid rgba(201,168,106,.28);background:#121210}
.mcs-in{flex:1;min-width:0;height:44px;border-radius:999px;border:1px solid rgba(201,168,106,.35);background:#0a0a09;color:#ece6d8;padding:0 16px;font:16px/1 "Montserrat",system-ui,sans-serif}
.mcs-in::placeholder{color:#8e877a}
.mcs-in:focus{outline:none;border-color:#c9a86a}
.mcs-send{flex:0 0 44px;height:44px;border-radius:50%;border:0;background:#c9a86a;color:#0a0a09;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mcs-send svg{width:18px;height:18px}
.mcs-note{padding:0 14px 8px;font-size:10.5px;color:#8e877a;text-align:center;background:#121210}
.mcs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:520px){
  .mcs-panel{left:8px;right:8px;bottom:8px;width:auto;height:min(82vh,640px);border-radius:16px}
}
