.chatw{position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:95;font-family:var(--font-body,system-ui,sans-serif)}.chatw-fab{position:relative;display:inline-flex;align-items:center;gap:8px;margin-left:auto;padding:12px 16px 12px 14px;border:0;border-radius:999px;background:#0b1f3d;color:#fff;font-weight:700;font-size:.95rem;cursor:pointer;box-shadow:0 12px 28px -10px rgba(0,0,0,.55)}.chatw-fab svg{width:22px;height:22px;fill:#fff}.chatw-dot{position:absolute;top:4px;right:4px;width:12px;height:12px;border-radius:50%;background:#ef4444;border:2px solid #fff}.chatw-panel{position:absolute;right:0;bottom:56px;width:min(360px,calc(100vw - 32px));height:min(520px,calc(100dvh - 190px));display:flex;flex-direction:column;background:#fff;color:#0b1f3d;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px -16px rgba(0,0,0,.55)}.chatw-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#0b1f3d;color:#fff}.chatw-head b{display:block}.chatw-head span{font-size:.78rem;opacity:.8}.chatw-head button{background:none;border:0;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer;padding:0 4px}.chatw-body{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:#f4f6fa}.chatw-msg{max-width:82%;padding:9px 12px;border-radius:14px;font-size:.94rem;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere}.chatw-msg.me{align-self:flex-end;background:#0b1f3d;color:#fff;border-bottom-right-radius:4px}.chatw-msg.them{align-self:flex-start;background:#fff;border:1px solid #dde3ee;border-bottom-left-radius:4px}.chatw-notice{margin:0;padding:9px 11px;border-radius:10px;background:#e8f0fe;color:#0b1f3d;font-size:.84rem;line-height:1.4}.chatw-sys{align-self:center;text-align:center;margin:2px 0;font-size:.82rem;color:#5b6b85}.chatw-card{background:#fff;border:1px solid #dde3ee;border-radius:12px;padding:10px;display:grid;gap:8px;font-size:.88rem}.chatw-card p{margin:0}.chatw input,.chatw textarea{background:#fff;color:#0b1f3d}.chatw input::placeholder,.chatw textarea::placeholder{color:#7a879d}.chatw-card input,.chatw-offline input{width:100%;padding:9px 10px;border:1px solid #c9d2e3;border-radius:8px;font-size:16px}.chatw-card button,.chatw-row button{padding:9px 14px;border:0;border-radius:8px;background:#1f6feb;color:#fff;font-weight:700;cursor:pointer}.chatw-card button.ghost{background:none;color:#5b6b85}.chatw-foot{position:relative;padding:10px;border-top:1px solid #e3e8f1;background:#fff;display:grid;gap:8px}.chatw-offline{display:grid;gap:6px}.chatw-row{display:flex;gap:8px;align-items:flex-end}.chatw-row textarea{flex:1;min-height:44px;height:44px;resize:none;padding:9px 10px;border:1px solid #c9d2e3;border-radius:8px;font:inherit;font-size:16px;max-height:96px}.chatw-row button:disabled{opacity:.5;cursor:default}.chatw-err{margin:0;color:#b91c1c;font-size:.84rem}.chatw-note{margin:0;font-size:.76rem;color:#5b6b85;text-align:center}.chatw-note a{color:inherit;font-weight:700}@media (max-width:639px){.chatw-fab{padding:11px 14px 11px 12px;font-size:.88rem}.chatw-panel{position:fixed;right:8px;left:8px;bottom:calc(132px + env(safe-area-inset-bottom));width:auto;height:min(480px,calc(100dvh - 190px))}}