#agentSettingsDialog{position:fixed;inset:18px 18px 18px auto;margin:0;width:min(600px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 36px);height:fit-content;overflow:auto;box-sizing:border-box;border:1px solid #dedbd5;border-radius:22px;padding:26px;background:#faf8f3;color:#24211b;box-shadow:0 16px 60px #0002}
#agentSettingsDialog::backdrop{background:#24211b38}
#agentSettingsDialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}
#agentSettingsDialog h2{font-size:24px;margin:0}
#agentSettingsDialog h3{font-size:20px;margin:0 0 16px}
#agentSettingsDialog h4{font-size:16px;margin:20px 0 8px}
#agentSettingsDialog section{background:white;border:1px solid #e5e2dc;border-radius:16px;padding:20px;margin-top:20px}
#agentSettingsDialog p{font-size:14px;line-height:1.55;color:#625d53}
#agentSettingsDialog fieldset{min-width:0;border:1px solid #e5e2dc;border-radius:12px;padding:14px;margin:16px 0}
#agentSettingsDialog legend{padding:0 6px;font-weight:600;overflow-wrap:anywhere}
#agentSettingsDialog .agent-setting-option{display:flex;gap:12px;align-items:flex-start;margin:14px 0;font-size:15px;line-height:1.45;cursor:pointer}
#agentSettingsDialog input[type=checkbox]{appearance:auto;width:19px;height:19px;min-width:19px;margin:2px 0 0;accent-color:#24211b}
#agentSettingsDialog input:disabled+span{color:#8b857b}
#agentSettingsDialog button{font:inherit;font-size:14px;padding:10px 15px;border-radius:12px;cursor:pointer}
#agentSettingsDialog .agent-voice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:8px 0 20px}
#agentSettingsDialog .agent-voice-row label{grid-column:1/-1;font-size:15px;font-weight:600}
#agentSettingsDialog .agent-voice-row select{min-width:0;width:100%;font:inherit;font-size:15px;padding:10px;border:1px solid #dedbd5;border-radius:10px;background:#faf8f3;color:#24211b}
#agentSettingsDialog .agent-voice-row button{align-self:center}
#agentSettingsDialog #agentSettingsStatus{position:sticky;bottom:-26px;background:#faf8f3;padding:12px 0;margin-bottom:0;min-height:22px}
@media(max-width:600px){#agentSettingsDialog{padding:16px;inset:8px 8px 8px auto;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}#agentSettingsDialog section{padding:14px}#agentSettingsDialog h2{font-size:20px}}
[data-mmai-voice-disabled="true"],.agent-voice-controls[hidden]{display:none!important}
.agent-voice-controls{box-sizing:border-box;max-width:100%;margin:12px 0;padding:14px;border:1px solid #dedbd5;border-radius:14px;background:#faf8f3;color:#24211b;text-align:left}
.agent-voice-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.agent-voice-buttons button{font:inherit;font-size:14px;padding:10px 14px;border:1px solid #d5d1ca;border-radius:12px;cursor:pointer;min-height:44px}
.agent-voice-buttons button[aria-pressed="true"]{background:#24211b;color:white}
.agent-voice-controls small,.agent-voice-controls p{font-size:13px;line-height:1.5;color:#625d53}
.agent-voice-controls p:empty{display:none}
.agent-voice-controls details{margin-top:10px;font-size:14px}
.agent-voice-controls summary{cursor:pointer}
.agent-voice-transcript{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;line-height:1.5;margin-top:10px}
