.agent-page>.card{margin-bottom:24px}.agent-scope{padding:0}.agent-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:18px 0}.agent-actions>span{font-size:12px;color:#526b79}.agent-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px}.agent-history-item{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px;margin:12px 0;text-align:left}.agent-history-item.selected{background:#e6f4ee}.agent-history-item small,.agent-feed small{font-size:11px;color:#526b79}.agent-live{min-width:0}.agent-live-heading{display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:12px}.agent-preview{position:relative;aspect-ratio:16/9;background:#f8f6f0;border:1px solid #dbe6eb;border-radius:16px;overflow:hidden;margin:20px 0}.agent-preview img{display:block;width:100%;height:100%;object-fit:contain}.agent-preview-empty{display:grid;place-items:center;padding:24px}.agent-pointer{position:absolute;color:#087c83;font-size:24px;line-height:1;pointer-events:none;transition:left .16s linear,top .16s linear}.agent-pointer small{display:block;background:#087c83;color:white;border-radius:5px;padding:4px;font-size:10px}.agent-click:before{content:"";position:absolute;inset:-8px;border:2px solid #087c83;border-radius:50%;animation:agent-ripple .5s ease-out}.agent-feed{list-style:none;padding:0;max-height:260px;overflow:auto}.agent-feed li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #dbe6eb;font-size:12px}.agent-approval{padding:20px;border:1px solid #b5d7cd;border-radius:16px;background:#f4faf7}.agent-approval dl>div{margin:14px 0}.agent-approval dd{margin:6px 0;overflow-wrap:anywhere;white-space:pre-wrap}.agent-approval dt{font-size:12px;font-weight:600}@keyframes agent-ripple{to{opacity:0;transform:scale(1.8)}}@media(max-width:800px){.agent-workspace{grid-template-columns:1fr}.agent-history{max-height:280px;overflow:auto}.agent-feed li{flex-direction:column;gap:6px}.agent-approval{padding:16px}.agent-preview-empty{font-size:12px}}@media(prefers-reduced-motion:reduce){.agent-pointer{transition:none}.agent-click:before{animation:none}}
.agent-preview-empty{aspect-ratio:auto;min-height:120px}.agent-approval .agent-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.agent-approval .agent-actions button{white-space:normal;width:100%;height:100%;min-height:46px}
.agent-tab-controls{position:fixed;right:24px;bottom:24px;z-index:1150;width:min(360px,calc(100vw - 32px));padding:20px;background:#fff;border:1px solid #b5d7cd;border-radius:20px;box-shadow:0 12px 40px #17344c26}.agent-tab-heading{display:flex;gap:12px;align-items:center}.agent-tab-heading strong,.agent-tab-heading small{display:block}.agent-tab-heading small{margin-top:5px;color:#526b79}.agent-tab-controls p{font-size:12px;margin:12px 0 0}.agent-tab-controls .agent-actions{margin:16px 0 0}.agent-tab-target{outline:3px solid #087c83!important;outline-offset:4px;box-shadow:0 0 0 8px #087c831a!important}.agent-tab-approval{padding:20px;margin-top:20px;border:1px solid #b5d7cd;border-radius:16px;background:#f4faf7}.agent-tab-approval dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px}.agent-tab-approval dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:700px){.agent-tab-controls{right:16px;bottom:90px;padding:16px}.agent-tab-approval dl{grid-template-columns:1fr;gap:8px}}
.agent-tab-pointer{position:fixed;left:0;top:0;width:32px;height:40px;z-index:2147483647;pointer-events:none!important;will-change:transform;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px #55c9a8) drop-shadow(0 0 15px #087c83b3)}.agent-tab-pointer svg{position:relative;display:block;overflow:visible}.agent-tab-pointer path{fill:#087c83;stroke:#fff;stroke-width:2;stroke-linejoin:round}.agent-tab-click-ring{position:absolute;left:-20px;top:-20px;width:48px;height:48px;border:3px solid #087c83;border-radius:50%;background:#55c9a840;opacity:0;box-shadow:0 0 15px #55c9a8}.agent-tab-pointer.is-clicking .agent-tab-click-ring{animation:agent-tab-click .7s ease-out}.agent-start-feedback{display:flex;align-items:center;gap:14px;margin:16px 0 0}.agent-start-feedback>div{min-width:0}.agent-start-feedback p{font-size:12px;line-height:1.6;margin:5px 0 0;color:#526b79}.agent-start-feedback .ai-orb{flex-basis:44px;width:44px;height:44px}.agent-start-feedback .ai-orb>i{inset:16px}.agent-start-feedback strong{font-size:14px}@keyframes agent-tab-click{0%{opacity:.95;transform:scale(.3)}100%{opacity:0;transform:scale(1.5)}}@media(prefers-reduced-motion:reduce){.agent-tab-pointer.is-clicking .agent-tab-click-ring{animation:none;opacity:.8}}
.agent-engine-fields{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:12px;margin:24px 0}.agent-engine-fields dt{font-weight:600}.agent-engine-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.agent-engine-approval pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;font-size:12px}.agent-engine-summary{padding:0}.agent-engine-approval details{margin-top:20px}.agent-engine-approval .department-modal-actions{justify-content:flex-end}@media(max-width:600px){.agent-engine-fields{grid-template-columns:1fr;gap:8px}.agent-engine-fields dd{margin-bottom:8px}}
.agent-engine-toolbar{position:fixed;right:24px;bottom:24px;z-index:2147483645;display:flex;gap:12px;padding:12px;background:#fff;border:1px solid #b5d7cd;border-radius:18px;box-shadow:0 8px 30px #17344c26;pointer-events:auto}.agent-engine-toolbar button{min-height:42px}@media(max-width:600px){.agent-engine-toolbar{right:16px;bottom:84px;padding:10px}}

.workflow-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.workflow-picker-grid label{display:grid;gap:8px}.agent-workflow-panel{position:fixed;right:20px;bottom:100px;z-index:1200;width:min(380px,calc(100vw - 32px));max-height:65vh;overflow:auto;padding:20px!important;margin:0!important;box-shadow:0 12px 40px #17344c26}.agent-workflow-panel h2{font-size:17px}.agent-workflow-panel label{display:grid;gap:8px;margin-top:16px}.agent-workflow-panel textarea,.agent-workflow-panel select{width:100%;min-height:42px}.agent-workflow-panel .agent-actions{gap:10px;flex-wrap:wrap;margin:16px 0}.agent-workflow-panel .thread-note{padding:0}.workflow-fields{margin-top:16px}.speech-input{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}.speech-input button{min-height:36px}.speech-input small{line-height:1.5}.agent-workflow-panel~.agent-tab-controls{bottom:20px}@media(max-width:650px){.workflow-picker-grid{grid-template-columns:1fr}.agent-workflow-panel{right:16px;bottom:150px;max-height:50vh}}

.workflow-step-heading{display:grid;gap:6px;margin:16px 0}.workflow-step-heading span{font-size:13px;color:#526b79}.workflow-step-list,.workflow-plan-preview{padding-left:22px;margin:16px 0;display:grid;gap:10px;font-size:13px}.workflow-step-list .current{font-weight:700;color:#087c83}.workflow-step-list .complete{color:#526b79}.workflow-step-list .complete::marker{content:"✓  "}.workflow-plan-preview small{display:block;overflow-wrap:anywhere;color:#526b79;margin-top:4px}.agent-workflow-panel input{width:100%;min-height:42px}.agent-workflow-panel .workflow-step-list{max-height:120px;overflow:auto}

.speech-textbox{position:relative;width:100%}.speech-textbox textarea{display:block;width:100%;padding-right:64px!important;resize:vertical;min-height:90px}.speech-input.speech-input-inline{position:absolute;right:8px;top:8px;margin:0;display:block}.speech-input-inline button{width:40px;height:40px;min-height:40px;padding:8px;display:grid;place-items:center;box-shadow:none}.speech-input-inline .section-icon{width:24px!important;height:24px!important;min-width:24px}.speech-input-inline .is-recording{background:#d9eee7;outline:2px solid #087c83}.speech-textbox-error{margin:8px 0 0;padding:0;color:#a02f36;font-size:12px}.agent-request-card>label{display:block;margin-top:20px}.agent-request-card>.thread-note{padding:0}.agent-request-card .agent-intake-consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.7}.agent-intake-consent input{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin-top:3px}.agent-intake-review{border-top:1px solid #dbe6e3;margin-top:24px;padding-top:24px}.agent-intake-review ol{padding-left:22px;display:grid;gap:8px}.agent-workflow-panel .speech-textbox textarea{min-height:72px}.agent-request-card .agent-actions{gap:12px}

.agent-workflow-advanced>summary{font-weight:700;cursor:pointer;padding:4px 0}.agent-workflow-advanced[open]>summary{margin-bottom:24px}.agent-workflow-advanced .agent-workflow-picker{padding:0;margin:0}

.agent-followup-context{margin:20px 0;padding:0 0 16px;border-bottom:1px solid #dbe6e3}.agent-followup-context p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.agent-followup-context [role=status]{font-weight:600}
.agent-request-card>.speech-textbox{margin-bottom:12px}

/* Conversation workspace; execution and approval controls retain their shared styles. */
.agent-page{max-width:1120px;margin-inline:auto}
.agent-page>.page-heading{margin-bottom:24px}.agent-page>.page-heading h1{font-size:clamp(24px,3vw,34px)}
.agent-page>.page-heading p{display:none}
.agent-conversation{background:transparent;border:0;box-shadow:none;padding:0 12px 24px;min-width:0}
.agent-conversation-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid #dce5e4}
.agent-conversation-top>span{display:flex;align-items:center;gap:10px;font-weight:600;font-size:14px}.agent-conversation-top .section-icon{width:26px;height:26px}
.agent-conversation-top button{padding:8px 14px;min-height:36px;font-size:12px}
.agent-messages{min-height:290px;max-height:52vh;overflow:auto;padding:24px 4px;display:flex;flex-direction:column;gap:24px;scrollbar-width:thin}
.agent-chat-welcome{text-align:center;margin:auto;max-width:560px;padding:20px}.agent-chat-welcome>.feature-icon{width:64px;height:64px;margin-bottom:16px}.agent-chat-welcome h2{font-size:clamp(22px,3vw,30px);margin:0 0 12px}.agent-chat-welcome p{font-size:14px;line-height:1.8;color:#526b79;margin:0}
.agent-message{display:flex;gap:12px;max-width:88%;min-width:0;align-items:flex-start}.agent-message>.section-icon{width:30px;height:30px;flex:none}.agent-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;margin:5px 0 0}.agent-message-author{font-size:11px;font-weight:650;color:#526b79}
.agent-message-user{align-self:flex-end;background:#e5efea;border:1px solid #d4e3db;border-radius:20px 20px 5px 20px;padding:14px 20px}.agent-message-assistant{align-self:flex-start;padding:8px 4px}.agent-messages .agent-followup-context{margin:0;border:0}.agent-messages .ai-thinking{margin:0;padding:12px 4px;font-size:13px}.agent-chat-error{color:#a62b37;font-size:13px;line-height:1.7;margin:0}
.agent-chat-composer{border:1px solid #cbdad5;background:white;border-radius:22px;padding:16px 18px 12px;box-shadow:0 8px 28px #17382d08}.agent-chat-composer:focus-within{border-color:#538d77;box-shadow:0 0 0 3px #82b69d20}.agent-composer-label{display:block;font-size:11px;font-weight:600;color:#526b79;margin-bottom:8px}.agent-chat-composer .speech-textbox textarea{border:0;box-shadow:none!important;background:transparent;resize:vertical;min-height:90px;padding:8px 58px 8px 0;border-radius:0;font-size:14px;line-height:1.8;outline:none}.agent-chat-composer .speech-input-inline{right:0;top:2px}.agent-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.agent-composer-footer small{font-size:11px;color:#526b79}.agent-composer-footer .agent-actions{margin:0;gap:12px}.agent-composer-footer .agent-chat-send{width:40px;height:40px;min-height:40px;padding:9px;border-radius:12px;display:grid;place-items:center;box-shadow:none}.agent-chat-send svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.agent-conversation .agent-intake-consent{display:flex;gap:10px;align-items:flex-start;font-size:11px;line-height:1.7;margin:16px 0 0}.agent-conversation .agent-intake-consent input{width:16px;height:16px;flex:none;margin-top:2px}.agent-conversation .agent-chat-privacy{font-size:11px;line-height:1.7;margin:8px 0 0;color:#607784}
.agent-history-disclosure{margin-top:20px}.agent-history-disclosure>summary{cursor:pointer;font-size:13px;font-weight:600;padding:12px 4px}.agent-history-disclosure[open]>.agent-workspace{margin-top:16px}
@media(max-width:640px){.agent-conversation{padding-inline:0}.agent-messages{min-height:240px;max-height:48vh}.agent-message{max-width:96%}.agent-chat-composer{padding:12px}.agent-chat-welcome{padding:16px 4px}.agent-conversation-top>span{font-size:12px}.agent-conversation-top{gap:8px}}

.guided-suggestions{list-style:none;padding:0;margin:16px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:48vh;overflow:auto}.guided-suggestions li{min-width:0}.guided-suggestions button{width:100%;display:flex;align-items:center;gap:12px;text-align:start;padding:14px 16px;border:1px solid #d7e4df;border-radius:14px;background:#fff;box-shadow:none;min-height:68px}.guided-suggestions button:hover{background:#e5efea}.guided-suggestions button>span:first-of-type{flex:1;min-width:0}.guided-suggestions strong{font-size:13px;display:block}.guided-suggestions small{font-size:11px;display:block;margin-top:5px;color:#526b79}.guided-suggestions .section-icon{width:28px;height:28px;flex:none}.agent-chat-composer>input{margin-top:10px;width:100%}.agent-chat-composer>label{font-size:13px;font-weight:600}
.agent-guided-panel{position:fixed;inset:70px 24px 24px auto;width:min(640px,calc(100vw - 48px));max-height:calc(100dvh - 94px);overflow:auto;z-index:1200;background:#faf8f2!important;box-shadow:0 20px 80px #102d3c33;padding:24px;display:block}.agent-guided-panel .modal-heading h2{font-size:22px}.guided-chat-log{display:flex;flex-direction:column;gap:12px;max-height:32vh;overflow:auto;margin:20px 0}.guided-chat-log .agent-message{font-size:13px}.guided-question{display:grid;gap:12px}.guided-question>label{font-weight:650}.guided-question input,.guided-question textarea,.guided-question select{width:100%;min-height:44px}.guided-question .agent-actions{margin-top:4px}.agent-guided-panel .guided-suggestions{grid-template-columns:1fr}.agent-guided-panel .agent-actions>label{flex:1;min-width:150px}.agent-guided-panel .agent-actions>label select{width:100%;margin-top:8px}
@media(max-width:640px){.guided-suggestions{grid-template-columns:1fr}.agent-guided-panel{inset:60px 10px 10px;width:calc(100vw - 20px);max-height:calc(100dvh - 70px);padding:18px}.guided-chat-log{max-height:26vh}}

.cloud-agent-page .page-heading p{display:block}.cloud-policy{margin:0 0 24px}.cloud-policy summary{cursor:pointer;font-weight:650}.cloud-policy[open] summary{margin-bottom:16px}.cloud-policy>label{display:flex;align-items:flex-start;gap:12px;margin-top:16px;font-size:13px;line-height:1.7}.cloud-policy input[type=checkbox]{width:18px;height:18px;flex:none;margin-top:3px}.cloud-agent-page .agent-conversation{padding:12px 0}.cloud-agent-page .agent-intake-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.8;margin-top:16px}.cloud-agent-page .agent-intake-consent input{width:17px;height:17px;flex:none;margin-top:3px}.cloud-agent-page .agent-chat-send svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.cloud-agent-page .agent-chat-send{width:40px;height:40px;border-radius:12px;padding:9px}.cloud-textarea{position:relative}.cloud-textarea textarea{border:0;outline:none!important;box-shadow:none!important;padding:12px 58px 12px 0;resize:vertical;width:100%;line-height:1.8;min-height:110px}.cloud-dictate{position:absolute;right:0;top:8px;width:40px;height:40px;padding:8px;display:grid;place-items:center}.cloud-dictate .section-icon{width:24px;height:24px}.cloud-speech-error{display:block;color:#a52e3b;margin:8px 0;font-size:12px}.cloud-agent-panel{position:fixed;inset:70px 20px auto auto;width:min(480px,calc(100vw - 40px));max-height:calc(100dvh - 95px);overflow:auto;background:#faf8f2;z-index:1300}.cloud-agent-panel .agent-messages{min-height:120px;max-height:45vh}.cloud-agent-panel textarea{width:100%;margin-top:10px}.cloud-agent-panel .modal-heading h2{font-size:22px}@media(max-width:640px){.cloud-agent-panel{inset:60px 10px auto;width:calc(100vw - 20px);padding:18px}.cloud-agent-page .agent-messages{max-height:45vh}}

.automation-preparation{display:grid;gap:1.5rem}.automation-step{border:1px solid var(--border,#d5e2e7);border-radius:16px;padding:1.25rem;margin:0;min-width:0}.automation-step legend{font-weight:700;padding:0 .5rem}.automation-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.automation-input-grid label{display:flex;flex-direction:column;gap:.45rem;min-width:0}.automation-input-grid input,.automation-input-grid select,.automation-input-grid textarea{width:100%;box-sizing:border-box}.automation-preparation .thread-note{margin:.5rem 0}.automation-preparation-host{height:0;overflow:hidden}.guided-preparation-frame{position:fixed;left:-10000px;top:0;width:1440px;height:1000px;border:0;pointer-events:none}@media(max-width:640px){.automation-input-grid{grid-template-columns:1fr}.automation-step{padding:1rem}.automation-preparation .modal-heading{align-items:flex-start;gap:1rem}}

.guided-chat .agent-message{display:block}.guided-chat .agent-message-heading{display:flex;align-items:center;gap:.65rem;font-size:11px;color:#526b79}.guided-chat .agent-message-heading .section-icon{width:28px;height:28px}.guided-chat .guided-chat-example{font-size:12px;color:#526b79;margin-top:10px}.guided-chat-options{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;max-height:180px;overflow:auto}.guided-chat-options button{min-height:36px;padding:8px 12px;font-size:12px;box-shadow:none}.guided-chat .guided-chat-skip{font-size:11px;min-height:34px;padding:7px 10px;box-shadow:none}.guided-chat .agent-chat-composer{margin-top:16px}.agent-request-card .guided-suggestions{grid-template-columns:1fr;border:1px solid #d7e4df;background:#fff;border-radius:16px;padding:8px;gap:4px;max-height:360px;margin-top:8px}.agent-request-card .guided-suggestions button{border:0;min-height:58px;padding:10px 12px}.agent-request-card .guided-suggestions button:hover{background:#e5efea}@media(max-width:640px){.guided-chat .agent-messages{max-height:45vh}.guided-chat .agent-composer-footer{align-items:flex-end}.guided-chat .agent-composer-footer>.agent-actions{flex-wrap:wrap;justify-content:flex-end}.guided-chat .agent-message{max-width:96%}}

.guided-chat-options button{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:start}.agent-request-card .guided-suggestions strong{overflow-wrap:anywhere}

.guided-project-chat{min-height:0;max-height:none;margin:0 0 16px}.guided-project-picker>label{font-size:12px;font-weight:600}.guided-project-picker>input{width:100%;margin-top:8px}

.agent-engine-toolbar{flex-wrap:wrap;max-width:min(360px,calc(100vw - 32px))}.agent-engine-toolbar .cloud-cooldown{order:-1;flex-basis:100%;margin:0;line-height:1.5;overflow-wrap:anywhere}.agent-engine-toolbar .cloud-cooldown[hidden]{display:none}

.agent-tab-heading>div{flex:1;min-width:0}.agent-tab-close{width:32px;min-height:32px;padding:0;flex:none;font-size:22px;line-height:1}.agent-tab-reopen{position:fixed;right:24px;bottom:24px;z-index:1150;display:flex;gap:8px;align-items:center}.agent-tab-reopen .section-icon{width:24px;height:24px}.agent-toolbar-chat[hidden]{display:none}@media(max-width:700px){.agent-tab-reopen{right:16px;bottom:90px}}

.cloud-provider-limit{white-space:pre-wrap;overflow-wrap:anywhere}.agent-engine-toolbar{max-height:45dvh;overflow:auto}

.agent-tab-controls{max-height:calc(100dvh - 140px);overflow:auto}

.cloud-speech-status{display:block;margin:8px 0 0;font-size:12px;line-height:1.5;color:#526b79}

/* Keep live dictation status aligned below the field; only the microphone floats inside. */
.speech-textbox .speech-input-inline{position:static;display:block;margin:0}.speech-textbox .speech-input-inline button{position:absolute;right:8px;top:8px}.speech-textbox .cloud-speech-status{margin:8px 0 0}.agent-chat-composer .speech-textbox .speech-input-inline button{right:0;top:2px}

/* Reserve a separate bottom-right slot for the AI writer launcher. */
body:has(.ai-launcher){--wc-agent-dock-bottom:104px}
body:has(.ai-launcher) :is(.agent-tab-controls,.agent-tab-reopen,.agent-engine-toolbar){bottom:var(--wc-agent-dock-bottom)}
body:has(.ai-launcher) .agent-tab-controls{max-height:calc(100dvh - var(--wc-agent-dock-bottom) - 24px)}
@media(max-width:760px){body:has(.ai-launcher){--wc-agent-dock-bottom:calc(164px + env(safe-area-inset-bottom,0px))}}

/* Keep five task-history rows visible; older tasks scroll within the card. */
.agent-workspace{align-items:start}
.agent-page .agent-history{max-height:none;overflow:visible;min-width:0}
.agent-history-list{display:grid;grid-auto-rows:88px;gap:12px;max-height:496px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior-y:contain;padding:4px}
.agent-history-list .agent-history-item{box-sizing:border-box;height:88px;min-height:0;margin:0;padding:12px;justify-content:center;gap:6px;white-space:normal;overflow-wrap:anywhere}
.agent-history-list:focus-visible{outline:2px solid var(--wc-primary,#087c83);outline-offset:3px;border-radius:8px}


.cloud-policy-body{padding-top:18px;border-top:1px solid #dbe6eb;margin-top:18px}
.cloud-policy-help{margin:0 0 18px;font-size:13px;line-height:1.7;color:#526b79}
.cloud-policy-options{display:grid;gap:14px}
.cloud-policy-option{display:flex;align-items:center;gap:12px;margin:0;min-height:44px;padding:12px 14px;border:1px solid #dbe6eb;border-radius:12px;background:#fafcfb;font-size:13px;line-height:1.6}
.cloud-policy-option input[type=checkbox]{margin:0;width:18px;height:18px;flex:none}
.cloud-policy-body .agent-actions{margin:20px 0 0;gap:12px}

.agent-composer-controls{display:flex;align-items:center;gap:8px;flex:none}
.cloud-agent-page .agent-cursor-select{width:auto;max-width:132px;height:40px;min-height:40px;padding:6px 28px 6px 10px;margin:0;font-size:12px;border-radius:12px;box-shadow:none}
.agent-tab-pointer.is-bot{width:40px;height:40px}
.agent-tab-pointer.is-bot img{display:block;transform:translate(-50%,-50%);pointer-events:none}
.agent-tab-pointer.is-bot .agent-tab-click-ring{left:-24px;top:-24px}
.agent-host-actions{display:grid;grid-template-columns:42px 42px minmax(0,1fr);align-items:stretch;gap:10px;margin-top:16px}
.agent-host-actions>button{min-height:42px;margin:0;box-shadow:none;font-size:11px;line-height:1.5;padding:8px 12px;justify-content:center;min-width:0}
.agent-host-actions>button:only-child{grid-column:1/-1}
.agent-host-actions>.agent-control-icon,.agent-engine-toolbar>.agent-control-icon{width:42px;min-width:42px;height:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0;flex:none;box-shadow:none}
.agent-control-icon svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.agent-engine-toolbar{align-items:center;gap:10px}
.agent-engine-toolbar>.agent-toolbar-chat{min-height:42px;align-self:stretch;margin:0;padding:8px 12px;box-shadow:none;font-size:11px;line-height:1.5;min-width:0;flex:1;white-space:normal}
.agent-engine-toolbar>.agent-toolbar-chat[hidden]{display:none}
@media(max-width:480px){.cloud-agent-page .agent-composer-footer{align-items:center;gap:8px}.cloud-agent-page .agent-composer-footer small{max-width:38%;line-height:1.5}.cloud-agent-page .agent-cursor-select{max-width:112px}}

.agent-cursor-picker{position:relative;flex:none}
.agent-cursor-picker>summary{display:flex;align-items:center;gap:6px;height:40px;max-width:152px;box-sizing:border-box;padding:6px 9px;list-style:none;cursor:pointer;border:1px solid #c4d8df;border-radius:12px;background:white;font-size:12px;color:#153956}
.agent-cursor-picker>summary::-webkit-details-marker{display:none}
.agent-cursor-picker>summary:focus-visible{outline:2px solid #087c83;outline-offset:3px}
.agent-cursor-picker>summary[aria-disabled=true]{opacity:.65;cursor:default}
.agent-cursor-picker>summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:80px}
.agent-cursor-picker .cursor-choice-icon{width:22px;height:22px;flex:none}
.cursor-chevron,.cursor-check{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cursor-options{position:absolute;bottom:calc(100% + 8px);right:0;z-index:30;width:180px;max-width:calc(100vw - 48px);padding:6px;background:white;border:1px solid #c4d8df;border-radius:14px;box-shadow:0 8px 24px #15395624}
.cursor-options .cursor-option{display:flex;align-items:center;gap:8px;width:100%;min-height:42px;padding:8px;border:0;border-radius:9px;background:white;text-align:start;font-size:12px;box-shadow:none}
.cursor-options .cursor-option.selected,.cursor-options .cursor-option:hover{background:#e6f4ee}
.cursor-options .cursor-option>span{flex:1}
@media(max-width:480px){.agent-cursor-picker>summary{max-width:132px}.agent-cursor-picker>summary>span{max-width:65px}}

/* Keep dictation, cursor choice and Send in one aligned control row. */
.agent-composer-dictation{position:relative;flex:none}
.agent-composer-dictation .cloud-dictate{position:static;width:40px;height:40px;min-height:40px;border-radius:12px;margin:0;box-shadow:none}
.agent-composer-dictation .cloud-speech-status,.agent-composer-dictation .cloud-speech-error{position:absolute;bottom:48px;left:0;width:180px;margin:0;padding:8px;background:#fff;border:1px solid #cbdad5;border-radius:10px;z-index:2}
.cloud-agent-page .cloud-textarea textarea{padding-right:0}
@media(max-width:480px){.cloud-agent-page .agent-composer-footer{flex-wrap:wrap}.cloud-agent-page .agent-composer-footer>small{max-width:none;flex-basis:100%}.cloud-agent-page .agent-composer-controls{margin-left:auto}}
