:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#1f3930;background:#e7efe8}*{box-sizing:border-box}body{margin:0}.chat-app{height:100dvh;min-height:350px;display:flex;flex-direction:column;background:#e9f0ea}.chat-header{background:linear-gradient(120deg,#0a493a,#11644d);display:flex;align-items:center;gap:11px;padding:15px;color:white;box-shadow:0 3px 9px #0a2b1b3d}.chat-header strong{display:block;font-size:16px}.chat-header span{font-size:11px;opacity:.84}.chat-header a{margin-left:auto;color:#fff;border:1px solid #d2e8db7f;text-decoration:none;padding:6px 10px;border-radius:20px}.avatar-host,.avatar{border-radius:50%;display:grid;place-items:center;flex:none}.avatar-host{height:43px;width:43px;background:#f4d79b;font-size:25px}.messages{padding:18px 12px 22px;overflow-y:auto;flex:1;background-image:radial-gradient(#a4c3b028 1px, transparent 1px);background-size:20px 20px;scroll-behavior:smooth}.welcome{background:#fffdf4;border-radius:18px;max-width:300px;margin:30px auto;padding:20px;text-align:center;box-shadow:0 5px 19px #1637281a}.welcome-icon{font-size:36px}.welcome h1{font:23px Georgia,serif;margin:8px 0}.welcome p{font-size:13px;line-height:1.55}.message-line{display:flex;gap:8px;align-items:end;margin:13px 0}.message-line.mine{flex-direction:row-reverse}.avatar{height:31px;width:31px;background:#f2ddbb;font-size:17px}.mine .avatar{background:#c7e8da}.bubble{max-width:min(85%,390px);border-radius:16px 16px 16px 4px;padding:10px 12px;background:white;box-shadow:0 2px 8px #183e3121;overflow-wrap:anywhere}.mine .bubble{background:#c7ebd9;border-radius:16px 16px 4px 16px}.bubble small{font-size:11px;font-weight:700;opacity:.7}.bubble p{margin:5px 0;font-size:14px;line-height:1.45;white-space:normal}.bubble time{display:block;font-size:10px;text-align:right;color:#53685c;margin-top:4px}.chat-photo img{display:block;max-width:220px;max-height:200px;object-fit:contain;border-radius:9px;margin-top:8px}.chat-compose{background:#fffdf6;border-top:1px solid #d5e0d3;padding:10px}.compose-row{display:flex;align-items:end;gap:6px}.compose-icon{border:0;background:#eaf3eb;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;cursor:pointer;font-size:20px;flex:none}.compose-row textarea{resize:none;flex:1;border:1px solid #c3d5c8;border-radius:18px;font:14px system-ui;padding:9px 11px;min-width:0;max-height:100px}.send{border:0;background:#126a50;color:white;width:39px;height:39px;border-radius:50%;cursor:pointer;font-size:18px}.privacy{font-size:10px;text-align:center;color:#66776c;margin:7px 0 0}.emoji-tray{display:grid;grid-template-columns:repeat(8,1fr);gap:3px;margin-bottom:8px}.emoji-tray[hidden],.file-preview[hidden]{display:none}.emoji{background:#eff6ef;border:0;border-radius:7px;padding:8px 1px;font-size:21px;cursor:pointer}.file-preview{padding:8px;margin-bottom:8px;border:1px solid #d4e2d8;border-radius:9px;font-size:12px}.file-preview img{width:60px;height:50px;object-fit:cover;vertical-align:middle;margin-right:8px;border-radius:6px}.chat-error{background:#ffe2d7;color:#7e2516;padding:10px;font-size:13px}
