.xc-attention{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:5px 14px;background:var(--panel,#fff);border-bottom:1px solid #dce5e9}
.xc-attention button,.replyref{border:0;background:transparent;text-align:left;color:#26759e;cursor:pointer}
.xc-attention button{padding:4px 7px;font-size:12px}.xc-attention button:last-child{margin-left:auto}
.xc-noteplayer{display:flex;align-items:center;flex-wrap:wrap;gap:7px;max-width:100%;min-width:140px}
.xc-noteplayer audio{max-width:100%;height:36px}.xc-round-note{width:min(220px,65vw);height:min(220px,65vw);border-radius:50%;object-fit:cover;background:#243440}
.xc-wave{display:flex;align-items:center;gap:2px;height:32px}.xc-wave i{display:inline-block;background:#4b99b9;width:2px;border-radius:2px}
.replyref:focus-visible,.xc-attention button:focus-visible{outline:2px solid #388cb4}
.threadname{padding:0;text-align:left}.tgstatus,.premium{display:inline-flex;align-items:center;justify-content:center;vertical-align:-2px;width:1.12em;height:1.12em;margin-left:4px;line-height:1;color:#3995d3;font-family:"Segoe UI Emoji",sans-serif}.tgstatus>img,.tgstatus>video,.tgstatus>svg{height:100%;width:100%;object-fit:contain}.premium{color:#6d89e4}.senderlink,.origin-label{display:block;text-align:left;color:#307f97;font-size:13px;font-weight:650;padding:0 1px 3px}.emojiheading{margin:13px 0 7px;color:#5a7081;font-size:14px}.emojirow{gap:4px}.emojirow button{background:transparent}.forward-dest{display:flex;align-items:center;gap:9px}.forward-dest .avatar{width:31px;height:31px;font-size:16px}.forward-dest .textlink{margin-left:auto}.forward-sample{background:#eff8ec;border-radius:13px;padding:12px;margin:15px 0}.forward-sample .photo-button{pointer-events:none}.forward-sample #previeworigin{display:block;color:#3482a9;font-weight:650;font-size:14px;margin-bottom:5px}.forward-sample [hidden]{display:none!important}.forward-sample p{white-space:pre-wrap}.tg-profile-head{text-align:center;margin:8px 0 20px}.tg-profile-head .avatar{width:82px;height:82px;font-size:36px}.tg-profile-head h2{margin:9px 0 3px}.tg-profile-head p,.profilerow small{color:#72808a;font-size:14px}.profilerow{display:flex;align-items:center;gap:6px;border-top:1px solid #e3e8eb;padding:12px 0}.profilerow>div{flex:1}.profilerow small{display:block}.profilemedia{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:9px}.profilemedia .poster{width:100%;height:76px;object-fit:cover}.profilemedia .muted{grid-column:1/-1}.photo-loading{min-height:100px;background:#d3e2d4}.profiledrawer[open]{inset:0 0 0 auto;height:100dvh;max-height:100dvh;max-width:min(370px,100vw);border-radius:0;margin:0}.profiledrawer::backdrop{background:#1933401f;backdrop-filter:none}
#desk{--primary:#2687c7;--dark:#18394d;--muted:#637685;--line:#e0e6e9}
.chatmode .thread{--paper:linear-gradient(125deg,#c8dcb3 0%,#d5deb0 26%,#a9d2aa 55%,#badacf 100%);background-image:url(./chat-pattern.svg),var(--paper);background-attachment:local}
.chatmode .log{background:transparent}.chatmode .threadhead{height:65px;padding-top:8px;padding-bottom:8px}.chatmode .threadhead .avatar{width:44px;height:44px}.chatmode .messages{max-width:900px;margin:auto;padding:18px clamp(14px,4%,44px) 8px;gap:9px}.chatmode .day{color:#fff;background:#648b66b8;box-shadow:0 1px 2px #3b633d25}.chatmode .bubble{background:#fff;color:#202a2f;font-size:16px;border:0;box-shadow:0 1px 2px #2f493e2c}.chatmode .mine .bubble{background:#e3ffd4}.chatmode .msg{max-width:min(86%,560px)}.chatmode .bubble time{color:#779078}.chatmode .mine .bubble time{color:#50865a}.chatmode .composer{width:min(850px,94%);align-self:center;padding:7px 0 10px;border:0;background:transparent}.chatmode .inputline{align-items:center;background:white;border-radius:14px;box-shadow:0 2px 6px #4b6c5329;padding:4px 5px 4px 9px}.chatmode .sendbtn{background:#3295d7;border-radius:50%;width:42px;height:42px}.chatmode .composefoot{color:#3b6052;padding:0 5px}.chatmode .composefoot kbd{color:#406459}.chatmode .inputline textarea{font-size:16px}.chatmode .composehint{background:#f1f8f0;margin-bottom:3px}.chatmode .thread .syncnote{padding:7px 12px;background:#ffffffdc;border-radius:10px}.chatmode .avatar.round,.tg-profile-head .avatar,.forward-dest .avatar{color:#fff;font-family:system-ui,"Microsoft YaHei",sans-serif;font-weight:550;background:linear-gradient(145deg,var(--light,#efb263),var(--deep,#d9764f))}.chatmode .avatar.t1{--light:#72bfdf;--deep:#478cc9}.chatmode .avatar.t2{--light:#78caa6;--deep:#54a875}.chatmode .avatar.t3{--light:#bd9fe7;--deep:#9674ce}.chatmode .avatar.t4{--light:#839eda;--deep:#647ec7}.chatmode .avatar.t5{--light:#eed388;--deep:#d19e55}.chatmode .avatar.t6{--light:#e9abae;--deep:#d48293}.chatmode .avatar.t7{--light:#78cabb;--deep:#469d9a}.chatmode .avatar:before,.chatmode .avatar:after{display:none}
.chatmode .top{height:49px}.chatmode .brandmark{background:#388cc6}.chatmode .rail{background:#f7f9fa}.chatmode .inbox{width:clamp(292px,26vw,386px)}.chatmode .list-head{padding:17px 14px 0}.chatmode .list-head h1{font-size:21px}.chatmode .search{background:#f3f5f6;border-color:#e3e7ea;border-radius:24px;padding:9px 12px;margin:12px 0 5px}.chatmode .tabs{border-bottom:1px solid var(--line);gap:4px}.chatmode .tab{border:none;border-radius:0;padding:10px 12px 9px;font-size:14px;color:#687a86;position:relative}.chatmode .tab.active{background:transparent;color:#2688ce}.chatmode .tab.active:after{content:"";height:3px;position:absolute;bottom:0;left:7px;right:7px;background:#3295d7;border-radius:3px 3px 0 0}.chatmode .chatlist{padding:6px}.chatmode .chatrow{min-height:72px;margin:0;padding:10px;gap:12px}.chatmode .chatrow .avatar{width:49px;height:49px}.chatmode .chatrow.active{background:#408fca}.chatmode .chatrow.active:before{display:none}.chatmode .chatrow.active .rowtop strong,.chatmode .chatrow.active .rowbottom span,.chatmode .chatrow.active time{color:white}.chatmode .chatrow.active .premium{color:#fff}.chatmode .count{border-radius:20px;background:#4c9fd9}.chatmode .chatrow.active .count{background:white;color:#308ccc}.chatmode .rowtop strong{font-size:16px}.chatmode .rowbottom span:first-child{font-size:14px}.chatmode .navitem.active{color:#257fb6;background:#e2f1fb}.chatmode .navitem .pill{background:#338fd0}
@media(min-width:851px){.chatmode .rail{width:93px}.chatmode .brand{justify-content:center;padding:0;height:67px}.chatmode .brand>div,.chatmode .navblock p,.chatmode .railfoot #profile>div,.chatmode .railfoot #profile>.ic{display:none}.chatmode .navblock{padding:8px 5px}.chatmode .navitem{flex-direction:column;gap:4px;padding:10px 1px;font-size:12px;text-align:center;position:relative}.chatmode .navitem .pill{position:absolute;top:3px;right:16px;height:16px;line-height:16px;min-width:16px;font-size:10px}.chatmode .manage-nav,.chatmode #manage-nav{border-top:1px solid #e1e7ea;margin-top:16px;padding-top:10px}.chatmode .railfoot{padding:8px 4px}.chatmode .railfoot #mode-link{padding:8px 0;flex-direction:column;gap:3px;font-size:11px}.chatmode .railfoot #profile{justify-content:center}.chatmode .railfoot .profilepic{border-radius:50%}}
@media(max-width:650px){.chatmode .inbox{width:100%}.chatmode .threadhead{height:60px}.chatmode .threadhead .avatar{width:37px;height:37px}.chatmode .msg{max-width:95%}.chatmode .messages{padding:14px 10px 8px}.chatmode .composer{width:97%;padding:4px 0 max(6px,env(safe-area-inset-bottom))}.chatmode .composefoot{font-size:11px}.chatmode .top{height:45px}.chatmode .chatrow{min-height:70px}}
.agent-login .rail,.agent-login .top{display:none}
.agent-login #main{display:grid;place-items:center;min-height:100dvh;padding:22px;background:#eef3f6}
.agent-login .loginbox{box-sizing:border-box;width:min(405px,100%);margin:0;padding:36px;border-color:#d8e2e8;box-shadow:0 7px 30px #2d53690d}
.agent-login .loginbox h1{font-size:25px;color:#203a49}
.agent-login .loginbox input:focus{outline:2px solid #62a5ce;outline-offset:1px}
.agent-login .loginbox .primary{background:#267daf;color:white}
.agent-qr{width:min(255px,100%);height:auto;margin:0 auto}
#agent-pair [hidden]{display:none!important}
#agent-pair form{display:grid;gap:12px}
.folder-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0 10px}
.folder-bar select{max-width:min(240px,100%);min-width:82px;background:white;border:1px solid #cbd9df;border-radius:7px;padding:6px;font:inherit;color:#284356}
.inbox .folder-bar{font-size:13px;gap:8px}.inbox .folder-bar select{min-width:0;flex:1}.folder-bar .textlink{white-space:nowrap}
.folder-actions{display:flex;gap:18px}.folder-members{max-height:42vh;overflow:auto}.form .folder-member{display:flex;align-items:center;flex-direction:row;gap:10px;padding:8px 3px;overflow-wrap:anywhere}
.folder-member[hidden]{display:none!important}.folder-member small{display:block;color:#637882}.form .folder-member input{width:17px;height:17px;flex:0 0 auto}


.xc-tool-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(152px,1fr));gap:8px;margin:12px 0;max-height:58vh;overflow:auto}
.xc-tool-menu .secondary{min-height:42px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.xc-rec-preview{width:180px;height:180px;border-radius:50%;object-fit:cover;justify-self:center;background:#172b38}
.form progress{width:100%;accent-color:#2a87b8}
.form textarea{min-height:70px;padding:8px;resize:vertical}
.tg-text{white-space:pre-wrap;overflow-wrap:anywhere}.tg-text:empty{display:none}
.tg-card{display:grid;gap:4px;padding:6px 10px;margin:4px 0;border-left:3px solid #2992b9}.tg-card a,.tg-text a{color:#176b9b}
.tg-hidden,.tg-quotation{margin:3px 0;padding:3px 8px;border-radius:4px;background:#dce8ea;color:#203c49}.tg-hidden summary,.tg-quotation summary{cursor:pointer}
.tg-quotation{display:block;border-left:3px solid #538da0}.tg-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:6px}.tg-gallery-item{display:grid;align-content:start;overflow-wrap:anywhere}.tg-gallery-item img{width:100%;height:75px;object-fit:cover}#live-typing{color:#16859a;font-style:normal}
.tg-album{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;max-width:min(76%,460px);width:fit-content;padding:4px;border-radius:14px;background:#fff;overflow:hidden;align-self:flex-start}.tg-album.mine{margin-left:auto;background:#ddf3db}.tg-album .msg,.tg-album .bubble{align-self:stretch;max-width:100%;width:100%;min-width:0;margin:0;box-shadow:none;background:transparent}.tg-album .photo-button{width:100%}.tg-album .poster{height:130px;width:100%;object-fit:cover}.tg-media-cover{min-height:92px;min-width:135px;background:#dde6ed;color:#334b60}.tg-album .moremsg{position:absolute;right:0;top:0}.tg-album .msg{position:relative}.tg-card span{overflow-wrap:anywhere}

.web-preview {display:grid; gap:.25rem; text-decoration:none; color:inherit; overflow:hidden}
.web-preview img {max-width:100%; object-fit:cover; border-radius:6px}
.web-preview.web-large img,.web-preview.web-auto img {width:100%; max-height:18rem}
.web-preview.web-small {grid-template-columns:1fr auto}
.web-preview.web-small img {width:4.5rem;height:4.5rem;grid-column:2;grid-row:1 / span 2}
.web-preview.web-small strong,.web-preview.web-small span {grid-column:1}

.tg-text time.tg-formatted-date{display:inline;float:none;margin:0;color:inherit;font:inherit}

.message-sticker{display:grid;place-items:center;width:min(160px,42vw);height:160px;font-size:2rem}.message-sticker video,.message-sticker img,.message-sticker svg{width:100%;height:100%;object-fit:contain}

#inline-candidates:not(:empty),#bot-keyboard:not(:empty){display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;padding:.5rem .75rem;max-height:11rem;overflow:auto;background:var(--panel,#fff);border-bottom:1px solid #cbd9dd}
#inline-candidates img{vertical-align:middle;object-fit:cover;margin-right:.4rem}
#bot-keyboard>div{display:flex;width:100%;gap:.4rem}#bot-keyboard>div button{flex:1}
.xc-bot-preview iframe{width:100%;height:min(54vh,28rem);border:0}.xc-bot-preview :is(img,video){display:block;max-width:100%;max-height:54vh;margin:auto}

.xc-mini-app{position:fixed;z-index:900;right:1rem;bottom:1rem;width:min(26rem,95vw);max-height:92vh;display:flex;flex-direction:column;color:#182735;background:white;border:1px solid #c2d1da;border-radius:.7rem;overflow:hidden;box-shadow:0 8px 32px #24374735}
.xc-mini-app header{display:flex;align-items:center;gap:.4rem;padding:.5rem .7rem;background:#edf4f7}.xc-mini-app strong{margin-right:auto;overflow:hidden;text-overflow:ellipsis}.xc-mini-app button{border:0;border-radius:.35rem;padding:.35rem .55rem;cursor:pointer}.xc-mini-app iframe{width:100%;height:min(65vh,38rem);border:0}.xc-mini-app iframe[hidden]{display:none}.xc-mini-app.folded{width:auto}

.topic-only #desk{grid-template-columns:1fr}.topic-only .rail,.topic-only #mobile-menu{display:none}
.topic-workspace{display:grid;align-content:center;justify-items:center;gap:12px;padding:24px}
.xc-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:12px 0}
.xc-month-grid small{text-align:center}.xc-month-grid button{position:relative;min-height:42px;border:1px solid #cad9df;border-radius:6px;overflow:hidden;background:#e7f3fb;color:#153c57}
.xc-month-grid button:disabled{background:transparent;border-color:transparent;color:#909da6}
.xc-month-grid img{display:block;width:100%;height:32px;object-fit:cover}

html[data-xc-theme="dark"] { color-scheme:dark; --xc-surface:#202e3a; --xc-inset:#17222c; --xc-edge:#3c4c58; --xc-ink:#e5edf3; --xc-dim:#b4c4d0 }
html[data-xc-theme="dark"] body,html[data-xc-theme="dark"] #desk {background:var(--xc-inset);color:var(--xc-ink);--primary:#80cef2;--muted:var(--xc-dim);--line:var(--xc-edge);--dark:var(--xc-ink)}
[data-xc-theme="dark"] :is(.rail,.top,.work,.inbox,.threadhead,.composer,.listfoot,.sectionpage,.card,.detail,dialog,.modalhead,.modalfoot,.formcard,.login-card,.empty,.list-head,.chatlist,.search,.inputline,.xc-tool-menu,.tg-quotation,.tg-hidden,fieldset) {background:var(--xc-surface);color:var(--xc-ink);border-color:var(--xc-edge)}
[data-xc-theme="dark"] :is(.thread,.log,.login-page,.auth-screen,.login-screen,#login-screen) {background:var(--xc-inset);color:var(--xc-ink)}
[data-xc-theme="dark"] :is(input,textarea,select,option,.secondary,.topbutton,.bubble,.iconbtn,.xc-tool-menu button,.modalcard,.auth-card) {background:var(--xc-surface);border-color:var(--xc-edge);color:var(--xc-ink)}
[data-xc-theme="dark"] :is(.chatrow.active,.navitem.active,.mine .bubble,.tab.active,[aria-pressed="true"]) {background:#294960;color:#edf7ff}
[data-xc-theme="dark"] :is(.chatrow:hover,.iconbtn:hover,.secondary:hover,.xc-tool-menu button:hover) {background:#354c5d}
[data-xc-theme="dark"] :is(h1,h2,h3,strong,label,.threadname strong,.brand strong,.rowtop strong,.empty strong,.crumb strong) {color:var(--xc-ink)}
[data-xc-theme="dark"] :is(.note,.rowbottom,.rowtop time,small,.bubble time,.threadname small,.composefoot,.crumb,.navitem,.brand small,.empty p) {color:var(--xc-dim)}
[data-xc-theme="dark"] a {color:#86d4fa}
[data-xc-theme="dark"] :is(.primary,.sendbtn) {background:#337ca6;color:white}

html[data-xc-theme="dark"] .agent-login #main {background:var(--xc-inset)}
html[data-xc-theme="dark"] :is(.loginbox,.loginbox h1,.folder-bar select,#modal-content,#modal header,#modal footer) {color:var(--xc-ink);background:var(--xc-surface);border-color:var(--xc-edge)}

html[data-xc-theme] body {font-family:var(--xc-font), "Microsoft YaHei",sans-serif}
html[data-xc-accent]:not([data-xc-accent="default"]) #desk {--primary:var(--xc-accent)}
html[data-xc-accent]:not([data-xc-accent="default"]) :is(.primary,.sendbtn,.brandmark,.count,.tab.active:after) {background-color:var(--xc-accent);color:var(--xc-accent-ink)}
html[data-xc-accent]:not([data-xc-accent="default"]) :is(.chatrow.active,.navitem.active) {background-color:color-mix(in srgb,var(--xc-accent) 23%,var(--xc-surface,white))}
html[data-xc-accent]:not([data-xc-accent="default"]) :is(input,textarea,button,select):focus-visible {outline-color:var(--xc-accent)}

@keyframes xc-spoiler-grain{to{background-position:9px 6px}}
html[data-motion-spoilers="on"] :is(.tg-hidden:not([open])>summary,.tg-media-cover){
  background-image:radial-gradient(currentColor .55px,transparent .8px);
  background-size:9px 6px;animation:xc-spoiler-grain 2.5s linear infinite
}
