main:has(.member-chat-shell){padding:0;background:#eef2f6;min-height:100dvh;height:100dvh;overflow:hidden}
.member-chat-shell{height:100%;display:flex;flex-direction:column;min-width:0}
.member-chat-top{display:grid;grid-template-columns:72px 1fr 72px;align-items:center;min-height:58px;padding:env(safe-area-inset-top,0px) 10px 0;background:white;border-bottom:1px solid #dfe6ed;flex:none}
main .member-chat-top h1{font-size:17px;text-align:center;margin:0;white-space:nowrap}
.member-chat-top a{width:44px;height:44px;display:grid;place-items:center;color:#25364a}
.member-chat-top svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-sync{font-size:11px;text-align:right;color:#526579}
main .chat-privacy{margin:0;padding:10px 14px;background:#fff7e8;color:#74521f;font-size:12px;line-height:1.5;flex:none}
.member-chat-transcript{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 13px;display:flex;flex-direction:column;gap:14px}
.chat-message{display:flex;justify-content:flex-start;max-width:100%;align-items:start}
.chat-message.mine{justify-content:flex-end;background:none}
.chat-message-body{max-width:84%;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.chat-message.mine .chat-message-body{align-items:flex-end}
.chat-text{padding:12px 15px;border:1px solid #dce5ee;background:#fff;border-radius:4px 14px 14px 14px;color:#24364a;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.65}
.chat-message.mine .chat-text{background:#dcebf8;border-color:#c9dcec;border-radius:14px 4px 14px 14px}
main .chat-message small{margin:5px 3px 0;color:#526579;font-size:11px}
main .member-chat-compose{flex:none;display:flex;gap:9px;align-items:flex-end;background:#fff;border-top:1px solid #dfe6ed;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}
main .member-chat-compose textarea{flex:1;min-height:44px;max-height:120px;margin:0;resize:none;line-height:1.5;padding:11px;overflow:auto}
main .member-chat-compose textarea{scrollbar-width:none;-ms-overflow-style:none}
main .member-chat-compose textarea::-webkit-scrollbar{display:none;width:0;height:0}
main .member-chat-compose button{width:65px;flex:none;margin:0;min-height:44px;padding:10px}
.chat-new-message{flex:none;background:#e0ebfa;color:#214974;text-align:center;padding:8px 12px;font-size:13px;border-top:1px solid #c6d7eb}
.chat-new-message[hidden]{display:none!important}
.chat-empty{margin:auto;text-align:center;color:#60758a;font-size:14px}

.chat-read-status{margin-left:9px;color:#60758a;font-size:11px}

.chat-upload-action{flex:none;display:flex;align-items:center;justify-content:center;width:39px;height:44px;color:#376a9a;cursor:pointer}.chat-upload-action input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.chat-file-selected{font-size:11px;color:#456a91;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-self:center}.chat-image{display:block;max-width:min(230px,60vw);max-height:320px;width:auto;height:auto;object-fit:contain;border-radius:8px;margin-top:5px}.chat-text:has(.chat-image){padding:6px}.member-chat-compose textarea{min-width:50px}
