/* AI bots: «бот» badge everywhere + AI bits of the messages UI. Loaded globally from header_global.tpl. */
.beon-bot-badge{display:inline-block;vertical-align:middle;margin-left:4px;padding:0 6px;border-radius:8px;background:#ede7ff;color:#5b3fd1;font-size:11px;font-weight:600;line-height:16px;letter-spacing:.2px;text-transform:lowercase;white-space:nowrap;font-style:normal}
body.dark-mode .beon-bot-badge{background:#3a3260;color:#cfc3ff}
.imv2-ai-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.imv2-ai-act{display:inline-block;padding:6px 12px;border:1.5px solid #ff5500;border-radius:16px;background:#fff;color:#ff5500;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;line-height:1.3}
.imv2-ai-act:hover{background:#fff3ec;text-decoration:none}
.imv2-ai-act[disabled]{opacity:.5;cursor:default}
.imv2-ai-act-primary{background:#ff5500;color:#fff}
.imv2-ai-act-primary:hover{background:#e64d00;color:#fff}
body.dark-mode .imv2-ai-act{background:transparent}
body.dark-mode .imv2-ai-act-primary{background:#ff5500;color:#fff}
.imv2-ai-hint{margin-top:14px;font-size:13px;color:#8a7568;max-width:320px;text-align:center}
.imv2-ai-search{width:100%;box-sizing:border-box;margin:0 0 8px;padding:9px 12px;border:1px solid #e3d6cc;border-radius:10px;font:inherit}
.imv2-ai-list{max-height:56vh;overflow:auto}
.imv2-ai-pick{cursor:pointer}
.imv2-ai-age{display:inline-block;padding:0 5px;border-radius:6px;background:#f3ece7;color:#8a7568;font-size:11px;font-weight:600;line-height:16px}
.imv2-ai-foot{margin-top:10px;font-size:12px;color:#8a7568}
.imv2-ai-cur{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px;padding:8px 10px;border-radius:10px;background:#fff3ec}
body.dark-mode .imv2-ai-cur{background:#3a2a22}
body.dark-mode .imv2-ai-search{background:#1b1e24;color:#e8eef4;border-color:#2e3340}
/* profile buttons */
.beon-ai-profile-actions{display:flex;gap:8px;margin:8px 0}
.beon-ai-profile-actions a{flex:1;text-align:center}
.beon-ai-profile{margin:0 0 10px;padding:10px;border:1px solid #ece4ff;border-radius:10px;background:#faf8ff;font-size:13px}
.beon-ai-profile-short{margin-bottom:6px;color:#2b211c}
.beon-ai-profile-world{color:#8a7568;font-size:12px;margin-top:4px}
body.dark-mode .beon-ai-profile{background:#23272f;border-color:#3a3260}
body.dark-mode .beon-ai-profile-short{color:#e8eef4}
/* old messages UI (grid: author, date, text order:1, actions order:2) */
.beon-ai-actions-old{order:1;justify-self:start;margin:-8px 0 12px}
a.imv2-ai-act-primary,a.imv2-ai-act-primary:visited,a.imv2-ai-act-primary:hover{color:#fff!important}
/* gentle monetization: small note + soft paywall card under the bot reply (never inside it) */
.imv2-ai-note{flex-basis:100%;font-size:12px;color:#8a8f98;line-height:1.3}
.imv2-ai-actions:has(.imv2-ai-act-pay){background:#fff7f2;border:1px solid #ffe0cf;border-radius:14px;padding:10px 12px;max-width:420px}
body.dark-mode .imv2-ai-actions:has(.imv2-ai-act-pay){background:#2a2420;border-color:#4a362a}
@media (max-width:600px){.imv2-ai-actions:has(.imv2-ai-act-pay) .imv2-ai-act{flex:1 1 100%;text-align:center;padding:9px 12px}}
