@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url('../fonts/MaterialIcons-Regular.ttf') format('truetype');font-display:block}
.material-icons{font-family:'Material Icons';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}
html:has(.wg-page){height:100%;font-size:14px}
body.wg-page{height:100%;height:100dvh;margin:0;padding:0;overflow:hidden;background:#11131a;color:#252b39;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;--clr-primary-accent:#7161dc;--clr-primary-action:#7161dc;--clr-primary-action-hover:#5e4acb;--clr-body-background:#11131a;--clr-background-blue-gray-50:#f3f4f8;--clr-background-blue-gray-300:#fff;--wallpaper-url:none}
.wg-page #mountPoint{height:100%;padding:20px;box-sizing:border-box;background:radial-gradient(ellipse at 12% 0,rgba(129,91,209,.1),transparent 60%)}
.wg-page #app-container{max-width:1320px;height:100%;border:1px solid #323542;border-radius:18px;box-shadow:0 24px 80px #0004;overflow:hidden}
.wg-page #topic-view{width:100%;min-width:0;min-height:0}
.wg-page #topic-caption-panel{height:72px;min-height:72px;box-sizing:border-box;padding:12px 18px;border-bottom:1px solid #ebedf3;box-shadow:none;gap:8px;flex-shrink:0}
.wg-page #topic-caption-panel .avatar-box{height:42px;width:42px;min-width:42px}
.wg-page #topic-title-group{min-width:0;overflow:hidden}
.wg-page #topic-title{font-size:17px;font-weight:700;line-height:1.5;color:#252b39;overflow:hidden;text-overflow:ellipsis}
.wg-page #topic-last-seen{font-size:12px;color:#8c92a3}
.wg-page #messages-container{height:auto;flex:1;min-height:0}
.wg-page #messages-container::before{background-image:none;background-color:#f3f4f8}
.wg-page #messages-panel{overflow-x:hidden}
.wg-page #scroller{padding:16px 28px}
.wg-page .chat-box .bubble{box-shadow:0 2px 7px #252b3907}
.wg-page .chat-box .text-box{overflow-wrap:anywhere;word-break:break-word}
.wg-page .chat-box .author{display:flex;align-items:center;gap:6px;color:#6c7181;font-size:11px;max-width:100%;flex-wrap:wrap}
.wg-team-badge{display:inline-flex;align-items:center;background:#eeeafb;color:#6550b7;border:1px solid #ded7f6;border-radius:5px;padding:1px 6px;font-size:10px;line-height:1.6;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;font-weight:600}
.wg-page #send-message-wrapper{position:relative;flex-shrink:0;border-top:1px solid #e5e8ef;background:#fff;box-shadow:none;padding-bottom:env(safe-area-inset-bottom)}
.wg-page #send-message-panel{background:#fff;padding:10px 14px;gap:3px;box-sizing:border-box;min-height:72px}
.wg-page #send-message-panel>a,.wg-compose-tool{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;min-height:44px;width:40px;padding:0;border:0;border-radius:10px;background:transparent;color:#727b90;font-size:23px;cursor:pointer;text-decoration:none}
.wg-page #send-message-panel>a:hover,.wg-compose-tool:hover{background:#f0ecfc;color:#6a55c5}
.wg-page #send-message-input{min-width:24px;min-height:44px;max-height:156px;box-sizing:border-box;border:1px solid #e3e7ee;border-radius:12px;background:#f7f8fb;padding:11px 12px;font-family:inherit;font-size:14px;line-height:1.5;color:#252b39;resize:none}
.wg-page #send-message-input:focus{outline:2px solid #a99ce6;outline-offset:1px}
.wg-page #send-message-input::placeholder{color:#9ca3b4}
.wg-tools{display:flex;align-items:center;gap:3px;flex-shrink:0}
.wg-tools>button,.wg-home{border:0;background:transparent;min-width:40px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;color:#747b8c;cursor:pointer;font-family:inherit;text-decoration:none}
.wg-tools>button:hover,.wg-home:hover{background:#f1eefb;color:#715bc6}
.wg-home{font-weight:850;letter-spacing:-1px;color:#464158;font-size:16px}
.wg-page .wg-tools>button{padding:0;width:44px;min-width:44px;max-width:44px;box-shadow:none;text-transform:none}
.wg-page .wg-compose-tool{min-width:40px;max-width:40px;box-shadow:none;text-transform:none}
.wg-page .wg-voice-actions button{box-shadow:none;text-transform:none}
.wg-unread{border:0;border-radius:14px;background:#eee8ff;color:#7458bd;padding:5px 9px;font-family:inherit;font-size:11px;line-height:1.4;white-space:nowrap;cursor:pointer}
.wg-page button:focus-visible,.wg-page a:focus-visible{outline:2px solid #8a74d9;outline-offset:2px}
.wg-voice{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-height:58px;box-sizing:border-box;flex-shrink:0;padding:10px 20px;background:#faf9ff;border-bottom:1px solid #ece9f7;color:#5f5b73;font-size:13px}
.wg-voice.is-joined{background:#f1f9f6;border-color:#d7ece2;color:#427460}
.wg-voice-summary{display:flex;align-items:center;gap:8px;min-width:0}
.wg-voice-summary strong{font-size:12px;white-space:nowrap}
.wg-voice-summary small{color:#9995a8;font-size:11px;white-space:nowrap}
.wg-voice-dot{height:7px;width:7px;border-radius:50%;background:#a79acf;box-shadow:0 0 0 4px #e9e4f7;flex-shrink:0}
.is-joined .wg-voice-dot{background:#44a27b;box-shadow:0 0 0 4px #daf0e6}
.wg-voice-actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap}
.wg-voice-actions button{font-size:12px;min-height:36px;padding:6px 13px;border-radius:9px;border:1px solid #ded6f6;background:#fff;color:#7057b8;cursor:pointer;white-space:nowrap;font-family:inherit}
.wg-voice-actions button:disabled{opacity:.55;cursor:wait}
.wg-voice-actions .wg-voice-leave{color:#977078;border-color:#ecdadd;background:#fff}
.wg-voice-people{display:flex;gap:5px;flex-wrap:wrap;max-width:50%}
.wg-voice-people>span{display:inline-block;font-size:10px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid #d8e8df;border-radius:20px;background:#fff;padding:4px 8px}
.wg-voice-people>.is-speaking{border-color:#42a879;box-shadow:0 0 0 2px #42a87925}
.wg-voice-error{flex-basis:100%;color:#ba5664;font-size:12px}
.wg-audio-sinks{display:none}
.wg-dialog{width:min(540px,calc(100vw - 32px));max-height:80dvh;margin:auto;border:0;border-radius:18px;padding:0;color:#252b39;background:#fff;box-shadow:0 30px 100px #0004;overflow:auto;font-family:inherit}
.wg-dialog::backdrop{background:#1418298f;backdrop-filter:blur(3px)}
.wg-dialog header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;padding:18px 22px;background:#fff;border-bottom:1px solid #eceef3}
.wg-dialog h2{font-size:17px;margin:0;color:#262d3b}
.wg-dialog header button{font-size:27px;width:40px;min-height:40px;border:0;background:#f5f6fa;border-radius:10px;color:#6b7283;cursor:pointer}
.wg-dialog>section,.wg-dialog>form{padding:20px 22px}
.wg-dialog label,.wg-entry-card label{display:block;font-size:12px;color:#767d8e;text-align:left;margin:16px 0 7px}
.wg-dialog input,.wg-entry-card input{width:100%;height:46px;box-sizing:border-box;padding:10px 13px;border:1px solid #dfe3ec;background:#fafbfe;border-radius:10px;color:#252b39;font-family:inherit;font-size:14px;outline-color:#9c89da}
.wg-hint{color:#727b8c;font-size:12px;line-height:1.6;margin:10px 0 14px}
.wg-dialog .wg-primary{margin-top:20px}
.wg-profile-team{padding:12px 14px;background:#f6f4fc;color:#8b829f;font-size:12px;border-radius:10px;display:flex;justify-content:space-between}
.wg-profile-team strong{color:#7159b3}
.wg-results,.wg-members{list-style:none;padding:0;margin:0}
.wg-results li{border-bottom:1px solid #eff0f5}
.wg-results button{width:100%;background:transparent;border:0;text-align:left;padding:14px 0;color:#545d71;cursor:pointer;font-size:13px;font-family:inherit}
.wg-results span{display:block;overflow-wrap:anywhere;max-height:80px;overflow:hidden;line-height:1.6}
.wg-results small{display:block;color:#a3a8b5;margin-top:6px;font-size:10px}
.wg-members li{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #f0f1f5}
.wg-members li>div{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.wg-members strong{font-size:13px;font-weight:550;color:#5b6478}
.wg-members small{margin-left:auto;white-space:nowrap;font-size:10px;color:#9aa2af}
.wg-member-avatar{height:34px;width:34px;min-width:34px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#eeebf8;color:#8c7dba;font-weight:600}
.wg-empty{text-align:center;color:#a5abb6;padding:25px 8px;font-size:13px}
.wg-gate{height:100%;position:relative;display:flex;align-items:center;justify-content:center;color:#fff;box-sizing:border-box;padding:60px 20px;overflow:auto}
.wg-brand{position:absolute;top:12px;left:16px;color:#fff;text-decoration:none;font-size:24px;font-weight:850;letter-spacing:-2px}
.wg-brand>span{letter-spacing:1px;font-size:12px;color:#aaa6ba;font-weight:400;margin-left:10px}
.wg-entry-card{width:min(400px,100%);box-sizing:border-box;border-radius:22px;padding:32px;background:#fff;color:#293044;box-shadow:0 30px 100px #0003;text-align:center}
.wg-entry-icon{width:56px;height:56px;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;background:#f1ecfc;color:#8669c8;border-radius:18px;font-size:28px}
.wg-entry-card h1{font-size:22px;letter-spacing:.3px;margin:0 0 12px;font-weight:650}
.wg-entry-card p{font-size:13px;color:#70798b;line-height:1.75;margin:0 0 20px}
.wg-primary{display:flex;align-items:center;justify-content:center;min-height:46px;box-sizing:border-box;border:0;border-radius:11px;background:#7961c5;color:#fff;font-family:inherit;font-size:14px;font-weight:550;padding:10px 18px;cursor:pointer;width:100%;text-decoration:none}
.wg-primary:disabled{opacity:.55;cursor:wait}
.wg-entry-card .wg-primary{margin-top:22px}
.wg-entry-card small{display:block;color:#727b8c;font-size:11px;line-height:1.7;margin-top:12px}
.wg-back{display:inline-block;margin-top:22px;color:#9f98ae;font-size:12px;text-decoration:none}
.wg-notice{font-size:12px;line-height:1.6;color:#9c6e77;background:#faf0f1;border-radius:9px;padding:10px 12px;margin-top:14px;overflow-wrap:anywhere}
.wg-compose-picker{position:absolute;bottom:100%;left:12px;right:12px;z-index:5;padding:12px;box-shadow:0 -8px 35px #29304417;border:1px solid #e6e3ee;border-radius:13px;background:#fff;display:flex;gap:5px;flex-wrap:wrap;max-height:200px;overflow:auto}
.wg-compose-picker button{font-family:inherit;font-size:20px;min-width:42px;min-height:42px;padding:5px 9px;border:0;background:#f8f7fc;border-radius:8px;cursor:pointer;color:#796a9b}
.wg-compose-picker[aria-label="提及群成员"] button,.wg-compose-picker .wg-picker-close{font-size:12px}
.wg-compose-picker .wg-picker-close{margin-left:auto;background:#f0f1f5;color:#939aab}
@media(max-width:700px){
  .wg-page #mountPoint{padding:0}
  .wg-page #app-container{border:0;border-radius:0;height:100dvh}
  .wg-page #topic-caption-panel{padding:10px 12px;min-height:64px;height:64px;gap:6px}
  .wg-page #topic-caption-panel .avatar-box{height:36px;width:36px;min-width:36px}
  .wg-page #topic-title{font-size:15px}
  .wg-page #topic-last-seen{font-size:10px}
  .wg-page #topic-caption-panel #topic-users{display:none}
  .wg-tools{gap:0}
  .wg-tools>button,.wg-home{min-width:44px;width:44px}
  .wg-home{display:none}
  .wg-tools .material-icons{font-size:21px}
  .wg-voice{padding:8px 14px;gap:7px 10px;min-height:54px}
  .wg-voice-summary{gap:6px}
  .wg-voice-summary small{font-size:10px}
  .wg-voice.is-joined .wg-voice-summary small{display:none}
  .wg-voice-people{max-width:100%;order:3;flex-basis:100%;max-height:72px;overflow:auto}
  .wg-voice-actions button{padding:5px 9px;font-size:11px;min-height:36px}
  .wg-page #scroller{padding:12px 9px}
  .wg-page .chat-box .bubble{max-width:calc(100vw - 78px)}
  .wg-page #send-message-panel{padding:7px 6px;gap:0;min-height:62px}
  .wg-page #send-message-panel>a,.wg-compose-tool{width:44px;flex-basis:44px;min-width:44px;min-height:44px;font-size:21px}
  .wg-page .wg-compose-tool{max-width:44px;min-width:44px}
  .wg-page #send-message-panel .material-icons{min-width:28px;font-size:23px}
  .wg-page #send-message-input{padding:10px 9px;font-size:14px;border-radius:10px}
  .wg-dialog{max-height:86dvh;border-radius:16px}
  .wg-dialog header{padding:13px 16px}
  .wg-dialog>section,.wg-dialog>form{padding:16px}
  .wg-entry-card{padding:28px 24px}
  .wg-entry-card h1{font-size:20px}
}

/* Compact mature single-group layout. */
body.wg-page{background:#edf1f4;--clr-bubble-left-bg:#fff;--clr-bubble-right-bg:#ddebfa;--clr-bubble-left-bg-flash:#e6edf5;--clr-bubble-right-bg-flash:#c4dcf5;--clr-background-blue-gray-50:#edf1f4;--message-text-size:14px}
body.wg-page::before{display:none}
.wg-page #mountPoint{padding:0;background:#edf1f4;min-width:0}
.wg-page #app-container{max-width:none;width:100%;min-width:0;border:0;border-radius:0;box-shadow:none;height:100dvh}
.wg-page #topic-view,.wg-page #messages-container{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.wg-page #topic-caption-panel{height:56px;min-height:56px;padding:7px 16px;gap:8px;background:#fff}
.wg-page #topic-caption-panel .avatar-box{width:32px;height:32px;min-width:32px}
.wg-page #topic-title{font-size:15px;line-height:20px}
.wg-page #topic-last-seen{font-size:11px;line-height:15px}
.wg-page #topic-users,.wg-page .wg-home{display:none}
.wg-page .wg-tools{gap:6px}
.wg-page .wg-tools>button{width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px;border:0;padding:0;box-shadow:none;border-radius:5px;background:transparent}
.wg-page .wg-tools .material-icons{font-size:21px}
.wg-page .wg-voice{height:38px;min-height:38px;padding:2px 16px;gap:8px;flex-wrap:nowrap;background:#f8fafc;border-color:#e7ecf1;font-size:12px;overflow:hidden}
.wg-page .wg-voice-summary{flex-shrink:0;gap:7px}
.wg-page .wg-voice-summary strong{font-size:12px;font-weight:500}
.wg-page .wg-voice-summary small{font-size:11px}
.wg-page .wg-voice-actions{flex-shrink:0;flex-wrap:nowrap}
.wg-page .wg-voice-actions button{min-height:28px;padding:3px 10px;border-radius:5px;font-size:11px;border:0;background:transparent;color:#6483a3;box-shadow:none}
.wg-page .wg-voice-people{order:0;flex-basis:auto;flex-wrap:nowrap;overflow:hidden;max-height:28px;min-width:0;max-width:50%}
.wg-page .wg-voice-people>span{font-size:10px;max-width:100px;padding:2px 6px;background:transparent;border:0}
.wg-page #messages-container::before{background:#edf1f4}
.wg-page #messages-panel{min-width:0;width:100%;max-width:100%;padding:8px 20px;box-sizing:border-box;overflow-x:hidden}
.wg-page #scroller{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:0 0 12px;margin:0}
.wg-page #scroller.chat-box.group{margin-left:0}
.wg-page #scroller>li{min-width:0;max-width:100%}
.wg-page .chat-box li.single,.wg-page .chat-box li.last{margin:3px 0 7px}
.wg-page .chat-box li.first,.wg-page .chat-box li.middle{margin:2px 0}
.wg-page .chat-box .bubble{padding:7px 10px;min-width:0;max-width:min(680px,calc(100vw - 88px));border-radius:7px;filter:none;box-shadow:0 1px 2px #0000000b}
.wg-page .chat-box .author{font-size:12px;line-height:16px;gap:5px;margin:0}
.wg-page .wg-team-badge{font-size:10px;padding:0 4px;border-radius:3px;background:#e8edf5;border:0;color:#62778d}
.wg-page .chat-box .avatar-box{height:30px;width:30px;min-width:30px}
.wg-page #send-message-wrapper{background:#fff;border-top:1px solid #e5eaf0}
.wg-page #send-message-panel{min-height:60px;padding:8px 12px;gap:4px;background:#fff}
.wg-page #send-message-panel>a,.wg-page .wg-compose-tool{width:32px;min-width:32px;max-width:32px;flex-basis:32px;min-height:36px;height:36px;border:0;padding:0;border-radius:5px;box-shadow:none;background:transparent}
.wg-page #send-message-panel .material-icons{font-size:22px;min-width:22px}
.wg-page #send-message-input{min-height:38px;max-height:128px;padding:8px 12px;border:0;border-radius:7px;background:#f2f5f8;font-size:14px;line-height:21px}
@media(max-width:700px){.wg-page #topic-caption-panel{padding:7px 12px}.wg-page #messages-panel{padding:8px}.wg-page #send-message-panel{padding:7px 8px}.wg-page .wg-voice{padding:2px 12px}.wg-page .wg-voice-summary small{font-size:10px}.wg-page .wg-voice-people{max-width:24%}.wg-page .wg-voice-actions button{padding:3px 7px}.wg-page .wg-unread{font-size:10px;padding:3px 6px}}

.wg-page #pinned-wrapper{height:38px;min-height:38px;flex-shrink:0;width:100%;max-width:100%;box-sizing:border-box;margin:0;padding:0 14px;background:#fff;border-bottom:1px solid #e5eaf0}
.wg-page #pinned-wrapper .pinned{flex:1;width:auto;min-width:0;height:100%;padding:0 9px;background:#fff;font-size:12px}
.wg-page #pinned-wrapper .pinned>p{margin:0;min-width:0;max-width:100%;overflow:hidden}
.wg-page #pinned-wrapper .cancel{display:flex;align-items:center;justify-content:center;width:28px;min-width:28px}
.wg-page #pinned-wrapper .material-icons{font-size:18px}

/* Native right-bubble tail and its menu arrow need real layout space. */
.wg-page .chat-box .right .bubble{margin-right:14px}
.wg-page .chat-box .menuTrigger{width:24px;min-width:24px}

.wg-page #go-to-latest.hidden{display:none}

/* Personal identity stays visible; only the platform controls the team prefix. */
.wg-page .wg-tools>button.wg-self-profile{display:flex;width:auto;max-width:210px;gap:7px;padding:0 7px;text-align:left}
.wg-self-profile img,.wg-self-number{height:28px;width:28px;flex:0 0 28px;border-radius:7px;object-fit:cover;background:#e8edf5;color:#62778d;display:grid;place-items:center;font-size:11px}
.wg-self-label{display:flex;gap:5px;font-size:11px;min-width:0;align-items:center}.wg-self-label b{font-weight:500;color:#62778d;white-space:nowrap}.wg-self-label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:95px}
.wg-profile-avatar-row{display:flex;align-items:center;gap:16px;margin:20px 0 12px}.wg-profile-avatar{height:72px;width:72px;background:#e8edf5;border-radius:16px;display:grid;place-items:center;color:#62778d;font-size:22px;overflow:hidden}.wg-profile-avatar img,.wg-member-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.wg-dialog .wg-avatar-picker{margin:0;display:inline-flex;padding:8px 12px;border:1px solid #dfe3ec;border-radius:7px;cursor:pointer;background:#f8fafc;color:#62778d}.wg-dialog #wg-avatar-file{width:1px;height:1px;position:absolute;opacity:0;padding:0}.wg-avatar-picker:has(+input:focus-visible){outline:2px solid #8a74d9}.wg-avatar-clear{display:block;margin-top:8px;background:transparent;border:0;color:#7b8495;font-size:12px;cursor:pointer}
@media(max-width:700px){.wg-page .wg-tools>button.wg-self-profile{max-width:140px;padding:0 3px}.wg-self-label{gap:2px;flex-direction:column;align-items:flex-start;font-size:10px}.wg-self-label>span{max-width:72px}.wg-self-profile img,.wg-self-number{width:26px;height:26px;flex-basis:26px}}

body.wg-page .wg-voice{display:none}
