.m-msg.m-msg--tb{gap:0;flex:1;min-height:calc(100dvh - 3.25rem)}
.m-msg.m-msg--tb:not(.is-notice)>:not(.m-tb-root){display:none!important}
.m-msg.m-msg--tb.is-notice>.m-tb-root{display:none}
.m-tb-root{display:flex;flex-direction:column;min-height:calc(100dvh - 3.25rem);margin:0 calc(-1 * var(--m-gutter,12px));background:#f5f5f5;color:#111}
.m-tb-list{display:flex;flex-direction:column;background:#fff}
.m-tb-row{display:flex;align-items:center;gap:.75rem;width:100%;padding:.875rem 1rem;border:0;border-bottom:1px solid #f0f0f0;background:#fff;text-align:left;cursor:pointer}
.m-tb-row:active{background:#fafafa}
.m-tb-av{flex:none;width:2.75rem;height:2.75rem;border-radius:50%;display:grid;place-items:center;font-size:.8125rem;font-weight:700;color:#fff}
.m-tb-av.cs{background:linear-gradient(180deg,#ff8a4c,#ff5000);font-size:.625rem;letter-spacing:0;white-space:nowrap}
.m-tb-av.nt{background:linear-gradient(180deg,#5b9dff,#2f6fed)}
.m-tb-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:.2rem}
.m-tb-top{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}
.m-tb-top b{font-size:.9375rem;font-weight:700;color:#111}
.m-tb-top small{flex:none;font-size:.6875rem;color:#999}
.m-tb-preview{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.m-tb-preview span{min-width:0;font-size:.75rem;color:#888;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-tb-badge{flex:none;min-width:1.05rem;height:1.05rem;padding:0 .3rem;border-radius:999px;background:#ff3b30;color:#fff;font-size:.625rem;font-weight:700;line-height:1.05rem;text-align:center}
.m-tb-chat{display:flex;flex-direction:column;flex:1;min-height:calc(100dvh - 3.25rem);background:#ededed}
.m-tb-chat-hd{flex:none;display:flex;align-items:center;gap:.5rem;padding:.55rem .75rem;background:#fff;border-bottom:1px solid #eee}
.m-tb-chat-hd button{flex:none;width:2rem;height:2rem;border:0;background:none;font-size:1.25rem;color:#333}
.m-tb-chat-hd b{font-size:.9375rem}
.m-tb-chat-hd small{display:block;font-size:.6875rem;color:#22c55e;font-weight:500}
.m-tb-thread{flex:1;min-height:0;overflow:auto;padding:.75rem .875rem 1rem;display:flex;flex-direction:column;gap:.75rem;-webkit-overflow-scrolling:touch}
.m-tb-sys{align-self:center;max-width:80%;padding:.25rem .5rem;border-radius:999px;background:rgba(0,0,0,.08);color:#666;font-size:.6875rem}
.m-tb-bubble{display:flex;align-items:flex-end;gap:.5rem;max-width:82%}
.m-tb-bubble.user{align-self:flex-end;flex-direction:row-reverse}
.m-tb-bubble.agent{align-self:flex-start}
.m-tb-face{flex:none;width:2rem;height:2rem;border-radius:50%;display:grid;place-items:center;font-size:.6875rem;font-weight:700;color:#fff;overflow:hidden;background-size:cover;background-position:center}
.m-tb-face img{width:100%;height:100%;object-fit:cover;display:block}
.m-tb-bubble.user .m-tb-face{background:#2f6fed}
.m-tb-bubble.agent .m-tb-face{background:#ff5000;font-size:.5625rem;white-space:nowrap}
.m-tb-col{min-width:0;display:flex;flex-direction:column;gap:.25rem}
.m-tb-bubble.user .m-tb-col{align-items:flex-end}
.m-tb-time{font-size:.625rem;color:#999}
.m-tb-bd{padding:.55rem .7rem;border-radius:.75rem;font-size:.875rem;line-height:1.5;word-break:break-word;white-space:pre-wrap}
.m-tb-bubble.agent .m-tb-bd{background:#fff;color:#111;border-top-left-radius:.25rem}
.m-tb-bubble.user .m-tb-bd{background:#2f6fed;color:#fff;border-top-right-radius:.25rem}
.m-tb-composer{flex:none;display:flex;align-items:flex-end;gap:.45rem;padding:.5rem .75rem calc(.5rem + env(safe-area-inset-bottom));background:#f7f7f7;border-top:1px solid #e8e8e8}
.m-tb-chat.plus-open .m-tb-composer,.m-tb-chat.sheet-open .m-tb-composer{padding-bottom:.5rem}
.m-tb-composer textarea{flex:1;min-height:2.25rem;max-height:6.5rem;padding:.5rem .7rem;border:0;border-radius:.75rem;background:#fff;font:inherit;font-size:.875rem;resize:none;outline:none}
.m-tb-composer button[type=submit]{flex:none;height:2.25rem;padding:0 .95rem;border:0;border-radius:.75rem;background:#ff5000;color:#fff;font-size:.8125rem;font-weight:700}
.m-tb-composer button:disabled{opacity:.45}
.m-tb-plus-btn{flex:none;width:2.25rem;height:2.25rem;border:1.5px solid #bbb;border-radius:50%;background:#f7f7f7;color:#444;font-size:1.35rem;line-height:1;padding:0}
.m-tb-chat.plus-open .m-tb-plus-btn{border-color:#888;transform:rotate(45deg)}
.m-tb-plus-panel{display:none;grid-template-columns:repeat(4,1fr);gap:.75rem 0;padding:.35rem .5rem 1rem;background:#f7f7f7;padding-bottom:calc(.75rem + env(safe-area-inset-bottom))}
.m-tb-chat.plus-open .m-tb-plus-panel{display:grid}
.m-tb-plus-item{display:flex;flex-direction:column;align-items:center;gap:.4rem;border:0;background:none;color:#333;font-size:.75rem}
.m-tb-plus-item i{width:3.15rem;height:3.15rem;border-radius:.85rem;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.06);position:relative}
.m-tb-ic::before,.m-tb-ic::after{content:"";position:absolute;inset:0;margin:auto}
.m-tb-ic.camera::before{width:1.35rem;height:1rem;border:.16rem solid #4b9bff;border-radius:.22rem}
.m-tb-ic.camera::after{width:.42rem;height:.42rem;border:.16rem solid #4b9bff;border-radius:50%;top:.12rem}
.m-tb-ic.album::before{width:1.15rem;height:.9rem;border:.16rem solid #22c55e;border-radius:.18rem;transform:rotate(-12deg)}
.m-tb-ic.album::after{width:1.15rem;height:.9rem;border:.16rem solid #22c55e;border-radius:.18rem;background:#fff}
.m-tb-ic.order::before{width:1.05rem;height:1.2rem;border:.16rem solid #ff8a4c;border-radius:.12rem}
.m-tb-ic.order::after{width:.55rem;height:.16rem;background:#ff8a4c;box-shadow:0 .28rem 0 #ff8a4c,0 .56rem 0 #ff8a4c}
.m-tb-ic.product::before{width:1.1rem;height:1.1rem;border:.16rem solid #a855f7;border-radius:.2rem}
.m-tb-ic.product::after{width:.45rem;height:.45rem;border:.14rem solid #a855f7;border-radius:50%;top:-.35rem;left:-.2rem}
.m-tb-ic.file::before{width:.95rem;height:1.2rem;border:.16rem solid #64748b;border-radius:.12rem .4rem .12rem .12rem}
.m-tb-ic.file::after{width:.4rem;height:.4rem;border-top:.16rem solid #64748b;border-right:.16rem solid #64748b;top:-.42rem;left:.32rem}
.m-tb-ic.location::before{width:.85rem;height:.85rem;border:.16rem solid #ef4444;border-radius:50% 50% 50% 0;transform:rotate(-45deg);top:-.1rem}
.m-tb-ic.location::after{width:.28rem;height:.28rem;background:#ef4444;border-radius:50%;top:-.1rem}
.m-tb-sheet{display:none;max-height:42vh;background:#f7f7f7;border-top:1px solid #e8e8e8;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}
.m-tb-chat.sheet-open .m-tb-plus-panel{display:none}
.m-tb-chat.sheet-open .m-tb-sheet{display:flex}
.m-tb-sheet-hd{display:flex;align-items:center;justify-content:space-between;padding:.55rem .9rem}
.m-tb-sheet-hd b{font-size:.875rem}
.m-tb-sheet-hd button{border:0;background:none;color:#ff5000;font-size:.8125rem}
.m-tb-sheet-body{overflow:auto;padding:0 .75rem .75rem;display:flex;flex-direction:column;gap:.5rem}
.m-tb-sheet-empty{padding:1.5rem;text-align:center;color:#888;font-size:.8125rem}
.m-tb-pick{display:flex;align-items:center;gap:.65rem;width:100%;padding:.55rem;border:0;border-radius:.7rem;background:#fff;text-align:left}
.m-tb-pick img,.m-tb-pick i,.m-tb-card img,.m-tb-card i{flex:none;width:2.6rem;height:2.6rem;border-radius:.45rem;object-fit:cover;background:#eee}
.m-tb-pick span,.m-tb-card span,.m-tb-file span,.m-tb-loc span{min-width:0;display:flex;flex-direction:column;gap:.15rem}
.m-tb-pick b,.m-tb-card b,.m-tb-file b,.m-tb-loc b{font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-tb-pick small,.m-tb-card small,.m-tb-file small,.m-tb-loc small{font-size:.6875rem;color:#888}
.m-tb-img{display:block;max-width:11rem}
.m-tb-img img{display:block;width:100%;border-radius:.6rem}
.m-tb-file,.m-tb-loc,.m-tb-card{display:flex;align-items:center;gap:.55rem;min-width:11rem;max-width:16rem;padding:.55rem .65rem;border-radius:.7rem;background:#fff;color:#111;text-decoration:none}
.m-tb-bubble.user .m-tb-file,.m-tb-bubble.user .m-tb-loc,.m-tb-bubble.user .m-tb-card{background:#2f6fed;color:#fff}
.m-tb-bubble.user .m-tb-file small,.m-tb-bubble.user .m-tb-loc small,.m-tb-bubble.user .m-tb-card small{color:rgba(255,255,255,.8)}
.m-tb-file i,.m-tb-loc-map{flex:none;width:2.2rem;height:2.2rem;border-radius:.4rem;background:#f1f5f9}
.m-tb-file i{background:linear-gradient(180deg,#e2e8f0,#cbd5e1)}
.m-tb-loc-map{background:linear-gradient(180deg,#bbf7d0,#86efac)}
.m-tb-bubble.user .m-tb-file i,.m-tb-bubble.user .m-tb-loc-map{background:rgba(255,255,255,.2)}
.m-tab[data-tb-badge]::after{content:attr(data-tb-badge);position:absolute;top:.2rem;right:calc(50% - 1.35rem);min-width:.9rem;height:.9rem;padding:0 .22rem;border-radius:999px;background:#ff3b30;color:#fff;font-size:.5625rem;font-weight:700;line-height:.9rem;text-align:center}
.m-tab{position:relative}

html:has(.sfdr-mask) .service-float,
html:has(.fdr-mask) .service-float,
html:has(.sfdr-ft) .service-float,
html:has(.fdr-ft) .service-float {
  display: none !important;
}

html.m-tb-chat-open nav.m-tabbar,
html.m-tb-chat-open .m-orb-dock,
html.m-tb-chat-open .m-orb,
html.m-tb-chat-open #cs-chat-root,
html.m-tb-chat-open .service-float,
html.m-tb-chat-open .m-totop,
html.m-tb-chat-open button[aria-label="回到顶部"],
html.m-tb-chat-open header.m-appbar {
  display: none !important;
}
html.m-tb-chat-open .m-shell.has-tabbar {
  --m-bottom-inset: 0px;
}
html.m-tb-chat-open .m-shell.has-appbar {
  --m-top-inset: var(--m-safe-t, env(safe-area-inset-top, 0px));
}
html.m-tb-chat-open,
html.m-tb-chat-open body {
  overflow: hidden !important;
  height: 100% !important;
}
html.m-tb-chat-open #m-main,
html.m-tb-chat-open .m-main--orb {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}
html.m-tb-chat-open .m-msg.m-msg--tb,
html.m-tb-chat-open .m-tb-root {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}
html.m-tb-chat-open .m-tb-chat {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #ededed;
}
html.m-tb-chat-open .m-tb-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
html.m-tb-chat-open .m-tb-chat-hd,
html.m-tb-chat-open .m-tb-composer,
html.m-tb-chat-open .m-tb-plus-panel,
html.m-tb-chat-open .m-tb-sheet {
  flex: none;
}
html.m-tb-chat-open .m-tb-chat-hd {
  padding-top: calc(.55rem + env(safe-area-inset-top, 0px));
}
html.m-tb-chat-open .m-tb-composer {
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
}
