/* The assistant has its own layout; legacy .ai-compose/.sheet rules cannot resize it. */
#assistantWorkspace[hidden]{display:none!important}
#assistantWorkspace{position:fixed;inset:0;top:var(--assistant-top,0);height:var(--assistant-height,100dvh);z-index:12010;display:flex;justify-content:flex-end;align-items:flex-end;padding:18px;background:#17202b45;overscroll-behavior:contain;color:#1d1d1f}
#assistantWorkspace *{box-sizing:border-box;min-width:0}
#assistantWorkspace .assistant-panel{position:relative;display:flex;flex-direction:column;width:min(460px,100%);height:min(800px,100%);background:#fff;border:1px solid #e2e4e8;border-radius:24px;box-shadow:0 20px 80px #0003;overflow:hidden;isolation:isolate}
#assistantWorkspace.assistant-direct{justify-content:center;align-items:center;background:#f5f5f7}
#assistantWorkspace.assistant-direct .assistant-panel{width:min(720px,100%);height:100%}
#assistantWorkspace button{min-height:44px;border:0;border-radius:12px;background:#f0f1f4;color:#26272c;padding:10px 12px;font:600 14px/1.25 system-ui;touch-action:manipulation}
#assistantWorkspace button:disabled{opacity:.5;cursor:default}
#assistantWorkspace button:focus-visible,#assistantWorkspace textarea:focus-visible,#assistantWorkspace summary:focus-visible{outline:2px solid #2463eb;outline-offset:2px}
#assistantWorkspace .assistant-header{display:flex;align-items:center;flex-shrink:0;gap:10px;padding:14px 16px;border-bottom:1px solid #eceef0}
#assistantWorkspace .assistant-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#15171a;color:#fff;font-size:25px}
#assistantWorkspace .assistant-header>div{flex:1}
#assistantWorkspace h2{font-size:19px;line-height:1.2;margin:0;letter-spacing:-.025em}
#assistantWorkspace .assistant-header p{font-size:13px;margin:3px 0 0;color:#68707c}
#assistantWorkspace .assistant-header button{font-size:25px;width:44px;padding:0;background:transparent}
#assistantWorkspace .assistant-context{display:flex;align-items:center;gap:10px;flex-shrink:0;margin:0;padding:10px 16px;background:#fafbfc;border:0;border-bottom:1px solid #eceef0}
#assistantWorkspace .assistant-context>div{flex:1}
#assistantWorkspace .assistant-context small{display:block;font-size:12px;color:#606c80;margin-bottom:3px}
#assistantWorkspace .assistant-context strong{display:block;font-size:15px;overflow-wrap:anywhere}
#assistantWorkspace .assistant-context button{background:#f0f1f4;font-size:13px}
#assistantWorkspace .assistant-toolbar{position:absolute;left:12px;right:12px;top:70px;z-index:4;display:flex;flex-direction:column;align-items:stretch;gap:6px;max-height:65%;overflow:auto;padding:12px;background:#fff;border:1px solid #dce1e8;border-radius:16px;box-shadow:0 10px 25px #0002}
#assistantWorkspace #assistantOptions[hidden]{display:none!important}
#assistantWorkspace summary{cursor:pointer;font-size:13px;font-weight:600;padding:10px 8px;min-height:40px;list-style:none;border-radius:10px}
#assistantWorkspace summary::after{content:'⌄';margin-left:5px}
#assistantWorkspace details[open]>summary{background:#edf0f5}
#assistantWorkspace #assistantNew{text-align:left;background:#f0f1f4;font-size:14px;padding:12px}
#assistantWorkspace .assistant-menu,#assistantWorkspace .assistant-settings{position:relative;background:#fff;border:0;border-radius:12px;padding:6px 0;box-shadow:none}
#assistantWorkspace .assistant-menu{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#assistantWorkspace .assistant-menu button{text-align:left;min-height:75px;background:#f5f6f8;padding:10px}
#assistantWorkspace .assistant-menu b,#assistantWorkspace .assistant-menu small{display:block}
#assistantWorkspace .assistant-menu b{font-size:14px}
#assistantWorkspace .assistant-menu small{font-size:12px;color:#656e7b;font-weight:400;line-height:1.35;margin-top:4px}
#assistantWorkspace #aiProviderState{font-size:13px;line-height:1.4;color:#606b7a;padding:3px}
#assistantWorkspace .ai-token-meter{margin-bottom:0}
#assistantWorkspace .ai-token-meter button{padding:8px}
#assistantWorkspace .ai-token-meter small{font-size:12px}
#assistantWorkspace .assistant-messages{flex:1;min-height:80px;overflow-y:auto;overflow-x:hidden;padding:12px 14px;overscroll-behavior:contain;scrollbar-gutter:stable}
#assistantWorkspace .ai-msg{max-width:95%;font-size:15px;line-height:1.5;padding:12px 14px;margin:0 0 12px;overflow-wrap:anywhere;border-radius:16px;background:#f0f2f6}
#assistantWorkspace .ai-msg.user{max-width:90%;background:#1c222b;color:#fff}
#assistantWorkspace .ai-speak{min-height:32px;font-size:12px;background:transparent;padding:7px 0;color:#555f70;font-weight:500}
#assistantWorkspace .ai-token-use{font-size:11px;color:#626d7c}
#assistantWorkspace .ai-action{max-width:100%;margin-bottom:14px;font-size:15px;background:#f2f7fc;border-color:#d4e2f0;overflow-wrap:anywhere}
#assistantWorkspace .ai-action small{font-size:14px;line-height:1.45;color:#536275}
#assistantWorkspace .ai-action button{background:#202833;color:#fff;margin-top:8px}
#assistantWorkspace .assistant-empty{font-size:14px;color:#677180;line-height:1.5}
#assistantWorkspace .assistant-composer{flex-shrink:0;display:flex;flex-direction:column;gap:8px;padding:12px 14px max(10px,env(safe-area-inset-bottom));border-top:1px solid #e5e8ee;background:#fff}
#assistantWorkspace .assistant-input-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#assistantWorkspace #clinicAsk{display:block;width:100%;min-height:62px;height:68px;max-height:160px;resize:vertical;border:1px solid #cdd3dc;border-radius:16px;padding:12px;background:#fcfcfd;font:400 16px/1.45 system-ui;color:#171b22;overflow:auto}
#assistantWorkspace .assistant-controls{display:flex;align-items:center;gap:7px}
#assistantWorkspace .assistant-controls button{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;min-height:44px;padding:10px}
#assistantWorkspace .assistant-controls svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#assistantWorkspace #assistantSend{margin-left:auto;background:#161a20;color:#fff}
#assistantWorkspace #assistantFill{width:100%;background:#eaf1fc;color:#254e83;font-size:14px}
#assistantWorkspace #assistantFill[hidden]{display:none}
#assistantWorkspace #assistantStatus{font-size:12px;line-height:1.35;color:#66707e;text-align:center;margin:0}
#assistantWorkspace .assistant-file-help{font-size:11px;line-height:1.4;color:#68707c;text-align:center;margin:0}
#assistantWorkspace .assistant-text-files{max-height:150px;overflow:auto;display:grid;gap:6px;font-size:13px;color:#536275}
#assistantWorkspace .assistant-text-files[hidden]{display:none!important}
#assistantWorkspace .assistant-text-file{background:#f0f3f7;border:1px solid #e1e6ee;border-radius:12px;padding:4px 6px 4px 10px}
#assistantWorkspace .assistant-text-file-row{display:flex;align-items:flex-start;gap:5px}
#assistantWorkspace .assistant-text-file details{flex:1;overflow:hidden}
#assistantWorkspace .assistant-text-file summary{padding:9px 2px;overflow-wrap:anywhere;font-size:13px;line-height:1.4}
#assistantWorkspace .assistant-text-file pre{margin:4px 0 8px;max-height:120px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:400 12px/1.5 system-ui}
#assistantWorkspace .assistant-text-file button{flex:none;background:transparent;font-size:22px;min-width:44px;padding:0}
#assistantWorkspace .assistant-text-files>small{font-size:11px;line-height:1.4}
body.assistant-workspace-open .toast{z-index:12030}
#modal.on{z-index:12000}
.toast.on{z-index:12030}
#modal.assistant-action-modal{z-index:12020}
#modal.assistant-action-modal .sheet{position:relative;left:auto!important;top:auto!important;width:min(620px,100%);height:auto;max-height:94dvh;border-radius:24px 24px 0 0}
.assistant-action-review{display:grid;gap:12px}
.assistant-action-review>label{display:grid;gap:5px;font-size:14px}
.assistant-action-review textarea,.assistant-action-review input:not([type=checkbox]){width:100%;padding:11px;border:1px solid #cdd3dc;border-radius:12px;font-size:16px}
.assistant-action-review .assistant-review-check{display:flex;align-items:flex-start;gap:9px}
.assistant-action-review button{min-height:46px;border:0;border-radius:12px;padding:10px}
.assistant-action-review p,.assistant-action-review h3{margin:0;line-height:1.5}
#assistantReviewError{color:#a22}
.assistant-budget-review{max-height:calc(100dvh - 110px);overflow:auto;padding-bottom:max(14px,env(safe-area-inset-bottom))}
.assistant-budget-table-wrap{overflow-x:auto;border:1px solid #e4e7ea;border-radius:13px}
.assistant-budget-table{width:100%;min-width:460px;border-collapse:collapse;background:#fff}
.assistant-budget-table th,.assistant-budget-table td{padding:7px;border-bottom:1px solid #eceff1;text-align:left;vertical-align:top;font-size:12px}
.assistant-budget-table th{position:sticky;top:0;background:#f5f7f8;color:#59636c;font-weight:750}
.assistant-budget-table td input{min-width:58px;padding:8px!important;font-size:14px!important}
.assistant-budget-table td:first-child input{min-width:145px}
.assistant-budget-table td small{display:block;margin:3px 2px;color:#71808a;font-size:10px}
.assistant-budget-total{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;border-radius:13px;background:#122b37;color:#fff}
.assistant-budget-total small{color:#c4d6dc}.assistant-budget-total b{font-size:20px}
.assistant-budget-visual{min-height:42px;padding:4px;border-radius:13px;background:#f4f8f8}
.assistant-budget-visual svg{display:block;width:100%;max-height:260px}
.assistant-inventory-note{padding:12px 14px;border-radius:14px;background:#edf4fb;color:#40546c;font-size:13px;line-height:1.45}
#modal .assistant-inventory-fields[hidden]{display:none!important}
#modal .assistant-inventory-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#modal .assistant-inventory-check{display:flex;align-items:center;gap:8px;padding:8px 4px;font-size:14px}
#modal .assistant-inventory-check input{width:18px;height:18px}
#modal .assistant-inventory-stock{margin:0 2px;color:#536275;font-size:13px;line-height:1.45}
#modal .assistant-inventory-error{min-height:0;margin:0;color:#a22;font-size:13px;line-height:1.4}
#modal .assistant-inventory-preview{padding-bottom:4px}
#modal .assistant-inventory-preview h3{overflow-wrap:anywhere}
@media(max-width:600px){#assistantWorkspace{padding:0}#assistantWorkspace .assistant-panel{width:100%;height:100%;max-height:100%;border:0;border-radius:0}#assistantWorkspace .assistant-header{padding:calc(10px + env(safe-area-inset-top)) 12px 10px}#assistantWorkspace .assistant-toolbar{top:calc(66px + env(safe-area-inset-top))}#assistantWorkspace .assistant-messages{padding:16px 12px}#assistantWorkspace .assistant-context{padding:8px 12px}#assistantWorkspace .assistant-composer{padding-left:12px;padding-right:12px}}
@media(max-width:350px){#assistantWorkspace .assistant-toolbar{padding-left:6px;padding-right:6px}#assistantWorkspace summary{padding-left:5px;padding-right:5px;font-size:12px}#assistantWorkspace .assistant-controls{gap:5px}#assistantWorkspace .assistant-controls button{font-size:13px;padding:10px 8px}}
@media(max-height:560px){#assistantWorkspace .assistant-context small,#assistantWorkspace #assistantStatus,#assistantWorkspace .assistant-file-help{display:none}#assistantWorkspace .assistant-header{padding:5px 10px}#assistantWorkspace #clinicAsk{min-height:54px;height:54px}#assistantWorkspace .assistant-composer{gap:5px;padding-top:6px}#assistantWorkspace .assistant-toolbar{top:56px}#assistantWorkspace .assistant-text-files{max-height:80px}}

.assistant-install-shortcut-v207{display:block;margin:8px 2px 2px;padding:10px 12px;border-radius:11px;background:#eef3fb;color:#17447e;font-size:14px;font-weight:650;text-decoration:none;line-height:1.35}
.assistant-install-shortcut-v207:focus-visible{outline:2px solid #2463eb;outline-offset:2px}
.assistant-patient-picker-v207{position:fixed;inset:0;z-index:13020;display:grid;place-items:center;padding:16px;background:#101820a8;overscroll-behavior:contain}
.assistant-patient-picker-card-v207{display:flex;flex-direction:column;width:min(500px,100%);max-height:min(82dvh,680px);padding:20px;background:#fff;border:1px solid #e2e4e8;border-radius:22px;box-shadow:0 20px 80px #0005;color:#1d1d1f;overflow:hidden}
.assistant-patient-picker-card-v207 header{display:flex;align-items:center;gap:12px}
.assistant-patient-picker-card-v207 h2{flex:1;margin:0;font-size:21px;line-height:1.25}
.assistant-patient-picker-card-v207 p{margin:8px 0 14px;color:#606b7a;font-size:14px;line-height:1.45}
.assistant-patient-picker-card-v207 button{min-height:46px;border:0;border-radius:12px;padding:10px 12px;font:600 15px/1.3 system-ui;touch-action:manipulation}
.assistant-patient-picker-card-v207 header button{width:46px;padding:0;background:transparent;font-size:27px}
.assistant-patient-picker-card-v207 input{min-height:48px;width:100%;border:1px solid #cdd3dc;border-radius:12px;padding:10px 12px;background:#fcfcfd;color:#171b22;font:400 16px/1.4 system-ui}
.assistant-patient-picker-list-v207{display:grid;gap:7px;margin:12px 0;overflow:auto;overscroll-behavior:contain}
.assistant-patient-picker-option-v207{text-align:left;background:#f2f4f7;color:#202833;overflow-wrap:anywhere}
.assistant-patient-picker-option-v207:focus-visible,.assistant-patient-picker-card-v207 button:focus-visible,.assistant-patient-picker-card-v207 input:focus-visible{outline:2px solid #2463eb;outline-offset:2px}
.assistant-patient-picker-empty-v207{padding:12px 0}
.assistant-patient-picker-card-v207 .assistant-patient-picker-cancel-v207{flex:none;background:#171b22;color:#fff}
body.assistant-pwa-launch-v207 #assistantInstallShortcut{display:none!important}
#assistantStartupRecovery{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:18px 0;padding:0 16px}
#assistantStartupRecovery button,#assistantStartupRecovery a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #7c8795;border-radius:12px;padding:12px 18px;font:600 16px/1.3 system-ui;text-decoration:none;background:#142d3e;color:#fff}
#assistantWorkspace #assistantAudioToggle{display:flex;align-items:center;justify-content:center;gap:5px;min-width:44px;width:auto;padding:8px;color:inherit;font-size:14px}
#assistantWorkspace #assistantAudioToggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}
#assistantWorkspace #assistantAudioToggle.voice-on{background:#142d3e;color:#fff}
#assistantWorkspace #assistantAudioToggle:disabled{opacity:.45}
#assistantWorkspace .assistant-live{flex:none;padding:10px 14px;border-top:1px solid #e5e8ee;background:#fff}
#assistantWorkspace #assistantLiveToggle{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:50px;background:#142d3e;color:#fff;font-size:16px}
#assistantWorkspace #assistantLiveToggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
#assistantWorkspace #assistantLiveToggle[aria-pressed="true"]{background:#963c32}
#assistantWorkspace .assistant-live p{margin:7px 0 0;font-size:14px;line-height:1.35;color:#536275}
#assistantWorkspace .assistant-live small{display:block;margin-top:6px;color:#63707e;font-size:12px;line-height:1.4}
#assistantWorkspace .assistant-live [hidden]{display:none!important}
#assistantWorkspace .assistant-live-caption{max-height:58px;overflow:auto;color:#242e39!important}
@media(max-width:350px){#assistantWorkspace #assistantAudioToggle{width:44px;padding:6px;gap:0}#assistantWorkspace #assistantAudioToggle span{display:none}#assistantWorkspace .assistant-header>div p{display:none}}
@media(max-width:600px){.assistant-patient-picker-v207{padding:0}.assistant-patient-picker-card-v207{height:min(86dvh,720px);max-height:100%;border-radius:22px 22px 0 0;margin-top:auto;padding:18px 14px max(14px,env(safe-area-inset-bottom))}}

#assistantWorkspace #assistantLiveStatus.is-error{color:#a43127}
/* A focused voice surface keeps the live controls visible on small phones. */
#assistantWorkspace .assistant-live-actions{display:flex;gap:8px;margin-top:10px}
#assistantWorkspace .assistant-live-actions>button{flex:1;min-height:48px;font-size:14px}
#assistantWorkspace .assistant-live-actions #assistantLiveToggle{width:auto}
#assistantWorkspace #assistantLiveMute{display:flex;align-items:center;justify-content:center;gap:7px;background:#edf2f6;color:#142d3e}
#assistantWorkspace #assistantLiveMute svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
#assistantWorkspace #assistantLiveMute[aria-pressed="true"]{background:#fff1d7;color:#6e470d}
#assistantWorkspace .assistant-live-indicator{display:none;align-items:center;justify-content:center;gap:5px;height:42px;margin:0 auto 8px}
#assistantWorkspace .assistant-live-indicator i{display:block;width:6px;height:14px;border-radius:6px;background:#207c81;transform-origin:center}
#assistantWorkspace .assistant-live-indicator i:nth-child(2),#assistantWorkspace .assistant-live-indicator i:nth-child(4){height:24px}
#assistantWorkspace .assistant-live-indicator i:nth-child(3){height:34px}
#assistantWorkspace.tor-live-active .assistant-live-indicator{display:flex}
#assistantWorkspace.tor-live-active .assistant-live{padding:14px 16px max(14px,env(safe-area-inset-bottom));background:#f3f8fa}
#assistantWorkspace.tor-live-active #assistantLiveStatus{text-align:center;font-size:16px;font-weight:600;color:#142d3e;min-height:44px;margin:0}
#assistantWorkspace.tor-live-active .assistant-live-caption{padding:10px 12px;max-height:110px;border-radius:12px;background:#fff;font-size:16px;line-height:1.45}
#assistantWorkspace.tor-live-active .assistant-composer{display:none}
#assistantWorkspace.tor-live-active #assistantAudioToggle{display:none}
#assistantWorkspace .assistant-live[data-phase="speaking"] .assistant-live-indicator i{animation:tor-voice-pulse .7s ease-in-out infinite alternate}
#assistantWorkspace .assistant-live[data-phase="speaking"] .assistant-live-indicator i:nth-child(2n){animation-delay:-.4s}
#assistantWorkspace .assistant-live[data-phase="connecting"] .assistant-live-indicator,#assistantWorkspace .assistant-live[data-phase="thinking"] .assistant-live-indicator{animation:tor-voice-wait 1.4s ease-in-out infinite alternate}
#assistantWorkspace .assistant-live[data-phase="muted"] .assistant-live-indicator i{background:#9b7a40;height:8px;animation:none}
@keyframes tor-voice-pulse{to{transform:scaleY(.45)}}
@keyframes tor-voice-wait{to{opacity:.35}}
#assistantWorkspace .assistant-live[data-phase="listening"] .assistant-live-indicator i{transform:scaleY(calc(.18 + var(--tor-input-level,0)*.82));transition:transform 80ms linear}
#assistantWorkspace #assistantLiveRecover{width:100%;margin-top:8px;background:#142d3e;color:#fff;font-size:16px}
@media(prefers-reduced-motion:reduce){#assistantWorkspace .assistant-live-indicator,#assistantWorkspace .assistant-live-indicator i{animation:none!important}}
@media(max-height:580px){#assistantWorkspace.tor-live-active .assistant-live{padding-top:8px}#assistantWorkspace.tor-live-active .assistant-live-indicator{height:30px;margin-bottom:2px}#assistantWorkspace.tor-live-active .assistant-live-caption{max-height:64px}}

/* A quieter, ChatGPT-style conversation surface with the patient and composer kept prominent. */
#assistantWorkspace .assistant-header{gap:8px;padding:12px 14px;border-bottom:0}
#assistantWorkspace .assistant-header>div p{margin-top:2px}
#assistantWorkspace .assistant-context{padding:4px 14px 10px;background:#fff;border-bottom:1px solid #eef0f2}
#assistantWorkspace .assistant-context .assistant-patient-select{display:flex;align-items:center;gap:9px;width:100%;min-height:46px;padding:7px 12px;border-radius:14px;background:#f5f6f7;text-align:left}
#assistantWorkspace .assistant-patient-overline{color:#69717c;font-size:12px;font-weight:500}
#assistantWorkspace .assistant-patient-select strong{flex:1;overflow:hidden;color:#20242a;font-size:14px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
#assistantWorkspace .assistant-patient-select>span:last-child{color:#46566a;font-size:13px;font-weight:600}
#assistantWorkspace .assistant-module-sr,#assistantWorkspace .assistant-input-label,#assistantWorkspace .assistant-file-help,#assistantWorkspace #assistantStatus{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#assistantWorkspace .assistant-messages{padding:20px clamp(14px,4vw,36px);scrollbar-width:thin}
#assistantWorkspace .ai-msg{max-width:min(88%,680px);padding:11px 14px;margin:0 0 14px;border-radius:18px;background:#f1f2f3;color:#24272c}
#assistantWorkspace .ai-msg.user{margin-left:auto;background:#f1f2f3;color:#24272c}
#assistantWorkspace .ai-msg.assistant{max-width:100%;padding:6px 2px;background:transparent;border-radius:0}
#assistantWorkspace .assistant-composer{gap:6px;padding:8px 14px max(10px,env(safe-area-inset-bottom));border-top:1px solid #f0f1f2}
#assistantWorkspace .assistant-composer-shell{display:flex;align-items:flex-end;gap:5px;padding:5px;border:1px solid #dfe2e5;border-radius:24px;background:#f8f9fa}
#assistantWorkspace .assistant-input-stack{display:flex;flex:1;flex-direction:column;min-width:0}
#assistantWorkspace #clinicAsk{flex:1;width:100%;min-height:44px;height:44px;max-height:150px;resize:none;border:0;border-radius:18px;padding:11px 8px;background:transparent;font:400 16px/1.4 system-ui;color:#171b22}
#assistantWorkspace .assistant-controls button{flex:none;min-width:44px;min-height:44px;padding:8px 10px;border-radius:999px;background:transparent;color:#35404e}
#assistantWorkspace .assistant-controls button#assistantAttach{background:#eef0f2}
#assistantWorkspace .assistant-controls button#clinicMic{background:#eaf1fc;color:#254e83}
#assistantWorkspace .assistant-controls button#assistantSend{width:44px;height:44px;padding:0;border-radius:50%;background:#171b22;color:#fff}
#assistantWorkspace #assistantSend span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#assistantWorkspace .assistant-text-files{padding:0 4px 5px}
#assistantWorkspace .assistant-live{display:none}
#assistantWorkspace.tor-live-active .assistant-live,#assistantWorkspace .assistant-live[data-phase="error"],#assistantWorkspace .assistant-live[data-phase="blocked"],#assistantWorkspace .assistant-live[data-phase="unsupported"]{display:block}
#assistantWorkspace .assistant-live[data-phase="error"] #assistantLiveToggle,#assistantWorkspace .assistant-live[data-phase="error"] #assistantLivePrivacy,#assistantWorkspace .assistant-live[data-phase="blocked"] #assistantLiveToggle,#assistantWorkspace .assistant-live[data-phase="blocked"] #assistantLivePrivacy,#assistantWorkspace .assistant-live[data-phase="unsupported"] #assistantLiveToggle,#assistantWorkspace .assistant-live[data-phase="unsupported"] #assistantLivePrivacy{display:none}
#assistantWorkspace .assistant-live[data-phase="requesting"] .assistant-live-indicator{animation:tor-voice-wait 1.4s ease-in-out infinite alternate}
#assistantWorkspace #assistantOptions #assistantAudioToggle{justify-content:flex-start;width:100%;min-width:0;padding:10px 12px;font-size:14px}
#assistantWorkspace #assistantDeleteChat{background:#fff0ee;color:#922d25}
#assistantWorkspace #assistantCancelRequest{width:100%;background:#f2eeee;color:#842f2a}
#assistantWorkspace #assistantOptions summary{padding:10px 8px}
@media(max-width:600px){
 #assistantWorkspace .assistant-header{padding:calc(9px + env(safe-area-inset-top)) 12px 8px}
 #assistantWorkspace .assistant-context{padding:4px 12px 8px}
 #assistantWorkspace .assistant-composer{padding-left:10px;padding-right:10px}
 #assistantWorkspace .assistant-messages{padding:16px 12px}
 #assistantWorkspace .assistant-controls button{gap:4px;padding:8px}
}
@media(max-width:350px){
 #assistantWorkspace .assistant-controls button{min-width:40px;padding:7px;font-size:12px}
 #assistantWorkspace .assistant-controls button#assistantSend{width:40px;height:40px}
}
