/* UCMU_CHAT_STYLE_OWNER: media, composer, thread interactions */
/* UCMU_CHAT_MEDIA_TRIGGER_OWNER */
.ucmu-chat-image,.ucmu-chat-video-open{position:relative;display:block;width:100%;border:0;border-radius:16px;overflow:hidden;padding:0;background:transparent;box-shadow:none;cursor:zoom-in}
.ucmu-chat-image img,.ucmu-chat-video-open video{display:block;width:100%;height:auto;max-height:420px;object-fit:cover}
.ucmu-chat-video-open>span{position:absolute;left:50%;top:50%;width:54px;height:54px;display:grid;place-items:center;border-radius:50%;transform:translate(-50%,-50%);background:rgba(15,18,22,.7);color:#fff;font-size:20px;box-shadow:0 12px 30px rgba(0,0,0,.28)}
.ucmu-chat-message .ucmu-chat-image,.ucmu-chat-message .ucmu-chat-video-open{justify-self:stretch}

.ucmu-chat-message.has-voice-media, .ucmu-chat-message.has-circle-video{padding:0;background:transparent;border:0;box-shadow:none;overflow:visible;}.ucmu-chat-message.has-voice-media small, .ucmu-chat-message.has-circle-video small{display:inline-flex;margin-top:5px;}.ucmu-chat-voice{width:min(310px,calc(100vw - 48px));min-height:64px;box-sizing:border-box;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;padding:10px 12px;border-radius:18px;border:1px solid rgba(209,15,25,.34);background:linear-gradient(135deg,#fff,#f6f7f8);color:var(--ucmu-graphite);box-shadow:0 10px 22px rgba(31,38,50,.10);}.ucmu-chat-voice-play{width:36px;height:36px;border-radius:50%;border:1px solid rgba(209,15,25,.62);background:#fff;color:var(--ucmu-red);font-size:12px;font-weight:950;display:grid;place-items:center;cursor:pointer;}
.ucmu-chat-voice-main{min-width:0;display:grid;gap:6px;}.ucmu-chat-voice-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;font-weight:950;color:rgba(46,51,56,.62);}.ucmu-chat-voice-top b{letter-spacing:.18em;color:var(--ucmu-graphite);}.ucmu-chat-voice-top span{color:var(--ucmu-red);}
.ucmu-chat-voice-wave{position:relative;height:26px;border-radius:8px;overflow:hidden;background:repeating-linear-gradient(90deg,rgba(46,51,56,.16) 0 2px,transparent 2px 7px), rgba(46,51,56,.065);cursor:pointer;}.ucmu-chat-voice-wave::before{content:"";position:absolute;inset:5px 6px;background:repeating-linear-gradient(90deg,rgba(209,15,25,.76) 0 2px,rgba(209,15,25,.28) 2px 3px,transparent 3px 7px);clip-path:polygon(0 72%,4% 44%,8% 61%,12% 25%,16% 78%,20% 39%,24% 57%,28% 19%,32% 81%,36% 46%,40% 63%,44% 31%,48% 84%,52% 35%,56% 69%,60% 22%,64% 76%,68% 49%,72% 60%,76% 33%,80% 86%,84% 42%,88% 65%,92% 27%,96% 73%,100% 43%);pointer-events:none;}.ucmu-chat-voice-wave i{position:absolute;inset:0 auto 0 0;width:0%;background:rgba(209,15,25,.18);pointer-events:none;}.ucmu-chat-circle{width:220px;height:220px;position:relative;}
.ucmu-chat-circle-shell{width:220px;height:220px;position:relative;overflow:hidden;border-radius:50%;background:#101820;clip-path:circle(50% at 50% 50%);box-shadow:0 16px 34px rgba(31,38,50,.18);}.ucmu-chat-circle video{position:absolute;left:50%;top:50%;width:132%;height:132%;max-width:none;object-fit:cover;object-position:50% 42%;transform:translate(-50%,-54%);background:#101820;}.ucmu-chat-circle-play{position:absolute;left:50%;top:50%;width:56px;height:56px;transform:translate(-50%,-50%);border:0;border-radius:50%;background:rgba(5,10,18,.58);color:#fff;display:grid;place-items:center;z-index:3;cursor:pointer;}.ucmu-chat-circle-play.is-hidden{opacity:0;pointer-events:none;}
.ucmu-chat-circle-duration{position:absolute;left:13px;bottom:13px;z-index:4;padding:2px 7px;border-radius:999px;background:rgba(5,10,18,.58);color:#fff;font-size:12px;}.ucmu-chat-image img{max-width:min(280px,calc(100vw - 48px));border-radius:16px;display:block;}.ucmu-chat-file{display:inline-flex;align-items:center;max-width:min(310px,calc(100vw - 48px));padding:10px 12px;border-radius:16px;background:#fff;color:var(--ucmu-graphite);text-decoration:none;border:1px solid rgba(46,51,56,.10);}@media(max-width:640px){.ucmu-chat-circle, .ucmu-chat-circle-shell{width:190px;height:190px;}
}.ucmu-chat-thread-view{width:100%;height:100dvh;min-height:0;padding:0;overflow:hidden;}.ucmu-chat-thread-view .ucmu-chat-thread{width:100%;height:100%;min-height:0;border-radius:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:var(--ucmu-card,#fff);box-shadow:none;}.ucmu-chat-thread-head{min-height:68px;box-sizing:border-box;display:flex;grid-template-columns:40px 44px minmax(0,1fr);gap:10px;align-items:center;padding:10px 16px;border-bottom:1px solid rgba(47,54,62,.08);background:rgba(255,255,255,.96);backdrop-filter:blur(16px);z-index:4;}
.ucmu-chat-thread-head>i{width:44px;height:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--ucmu-graphite);color:#fff;font-style:normal;font-size:12px;font-weight:950;}.ucmu-chat-thread-head>i img{width:100%;height:100%;display:block;object-fit:cover;}.ucmu-chat-thread-head>span{min-width:0;display:grid;gap:2px;}.ucmu-chat-thread-head b, .ucmu-chat-thread-head small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ucmu-chat-thread-head b{color:var(--ucmu-text);font-size:14px;font-weight:950;}.ucmu-chat-thread-head small{color:var(--ucmu-muted);font-size:10px;font-weight:800;}.ucmu-chat-thread-back{width:38px;height:38px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(47,54,62,.07);color:var(--ucmu-graphite);font-size:28px;line-height:1;cursor:pointer;}.ucmu-chat-thread-view .ucmu-chat-messages{min-height:0;padding:18px 18px 12px;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth;}
.ucmu-chat-composer{position:relative;box-sizing:border-box;width:100%;padding:8px 12px max(8px,env(safe-area-inset-bottom));border-top:1px solid rgba(47,54,62,.08);background:rgba(255,255,255,.97);backdrop-filter:blur(18px);z-index:5;}.ucmu-chat-composer-row{min-width:0;display:grid;grid-template-columns:44px minmax(0,1fr) 46px;gap:8px;align-items:end;}.ucmu-chat-attach, .ucmu-chat-primary{width:44px;height:44px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;}.ucmu-chat-attach{background:rgba(47,54,62,.07);color:var(--ucmu-graphite);}
.ucmu-chat-primary{width:46px;height:46px;background:var(--ucmu-graphite);color:#fff;touch-action:none;user-select:none;-webkit-user-select:none;}.ucmu-chat-primary svg, .ucmu-chat-attach svg, .ucmu-chat-pending-remove svg, .ucmu-chat-record-lock svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}.ucmu-chat-primary [data-icon]{display:none}.ucmu-chat-composer[data-state="voice"] .ucmu-chat-primary [data-icon="voice"]{display:grid}
.ucmu-chat-composer[data-state="circle"] .ucmu-chat-primary [data-icon="circle"]{display:grid}.ucmu-chat-composer[data-state="send"] .ucmu-chat-primary [data-icon="send"]{display:grid}.ucmu-chat-composer[data-state="recording"] .ucmu-chat-primary [data-icon="stop"]{display:grid}.ucmu-chat-composer[data-state="circle"] .ucmu-chat-primary{background:var(--ucmu-red);}
.ucmu-chat-composer[data-state="send"] .ucmu-chat-primary{background:var(--ucmu-red);}.ucmu-chat-composer textarea{width:100%;min-width:0;min-height:44px;max-height:126px;box-sizing:border-box;border:0;outline:0;resize:none;overflow-y:auto;padding:11px 15px;border-radius:22px;background:rgba(47,54,62,.07);color:var(--ucmu-text);font:inherit;font-size:14px;line-height:1.4;}.ucmu-chat-composer textarea::placeholder{color:var(--ucmu-muted)}.ucmu-chat-composer button:disabled{opacity:.48;cursor:default}
.ucmu-chat-composer-status{position:absolute;left:64px;right:64px;bottom:calc(100% + 6px);min-height:0;pointer-events:none;text-align:center;color:var(--ucmu-red);font-size:10px;line-height:1.2;font-weight:850;opacity:0;transform:translateY(4px);transition:opacity .18s ease-in-out,transform .18s ease-in-out}.ucmu-chat-composer-status[data-kind="error"]:not(:empty){opacity:1;transform:translateY(0)}.ucmu-chat-pending{position:relative;min-height:62px;margin:0 0 8px 52px;padding:8px 42px 8px 8px;box-sizing:border-box;border-radius:18px;background:rgba(47,54,62,.055);}
.ucmu-chat-pending[hidden]{display:none}.ucmu-chat-pending-body{min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:center;}.ucmu-chat-pending-body img, .ucmu-chat-pending-body video, .ucmu-chat-pending-file-icon{width:48px;height:48px;border-radius:14px;object-fit:cover;display:grid;place-items:center;background:var(--ucmu-graphite);color:#fff;font-size:20px;}.ucmu-chat-pending-body span:not(.ucmu-chat-pending-file-icon){min-width:0;display:grid;gap:3px;}
.ucmu-chat-pending-body b, .ucmu-chat-pending-body small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.ucmu-chat-pending-body b{font-size:12px;font-weight:900;color:var(--ucmu-text)}.ucmu-chat-pending-body small{font-size:10px;font-weight:750;color:var(--ucmu-muted)}.ucmu-chat-pending-remove{position:absolute;right:8px;top:8px;width:30px;height:30px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(47,54,62,.09);color:var(--ucmu-graphite);cursor:pointer;}
.ucmu-chat-pending-remove svg{width:16px;height:16px}.ucmu-chat-record-panel{position:absolute;left:12px;right:66px;bottom:max(8px,env(safe-area-inset-bottom));height:46px;box-sizing:border-box;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:0 10px;border-radius:23px;background:#f3f4f6;color:var(--ucmu-text);z-index:8;}.ucmu-chat-record-panel[hidden]{display:none}.ucmu-chat-composer.is-recording .ucmu-chat-attach, .ucmu-chat-composer.is-recording textarea{opacity:0;pointer-events:none;}
.ucmu-chat-record-dot{width:9px;height:9px;border-radius:50%;background:var(--ucmu-red);box-shadow:0 0 0 5px rgba(209,15,25,.11);animation:ucmu-chat-record-pulse 1s ease-in-out infinite;}@keyframes ucmu-chat-record-pulse{50%{opacity:.38;transform:scale(.86)}}.ucmu-chat-record-panel>b{color:var(--ucmu-red);font-size:12px;font-variant-numeric:tabular-nums;}
.ucmu-chat-record-hint{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ucmu-muted);font-size:10px;font-weight:800;text-align:center;}.ucmu-chat-record-lock{display:grid;place-items:center;color:var(--ucmu-muted);}.ucmu-chat-record-lock svg{width:18px;height:18px}.ucmu-chat-record-preview{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#101820;}
.ucmu-chat-record-preview[hidden]{display:none}.ucmu-chat-record-cancel, .ucmu-chat-record-finish{display:none;height:30px;border:0;border-radius:999px;padding:0 10px;font-size:10px;font-weight:900;cursor:pointer;}.ucmu-chat-record-cancel{background:transparent;color:var(--ucmu-red)}.ucmu-chat-record-finish{background:var(--ucmu-red);color:#fff}
.ucmu-chat-composer.is-record-locked .ucmu-chat-record-lock{display:none}.ucmu-chat-composer.is-record-locked .ucmu-chat-record-cancel, .ucmu-chat-composer.is-record-locked .ucmu-chat-record-finish{display:block}.ucmu-chat-composer.is-record-locked .ucmu-chat-record-hint{text-align:left}.ucmu-chat-composer.is-record-cancel .ucmu-chat-record-panel{background:rgba(209,15,25,.10)}
.ucmu-chat-composer.is-record-cancel .ucmu-chat-record-hint{color:var(--ucmu-red)}.ucmu-chat-video{width:min(360px,calc(100vw - 80px));max-height:420px;display:block;border-radius:18px;background:#101820;}.ucmu-chat-file{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;}.ucmu-chat-file>span{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:rgba(47,54,62,.08);font-size:18px;}
.ucmu-chat-file>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;}.ucmu-chat-file>small{color:var(--ucmu-muted);font-size:9px;}@media(max-width:760px){.ucmu-work:has(.ucmu-chat-thread-view){padding:0;overflow:hidden;}.ucmu-route-mount:has(.ucmu-chat-thread-view), .ucmu-chat-thread-view{width:100%;max-width:none;height:100%;margin:0;}
.ucmu-chat-thread-head{min-height:60px;padding:8px 10px;grid-template-columns:38px 40px minmax(0,1fr);}.ucmu-chat-thread-head>i{width:40px;height:40px}.ucmu-chat-thread-view .ucmu-chat-messages{padding:12px 10px 10px}.ucmu-chat-composer{padding-left:8px;padding-right:8px}
.ucmu-chat-composer-row{grid-template-columns:42px minmax(0,1fr) 44px;gap:6px}.ucmu-chat-attach{width:42px;height:42px}.ucmu-chat-primary{width:44px;height:44px}.ucmu-chat-pending{margin-left:48px}
.ucmu-chat-record-panel{left:8px;right:58px}.ucmu-chat-record-hint{font-size:9px}}.ucmu-chat-pending{margin-left:0;padding:10px 42px 10px 10px;background:rgba(47,54,62,.045)}
.ucmu-chat-pending-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.ucmu-chat-pending-item{position:relative;min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr);gap:9px;align-items:center;padding:7px 36px 7px 7px;border-radius:15px;background:rgba(255,255,255,.82);box-shadow:inset 0 0 0 1px rgba(46,51,56,.07)}.ucmu-chat-pending-item-remove{position:absolute;right:6px;top:6px;width:28px;height:28px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(46,51,56,.08);color:var(--ucmu-graphite);cursor:pointer}.ucmu-chat-pending-item-remove svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
.ucmu-chat-record-lock{position:relative;width:32px;height:38px;border-radius:16px;color:var(--ucmu-red);background:rgba(209,15,25,.09);box-shadow:0 7px 18px rgba(209,15,25,.12);animation:ucmu-chat-lock-hint 1.45s ease-in-out infinite}.ucmu-chat-record-lock::before{content:"↑";position:absolute;left:50%;top:-18px;transform:translateX(-50%);color:var(--ucmu-red);font-size:18px;font-weight:950;text-shadow:0 4px 10px rgba(209,15,25,.28)}@keyframes ucmu-chat-lock-hint{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}
}.ucmu-chat-composer.is-record-locked .ucmu-chat-record-panel{box-shadow:0 0 0 2px rgba(209,15,25,.13),0 14px 30px rgba(31,38,50,.12)}@media(max-width:640px){.ucmu-chat-pending-body{grid-template-columns:1fr}}
.ucmu-chat-message{position:relative;transition:filter .34s ease-in-out,box-shadow .34s ease-in-out,transform .34s ease-in-out}.ucmu-chat-message.is-entering{opacity:0;filter:blur(8px)}.ucmu-chat-message.is-entering.mine{transform:translate3d(22px,8px,0) scale(.98)}.ucmu-chat-message.is-entering.other{transform:translate3d(-22px,8px,0) scale(.98)}
.ucmu-chat-message.is-entering.is-entered{opacity:1;filter:blur(0);transform:translate3d(0,0,0) scale(1);transition:opacity .42s ease-in-out,filter .42s ease-in-out,transform .42s ease-in-out}.ucmu-chat-message.is-reply-highlight{box-shadow:0 0 0 3px rgba(209,15,25,.28),0 16px 44px rgba(209,15,25,.24);filter:brightness(1.1)}.ucmu-chat-message>small em{font-style:normal;font-weight:850}.ucmu-chat-message.has-image-media,.ucmu-chat-message.has-video-media:not(.has-circle-video){width:auto;max-width:min(440px,82%)}
.ucmu-chat-message.is-media-only.has-image-media,.ucmu-chat-message.is-media-only.has-video-media:not(.has-circle-video){padding:0;gap:0;border-radius:20px;background:transparent;box-shadow:none;overflow:visible}.ucmu-chat-message.is-media-only .ucmu-chat-image,.ucmu-chat-message.is-media-only .ucmu-chat-video-open{border-radius:20px;background:transparent;box-shadow:0 12px 34px rgba(31,38,50,.16)}.ucmu-chat-message .ucmu-chat-image img,.ucmu-chat-message .ucmu-chat-video-open video{width:auto;max-width:min(420px,calc(100vw - 56px));max-height:min(520px,68vh);height:auto;object-fit:contain;background:transparent}.ucmu-chat-message.is-media-only>small{justify-self:end;margin:5px 8px 0}
.ucmu-chat-message.is-media-only .ucmu-message-reactions{align-self:flex-start;margin:5px 6px 0;padding:3px;border-radius:999px;background:rgba(255,255,255,.9);box-shadow:0 8px 20px rgba(31,38,50,.12)}.ucmu-chat-message.is-media-only.mine .ucmu-message-reactions{align-self:flex-end}.ucmu-chat-message.is-media-only .ucmu-message-reaction{color:var(--ucmu-text);background:rgba(46,51,56,.07)}.ucmu-chat-message.is-media-only .ucmu-message-reaction.is-mine{color:#fff;background:var(--ucmu-red)}
.ucmu-chat-voice-play{width:42px;height:42px;border:0;background:var(--ucmu-red);color:#fff;box-shadow:0 10px 24px rgba(209,15,25,.28);transition:transform .22s ease-in-out,box-shadow .22s ease-in-out,filter .22s ease-in-out}.ucmu-chat-voice-play:hover{filter:brightness(1.08);box-shadow:0 13px 30px rgba(209,15,25,.36)}.ucmu-chat-voice-play:active,.ucmu-chat-voice.is-playing .ucmu-chat-voice-play{transform:scale(.92);box-shadow:0 5px 14px rgba(209,15,25,.24)}.ucmu-chat-voice{grid-template-columns:42px minmax(0,1fr)}
.ucmu-chat-image{background:transparent}.ucmu-chat-image img{border-radius:20px;background:transparent}.ucmu-chat-editor-layer{align-items:center;justify-items:center;padding:20px;background:rgba(7,9,12,.76);backdrop-filter:blur(12px)}.ucmu-chat-editor{width:min(480px,calc(100vw - 32px));max-height:calc(100svh - 32px);display:grid;gap:14px;overflow:auto;box-sizing:border-box;padding:18px;border:1px solid rgba(255,255,255,.12);border-radius:24px;background:var(--ucmu-card,#fff);box-shadow:0 30px 100px rgba(0,0,0,.45);animation:ucmu-chat-editor-in .24s ease-in-out both}
@keyframes ucmu-chat-editor-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.ucmu-chat-editor>header b{font-size:16px;font-weight:950}
.ucmu-chat-editor form{display:grid;gap:12px}.ucmu-chat-editor label{display:grid;gap:6px}.ucmu-chat-editor label>span{font-size:11px;font-weight:900;color:var(--ucmu-muted)}.ucmu-chat-editor input,.ucmu-chat-editor textarea{width:100%;box-sizing:border-box;border:1px solid rgba(46,51,56,.12);border-radius:14px;padding:11px 13px;background:rgba(46,51,56,.045);color:var(--ucmu-text);font:inherit;outline:0}
.ucmu-chat-editor textarea{resize:vertical;min-height:120px}.ucmu-chat-editor input:focus,.ucmu-chat-editor textarea:focus{border-color:rgba(209,15,25,.52);box-shadow:0 0 0 3px rgba(209,15,25,.08)}.ucmu-chat-editor [data-chat-editor-status]{min-height:16px;color:var(--ucmu-red);font-size:11px}.ucmu-chat-editor footer{display:flex;justify-content:flex-end;gap:8px}
.ucmu-chat-editor footer button{min-height:38px;border:0;border-radius:12px;padding:0 14px;background:rgba(46,51,56,.07);color:var(--ucmu-text);font-weight:900;cursor:pointer}.ucmu-chat-editor footer button.is-primary{background:var(--ucmu-red);color:#fff}.ucmu-chat-editor form[data-busy="1"]{pointer-events:none;opacity:.7}@media(max-width:760px){.ucmu-chat-message.has-image-media,.ucmu-chat-message.has-video-media:not(.has-circle-video){max-width:88%}
.ucmu-chat-message .ucmu-chat-image img,.ucmu-chat-message .ucmu-chat-video-open video{max-width:calc(100vw - 42px);max-height:58vh}}
.ucmu-chat-message.has-image-media:not(.is-media-only),.ucmu-chat-message.has-video-media:not(.has-circle-video):not(.is-media-only){padding:0;overflow:hidden;gap:0}
.ucmu-chat-message.has-image-media:not(.is-media-only) .ucmu-message-forwarded,.ucmu-chat-message.has-image-media:not(.is-media-only) .ucmu-message-reply-quote,.ucmu-chat-message.has-image-media:not(.is-media-only) .ucmu-chat-message-text,.ucmu-chat-message.has-video-media:not(.has-circle-video):not(.is-media-only) .ucmu-message-forwarded,.ucmu-chat-message.has-video-media:not(.has-circle-video):not(.is-media-only) .ucmu-message-reply-quote,.ucmu-chat-message.has-video-media:not(.has-circle-video):not(.is-media-only) .ucmu-chat-message-text{margin:8px 12px 0}
.ucmu-chat-message.has-image-media:not(.is-media-only) .ucmu-message-reactions,.ucmu-chat-message.has-video-media:not(.has-circle-video):not(.is-media-only) .ucmu-message-reactions{margin:7px 10px 0}
.ucmu-chat-message.has-image-media:not(.is-media-only)>small,.ucmu-chat-message.has-video-media:not(.has-circle-video):not(.is-media-only)>small{margin:5px 12px 9px}

/* UCMU_CHAT_STABILITY_OWNER */
.ucmu-chat-thread-view{
  height:100%;
  max-height:100%;
  min-width:0;
  overflow:hidden;
}
.ucmu-chat-thread-view .ucmu-chat-thread{
  min-width:0;
  overflow:hidden;
}
.ucmu-chat-thread-view .ucmu-chat-messages{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  overflow-x:clip;
  overflow-y:scroll;
  scrollbar-gutter:stable;
  scroll-behavior:auto;
  overscroll-behavior:contain;
  contain:layout paint style;
}
.ucmu-chat-thread-view .ucmu-chat-messages[data-chat-booting="1"]{
  visibility:hidden;
  opacity:0;
  pointer-events:none;
}
.ucmu-chat-thread-view .ucmu-chat-messages[data-chat-booting="0"]{
  visibility:visible;
  opacity:1;
}
.ucmu-chat-thread-view .ucmu-chat-messages::-webkit-scrollbar{
  width:8px;
  height:0;
}
.ucmu-chat-thread-view .ucmu-chat-messages::-webkit-scrollbar-button{
  display:none;
  width:0;
  height:0;
}
.ucmu-chat-thread-view .ucmu-chat-messages::-webkit-scrollbar-track{
  background:transparent;
}
.ucmu-chat-thread-view .ucmu-chat-messages::-webkit-scrollbar-thumb{
  border:2px solid transparent;
  border-radius:999px;
  background:rgba(47,54,62,.48);
  background-clip:padding-box;
}
.ucmu-route-mount:has(.ucmu-chat-thread-view),
.ucmu-work:has(.ucmu-chat-thread-view){
  min-width:0;
  overflow:hidden;
}
.ucmu-chat-message{
  min-width:0;
  max-width:100%;
}
.ucmu-chat-message.is-entering{
  will-change:transform,opacity,filter;
}
.ucmu-chat-message.is-reply-highlight{
  isolation:isolate;
  position:relative;
}
.ucmu-chat-message.is-reply-highlight::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:8;
  pointer-events:none;
  border-radius:inherit;
  background:
    linear-gradient(112deg,
      transparent 22%,
      rgba(255,255,255,.16) 38%,
      rgba(255,255,255,.92) 50%,
      rgba(255,255,255,.18) 62%,
      transparent 78%);
  background-size:260% 100%;
  background-position:145% 0;
  animation:ucmu-chat-reply-shimmer .92s ease-in-out .12s both;
}
@keyframes ucmu-chat-reply-shimmer{
  0%{background-position:145% 0;opacity:0}
  18%{opacity:1}
  100%{background-position:-45% 0;opacity:0}
}
.ucmu-chat-voice{
  border-color:rgba(47,54,62,.10);
  background:#fff;
  box-shadow:0 10px 22px rgba(31,38,50,.10);
  transition:border-color .28s ease-in-out,box-shadow .28s ease-in-out,filter .28s ease-in-out;
}
.ucmu-chat-voice-play{
  background:var(--ucmu-red,#e51f2a);
  color:#fff;
  box-shadow:none;
}
.ucmu-chat-voice-play:hover{
  box-shadow:0 8px 20px rgba(209,15,25,.24);
}
.ucmu-chat-voice.is-playing{
  border-color:rgba(209,15,25,.62);
  box-shadow:0 0 0 3px rgba(209,15,25,.10),0 16px 34px rgba(209,15,25,.24);
  filter:saturate(1.08);
}
.ucmu-chat-voice.is-playing .ucmu-chat-voice-play{
  transform:scale(.94);
  box-shadow:0 8px 22px rgba(209,15,25,.34);
}
.ucmu-chat-circle,
.ucmu-chat-circle-shell{
  display:block;
  flex:0 0 auto;
}

/* UCMU_CHAT_POST_ATTACHMENT_OWNER_V1 */
.ucmu-chat-message.has-post-attachment{
  width:min(410px,86%);
  max-width:min(410px,86%);
  gap:7px;
}
.ucmu-chat-message.has-post-attachment .ucmu-chat-message-text{
  margin:0 0 1px;
}
.ucmu-chat-post-card{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:11px;
  align-items:stretch;
  border:1px solid rgba(47,54,62,.12);
  border-radius:16px;
  padding:8px;
  background:rgba(255,255,255,.97);
  color:var(--ucmu-text);
  text-align:left;
  box-shadow:0 8px 22px rgba(31,38,50,.09);
  cursor:pointer;
  transition:transform .2s ease-in-out,box-shadow .2s ease-in-out,border-color .2s ease-in-out;
}
.ucmu-chat-post-card.has-media{
  grid-template-columns:96px minmax(0,1fr);
}
.ucmu-chat-post-card:hover{
  transform:translateY(-1px);
  border-color:rgba(209,15,25,.28);
  box-shadow:0 12px 28px rgba(31,38,50,.13);
}
.ucmu-chat-post-card:active{transform:scale(.985)}
.ucmu-chat-post-card.is-loading,
.ucmu-chat-post-card.is-unavailable{
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  min-height:64px;
  cursor:default;
  box-shadow:none;
}
.ucmu-chat-post-card.is-loading:hover,
.ucmu-chat-post-card.is-unavailable:hover{
  transform:none;
  border-color:rgba(47,54,62,.12);
  box-shadow:none;
}
.ucmu-chat-post-placeholder{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(47,54,62,.07);
  color:var(--ucmu-muted);
  font-size:18px;
  font-weight:950;
}
.ucmu-chat-post-card.is-unavailable .ucmu-chat-post-placeholder{
  background:rgba(209,15,25,.08);
  color:var(--ucmu-red);
}
.ucmu-chat-post-card.is-loading>span:last-child,
.ucmu-chat-post-card.is-unavailable>span:last-child{
  display:grid;
  gap:3px;
  min-width:0;
}
.ucmu-chat-post-card.is-loading b,
.ucmu-chat-post-card.is-unavailable b{font-size:12px}
.ucmu-chat-post-card.is-loading small,
.ucmu-chat-post-card.is-unavailable small{color:var(--ucmu-muted);font-size:10px}
.ucmu-chat-post-media{
  position:relative;
  width:96px;
  min-height:96px;
  max-height:118px;
  display:block;
  overflow:hidden;
  border-radius:12px;
  background:rgba(47,54,62,.08);
}
.ucmu-chat-post-media img,
.ucmu-chat-post-media video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.ucmu-chat-post-media.is-video>b{
  position:absolute;
  left:50%;
  top:50%;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  transform:translate(-50%,-50%);
  background:rgba(15,18,22,.72);
  color:#fff;
  font-size:11px;
}
.ucmu-chat-post-copy{
  min-width:0;
  display:grid;
  align-content:center;
  gap:5px;
  padding:2px 2px 2px 0;
}
.ucmu-chat-post-source{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}
.ucmu-chat-post-source>span{
  min-width:0;
  display:grid;
  gap:1px;
}
.ucmu-chat-post-source b,
.ucmu-chat-post-source small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ucmu-chat-post-source b{font-size:10px;font-weight:950}
.ucmu-chat-post-source small{color:var(--ucmu-muted);font-size:8px;font-weight:750}
.ucmu-chat-post-avatar{
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:50%;
  background:var(--ucmu-graphite);
  color:#fff;
  font-style:normal;
  font-size:8px;
  font-weight:950;
}
.ucmu-chat-post-avatar img{width:100%;height:100%;object-fit:cover}
.ucmu-chat-post-copy>strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:950;
}
.ucmu-chat-post-text{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-clamp:3;
  color:rgba(46,51,56,.78);
  font-size:10px;
  font-weight:700;
  line-height:1.35;
  white-space:normal;
}
.ucmu-chat-post-text.is-empty{color:var(--ucmu-muted)}
@media(max-width:760px){
  .ucmu-chat-message.has-post-attachment{
    width:min(360px,92%);
    max-width:min(360px,92%);
  }
  .ucmu-chat-post-card.has-media{grid-template-columns:82px minmax(0,1fr);gap:9px}
  .ucmu-chat-post-media{width:82px;min-height:82px;max-height:104px}
}

/* UCMU_CHAT_THREAD_ACTIONS_OWNER */
.ucmu-chat-thread-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.ucmu-chat-thread-actions .ucmu-page-menu{top:50px}
