/* Compact composer tools stay within the shared visualViewport chat shell. */
.ws-chat-shell .ws-chat-compose{position:relative;gap:6px}.dm-toolbar{position:relative;flex:none;align-self:flex-end}.ws-chat-compose .dm-plus,.ws-chat-compose .dm-mic{width:40px;min-height:44px;height:44px;border-radius:14px;background:#f3ecfa;color:#8b65a6;touch-action:manipulation}.ws-chat-compose .dm-plus svg,.ws-chat-compose .dm-mic svg{width:22px;height:22px}.dm-menu{position:absolute;bottom:calc(100% + 10px);left:0;z-index:35;min-width:156px;padding:5px;border:1px solid #e9ddf0;border-radius:17px;background:#fffcff;box-shadow:0 8px 30px #65417b28;animation:dm-menu-in .16s ease-out}.dm-menu[hidden]{display:none!important}.ws-chat-compose .dm-menu .dm-tool{display:flex;justify-content:flex-start;align-items:center;gap:10px;width:100%;height:auto;min-height:44px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:#806096;font:inherit;font-size:13px;text-align:left}.dm-menu .dm-tool:hover,.dm-menu .dm-tool:focus-visible{background:#f1e8fa;outline:none}.dm-menu .dm-tool svg{width:20px;height:20px;flex:none}.dm-toolbar-status{position:absolute;bottom:calc(100% + 4px);left:12px;right:12px;padding:7px 10px;border:1px solid #eedfeb;border-radius:12px;background:#fff8fc;color:#a24d72;font-size:11px;overflow-wrap:anywhere}.dm-toolbar-status:empty{display:none}.dm-plus:disabled,.dm-mic:disabled,.dm-tool:disabled{opacity:.4}@keyframes dm-menu-in{from{opacity:0;transform:translateY(5px) scale(.97)}to{opacity:1;transform:none}}
.dm-dialog{max-width:calc(100% - 24px)}.dm-preview{display:block;width:100%;max-width:100%;max-height:50vh;object-fit:contain;border-radius:16px;background:#f8f4fc}.dm-preview:is(audio){max-height:60px;margin:16px 0}
.dm-actions{display:flex;gap:8px;margin-top:14px}.dm-button{flex:1;min-width:0;border:0;border-radius:14px;min-height:44px;padding:10px;color:#fff;font:inherit;background:linear-gradient(135deg,#a96ddd,#8052bd);cursor:pointer}.dm-button.dm-soft{background:#f1eaf8;color:#826196}.dm-button:disabled{opacity:.5}
.dm-status,.dm-record-status{color:#8b6d9f;font-size:14px;line-height:1.5}.dm-record-status{font-variant-numeric:tabular-nums}
.dm-load{border:0;border-radius:10px;color:inherit;background:#ffffff20;padding:12px 8px;cursor:pointer;font:inherit;max-width:100%}.dm-message-media{display:block;max-width:100%;width:260px;object-fit:contain;border-radius:10px}.dm-message-media:is(img){cursor:zoom-in;max-height:340px}.dm-message-media:is(audio){min-width:0;height:48px}
.ws-chat-message.dm-gift{background:linear-gradient(130deg,#fff6dc,#f6e9bf);border:1px solid #dbc493;color:#765728;min-width:160px;text-align:center}.dm-gift-star{display:block;font-size:32px;color:#bd9142;text-shadow:0 1px #fff}.dm-gift strong,.dm-gift small{display:block}.dm-gift small{font-size:11px;margin-top:6px}
@media(max-width:360px){.ws-chat-shell .ws-chat-compose{padding-left:8px;padding-right:8px;gap:4px}.ws-chat-compose .dm-plus,.ws-chat-compose .dm-mic{width:36px}.ws-chat-compose button[type=submit]{width:38px}}
@media(prefers-reduced-motion:reduce){.dm-menu{animation:none}}

/* Small visual composer; input stays 16px to prevent iPhone focus zoom. */
.ws-chat-shell .ws-chat-compose{padding:6px 9px;gap:5px}.ws-chat-shell .ws-chat-compose textarea{min-height:38px;padding:8px 10px;border-radius:13px;line-height:20px}.ws-chat-shell .ws-chat-compose>button[type=submit],.ws-chat-shell .ws-chat-compose .dm-plus,.ws-chat-shell .ws-chat-compose .dm-mic{width:36px;height:40px;min-height:40px;border-radius:12px}.ws-chat-shell .ws-chat-compose button svg{width:19px;height:19px}.dm-draft{display:flex;align-items:center;gap:10px;flex:none;padding:7px 12px;background:#fff;border-top:1px solid #f1e8f7}.dm-draft[hidden]{display:none!important}.dm-draft-photo{width:38px;height:38px;object-fit:cover;border:1px solid #e8dbf0;border-radius:9px}.dm-draft-label{flex:1;color:#a082ae;font-size:11px}.dm-draft-remove{width:34px;min-height:38px;border:0;border-radius:11px;background:#f8f2fb;color:#a486b3;font:20px system-ui;cursor:pointer}.dm-caption{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.ws-message-time{align-items:center;min-height:14px;font-variant-numeric:tabular-nums}.ws-receipt{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;opacity:.75}.ws-receipt svg{display:block;width:15px;height:15px}.ws-receipt.is-read{opacity:1;color:#d9c5ff}.ws-send-retry{padding:2px 3px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}[data-send-status=failed] .ws-receipt{color:#ffd5df}.ws-send-retry:focus-visible,.dm-draft-remove:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Appointment cards use service/date/status, never a technical booking number. */
.ws-chat-booking{padding:14px!important;border:1px solid #e5d8f0!important;border-radius:20px!important;background:linear-gradient(130deg,#fff,#f9f2fe)!important;box-shadow:0 4px 14px #8062960a}.ws-visit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ws-chat-booking .ws-visit-service{margin:0;font-size:15px;line-height:1.4;font-weight:650;flex:1;min-width:0;overflow-wrap:anywhere;color:#65427d}.ws-visit-status{flex:none;max-width:52%;padding:4px 8px;border:1px solid #e5d8ed;border-radius:99px;background:#f0e8f7;color:#9474a6;font-size:10px;line-height:1.35;text-align:center}.ws-visit-status.is-confirmed{background:#edf7f2;border-color:#d4e9df;color:#659881}.ws-visit-status.is-pending{background:#fff8e9;border-color:#f0e2c4;color:#b18b4c}.ws-visit-status.is-cancelled,.ws-visit-status.is-declined{background:#fcf0f4;border-color:#efd8e2;color:#b68096}.ws-visit-status.is-completed{background:#edf2fc;border-color:#dae3f2;color:#7790b4}.ws-chat-booking .ws-visit-person{margin:4px 0 10px;color:#a28aaf;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.ws-visit-when{display:flex;align-items:center;gap:11px;margin:10px 0 13px;padding:10px 12px;border:1px solid #eee3f4;border-radius:15px;background:#ffffffb3}.ws-visit-date{display:flex;flex-direction:column;align-items:center;justify-content:center;width:auto;min-width:3.4em;min-height:43px;flex:0 0 auto;border-right:1px solid #eadef2;padding-right:11px;white-space:nowrap;word-break:normal;overflow-wrap:normal;color:#9761b6}.ws-visit-date strong{font-size:21px;line-height:1.05;font-weight:650}.ws-visit-date small{font-size:10px;line-height:1.5;white-space:nowrap;word-break:normal;overflow-wrap:normal}.ws-visit-time{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}.ws-visit-weekday{font-size:10px;color:#aa94b4}.ws-visit-time strong{font-size:17px;line-height:1.3;color:#76508c;font-weight:600}.ws-visit-extras{display:flex;flex-direction:column;gap:4px;align-items:flex-end;font-size:10px;color:#a38bb1}.ws-chat-booking .ws-visit-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:0}.ws-chat-booking .ws-visit-actions button{flex:1 1 auto;min-width:0;min-height:36px;padding:8px 10px;border-radius:12px;font-size:11px;line-height:1.3}.ws-visit-call{display:grid;place-items:center;flex:0 0 36px;width:36px;min-height:36px;border:1px solid #eadff1;border-radius:12px;background:#faf6fe;color:#a17bb8;text-decoration:none}.ws-visit-call svg{width:17px;height:17px}.ws-visit-call:focus-visible{outline:2px solid #ae86c6;outline-offset:2px}.ws-booking-event{padding:8px 12px!important}.ws-event-status{display:block;font-size:10px;color:#a18bb0;line-height:1.45}.ws-event-detail{display:block;margin-top:2px;color:#b4a1c0;font-size:9px;line-height:1.4}
/* The recorder replaces composer content while preserving pointer geometry. */
.vr-panel[hidden],.vr-lock-guide[hidden]{display:none!important}.ws-chat-compose .dm-mic{touch-action:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}.ws-chat-compose.vr-active>textarea,.ws-chat-compose.vr-active .dm-toolbar,.ws-chat-compose.vr-active>button[type=submit]{visibility:hidden}.ws-chat-compose.vr-active .dm-mic{background:#f9e8f0;color:#b16e94;border:1px solid #efd2e2;box-shadow:0 0 0 4px #f7eaf780;border-radius:50%;transform:scale(1.06)}.ws-chat-compose.vr-locked .dm-mic{visibility:hidden}.vr-panel{position:absolute;left:9px;right:94px;top:6px;bottom:6px;display:flex;align-items:center;gap:8px;min-width:0;z-index:3}.vr-locked .vr-panel{right:9px}.vr-dot{flex:none;width:6px;height:6px;background:#c686a6;border-radius:50%;animation:vr-breathe 1.1s ease-in-out infinite}.vr-timer{flex:1;min-width:40px;white-space:nowrap;font:500 12px/1.4 system-ui;color:#9b6e96;font-variant-numeric:tabular-nums}.vr-slide-hint{font-size:10px;white-space:nowrap;color:#b298bd}.vr-lock-guide{position:absolute;right:50px;bottom:calc(100% + 8px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:36px;min-height:57px;border:1px solid #e4d7ee;border-radius:18px;background:linear-gradient(140deg,#fff,#f0e5fa);box-shadow:0 4px 18px #78518d1c;color:#a386b6;font-size:15px;pointer-events:none;z-index:4}.vr-lock-guide svg{width:17px;height:17px}.ws-chat-compose .vr-control{display:grid;place-items:center;flex:0 0 34px;width:34px;height:36px;min-height:36px;border:1px solid #eadff0;border-radius:12px;padding:0;background:#faf5fd;color:#a184b2}.ws-chat-compose .vr-control svg{width:17px;height:17px}.ws-chat-compose .vr-send{background:linear-gradient(135deg,#b382dc,#9363c5);color:#fff;border-color:transparent}.ws-chat-compose .vr-preview{flex:1;min-width:0;width:0;height:32px;max-width:100%}.vr-control:focus-visible{outline:2px solid #bb93d3;outline-offset:2px}@keyframes vr-breathe{50%{opacity:.4}}@media(prefers-reduced-motion:reduce){.vr-dot{animation:none}.ws-chat-compose.vr-active .dm-mic{transform:none}}@media(max-width:360px){.ws-visit-status{font-size:9px}.ws-visit-head{gap:7px}.ws-chat-booking .ws-visit-service{font-size:14px}.vr-panel{gap:5px}.vr-slide-hint{font-size:9px}.ws-chat-compose .vr-control{width:32px;flex-basis:32px}}

.ws-visit-head .ws-visit-call{flex-basis:30px;width:30px;min-height:30px;border-radius:10px;margin-top:-2px}.ws-visit-head .ws-visit-call svg{width:15px;height:15px}

/* Recovery stays in one dialog; technical details remain collapsed. */
.dm-mic-diagnostics{margin-top:12px;padding-top:10px;border-top:1px solid #eee5f4;color:#9986a5;font-size:11px}.dm-mic-diagnostics summary{cursor:pointer}.dm-mic-diagnostics pre{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.6 system-ui;color:#9986a5}

.dm-dialog .dm-actions{flex-wrap:wrap}.dm-dialog .dm-actions .dm-button{flex:1 1 130px;overflow-wrap:normal;word-break:normal}
/* Voice messages show transport controls immediately; playback stays private. */
.dm-voice-player{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;width:240px;max-width:100%;min-height:48px;color:inherit}.dm-voice-play{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;border:0;border-radius:50%;padding:10px;background:#ffffffad;color:#8760b3;cursor:pointer}.dm-voice-play svg{width:24px;height:24px}.dm-voice-play:disabled{opacity:.6}.mine .dm-voice-play{background:#ffffffe6;color:#8050c5}.dm-voice-copy{flex:1;min-width:0}.dm-voice-rail{position:relative;height:28px;min-width:0}.dm-voice-wave{display:flex;align-items:center;justify-content:space-between;gap:2px;height:28px;width:100%}.dm-voice-wave i{display:block;flex:1;min-width:1px;max-width:4px;background:currentColor;border-radius:4px;opacity:.32}.dm-voice-wave i.is-played{opacity:.95}.dm-voice-player .dm-voice-seek{position:absolute;inset:0;width:100%;height:28px;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer;touch-action:pan-y}.dm-voice-duration{display:block;margin-top:2px;font-size:11px;line-height:1.35;opacity:.8;font-variant-numeric:tabular-nums;white-space:nowrap}.dm-voice-audio{display:none!important}.dm-voice-note{flex-basis:100%;font-size:10px;line-height:1.4;opacity:.8}.dm-voice-note[hidden],.dm-update-max[hidden]{display:none!important}.dm-voice-play:focus-visible,.dm-voice-rail:focus-within{outline:2px solid currentColor;outline-offset:3px;border-radius:20px}.dm-update-max{font-size:12px;line-height:1.45;color:#9882a6;margin:8px 0}
