/* Shared support and team refresh; existing business controls keep their IDs. */
.support-v2 [hidden],.desk-body [hidden]{display:none!important}
.support-v2,.desk-body{font-family:Inter,'Segoe UI','Microsoft YaHei',sans-serif;color:#243648}
.support-v2 *,.desk-body *{box-sizing:border-box}
.support-v2 button,.desk-body button{font:inherit;cursor:pointer}
.support-fab{background:#183044;border:1px solid #324d60;box-shadow:0 5px 16px #152e4226;padding:13px 20px;font-weight:600}
.support-window.support-v2{width:390px;max-height:min(680px,80dvh);bottom:147px;border-radius:20px;box-shadow:0 22px 70px #14283d26;border:1px solid #dfe5ea;background:white;overflow:hidden}
.support-v2 .support-head{padding:19px 22px;background:#fbfcfd;gap:12px}
.support-head>div{flex:1;min-width:0}.support-head strong{display:block;font-size:16px}.support-head small{display:block;font-size:10px;letter-spacing:1.4px;color:#8795a2;margin-bottom:5px}
.support-v2 .icon-button,.desk-body .icon-button{border:0;background:none;color:#7b8d9a;font-size:24px;width:34px;height:34px;padding:0;line-height:1}
#contactChoices{padding:24px}#contactChoices h2{font-size:24px;margin:0 0 8px;font-weight:650;letter-spacing:-.5px}#contactChoices>p{font-size:12px;color:#7f8c98;line-height:1.7;margin:0 0 22px}
.contact-channel{display:flex;align-items:center;gap:13px;border:1px solid #dfe6ed;border-radius:13px;padding:18px 14px;margin:12px 0;width:100%;background:white;color:#243648;text-decoration:none;text-align:start;transition:background .15s,border-color .15s}
.contact-channel:hover{background:#fbf8ef;border-color:#c5ae79}.contact-channel>span:nth-child(2){flex:1;min-width:0}.contact-channel b{display:block;font-size:14px}.contact-channel small{display:block;color:#748492;line-height:1.5;font-size:11px;margin-top:5px}.channel-icon{background:#f3ead4;color:#92712f;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;font-size:24px}.telegram-icon{background:#eaf3fc;color:#398abb}.contact-channel[aria-disabled=true]{opacity:.6;cursor:default}#contactChoices #telegramState{font-size:11px;line-height:1.6;margin:12px 2px 0}
#contactChat{display:flex;flex-direction:column;min-height:0;flex:1}.support-v2 .support-messages{min-height:220px;max-height:320px;padding:18px;overflow:auto;background:#f8fafc;overscroll-behavior:contain}.support-v2 .support-compose{padding:14px;border:0;background:#fff}.support-v2 textarea,.desk-body textarea{font:inherit;font-size:13px;line-height:1.7;resize:none;border:0;border-radius:0;padding:0;width:100%;background:transparent;color:#253c4d;outline:none}.support-v2 .support-actions,.desk-body .support-actions{display:flex;align-items:center;gap:12px;padding-top:14px;justify-content:space-between}.support-v2 #supportSend,.desk-body #supportSend{border:0;border-radius:9px;background:#19394d;color:white;padding:10px 19px;font-size:12px;font-weight:600;flex-shrink:0}
.support-v2 button:disabled,.desk-body button:disabled{opacity:.4;cursor:not-allowed}
.attachment-button{position:relative;display:inline-flex;align-items:center;gap:7px;color:#6b7c8c;font-size:12px;cursor:pointer}.attachment-button>span:first-child{font-size:20px}.attachment-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.attachment-preview{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#f3f6f8;border-radius:7px;margin-top:10px;font-size:11px}.attachment-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.attachment-preview button{border:0;background:transparent;font-size:18px;color:#637789}
.support-status{font-size:11px;padding:10px 18px;color:#7b8c98;line-height:1.6;margin:0;background:#fff;border-top:1px solid #eef1f4;min-height:35px}
.conversation-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:35px 18px;min-height:180px;color:#84929e}.conversation-empty h3{font-size:16px;font-weight:600;color:#53697a;margin:16px 0 8px}.conversation-empty p{font-size:12px;line-height:1.8;margin:0}.empty-symbol{display:grid;place-items:center;width:58px;height:58px;border:1px solid #e2e8ee;border-radius:18px;font-size:26px;color:#b4995f;background:#fff}
.message-row{display:flex;flex-direction:column;align-items:flex-start;margin:15px 0}.message-row.outgoing{align-items:flex-end}.message-row .support-message{max-width:88%;margin:0;padding:11px 14px;border-radius:12px 12px 12px 3px;background:#fff;border:1px solid #e2e8ee;overflow-wrap:anywhere;line-height:1.65;font-size:13px;color:#273e4e}.message-row.outgoing .support-message{background:#eaf0f4;border-color:#e0e7ee;border-radius:12px 12px 3px 12px}.support-message p{margin:0;font-size:inherit;line-height:inherit;color:inherit;white-space:pre-wrap}.message-time{color:#93a0aa;font-size:10px;margin-top:6px}.message-image{display:block;background:none;border:0;padding:0;cursor:zoom-in}.message-image img{max-width:100%;max-height:180px;object-fit:contain;border-radius:8px}.image-lightbox{max-width:90vw;max-height:90dvh;padding:15px;border:0;border-radius:12px;background:#fff}.image-lightbox::backdrop{background:#14283dc9}.image-lightbox img{display:block;max-width:85vw;max-height:78dvh}.image-lightbox button{display:block;margin-left:auto;background:none;border:0;font-size:24px}.support-v2 #supportSignIn{padding:15px;text-align:center;color:#957336;background:#fff7df;text-decoration:none;font-size:13px}
.desk-body{margin:0;background:#f1f4f7;font-size:13px}.desk-top{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:#fff;border-bottom:1px solid #dfe5eb}.desk-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#21394c}.desk-brand>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#1c384b;color:#ecd28d;font-weight:700}.desk-brand b{font-size:20px}.desk-brand small{font-size:12px;color:#7c8d9b;margin-left:12px;font-weight:400}.desk-top-actions{display:flex;align-items:center;gap:20px;font-size:12px}.desk-top-actions>span{color:#8795a2}.desk-top-actions a{color:#4e6578;text-decoration:none}
.desk-grid{display:grid;grid-template-columns:250px minmax(520px,1fr) 170px;max-width:1700px;padding:24px;gap:0;margin:0 auto;height:calc(100dvh - 76px);min-height:620px}.desk-queue,.desk-conversation,.desk-profile{background:#fff;border:1px solid #dfe6ec;min-width:0;min-height:0}.desk-queue{border-radius:16px 0 0 16px;display:flex;flex-direction:column;padding:22px 14px;border-right:0}.desk-section-title{display:flex;align-items:center;justify-content:space-between;padding:0 8px 18px}.desk-section-title h1{font-size:20px;margin:0 0 6px}.desk-section-title small{color:#92a0ab;font-size:11px}.desk-search,.desk-filter{font:inherit;font-size:12px;border:1px solid #e0e6ed;border-radius:8px;padding:10px;background:#f8fafb;color:#5a6e7e;margin:0 5px 10px;min-width:0}.desk-filter{background:#fff;padding:8px}.desk-queue #supportQueue{overflow:auto;flex:1;min-height:0}.queue-item{display:flex;gap:11px;width:100%;padding:16px 10px;border:0;border-bottom:1px solid #f0f3f6;border-radius:10px;background:#fff;text-align:left;color:#283f50}.queue-item.selected{background:#eef3f7}.queue-avatar{width:35px;height:35px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;background:#f3ecdb;color:#997b3b;font-size:12px;font-weight:600}.queue-content{flex:1;min-width:0}.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:5px}.queue-heading b{font-size:12px}.queue-heading small{font-size:10px;color:#95a2ad}.queue-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7b8c99;font-size:11px;margin:7px 0}.queue-state{font-size:10px;color:#9b7c3d}.queue-pager{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eef1f4;padding-top:12px;color:#8496a5;font-size:11px}.queue-pager button{border:0;background:#f3f6f8;padding:7px 10px;border-radius:6px;color:#587082;font-size:11px}
.desk-conversation{display:flex;flex-direction:column}.desk-conversation .support-head{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7edf2;gap:12px}.desk-conversation .support-head small{letter-spacing:0;margin:6px 0 0}.resolve-button{border:1px solid #d9e4e8;background:white;color:#55766b;font-size:12px;padding:9px 12px;border-radius:8px;white-space:nowrap}.desk-conversation .support-messages{flex:1;overflow:auto;min-height:0;background:#f8fafc;padding:18px 26px}.desk-conversation .conversation-empty{height:100%}.desk-conversation .support-compose{border-top:1px solid #e0e7ed;padding:18px 23px;background:#fff}.desk-body .support-actions>small{color:#9ba6b0;font-size:10px;margin-left:auto}.desk-profile{border-left:0;border-radius:0 16px 16px 0;padding:25px 21px;overflow:auto}.profile-eyebrow{font-size:9px;letter-spacing:2px;color:#b1985f}.desk-profile h2{font-size:17px;margin:7px 0 22px}.desk-profile dl{margin:0}.desk-profile dt{font-size:11px;color:#8998a5;margin:15px 0 6px}.desk-profile dd{font-size:12px;color:#2b4252;margin:0;overflow-wrap:anywhere}.desk-profile hr{border:0;border-top:1px solid #e8edf2;margin:25px 0}.desk-profile h3{font-size:13px}.desk-profile button{display:block;width:100%;text-align:left;font-size:12px;color:#60798b;border:1px solid #e5ebf1;background:#fafcfd;border-radius:8px;padding:11px;margin:8px 0}.desk-profile>small{font-size:10px;color:#9da9b3}.desk-auth{margin:16px 24px 0;padding:20px;background:#fff7e5;border:1px solid #eadab6;border-radius:12px;display:flex;align-items:center;justify-content:space-between}.desk-auth p{margin:6px 0 0;color:#8c7447}.primary-link{background:#253e50;color:#fff;border-radius:8px;padding:10px 16px;text-decoration:none}
#view-team .invite-card{padding:24px;border:1px solid #dfe5eb;border-radius:17px;background:#fff;box-shadow:0 5px 15px #14283d04}#view-team .invite-card>strong{display:block;font-size:24px;line-height:1.35;color:#223c50;overflow-wrap:anywhere;margin:12px 0}#view-team .invite-card>div:not(.team-milestone):not(.invite-share-row){display:flex;gap:10px;min-width:0;align-items:center}#view-team #inviteLink{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:12px;border-radius:8px;background:#f5f7f9;font-size:12px;color:#82929e}#view-team .invite-card button{padding:11px 14px;border-radius:8px;font-size:12px;flex-shrink:0}#view-team .invite-share-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}#view-team .invite-share-row>span{flex-basis:100%;font-size:10px;line-height:1.65;color:#81919f;margin:4px 0 0}#view-team .team-milestone{display:grid!important;grid-template-columns:1fr!important;gap:12px;padding-top:19px;margin-top:21px;border-top:1px solid #e6ebef;min-width:0}#view-team .team-milestone>div{display:flex;flex-direction:row;justify-content:space-between;gap:12px;align-items:center}#view-team .team-milestone>div span{font-size:12px;color:#6f8394;min-width:100px}#view-team #milestoneProgress{font-size:13px;color:#263f51;white-space:normal;word-break:normal}#view-team progress{width:100%;height:7px;border:0;border-radius:10px;overflow:hidden;appearance:none}#view-team progress::-webkit-progress-bar{background:#eef1f4}#view-team progress::-webkit-progress-value{background:#bb9a51}#view-team .team-milestone small{font-size:11px;line-height:1.7;color:#8193a0;width:auto!important}#view-team .team-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:12px;overflow:hidden;border:1px solid #e0e6ec;background:#fff}#view-team .team-stats>div{padding:17px 12px;min-width:0}#view-team .team-stats strong{font-size:22px;color:#213c50}#view-team .team-stats span{font-size:11px;color:#7d8f9c}
#view-team .reward-panel{display:block!important;padding:22px;background:#fff;border:1px solid #dfe6ed;border-radius:16px}#view-team .reward-panel>div:first-child{display:block!important}#view-team .reward-panel h2{font-size:17px;margin:7px 0 14px}#view-team #claimableReward{display:block;font-size:25px;line-height:1.3;color:#284155;margin:10px 0}#view-team .reward-note{display:block;font-size:12px;line-height:1.85;color:#7a8f9e;max-width:640px}#view-team #claimButton{margin-top:16px;border-radius:8px;font-size:12px}#view-team .reward-details{margin-top:18px;border-top:1px solid #e7ecf1;padding-top:14px}#view-team .reward-details summary{color:#8d7240;cursor:pointer;font-size:12px}#view-team .reward-rules{display:grid;grid-template-columns:1fr;gap:10px;border:0;margin-top:15px;font-size:12px;line-height:1.8;color:#6c8191}#view-team .tree-tools{display:flex;gap:10px;flex-wrap:wrap;width:100%}#view-team #teamSearch{flex:1;min-width:140px}#view-team #teamSearch,#view-team #teamLevel{padding:11px;border:1px solid #dce5ec;background:white;border-radius:8px;font-size:12px}#view-team .team-tree-section .section-head{display:flex;flex-direction:column;align-items:stretch;gap:14px}#view-team .tree-summary{border:0;background:#f1f5f8;padding:12px 15px;border-radius:10px;font-size:11px;line-height:1.8}#view-team #teamTree{border-radius:12px;overflow:hidden;margin-top:14px}.team-tree details{border-inline-start:1px solid #dbe5eb;margin-inline-start:10px;padding-inline-start:12px}.team-tree summary{padding:12px;cursor:pointer}.team-tree summary:focus-visible{outline:2px solid #c9a85b}
#panel-users input,#panel-users select{border-radius:8px;min-height:38px}#panel-users .data-table{border-radius:12px;overflow:auto}.local-test-switch{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #dce5ed;border-radius:8px;background:white;font-size:12px;color:#496276;margin:10px 0}.local-test-switch input{min-height:auto!important}
@media(min-width:1500px){.desk-grid{grid-template-columns:310px minmax(400px,1fr) 260px}}
.desk-grid{grid-template-columns:250px minmax(520px,1fr) 170px}@media(max-width:1150px){.desk-grid{grid-template-columns:250px minmax(280px,1fr)}.desk-profile{display:none}.desk-conversation{border-radius:0 16px 16px 0}}
@media(max-width:650px){.support-window.support-v2{inset:65px 10px 83px;width:auto;max-height:none}.support-v2 .support-messages{max-height:none;flex:1}.support-v2 .support-head{padding:15px 17px}#contactChoices{padding:22px}.desk-top{padding:0 16px;height:65px}.desk-brand small,.desk-top-actions>span{display:none}.desk-grid{display:flex;flex-direction:column;padding:12px;height:auto;min-height:calc(100dvh - 65px);gap:12px}.desk-queue{border:1px solid #dfe6ec;border-radius:13px;max-height:330px;flex-shrink:0;padding:15px}.desk-section-title{padding-bottom:10px}.desk-conversation{border:1px solid #dfe6ec;border-radius:13px;min-height:570px;height:75dvh;flex-shrink:0}.desk-conversation .support-head{padding:15px}.desk-conversation .support-messages{padding:15px}.desk-conversation .support-compose{padding:14px}.desk-body .support-actions>small{display:none}.desk-auth{margin:12px;gap:12px}.desk-auth p{font-size:11px}.primary-link{white-space:nowrap;font-size:12px}#view-team .invite-card,#view-team .reward-panel{padding:20px}#view-team .team-stats strong{font-size:20px}.team-milestone>div{flex-wrap:wrap}.team-milestone small{max-width:100%}}
@media(prefers-reduced-motion:reduce){.contact-channel{transition:none}}
.desk-profile details{margin-top:24px;padding-top:18px;border-top:1px solid #dbe3eb}.desk-profile summary{cursor:pointer;font-weight:700;margin-bottom:14px}.desk-profile details label{display:block;margin:12px 0 6px}.desk-profile details input,.desk-profile details textarea,.desk-profile details select{display:block;width:100%;min-width:0;padding:10px;border:1px solid #dbe3eb;border-radius:8px;margin-top:6px;font:inherit}.desk-profile details p{overflow-wrap:anywhere;font-size:12px;line-height:1.6}
@media(max-width:1100px){.desk-grid .desk-profile{display:block;grid-column:1/-1;max-height:none;overflow:visible}}


