.chat-entry{display:flex;align-items:center;gap:10px;width:100%;padding:13px 14px;margin-top:14px;border:1px solid #bddacc;border-radius:14px;background:linear-gradient(110deg,#eaf6ef,#fffdf2);color:#075a3b;font:700 14px system-ui;cursor:pointer;text-align:left}
.chat-entry img{width:22px;height:22px}.chat-entry i{margin-left:auto;font-size:23px;font-style:normal}.chat-entry b{min-width:22px;padding:3px 6px;border-radius:20px;background:#075a3b;color:#fff;text-align:center;font-size:11px}.chat-entry b[hidden]{display:none}
.chat-screen{position:fixed;inset:0 0 82px;margin:auto;width:min(560px,100%);z-index:55;display:flex;flex-direction:column;background:#f7f8f2;color:#173b2e;overflow:hidden;isolation:isolate;font-family:system-ui,sans-serif}
.chat-header{display:flex;align-items:center;gap:10px;padding:18px 14px;background:linear-gradient(130deg,#075a3b,#063f30);color:#fff;border-bottom:2px solid #c1a04d;flex-shrink:0}
.chat-header button{display:grid;place-items:center;width:38px;height:40px;flex-shrink:0;border:1px solid #ffffff30;background:#ffffff10;border-radius:12px;color:#fff;font-size:24px;cursor:pointer}.chat-header button img{width:20px;height:20px;filter:brightness(0) invert(1)}
.chat-header .chat-clear{width:auto;min-width:38px;padding:0 9px;font-size:12px;font-weight:700}.chat-header .chat-clear:disabled{opacity:.5;cursor:wait}
.chat-avatar{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:15px;background:#e1d18d;color:#074d35;font-weight:750;font-size:23px}.chat-avatar img{width:24px;height:24px}.chat-person{flex:1;min-width:0}.chat-person small{font-size:8px;letter-spacing:1.6px;color:#dddbaf}.chat-person h2{font-size:18px;margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-person p{font-size:11px;color:#c0d7cd;margin:0}
.chat-notice{display:flex;justify-content:center;gap:8px;padding:9px 8px;background:#eeefe3;color:#697757;font-size:10px;flex-shrink:0}.chat-notice span{color:#ae8b34}.chat-readonly{padding:9px 14px;background:#fff0ca;font-size:12px;color:#745613;flex-shrink:0}.chat-readonly[hidden]{display:none}
.chat-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 14px;scrollbar-width:thin;background:radial-gradient(ellipse at top left,#e9f0e480,transparent 65%)}.chat-messages{display:flex;flex-direction:column;gap:9px}.chat-empty{margin:auto;text-align:center;padding:60px 25px;color:#708073}.chat-empty>span{display:grid;place-items:center;width:64px;height:64px;border-radius:24px;margin:auto;background:#e1eee4}.chat-empty img{width:30px;height:30px}.chat-empty h3{font-size:19px;font-family:Georgia,serif;color:#075a3b}.chat-empty p{font-size:13px;line-height:1.8}
.chat-day{align-self:center;padding:5px 12px;margin:6px 0 10px;border:1px solid #dfdfcb;border-radius:20px;color:#7e8066;font-size:10px;background:#fffff7}.chat-bubble{max-width:86%;min-width:95px;padding:11px 13px 7px;box-shadow:0 3px 10px #16442b08;border:1px solid #dfe7df;border-radius:17px 17px 17px 4px;background:#fff;align-self:flex-start;overflow-wrap:anywhere}.chat-bubble.mine{align-self:flex-end;background:#075a3b;border-color:#075a3b;color:#fff;border-radius:17px 17px 4px 17px}.chat-bubble>p{margin:0;font-size:14px;line-height:1.65;white-space:pre-wrap;unicode-bidi:plaintext}.chat-bubble footer{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:9px;color:#8a978e;margin-top:5px;min-height:17px}.chat-bubble.mine footer{color:#c0d4c8}.chat-delivery.read{color:#e7d58f}.chat-report{border:0;background:none;font-size:19px;line-height:15px;color:#738d7c;padding:2px 5px;cursor:pointer}.chat-older{display:block;margin:0 auto 15px;border:1px solid #cddacf;background:#fff;border-radius:20px;padding:8px 14px;color:#32644c;font-size:11px;cursor:pointer}.chat-older[hidden]{display:none}
.chat-compose{display:flex;align-items:flex-end;gap:9px;padding:11px 12px 5px;background:#fff;border-top:1px solid #dbe6dc;flex-shrink:0}.chat-compose textarea{flex:1;width:0;min-width:0;box-sizing:border-box;min-height:46px;max-height:120px;padding:12px 13px;resize:vertical;border:1px solid #d5e2d7;border-radius:16px;background:#f6f9f4;font:14px/1.5 system-ui;color:#173b2e}.chat-compose button{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;padding:12px;border:1px solid #b59746;border-radius:16px;background:#075a3b;cursor:pointer}.chat-compose button img{width:21px;height:21px;filter:brightness(0) invert(1)}.chat-compose button:disabled{opacity:.45;cursor:default}.chat-footnote{padding:5px 10px 8px;text-align:center;font-size:9px;color:#8d9a8d;background:#fff;flex-shrink:0}.chat-error{margin:0;padding:8px 14px;font-size:12px;color:#9b4035;background:#fff1e8;flex-shrink:0}.chat-error[hidden]{display:none}.chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.chat-report-dialog{width:min(420px,90vw);box-sizing:border-box;border:1px solid #c4d8c9;border-radius:22px;padding:24px;color:#173b2e;background:#fffef7}.chat-report-dialog::backdrop{background:#073c2b88}.chat-report-dialog h3{margin-top:0}.chat-report-dialog p{font-size:13px;line-height:1.6}.chat-report-dialog label{display:block;font-size:13px}.chat-report-dialog textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0;padding:10px;border:1px solid #cadace;border-radius:10px;font:14px system-ui}.chat-report-dialog>div{display:flex;gap:8px}.chat-report-dialog button{flex:1;padding:11px 8px;border:1px solid #c9d8ce;border-radius:10px;background:#eaf3ec;color:#075a3b;cursor:pointer}.chat-report-dialog [data-send]{background:#075a3b;color:#fff}
.chat-screen .chat-compose{flex:0 0 auto;flex-direction:row}
.chat-compose textarea:focus{outline:0;border-color:#4b9674;box-shadow:0 0 0 3px #075a3b0d}
@media(max-width:360px){.chat-header{padding:12px 10px;gap:7px}.chat-avatar{width:36px;height:38px}.chat-person h2{font-size:16px}.chat-bubble{max-width:89%}}
