.work-dialog{width:min(570px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:24px;background:var(--bg);color:var(--ink);padding:28px;box-shadow:0 24px 100px #19343222}.work-dialog::backdrop{background:#18282755;backdrop-filter:blur(8px)}.work-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.work-head h2{font-size:21px;margin:0}.work-head button{font-size:24px}.work-dialog label{display:block;font-size:13px}.work-dialog textarea,.voice-dialog textarea{box-sizing:border-box;width:100%;min-height:145px;background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:14px;color:var(--ink);font:14px/1.7 inherit;resize:vertical;margin:12px 0}.work-dialog .source-label{display:flex;align-items:center;gap:12px}.source-label input{max-width:230px;font-size:12px}.subtle,.job-status{font-size:12px;line-height:1.7;color:var(--muted)}.context-toggle{margin:20px 0 8px}.work-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.work-actions button{padding:10px 18px;border-radius:24px;border:1px solid var(--line);font-size:13px}.work-actions .primary{background:var(--ink);color:var(--paper)}button:disabled{opacity:.45;cursor:not-allowed}.file-content-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 inherit;max-height:420px;overflow:auto;padding:18px;border-top:1px solid var(--line)}.live-artifact{max-width:760px;margin:25px auto}.voice-dialog .orb{width:88px;height:88px;margin:25px auto}.voice-dialog textarea{min-height:110px;text-align:left}.voice-dialog .voice-switch{margin-top:12px;flex-wrap:wrap}.voice-dialog .voice-note{margin-top:20px}.orb.paused{animation:none}.voice-dialog[data-state=idle] .orb{filter:saturate(.4)}@media(max-width:650px){.work-dialog{padding:22px}.source-label{flex-wrap:wrap}.voice-dialog{max-height:90dvh;overflow:auto}.artifact-meta strong{overflow-wrap:anywhere}.artifact-buttons{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.orb{animation:none!important}}

.voice-upload{display:block;font-size:12px;color:var(--muted);margin-top:18px}.voice-upload input{display:block;max-width:100%;margin-top:8px}.voice-switch{flex-wrap:wrap}

.slide-preview{width:min(1120px,94vw);max-width:94vw}.slide-preview>img{display:block;width:100%;max-height:68vh;object-fit:contain}.slide-preview .work-head h2{font-size:18px}.slide-preview .work-actions{justify-content:center}
.html-preview{width:min(1200px,95vw);max-width:95vw}.html-preview iframe{width:100%;height:70vh;border:0;background:white}.work-dialog #artifact-style{width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--border,#d5dcda);border-radius:10px;background:transparent;color:inherit;font:inherit}

/* Voice: one primary action per state, real microphone level and replay. */
.voice-dialog.voice-recorder{box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:24px;border-radius:24px}.voice-recorder [hidden]{display:none!important}.voice-recorder .voice-top{font-size:12px;margin-bottom:30px}.voice-recorder .voice-top button{width:36px;height:36px;font-size:24px;border-radius:50%}.voice-recorder .voice-top button:hover{background:var(--panel)}.voice-recorder h2{font:500 23px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;margin-bottom:20px;letter-spacing:.2px}.voice-signal{height:68px;display:flex;align-items:center;justify-content:center;gap:5px;margin:8px 0}.voice-signal i{display:block;width:4px;height:6px;border-radius:4px;background:var(--muted);opacity:.35;transition:height .1s}.voice-recorder[data-state=recording] .voice-signal i{background:var(--accent);opacity:.85}.voice-clock{font:400 25px/1.6 ui-monospace,SFMono-Regular,monospace;font-variant-numeric:tabular-nums;color:var(--ink)}.voice-recorder .voice-status{min-height:44px;margin:10px 0 18px;line-height:1.7;font-size:13px}.voice-device{display:flex;align-items:center;gap:12px;text-align:left;color:var(--muted);font-size:12px;margin:0 0 20px}.voice-device select{min-width:0;flex:1;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font-size:12px}.voice-recorder textarea{font:inherit;font-size:15px;line-height:1.7;min-height:140px;margin:0 0 18px}.voice-playback{margin:0 0 22px;text-align:left}.voice-playback-label{color:var(--muted);font-size:11px;margin-bottom:8px}.voice-playback audio{display:block;width:100%;height:36px}.voice-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}.voice-actions button{min-height:46px;border-radius:24px;padding:10px 20px;font-size:14px}.voice-actions .voice-primary{background:var(--ink);color:var(--paper);min-width:168px;font-weight:500}.voice-actions .voice-primary:hover{opacity:.85}.voice-actions .voice-primary:disabled{opacity:.5}.voice-actions .voice-secondary{border:1px solid var(--line);background:var(--paper);padding:10px 16px}.voice-recorder[data-state=recording] .voice-primary:before{content:'';display:inline-block;width:10px;height:10px;border-radius:2px;background:currentColor;margin-right:9px}.voice-file-link{position:relative;display:inline-block;margin-top:22px;color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.voice-file-link input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.voice-file-link:focus-within{outline:2px solid var(--accent);outline-offset:5px}.voice-recorder .voice-note{margin:20px 0 0;font-size:11px!important;line-height:1.6}@media(prefers-reduced-motion:reduce){.voice-signal i{transition:none}}@media(max-width:480px){.voice-dialog.voice-recorder{padding:20px}.voice-recorder .voice-top{margin-bottom:20px}.voice-actions button{padding:10px 16px}.voice-actions .voice-primary{min-width:150px}}
