body.fd-product :is(#clientView,#adminView) form.chat-composer.we-composer{display:grid;grid-template-columns:40px minmax(0,1fr) 44px;align-items:end;gap:8px;padding:12px;min-height:0}
body.fd-product :is(#clientView,#adminView) form.chat-composer.we-composer textarea{grid-column:2;grid-row:1;width:100%;height:52px;min-height:52px;max-height:104px;margin:0;padding:14px 12px;font:inherit;font-size:16px;line-height:22px;resize:none;overflow-y:hidden;box-sizing:border-box}
body.fd-product :is(#clientView,#adminView) form.chat-composer.we-composer button.we-send{grid-column:3;grid-row:1;width:44px;height:44px;min-height:44px;padding:0;margin-bottom:4px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
body.fd-product :is(#clientView,#adminView) form.chat-composer.we-composer button.we-attach{grid-column:1;grid-row:1;width:40px;height:44px;margin-bottom:4px;border:0;border-radius:12px;background:transparent;color:#6e819f;display:flex;align-items:center;justify-content:center;cursor:pointer}
form.we-composer svg{width:22px;height:22px;display:block;flex-shrink:0}
form.we-composer button:disabled{opacity:.5;cursor:wait}
.we-pending-files,.we-file-error{grid-column:1/-1;min-width:0;margin:0}
.we-pending-files{display:flex;gap:6px;flex-wrap:wrap;max-height:96px;overflow:auto}
.we-pending-files>span{display:flex;align-items:center;gap:8px;max-width:100%;padding:5px 8px;border-radius:10px;background:#eef3ff;color:#31466d;font-size:12px}
.we-pending-files .we-file-name{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.we-pending-files button{background:none;border:0;color:inherit;cursor:pointer;font:inherit;font-size:20px;min-width:28px;min-height:28px}
.we-file-error{font-size:12px;color:#c74258;line-height:1.4}
form.we-composer>.form-feedback{grid-column:1/-1;min-height:0;margin:0}
form.we-composer>.form-feedback:empty{display:none}
.we-message-files{display:grid;gap:8px;min-width:0;max-width:300px}
.chat-message p:empty{display:none}
.we-message-file{display:flex;gap:10px;align-items:center;width:100%;min-width:0;padding:10px;border:1px solid currentColor;border-color:#a5b5d044;border-radius:12px;color:inherit;background:#ffffff24;text-align:left;cursor:pointer;font:inherit}
.we-message-file>span:last-child{min-width:0;display:grid;gap:4px}
.we-message-file strong{font-size:13px;font-weight:600;overflow-wrap:anywhere;line-height:1.35}
.we-message-file small{font-size:11px;opacity:.8}
.we-message-file--image{display:grid;padding:5px}
.we-message-file--image img{display:block;width:100%;max-height:200px;min-height:50px;object-fit:cover;border-radius:8px}
.we-message-file--image>span{padding:4px}
.we-file-type{font-size:10px;font-weight:700;padding:10px 6px;border-radius:8px;background:#ffffff2b;flex:none}
body.fd-product dialog.we-file-viewer{position:fixed;inset:0;margin:auto;padding:0;width:min(1000px,calc(100vw - 24px));height:min(860px,calc(100dvh - 24px));max-width:none;max-height:none;border:1px solid #e3e9f5;border-radius:22px;background:#fff;color:#14213d;font-family:inherit;box-shadow:0 25px 100px #08132a55;overflow:hidden}
body.fd-product dialog.we-file-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
dialog.we-file-viewer::backdrop{background:#10192d99;backdrop-filter:blur(8px)}
.we-file-viewer>header{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #e6ebf5;min-width:0}
.we-file-viewer h2{min-width:0;flex:1;overflow-wrap:anywhere;font-size:16px;margin:0;line-height:1.3;font-family:inherit}
.we-file-download{font-size:13px;color:#4775ff;white-space:nowrap}
.we-viewer-close,.we-pdf-nav button{border:1px solid #dce4f2;background:transparent;color:inherit;border-radius:50%;width:40px;height:40px;flex:none;font-size:24px;cursor:pointer}
.we-file-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;display:flex;flex-direction:column;align-items:center;gap:12px;background:#f5f7fb}
.we-file-content>img,.we-file-content>video{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.we-file-content>audio{width:min(560px,100%);margin:auto}
.we-file-content pre{width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:15px;line-height:1.65;margin:0;color:inherit}
.we-preview-note{width:100%;font-size:12px;color:#6e819f}
.we-pdf-nav{display:flex;align-items:center;justify-content:center;gap:18px;flex-shrink:0}
.we-pdf-nav button:disabled{opacity:.3}
.we-pdf-page{width:100%;display:flex;justify-content:center}
.we-pdf-page canvas{display:block;max-width:100%;background:white;box-shadow:0 1px 8px #18294322}
:root[data-theme="dark"] body.fd-product dialog.we-file-viewer{background:#192438;color:#e6edfa;border-color:#354560}
:root[data-theme="dark"] .we-file-content{background:#101a2a}
:root[data-theme="dark"] .we-file-viewer>header{border-color:#354560}
:root[data-theme="dark"] .we-pending-files>span{background:#233454;color:#d5e3fc}
@media(max-width:540px){.we-file-viewer>header{gap:8px;padding:12px}.we-file-viewer h2{font-size:14px}.we-file-content{padding:10px}.we-file-download{font-size:12px}.we-message-files{max-width:260px}}
