#duo-chat-open{position:fixed;right:14px;bottom:32px;z-index:85;min-height:40px;padding:8px 16px;border:1px solid #79ddc1;border-radius:24px;background:#173c36;color:#eafff9;font:600 15px Arial;box-shadow:0 3px 14px #0007;box-sizing:border-box;max-width:calc(100vw - 16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;touch-action:none;user-select:none;cursor:grab}
#duo-chat-popup{position:fixed;z-index:86;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden;border:1px solid #54756e;border-radius:14px;background:#12242df7;color:#f0f7f6;box-shadow:0 8px 32px #0009;font:17px/1.4 Arial}
#duo-chat-popup [hidden],#duo-chat-popup[hidden],#duo-chat-open[hidden]{display:none!important}
#duo-chat-popup header{display:flex;align-items:center;gap:2px;padding:5px 8px;border-bottom:1px solid #35515c;flex-shrink:0;touch-action:none;cursor:move;min-height:46px;box-sizing:border-box}
#duo-chat-popup header>strong{flex:1;font-size:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:4px 2px;user-select:none}
#duo-chat-popup button{box-sizing:border-box;min-height:42px;padding:8px 12px;border:1px solid #49666d;border-radius:9px;background:#24434a;color:inherit;font:inherit;cursor:pointer}
#duo-chat-popup button:disabled{opacity:.4;cursor:default}#duo-chat-popup button:focus-visible,#duo-chat-popup textarea:focus-visible{outline:2px solid #8ae5cb;outline-offset:-2px}
#duo-chat-popup .duo-chat-icon-button{display:inline-flex;align-items:center;justify-content:center;padding:8px;width:42px;height:42px;flex-shrink:0;border:0;background:transparent}
#duo-chat-popup svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#duo-chat-options-toggle svg{stroke-width:4}#duo-chat-options{position:absolute;right:8px;top:54px;z-index:3;display:flex;flex-direction:column;max-width:calc(100% - 16px);padding:5px;border:1px solid #54756e;border-radius:10px;background:#162e37;box-shadow:0 6px 22px #0008}
#duo-chat-options button{text-align:left;border:0;background:transparent;font-size:16px}
#duo-chat-list{flex:1;min-height:0;overflow:auto;padding:4px 8px 22px;overscroll-behavior:contain}
#duo-chat-list .duo-chat-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-height:66px;padding:10px 4px;border:0;border-bottom:1px solid #30454e;border-radius:0;background:transparent}
.duo-chat-row-label{flex:1;min-width:0}.duo-chat-row-label strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:18px}.duo-chat-row-label small,.duo-chat-heading small{display:block;font-size:13px;color:#a9c6c1}
.duo-chat-row-meta{display:flex;align-items:center;gap:10px;flex-shrink:0}.duo-chat-row-meta time{font-size:12px;color:#a9c6c1}.duo-chat-count{display:inline-flex;justify-content:center;align-items:center;min-width:24px;height:24px;box-sizing:border-box;padding:0 6px;border-radius:20px;background:#286652;color:#effff9;font-size:13px;font-weight:bold}
.duo-chat-app-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;object-fit:contain;border-radius:8px;background:#27434a;color:#bcebdc;font-size:20px;font-weight:bold}
#duo-chat-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 14px 24px;box-sizing:border-box}.duo-chat-heading{display:flex;align-items:center;gap:10px}.duo-chat-heading>div{min-width:0;overflow-wrap:anywhere}.duo-chat-heading strong{font-size:18px}
.duo-chat-message{font-size:19px;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0 18px}.duo-chat-compose{display:flex;align-items:flex-end;gap:6px}.duo-chat-compose textarea{box-sizing:border-box;flex:1;min-width:0;min-height:58px;max-height:150px;padding:10px;border:1px solid #54756e;border-radius:10px;background:#1b353b;color:#f0f7f6;font:16px/1.4 Arial;resize:none;cursor:text}.duo-chat-compose textarea::placeholder{color:#a9c6c1}.duo-chat-compose textarea:disabled{opacity:.6}#duo-chat-popup .duo-chat-compose button{background:#286652;border-radius:10px;margin-bottom:1px}
.duo-chat-status{font-size:13px;color:#a6d5c8;white-space:pre-wrap;margin:8px 0 0}.duo-chat-empty{font-size:16px;color:#a9c6c1;margin:16px 8px}
#duo-chat-popup #duo-chat-resize{position:absolute;bottom:0;right:0;width:26px;height:24px;min-height:24px;padding:2px;cursor:nwse-resize;touch-action:none;color:#8aada3;background:#12242d;border-radius:7px 0 12px 0}#duo-chat-resize svg{width:20px;height:20px}.duo-chat-moving{user-select:none}
@media(max-width:480px){.duo-chat-row-meta{gap:5px}.duo-chat-row-meta time{display:none}#duo-chat-popup header>strong{font-size:14px}}

.duo-chat-compose-actions{display:flex;flex-direction:column;align-items:center;gap:4px;flex-shrink:0}#duo-chat-popup .duo-chat-compose-actions button{margin:0;width:42px;height:42px}.duo-chat-compose textarea{min-height:88px}

.duo-chat-keyboard{padding:10px 0 0}.duo-keyboard-row{display:flex;gap:3px;justify-content:center;margin-top:4px}#duo-chat-popup .duo-keyboard-row button{min-width:0;min-height:38px;flex:1;padding:5px 1px;font-size:16px}#duo-chat-popup .duo-keyboard-row .duo-key-space{flex:3}.duo-chat-keyboard[hidden]{display:none!important}

.duo-chat-entry{padding:8px 0;border-bottom:1px solid #35515c}
.duo-chat-entry small{display:block;color:#a9c6c1;font-size:13px}
.duo-chat-entry p{margin:4px 0 8px}
#duo-chat-popup .duo-chat-entry button{min-height:36px;padding:4px 10px;font-size:14px}
.duo-chat-quote{display:flex;align-items:center;gap:6px;margin-bottom:7px;padding:2px 4px 2px 8px;border-left:3px solid #79ddc1;background:#1b353b;color:#bcebdc;font-size:14px}
.duo-chat-quote span{flex:1;min-width:0;overflow-wrap:anywhere}
#duo-chat-popup .duo-keyboard-row svg{vertical-align:middle}
#duo-chat-popup .duo-keyboard-row .duo-key-emoji{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:49px}
.duo-key-emoji span{font-family:"Noto Color Emoji","Segoe UI Emoji","Apple Color Emoji",sans-serif;font-size:20px;line-height:1.25}
.duo-key-emoji small{font-size:11px}

.duo-chat-field{position:relative;display:flex;flex:1;min-width:0}
.duo-chat-field textarea{width:100%;overflow-wrap:break-word}
.duo-chat-caret-mirror{position:absolute;inset:0;box-sizing:border-box;overflow:hidden;pointer-events:none;border:1px solid transparent;padding:10px;font:16px/1.4 Arial;white-space:pre-wrap;overflow-wrap:break-word;color:transparent}
.duo-chat-caret{position:relative}
.duo-chat-caret::after{content:"";position:absolute;left:0;top:0;height:1.25em;border-left:2px solid #8ae5cb}

.duo-chat-handwriting{margin:6px 0 0;align-self:flex-start;padding:8px 12px;border-radius:9px}
