/* A quiet extension of the current chat theme. */
.listening-host{flex:0 0 auto;position:relative;z-index:4;margin:0 var(--side-pad) 2px;min-height:0}
.listening-host[hidden],.listening-host [hidden],.listening-dialog [hidden],#listeningReferences[hidden]{display:none!important}
.listening-card{border:1px solid var(--card-line,#ffffff24);border-radius:18px;background:var(--panel-bg,#101b2b);color:var(--text);overflow:hidden}
:root[data-theme="snow"] .listening-card{background:linear-gradient(135deg,#101c30ed,#091321ed);border-color:#bfd7f22b;box-shadow:0 8px 24px #0002}
.listening-heading{display:flex;align-items:center;gap:4px;padding:8px 10px}
.listening-track{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-align:left}
.listening-track>span:last-child{min-width:0;display:grid;gap:3px}
.listening-track strong{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.listening-track small{font-size:11px;color:var(--text-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.listening-cover{width:40px;height:40px;flex:none;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#4a617e,#15263b 65%);color:#c6ddf5;border-radius:10px;font-size:24px;overflow:hidden}
.listening-cover img{height:100%;width:100%;object-fit:cover}
.listening-host button,.listening-dialog button{font-family:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}
.listening-host button:disabled,.listening-dialog button:disabled{cursor:default;opacity:.45}
.listening-host button:focus-visible,.listening-dialog button:focus-visible,.listening-dialog input:focus-visible,.listening-dialog textarea:focus-visible,.listening-dialog select:focus-visible{outline:2px solid var(--accent,#bfd7f2);outline-offset:2px}
.listening-icon{font-size:23px;min-width:40px;min-height:40px}
.listening-icon svg,.listening-transport svg{width:22px;height:22px;display:block;margin:auto}
.listening-transport .listening-play svg{width:25px;height:25px}
.listening-top-actions{display:flex;align-items:center;padding:0 12px;gap:14px;font-size:12px;color:var(--text-soft)}
.listening-top-actions>span{margin-right:auto;letter-spacing:.1em}
.listening-top-actions select{max-width:110px;min-height:32px;padding:3px 6px;border:1px solid var(--card-line,#ffffff24);border-radius:8px;background:var(--panel-bg,#101b2b);color:inherit;font:inherit;cursor:pointer}
.listening-top-actions select:focus-visible{outline:2px solid var(--accent,#bfd7f2);outline-offset:2px}
.listening-top-actions button{min-height:32px;padding:3px 0}
.listening-lyrics{height:100px;overflow-y:auto;overscroll-behavior:contain;position:relative;scrollbar-width:none;padding:18px 12px;text-align:center;mask-image:linear-gradient(transparent,#000 14px,#000 calc(100% - 14px),transparent)}
.listening-lyrics p{font-size:13px;line-height:1.8;color:var(--text-soft);margin:14px 0}
.listening-lyrics button[data-line]{display:block;width:100%;min-height:35px;padding:6px 0;font-size:14px;line-height:1.6;color:var(--text-faint);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:color .2s ease}
.listening-lyrics button.is-current{color:var(--text);text-shadow:0 0 14px #b2d1f042}
.listening-lyrics button.listening-add-lrc{min-height:36px;font-size:11px;text-decoration:underline;color:var(--text-soft)}
.listening-timeline{padding:0 16px}
.listening-timeline input{display:block;width:100%;height:20px;margin:0;accent-color:var(--accent,#bfd7f2);cursor:pointer}
.listening-timeline>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font:11px var(--font-en,serif);color:var(--text-soft)}
.listening-timeline button{font-size:11px;min-height:28px}
.listening-transport{display:flex;align-items:center;justify-content:space-evenly;padding:0 12px;gap:10px}
.listening-transport button{min-width:40px;min-height:40px;font-size:19px}
.listening-transport #listeningEnd{font-size:12px}
.listening-transport .listening-play{width:46px;height:46px;border:1px solid var(--card-line,#ffffff30);border-radius:50%;background:#c1d9f20b;font-size:25px}
.listening-transport button[aria-pressed="true"]{color:var(--accent);background:#c1d9f212;border-radius:50%}
.listening-analysis-row{display:flex;gap:10px;align-items:center;padding:6px 12px 9px;min-height:28px;font-size:10px;line-height:1.5;color:var(--text-soft)}
.listening-analysis-row>span{flex:1;overflow-wrap:anywhere}
.listening-analysis-row button{font-size:11px;flex:none;min-height:28px;text-decoration:underline}
.listening-mini-progress{height:2px;background:#a8bfd912}
.listening-mini-progress i{display:block;width:0;height:100%;background:#b4cce9a6}
.music-share{margin:10px 0 4px;min-width:0;width:min(280px,100%)}
.music-share-play{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;padding:12px;border:1px solid var(--card-line,#bfd7f22b);border-radius:14px;background:#a7c7ed0a;color:inherit;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation}
.music-share-play:focus-visible{outline:2px solid var(--accent,#bfd7f2);outline-offset:3px}
.music-share-cover{width:46px;height:46px;flex:none;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:#bdd5ef14;font-size:24px}
.music-share-cover img{width:100%;height:100%;object-fit:cover}
.music-share-copy{display:grid;gap:4px;min-width:0;flex:1}
.music-share-copy strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}
.music-share-copy small{font-size:11px;color:var(--text-soft);overflow-wrap:anywhere}
.music-share-icon{width:22px;flex:none}.music-share-icon svg{display:block;width:22px;height:22px}
.is-expanded .listening-mini-progress{display:none}
.listening-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 48px);padding:18px;border:1px solid var(--card-line,#ffffff30);border-radius:22px;background:var(--panel-bg,#111d30);color:var(--text,#e8eef7);font-family:var(--font-cn,serif);overflow:auto;overscroll-behavior:contain}
:root[data-theme="snow"] .listening-dialog{background:linear-gradient(155deg,#17263d,#0c1728);border-color:#bfd7f22f;color:#e8eef7;box-shadow:0 24px 70px #0008}
.listening-dialog::backdrop{background:#030915b3;backdrop-filter:blur(5px)}
.listening-dialog header{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.listening-dialog h2{font:500 20px var(--font-cn,serif);margin:0;flex:1}
.listening-dialog header>button{font-size:26px;min-width:40px;min-height:40px}
.listening-dialog input:not([type="file"]),.listening-dialog textarea,.listening-dialog select{box-sizing:border-box;background:var(--field-bg,#07122277);color:inherit;border:1px solid var(--card-line,#ffffff26);border-radius:10px;min-height:42px;padding:9px 10px;font:16px var(--font-cn,serif);min-width:0;width:100%}
.listening-dialog input::placeholder,.listening-dialog textarea::placeholder{color:var(--text-faint,#9fb0c7)}
.listening-dialog label{display:grid;gap:8px;font-size:13px;margin:14px 0;color:var(--text-soft,#b4c2d5)}
.listening-dialog details summary{font-size:13px;cursor:pointer;padding:12px 0}
#listeningSearch{display:grid;grid-template-columns:110px 1fr 44px;gap:6px}
#listeningSearch select{font-size:13px;padding:7px}
#listeningSearch button{font-size:13px;padding:0}
.listening-picker-actions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.listening-picker-actions button{border:1px solid var(--card-line,#ffffff24);border-radius:20px;min-height:36px;padding:5px 12px;font-size:12px}
.listening-help,.listening-dialog footer{font-size:12px;line-height:1.75;color:var(--text-soft,#b4c2d5);overflow-wrap:anywhere}
.listening-results{max-height:45dvh;overflow:auto}
.listening-results>p{font-size:13px;line-height:1.8;padding:15px 0;color:var(--text-soft)}
.listening-result{display:flex;gap:8px;border-bottom:1px solid var(--card-line,#ffffff12);padding:6px 0}
.listening-result .listening-result-song{flex:1;min-width:0;text-align:left;padding:8px 0}
.listening-result strong,.listening-result small{display:block;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.listening-result strong{font-size:15px;margin-bottom:5px}
.listening-result small{font-size:12px;color:var(--text-soft)}
.listening-result>button:last-child{min-width:40px;font-size:16px}
.listening-dialog button.listening-primary{background:#bfd7f2;color:#132238;border-radius:24px;min-height:44px;padding:10px 24px;font-size:15px}
#listeningSettingsForm>.listening-primary{width:100%}
.listening-voice{text-align:center}
.listening-voice header{text-align:left}
#listeningVoiceStatus{font-size:15px;line-height:1.8;overflow-wrap:anywhere}
#listeningVoicePreview{max-width:100%;margin:12px 0}
.listening-voice-actions{display:flex;gap:12px;justify-content:center;align-items:center;margin:20px 0;flex-wrap:wrap}
.listening-voice-actions button{min-height:44px}
#listeningReferences{display:grid;gap:5px;padding:0 4px 6px}
.listening-reference{display:flex;align-items:center;gap:8px;border:1px solid var(--card-line,#ffffff20);background:var(--panel-bg,#111d30);padding:4px 10px;border-radius:12px;color:var(--text-soft);font-size:12px;line-height:1.5}
.listening-reference>span{flex:1;min-width:0;max-height:3em;overflow:hidden}
.listening-reference>button{border:0;background:none;color:inherit;font:20px inherit;min-width:34px;min-height:34px}
.field #micBtn{position:static;flex:0 0 36px;width:36px;height:40px;min-width:36px;padding:7px;background:none;border:0;border-radius:0;box-shadow:none;color:var(--text-soft);display:grid;place-items:center}
.field #micBtn svg{width:21px;height:21px}
:root[data-theme="snow"] .field #micBtn{color:#c2d1e3}
.field .voice-hold{flex:1;min-width:0;min-height:40px;align-self:stretch;border:0;border-radius:12px;background:transparent;color:var(--text);font:500 16px var(--font-cn,serif);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.field .voice-hold:active{background:#bfd7f212}
/* The composer's editable-text rule must not enable iOS selection on recording controls. */
#voiceHold,#voiceHold *,#voiceCapture,#voiceCapture *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
.field .voice-hold[hidden],.field.is-voice-mode #input,.voice-capture[hidden]{display:none!important}
.voice-capture{position:fixed;inset:0;z-index:10000;display:flex;align-items:flex-end;justify-content:center;padding:30px 24px calc(135px + env(safe-area-inset-bottom));box-sizing:border-box;background:#030913de;color:#e8eef7;pointer-events:none}
.voice-capture-content{width:min(360px,100%);text-align:center;font-family:var(--font-cn,serif)}
#voiceCaptureStatus{font-size:19px;line-height:1.5;margin:0 0 24px}
.voice-wave{height:58px;display:flex;gap:5px;justify-content:center;align-items:center}
.voice-wave i{display:block;flex:0 0 4px;height:44px;border-radius:4px;background:#c5dcef;transform:scaleY(.09);transition:transform 45ms linear}
#voiceCaptureTime{font-size:14px;color:#bbcadd;margin:12px 0 30px;font-variant-numeric:tabular-nums}
.voice-gesture-targets{display:flex;justify-content:space-between;gap:30px;padding:0 22px}
.voice-gesture-targets>div{display:grid;place-items:center;width:76px;height:64px;border:1px solid #c3d8ee35;border-radius:32px;font-size:15px;color:#bbcadd;background:#bddef00a}
.voice-capture[data-intent="cancel"] #voiceCancelTarget{background:#75464c;border-color:#d58f98;color:#fff}
.voice-capture[data-intent="text"] #voiceTextTarget{background:#59778c;border-color:#b3dbf4;color:#fff}
#voiceGestureHint{margin:22px 0 0;font-size:12px;line-height:1.8;color:#bbcadd}
.voice-capture[data-intent="cancel"] .voice-wave i{background:#d59ca4}
#voiceTranscript{text-align:left;resize:vertical;min-height:130px;line-height:1.7}
@media(max-height:720px){.listening-lyrics{height:68px;padding-block:12px}.listening-top-actions{font-size:11px}.listening-analysis-row{padding-block:4px}.listening-heading{padding-block:5px}.listening-cover{width:34px;height:34px}}
@media(max-width:360px){#listeningSearch{grid-template-columns:92px 1fr 36px}.listening-dialog{padding:14px}.listening-transport{gap:4px}}
@media(prefers-reduced-motion:reduce){.voice-wave i,.listening-lyrics button{animation:none!important;transition:none!important}}
