/* R280: Telegram-premium-inspired two-mode AI composer and native bot draft versions. */
.editor-focused-shell .r266-ai-float.r266-ai-expanded{
 border:1px solid #cbdff4;border-radius:22px;
 background:#f7faff;box-shadow:0 25px 72px rgba(23,58,101,.23),0 5px 18px rgba(13,66,137,.08);
}
.editor-focused-shell .r266-ai-float .r261-ai-toolbar{
 background:linear-gradient(115deg,#eaf7ff 0%,#fff 58%,#f1eeff 100%);
 border-color:#dce8f6;
}
.editor-focused-shell .r266-ai-float .r261-ai-brand-copy strong{font-size:13px;font-weight:800;color:#24415d}
.editor-focused-shell .r266-ai-float .r261-ai-orb{background:linear-gradient(140deg,#66b7fd,#4d80ee 55%,#9672ed)}
.editor-focused-shell .r266-ai-float .r272-credits-top{
 min-height:31px;padding:6px 10px;background:#fff;color:#376793;border:1px solid #d9e5f5;
 border-radius:10px;font-size:11px;font-weight:700;
}
.editor-focused-shell .r266-ai-float .r272-credits-top:hover,
.editor-focused-shell .r266-ai-float .r272-credits-top[aria-expanded="true"]{
 color:#1956a2;background:#e7f2ff;border-color:#9ac5f2;
}
.editor-focused-shell .r266-ai-float .r261-ai-body{position:relative;padding-bottom:11px}
.editor-focused-shell .r266-ai-float .r280-composer-wrap{
 position:relative;flex:0 0 auto;min-width:0;padding-top:22px;
 margin-top:7px;
}
.editor-focused-shell .r266-ai-float .r280-composer-wrap .r261-ai-composer.r269-ai-composer{
 margin:0;padding:6px 6px 6px 5px;min-height:51px;
 border:1px solid #cbdff2;border-radius:18px;
 box-shadow:0 5px 16px rgba(45,105,172,.08);background:white;
}
.editor-focused-shell .r266-ai-float .r280-composer-wrap .r261-ai-composer textarea{
 color:#2c415c;min-height:32px;font-size:12px;
}
.editor-focused-shell .r266-ai-float .r280-composer-wrap .r261-ai-composer textarea::placeholder{color:#7a8fa6;opacity:1}
.editor-focused-shell .r266-ai-float .r280-mode-notch{
 position:absolute;z-index:13;top:0;left:17px;display:block;
}
.editor-focused-shell .r266-ai-float .r280-mode-trigger{
 display:flex;align-items:center;gap:6px;min-height:26px;padding:5px 13px 6px;
 border-radius:12px 12px 0 0;border:1px solid #bfd7f5;border-bottom:0;
 background:linear-gradient(115deg,#e8f3ff,#f4f0ff);color:#366295;
 font:inherit;font-size:11px;font-weight:800;letter-spacing:.005em;cursor:pointer;
 box-shadow:0 -2px 9px rgba(65,118,191,.05);
}
.editor-focused-shell .r266-ai-float .r280-mode-trigger:hover,
.editor-focused-shell .r266-ai-float .r280-mode-trigger[aria-expanded="true"]{
 color:#214f95;background:linear-gradient(120deg,#d9edff,#e9dfff);border-color:#91bdeb;
}
.editor-focused-shell .r266-ai-float .r280-mode-spark{color:#8a69cf;font-size:12px}
.editor-focused-shell .r266-ai-float .r280-mode-chevron{margin-left:5px;color:#7796b6}
.editor-focused-shell .r266-ai-float .r280-mode-menu{
 position:absolute;bottom:calc(100% + 6px);left:0;width:155px;max-width:calc(100vw - 35px);
 z-index:30;display:grid;gap:3px;padding:6px;border:1px solid #cddff6;border-radius:14px;
 background:#fff;box-shadow:0 14px 36px rgba(29,68,132,.24);
}
.editor-focused-shell .r266-ai-float .r280-mode-menu button{
 width:100%;display:flex;align-items:center;justify-content:space-between;min-height:38px;
 padding:9px 11px;border:0;border-radius:9px;background:#fff;color:#284565;
 font:inherit;font-size:12px;font-weight:750;text-align:left;cursor:pointer;
}
.editor-focused-shell .r266-ai-float .r280-mode-menu button:hover,
.editor-focused-shell .r266-ai-float .r280-mode-menu button:focus-visible{
 background:#e5f1ff;color:#155fb9;outline:0;
}
.editor-focused-shell .r266-ai-float .r280-mode-menu button[aria-checked="true"]{
 background:#edf3ff;color:#3157a4;
}
.editor-focused-shell .r266-ai-float .r280-mode-menu b{color:#5185d1;font-size:13px}
.editor-focused-shell .r266-ai-float .r280-ai-feedback{
 flex:0 0 auto;display:flex;align-items:center;gap:7px;
 margin:7px 0 0;font-size:11px;color:#426f96;
}
/* Credits are a non-scrolling overlay, never another message near the bottom of the chat. */
.editor-focused-shell .r266-ai-float .r272-credits-panel{
 position:absolute;z-index:24;top:7px;right:0;width:min(326px,100%);
 max-height:calc(100% - 12px);overflow-y:auto;overscroll-behavior:contain;
 padding:13px;border:1px solid #cfdff1;border-radius:16px;
 color:#223d5d;background:linear-gradient(160deg,#fff 60%,#f4f7ff);
 box-shadow:0 14px 45px rgba(22,62,116,.24),0 3px 8px rgba(22,62,116,.09);
 scrollbar-width:thin;
}
.editor-focused-shell .r266-ai-float .r272-credits-title strong{font-size:14px;color:#274768}
.editor-focused-shell .r266-ai-float .r272-credits-title button{
 display:grid;place-items:center;width:28px;height:28px;font-size:19px;border-radius:9px;
}
.editor-focused-shell .r266-ai-float .r272-credits-title button:hover{background:#eaf2ff;color:#225e9c}
.editor-focused-shell .r266-ai-float .r272-credits-balance strong{font-size:30px;color:#2e7dcd}
.editor-focused-shell .r266-ai-float .r272-credits-balance span{font-size:11px;color:#738da8}
.editor-focused-shell .r266-ai-float .r272-credits-prices{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.editor-focused-shell .r266-ai-float .r272-credits-prices>div{
 border:1px solid #dbe7f5;background:#f0f6ff;border-radius:11px;color:#355d87;font-size:11px;
}
.editor-focused-shell .r266-ai-float .r272-credits-prices b{color:#2859ad}
.editor-focused-shell .r266-ai-float .r280-credits-details{
 border-top:1px solid #e8edf6;padding-top:8px;margin-top:2px;
}
.editor-focused-shell .r266-ai-float .r280-credits-details>summary{
 padding:7px 3px;font-size:11px;font-weight:700;color:#42688e;cursor:pointer;
}
.editor-focused-shell .r266-ai-float .r280-credits-details>summary:hover{color:#276cb6}
.editor-focused-shell .r266-ai-float .r280-credits-details .r279-runtime-credits{margin:5px 0}
/* Drafts belong with the regular bot publish controls, not the AI chat. */
.r10-editor .r280-draft-anchor{position:relative;display:inline-flex;align-items:center;z-index:55}
.r10-editor .r280-draft-anchor .r280-save-draft{
 border:1px solid #c4d8f1;background:linear-gradient(120deg,#fff,#eff5ff);
 color:#2c6498;font-weight:750;border-radius:10px;min-height:32px;padding:7px 10px;
}
.r10-editor .r280-save-draft:hover,.r10-editor .r280-save-draft[aria-expanded="true"]{
 border-color:#8cb9ed;background:#e8f3ff;color:#145ba9;
}
.r10-editor .r280-draft-popover{
 position:absolute;z-index:550;top:calc(100% + 8px);right:0;
 width:min(340px,calc(100vw - 30px));max-height:min(440px,70dvh);overflow-y:auto;
 padding:13px;border-radius:16px;border:1px solid #cbdcef;
 box-shadow:0 18px 46px rgba(13,54,108,.24);
 color:#2c4058;background:#fff;text-align:left;
}
.r10-editor .r280-draft-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.r10-editor .r280-draft-head>div{display:flex;flex-direction:column;gap:2px}
.r10-editor .r280-draft-head strong{font-size:14px;color:#253f60}
.r10-editor .r280-draft-head small,.r10-editor .r280-draft-foot{font-size:10px;color:#7a8da4}
.r10-editor .r280-draft-head button{width:26px;height:26px;border:0;border-radius:8px;background:transparent;color:#607b9e;font-size:18px;cursor:pointer}
.r10-editor .r280-draft-head button:hover{background:#eef4ff;color:#255ca3}
.r10-editor .r280-save-version{
 display:block;width:100%;margin:11px 0;padding:10px 12px;border:0;border-radius:10px;
 background:linear-gradient(115deg,#278bd8,#537be3);color:white;
 font-size:12px;font-weight:750;cursor:pointer;
}
.r10-editor .r280-save-version:hover{filter:brightness(1.07)}
.r10-editor .r280-draft-list{display:grid;gap:7px;margin-bottom:10px;max-height:250px;overflow-y:auto}
.r10-editor .r280-draft-list p{font-size:11px;color:#7b8ea4;line-height:1.5;margin:2px 0}
.r10-editor .r280-draft-item{
 display:flex;align-items:center;gap:6px;min-width:0;padding:9px 8px;
 border:1px solid #e1eaf7;border-radius:11px;background:#f8fbff;
}
.r10-editor .r280-draft-item>span{flex:1;display:grid;gap:2px;min-width:0}
.r10-editor .r280-draft-item b{font-size:11px;color:#2b496b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r10-editor .r280-draft-item small{font-size:10px;color:#7289a3}
.r10-editor .r280-draft-item button{border:1px solid #d4e1f1;border-radius:8px;background:#fff;color:#3a6a9e;font-size:10px;padding:6px 7px;cursor:pointer}
.r10-editor .r280-draft-item button:hover{background:#e9f2ff;color:#145aaf}
.r10-editor .r280-draft-foot{display:block;line-height:1.45}
@media (max-width:650px){
 .editor-focused-shell .r266-ai-float .r280-composer-wrap{padding-top:22px}
 .editor-focused-shell .r266-ai-float .r272-credits-panel{right:0;width:min(310px,100%)}
 .r10-editor .r280-draft-anchor{z-index:60}
 .r10-editor .r280-draft-popover{right:-20px}
}
@media (prefers-reduced-motion:reduce){
 .editor-focused-shell .r266-ai-float .r280-mode-trigger,
 .r10-editor .r280-save-version{transition:none}
}
/* Header overflow keeps expert utilities available without crowding the chat. */
.editor-focused-shell .r266-ai-float .r280-ai-more{position:relative;display:flex;align-items:center}
.editor-focused-shell .r266-ai-float .r280-ai-more-trigger{
 display:grid;place-items:center;min-width:30px;min-height:31px;padding:2px 6px;
 border:1px solid #deebf6;border-radius:10px;background:#fff;color:#5a799c;
 font-size:22px;line-height:1;cursor:pointer;
}
.editor-focused-shell .r266-ai-float .r280-ai-more-trigger:hover,
.editor-focused-shell .r266-ai-float .r280-ai-more-trigger[aria-expanded="true"]{
 background:#e9f3ff;color:#2067af;border-color:#abcbef;
}
.editor-focused-shell .r266-ai-float .r280-ai-more-menu{
 position:absolute;top:calc(100% + 6px);right:0;min-width:172px;
 z-index:28;border:1px solid #d1e0f2;border-radius:12px;padding:6px;
 background:#fff;box-shadow:0 12px 29px rgba(27,58,99,.22);
}
.editor-focused-shell .r266-ai-float .r280-ai-more-menu button{
 display:block;width:100%;padding:10px 11px;border:0;border-radius:9px;
 background:#fff;color:#2b506e;font-size:12px;font-weight:700;text-align:left;cursor:pointer;
}
.editor-focused-shell .r266-ai-float .r280-ai-more-menu button:hover{background:#e9f3ff;color:#226ab7}
@media(max-width:450px){
 .r10-editor .r280-draft-popover{
  position:fixed;top:clamp(58px,15vh,120px);left:12px;right:12px;
  width:calc(100vw - 24px);max-height:min(480px,70dvh);
 }
}
