.safety-form{display:flex;flex-direction:column;gap:14px}.safety-form select,.safety-form textarea,.safety-report-card textarea{width:100%;padding:12px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;font:inherit;color:#374253}.safety-target{margin:0;font-size:14px}.safety-note{font-size:12px;color:#8b96a5;line-height:1.7;margin:8px 0}.safety-confirm{padding:12px;border-radius:10px;background:#f3f5f8;margin-top:8px}.safety-confirm button{margin:5px 8px 0 0}.safety-user-actions{margin-top:14px;border-top:1px solid #e7ebf0}.safety-list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid #e7ebf0}.safety-list-row strong{font-size:14px}.safety-report-card{padding:18px 0;border-bottom:1px solid #e7ebf0}.safety-report-state{display:inline-block;margin-left:12px;font-size:12px;color:#8191a5}.safety-report-body,.safety-report-outcome{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.safety-admin-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.safety-report-card>button{margin:8px 0}.safety-report-card textarea{margin-top:12px}.voice-hold-button{width:100%;min-height:48px;border:1px solid #dfe3ea;border-radius:9px;background:#f5f6f8;color:#4b5666;font:inherit;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.voice-hold-button.is-recording{background:#e5edf2;color:#384c61}.voice-hold-button.is-cancel{background:#fae9e9;color:#b85a5a}.voice-status{font-size:12px;line-height:1.7;color:#8591a3;margin:8px 0}.voice-retry{display:flex;gap:10px;margin-top:8px}.voice-message{display:flex;flex-direction:column;gap:5px;width:230px;max-width:100%}.voice-message audio{display:block;width:100%;max-width:100%;height:42px}.voice-unplayed{align-self:flex-start;font-size:10px;color:#b26062}.voice-unplayed:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;margin-right:5px;background:currentColor}.voice-duration{font-size:11px;color:#8e99a9}.message-bubble:has(.voice-message){max-width:min(280px,calc(100vw - 100px))}.composer.is-voice-input .composer-input{width:100%}.composer.is-voice-input .composer-box{overflow:visible}

.direct-chat-info>.safety-user-actions{margin:0;padding:0 24px;border-top:8px solid #f5f6f8;background:#fff}.direct-chat-info>.safety-user-actions>.menu-row{display:flex;align-items:center;width:100%;min-height:53px;padding:15px 0;justify-content:center;text-align:center;border:0;border-bottom:1px solid #e6ebf1;border-radius:0;background:transparent;font:inherit;font-size:14px;line-height:1.7;color:#71859d}.direct-chat-info>.safety-user-actions>.menu-row:last-of-type{border-bottom:0}.direct-chat-info>.safety-user-actions>.menu-row.danger{color:#f05e67}.direct-chat-info>.safety-user-actions>.menu-row:focus-visible{outline:2px solid #a0b0c3;outline-offset:-3px}@media(min-width:760px){.direct-info-modal .direct-chat-info>.safety-user-actions{padding:0 22px;border-top-width:6px}.direct-info-modal .direct-chat-info>.safety-user-actions>.menu-row{min-height:46px;padding:12px 0;font-size:13px}}

.safety-admin-filter{padding:18px 22px;border-bottom:1px solid #e7ebf0}.safety-admin-filter select{max-width:220px;width:100%}.safety-admin-list{padding:0 22px}.safety-admin-list .safety-report-card{padding:20px 0}

.composer{position:relative}.composer-more{position:absolute;bottom:calc(100% + 8px);left:18px;z-index:25;min-width:160px;padding:6px;background:#fff;border:1px solid #e4e7ed;border-radius:12px;box-shadow:0 8px 28px #27354a20}.composer-more-item{display:block;width:100%;border:0;border-radius:7px;padding:13px 16px;background:transparent;text-align:left;color:#435168;font:inherit;font-size:14px;cursor:pointer}.composer-more-item:hover,.composer-more-item:focus-visible{background:#f2f4f7}.composer-more-item[hidden]{display:none}
@media(max-width:759px){
 .composer .composer-box{grid-template-columns:minmax(0,1fr) 32px 32px}
 .composer:has(#voiceToggle:not([hidden])) .composer-box{grid-template-columns:32px minmax(0,1fr) 32px 32px}
 .composer:has(#voiceToggle:not([hidden])) .composer-input{grid-column:2}
 .composer-tools #voiceToggle{grid-row:1;grid-column:1}
 .composer:has(#voiceToggle:not([hidden])) #emojiBtn{grid-column:3}
 .composer:has(#voiceToggle:not([hidden])) #mediaBtn,.composer:has(#voiceToggle:not([hidden])) #sendBtn{grid-column:4}
 .composer.has-content .composer-box{grid-template-columns:minmax(0,1fr) 32px 55px}
 .composer.has-content:has(#voiceToggle:not([hidden])) .composer-box{grid-template-columns:32px minmax(0,1fr) 32px 55px}
 .composer-more{left:auto;right:10px}
 .voice-hold-button{height:38px;min-height:38px;border-radius:6px}
}

/* Chat voice playback */
.message-bubble:has(.voice-message){padding:0;overflow:visible;max-width:min(254px,calc(100vw - 98px))}
.voice-message{position:relative;display:flex;align-items:center;gap:6px;width:min(242px,calc(100vw - 106px));max-width:100%;padding-right:10px}
.voice-play{display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;padding:0;border:0;border-radius:inherit;background:transparent;color:#303640;font:inherit;text-align:left;touch-action:manipulation}
.voice-play:focus-visible{outline:2px solid #7f9ba8;outline-offset:3px}
.voice-play-mark{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#282d34;color:white}
.voice-play-mark::before{content:"";width:0;height:0;margin-left:2px;border-block:5px solid transparent;border-left:7px solid currentColor}
.is-playing .voice-play-mark::before{width:8px;height:10px;margin:0;border:0;border-inline:2px solid currentColor}
.voice-seek-track{position:relative;flex:1;min-width:18px;display:grid;align-items:center;height:44px}
.voice-seek{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
.voice-seek-track:focus-within{outline:2px solid #7f9ba8;outline-offset:2px;border-radius:4px}
.voice-wind-wave{display:block;position:relative;height:24px;pointer-events:none}
.voice-wind-wave svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:2.1;stroke-linecap:round}
.voice-wind-track{stroke:#a0a9b5}
.voice-wind-played{stroke:#303640;clip-path:inset(0 calc(100% - var(--voice-progress,0%)) 0 0)}
.voice-message .voice-duration{flex:none;color:#566171;font-size:11px;font-variant-numeric:tabular-nums;line-height:22px;white-space:nowrap}
.voice-unplayed{position:absolute;right:-14px;top:18px;width:6px;height:6px;border-radius:50%;background:#ef5350}

.voice-hold-button{appearance:none;-webkit-appearance:none;background:#fff;border:1px solid #dddfe3;border-radius:6px;min-height:44px;font-size:15px;font-weight:500;letter-spacing:1px;color:#30343b;transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease;cursor:pointer;-webkit-tap-highlight-color:transparent}
.voice-hold-button.is-pressed,.voice-hold-button.is-recording,.voice-hold-button.is-cancel{background:#dadbdd;border-color:#d0d2d5;color:#30343b;box-shadow:inset 0 1px 3px #00000008}
.voice-recording-hud{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;pointer-events:none;background:#00000012;animation:voice-hud-in .14s ease-out}
.voice-recording-hud[hidden]{display:none}.voice-recording-card{display:flex;align-items:center;justify-content:center;gap:18px;position:relative;width:190px;height:154px;padding:20px 24px 34px;border-radius:18px;background:#25282de8;color:#fff;box-shadow:0 8px 32px #00000012;transition:background-color .16s ease}
.voice-recording-card>svg{width:38px;height:54px}.voice-recording-time{position:absolute;bottom:13px;left:0;right:0;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;color:#ffffffb3}
.voice-recording-bars{display:flex;align-items:center;gap:4px;height:48px}.voice-recording-bars>i{display:block;width:4px;height:14px;border-radius:3px;background:currentColor;animation:voice-level .8s ease-in-out infinite alternate}.voice-recording-bars>i:nth-child(2n){height:32px;animation-delay:-.25s}.voice-recording-bars>i:nth-child(3n){height:44px;animation-delay:-.5s}
.voice-recording-hint{padding:8px 14px;border-radius:7px;background:#25282de8;color:white;font-size:13px;transition:background-color .16s ease}
.voice-recording-hud.is-cancel .voice-recording-card,.voice-recording-hud.is-cancel .voice-recording-hint{background:#c95454f2}.voice-recording-hud.is-cancel .voice-recording-bars{opacity:.45}
@keyframes voice-hud-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes voice-level{from{transform:scaleY(.45)}to{transform:scaleY(1)}}
@media(max-width:759px){.voice-hold-button{height:38px;min-height:38px;line-height:22px;padding:7px 9px}.voice-recording-card{margin-top:-60px}}
@media(prefers-reduced-motion:reduce){.voice-hold-button,.voice-recording-card,.voice-recording-hint{transition:none}.voice-recording-hud,.voice-recording-bars>i{animation:none}}

.desktop-voice-panel{position:absolute;left:16px;bottom:calc(100% + 10px);z-index:35;width:300px;max-width:calc(100vw - 40px);padding:16px;background:#fff;border:1px solid #e1e5eb;border-radius:12px;box-shadow:0 10px 34px #25324624;color:#343b45}
.desktop-voice-panel[hidden]{display:none}.desktop-voice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.desktop-voice-heading strong{font-size:14px;font-weight:500}.desktop-voice-heading .icon-button{width:28px;height:28px;padding:5px;border:0;background:transparent;color:#929aa6}.desktop-voice-clock{display:block;margin:14px 0 8px;text-align:center;font-size:30px;font-weight:400;font-variant-numeric:tabular-nums;color:#343b45}.desktop-voice-label{text-align:center;margin:0 0 18px;color:#929aa6;font-size:12px}.desktop-voice-actions{display:flex;justify-content:flex-end;gap:10px}.desktop-voice-actions>button{min-height:38px;min-width:84px;padding:8px 14px;border-radius:7px;font-size:13px}.desktop-voice-preview{display:block;width:100%;height:40px;margin:0 0 15px}.desktop-voice-preview[hidden]{display:none}.desktop-voice-panel .voice-status{margin:12px 0 0}.desktop-voice-panel .voice-retry{margin-top:12px}.desktop-voice-panel .voice-retry>button{min-height:36px;padding:8px 12px;border-radius:7px}.composer-tools #voiceToggle.is-active{background:#eceff3;color:#292d35}
@media(max-width:759px){.desktop-voice-panel{display:none!important}}

.desktop-voice-listen{position:relative;display:block;width:100%;min-height:40px;margin:0 0 15px;padding:10px 14px;border:0;border-radius:7px;background:#f2f4f6;color:#596575;font:inherit;font-size:13px;text-align:center;cursor:pointer}.desktop-voice-listen[hidden]{display:none}.desktop-voice-listen:after{content:'';position:absolute;left:12px;right:12px;bottom:4px;height:2px;border-radius:2px;background:linear-gradient(to right,#929aa6 var(--voice-preview-progress,0%),transparent 0)}

.voice-mini-player{position:fixed;z-index:36;top:max(8px,env(safe-area-inset-top));left:50%;translate:-50% 0;width:min(350px,calc(100vw - 24px));display:flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #dce3eb;border-radius:10px;background:#fff;box-shadow:0 4px 16px #26354b22}
.voice-mini-player button{border:0;background:none;color:#414d5d;font:inherit;font-size:12px;min-height:32px;padding:3px 7px;white-space:nowrap}
.voice-mini-player .voice-mini-link{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}

@media(max-width:759px){
 .voice-mini-player{top:calc(var(--safe-top,0px) + 57px)}
 body:has(.voice-mini-player:not([hidden])) .in-app-message:not(.in-app-message-dialog-fallback){top:calc(var(--safe-top,0px) + 105px)}
}
@media(prefers-reduced-motion:no-preference){.voice-mini-player:not([hidden]){animation:chat-reveal .16s ease-out}}
