.chat-dock{background:#fff;border:1px solid #ded5eb;border-radius:12px;overflow:hidden;box-shadow:0 3px 14px #34214d06;min-width:0}
.chat-dock-heading{display:flex;align-items:center;padding:8px 8px 0;gap:2px}.chat-toggle{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:0;background:none;text-align:left;font-family:inherit;font-size:14px;font-weight:600;color:#40334d;padding:9px 5px;cursor:pointer}.chat-toggle>span{flex:1}.chat-toggle>svg{flex-shrink:0}.chat-sound{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border:0;background:#f1ecf8;color:#7756a1;border-radius:8px;cursor:pointer}.chat-sound[aria-pressed=false]{background:#f3f3f5;color:#8b8393}.chat-toggle:focus-visible,.chat-sound:focus-visible{outline:2px solid #906acf;outline-offset:-2px}.chat-unread{font-size:11px;line-height:20px;min-width:20px;text-align:center;background:#7950be;color:white;border-radius:10px;padding:0 5px}.chat-dock-description{margin:0;padding:0 14px 13px;font-size:11px;color:#817589}.chat-open .chat-dock-description{border-bottom:1px solid #ebe5f2}.chat-body{display:flex;flex-direction:column;height:640px;height:min(740px,calc(100dvh - 120px));max-height:none;min-height:360px;position:relative}.chat-history{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:100px;padding:10px;background:#faf8fd;scrollbar-width:thin}.chat-empty{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;font-size:12px;color:#918499;padding:28px 9px;margin:0}.chat-empty b{color:#635172}.chat-date{text-align:center;font-size:10px;color:#92839e;margin:13px 0 10px}.chat-message{width:fit-content;max-width:95%;background:white;border:1px solid #e8e0ef;border-radius:10px 10px 10px 2px;padding:9px 10px;margin:7px 0;overflow-wrap:anywhere}.chat-message>b{font-size:11px;color:#806194;display:block}.chat-message p{white-space:pre-wrap;font-size:13px;line-height:1.5;color:#3d3446;margin:5px 0}.chat-message time{display:block;text-align:right;font-size:9px;color:#9c8daa;margin-top:5px}.chat-own{margin-left:auto;background:#f0e8fc;border-color:#e1d0f5;border-radius:10px 10px 2px 10px}.chat-own>b{color:#7751a8}.chat-older{display:block;margin:2px auto 10px;border:0;background:none;color:#7955a5;font-size:11px;cursor:pointer;padding:6px}.chat-older:disabled{opacity:.5}.chat-compose{padding:10px;border-top:1px solid #e8e0ef;background:white}.chat-compose textarea{display:block;resize:vertical;width:100%;min-height:63px;max-height:130px;background:#fcfbfe;border:1px solid #e2d9eb;border-radius:8px;padding:9px;font-family:inherit;font-size:12px;line-height:1.5;color:#463952;box-sizing:border-box}.chat-compose textarea:focus{outline:2px solid #bea3e4;outline-offset:-1px}.chat-compose-footer{display:flex;gap:7px;align-items:center;justify-content:space-between;margin-top:8px}.chat-compose-footer>small{flex:1;color:#aaa0b4;font-size:8px;line-height:1.5}.chat-send{display:flex;align-items:center;justify-content:center;gap:5px;background:#7a51ba;border:0;border-radius:7px;color:white;font-size:11px;font-weight:600;min-height:33px;padding:7px 9px;cursor:pointer}.chat-send:disabled{opacity:.45;cursor:default}.chat-attach{display:grid;place-items:center;width:30px;height:32px;color:#7955a5;border:1px solid #e6deee;border-radius:7px;background:white;cursor:pointer}.chat-attach:disabled{opacity:.4;cursor:default}.chat-limit{font-size:9px;color:#998aa5;margin:8px 0 0}.chat-error{display:flex;align-items:center;gap:6px;font-size:11px;line-height:1.4;padding:9px 11px;background:#fff0ef;color:#a6504a;border-bottom:1px solid #f1d5d2}.chat-error>span{flex:1}.chat-error button{display:grid;place-items:center;border:0;background:none;color:inherit;cursor:pointer}.chat-sound-note{padding:7px 11px;margin:0;font-size:10px;color:#907d9f;background:#faf5ff}.chat-jump{align-self:center;background:#7a51ba;color:white;border:0;border-radius:12px;font-size:10px;display:flex;gap:3px;align-items:center;padding:5px 8px;margin:4px;cursor:pointer}.chat-file{border:1px solid #dacfec;border-radius:8px;overflow:hidden;background:#ffffff80;margin-top:7px}.chat-file img{display:block;width:100%;max-height:230px;object-fit:contain;background:#f5f2f8}.chat-file-download{display:flex;align-items:center;gap:7px;padding:9px;text-decoration:none;color:#6e4b98;min-width:0}.chat-file-download>svg{flex-shrink:0}.chat-file-download>span{min-width:0}.chat-file-download b{display:block;overflow-wrap:anywhere;font-size:11px;font-weight:600}.chat-file-download small{display:block;color:#9687a3;font-size:9px;margin-top:3px}.chat-file-input{display:none}.chat-upload-list{display:grid;gap:5px;margin-bottom:8px;max-height:125px;overflow:auto}.chat-upload{display:flex;align-items:center;gap:3px;background:#f5f0fc;border:1px solid #e7dcf3;border-radius:7px;padding:6px}.chat-upload>div{flex:1;min-width:0}.chat-upload b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#6d547e}.chat-upload small{display:block;font-size:9px;color:#9987a8;overflow-wrap:anywhere}.chat-upload.failed{background:#fff2f0;border-color:#f2d5d1}.chat-upload.failed small{color:#a75c54}.chat-upload button{border:0;background:none;color:#8e75a2;width:25px;height:25px;display:grid;place-items:center;cursor:pointer}.chat-upload button:disabled{opacity:.4}
@media(max-width:1100px){.chat-body{height:560px;height:min(620px,70dvh);min-height:360px;max-height:none}}
@media(max-width:760px){.chat-body{height:520px;height:min(560px,70dvh);min-height:340px;max-height:none}.chat-compose-footer>small{font-size:10px}.chat-send{font-size:12px;padding:8px 12px}.chat-dock-description{font-size:12px}}
.chat-message{position:relative}.chat-deleted{font-style:italic;color:#a696b2!important;font-size:11px!important}.chat-delete-message{display:flex;align-items:center;gap:4px;margin-top:6px;margin-left:auto;padding:2px 0;background:none;border:0;color:#ad7a94;font-size:9px;cursor:pointer}.chat-delete-message:hover{color:#c24659}.chat-delete-message:disabled,.chat-delete-file:disabled{opacity:.4;cursor:default}.chat-file{position:relative}.chat-file-download{padding-right:31px}.chat-delete-file{position:absolute;bottom:7px;right:5px;display:grid;place-items:center;width:23px;height:23px;border:0;background:transparent;border-radius:5px;color:#aa7a93;cursor:pointer}.chat-delete-file:hover{background:#f8e6ed;color:#c64f67}
.dl-call-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:10px 12px;border-top:1px solid var(--ui-line,#ddd)}.dl-call-toolbar select{flex:1;min-width:140px}.dl-call-toolbar button,.dl-call-toolbar select,.dl-call-actions button{font:inherit;font-size:12px;border:1px solid var(--ui-line,#ccc);border-radius:7px;padding:8px;background:var(--ui-hover,#f4eef8);color:var(--ui-text,#342843)}.dl-call-toolbar button:disabled{opacity:.5}
.dl-call-window{position:fixed;right:24px;bottom:32px;z-index:160;max-width:calc(100vw - 32px);width:420px;max-height:calc(100vh - 48px);overflow:auto;background:var(--ui-panel,#fff);color:var(--ui-text,#333);padding:16px;border:1px solid var(--ui-line,#ccc);border-radius:14px;box-shadow:0 10px 40px #0005}.dl-call-window header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.dl-call-window video{background:#17212a;border-radius:8px;width:100%;max-height:260px;object-fit:contain}.dl-call-window .dl-local-video{width:110px;max-height:90px;display:block;margin-left:auto;margin-top:7px}.dl-call-window audio{width:100%}.dl-call-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.dl-call-actions .dl-call-end{background:#b63246;color:#fff;border-color:#b63246}.dl-calls>.chat-error{padding:7px 12px}
@media(max-width:600px){.dl-call-window{right:12px;bottom:16px;width:calc(100vw - 24px)}.dl-call-toolbar button{flex:1}}
.dl-call-drag-handle{cursor:grab;touch-action:none;user-select:none;padding:7px 0 12px;border-bottom:1px solid var(--ui-line,#ddd)}.dl-call-drag-handle:active{cursor:grabbing}.dl-call-sound-toggle{margin:6px 12px;padding:5px 8px;font:inherit;font-size:11px;border:1px solid var(--ui-line,#ccc);border-radius:6px;background:var(--ui-hover,#f4eef8);color:var(--ui-text,#333)}.dl-mask-note{font-size:11px;color:var(--ui-muted,#76637f)}.dl-call-actions button[aria-pressed=true]{background:var(--ui-accent,#9764c7);color:#fff}
.dl-call-window.dl-mask-on .dl-local-video{width:160px;max-height:140px}
.dl-call-stage{position:relative;min-height:180px;background:#17212a;border-radius:9px;overflow:hidden;margin-top:8px}.dl-call-window .dl-main-video{display:block;width:100%;height:280px;max-height:none;object-fit:contain}.dl-main-label{position:absolute;left:10px;top:10px;background:#17212acc;color:#fff;border-radius:5px;padding:4px 8px;font-size:12px}.dl-call-preview{position:absolute;right:10px;bottom:10px;width:112px;padding:0;border:2px solid #ffffffa8;border-radius:8px;background:#17212a;color:#fff;overflow:hidden;cursor:pointer}.dl-call-window .dl-preview-video{display:block;width:100%;height:84px;max-height:none;border-radius:0;object-fit:contain}.dl-call-preview span{display:block;padding:3px;font-size:11px}.dl-call-preview:focus-visible{outline:3px solid #b994ff;outline-offset:2px}.dl-call-window .dl-call-audio{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.dl-call-expand,.dl-view-switch,.dl-mask-choice select{font:inherit;font-size:12px;padding:7px;border:1px solid var(--ui-line,#ccc);border-radius:7px;background:var(--ui-hover,#f4eef8);color:var(--ui-text,#333);cursor:pointer}.dl-view-switch{margin-top:8px}.dl-mask-choice{display:flex;align-items:center;gap:6px;width:100%;font-size:12px}.dl-mask-choice select{flex:1;min-width:0}.dl-call-window.dl-call-expanded{inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;border-radius:0;z-index:10000;display:flex;flex-direction:column;padding:14px;overflow:auto}.dl-call-expanded .dl-call-stage{flex:1;min-height:150px}.dl-call-expanded .dl-main-video{position:absolute;inset:0;height:100%;width:100%;max-height:none}.dl-call-expanded .dl-call-preview{width:clamp(110px,20vw,240px)}.dl-call-expanded .dl-preview-video{height:clamp(84px,15vw,180px)}.dl-call-expanded .dl-call-drag-handle{cursor:default;flex-shrink:0}.dl-call-expanded .dl-call-actions,.dl-call-expanded .dl-mask-note,.dl-call-expanded .dl-view-switch{flex-shrink:0}.dl-call-expand{margin-left:auto}.dl-call-actions button:disabled,.dl-view-switch:disabled{opacity:.5;cursor:default}

.dl-remote-viewer{position:relative;min-height:220px;background:#111b24;border:2px solid transparent;border-radius:10px;margin:8px 0;outline:none;overflow:hidden}.dl-remote-viewer.dl-remote-controlling{border-color:#be69e2;cursor:crosshair;touch-action:none}.dl-call-window .dl-desktop-video{display:block;width:100%;height:290px;max-height:none;object-fit:contain;border-radius:0}.dl-remote-view-state{display:block;padding:8px;color:#fff;font-size:11px;background:#162536}.dl-remote-owner-note{padding:14px;border-radius:9px;background:var(--ui-hover,#f4eef8);font-size:13px;line-height:1.65}.dl-call-expanded .dl-remote-viewer{flex:1;min-height:220px;display:flex;flex-direction:column}.dl-call-expanded .dl-desktop-video{flex:1;min-height:0;height:100%;width:100%}.dl-remote-viewer:focus-visible{border-color:#d99cf5}

.dl-remote-connect{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-basis:100%}.dl-remote-connect input{min-width:160px;max-width:220px;padding:9px 12px;border:1px solid var(--ui-line,#e4deeb);border-radius:9px;background:var(--ui-panel,#fff);color:inherit}.dl-remote-connect small{opacity:.8;font-size:12px}

.dl-remote-settings-backdrop{position:fixed;inset:0;z-index:5000;background:rgba(10,15,25,.65);display:flex;align-items:center;justify-content:center;padding:24px}.dl-remote-settings{width:min(680px,100%);max-height:90vh;overflow:auto;border-radius:16px;padding:24px;background:var(--ui-panel,#fff);color:var(--ui-text,#30283b);box-shadow:0 20px 70px #0006}.dl-remote-settings header{display:flex;align-items:center;justify-content:space-between;gap:16px}.dl-remote-settings h2{margin:0}.dl-remote-settings form{display:grid;gap:12px;margin-top:16px}.dl-remote-settings label{display:grid;gap:6px}.dl-remote-settings input,.dl-remote-settings select{padding:10px;border-radius:8px;border:1px solid #8290a166;background:var(--ui-panel,#fff);color:inherit;width:100%}.dl-remote-settings .dl-remote-settings-enabled{display:flex;align-items:center;gap:10px}.dl-remote-settings input[type=checkbox]{width:auto}.dl-remote-settings small{opacity:.8}.dl-remote-settings button{padding:9px 14px;border-radius:8px}.dl-remote-settings [role=alert]{color:#ff8f8f}

.dl-remote-connect input{color:var(--ui-text,#30283b)}.dl-remote-connect input::placeholder{color:var(--ui-muted,#706079);opacity:1}.dl-remote-settings input::placeholder{color:var(--ui-muted,#706079);opacity:1}
