.voice-shell{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.7fr);gap:18px;align-items:start}.voice-side,.voice-main{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px}.voice-side{position:sticky;top:94px}.voice-side h2{font-size:34px;line-height:1.02;letter-spacing:-.045em;margin:0 0 12px}.voice-modes{display:grid;gap:8px;margin-top:16px}.mode-chip{border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);padding:12px 14px;text-align:left;font-weight:720;cursor:pointer;min-height:44px}.mode-chip:hover,.mode-chip:focus-visible{border-color:var(--accent)}.mode-chip.selected{background:var(--ink);color:#fff;border-color:var(--ink)}.toggle-row{display:flex;gap:10px;align-items:flex-start;padding:9px 0}.toggle-row input{margin-top:5px}.toggle-row span{display:grid;gap:2px}.toggle-row small{font-size:12px;color:var(--muted)}.voice-main{display:grid;gap:18px}.voice-status{display:flex;justify-content:space-between;gap:18px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px}.voice-status>div{display:flex;align-items:center;gap:9px}.status-dot{width:9px;height:9px;border-radius:50%;background:#9aa0a8;display:inline-block}.status-dot.live{background:var(--accent);box-shadow:0 0 0 5px rgba(49,92,255,.10)}.conversation{min-height:360px;max-height:560px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:4px 4px 8px}.chat{max-width:82%;border-radius:18px;padding:14px 16px}.chat span{display:block;text-transform:uppercase;letter-spacing:.1em;font-size:9px;font-weight:820;margin-bottom:5px;opacity:.62}.chat p{margin:0}.chat.assistant{align-self:flex-start;background:var(--paper2);border-bottom-left-radius:6px}.chat.user{align-self:flex-end;background:var(--ink);color:#fff;border-bottom-right-radius:6px}.voice-compose{border-top:1px solid var(--line);padding-top:18px}.voice-compose textarea{width:100%;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);padding:14px;outline:none;resize:vertical;font-size:16px;margin-bottom:12px}.voice-compose textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(49,92,255,.10)}.mic-button.listening{background:var(--accent);border-color:var(--accent)}.voice-summary{border-top:1px solid var(--line);padding-top:26px}.summary-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.summary-head h3{font-size:30px;letter-spacing:-.04em;margin:5px 0 0}.summary-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px;margin-top:18px}.summary-grid>div{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:17px}.summary-grid h4{margin:0 0 10px;font-size:14px}.summary-grid p{font-size:13px;color:var(--muted);margin:0 0 10px}.summary-grid p:last-child{margin-bottom:0}.summary-grid strong{color:var(--ink)}@media(max-width:900px){.voice-shell{grid-template-columns:1fr}.voice-side{position:static}.summary-grid{grid-template-columns:1fr}.conversation{min-height:300px;max-height:480px}}@media(max-width:560px){.voice-side,.voice-main{padding:22px}.chat{max-width:92%}.voice-status,.summary-head{align-items:flex-start;flex-direction:column}.voice-compose .actions{display:grid}.voice-compose .button{width:100%}}
/* Action/output rhythm: keep generated status and output surfaces visually separated from controls. */
.voice-compose .actions,.voice-summary>.actions,.qsection .actions{row-gap:10px}
.voice-summary>.actions+.summary-box{margin-top:16px}
.voice-summary>.summary-box+.helper{margin-top:10px}
.voice-summary [data-create-note]{margin-top:10px}
@media(max-width:560px){.voice-summary>.actions{display:grid}.voice-summary>.actions .button{width:100%}}

/* Conversational discovery: visible, accessible checkbox targets. */
.voice-side .toggle-row input[type="checkbox"]{width:24px;min-width:24px;height:24px;min-height:24px;flex:0 0 24px;margin:0;accent-color:var(--text-link)}

/* Explicit microphone diagnostics remain readable when Web Speech disconnects. */
.voice-mic-feedback{margin:0;padding:10px 13px;border-radius:9px;border:1px solid var(--border-default,#b9c9db);background:var(--surface-subtle,#eef5fb);color:var(--text-primary,#17324b);font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.voice-mic-feedback:empty{display:none}
.voice-compose [data-load-sample]{background:var(--surface-panel,#fff);border:1px solid var(--border-strong,#7b93ae);color:var(--text-primary,#17324b)}

/* Accessible recording instructions and controls in both site themes. */
.voice-record-guide{background:var(--surface-subtle,#edf4fc);border:1px solid var(--border-strong,#95abc3);border-radius:13px;padding:16px;margin-bottom:18px;color:var(--text-primary,#182b42)}
.voice-record-guide strong{font-size:16px;line-height:1.45;display:block}
.voice-record-guide p{margin:9px 0 0;font-size:13px;line-height:1.6;color:var(--text-primary,#182b42)}
.voice-record-guide .voice-record-privacy{font-size:12px;color:var(--text-secondary,#425870);border-top:1px solid var(--border-default,#b3c7d9);padding-top:9px}
.voice-record-controls{display:grid;gap:9px;border-bottom:1px solid var(--border-default,#b3c7d9);padding-bottom:15px;margin-bottom:16px;min-width:0}
.voice-record-controls .actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.voice-record-controls [hidden]{display:none!important}
.voice-record-controls button{min-height:44px;overflow-wrap:anywhere}
.voice-record-status{margin:0;font-size:13px;line-height:1.55;color:var(--text-primary,#182b42)}
.voice-record-status[data-active="true"]{font-weight:750}
.voice-record-controls audio{max-width:100%;width:100%}
.voice-compose [data-mic]{border-color:var(--border-strong,#6f8baa)}
@media(max-width:560px){.voice-record-controls .actions{display:grid;grid-template-columns:1fr}.voice-record-controls button{width:100%}.voice-record-guide{padding:14px}}
