/* Make.TG R261 — AI workspace visual system. Loaded by BOTH / and /app/. */
.editor-focused-shell .r261-ai-workspace{
 --ai-ink:#183249;--ai-muted:#657f92;--ai-outline:#d8e8f2;--ai-blue:#2497d7;
 box-sizing:border-box;max-width:1300px;width:100%;margin:11px auto 17px;
 border:1px solid #c6dce9;border-radius:17px;overflow:hidden;
 background:#fff;color:var(--ai-ink);
 box-shadow:0 7px 25px rgba(10,49,76,.08),0 1px 2px rgba(10,49,76,.08);
 font-family:inherit;
}
.editor-focused-shell .r261-ai-toolbar{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:11px 14px;background:linear-gradient(110deg,#f0faff 0%,#fff 54%,#f5faff 100%);
 border-bottom:1px solid #e4eef5;
}
.editor-focused-shell .r261-ai-brand{display:flex;align-items:center;gap:11px;min-width:0}
.editor-focused-shell .r261-ai-orb{
 width:34px;height:34px;flex:0 0 34px;border-radius:12px;display:grid;place-items:center;
 background:linear-gradient(145deg,#20b9e8,#4184e9);color:#fff;font-size:21px;
 box-shadow:0 3px 11px rgba(37,149,218,.25);position:relative;
}
.editor-focused-shell .r261-ai-orb:after{content:"";position:absolute;inset:-3px;border:1px solid #c8eafa;border-radius:14px;pointer-events:none}
.editor-focused-shell .r261-ai-brand-copy{display:grid;gap:2px;min-width:0}
.editor-focused-shell .r261-ai-brand-copy strong{font-size:14px;font-weight:800;letter-spacing:-.02em;color:#12344b}
.editor-focused-shell .r261-ai-brand-copy>span{font-size:11px;line-height:1.35;color:#627e91;overflow-wrap:anywhere}
.editor-focused-shell .r261-ai-toolbar-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-shrink:0}
.editor-focused-shell .r261-ai-provider{
 display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:700;
 color:#4e748b;background:#eaf4fb;padding:5px 9px;border-radius:99px;white-space:nowrap;
}
.editor-focused-shell .r261-ai-provider[data-ai-model="unavailable"]:before{background:#d09a43}
.editor-focused-shell .r261-ai-provider[data-ai-model="checking"]:before{background:#9bafbd}
.editor-focused-shell .r261-ai-provider:before{content:"";width:6px;height:6px;display:block;border-radius:50%;background:#59b49f}
.editor-focused-shell .r261-ai-toggle{
 color:#207fb5;background:#fff;border:1px solid #cfe3ee;border-radius:9px;
 font:inherit;font-size:11px;font-weight:750;padding:8px 10px;cursor:pointer;white-space:nowrap;
}
.editor-focused-shell .r261-ai-toggle:hover{background:#eaf6ff}
.editor-focused-shell .r261-ai-toggle:focus-visible,
.editor-focused-shell .r261-ai-workspace button:focus-visible,
.editor-focused-shell .r261-ai-workspace a:focus-visible,
.editor-focused-shell .r261-ai-workspace summary:focus-visible{outline:2px solid #279de2;outline-offset:2px}
.editor-focused-shell .r261-ai-body{padding:13px 15px 11px;border-top:0;background:#fff}
.editor-focused-shell .r261-ai-intro{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:11px}
.editor-focused-shell .r261-ai-intro strong{display:block;font-size:14px;color:#1e3d55}
.editor-focused-shell .r261-ai-intro p{font-size:11.5px;line-height:1.45;color:#667f92;margin:3px 0 0}
.editor-focused-shell .r261-ai-bot-scope{flex:0 0 auto;font-size:10px;font-weight:700;color:#5080a0;background:#f0f7fc;border:1px solid #dfecf5;border-radius:8px;padding:6px 9px;white-space:nowrap}
.editor-focused-shell .r261-ai-stages{display:flex;align-items:center;gap:7px;margin:0 0 10px;flex-wrap:wrap}
.editor-focused-shell .r261-ai-stages>span{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:5px 9px;color:#7f95a5;background:#f6f9fb;border:1px solid #e5edf3;font-size:10px;font-weight:650}
.editor-focused-shell .r261-ai-stages>span b{width:15px;height:15px;display:grid;place-items:center;font-size:9px;border-radius:50%;background:#e6edf2;color:#728797}
.editor-focused-shell .r261-ai-stages>span.is-current{background:#e6f6ff;color:#1877ae;border-color:#b9e4fb}
.editor-focused-shell .r261-ai-stages>span.is-current b{background:#2b9cdb;color:white}
.editor-focused-shell .r261-ai-stages>span.is-done{background:#edf8f4;color:#34826c;border-color:#d3eae1}
.editor-focused-shell .r261-ai-stages>span.is-done b{background:#53aa8c;color:#fff}
.editor-focused-shell .r261-ai-starters{display:flex;flex-flow:row wrap;gap:7px;margin:4px 0 12px}
.editor-focused-shell .r261-ai-starter{
 display:inline-flex;align-items:center;gap:7px;white-space:nowrap;
 border-radius:20px;border:1px solid #d4e5f0;background:#f7fbfe;color:#2b6486;
 font:inherit;font-size:11px;font-weight:700;padding:8px 11px;cursor:pointer;
 transition:background .15s,border-color .15s,transform .15s;
}
.editor-focused-shell .r261-ai-starter>span{font-size:13px;color:#158fc7}
.editor-focused-shell .r261-ai-starter:hover{background:#e9f7ff;border-color:#a9dbf5;transform:translateY(-1px)}
.editor-focused-shell .r261-ai-thread{max-height:230px;overflow:auto;display:flex;flex-direction:column;gap:9px;margin:4px 0 12px;padding:5px 4px 10px;scrollbar-color:#cee0ea transparent}
.editor-focused-shell .r261-ai-bubble{box-sizing:border-box;max-width:min(86%,680px);align-self:flex-start;background:#f1f6fa;border:1px solid #e4ecf2;border-radius:13px 13px 13px 4px;padding:10px 12px;color:#294b62;font-size:12px}
.editor-focused-shell .r261-ai-bubble.is-user{align-self:flex-end;background:#e0f2ff;border-color:#c7e8fa;border-radius:13px 13px 4px 13px}
.editor-focused-shell .r261-ai-bubble>span{color:#60849a;font-size:10px;font-weight:750}
.editor-focused-shell .r261-ai-bubble p{margin:4px 0 0;color:#294b62;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.editor-focused-shell .r261-ai-audit,.editor-focused-shell .r261-ai-review{border:1px solid #d1e5f1;background:#f7fcff;border-radius:11px;padding:11px 12px;margin:8px 0 11px;color:#274962;font-size:12px}
.editor-focused-shell .r261-ai-section-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.editor-focused-shell .r261-ai-section-head strong{font-size:12px;color:#23455d}
.editor-focused-shell .r261-ai-section-head>span{font-size:10px;border-radius:99px;background:#e6f4fd;padding:4px 8px;color:#2e729b;font-weight:750}
.editor-focused-shell .r261-ai-audit ul,.editor-focused-shell .r261-ai-review ul{margin:6px 0;padding-left:20px;max-height:200px;overflow-y:auto}
.editor-focused-shell .r261-ai-audit li,.editor-focused-shell .r261-ai-review li{margin:5px 0;line-height:1.55}
.editor-focused-shell .r261-ai-audit p{margin:0;color:#537588}
.editor-focused-shell .r261-ai-review .r260-ai-limit{color:#9d6336;margin:9px 0;font-size:11px}
.editor-focused-shell .r261-ai-review .r260-ai-operations{margin:9px 0;border:1px solid #d4e5f0;border-radius:8px;background:#fff;padding:7px 9px}
.editor-focused-shell .r261-ai-review .r260-ai-operations summary{font-size:11px;font-weight:750;color:#366f92;cursor:pointer}
.editor-focused-shell .r261-ai-review .r260-ai-operations pre{max-height:200px;overflow:auto;font-size:10.5px;color:#2b4b62;background:#f2f7fb;border-radius:6px;padding:9px}
.editor-focused-shell .r261-ai-review-actions{display:flex;flex-wrap:wrap;gap:8px}
.editor-focused-shell .r261-ai-primary,.editor-focused-shell .r261-ai-soft-button{font:inherit;font-size:11.5px;font-weight:750;border-radius:9px;padding:9px 12px;cursor:pointer}
.editor-focused-shell .r261-ai-primary{border:1px solid #218cc9;background:#258fce;color:#fff}
.editor-focused-shell .r261-ai-primary:hover{background:#127fbf}
.editor-focused-shell .r261-ai-soft-button{border:1px solid #cedee8;background:#fff;color:#52738a}
.editor-focused-shell .r261-ai-composer{display:flex;align-items:flex-end;gap:9px;border:1px solid #cbdfea;border-radius:13px;background:#fafdff;padding:6px 7px 6px 11px;margin:0;box-shadow:0 2px 8px rgba(16,79,121,.04)}
.editor-focused-shell .r261-ai-composer:focus-within{border-color:#47ade6;box-shadow:0 0 0 3px rgba(59,169,228,.13)}
.editor-focused-shell .r261-ai-composer textarea{display:block;flex:1;resize:vertical;min-width:0;min-height:43px;max-height:140px;border:0;outline:none;background:transparent;color:#193b54;font:inherit;font-size:12.5px;line-height:1.48;padding:7px 0;box-shadow:none}
.editor-focused-shell .r261-ai-composer textarea:focus-visible{outline:none}
.editor-focused-shell .r261-ai-composer textarea::placeholder{color:#8da4b5}
.editor-focused-shell .r261-ai-send{flex:0 0 37px;width:37px;height:37px;display:grid;place-items:center;background:#2996d5;color:#fff;border:0;border-radius:10px;font-size:17px;cursor:pointer}
.editor-focused-shell .r261-ai-send:hover{background:#1682c2}
.editor-focused-shell .r261-ai-send:disabled{background:#9fc8dd;cursor:not-allowed}
.editor-focused-shell .r261-ai-workspace button:disabled{opacity:.62;cursor:not-allowed;transform:none}
.editor-focused-shell .r261-ai-feedback{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:8px 0 10px;color:#5d7f91;font-size:11px;line-height:1.5}
.editor-focused-shell .r261-ai-feedback>span{display:inline-flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
.editor-focused-shell .r261-ai-feedback small{color:#8fa5b4;font-size:10px}
.editor-focused-shell .r261-ai-pulse{width:7px;height:7px;display:inline-block;background:#2498d5;border-radius:50%;box-shadow:0 0 0 4px #dcf2ff;animation:r261pulse 1.2s ease-in-out infinite alternate}
.editor-focused-shell .r261-ai-spinner{width:14px;height:14px;border-radius:50%;border:2px solid #fff7;border-top-color:white;animation:r261spin .8s linear infinite}
.editor-focused-shell .r261-ai-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:9px;padding-top:9px;border-top:1px solid #e5eff4;color:#6a8494}
.editor-focused-shell .r261-ai-footer-tools{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap}
.editor-focused-shell .r261-ai-footer .r261-ai-utility,.editor-focused-shell .r261-ai-footer a{color:#247ea9;font:inherit;font-size:11px;font-weight:700;text-decoration:none;background:transparent;border:0;padding:4px 0;cursor:pointer}
.editor-focused-shell .r261-ai-footer a:hover,.editor-focused-shell .r261-ai-footer .r261-ai-utility:hover{text-decoration:underline}
.editor-focused-shell .r261-ai-draft-note{font-size:10px;color:#718b9b;white-space:nowrap}
.editor-focused-shell .r261-ai-workspace .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes r261spin{to{transform:rotate(360deg)}}
@keyframes r261pulse{to{opacity:.35;transform:scale(.75)}}
@media(max-width:720px){
 .editor-focused-shell .r261-ai-workspace{border-radius:12px;margin:9px auto 13px}
 .editor-focused-shell .r261-ai-toolbar{padding:10px}
 .editor-focused-shell .r261-ai-body{padding:11px}
 .editor-focused-shell .r261-ai-intro{align-items:flex-start;flex-direction:column;gap:6px}
 .editor-focused-shell .r261-ai-stages{gap:5px}
 .editor-focused-shell .r261-ai-stages>span{padding:4px 7px;font-size:9px}
 .editor-focused-shell .r261-ai-starter{font-size:10px;padding:7px 9px}
 .editor-focused-shell .r261-ai-brand-copy>span{font-size:10px}
 .editor-focused-shell .r261-ai-provider{display:none}
 .editor-focused-shell .r261-ai-feedback small{display:none}
 .editor-focused-shell .r261-ai-bubble{max-width:96%}
}
@media(prefers-reduced-motion:reduce){.editor-focused-shell .r261-ai-workspace *, .editor-focused-shell .r261-ai-workspace *:before{animation:none!important;transition:none!important}}
