:root{color:#17202f;font-synthesis:none;text-rendering:optimizelegibility;background:#eef2f7;font-family:Inter,PingFang SC,Microsoft YaHei,Arial,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}.customerShell{place-items:center;min-height:100vh;padding:24px;display:grid}.chatPanel{background:#fff;border:1px solid #d9e1ec;border-radius:8px;grid-template-rows:auto auto auto 1fr auto;width:min(920px,100%);height:min(780px,100vh - 48px);display:grid;overflow:hidden;box-shadow:0 18px 60px #17202f1f}.chatHeader{background:#fff;border-bottom:1px solid #e6edf5;align-items:center;gap:14px;padding:18px 20px;display:flex}.brandMark{color:#fff;background:#155e75;border-radius:8px;place-items:center;width:42px;height:42px;font-weight:800;display:grid}.chatHeader h1{letter-spacing:0;margin:0;font-size:22px}.chatHeader p{color:#637083;margin:4px 0 0;font-size:14px}.iconButton{color:#263244;cursor:pointer;background:#fff;border:1px solid #d9e1ec;border-radius:8px;place-items:center;width:38px;height:38px;margin-left:auto;display:grid}.iconButton:disabled{cursor:not-allowed;opacity:.55}.profileBox{background:#f8fafc;border-bottom:1px solid #e6edf5;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px 20px;display:grid}.profileBox label{color:#435064;gap:7px;font-size:13px;display:grid}.profileBox input,.replyBox textarea{color:#17202f;background:#fff;border:1px solid #cfd8e5;border-radius:8px;outline:none;width:100%}.profileBox input{height:40px;padding:0 12px}.notice{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;margin:12px 20px 0;padding:10px 12px;font-size:14px}.messageList{background:#f6f8fb;flex-direction:column;gap:14px;min-height:0;padding:20px;display:flex;overflow-y:auto}.emptyState{color:#637083;text-align:center;justify-items:center;gap:10px;margin:auto;display:grid}.emptyState strong{color:#263244;font-size:18px}.messageBubble{align-items:flex-end;gap:10px;max-width:min(680px,88%);display:flex}.messageBubble.mine{flex-direction:row-reverse;align-self:flex-end}.messageAvatar{color:#1d4ed8;background:#dbeafe;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;display:grid}.messageContent{gap:7px;display:grid}.messageBubble p{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #d9e1ec;border-radius:8px;margin:0;padding:11px 13px;line-height:1.6}.messageImageLink{display:block}.messageImage{object-fit:contain;background:#fff;border:1px solid #d9e1ec;border-radius:8px;max-width:min(260px,68vw);max-height:320px;display:block}.messageBubble.mine p{color:#fff;background:#0f766e;border-color:#0f766e}.messageBubble time{color:#7a8798;margin-top:5px;font-size:12px;display:block}.messageBubble.mine time{text-align:right}.replyBox{background:#fff;border-top:1px solid #e6edf5;grid-template-columns:1fr auto;gap:12px;padding:16px 20px;display:grid}.composeStack{gap:8px;display:grid}.replyActions{grid-template-columns:auto auto;gap:8px;display:grid}.imagePreview{background:#f8fafc;border:1px solid #d9e1ec;border-radius:8px;grid-template-columns:54px minmax(0,1fr) 30px;align-items:center;gap:8px;min-height:54px;padding:7px;display:grid}.imagePreview img{object-fit:cover;border-radius:6px;width:40px;height:40px}.imagePreview span{color:#435064;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;overflow:hidden}.imagePreview button{color:#263244;background:#e2e8f0;min-width:30px;height:30px;padding:0}.replyBox textarea{resize:vertical;min-height:54px;max-height:130px;padding:12px}.replyBox button{color:#fff;cursor:pointer;background:#155e75;border:none;border-radius:8px;justify-content:center;align-self:stretch;align-items:center;gap:8px;min-width:112px;font-weight:700;display:inline-flex}.replyBox button:disabled{cursor:not-allowed;background:#94a3b8}.replyBox .attachButton{color:#263244;background:#eef2f7;min-width:46px;padding:0}@media (width<=680px){.customerShell{padding:0}.chatPanel{border:none;border-radius:0;width:100%;height:100vh}.profileBox,.replyBox{grid-template-columns:1fr}.replyActions{grid-template-columns:52px minmax(0,1fr)}.replyBox button{min-height:46px}}.customerShell{background:#dfe7ef;padding:18px}.chatPanel{background:#f7f9fb;border-color:#8497b047;border-radius:12px;grid-template-rows:auto auto auto minmax(0,1fr) auto;width:min(760px,100%);height:min(860px,100vh - 36px);box-shadow:0 18px 48px #1d2a3d2e}.chatHeader{background:#fffffff5;border-bottom-color:#8497b038;min-height:68px;padding:12px 14px}.brandMark{background:#2aabee;border-radius:50%;width:44px;height:44px;box-shadow:inset 0 -8px 18px #00568a3d}.chatHeader h1{font-size:18px;font-weight:800}.chatHeader p{align-items:center;gap:6px;font-size:13px;display:flex}.chatHeader p:before{content:"";background:#22c55e;border-radius:50%;width:8px;height:8px}.iconButton{background:#eef4f9;border:0;border-radius:50%;width:40px;height:40px}.profileBox{background:#f7f9fb;border-bottom-color:#8497b02e;gap:8px;padding:10px 12px}.profileBox label{color:#66768a;gap:5px;font-size:11px;font-weight:700}.profileBox input{border-color:#d8e2ee;border-radius:18px;height:36px;padding:0 13px;font-size:14px}.profileBox input:focus,.replyBox textarea:focus{border-color:#2aabee;box-shadow:0 0 0 3px #2aabee29}.notice{border-radius:12px;margin:10px 12px 0;padding:9px 11px;font-size:13px}.messageList{background:#e8eef5;gap:10px;padding:16px 14px 18px}.emptyState{background:#ffffff94;border-radius:18px;padding:22px}.messageBubble{gap:8px;max-width:min(560px,78%)}.messageAvatar{color:#2aabee;background:#fff;width:32px;height:32px;box-shadow:0 2px 8px #1d2a3d14}.messageBubble.mine .messageAvatar{color:#079455;background:#d7fbe8}.messageContent{gap:4px;max-width:100%}.messageBubble p{background:#fff;border:0;border-radius:18px 18px 18px 5px;padding:9px 12px;line-height:1.5;box-shadow:0 2px 8px #1d2a3d14}.messageBubble.mine p{color:#102116;background:#95ec69;border-radius:18px 18px 5px}.messageImageLink{line-height:0}.messageImage{border:0;border-radius:16px;max-width:min(280px,62vw);max-height:340px;box-shadow:0 2px 8px #1d2a3d1a}.messageBubble time{margin-top:2px;font-size:11px;line-height:1}.replyBox{padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#f7f9fbfa;border-top-color:#8497b033;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.composeStack{min-width:0}.replyActions{grid-template-columns:44px 76px;gap:8px}.imagePreview{background:#fff;border-color:#d8e2ee;border-radius:16px;grid-template-columns:42px minmax(0,1fr) 28px;min-height:46px;padding:5px 6px}.imagePreview img{border-radius:10px;width:34px;height:34px}.imagePreview button{background:#edf2f7;min-width:28px;height:28px}.replyBox textarea{resize:none;border-color:#d8e2ee;border-radius:22px;min-height:44px;max-height:96px;padding:11px 14px;line-height:1.45}.replyBox button{background:#2aabee;border-radius:22px;min-width:44px;min-height:44px;font-weight:800}.replyBox button:disabled{background:#a8b5c4}.replyBox .attachButton{background:#e8eef5;min-width:44px}@media (width<=680px){.customerShell{background:#e8eef5;padding:0}.chatPanel{width:100%;height:100dvh;box-shadow:none;border:none;border-radius:0}.chatHeader{min-height:62px;padding:9px 12px}.brandMark{width:40px;height:40px}.profileBox{grid-template-columns:1fr}.messageList{padding:14px 10px 16px}.messageBubble{max-width:86%}.messageAvatar{width:28px;height:28px}.replyBox{padding:8px 8px calc(8px + env(safe-area-inset-bottom));grid-template-columns:minmax(0,1fr) auto}.replyActions{grid-template-columns:42px 66px;gap:6px}.replyBox button{min-height:42px}}html,body,#root{height:100%;overflow:hidden}.customerShell{height:100dvh;min-height:0;overflow:hidden}.chatPanel{grid-template-rows:auto auto auto minmax(0,1fr) auto;height:min(860px,100dvh - 36px);min-height:0;max-height:calc(100dvh - 36px)}.messageList{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;overflow-y:auto}.replyBox{z-index:10;flex-shrink:0;position:sticky;bottom:0;box-shadow:0 -10px 24px #1d2a3d14}@media (width<=680px){.customerShell{height:100dvh}.chatPanel{height:100dvh;max-height:100dvh}}.chatPanel{height:calc(100dvh - 36px);max-height:860px}@media (width<=680px){.chatPanel{height:100dvh;max-height:none}}.chatPanel{background:#e8eef5}.replyBox{z-index:auto;background:#e8eef5;position:static;bottom:auto;box-shadow:0 -1px #8497b03d}
