.client-screen.client-screen--chat{padding:0;overflow:hidden}.client-pwa-shell.client-pwa-shell--chat{--client-chat-canvas:color-mix(in srgb, var(--client-screen-bg) 94%, var(--client-accent));background-color:var(--client-chat-canvas);background-image:var(--chat-workspace-background,none);background-position:50%;background-size:cover}.client-phone.client-phone--chat{background:0 0}client-chat-conversation{height:100%;min-height:0;display:block}.client-chat{--chat-shell:var(--surface-raised);--chat-canvas:var(--client-chat-canvas);--chat-bubble-staff:var(--surface-raised);--chat-bubble-mine:var(--client-accent-soft);--chat-control:var(--client-chip-bg);--chat-text:var(--client-text);--chat-muted:var(--client-muted);height:100%;min-height:0;color:var(--chat-text);background:0 0;grid-template-rows:auto minmax(0,1fr) auto;padding-bottom:0;display:grid}.client-chat__visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.client-chat__header{z-index:4;min-height:calc(68px + env(safe-area-inset-top));padding:max(10px, env(safe-area-inset-top)) 10px 10px 6px;color:var(--chat-text);background:var(--chat-shell);grid-template-columns:42px 42px minmax(0,1fr) 42px 42px;align-items:center;gap:7px;display:grid;position:relative}.client-chat__header [hidden]{display:none}.client-chat__search{grid-column:1/-1;grid-template-columns:minmax(0,1fr) 38px 38px 42px;align-items:center;gap:3px;width:100%;display:grid}.client-chat__search-field{border-radius:var(--radius-pill);background:var(--chat-control);grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;min-height:42px;padding:0 11px;display:grid}.client-chat__search-field>svg{color:var(--chat-muted)}.client-chat__search-field input{min-width:0;color:var(--chat-text);font:inherit;background:0 0;border:0;outline:0;padding:0;font-size:.9rem}.client-chat__search-field input::placeholder,.client-chat__search-field [data-client-chat-search-count]{color:var(--chat-muted)}.client-chat__search-field [data-client-chat-search-count]{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.7rem}.client-chat__search-nav{width:38px;height:38px}.client-chat__search-nav:disabled{opacity:.38;cursor:default}.client-chat__icon,.client-chat__round-action,.client-chat__input-action{color:inherit;background:0 0;border:0;place-items:center;padding:0;display:grid}.client-chat__icon{cursor:pointer;border-radius:50%;width:42px;height:42px}.client-chat__icon[aria-disabled=true],.client-chat__round-action[aria-disabled=true],.client-chat__input-action[aria-disabled=true]{cursor:default}.client-chat__icon:not([aria-disabled=true]):hover,.client-chat__icon:not([aria-disabled=true]):focus-visible{background:var(--chat-control)}.client-chat__header svg,.client-chat__composer svg,.client-chat-message footer svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.client-chat__avatar{width:42px;height:42px;color:var(--client-on-accent);background:var(--client-accent);border-radius:50%;place-items:center;display:grid;overflow:hidden}.client-chat__avatar img{object-fit:cover;width:100%;height:100%}.client-chat__identity{gap:1px;min-width:0;display:grid}.client-chat__identity strong,.client-chat__identity small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.client-chat__identity strong{font-family:var(--font-client-heading);font-size:1.02rem;font-weight:760;line-height:1.2}.client-chat__identity small{color:var(--chat-muted);font-size:.72rem;line-height:1.25}.client-chat__identity small:empty{display:none}.client-chat__history{overscroll-behavior-y:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;background:0 0;min-height:0;position:relative;overflow-y:auto}.client-chat__history::-webkit-scrollbar{display:none}.client-chat__messages{min-height:100%;padding:12px max(9px, env(safe-area-inset-right)) 14px max(9px, env(safe-area-inset-left));flex-direction:column;gap:5px;display:flex;position:relative}.client-chat__day{justify-content:center;margin:1px 0 6px;display:flex}.client-chat__day span{border-radius:var(--radius-pill);color:var(--chat-muted);background:var(--chat-control);box-shadow:var(--shadow-card);padding:5px 9px;font-size:.67rem;font-weight:720}.client-chat-message{touch-action:pan-y;align-items:flex-end;gap:5px;width:100%;display:flex;position:relative}.client-chat-message+.client-chat-message{margin-top:4px}.client-chat__queued-sends{display:contents}.client-chat-message.is-mine{justify-content:flex-end}.client-chat-message__avatar{width:27px;height:27px;color:var(--client-on-accent);background:var(--client-accent);border-radius:50%;flex:none;place-items:center;font-size:.62rem;font-weight:850;display:grid}.client-chat-message__bubble{max-width:min(82%,520px);color:var(--chat-text);background:var(--chat-bubble-staff);box-shadow:var(--shadow-card);translate:var(--client-chat-reply-offset,0) 0;border-radius:8px 8px 8px 2px;padding:7px 8px 6px;transition:translate .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s;position:relative}.client-chat-message__avatar{translate:var(--client-chat-reply-offset,0) 0;transition:translate .18s cubic-bezier(.2,.8,.2,1)}.client-chat-message.is-reply-swiping :is(.client-chat-message__bubble,.client-chat-message__avatar){transition:none}.client-chat-message__reply-action{z-index:0;top:50%;left:var(--client-chat-reply-left,4px);width:34px;height:34px;color:var(--chat-muted);background:var(--chat-control);box-shadow:var(--shadow-card);opacity:0;pointer-events:none;border:0;border-radius:50%;place-items:center;padding:0;transition:opacity .14s,scale .18s cubic-bezier(.2,.8,.2,1);display:grid;position:absolute;translate:0 -50%;scale:.78}.client-chat-message__reply-action svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9px;width:17px;height:17px}.client-chat-message:is(:hover,:focus-within,.is-reply-swiping) .client-chat-message__reply-action{opacity:1;pointer-events:auto;scale:1}.client-chat-message.is-reply-ready .client-chat-message__reply-action{color:var(--client-on-accent);background:var(--client-accent)}.client-chat-message__bubble:before{border-style:solid;border-width:0 8px 9px 0;border-color:transparent var(--chat-bubble-staff) transparent transparent;content:"";width:0;height:0;position:absolute;top:0;left:-7px}.client-chat-message.is-mine .client-chat-message__bubble{background:var(--chat-bubble-mine);border-radius:8px 8px 2px}.client-chat-message.is-mine .client-chat-message__bubble:before{border-width:0 0 9px 8px;border-color:transparent transparent transparent var(--chat-bubble-mine);left:auto;right:-7px}.client-chat-message.is-failed .client-chat-message__bubble{background:var(--client-state-danger-bg)}.client-chat-message__bubble>strong{color:var(--client-accent-strong);margin-bottom:2px;font-size:.73rem;font-weight:780;display:block}.client-chat-message__reply-quote{border-inline-start:2px solid var(--client-accent);background:color-mix(in srgb, var(--chat-control) 82%, transparent);border-radius:5px;gap:1px;min-width:min(56vw,180px);margin:-2px -2px 5px;padding:6px 8px;display:grid;overflow:hidden}.client-chat-message__reply-quote strong,.client-chat-message__reply-quote span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.client-chat-message__reply-quote strong{color:var(--client-accent-strong);font-size:.69rem;font-weight:780}.client-chat-message__reply-quote span{color:var(--chat-muted);font-size:.71rem}.client-chat-message__body{overflow-wrap:anywhere;font-size:.89rem;line-height:1.37;display:inline}.client-chat-search-mark{color:inherit;background:color-mix(in srgb, var(--client-accent) 32%, transparent);padding:0}.client-chat-message.is-search-current .client-chat-search-mark{background:color-mix(in srgb, var(--client-accent) 62%, var(--chat-shell))}.client-chat-message.is-search-current .client-chat-message__bubble{box-shadow:0 0 0 2px var(--client-accent), var(--shadow-card)}.client-chat-message__body:after{content:"";width:56px;height:1px;display:inline-block}.client-chat-message__body :is(.rt-doc,.rt-p){margin:0;display:inline}.client-chat-message__attachments{gap:5px;margin:-3px -4px 5px;display:grid}.client-chat-message__media{background:var(--chat-control);border:0;border-radius:7px;width:min(68vw,360px);max-width:100%;padding:0;display:block;overflow:hidden}button.client-chat-message__media{cursor:pointer}.client-chat-message__media img,.client-chat-message__media video{object-fit:cover;width:100%;max-height:min(58vh,430px);display:block}.client-chat-message__media--image img[data-client-chat-attachment-placeholder=true],.client-chat-message__media--video video:not([src]){min-height:140px}.client-chat-message__media.is-unavailable{min-height:92px}.client-chat-message__media.is-local-upload{position:relative}.client-chat-message__upload-progress{min-width:42px;min-height:42px;color:var(--chat-text);background:color-mix(in srgb, var(--chat-shell) 86%, transparent);border-radius:50%;place-items:center;padding:5px;font-size:.68rem;font-weight:760;display:grid;position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%)}.client-chat-message__document{width:min(68vw,340px);max-width:100%;min-height:54px;color:inherit;background:var(--chat-control);text-align:left;cursor:pointer;border:0;border-radius:7px;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:8px;padding:7px 9px;display:grid}.client-chat-message__document.is-local-upload{cursor:default}.client-chat-message__document>span:first-child{background:var(--chat-shell);border-radius:7px;place-items:center;width:38px;height:38px;display:grid}.client-chat-message__document svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:21px;height:21px}.client-chat-message__document>span:last-child{gap:2px;min-width:0;display:grid}.client-chat-message__document strong,.client-chat-message__document small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.client-chat-message__document strong{font-size:.78rem}.client-chat-message__document small{color:var(--chat-muted);font-size:.65rem}.client-chat-message__bubble footer{color:var(--chat-muted);align-items:center;gap:3px;font-size:.59rem;line-height:1;display:inline-flex;position:absolute;bottom:5px;right:7px}.client-chat-message__bubble footer svg{width:15px;height:15px;color:var(--client-accent-gradient-end)}.client-chat-message__queued-actions{justify-content:flex-end;gap:5px;margin:7px 0 16px;display:flex}.client-chat-message__queued-actions button{border-radius:var(--radius-pill);min-height:30px;color:var(--chat-text);background:var(--chat-shell);font:inherit;border:0;padding:4px 9px;font-size:.68rem;font-weight:720}.client-chat-message__queued-actions button:hover,.client-chat-message__queued-actions button:focus-visible{background:var(--chat-control)}.client-chat__composer{z-index:4;padding:7px max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left));background:var(--chat-shell);grid-template-columns:42px 42px minmax(0,1fr);align-items:end;gap:6px 2px;display:grid;position:relative}.client-chat-camera{z-index:40;color:var(--surface-raised);background:var(--chat-text);position:fixed;inset:0}.client-chat-camera[hidden]{display:none}.client-chat-camera__stage{background:var(--chat-text);grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100dvh;display:grid;position:relative;overflow:hidden}.client-chat-camera__preview{z-index:0;object-fit:cover;background:var(--chat-text);width:100%;height:100%;position:absolute;inset:0}.client-chat-camera__header,.client-chat-camera__controls,.client-chat-camera__zoom,.client-chat-camera__error,.client-chat-camera__loading{z-index:1;position:relative}.client-chat-camera__header{min-height:calc(64px + env(safe-area-inset-top));padding:max(10px, env(safe-area-inset-top)) 12px 8px;background:linear-gradient(to bottom, color-mix(in srgb, var(--chat-text) 76%, transparent), transparent);grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;display:grid}.client-chat-camera__header button,.client-chat-camera__switch,.client-chat-camera__review-actions button{border-radius:var(--radius-pill);min-width:44px;min-height:44px;color:var(--surface-raised);background:color-mix(in srgb, var(--chat-text) 62%, transparent);font:inherit;border:0;place-items:center;padding:0;display:inline-grid}.client-chat-camera__header output{font-variant-numeric:tabular-nums;grid-column:2;justify-self:center;font-weight:760}.client-chat-camera__header svg,.client-chat-camera__switch svg,.client-chat-camera__review-actions svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.client-chat-camera__zoom{border-radius:var(--radius-pill);background:color-mix(in srgb, var(--chat-text) 62%, transparent);place-self:end center;gap:5px;margin-bottom:108px;padding:4px;display:flex}.client-chat-camera__zoom button{border-radius:var(--radius-pill);min-width:42px;min-height:34px;color:var(--surface-raised);font:inherit;background:0 0;border:0;padding:0 9px;font-size:.78rem;font-weight:760}.client-chat-camera__zoom button[aria-pressed=true]{color:var(--chat-text);background:var(--surface-raised)}.client-chat-camera__controls{min-height:calc(112px + env(safe-area-inset-bottom));padding:12px 24px max(18px, env(safe-area-inset-bottom));background:linear-gradient(to top, color-mix(in srgb, var(--chat-text) 82%, transparent), transparent);grid-row:3;grid-template-columns:1fr auto 1fr;align-items:center;display:grid}.client-chat-camera__shutter{border:2px solid var(--surface-raised);touch-action:none;background:0 0;border-radius:50%;grid-column:2;place-items:center;width:72px;height:72px;padding:5px;display:grid}.client-chat-camera__shutter span{background:var(--surface-raised);border-radius:50%;width:100%;height:100%;transition:border-radius .16s ease-out,transform .16s ease-out,background .16s ease-out}.client-chat-camera__shutter:is(.is-pressed,.is-recording) span{background:var(--brand-danger);border-radius:9px;transform:scale(.58)}.client-chat-camera__switch{grid-column:3;justify-self:end}.client-chat-camera__review-actions{grid-column:1/-1;justify-content:center;gap:12px;display:flex}.client-chat-camera__review-actions button{grid-auto-flow:column;gap:7px;min-width:118px;padding:0 16px;font-weight:760}.client-chat-camera__review-actions button.is-primary{color:var(--client-on-accent);background:var(--client-accent)}.client-chat-camera__error,.client-chat-camera__retry,.client-chat-camera__loading{place-self:center}.client-chat-camera__error{text-align:center;width:min(82%,28rem);margin:0}.client-chat-camera__retry{border-radius:var(--radius-pill);min-height:44px;color:var(--client-on-accent);background:var(--client-accent);font:inherit;border:0;grid-column:2;padding:0 18px;font-weight:760}.client-chat-camera__loading{grid-column:2;gap:6px;display:flex}.client-chat-camera__loading span{background:var(--surface-raised);border-radius:50%;width:7px;height:7px;animation:.9s ease-in-out infinite alternate client-chat-loading}.client-chat-camera__loading span:nth-child(2){animation-delay:.15s}.client-chat-camera__loading span:nth-child(3){animation-delay:.3s}.client-chat-camera__header button:focus-visible,.client-chat-camera__switch:focus-visible,.client-chat-camera__shutter:focus-visible,.client-chat-camera__zoom button:focus-visible,.client-chat-camera__review-actions button:focus-visible,.client-chat-camera__retry:focus-visible{outline:3px solid rgb(var(--client-accent-rgb) / .72);outline-offset:3px}.client-chat__attachment-tray{scrollbar-width:none;scroll-snap-type:x proximity;grid-column:1/-1;gap:7px;padding:1px 1px 4px;display:flex;overflow-x:auto}.client-chat__attachment-tray[hidden]{display:none}.client-chat__reply-preview{border-inline-start:2px solid var(--client-accent);background:var(--chat-control);border-radius:9px;grid-column:1/-1;grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:6px;min-height:49px;padding:5px 5px 5px 11px;display:grid}.client-chat__reply-preview[hidden]{display:none}.client-chat__reply-copy{gap:2px;min-width:0;display:grid}.client-chat__reply-copy strong,.client-chat__reply-copy span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.client-chat__reply-copy strong{color:var(--client-accent-strong);font-size:.72rem;font-weight:780}.client-chat__reply-copy span{color:var(--chat-muted);font-size:.75rem}.client-chat__reply-close{width:36px;height:36px;color:var(--chat-muted);background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:grid}.client-chat__reply-close:hover,.client-chat__reply-close:focus-visible{color:var(--chat-text);background:var(--chat-shell)}.client-chat__attachment-tray::-webkit-scrollbar{display:none}.client-chat__attachment-tray[data-notice]:after{border-radius:var(--radius-pill);color:var(--brand-danger);background:var(--client-state-danger-bg);content:attr(data-notice);flex:none;align-self:center;padding:7px 10px;font-size:.72rem;font-weight:700}.client-chat__attachment{background:var(--chat-control);scroll-snap-align:start;border-radius:10px;flex:0 0 clamp(146px,22vw,190px);min-width:0;padding:5px;display:grid;position:relative}.client-chat__attachment.is-active{box-shadow:inset 0 0 0 2px var(--client-accent)}.client-chat__attachment-select{min-width:0;color:inherit;font:inherit;text-align:start;background:0 0;border:0;grid-template-rows:104px auto;gap:5px;padding:0;display:grid}.client-chat__attachment-select.is-static{cursor:default}.client-chat__attachment.is-failed{background:var(--client-state-danger-bg)}.client-chat__attachment-preview,.client-chat__attachment-file{background:var(--chat-shell);border-radius:7px;place-items:center;width:100%;height:104px;display:grid;position:relative;overflow:hidden}.client-chat__attachment-preview :is(img,video){object-fit:contain;width:100%;min-width:0;height:100%;min-height:0;display:block;position:absolute;inset:0}.client-chat__attachment-copy{min-width:0}.client-chat__attachment-copy strong{text-overflow:ellipsis;white-space:nowrap;padding-inline:2px;font-size:.66rem;line-height:1.25;display:block;overflow:hidden}.client-chat__attachment-action{width:28px;height:28px;color:inherit;background:var(--chat-shell);border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:8px;right:8px}.client-chat__attachment-action:hover,.client-chat__attachment-action:focus-visible{background:var(--chat-shell)}.client-chat__attachment-action svg,.client-chat__attachment-file svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:18px;height:18px}.client-chat__file-input{clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.client-chat__round-action{border-radius:50%;width:42px;height:42px}.client-chat__input{background:var(--chat-control);border-radius:22px;grid-template-columns:minmax(0,1fr) 34px;align-items:end;min-height:42px;margin-inline-start:6px;padding:4px 2px;display:grid}.client-chat__input-action{width:34px;height:34px;color:var(--chat-muted)}.client-chat__input textarea{resize:none;width:100%;min-height:34px;max-height:104px;color:var(--chat-text);font:inherit;background:0 0;border:0;outline:0;padding:7px 4px 5px;font-size:.9rem;line-height:1.35}.client-chat__input textarea::placeholder{color:var(--chat-muted)}.client-chat__input textarea:disabled{opacity:.58}.client-chat__icon:focus-visible,.client-chat__round-action:focus-visible,.client-chat__input-action:focus-visible,.client-chat__search-field:focus-within,.client-chat__attachment-action:focus-visible,.client-chat__attachment-select:focus-visible,.client-chat__reply-close:focus-visible,.client-chat-message__reply-action:focus-visible,.client-chat-message__media:focus-visible,.client-chat-message__document:focus-visible,.client-chat-message__queued-actions button:focus-visible{outline:3px solid rgb(var(--client-accent-rgb) / .44);outline-offset:2px}.client-chat__state{text-align:center;align-self:center;gap:6px;width:min(100%,28rem);margin:auto;padding:22px;display:grid}.client-chat__state p{color:var(--chat-muted);margin:0}.client-chat__state button{min-height:44px;color:var(--client-on-accent);background:var(--client-accent);font:inherit;border:0;border-radius:12px;margin-top:8px;font-weight:700}.client-chat__loading{align-self:center;gap:5px;margin:auto;display:flex}.client-chat__loading span{background:var(--chat-muted);border-radius:50%;width:7px;height:7px;animation:.9s ease-in-out infinite alternate client-chat-loading}.client-chat__loading span:nth-child(2){animation-delay:.15s}.client-chat__loading span:nth-child(3){animation-delay:.3s}@keyframes client-chat-loading{to{transform:translateY(-4px)}}@media (width<=767px){.client-phone.client-phone--chat.is-chat-keyboard-open,.staff-app[data-screen=chat][data-chat-channel-kind=client][data-chat-navigation-host].is-chat-keyboard-open{height:var(--client-chat-viewport-height,100dvh);transform:translateY(var(--client-chat-viewport-top,0))}.staff-app[data-screen=chat][data-chat-channel-kind=client][data-chat-navigation-host].is-chat-keyboard-open .staff-bottom-nav,.client-phone--chat .client-bottom-nav{display:none}.client-phone--chat.is-chat-navigation-open .client-bottom-nav{flex:none;display:grid;position:static}.client-phone--chat.is-chat-keyboard-open .client-bottom-nav{display:none}}@media (width>=768px){.client-chat{padding-bottom:calc(78px + env(safe-area-inset-bottom))}.client-chat__composer{grid-template-columns:42px minmax(0,1fr)}.client-chat__nav-action{display:none}}@media (width>=1024px){.client-chat{padding-bottom:0}.client-chat__messages{padding-left:24px;padding-right:24px}}@media (prefers-reduced-motion:reduce){.client-chat-message__bubble,.client-chat-message__avatar,.client-chat-message__reply-action{transition:none}.client-chat__loading span{animation:none}}
