/* Make.TG R262 — compact Telegram-native AI workspace, intentionally distinct from chat history. */
.editor-focused-shell .r261-ai-workspace{
  --r262-ink:#173a50; --r262-accent:#248bcc; position:relative;
  width:min(100%,780px); max-width:780px; margin:8px auto 13px; border-radius:16px;
  border:1px solid #cadfea; background:linear-gradient(145deg,#fff 0%,#f5fbff 82%);
  box-shadow:0 5px 25px rgba(20,83,119,.065),0 1px 2px rgba(26,69,100,.06);
  overflow:hidden;
}
.editor-focused-shell .r261-ai-workspace:before{content:"";position:absolute;top:0;left:12%;right:12%;height:1px;background:linear-gradient(90deg,transparent,#82c4ef,transparent);pointer-events:none}
.editor-focused-shell .r261-ai-toolbar{padding:9px 13px;min-height:50px;gap:10px;background:transparent;border-bottom:0}
.editor-focused-shell .r261-ai-brand{gap:9px;min-width:0}
.editor-focused-shell .r261-ai-orb{display:grid;place-items:center;width:32px;height:32px;min-width:32px;border-radius:11px;
  color:#fff;background:linear-gradient(140deg,#5fc7fa,#278bcc 57%,#4567cf);font-size:18px;
  box-shadow:0 2px 9px rgba(48,133,211,.22);animation:r262breathe 4s ease-in-out infinite}
.editor-focused-shell .r261-ai-brand-copy strong{font-size:13px;letter-spacing:-.015em;color:var(--r262-ink)}
.editor-focused-shell .r261-ai-brand-copy>span{font-size:10px;color:#748fa1;margin-top:0}
.editor-focused-shell .r261-ai-toolbar-right{gap:8px}
.editor-focused-shell .r261-ai-provider{font-size:10px;padding:4px 7px;border:1px solid #e1edf3;background:#f8fcff;color:#65889b;border-radius:999px}
.editor-focused-shell .r261-ai-toggle{font-size:10.5px;border-radius:8px;padding:6px 8px;color:#366f8f}
.editor-focused-shell .r261-ai-body{padding:0 13px 11px;background:transparent}
/* Keep one attractive input surface, not a giant onboarding dashboard. */
.editor-focused-shell .r261-ai-intro{display:none}
.editor-focused-shell .r261-ai-stages{display:none}
.editor-focused-shell .r261-ai-workspace[data-phase="building"] .r261-ai-stages,
.editor-focused-shell .r261-ai-workspace[data-phase="review"] .r261-ai-stages,
.editor-focused-shell .r261-ai-workspace[data-phase="applied"] .r261-ai-stages{display:flex;margin:0 0 9px;gap:6px}
.editor-focused-shell .r261-ai-stages>span{font-size:9px;border-radius:6px;padding:4px 7px}
.editor-focused-shell .r261-ai-starters{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;margin:0 0 9px;scrollbar-width:thin;padding:1px 0 3px}
.editor-focused-shell .r261-ai-starter{white-space:nowrap;flex:0 0 auto;padding:6px 9px;font-size:10.5px;font-weight:650;border-radius:999px;background:#f0f8fd;border:1px solid #e1eff8;color:#367999;box-shadow:none}
.editor-focused-shell .r261-ai-starter:hover{background:#e1f3ff;border-color:#b4dff5;transform:translateY(-1px)}
.editor-focused-shell .r261-ai-thread{padding:9px 10px;margin:0 0 8px;max-height:160px;border-radius:12px;background:#f4faff;border:1px solid #e6f0f6;overflow:auto}
.editor-focused-shell .r261-ai-bubble{font-size:11px;max-width:90%;border-radius:11px}
.editor-focused-shell .r261-ai-audit,.editor-focused-shell .r261-ai-review{margin:0 0 9px;padding:11px;border-radius:11px;border:1px solid #ddeaf4;background:white}
.editor-focused-shell .r261-ai-composer{margin:0;border-radius:13px;padding:4px 5px 4px 11px;border:1px solid #bfdce9;
  box-shadow:0 1px 3px rgba(11,57,100,.04);background:#fff;min-height:46px;align-items:center;gap:6px}
.editor-focused-shell .r261-ai-composer:focus-within{border-color:#46a9de;box-shadow:0 0 0 3px rgba(36,146,207,.13)}
.editor-focused-shell .r261-ai-composer textarea{min-height:33px;max-height:110px;line-height:1.36;resize:vertical;font-size:12px;padding:8px 0 4px}
.editor-focused-shell .r261-ai-send{flex-basis:34px;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#39ade7,#197bc4);box-shadow:0 1px 5px rgba(19,112,189,.2)}
.editor-focused-shell .r261-ai-feedback{margin:5px 0 0;min-height:16px;line-height:1.4;font-size:10px;color:#8195a2}
.editor-focused-shell .r261-ai-feedback small{font-size:9px;color:#a3b1bb}
.editor-focused-shell .r261-ai-footer{border-top:0;margin:5px 0 0;padding:0;gap:6px}
.editor-focused-shell .r261-ai-footer-tools{gap:5px 12px}
.editor-focused-shell .r261-ai-footer .r261-ai-utility,.editor-focused-shell .r261-ai-footer a{font-size:10px;color:#568aa8;padding:2px 0}
.editor-focused-shell .r261-ai-draft-note{font-size:9px;color:#8a9cac}
.editor-focused-shell .r261-ai-workspace[data-phase="building"] .r261-ai-orb{animation:r262spin 1.6s linear infinite}
@keyframes r262breathe{50%{box-shadow:0 3px 13px rgba(42,154,226,.4);filter:saturate(1.15)}}
@keyframes r262spin{to{transform:rotate(360deg)}}
/* Owner-only per-user entitlement management, not on the customer Admin Panel. */
.r262-premium-admin .r262-premium-search{display:flex;gap:9px;align-items:end;flex-wrap:wrap;margin:14px 0}
.r262-premium-admin .r262-premium-search .field{flex:1;min-width:190px;margin:0}
.r262-premium-admin .r262-premium-user{border:1px solid #e0eaf1;border-radius:12px;padding:12px;margin:9px 0;background:#fff}
.r262-premium-admin .r262-premium-identity{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.r262-premium-admin .r262-premium-identity strong{font-size:12px}
.r262-premium-admin .r262-premium-identity small{font-size:9px;color:#879eac;overflow-wrap:anywhere}
.r262-premium-admin .r262-premium-tags{display:flex;gap:7px;margin:7px 0;flex-wrap:wrap}
.r262-premium-admin .r262-premium-tags span{background:#f2f6fa;border:1px solid #e1e8ed;border-radius:999px;color:#5d7586;padding:3px 8px;font-size:10px}
.r262-premium-admin .r262-premium-tags .r262-granted{background:#eaf8f1;color:#286d52;border-color:#bfe9d2}
.r262-premium-admin .r262-premium-controls{display:flex;flex-wrap:wrap;align-items:end;gap:7px}
.r262-premium-admin .r262-premium-controls label{display:grid;gap:3px;font-size:10px;color:#6c8393}
.r262-premium-admin .r262-premium-controls label:first-child input{width:64px}
.r262-premium-admin .r262-premium-controls label:nth-child(2){flex:1;min-width:145px}
.r262-premium-admin .r262-premium-controls input{width:100%;border:1px solid #cfdae3;border-radius:7px;padding:7px 8px;font:inherit;font-size:12px}
@media(max-width:720px){
 .editor-focused-shell .r261-ai-workspace{width:100%;margin:6px auto 12px;border-radius:13px}
 .editor-focused-shell .r261-ai-toolbar{padding:8px 10px;min-height:47px}
 .editor-focused-shell .r261-ai-body{padding:0 10px 9px}
 .editor-focused-shell .r261-ai-starters{flex-wrap:nowrap}
 .editor-focused-shell .r261-ai-brand-copy>span{display:none}
 .editor-focused-shell .r261-ai-orb{width:30px;height:30px;min-width:30px}
 .editor-focused-shell .r261-ai-footer a{display:none}
}
@media(prefers-reduced-motion:reduce){.editor-focused-shell .r261-ai-workspace *{animation:none!important;transition:none!important}}
