/* R260: compact native Telegram-style AI builder, with no iframe or modal. */
.editor-focused-shell .r260-ai-box{border:1px solid #c9d7e3;border-radius:13px;background:#fff;margin:9px 0 13px;overflow:hidden;color:#1a2938;box-shadow:0 1px 6px rgba(36,61,84,.055)}
.editor-focused-shell .r260-ai-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 12px;background:#f5f8fc}
.editor-focused-shell .r260-ai-heading{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
.editor-focused-shell .r260-ai-heading strong{font-size:13px;color:#1683c6;white-space:nowrap}
.editor-focused-shell .r260-ai-heading span{font-size:11px;color:#6a7f93}
.editor-focused-shell .r260-ai-head>button{font-size:11px;border:0;background:none;color:#257cb6;cursor:pointer;padding:5px 6px;font-weight:700;white-space:nowrap}
.editor-focused-shell .r260-ai-content{padding:10px 12px 11px;border-top:1px solid #e5edf3}
.editor-focused-shell .r260-ai-hint{font-size:12px;color:#657b90;margin:0 0 8px;line-height:1.55}
.editor-focused-shell .r260-ai-history{display:flex;flex-direction:column;gap:7px;max-height:240px;overflow-y:auto;padding:3px 0 9px}
.editor-focused-shell .r260-ai-message{max-width:93%;padding:8px 11px;border-radius:11px;background:#f2f6fa;align-self:flex-start;font-size:12px}
.editor-focused-shell .r260-ai-message.is-user{background:#dceefa;align-self:flex-end}
.editor-focused-shell .r260-ai-message span{font-size:10px;font-weight:700;color:#637d93}
.editor-focused-shell .r260-ai-message p{margin:4px 0 0;color:#243748;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.editor-focused-shell .r260-ai-plan{border:1px solid #cbddec;border-radius:10px;padding:10px;background:#f9fcff;margin-bottom:10px;font-size:12px}
.editor-focused-shell .r260-ai-plan strong{color:#24394d}
.editor-focused-shell .r260-ai-plan ul{margin:6px 0 9px;padding-left:20px;color:#3c5266;display:block}
.editor-focused-shell .r260-ai-plan li{margin:4px 0;list-style:disc}
.editor-focused-shell .r260-ai-plan-buttons{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.editor-focused-shell .r260-ai-limit{color:#926a2b;font-size:11px;margin:6px 0}
.editor-focused-shell .r260-ai-compose{display:flex;gap:8px;align-items:end;margin:0}
.editor-focused-shell .r260-ai-compose textarea{box-sizing:border-box;resize:vertical;min-height:47px;max-height:170px;flex:1;min-width:0;background:#fff;color:#192d3e;border:1px solid #c8d7e5;border-radius:10px;padding:9px 10px;font:inherit;font-size:12px;line-height:1.5}
.editor-focused-shell .r260-ai-compose textarea:focus-visible{outline:2px solid #61b0e2;outline-offset:1px}
.editor-focused-shell .r260-ai-compose button{flex:none;min-height:38px;white-space:nowrap}
.editor-focused-shell .r260-ai-bottom{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:7px;font-size:10px;color:#687d91}
.editor-focused-shell .r260-ai-bottom>span{flex:1;min-width:180px}
.editor-focused-shell .r260-ai-bottom>a,.editor-focused-shell .r260-ai-recheck{font:inherit;color:#1683c6;background:transparent;text-decoration:none;border:0;cursor:pointer;padding:3px 0}
.editor-focused-shell .r260-ai-recheck[disabled]{opacity:.4;cursor:default}
.editor-focused-shell .r260-ai-box .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}
/* Three centered text-sized pills on each explicit flex row, NOT equal grid columns. */
.r10-editor .tg-preview-footer-actions.r150-starter-pills{display:flex !important;flex-flow:column nowrap !important;align-items:center !important;justify-content:center !important;width:100% !important;max-width:100% !important;overflow:visible !important;gap:7px !important;padding:9px 4px !important;box-sizing:border-box}
.r10-editor .tg-preview-footer-actions.r150-starter-pills .r260-pill-row{display:flex;justify-content:center;align-items:center;gap:7px;width:100%;min-width:0;flex-flow:row nowrap}
.r10-editor .tg-preview-footer-actions.r150-starter-pills .r260-pill-row>.tg-edit-screen-button{display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:5px !important;width:auto !important;min-width:0 !important;max-width:calc(33.333% - 5px) !important;flex:0 1 auto !important;min-height:33px !important;padding:7px 10px !important;font-size:11px !important;white-space:normal !important;text-align:center !important;line-height:1.18 !important;border-radius:17px !important;box-sizing:border-box}
.r10-editor .tg-preview-footer-actions.r150-starter-pills .r260-pill-row .r150-starter-label{white-space:normal !important;overflow-wrap:normal !important;line-height:1.15 !important}
.r10-editor .tg-preview-footer-actions.r150-starter-pills .r260-pill-row .r150-starter-icon{width:13px !important;flex:0 0 13px !important}
/* Preview controls: compact 2-level toolbar rather than a long instruction row. */
.r10-editor .tg-preview-note-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 10px;margin:0 0 10px;border:1px solid #dbe8f3;border-radius:11px;background:#f7fafe}
.r10-editor .tg-editor-mode-note{margin:0;font-size:10px !important;font-weight:700;letter-spacing:.02em;color:#56758d;white-space:normal}
.r10-editor .tg-preview-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:5px}
.r10-editor .tg-preview-actions>.btn{font-size:10px;padding:6px 8px;min-height:29px;border-radius:8px;white-space:nowrap}
@media(max-width:670px){.editor-focused-shell .r260-ai-content{padding:9px}.editor-focused-shell .r260-ai-heading span{font-size:10px}.editor-focused-shell .r260-ai-compose{flex-wrap:wrap}.editor-focused-shell .r260-ai-compose button{width:100%}.r10-editor .tg-preview-note-row{justify-content:center}.r10-editor .tg-preview-actions{justify-content:center}.r10-editor .tg-preview-footer-actions.r150-starter-pills .r260-pill-row{gap:4px}.r10-editor .tg-preview-footer-actions.r150-starter-pills .r260-pill-row>.tg-edit-screen-button{font-size:9px !important;padding:6px 3px !important;gap:3px !important}}
@media(prefers-color-scheme:dark){[data-theme="dark"] .editor-focused-shell .r260-ai-box{background:#1e2b3c;border-color:#3c5065;color:#e4edf5}[data-theme="dark"] .editor-focused-shell .r260-ai-head{background:#243548}[data-theme="dark"] .editor-focused-shell .r260-ai-content{border-color:#3d5265}[data-theme="dark"] .editor-focused-shell .r260-ai-compose textarea{background:#162433;border-color:#425c71;color:#e9f2fc}[data-theme="dark"] .editor-focused-shell .r260-ai-message{background:#263950}[data-theme="dark"] .editor-focused-shell .r260-ai-message.is-user{background:#254665}[data-theme="dark"] .editor-focused-shell .r260-ai-message p{color:#e3f0fa}[data-theme="dark"] .editor-focused-shell .r260-ai-plan{background:#223449;border-color:#486278}[data-theme="dark"] .editor-focused-shell .r260-ai-plan strong{color:#e1eef8}}

/* Static, deterministic workflow findings share the panel with AI proposals. */
.editor-focused-shell .r260-ai-diagnostics{border:1px solid #d4e1eb;border-radius:9px;padding:9px 11px;margin:7px 0;background:#f7fafc;font-size:12px}
.editor-focused-shell .r260-ai-diagnostics strong{display:block;font-size:12px;margin-bottom:4px}
.editor-focused-shell .r260-ai-diagnostics ul{margin:4px 0;padding-left:18px;max-height:135px;overflow:auto}
.editor-focused-shell .r260-ai-diagnostics li{margin:3px 0;line-height:1.4}
.editor-focused-shell .r260-severity{text-transform:uppercase;font-size:10px;font-weight:650;color:#bc5b26}
[data-theme="dark"] .editor-focused-shell .r260-ai-diagnostics{background:#253648;border-color:#496175}

.editor-focused-shell .r260-ai-operations{margin:8px 0;border:1px solid #d8e2eb;border-radius:7px;padding:5px 8px}
.editor-focused-shell .r260-ai-operations summary{cursor:pointer;font-size:11px;font-weight:600}
.editor-focused-shell .r260-ai-operations pre{overflow:auto;max-height:220px;padding:8px 4px;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}
