/* Formal Chat skin. Native controllers, message IDs, transport and data remain authoritative. */
body.ys-letter-chat{--paper:#f7f5f1;--ink:#6e564d;--muted:#978579;--wash:#8f6c5721;--flower-opacity:.2;--draft-paper:#e4d9cb;--draft-ink:#5e4b40;--text:var(--ink);--text-soft:var(--ink);--text-faint:var(--muted);--accent:var(--ink);--bg:var(--paper);--field-bg:transparent;--field-line:var(--ink);--hairline:#97857940;--font-en:YoseiAllura;--font-cn:YoseiWenKai;--ref-width:760px;--letter-header:60px;background:var(--paper);color:var(--ink);font-family:YoseiAllura,YoseiWenKai,sans-serif}
body.ys-letter-chat[data-letter-theme=sepia]{--paper:#322d28;--ink:#ddc6b6;--muted:#c4ae98;--wash:#e8c9ae2b;--flower-opacity:.5;--draft-paper:#51453a;--draft-ink:#f0dfce}
body.ys-letter-chat[data-letter-theme=black]{--paper:#0c0c0c;--ink:#f3f3f2;--muted:#b9b3aa;--wash:#efe8da14;--flower-opacity:.6;--draft-paper:#35302c;--draft-ink:#ecdfd2}
body.ys-letter-chat:after{content:'';position:fixed;inset:0;z-index:250;pointer-events:none;background:url('../../../assets/letter/paper-grain.svg') repeat;background-size:200px;opacity:.12}
.ys-letter-chat #wall{inset:0;background:url('../../../assets/letter/flower.webp') center / auto 85% no-repeat!important;opacity:var(--flower-opacity);filter:none}
.ys-letter-chat:is([data-letter-theme=sepia],[data-letter-theme=black]) #wall{background:#f07868!important;mask:url('../../../assets/letter/flower.webp') center / auto 85% no-repeat}
.ys-letter-chat #wall:before,.ys-letter-chat #wall:after{display:none}
.ys-letter-chat #app{height:100dvh;max-width:760px;margin-inline:auto;position:relative;left:auto;padding:0;border:0;background:transparent;overflow:visible}
.ys-letter-chat .topbar{height:var(--letter-header);min-height:var(--letter-header);padding:5px 10px 0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:3px;position:relative;z-index:240;background:var(--paper);border:0;box-shadow:none;backdrop-filter:none;flex:0 0 var(--letter-header)}
.ys-letter-chat .topbar:before,.ys-letter-chat .topbar:after{display:none}
.ys-letter-chat .ys-header-left{display:flex;align-items:center;gap:0;position:relative;z-index:6}
.ys-letter-chat .topbar .peerpill{position:relative;left:auto;top:auto;transform:none;display:flex;align-items:center;justify-content:center;gap:5px;font:22px YoseiWenKai,sans-serif;padding:0;background:none;border:0;z-index:6;white-space:nowrap}
.ys-letter-chat .header-actions{display:flex;gap:0;align-items:center}
.ys-letter-chat .topbtn,.ys-letter-chat .backbtn{display:grid;place-items:center;min-width:44px;width:44px;height:44px;min-height:44px;padding:7px;border:0;background:none;box-shadow:none;color:var(--ink)}
.ys-letter-chat .backbtn{position:relative;width:48px}
.ys-letter-chat .ys-water-ring{position:absolute;inset:0;display:grid;place-items:center;background:none;border:0;width:48px;height:44px}
.ys-letter-chat .ys-water-ring:after{display:none}
.ys-letter-chat .ys-water-ring i{font:14px/1 YoseiAllura,cursive;color:var(--ink);padding-bottom:8px;-webkit-text-stroke:.25px currentColor}
.ys-letter-chat .letter-water-art{width:48px;height:40px;position:absolute;inset:2px 0 auto;pointer-events:none}
.ys-letter-chat .ys-connection-status{position:absolute;right:0;bottom:9px;width:5px;height:5px;margin:0;opacity:.75}
.ys-letter-chat .letter-pair{display:flex;align-items:center;width:84px;flex:0 0 84px;height:48px;pointer-events:none}
.ys-letter-chat .letter-pair span{display:block;flex:0 0 46px;height:48px;background:var(--ink);mask:var(--face) center/contain no-repeat}
.ys-letter-chat .letter-pair .resident{--face:url('../../../assets/letter/avatar-xuyang.webp');rotate:-13deg}
.ys-letter-chat .letter-pair[data-resident=yigui] .resident{--face:url('../../../assets/letter/avatar-yigui.webp')}
.ys-letter-chat .letter-pair .owner{--face:url('../../../assets/letter/avatar-yusheng.webp');rotate:12deg;margin-left:-8px;translate:0 3px}
.ys-letter-chat #ysNavToggle{display:grid!important;position:static;min-width:44px;width:44px;height:44px;background:none;border:0;box-shadow:none;backdrop-filter:none;color:var(--ink);transform:none;padding:9px}
.ys-letter-chat .letter-edge{position:absolute;left:0;width:100%;height:26px;pointer-events:none;overflow:visible;z-index:5;color:var(--ink)}
.ys-letter-chat .topbar>.letter-edge{top:100%;filter:drop-shadow(0 1.5px 1.2px #00000015)}
.ys-letter-chat .composer>.letter-edge{top:0;filter:drop-shadow(0 -1.5px 1.2px #00000015)}
.ys-letter-chat .letter-clip{position:absolute;width:18px;height:28px;pointer-events:none;z-index:6;stroke:var(--ink);stroke-width:1.35;fill:none;opacity:.8}
.ys-letter-chat .topbar>.letter-clip{top:calc(100% + 2px);left:21%;rotate:-34deg}
.ys-letter-chat .composer>.letter-clip{top:1px;left:15px;rotate:31deg}
.ys-letter-chat .scroll{width:100%;flex:1;min-height:0;display:flex;padding:35px 22px calc(var(--composer-zone) + 100px);mask:none;-webkit-mask:none;scrollbar-width:none;background:none}
.ys-letter-chat .scroll::-webkit-scrollbar{display:none}
.ys-letter-chat .row{display:flex;flex-direction:column;gap:4px;align-self:stretch;margin:8px 0 18px;max-width:100%;padding:0}
.ys-letter-chat .row.human{align-items:flex-end}
.ys-letter-chat .row .ys-message-info{position:static;display:flex;align-items:center;gap:9px;transform:none;margin:0;color:var(--muted);font-size:11px}
.ys-letter-chat .row.human .ys-message-info{flex-direction:row-reverse}
.ys-letter-chat .ys-message-avatar{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border:1px solid var(--muted);border-radius:50%;font:14px YoseiWenKai;background:none}
.ys-letter-chat .bubble{position:relative;max-width:100%;width:auto;min-width:0;padding:0;background:none!important;border:0!important;box-shadow:none!important;border-radius:0;overflow:visible;color:var(--ink)}
.ys-letter-chat .bubble:before,.ys-letter-chat .bubble:after{display:none}
.ys-letter-chat .row.human .bubble{max-width:85%;display:flex;flex-direction:column;align-items:flex-end}
.ys-letter-chat .txt{font:18px/1.9 YoseiAllura,YoseiWenKai,sans-serif;color:var(--ink);margin:4px 0}
.ys-letter-chat .human .txt{background:var(--wash);border:0;border-radius:16px;padding:10px 15px;font-family:YoseiAllura,YoseiDymon,sans-serif;text-align:left}
.ys-letter-chat .txt p{margin:6px 0}
.ys-letter-chat .meta{font-size:10px;color:var(--muted);margin:2px 0}
.ys-letter-chat .ys-tools,.ys-letter-chat .think-block{margin:2px 0;width:100%;padding:0;background:none;border:0;box-shadow:none}
.ys-letter-chat .ys-tools-toggle,.ys-letter-chat .think-toggle{min-height:26px;padding:0;font:15px/1.6 YoseiAllura,YoseiWenKai;color:var(--muted);background:none;border:0;gap:0;justify-content:flex-start}
.ys-letter-chat .ys-tools-glyph,.ys-letter-chat .ys-tools-arrow,.ys-letter-chat .think-rule,.ys-letter-chat .think-caption-star,.ys-letter-chat .think-state{display:none}
.ys-letter-chat .ys-tools-list,.ys-letter-chat .think-body{border-left:1px solid var(--hairline);background:linear-gradient(90deg,var(--wash),transparent);padding:7px 12px;margin:3px 0 7px;overflow:hidden;width:fit-content;max-width:100%;color:var(--muted)}
.ys-letter-chat .ys-tool-head,.ys-letter-chat .ys-tool-body,.ys-letter-chat .think-copy{color:var(--muted);font-size:14px;line-height:1.7}
.ys-letter-chat .ys-inline-quote,.ys-letter-chat :is(.ys-attachment-preview,.ys-quote-preview,.ys-branch-preview){background:var(--draft-paper);color:var(--draft-ink);border:0;border-left:3px solid var(--muted);border-radius:8px;padding:8px 12px;box-shadow:none;scrollbar-width:none}
.ys-letter-chat .ys-composer-popups{bottom:calc(var(--letter-composer-bottom,65px) + var(--composer-zone));z-index:241}
.ys-letter-chat .ys-plus-menu{width:260px;max-width:90vw;padding:8px;background:var(--paper);color:var(--ink);border:1px solid var(--hairline);border-radius:12px;box-shadow:0 5px 18px #0002}
.ys-letter-chat .ys-plus-menu button{min-height:48px;padding:7px 10px;color:var(--ink)}
.ys-letter-chat .ys-attachment-group{border:0;background:none;margin:6px 0}
.ys-letter-chat .ys-attachment-toggle{background:none;border:0;padding:4px 0;color:var(--ink);min-height:44px}
.ys-letter-chat .ys-attachment-toggle small,.ys-letter-chat .ys-attachment-toggle-arrow,.ys-letter-chat .ys-attachment-collapse{display:none}
.ys-letter-chat .composer{isolation:isolate;z-index:235;left:50%;right:auto;transform:translateX(-50%);width:min(100%,760px);margin:0;bottom:calc(65px + env(safe-area-inset-bottom));padding:30px 12px 8px;gap:3px;background:none;transition:bottom .3s cubic-bezier(.22,.7,.25,1)}
.ys-letter-chat .letter-composer-paper{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.ys-letter-chat .composer .field{border:1.4px solid var(--ink);border-radius:25px 28px 26px 24px;background:none;box-shadow:none;min-height:50px;padding:0 7px 5px;gap:0;align-items:flex-end}
.ys-letter-chat .composer .field:focus-within{background:color-mix(in srgb,var(--wash) 40%,transparent)}
.ys-letter-chat #input{font:18px/1.4 YoseiAllura,YoseiWenKai;color:var(--ink);padding:11px 0;min-height:44px;resize:none;scrollbar-width:none}
.ys-letter-chat .field :is(#clipBtn,#micBtn){width:44px;height:44px;min-width:44px;align-self:flex-end;display:grid;place-items:center;padding:8px;color:var(--ink)}
.ys-letter-chat #micBtn{position:relative}
.ys-letter-chat #micBtn[data-voice-state=recording]:after{content:'';position:absolute;right:6px;top:6px;width:5px;height:5px;border-radius:50%;background:currentColor;animation:letter-mic-dot 1s ease-in-out infinite}
.ys-letter-chat #micBtn[data-voice-state=recording] .letter-asset{animation:letter-mic-breathe 1.25s ease-in-out infinite}
.ys-letter-chat #micBtn[data-voice-state=transcribing] .letter-asset{animation:letter-mic-listen .8s ease-in-out infinite alternate}
.ys-letter-chat #micBtn:disabled{opacity:.68;cursor:progress}
@keyframes letter-mic-dot{50%{opacity:.3;scale:.75}}
@keyframes letter-mic-breathe{50%{scale:1.08;filter:drop-shadow(0 0 3px currentColor)}}
@keyframes letter-mic-listen{to{opacity:.45;translate:0 -1px}}
.ys-letter-chat #sendBtn{background:none;box-shadow:none;border:0;width:46px;height:46px;padding:4px;color:var(--ink)}
.ys-letter-chat #newMsgBtn{background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--ink);font:14px YoseiDymon,sans-serif;padding:5px 12px;bottom:calc(var(--composer-zone) + var(--letter-composer-bottom,65px) + 12px);transition:bottom .3s ease,transform .3s ease,opacity .24s ease}
.ys-letter-chat #newMsgBtn:is(:hover,:active,:focus){background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.ys-letter-chat #newMsgBtn svg{display:none}
.ys-letter-chat .letter-more{display:grid;place-items:center;width:28px;min-width:28px;height:28px;min-height:28px;padding:6px;border:0;background:none;color:var(--muted);margin-top:2px}
.ys-letter-chat .letter-more svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-linecap:round;stroke-width:1.3}
.ys-letter-chat #ysResidentFrame{position:absolute;top:100%;left:0;width:100%;height:0;z-index:4;min-height:0;pointer-events:none}
.ys-letter-chat #ysResidentSwitch{height:220px;max-height:220px;padding:0 16px;background:none;border:0;opacity:1;transform:none;pointer-events:none;overflow:hidden}
.ys-letter-chat #ysResidentStrip{display:flex;gap:0;height:210px;position:relative;transform:translateY(-240px);transition:transform .5s cubic-bezier(.22,.8,.2,1)}
.ys-letter-chat #ysResidentSwitch.open #ysResidentStrip{transform:translateY(0)}
.ys-letter-chat .ys-resident-card{width:20%;height:195px;flex:0 0 20%;border:0!important;background:none!important;box-shadow:none!important;padding:10px 0 0;pointer-events:none;opacity:1;position:relative}
.ys-letter-chat #ysResidentSwitch.open .ys-resident-card:not(:disabled){pointer-events:auto}
.ys-letter-chat .ys-resident-card img{height:175px;width:100%;object-fit:contain}
.ys-letter-chat .ys-resident-card[data-resident-id=xuyang] img{height:158px;width:90%;display:block;margin-inline:auto}
.ys-letter-chat #ysResidentStrip img{will-change:rotate}
.ys-letter-chat #ysNavToggle svg.manor-control-icon{width:28px;height:28px;stroke-width:1.5}
.ys-letter-chat #ysResidentToggle{pointer-events:auto;top:10px;bottom:auto;right:12px;min-width:44px;height:36px;padding:0;transform:none!important;color:var(--ink)}
.ys-letter-chat #ysResidentToggle svg{height:34px;width:20px;stroke:currentColor;fill:none;stroke-width:1.4}
.ys-letter-chat .letter-rope{position:absolute;left:0;top:12px;width:100%;height:40px;overflow:visible;pointer-events:none;color:var(--ink)}
.ys-letter-chat .letter-asset{width:27px;height:27px;display:block;fill:currentColor;stroke:none}
.ys-letter-chat #ysGlobalNav{background:var(--paper);background-image:none;backdrop-filter:none;color:var(--ink);border-color:var(--hairline)}
.ys-letter-chat #ysGlobalNav:before{display:none}
.ys-letter-chat #ysGlobalNav .active{background:var(--wash)}
.ys-letter-chat #ysGlobalNav .menu-name{font-family:YoseiAllura,YoseiWenKai}
.ys-letter-chat ::selection{background:var(--draft-paper);color:var(--draft-ink)}
.ys-letter-chat .msg-menu-actions{background:var(--paper);border:1px solid var(--hairline);box-shadow:0 4px 15px #0002;border-radius:10px;color:var(--ink)}
.ys-letter-chat .file-viewer-card{background:var(--paper);color:var(--ink)}
@media(max-width:999px){.ys-letter-chat #ysGlobalNav{left:50%;transform:translateX(-50%);width:min(100%,760px);height:calc(65px + env(safe-area-inset-bottom));padding:4px 8px;transition:transform .3s ease,opacity .24s ease}.ys-letter-chat #ysGlobalNav .menu-copy{display:none}.ys-letter-chat.ys-nav-collapsed #ysGlobalNav{transform:translate(-50%,100%);opacity:0;visibility:hidden;pointer-events:none}.ys-letter-chat.ys-nav-collapsed .composer{bottom:env(safe-area-inset-bottom)}.ys-letter-chat.ys-nav-collapsed{--letter-composer-bottom:0px}}
@media(min-width:1000px){.ys-letter-chat{--letter-nav:clamp(238px,18vw,292px);--letter-composer-bottom:0px}.ys-letter-chat.ys-nav-collapsed{--letter-nav:76px}.ys-letter-chat #app{width:min(760px,calc(100vw - var(--letter-nav)));margin-left:calc(var(--letter-nav) + (100vw - var(--letter-nav) - min(760px,100vw - var(--letter-nav)))/2);margin-right:0}.ys-letter-chat .composer{left:calc(var(--letter-nav) + (100vw - var(--letter-nav))/2);width:min(760px,calc(100vw - var(--letter-nav)));bottom:env(safe-area-inset-bottom)}.ys-letter-chat #newMsgBtn{left:calc(var(--letter-nav) + (100vw - var(--letter-nav))/2)}}
@media(max-width:380px){.ys-letter-chat .letter-pair{width:68px;flex-basis:68px}.ys-letter-chat .letter-pair span{flex-basis:38px}.ys-letter-chat .topbar{padding-inline:5px}.ys-letter-chat .topbar .peerpill{gap:2px}}
@media(prefers-reduced-motion:reduce){.ys-letter-chat *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.letter-flip-stage{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;perspective:1100px;pointer-events:none}
.letter-flip-card{position:relative;width:min(58vw,320px);height:min(60dvh,460px);transform-style:preserve-3d}
.letter-flip-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;backface-visibility:hidden;filter:drop-shadow(0 8px 18px #0003)}
.letter-flip-card .back{transform:rotateY(180deg);filter:brightness(.35) sepia(.8)}
.ys-letter-chat .letter-theme-picker{display:flex;align-items:center;gap:8px;padding:12px 0;font:14px YoseiWenKai;color:var(--ink)}
.ys-letter-chat .letter-theme-picker button{padding:8px;min-height:44px;background:var(--wash);border:0;border-radius:7px;color:inherit}
.ys-letter-chat .topbar .ys-header-left{left:auto;right:auto;top:auto;bottom:auto;height:44px;margin:0;transform:none;align-self:center}
.ys-letter-chat .topbar .header-actions{position:relative;left:auto;right:auto;top:auto;bottom:auto;height:44px;margin:0;transform:none;align-self:center}
.ys-letter-chat .topbar .peerpill{flex-direction:row;align-self:center;min-width:0}
.ys-letter-chat .peerpill .name{font:22px YoseiWenKai,sans-serif;text-shadow:none;flex:none}
.ys-letter-chat{background:var(--paper)!important}
.ys-letter-chat #ysGlobalNav .menu-sub,.ys-letter-chat #ysGlobalNav .menu-dot,.ys-letter-chat #ysGlobalNav .menu-chev{display:none}
.ys-letter-chat #ysGlobalNav .menu-item{border:0}
.ys-letter-chat .ys-attachment-toggle-icon{background:none;border:0;box-shadow:none}
.ys-letter-chat{--media-line:var(--hairline);--media-soft:var(--draft-paper);--letter-font:YoseiAllura,YoseiWenKai,sans-serif}
.ys-letter-chat .ys-injection-card{font-size:13px;color:var(--muted);margin:3px 0}
.ys-letter-chat .ys-injection-card .act-glyph,.ys-letter-chat .ys-injection-card .act-state{display:none}
.ys-letter-chat .ys-injection-card .act-toggle{min-height:26px;color:var(--muted);padding:0;font-size:13px}
.ys-letter-chat .backbtn svg.letter-water-art{width:48px;height:40px;max-width:none;transform:none}
@media(max-width:999px){.ys-letter-chat #ysGlobalNav .active{background:none}.ys-letter-chat #ysGlobalNav .active:after{content:'';position:absolute;bottom:2px;left:calc(50% - 10px);width:20px;height:2px;border-radius:50%;background:var(--ink)}}
.ys-letter-chat .ys-audio{display:flex;align-items:center;gap:10px;max-width:290px;background:none;border:0;box-shadow:none;padding:4px 0}
.ys-letter-chat .ys-audio-btn{width:44px;height:44px;background:none;color:var(--ink);border:0}
.ys-letter-chat .ys-audio-time{font-size:11px;color:var(--muted)}
.ys-letter-chat .ys-caption{font-size:14px;color:var(--muted);line-height:1.6}
.ys-letter-chat .ys-quote-preview span,.ys-letter-chat .ys-branch-preview span{scrollbar-width:none}
.ys-letter-chat .ys-quote-preview span::-webkit-scrollbar,.ys-letter-chat .ys-branch-preview span::-webkit-scrollbar{display:none}
.ys-letter-chat .ys-attachment-group[data-letter-media]>.ys-attachment-toggle,
.ys-letter-chat .ys-attachment-group[data-letter-media]>.ys-attachment-collapse{display:none}
.ys-letter-chat .ys-attachment-group[data-letter-media]>.ys-attachment-body{display:grid;gap:2px;padding:0}
.ys-letter-chat .letter-native-image{max-width:290px;width:100%}
.ys-letter-chat .letter-image-title{display:flex;align-items:center;gap:8px;min-height:44px;padding:2px 0;color:var(--ink);border:0;background:none;font:14px YoseiAllura,YoseiWenKai,sans-serif;text-align:left}
.ys-letter-chat .letter-image-title svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;flex:none}
.ys-letter-chat .letter-native-image-reveal{display:flow-root;overflow:hidden;box-sizing:border-box}
.ys-letter-chat .letter-native-image-reveal[hidden]{display:none}
.ys-letter-chat .letter-native-image .att-img-link{display:block;width:180px;height:150px;max-width:100%;min-height:0;aspect-ratio:auto;padding:0;margin:10px 0 0;border:0;border-radius:7px;background:var(--wash);overflow:hidden}
.ys-letter-chat .letter-native-image img.att-img{display:block;width:100%;height:150px;object-fit:contain;aspect-ratio:auto}
.ys-letter-chat .ys-attachment-body .att-file{display:flex;gap:8px;align-items:center;width:max-content;max-width:100%;min-height:44px;padding:2px 0;border:0;background:none;box-shadow:none;color:var(--ink)}
.ys-letter-chat .att-file .att-file-size{display:none}
.ys-letter-chat .att-file .att-file-name{font:14px YoseiAllura,YoseiWenKai,sans-serif;white-space:normal;overflow-wrap:anywhere}
.ys-letter-chat .att-file .att-file-ic{width:23px;height:23px;background:none;border:0}
/* Approved review interactions, applied to native message controls. */
body.ys-letter-chat{--letter-header:46px;--letter-header-offset:7px;--letter-tool-ink:#626262}
body.ys-letter-chat[data-letter-theme=sepia]{--letter-tool-ink:#bcbcbc}
body.ys-letter-chat[data-letter-theme=black]{--letter-tool-ink:#c4c4c4}
.ys-letter-chat .topbar{padding:1px 10px}
.ys-letter-chat .topbar>:is(.ys-header-left,.peerpill,.header-actions){translate:0 var(--letter-header-offset)}
.ys-letter-chat #sendBtn .letter-asset{width:38px;height:38px}
.ys-letter-chat #moreBtn .letter-asset{width:12px;margin:auto}
.ys-letter-chat .topbar>#ysResidentToggle{top:calc(100% + 12px);z-index:7}
.ys-letter-chat .letter-clip .clip-back{opacity:.28;stroke-width:1}
.ys-letter-chat .letter-clip .clip-front{opacity:.78}
.ys-letter-chat .composer>.letter-clip{left:9px;top:-9px}
.ys-letter-chat .ys-attachment-group.expanded .ys-attachment-collapse{display:none}
.ys-letter-chat :is(.ys-tools-toggle,.think-toggle,.ys-tool-head,.ys-tool-body,.think-copy){color:var(--letter-tool-ink)}
.ys-letter-chat .ys-tools-label{background:none;color:var(--letter-tool-ink);-webkit-text-fill-color:currentColor}
.ys-letter-chat .letter-message-actions{display:flex;align-items:center;gap:0;margin-top:2px;opacity:.6}
.ys-letter-chat .human .letter-message-actions{justify-content:flex-end}
.ys-letter-chat .human .letter-message-actions>.letter-more{order:2}
.ys-letter-chat .message-actions-reveal{display:flex;align-items:center;gap:16px;max-width:0;opacity:0;overflow:hidden;visibility:hidden;transition:max-width .22s ease,opacity .18s ease,padding .22s ease;padding:8px 0;margin-block:-8px}
.ys-letter-chat .actions-open .message-actions-reveal{max-width:200px;opacity:1;visibility:visible;padding-inline:8px}
.ys-letter-chat .message-actions-reveal button{flex:0 0 28px;width:28px;height:28px;min-width:28px;min-height:28px;padding:6px;display:grid;place-items:center;border:0;background:none;color:var(--muted)}
.ys-letter-chat .letter-message-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.ys-letter-chat .letter-translate-toggle{display:inline-grid;place-items:center;vertical-align:middle;width:34px;min-width:34px;height:30px;min-height:30px;margin-left:5px;padding:6px;color:var(--muted);border:0;background:none;border-radius:50%;line-height:1}
.ys-letter-chat .letter-translate-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.2}
.ys-letter-chat .letter-translate-toggle:is(:hover,[aria-expanded=true]){color:var(--ink);background:var(--wash)}
.ys-letter-chat .letter-translation{margin:4px 0 10px;padding:8px 12px;border-left:1px solid var(--hairline);background:linear-gradient(90deg,var(--wash),transparent);text-align:left;color:var(--muted);font:14px/1.8 YoseiWenKai,sans-serif;overflow:hidden;box-sizing:border-box}
.ys-letter-chat .letter-translation[hidden]{display:none}
.ys-letter-chat .ys-audio{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:4px 10px;width:min(290px,100%)}
.ys-letter-chat .letter-audio-caption{grid-column:2/-1;overflow:hidden;white-space:nowrap;color:var(--muted);font-size:12px;line-height:1.5;mask-image:linear-gradient(90deg,#000 90%,transparent)}
.ys-letter-chat .letter-audio-ribbon{display:inline-flex;width:max-content;animation:letter-audio-scroll 14s linear infinite;animation-play-state:paused}
.ys-letter-chat .letter-audio-ribbon>span{min-width:240px;padding-right:28px}
.ys-letter-chat .playing .letter-audio-ribbon{animation-play-state:running}
.ys-letter-chat .bubble:has(.letter-audio-caption)>.ys-caption{display:none}
@keyframes letter-audio-scroll{to{transform:translateX(-50%)}}
.ys-letter-chat .composer .field{position:relative;isolation:isolate;border:0}
.ys-letter-chat .letter-input-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;stroke-width:1.4;overflow:visible;color:var(--ink)}
.ys-letter-chat .field:focus-within .letter-input-outline{stroke-width:1.8}
.ys-letter-chat .composer.turn-running #sendBtn .letter-asset{animation:letter-send-breathe 1.15s ease-in-out infinite}
@keyframes letter-send-breathe{0%,100%{opacity:.55;transform:translateY(1px) scale(.94)}50%{opacity:1;transform:translateY(-2px) scale(1.04)}}
.ys-letter-chat :is(.ys-plus-menu,.ys-tool-page):not(.hidden){animation:letter-drawer-open .18s ease-out}
@keyframes letter-drawer-open{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
.ys-letter-chat #newMsgBtn{min-height:44px;visibility:hidden}
.ys-letter-chat #newMsgBtn.show{visibility:visible}
@media(prefers-reduced-motion:reduce){.ys-letter-chat :is(.letter-audio-ribbon,.composer.turn-running #sendBtn .letter-asset,.ys-plus-menu,.ys-tool-page){animation:none!important}.ys-letter-chat .message-actions-reveal{transition:none}}
