.chat-shell{height:calc(100dvh - 195px);min-height:480px;display:flex;flex-direction:column;border:1px solid #dce3dc;border-radius:20px;overflow:hidden;background:#eeeFE9}.chat-top{display:flex;align-items:center;gap:12px;padding:16px 20px;background:#ffffffdd;backdrop-filter:blur(18px);border-bottom:1px solid #dce3dc}.chat-top strong{display:block;font-size:16px}.chat-top small{font-size:12px;color:#697d78}.chat-top .chat-face{width:40px;height:40px;border-radius:50%;background:#2b4249;color:white;display:grid;place-items:center}.chat-top .chat-back{font-size:25px}.chat-top .chat-call{margin-left:auto;border:1px solid #d7dfd7;border-radius:24px;background:white;padding:9px 14px;font-size:13px;color:#263c43}.chat-log{overflow:auto;flex:1;padding:15px 24px;scrollbar-width:thin}.chat-date{text-align:center;margin:9px auto 20px;font-size:11px;color:#6c7c75;background:#fff9;border-radius:10px;width:max-content;padding:5px 12px}.chat-msg{max-width:77%;width:max-content;background:white;border-radius:16px 16px 16px 4px;padding:11px 14px;margin-bottom:13px;font-size:14px;line-height:1.5;box-shadow:0 2px 3px #20374308;color:#243b43;overflow-wrap:anywhere}.chat-msg.mine{margin-left:auto;background:#dce8df;border-radius:16px 16px 4px 16px}.chat-msg .meta{text-align:right;font-size:10px;color:#81918a;margin-top:5px}.chat-msg .ticks{color:#418ba3;margin-left:5px}.chat-msg img{width:240px;max-width:100%;height:150px;object-fit:cover;border-radius:10px;display:block}.chat-msg .mediaopen{display:block;border:0;background:transparent;padding:0;cursor:pointer;max-width:100%;text-align:left;color:inherit}.chat-msg video{max-width:240px;border-radius:10px}.chat-msg audio{max-width:245px;width:100%;height:34px}.chat-msg .filecard{display:flex;gap:12px;padding:8px 2px;align-items:center}.chat-msg .filecard small{display:block;font-size:11px}.chat-typing{font-size:12px;color:#698177;min-height:20px;padding:0 22px 5px}.chat-compose{padding:12px 14px;background:#ffffffed;border-top:1px solid #dde4db;display:flex;gap:7px;align-items:center;position:relative}.chat-compose input[type=text]{flex:1;min-width:0;background:#f4f6f1;border:1px solid #e1e7df;border-radius:24px;padding:12px;font:14px Arial;color:#233b43}.chat-tool{width:35px;height:38px;flex-shrink:0;display:grid;place-items:center;border:0;background:transparent;color:#405850;border-radius:50%;cursor:pointer}.chat-tool svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.chat-tool.send{background:#29434a;color:white;width:40px;height:40px}.chat-tool.recording{background:#a94440;color:white}.chat-attach{position:absolute;bottom:70px;left:10px;border:1px solid #dce4da;box-shadow:0 8px 40px #213b4225;border-radius:16px;padding:10px;display:grid;gap:4px;background:white;z-index:9}.chat-attach button{padding:12px 20px;text-align:left;border:0;background:transparent;color:#263d43;font:14px Arial;border-radius:10px;cursor:pointer}.chat-attach button:hover{background:#eef2e9}.chat-note{font-size:10px;color:#7a8780;background:#f6f7f2;text-align:center;padding:5px}.media-dialog{position:fixed;inset:0;background:#13272ef2;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:999;padding:30px}.media-dialog>button{position:absolute;top:20px;right:20px;border:1px solid #ffffff77;border-radius:30px;color:white;background:#ffffff11;padding:10px 18px}.media-dialog img,.media-dialog video{max-width:95vw;max-height:75vh;object-fit:contain}.media-dialog iframe{width:90vw;height:75vh;background:white;border:0}.chat-inbox{display:grid;grid-template-columns:300px 1fr;gap:0;border:1px solid #dce3dc;border-radius:20px;overflow:hidden;background:white}.chat-inbox .chat-shell{border:0;border-radius:0;min-width:0}.inbox-list{border-right:1px solid #e2e6df;padding:15px;overflow:auto;max-height:calc(100dvh - 195px)}.inbox-list input,.inbox-list select{width:100%;margin-bottom:10px;font-size:13px}.thread{width:100%;text-align:left;border:0;border-radius:12px;background:transparent;padding:17px 12px;color:#233b43;cursor:pointer}.thread.active{background:#e7eee5}.thread small{display:block;font-size:12px;line-height:1.5;margin-top:5px}.thread .count{float:right;border-radius:50%;background:#2c5851;color:white;padding:3px 6px;font-size:10px}.assign-chat{padding:9px 14px;background:#f5f7f0;font-size:12px;display:flex;align-items:center;gap:10px}.assign-chat select{font-size:12px;padding:6px 26px 6px 9px;max-width:180px}@media(max-width:750px){.chat-inbox{grid-template-columns:1fr}.inbox-list{max-height:260px;border-right:0;border-bottom:1px solid #e0e7dd}.chat-shell{height:650px}.chat-log{padding:14px}.chat-msg{max-width:88%}.chat-compose{padding:9px 7px;gap:3px}.chat-tool{width:29px}}
