/* R266: bottom-corner, support-chat style bot-scoped AI builder. No overlay while minimized. */
.editor-focused-shell .r261-ai-workspace.r266-ai-float{
 position:fixed;bottom:clamp(12px,2.2vh,24px);right:clamp(12px,2vw,28px);top:auto;left:auto;
 z-index:390;box-sizing:border-box;max-width:calc(100vw - 24px);margin:0;
 display:flex;flex-direction:column;background:#fff;border:1px solid #c9e4f0;
 box-shadow:0 18px 65px rgba(17,53,84,.20),0 3px 12px rgba(17,53,84,.08);
 color:#18364b;isolation:isolate;
}
.editor-focused-shell .r266-ai-float.r266-ai-minimized{
 width:auto;max-width:min(240px,calc(100vw - 24px));height:auto;min-height:0;
 border-radius:999px;overflow:hidden;
 box-shadow:0 10px 30px rgba(22,103,158,.24),0 2px 7px rgba(16,58,89,.11);
}
.editor-focused-shell .r266-ai-float.r266-ai-expanded{
 width:min(424px,calc(100vw - 24px));height:min(680px,calc(100dvh - 42px));
 border-radius:18px;overflow:hidden;
}
.editor-focused-shell .r266-ai-float .r261-ai-toolbar{
 flex:0 0 auto;padding:11px 13px;background:linear-gradient(110deg,#eaf7ff 0%,#fff 65%);
 border-bottom:1px solid #dfeef6;
}
.editor-focused-shell .r266-ai-float.r266-ai-minimized .r261-ai-toolbar{
 padding:8px 9px 8px 8px;gap:8px;border-bottom:0;cursor:default;
}
.editor-focused-shell .r266-ai-float.r266-ai-minimized .r261-ai-orb{
 width:35px;height:35px;flex-basis:35px;border-radius:50%;
 box-shadow:0 2px 12px rgba(28,153,223,.29);
}
.editor-focused-shell .r266-ai-float.r266-ai-minimized .r261-ai-orb:after{border-radius:50%}
.editor-focused-shell .r266-ai-float.r266-ai-minimized .r261-ai-brand{gap:9px}
.editor-focused-shell .r266-ai-float.r266-ai-minimized .r261-ai-brand-copy>span{display:none}
.editor-focused-shell .r266-ai-float.r266-ai-minimized .r261-ai-brand-copy strong{font-size:12px;white-space:nowrap}
.editor-focused-shell .r266-ai-float .r261-ai-toggle{
 display:inline-flex;justify-content:center;align-items:center;gap:4px;
 border:1px solid #cce5f2;background:#fff;color:#1876ac;
 font-size:13px;min-width:31px;min-height:31px;padding:5px 8px;border-radius:10px;
}
.editor-focused-shell .r266-ai-float.r266-ai-minimized .r261-ai-toggle{
 min-height:32px;padding:5px 9px;font-size:12px;border-radius:20px;
}
.editor-focused-shell .r266-ai-float .r266-ai-toggle-label{font-size:10px;font-weight:750}
.editor-focused-shell .r266-ai-float .r261-ai-body{
 flex:1 1 auto;display:flex;flex-direction:column;min-height:0;overflow:hidden;
 gap:0;padding:10px 11px 9px;background:#fff;
}
.editor-focused-shell .r266-ai-float .r266-ai-scroll{
 flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9dce8 transparent;
 padding:2px 3px 9px 0;
}
.editor-focused-shell .r266-ai-float .r261-ai-intro{
 margin-bottom:9px;align-items:flex-start;gap:7px;
}
.editor-focused-shell .r266-ai-float .r261-ai-intro strong{font-size:12px}
.editor-focused-shell .r266-ai-float .r261-ai-intro p{font-size:10px;line-height:1.45}
.editor-focused-shell .r266-ai-float .r261-ai-bot-scope{display:none}
.editor-focused-shell .r266-ai-float .r261-ai-stages{gap:4px;margin-bottom:9px}
.editor-focused-shell .r266-ai-float .r261-ai-stages>span{padding:3px 5px;font-size:9px;gap:3px}
.editor-focused-shell .r266-ai-float .r261-ai-stages>span b{width:14px;height:14px}
.editor-focused-shell .r266-ai-float .r261-ai-thread,
.editor-focused-shell .r266-ai-float .r260-ai-history{
 max-height:none;overflow:visible;gap:7px;margin-bottom:8px;padding:3px 2px 5px;
}
.editor-focused-shell .r266-ai-float .r261-ai-bubble{max-width:94%;font-size:11px;padding:8px 10px}
.editor-focused-shell .r266-ai-float .r261-ai-audit,
.editor-focused-shell .r266-ai-float .r261-ai-review{padding:9px 10px;font-size:11px}
.editor-focused-shell .r266-ai-float .r261-ai-audit ul,
.editor-focused-shell .r266-ai-float .r261-ai-review ul{max-height:none;overflow:visible}
.editor-focused-shell .r266-ai-float .r265-checklist{margin:6px 0 10px;padding:8px}
.editor-focused-shell .r266-ai-float .r265-check-row{padding:7px 3px}
.editor-focused-shell .r266-ai-float .r261-ai-composer{
 flex:0 0 auto;display:flex;flex-wrap:nowrap;align-items:flex-end;
 border:1px solid #c5ddea;background:#fafdff;border-radius:14px;
 padding:5px 6px 5px 10px;margin-top:2px;
}
.editor-focused-shell .r266-ai-float .r261-ai-composer textarea{
 flex:1;min-width:0;min-height:34px;max-height:100px;resize:none;
 width:auto;background:transparent;border:0;outline:0;padding:5px 0;
 font-size:12px;line-height:1.5;box-shadow:none;
}
.editor-focused-shell .r266-ai-float .r261-ai-composer .r261-ai-send{
 flex:0 0 34px!important;width:34px!important;min-height:34px!important;
 height:34px!important;padding:0;display:grid;place-items:center;border-radius:10px;
}
.editor-focused-shell .r266-ai-float .r261-ai-feedback{margin:6px 0 0;font-size:10px;max-height:45px;overflow:auto}
.editor-focused-shell .r266-ai-float .r261-ai-feedback small{display:none}
.editor-focused-shell .r266-ai-float .r261-ai-footer{margin-top:6px;padding-top:5px;gap:5px}
.editor-focused-shell .r266-ai-float .r261-ai-footer-tools{gap:4px 11px}
.editor-focused-shell .r266-ai-float .r261-ai-footer .r261-ai-utility,
.editor-focused-shell .r266-ai-float .r261-ai-footer a{font-size:10px}
.editor-focused-shell .r266-ai-float .r261-ai-draft-note{font-size:9px}
.editor-focused-shell .r266-ai-float .r261-ai-workspace button:focus-visible,
.editor-focused-shell .r266-ai-float button:focus-visible{outline:2px solid #2399d6;outline-offset:2px}
/* Open means inspect in preview; configuration remains a separate settings action. */
.r10-editor [data-preview-button-id].r266-preview-button-focus{
 outline:3px solid #2ca8e6!important;outline-offset:2px;
 box-shadow:0 0 0 5px rgba(44,168,230,.16)!important;
 position:relative;z-index:3;
}
@media(max-width:650px){
 .editor-focused-shell .r266-ai-float.r266-ai-expanded{
  right:8px;left:8px;bottom:max(8px,env(safe-area-inset-bottom));
  width:auto;max-width:none;height:min(78dvh,690px);border-radius:17px;
 }
 .editor-focused-shell .r266-ai-float.r266-ai-minimized{
  right:10px;bottom:max(10px,env(safe-area-inset-bottom));
  max-width:190px;
 }
 .editor-focused-shell .r266-ai-float .r261-ai-provider{display:none}
 .editor-focused-shell .r266-ai-float .r261-ai-body{padding:8px 9px}
 .editor-focused-shell .r266-ai-float .r261-ai-feedback{font-size:10px}
 .editor-focused-shell .r266-ai-float .r261-ai-stages{flex-wrap:wrap}
}
@media(max-width:340px){
 .editor-focused-shell .r266-ai-float.r266-ai-minimized .r261-ai-brand-copy strong{display:none}
 .editor-focused-shell .r266-ai-float.r266-ai-minimized{max-width:115px}
}
@media(prefers-reduced-motion:reduce){.editor-focused-shell .r266-ai-float *, .r10-editor .r266-preview-button-focus{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.editor-focused-shell .r266-ai-float .r266-ai-brand-trigger{
 font:inherit;border:0;background:transparent;color:inherit;text-align:left;padding:0;cursor:pointer;
 display:flex;align-items:center;gap:11px;min-width:0;
}
.editor-focused-shell .r266-ai-float .r266-ai-brand-trigger:hover .r261-ai-orb{filter:brightness(1.06)}
