/* Unified reception. All rules are scoped; existing chat styles stay untouched. */
#reception-desk .rd-game-id{font-size:13px;color:#54766a;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}#reception-desk .rd-chat-sub{font-variant-numeric:tabular-nums}#reception-desk .rd-quick-panel{max-height:116px;overflow-y:auto;align-items:center}#reception-desk .rd-quick-item{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#reception-desk .rd-quick-empty{font-size:13px;color:#849389}#reception-desk .rd-quick-manage{border:1px dashed #adcbbc;background:#edf6ef;color:#2b7757;border-radius:6px;padding:4px 9px;font-size:13px;white-space:nowrap}#reception-desk .rd-quick-modal{position:absolute;inset:0;z-index:25;background:#17392c80;display:flex;justify-content:center;align-items:center;padding:24px}#reception-desk .rd-quick-dialog{width:640px;max-width:100%;max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 18px 70px #102a3540;overflow:hidden}#reception-desk .rd-quick-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 8px}#reception-desk .rd-quick-head h2{font-size:20px;margin:0;color:#294d3d}#reception-desk .rd-quick-description{margin:0;padding:0 22px 15px;color:#83958a;font-size:14px}#reception-desk .rd-quick-rows{padding:0 22px 10px;flex:1;min-height:140px}#reception-desk .rd-quick-row{padding:12px 0;border-top:1px solid #e8efea}#reception-desk .rd-quick-row-top{display:flex;align-items:center;gap:9px;margin-bottom:8px}#reception-desk .rd-quick-title-input{flex:1;min-width:0;border:1px solid #dbe6df;border-radius:6px;padding:8px 10px;color:#325c43;background:#f8fbf9}#reception-desk .rd-quick-content-input{display:block;width:100%;height:76px;min-height:62px;resize:vertical;border:1px solid #dbe6df;border-radius:6px;padding:9px 10px;color:#3c5848;line-height:1.6}#reception-desk .rd-quick-delete{color:#b5634d}#reception-desk .rd-quick-footer{display:flex;align-items:center;gap:8px;padding:15px 22px;border-top:1px solid #e8efea;background:#f7faf8;flex-wrap:wrap}#reception-desk .rd-quick-error{margin:0;padding:10px 22px;color:#b4593f;background:#fff3ea;font-size:14px;line-height:1.6}#reception-desk .rd-quick-reload{font-size:13px;color:#a36535}@media(max-width:610px){#reception-desk .rd-quick-modal{padding:12px}#reception-desk .rd-quick-dialog{max-height:calc(100vh - 24px)}#reception-desk .rd-quick-head{padding:14px 14px 7px}#reception-desk .rd-quick-description{padding:0 14px 12px}#reception-desk .rd-quick-rows{padding:0 14px 10px}#reception-desk .rd-quick-footer{padding:12px 14px}#reception-desk .rd-quick-error{padding:10px 14px}#reception-desk .rd-quick-panel{max-height:92px}}
.rd-launcher{position:fixed;right:22px;bottom:22px;z-index:1900;border:0;border-radius:14px;padding:13px 18px;background:#176e5d;color:#fff;font:600 16px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;box-shadow:0 7px 24px #173e3330;cursor:pointer;display:flex;align-items:center;gap:9px}.rd-launcher:hover{background:#0f5d4d}.rd-launcher[hidden]{display:none}.rd-launcher-dot{width:8px;height:8px;background:#91e3bc;border-radius:50%}
#reception-desk{position:fixed;inset:0;z-index:2100;background:#f5f7f8;color:#253740;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;display:flex;flex-direction:column;isolation:isolate}#reception-desk[hidden],#reception-desk [hidden]{display:none!important}#reception-desk *{box-sizing:border-box}#reception-desk button,#reception-desk input,#reception-desk textarea{font:inherit}#reception-desk button{cursor:pointer}#reception-desk button:disabled{cursor:default;opacity:.45}#reception-desk button:focus-visible,#reception-desk input:focus-visible,#reception-desk textarea:focus-visible{outline:2px solid #278d76;outline-offset:2px}#reception-desk button{transition:background .12s,color .12s}#reception-desk .rd-topbar{height:74px;flex:none;padding:0 28px;background:#fff;border-bottom:1px solid #e5ebeb;display:flex;align-items:center;gap:14px}#reception-desk .rd-logo{width:39px;height:39px;border-radius:12px;background:#176e5d;display:grid;place-items:center;color:#fff;font-size:22px;font-weight:700}#reception-desk .rd-brand{font-size:21px;font-weight:700;letter-spacing:.4px}#reception-desk .rd-subtitle{font-size:14px;color:#85918f;margin-top:1px}#reception-desk .rd-spacer{flex:1}#reception-desk .rd-network{font-size:14px;color:#69827b;display:flex;gap:6px;align-items:center}#reception-desk .rd-network:before{content:"";height:7px;width:7px;border-radius:50%;background:#2c9d73}#reception-desk .rd-network.is-error{color:#b05736}#reception-desk .rd-network.is-error:before{background:#d67b47}#reception-desk .rd-button{border:1px solid #dce5e2;border-radius:8px;background:#fff;padding:8px 13px;color:#435850;white-space:nowrap}#reception-desk .rd-button:hover:not(:disabled){background:#f0f6f3}#reception-desk .rd-button-primary{background:#176e5d;border-color:#176e5d;color:#fff}#reception-desk .rd-button-primary:hover:not(:disabled){background:#125e4f}#reception-desk .rd-button-plain{border:0;background:transparent;color:#7b8d88;padding:6px 8px}#reception-desk .rd-button-plain:hover{color:#176e5d;background:#eef5f2}#reception-desk .rd-shell{flex:1;min-height:0;display:grid;grid-template-columns:234px 308px minmax(300px,1fr);padding:20px 24px 22px;gap:0;max-width:1800px;width:100%;margin:auto}#reception-desk .rd-agents{min-height:0;background:#f0f4f2;border:1px solid #e2e9e5;border-right:0;border-radius:14px 0 0 14px;display:flex;flex-direction:column;overflow:hidden}#reception-desk .rd-section-head{padding:20px 17px 13px;display:flex;align-items:center;justify-content:space-between;gap:8px}#reception-desk .rd-section-head h2{font-size:17px;margin:0;font-weight:700}#reception-desk .rd-count{padding:1px 7px;border-radius:7px;background:#e0e8e3;color:#5d756b;font-size:13px;font-weight:600}#reception-desk .rd-search-wrap{padding:0 13px 13px}#reception-desk .rd-search{width:100%;border:1px solid #dee7e1;background:#fff;border-radius:8px;padding:9px 10px;font-size:14px;color:#344b40;outline:none}#reception-desk .rd-search::placeholder{color:#9aa9a1}#reception-desk .rd-scroll{overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#d0dad4 transparent}#reception-desk .rd-agent-list{flex:1;padding:0 9px 12px}#reception-desk .rd-agent{border:1px solid transparent;width:100%;background:transparent;border-radius:9px;padding:12px 9px;display:flex;align-items:center;gap:10px;text-align:left;margin-bottom:3px;color:#4b6156}#reception-desk .rd-agent:hover{background:#e6eeea}#reception-desk .rd-agent.is-active{background:#fff;border-color:#d9e7df;box-shadow:0 2px 5px #204d3410;color:#176e5d}#reception-desk .rd-avatar{width:35px;height:35px;border-radius:10px;background:#dfece5;color:#498069;display:grid;place-items:center;flex:none;font-size:16px;font-weight:600;overflow:hidden}#reception-desk .rd-avatar img{width:100%;height:100%;object-fit:cover}#reception-desk .rd-avatar.rd-all{background:#176e5d;color:#fff;font-size:20px}#reception-desk .rd-agent-text{min-width:0;flex:1}#reception-desk .rd-name{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:600}#reception-desk .rd-meta{font-size:13px;color:#92a098;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#reception-desk .rd-unread{font-size:12px;min-width:18px;padding:1px 5px;background:#e56d59;color:#fff;border-radius:10px;text-align:center;flex:none}#reception-desk .rd-agent-foot{flex:none;border-top:1px solid #e0e8e2;padding:13px 17px;color:#84958b;font-size:13px}#reception-desk .rd-conversations{display:flex;flex-direction:column;min-height:0;background:#fff;border:1px solid #e2e9e5;border-right:0}#reception-desk .rd-filter-row{display:flex;gap:5px;padding:0 16px 14px;border-bottom:1px solid #edf1ed}#reception-desk .rd-filter{flex:1;border:0;border-radius:7px;padding:7px 5px;background:#f3f5f3;font-size:14px;color:#7c8e82}#reception-desk .rd-filter.is-active{background:#e3f0e9;color:#176e5d;font-weight:600}#reception-desk .rd-conversation-list{flex:1}#reception-desk .rd-conversation{width:100%;border:0;border-bottom:1px solid #f0f3f0;border-left:3px solid transparent;background:#fff;text-align:left;display:flex;gap:10px;padding:16px 14px;color:#37493f}#reception-desk .rd-conversation:hover{background:#f7faf8}#reception-desk .rd-conversation.is-active{background:#edf6f0;border-left-color:#25866d}#reception-desk .rd-conversation .rd-avatar{background:#ecf0f4;color:#78899b;border-radius:11px;width:38px;height:38px}#reception-desk .rd-conv-main{min-width:0;flex:1}#reception-desk .rd-conv-top{display:flex;gap:8px;align-items:center}#reception-desk .rd-conv-top .rd-name{flex:1}#reception-desk .rd-time{font-size:12px;color:#9ca89f;white-space:nowrap;flex:none}#reception-desk .rd-preview{color:#839086;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;min-height:18px}#reception-desk .rd-conv-bottom{display:flex;align-items:center;gap:8px;margin-top:7px;min-height:18px}#reception-desk .rd-agent-tag{font-size:12px;color:#6e8979;background:#eef3ef;padding:1px 6px;border-radius:4px;max-width:168px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#reception-desk .rd-pending-tag{font-size:12px;color:#b28249;margin-left:auto}#reception-desk .rd-empty-list{text-align:center;color:#9ba89f;padding:40px 14px;font-size:14px}#reception-desk .rd-list-error{font-size:14px;padding:20px 14px;text-align:center;color:#b06047}#reception-desk .rd-more{display:block;width:calc(100% - 24px);margin:10px 12px;border:0;background:#f4f7f5;color:#64806e;padding:8px;border-radius:6px;font-size:14px}#reception-desk .rd-chat{display:flex;flex-direction:column;min-height:0;min-width:0;background:#f8faf9;border:1px solid #e2e9e5;border-radius:0 14px 14px 0;overflow:hidden;position:relative}#reception-desk .rd-chat-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#99a79d}#reception-desk .rd-empty-icon{width:80px;height:80px;border-radius:24px;background:#e9f0ec;display:grid;place-items:center;font-size:35px;color:#8cad98;margin-bottom:20px}#reception-desk .rd-chat-empty strong{font-size:19px;color:#677f70;font-weight:500}#reception-desk .rd-chat-empty p{font-size:14px;margin-top:9px;max-width:280px;line-height:1.8}#reception-desk .rd-chat-content{display:flex;flex-direction:column;height:100%;min-height:0}#reception-desk .rd-chat-head{background:#fff;flex:none;padding:17px 23px;border-bottom:1px solid #e9eee9;display:flex;align-items:center;gap:12px;min-height:78px}#reception-desk .rd-chat-title{font-size:18px;font-weight:600;color:#344c3e;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#reception-desk .rd-chat-sub{color:#8a9c8e;font-size:13px;margin-top:3px}#reception-desk .rd-identity{background:#e9f3eb;color:#347355;border:1px solid #d5e7d9;border-radius:6px;padding:6px 9px;font-size:13px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:auto}#reception-desk .rd-chat-back{display:none}#reception-desk .rd-messages{flex:1;padding:17px 25px 12px;overflow-y:auto;min-height:100px}#reception-desk .rd-history-more{display:block;margin:0 auto 18px;border:0;background:transparent;color:#7f9385;font-size:13px;padding:5px 12px}#reception-desk .rd-history-error{text-align:center;margin:8px;color:#bd6e47;font-size:14px}#reception-desk .rd-message{display:flex;margin:0 0 21px;gap:9px;align-items:flex-start}#reception-desk .rd-message.is-mine{flex-direction:row-reverse}#reception-desk .rd-message .rd-avatar{height:30px;width:30px;font-size:13px;border-radius:9px;margin-top:18px;background:#ebeff2;color:#80929b}#reception-desk .rd-message.is-mine .rd-avatar{background:#dfeee3;color:#55946b}#reception-desk .rd-message-body{max-width:min(82%,560px);min-width:50px}#reception-desk .rd-message-author{font-size:12px;color:#97a399;display:flex;align-items:center;gap:9px;margin-bottom:5px;padding:0 2px}#reception-desk .rd-message.is-mine .rd-message-author{justify-content:flex-end}#reception-desk .rd-bubble{padding:10px 13px;background:#fff;border:1px solid #e8ede8;border-radius:0 10px 10px 10px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;color:#3d5142;font-size:15px;line-height:1.7}#reception-desk .rd-message.is-mine .rd-bubble{background:#dfeee4;border-color:#d4e6da;border-radius:10px 0 10px 10px;color:#315840}#reception-desk .rd-bubble-image{padding:5px;line-height:0;overflow:hidden}#reception-desk .rd-message-image{display:block;max-width:240px;max-height:260px;width:auto;height:auto;border:0;border-radius:7px;cursor:zoom-in;object-fit:contain}#reception-desk .rd-message-file{color:#266c54;display:inline-block;padding:4px;word-break:break-all}#reception-desk .rd-message-status{font-size:12px;text-align:right;color:#99a79b;padding:4px 2px}#reception-desk .rd-message-status.is-error{color:#c26950}#reception-desk .rd-retry{font-size:12px;color:#ab5742;background:#fff3ec;border:1px solid #eed2c5;border-radius:4px;margin-left:6px;padding:2px 6px}#reception-desk .rd-new-messages{margin:0 auto 8px;border:1px solid #caddcf;border-radius:15px;background:#fff;color:#428561;font-size:13px;padding:5px 13px;box-shadow:0 2px 8px #1427190a}#reception-desk .rd-composer{flex:none;border-top:1px solid #e2eae4;background:#fff;padding:12px 20px 15px}#reception-desk .rd-tools{display:flex;gap:6px;align-items:center;margin-bottom:8px}#reception-desk .rd-tool{border:0;background:#f3f6f3;border-radius:6px;color:#6f8878;font-size:13px;padding:5px 9px}#reception-desk .rd-tool:hover{background:#e6eee7}#reception-desk .rd-hint{font-size:12px;color:#a5afa6;margin-left:auto}#reception-desk .rd-quick-panel{display:flex;gap:6px;flex-wrap:wrap;padding:3px 0 9px}#reception-desk .rd-quick-item{border:1px solid #e2e9e3;background:#fcfdfb;color:#6c816f;border-radius:6px;font-size:13px;padding:4px 7px}#reception-desk .rd-attachment{display:flex;align-items:center;gap:10px;background:#f7faf7;border:1px solid #e3ece3;padding:7px 9px;border-radius:7px;margin-bottom:7px;max-width:360px}#reception-desk .rd-attachment img{width:45px;height:45px;object-fit:cover;border-radius:5px}#reception-desk .rd-attachment-info{min-width:0;flex:1;font-size:13px;color:#78917d}#reception-desk .rd-attachment-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#4e6d53}#reception-desk .rd-input{width:100%;resize:vertical;min-height:64px;max-height:170px;border:0;outline:none!important;box-shadow:none;color:#3f5344;background:#fff;font-size:15px;padding:4px 0;line-height:1.7}#reception-desk .rd-input::placeholder{color:#acb6ad}#reception-desk .rd-composer-foot{display:flex;gap:8px;align-items:center;margin-top:4px}#reception-desk .rd-draft-hint{font-size:12px;color:#a1ada3;flex:1}#reception-desk .rd-send-next{background:#fff;color:#478061;border-color:#d6e4d9}#reception-desk .rd-toast{position:absolute;bottom:27px;left:50%;transform:translateX(-50%);max-width:calc(100% - 36px);padding:11px 20px;background:#293f35;color:#fff;box-shadow:0 6px 20px #1c352527;border-radius:9px;z-index:10;font-size:15px;pointer-events:none}#reception-desk .rd-lightbox{position:absolute;inset:0;z-index:20;background:#15261de8;display:flex;align-items:center;justify-content:center;padding:55px 25px;cursor:zoom-out}#reception-desk .rd-lightbox img{max-width:100%;max-height:100%;object-fit:contain}#reception-desk .rd-lightbox-close{position:absolute;right:23px;top:18px;border:0;background:#ffffff24;color:#fff;border-radius:50%;font-size:26px;width:35px;height:35px}#reception-desk .rd-mobile-agent{display:none}#reception-desk .rd-sync-note{font-size:12px;color:#91a495;padding:8px 15px;text-align:center;border-top:1px solid #edf1ed}
@media(min-width:1500px){#reception-desk .rd-shell{grid-template-columns:255px 345px minmax(360px,1fr);padding-top:28px;padding-bottom:28px}#reception-desk .rd-conversation{padding-top:18px;padding-bottom:18px}#reception-desk .rd-topbar{padding-left:max(28px,calc((100vw - 1752px)/2))}}
@media(max-width:1100px){#reception-desk .rd-shell{grid-template-columns:190px 270px minmax(280px,1fr);padding:12px}#reception-desk .rd-topbar{padding:0 18px;height:66px}#reception-desk .rd-messages{padding:16px}#reception-desk .rd-chat-head{padding:14px 16px}#reception-desk .rd-composer{padding:10px 14px}#reception-desk .rd-identity{max-width:43%}#reception-desk .rd-hint{display:none}}
@media(max-width:840px){#reception-desk .rd-shell{grid-template-columns:255px minmax(280px,1fr)}#reception-desk .rd-agents{display:none}#reception-desk .rd-conversations{border-radius:12px 0 0 12px}#reception-desk .rd-mobile-agent{display:block;max-width:130px;border:1px solid #dfe7e1;border-radius:5px;padding:3px;color:#527660;background:#fff;font:inherit;font-size:13px}#reception-desk .rd-subtitle{display:none}#reception-desk .rd-network{font-size:12px}#reception-desk .rd-network:before{display:none}#reception-desk .rd-topbar{gap:9px}#reception-desk .rd-button{padding:7px 10px;font-size:14px}#reception-desk .rd-brand{font-size:19px}}
@media(max-width:610px){#reception-desk .rd-shell{display:block;padding:0}#reception-desk .rd-topbar{height:58px;padding:0 12px;gap:7px}#reception-desk .rd-logo{width:31px;height:31px;border-radius:9px;font-size:19px}#reception-desk .rd-brand{font-size:17px}#reception-desk .rd-network{display:none}#reception-desk .rd-topbar .rd-button{font-size:13px;padding:6px 8px}#reception-desk .rd-conversations{height:100%;border:0;border-radius:0}#reception-desk .rd-chat{display:none;height:100%;border:0;border-radius:0}#reception-desk.rd-show-chat .rd-conversations{display:none}#reception-desk.rd-show-chat .rd-chat{display:flex}#reception-desk .rd-chat-back{display:block;border:0;background:#eef4ed;color:#557b5c;width:28px;height:28px;border-radius:7px;font-size:22px;flex:none}#reception-desk .rd-chat-head{gap:8px;padding:12px;min-height:66px}#reception-desk .rd-chat-title{font-size:16px}#reception-desk .rd-chat-head>.rd-avatar{display:none}#reception-desk .rd-identity{font-size:12px;padding:5px 7px;max-width:48%}#reception-desk .rd-chat-sub{font-size:12px}#reception-desk .rd-composer{padding:10px 12px 12px}#reception-desk .rd-input{min-height:52px;max-height:100px}#reception-desk .rd-message-body{max-width:83%}#reception-desk .rd-message-image{max-width:205px}#reception-desk .rd-mobile-agent{max-width:160px}.rd-launcher{right:14px;bottom:16px;padding:11px 14px;font-size:14px}}

#reception-desk .rd-message-read{font-size:12px;text-align:right;padding:4px 2px;line-height:1.5}#reception-desk .rd-message-read.is-unread{color:#9b9381}#reception-desk .rd-message-read.is-read{color:#438765}

#reception-desk .rd-agent-tag{display:inline-flex;align-items:center;gap:5px;min-width:0}#reception-desk .rd-agent-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#reception-desk .rd-agent-number{flex:none;font-variant-numeric:tabular-nums;font-weight:600}

#reception-desk .rd-conversation.is-active{background:#a9d4ba;border-left-color:#176e5d}
#reception-desk .rd-conversation.is-active:hover{background:#9bcbaa}
#reception-desk .rd-conversation.is-same-game{background:#cce7d6;border-left-color:#4f9f76}
#reception-desk .rd-conversation.is-same-game:hover{background:#bee0ca}
#reception-desk .rd-conversation.is-same-game .rd-game-id{color:#26704f;font-weight:700}

/* Compact conversation rows: show more players without hiding identity or status. */
#reception-desk .rd-conversation{gap:8px;padding:10px 12px}
#reception-desk .rd-conversation .rd-avatar{width:34px;height:34px}
#reception-desk .rd-game-id{margin-top:1px}
#reception-desk .rd-preview{margin-top:2px;min-height:17px}
#reception-desk .rd-conv-bottom{margin-top:3px;min-height:17px}
#reception-desk .rd-agent-tag{max-width:100%;font-variant-numeric:tabular-nums}
@media(min-width:1500px){#reception-desk .rd-conversation{padding-top:11px;padding-bottom:11px}}

/* Fit the mobile desk above the keyboard; only message/list content scrolls. */
#reception-desk.rd-mobile-viewport{top:var(--rd-view-top,0px);bottom:auto;height:var(--rd-view-height,100%);overflow:hidden}
#reception-desk.rd-mobile-viewport .rd-shell,#reception-desk.rd-mobile-viewport .rd-chat-content{overflow:hidden}
#reception-desk.rd-mobile-viewport .rd-chat-head{position:relative;z-index:1;flex-shrink:0}
#reception-desk.rd-mobile-viewport .rd-messages{min-height:0;overscroll-behavior-y:contain}
#reception-desk.rd-mobile-viewport .rd-conversation-list{overscroll-behavior-y:contain}
#reception-desk.rd-mobile-viewport .rd-composer{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
#reception-desk.rd-mobile-viewport .rd-input{font-size:16px}

/* Pin the original player identity row independently of the message scroller. */
#reception-desk .rd-chat-head-spacer{display:none;flex:none}
#reception-desk.rd-mobile-viewport{left:var(--rd-view-left,0px);right:auto;width:var(--rd-view-width,100%)}
#reception-desk.rd-mobile-viewport.rd-show-chat .rd-chat-head-spacer{display:block;height:var(--rd-head-height,66px)}
#reception-desk.rd-mobile-viewport.rd-show-chat .rd-chat-head{position:fixed;top:var(--rd-head-top,0px);left:var(--rd-head-left,0px);width:var(--rd-head-width,100%);z-index:5;margin:0}
#reception-desk.rd-mobile-viewport .rd-chat-avatar{display:none}
#reception-desk.rd-compact-viewport .rd-topbar{height:44px}
#reception-desk.rd-compact-viewport .rd-topbar .rd-brand,#reception-desk.rd-compact-viewport .rd-topbar .rd-logo{display:none}
#reception-desk.rd-mobile-viewport .rd-chat-head{min-height:78px;padding:13px 12px}
#reception-desk.rd-mobile-viewport .rd-chat-back{width:36px;height:36px;font-size:28px;border-radius:8px}
#reception-desk.rd-mobile-viewport .rd-chat-title{font-size:18px}
#reception-desk.rd-mobile-viewport .rd-chat-sub{font-size:14px;line-height:1.5}
#reception-desk.rd-mobile-viewport .rd-identity{font-size:15px;font-weight:600;padding:6px 9px;font-variant-numeric:tabular-nums}
#reception-desk.rd-compact-viewport .rd-chat-head{display:grid;grid-template-columns:36px minmax(0,1fr);gap:4px 8px}
#reception-desk.rd-compact-viewport .rd-chat-title{white-space:normal;overflow-wrap:anywhere}
#reception-desk.rd-compact-viewport .rd-identity{grid-column:2;max-width:100%;margin-left:0;justify-self:start;white-space:normal;overflow-wrap:anywhere}
#reception-desk.rd-compact-viewport .rd-composer-foot{flex-wrap:wrap}
#reception-desk.rd-compact-viewport .rd-draft-hint{flex-basis:100%}
@media(max-width:610px){#reception-desk .rd-input{font-size:16px}}

/* Three-line conversation rows share one layout on phone and desktop. */
#reception-desk .rd-conversation{align-items:center;gap:9px;padding:10px 12px}
#reception-desk .rd-conversation>.rd-avatar{width:36px;height:36px;align-self:center}
#reception-desk .rd-conv-main{min-width:0;flex:1}
#reception-desk .rd-conv-top{min-width:0;gap:7px;align-items:baseline;line-height:1.4}
#reception-desk .rd-conv-top .rd-name{flex:1 1 0%;min-width:0;font-size:16px;font-weight:600}
#reception-desk .rd-conv-top .rd-game-id{flex:0 0 auto;min-width:0;max-width:72%;margin:0;font-size:14px;line-height:1.4;color:#4e7362}
#reception-desk .rd-conversation .rd-preview{margin-top:3px;min-height:21px;font-size:15px;line-height:1.4}
#reception-desk .rd-conv-bottom{min-width:0;min-height:21px;gap:6px;margin-top:4px;line-height:1.4}
#reception-desk .rd-conv-bottom .rd-agent-tag{flex:0 1 auto;min-width:0;max-width:100%;font-size:13px;line-height:1.4}
#reception-desk .rd-conv-bottom .rd-time{flex:0 0 auto;margin-left:auto;font-size:13px;line-height:1.4}
#reception-desk .rd-conv-bottom .rd-unread{flex:0 0 auto;font-size:13px;line-height:1.3}

/* Bubble width follows its content independently of sender and timestamp width. */
#reception-desk .rd-message-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:min(82%,560px)}
#reception-desk .rd-message.is-mine .rd-message-body{align-items:flex-end}
#reception-desk .rd-message-author{max-width:100%;min-width:0;gap:8px}
#reception-desk .rd-message-author>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#reception-desk .rd-message-author>span:last-child{flex:none;white-space:nowrap}
#reception-desk .rd-bubble{width:fit-content;min-width:0;max-width:100%}
/* Include the image's 5px padding and 1px border on each side in its width cap. */
#reception-desk .rd-bubble-image{max-width:min(252px,100%)}
#reception-desk .rd-message-image{max-width:min(240px,100%);height:auto}
#reception-desk .rd-message-file{max-width:100%;overflow-wrap:anywhere}

/* Larger phone chat text; keep the established pinned header and viewport rules. */
@media(max-width:610px){
 #reception-desk .rd-message-body{max-width:calc(100% - 39px)}
 #reception-desk .rd-bubble{font-size:18px;line-height:1.65;padding:10px 12px}
 #reception-desk .rd-bubble-image{padding:5px;line-height:0;max-width:min(217px,100%)}
 #reception-desk .rd-message-image{max-width:min(205px,100%)}
 #reception-desk .rd-message-author{font-size:14px;line-height:1.5}
 #reception-desk .rd-message .rd-avatar{margin-top:23px;font-size:14px}
 #reception-desk .rd-message-read,#reception-desk .rd-message-status{font-size:14px;line-height:1.5}
 #reception-desk .rd-retry,#reception-desk .rd-history-more,#reception-desk .rd-new-messages{font-size:14px}
 #reception-desk .rd-input,#reception-desk.rd-mobile-viewport .rd-input{font-size:18px;line-height:1.6}
 #reception-desk .rd-tool,#reception-desk .rd-quick-item,#reception-desk .rd-quick-manage{font-size:15px}
 #reception-desk .rd-composer .rd-button{font-size:16px;padding:8px 11px}
 #reception-desk .rd-composer .rd-send-next{display:none}
 #reception-desk .rd-composer .rd-button-primary{font-size:18px;min-height:44px;min-width:72px;padding:8px 16px}
 #reception-desk .rd-draft-hint,#reception-desk .rd-attachment-info{font-size:14px;line-height:1.4}
 #reception-desk .rd-composer-foot{flex-wrap:wrap;gap:7px}
 #reception-desk .rd-draft-hint{min-width:0;flex:1 1 90px}
}

/* Phone readability requested from the physical-device annotations. */
@media(max-width:610px){
 #reception-desk .rd-topbar .rd-button{font-size:15px;font-weight:600;min-height:36px;padding:7px 10px}
 #reception-desk.rd-mobile-viewport .rd-chat-head{min-height:86px;padding:13px 10px;gap:9px}
 #reception-desk.rd-mobile-viewport.rd-show-chat .rd-chat-head-spacer{height:var(--rd-head-height,86px)}
 #reception-desk.rd-mobile-viewport .rd-chat-back{width:42px;height:42px;font-size:32px;font-weight:700;border-radius:9px}
 #reception-desk.rd-mobile-viewport .rd-chat-title{font-size:20px;font-weight:700;line-height:1.4}
 #reception-desk.rd-mobile-viewport .rd-chat-sub{font-size:16px;font-weight:600;line-height:1.45}
 #reception-desk.rd-mobile-viewport .rd-identity{font-size:17px;font-weight:700;padding:7px 10px}
 #reception-desk .rd-bubble{font-size:20px;line-height:1.6}
 #reception-desk .rd-message-author{font-size:15px}
 #reception-desk .rd-message-read,#reception-desk .rd-message-status{font-size:15px}
 #reception-desk .rd-input,#reception-desk.rd-mobile-viewport .rd-input{font-size:20px;line-height:1.55;min-height:60px}
 #reception-desk .rd-composer .rd-button-primary{font-size:20px;font-weight:700;min-height:52px;min-width:92px;padding:10px 20px;border-radius:10px}
}

/* The latest list typography and adjacent ID apply only to the phone layout. */
@media(max-width:610px){
 #reception-desk .rd-conv-top .rd-name{flex:0 1 auto;min-width:0;font-size:18px;font-weight:600}
 #reception-desk .rd-conv-top .rd-game-id{flex:0 0 auto;min-width:0;max-width:72%;margin:0;font-size:16px;line-height:1.4;color:#4e7362}
 #reception-desk .rd-conversation .rd-preview{margin-top:3px;min-height:24px;font-size:17px;line-height:1.4}
 #reception-desk .rd-conv-bottom .rd-agent-tag{flex:0 1 auto;min-width:0;max-width:100%;font-size:15px;line-height:1.4}
 #reception-desk .rd-conv-bottom .rd-time{flex:0 0 auto;margin-left:auto;font-size:15px;line-height:1.4}
 #reception-desk .rd-conv-bottom .rd-unread{flex:0 0 auto;font-size:15px;line-height:1.3}
}

/* Account controls and login branding are exclusive to the phone layout. */
#reception-desk .rd-settings-button,#reception-desk .rd-settings-modal{display:none}
@media(max-width:610px){
 html.rd-phone-session #app{visibility:hidden;pointer-events:none}
 #reception-desk .rd-return-legacy{display:none}
 #reception-desk .rd-settings-button{display:inline-block}
 #reception-desk .rd-settings-modal{position:absolute;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:14px;background:#17392c80;overflow:auto}
 #reception-desk .rd-settings-dialog{width:100%;max-width:420px;max-height:100%;overflow:auto;padding:18px;background:#fff;border-radius:14px;box-shadow:0 18px 60px #102a3540}
 #reception-desk .rd-settings-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
 #reception-desk .rd-settings-head h2{margin:0;font-size:20px}
 #reception-desk .rd-settings-actions{display:flex;flex-direction:column;gap:12px}
 #reception-desk .rd-settings-dialog .rd-button{min-height:44px;font-size:16px;padding:9px 14px}
 #reception-desk .rd-settings-dialog .rd-settings-logout{color:#b33b32;border-color:#e9b6b1;background:#fff8f7}
 #reception-desk .rd-password-form h3{margin:0 0 12px;font-size:18px}
 #reception-desk .rd-password-label{display:block;font-size:16px;margin:12px 0}
 #reception-desk .rd-password-input{display:block;width:100%;min-width:0;min-height:44px;margin-top:5px;border:1px solid #cfded5;border-radius:8px;padding:10px;font-size:16px;background:#fff;color:#253740}
 #reception-desk .rd-settings-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
 #reception-desk .rd-settings-help{font-size:14px;color:#687d70;line-height:1.5}
 #reception-desk .rd-settings-error{font-size:15px;color:#ad352d;line-height:1.5;margin:12px 0 0;overflow-wrap:anywhere}
 #reception-desk .rd-settings-status{font-size:15px;color:#176e5d;margin:12px 0 0}
 #reception-desk .rd-settings-status:empty{display:none}
 .rd-session-exit{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;background:#f5f7f8;color:#176e5d;font:18px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
 .login-wrapper .form-title>img{display:none}
 .login-wrapper .form-title>p{font-size:0}
 .login-wrapper .form-title>p:after{content:"众聊im";font-size:20px}
 .login-wrapper .login-form>.c-999{font-size:0}
 .login-wrapper .login-form>.c-999:after{content:"众聊im for 5.5.0";font-size:14px}
}

/* All phone text: subtract 2px from the v18 cascade, without changing desktop. */
@media(max-width:610px){
#reception-desk .rd-game-id{font-size:11px}
#reception-desk .rd-quick-empty{font-size:11px}
#reception-desk .rd-quick-manage{font-size:11px}
#reception-desk .rd-quick-head h2{font-size:18px}
#reception-desk .rd-quick-description{font-size:12px}
#reception-desk .rd-quick-error{font-size:12px}
#reception-desk .rd-quick-reload{font-size:11px}
.rd-launcher{font-size:14px}
#reception-desk{font-size:14px}
#reception-desk .rd-logo{font-size:20px}
#reception-desk .rd-brand{font-size:19px}
#reception-desk .rd-subtitle{font-size:12px}
#reception-desk .rd-network{font-size:12px}
#reception-desk .rd-section-head h2{font-size:15px}
#reception-desk .rd-count{font-size:11px}
#reception-desk .rd-search{font-size:12px}
#reception-desk .rd-avatar{font-size:14px}
#reception-desk .rd-avatar.rd-all{font-size:18px}
#reception-desk .rd-name{font-size:13px}
#reception-desk .rd-meta{font-size:11px}
#reception-desk .rd-unread{font-size:10px}
#reception-desk .rd-agent-foot{font-size:11px}
#reception-desk .rd-filter{font-size:12px}
#reception-desk .rd-time{font-size:10px}
#reception-desk .rd-preview{font-size:12px}
#reception-desk .rd-agent-tag{font-size:10px}
#reception-desk .rd-pending-tag{font-size:10px}
#reception-desk .rd-empty-list{font-size:12px}
#reception-desk .rd-list-error{font-size:12px}
#reception-desk .rd-more{font-size:12px}
#reception-desk .rd-empty-icon{font-size:33px}
#reception-desk .rd-chat-empty strong{font-size:17px}
#reception-desk .rd-chat-empty p{font-size:12px}
#reception-desk .rd-chat-title{font-size:16px}
#reception-desk .rd-chat-sub{font-size:11px}
#reception-desk .rd-identity{font-size:11px}
#reception-desk .rd-history-more{font-size:11px}
#reception-desk .rd-history-error{font-size:12px}
#reception-desk .rd-message .rd-avatar{font-size:11px}
#reception-desk .rd-message-author{font-size:10px}
#reception-desk .rd-bubble{font-size:13px}
#reception-desk .rd-message-status{font-size:10px}
#reception-desk .rd-retry{font-size:10px}
#reception-desk .rd-new-messages{font-size:11px}
#reception-desk .rd-tool{font-size:11px}
#reception-desk .rd-hint{font-size:10px}
#reception-desk .rd-quick-item{font-size:11px}
#reception-desk .rd-attachment-info{font-size:11px}
#reception-desk .rd-input{font-size:13px}
#reception-desk .rd-draft-hint{font-size:10px}
#reception-desk .rd-toast{font-size:13px}
#reception-desk .rd-lightbox-close{font-size:24px}
#reception-desk .rd-sync-note{font-size:10px}
@media(max-width:840px){#reception-desk .rd-mobile-agent{font-size:11px}
#reception-desk .rd-network{font-size:10px}
#reception-desk .rd-button{font-size:12px}
#reception-desk .rd-brand{font-size:17px}}
@media(max-width:610px){#reception-desk .rd-logo{font-size:17px}
#reception-desk .rd-brand{font-size:15px}
#reception-desk .rd-topbar .rd-button{font-size:11px}
#reception-desk .rd-chat-back{font-size:20px}
#reception-desk .rd-chat-title{font-size:14px}
#reception-desk .rd-identity{font-size:10px}
#reception-desk .rd-chat-sub{font-size:10px}
.rd-launcher{font-size:12px}}
#reception-desk .rd-message-read{font-size:10px}
#reception-desk.rd-mobile-viewport .rd-input{font-size:14px}
#reception-desk.rd-mobile-viewport .rd-chat-back{font-size:26px}
#reception-desk.rd-mobile-viewport .rd-chat-title{font-size:16px}
#reception-desk.rd-mobile-viewport .rd-chat-sub{font-size:12px}
#reception-desk.rd-mobile-viewport .rd-identity{font-size:13px}
@media(max-width:610px){#reception-desk .rd-input{font-size:14px}}
#reception-desk .rd-conv-top .rd-name{font-size:14px}
#reception-desk .rd-conv-top .rd-game-id{font-size:12px}
#reception-desk .rd-conversation .rd-preview{font-size:13px}
#reception-desk .rd-conv-bottom .rd-agent-tag{font-size:11px}
#reception-desk .rd-conv-bottom .rd-time{font-size:11px}
#reception-desk .rd-conv-bottom .rd-unread{font-size:11px}
@media(max-width:610px){#reception-desk .rd-bubble{font-size:16px}
#reception-desk .rd-message-author{font-size:12px}
#reception-desk .rd-message .rd-avatar{font-size:12px}
#reception-desk .rd-message-read,#reception-desk .rd-message-status{font-size:12px}
#reception-desk .rd-retry,#reception-desk .rd-history-more,#reception-desk .rd-new-messages{font-size:12px}
#reception-desk .rd-input,#reception-desk.rd-mobile-viewport .rd-input{font-size:16px}
#reception-desk .rd-tool,#reception-desk .rd-quick-item,#reception-desk .rd-quick-manage{font-size:13px}
#reception-desk .rd-composer .rd-button{font-size:14px}
#reception-desk .rd-composer .rd-button-primary{font-size:16px}
#reception-desk .rd-draft-hint,#reception-desk .rd-attachment-info{font-size:12px}}
@media(max-width:610px){#reception-desk .rd-topbar .rd-button{font-size:13px}
#reception-desk.rd-mobile-viewport .rd-chat-back{font-size:30px}
#reception-desk.rd-mobile-viewport .rd-chat-title{font-size:18px}
#reception-desk.rd-mobile-viewport .rd-chat-sub{font-size:14px}
#reception-desk.rd-mobile-viewport .rd-identity{font-size:15px}
#reception-desk .rd-bubble{font-size:18px}
#reception-desk .rd-message-author{font-size:13px}
#reception-desk .rd-message-read,#reception-desk .rd-message-status{font-size:13px}
#reception-desk .rd-input,#reception-desk.rd-mobile-viewport .rd-input{font-size:18px}
#reception-desk .rd-composer .rd-button-primary{font-size:18px}}
@media(max-width:610px){#reception-desk .rd-conv-top .rd-name{font-size:16px}
#reception-desk .rd-conv-top .rd-game-id{font-size:14px}
#reception-desk .rd-conversation .rd-preview{font-size:15px}
#reception-desk .rd-conv-bottom .rd-agent-tag{font-size:13px}
#reception-desk .rd-conv-bottom .rd-time{font-size:13px}
#reception-desk .rd-conv-bottom .rd-unread{font-size:13px}}
@media(max-width:610px){#reception-desk .rd-settings-head h2{font-size:18px}
#reception-desk .rd-settings-dialog .rd-button{font-size:14px}
#reception-desk .rd-password-form h3{font-size:16px}
#reception-desk .rd-password-label{font-size:14px}
#reception-desk .rd-password-input{font-size:14px}
#reception-desk .rd-settings-help{font-size:12px}
#reception-desk .rd-settings-error{font-size:13px}
#reception-desk .rd-settings-status{font-size:13px}
.rd-session-exit{font-size:16px}
.login-wrapper .form-title>p:after{font-size:18px}
.login-wrapper .login-form>.c-999:after{font-size:12px}}
}

/* Mobile composition matches the compact H5 input reference. */
#reception-desk .rd-phone-row,#reception-desk .rd-phone-extras,#reception-desk .rd-phone-emojis{display:none}
@media(max-width:610px){
 #reception-desk .rd-bubble,#reception-desk .rd-input,#reception-desk.rd-mobile-viewport .rd-input{font-size:15px}
 #reception-desk .rd-conversations>.rd-section-head{display:none}
 #reception-desk .rd-conversations>.rd-search-wrap{padding-top:12px}
 #reception-desk .rd-topbar{height:52px}
 #reception-desk .rd-topbar .rd-button{min-height:34px;padding:6px 9px}
 #reception-desk .rd-conversation{padding-top:8px;padding-bottom:8px}
 #reception-desk .rd-conversation .rd-preview{min-height:21px}
 #reception-desk .rd-conv-bottom{min-height:19px;margin-top:3px}
 #reception-desk.rd-mobile-viewport .rd-chat-head,#reception-desk .rd-chat-head{min-height:64px;padding:8px 10px;gap:8px}
 #reception-desk.rd-mobile-viewport.rd-show-chat .rd-chat-head-spacer{height:var(--rd-head-height,64px)}
 #reception-desk.rd-mobile-viewport .rd-chat-back{width:34px;height:34px;border-radius:8px}
 #reception-desk.rd-mobile-viewport .rd-identity{padding:5px 8px}
 #reception-desk.rd-compact-viewport .rd-chat-head{grid-template-columns:34px minmax(0,1fr)}
 #reception-desk .rd-composer,#reception-desk.rd-mobile-viewport .rd-composer{padding:0 10px calc(8px + env(safe-area-inset-bottom,0px));background:#f6f7f6}
 #reception-desk .rd-composer>.rd-tools,#reception-desk .rd-composer>.rd-composer-foot{display:none}
 #reception-desk .rd-quick-panel{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-height:none;min-height:42px;gap:7px;align-items:center;padding:6px 0;margin-bottom:7px;border-bottom:1px solid #e0e5e2;scrollbar-width:none}
 #reception-desk .rd-quick-panel::-webkit-scrollbar{display:none}
 #reception-desk .rd-quick-item,#reception-desk .rd-quick-manage{flex:0 0 auto;border-radius:18px;min-height:30px;padding:4px 13px;background:#fff;border:1px solid #d8deda;color:#516359;max-width:180px}
 #reception-desk .rd-quick-empty{flex:0 0 auto;max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #reception-desk .rd-phone-row{display:flex;align-items:flex-end;gap:7px;min-width:0}
 #reception-desk .rd-phone-row .rd-input,#reception-desk.rd-mobile-viewport .rd-phone-row .rd-input{flex:1;min-width:0;width:0;min-height:42px;max-height:104px;line-height:1.35;resize:none;border:1px solid #cfd7d2;border-radius:7px;padding:8px 10px;background:#fff;overflow-y:auto;margin:0}
 #reception-desk .rd-phone-icon{display:grid;place-items:center;width:32px;min-width:32px;height:42px;padding:0;border:0;background:transparent;color:#54625b;font-size:26px;line-height:1;cursor:pointer}
 #reception-desk .rd-phone-row .rd-button-primary{flex:none;min-width:54px;min-height:42px;height:42px;padding:5px 9px;border-radius:8px}
 #reception-desk .rd-phone-row.is-empty .rd-button-primary{display:none}
 #reception-desk .rd-phone-extras{display:flex;gap:10px;padding-top:9px;flex-wrap:wrap}
 #reception-desk .rd-phone-extras .rd-tool{min-height:42px;padding:7px 12px;border:1px solid #dce4df;background:#fff;border-radius:7px}
 #reception-desk .rd-phone-emojis{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));padding-top:8px;max-height:112px;overflow:auto}
 #reception-desk .rd-phone-emojis .rd-phone-icon{width:100%;min-width:0}
 #reception-desk .rd-attachment{margin:6px 0;max-width:none}
 #reception-desk .rd-settings-modal,#reception-desk .rd-quick-modal,#reception-desk .rd-lightbox,.rd-session-exit{top:0;right:0;bottom:0;left:0}
}

/* User-requested avatar-only changes for both desktop and phone. */
#reception-desk .rd-avatar{width:40px;height:40px}
#reception-desk .rd-conversation>.rd-avatar{width:40px;height:40px}
#reception-desk .rd-message .rd-avatar{width:36px;height:36px}
