/* The AI tool is a sidebar: size to the panel, not the browser viewport. */
body.refined-editor #studio .shared-task-surface #aiStudio {min-height:0!important;padding:0!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-layout {display:flex!important;flex-direction:column!important;gap:16px!important;padding:16px!important;height:auto!important;min-height:0!important;overflow:visible!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-main {padding:0!important;border:0!important;max-height:none!important;overflow:visible!important;width:100%!important;box-sizing:border-box}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-header {display:flex!important;flex-wrap:wrap!important;letter-spacing:normal!important;gap:10px!important;padding:0!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-header>span {display:none!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-header label {width:100%;justify-content:space-between}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-welcome {margin:24px 0 16px!important;padding:0!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-welcome h1 {font:600 24px/1.25 Arial,sans-serif!important;letter-spacing:-.025em!important;margin:0!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-welcome .eyebrow {display:none!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-history:empty {display:none!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-composer {display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:10px!important;border-radius:14px!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-composer textarea {order:-1;flex:0 0 100%!important;width:100%!important;min-width:100%!important;min-height:96px!important;box-sizing:border-box!important;padding:8px!important;font:14px/1.5 Arial,sans-serif!important;outline:none!important;box-shadow:none!important;border:0!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-composer button {width:auto!important;min-width:40px!important;min-height:36px!important;padding:8px 12px!important;font:13px Arial,sans-serif!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-composer [aria-label="Send message"] {margin-left:auto!important;background:#285d47!important;color:white!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-chips {gap:6px!important;margin:14px 0!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-chips button {font:12px/1.4 Arial,sans-serif!important;padding:7px 10px!important;min-height:32px!important;border-radius:8px!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-preview {width:100%!important;min-height:0!important;max-height:none!important;overflow:visible!important;box-sizing:border-box!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-preview:not(:has(.ai-result:not([hidden]),.ai-design-result:not([hidden]))) {display:none!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-chat-preview>header button,body.refined-editor #studio .shared-task-surface #aiStudio .ai-preview-address {display:none!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-connection {display:flex!important;padding:10px 0!important;font:12px/1.5 Arial,sans-serif!important}
body.refined-editor #studio .shared-task-surface #aiStudio .ai-preview-icons {display:none!important}
