/* صفحات بوت واتساب — تكمل app.css (ClinicCore.UI) وتستخدم نفس المتغيرات، فتعمل بالوضع الفاتح والغامق */

/* ---------- لوحة البداية ---------- */
.bot-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.15rem 1.25rem; margin-bottom: 1.25rem; }
.bot-hero-status { display: flex; align-items: center; gap: 1rem; }
.bot-hero-title { font-size: 1.2rem; font-weight: 800; }
.bot-avatar { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.bot-avatar .icon { width: 30px; height: 30px; }
.bot-avatar.ok { background: var(--success-soft); color: var(--success); }
.bot-avatar.warn { background: var(--warning-soft); color: var(--warning); }
.bot-avatar.bad { background: var(--danger-soft); color: var(--danger); }
.bot-qr { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.bot-qr-code { width: 220px; height: 220px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid var(--border); }
.bot-qr-code svg, .bot-qr-big svg, .bot-qr-small svg { width: 100%; height: 100%; display: block; }
.bot-qr-steps { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .45rem; color: var(--text-2); max-width: 260px; }
.bot-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.bot-link { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; color: inherit; text-decoration: none; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.bot-link:hover { border-color: var(--primary); transform: translateY(-1px); }
.bot-link > .icon { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 2px; }
.bot-link span { display: block; color: var(--text-2); font-size: .84rem; margin-top: .15rem; }

/* ---------- فلاتر السجلات ---------- */
.bot-filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; padding: .85rem 1rem; margin-bottom: 1rem; }
.bot-filters .filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bot-range { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.bot-range-date { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-2); }
.bot-range-date .input { width: 150px; height: 34px; }
.msg-preview { white-space: pre-line; font-size: .85rem; max-width: 520px; }

/* ---------- الإعدادات ---------- */
.bot-settings { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1rem; align-items: start; }
.bot-settings-nav { position: sticky; top: calc(var(--topbar-h) + 1rem); padding: .4rem; display: grid; gap: 2px; }
.bot-settings-nav button { display: flex; align-items: center; gap: .55rem; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--text-2); padding: .6rem .7rem; border-radius: 8px; cursor: pointer; text-align: start; }
.bot-settings-nav button:hover { background: var(--surface-2); color: var(--text); }
.bot-settings-nav button.active { background: var(--primary-soft); color: var(--primary); }
.bot-settings-nav .dot { color: var(--warning); margin-inline-start: auto; }
@media (max-width: 900px) {
    .bot-settings { grid-template-columns: 1fr; }
    .bot-settings-nav { position: static; display: flex; overflow-x: auto; }
    .bot-settings-nav button { white-space: nowrap; }
}
.bot-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); margin-bottom: .6rem; }
.bot-toggle.on { border-color: var(--brand-200); background: var(--primary-soft); }
.bot-toggle.important { border-width: 2px; }
.bot-toggle .badge { margin-inline-start: .35rem; }
[data-theme="dark"] .bot-toggle.on { border-color: var(--primary); }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix .input { border-start-end-radius: 0; border-end-end-radius: 0; flex: 1; min-width: 0; }
.input-suffix > span { display: grid; place-items: center; padding: 0 .7rem; border: 1px solid var(--border); border-inline-start: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-sunken); color: var(--text-2); font-size: .84rem; white-space: nowrap; }
[dir="rtl"] .input-suffix > span { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.bot-web-preview { display: flex; align-items: center; gap: 1rem; }
.bot-web-preview > .icon { width: 28px; height: 28px; color: var(--primary); }
.bot-web-preview > div { flex: 1; }

/* ---------- قاعدة المعرفة ---------- */
.bot-test { padding: 1rem; margin-bottom: 1rem; display: grid; gap: .65rem; }
.bot-test-form { display: flex; gap: .5rem; align-items: center; }
.bot-test-form > .icon { color: var(--primary); }
.bot-test-form .input { flex: 1; }
.bot-bubble { justify-self: start; max-width: 640px; background: var(--primary-soft); border: 1px solid var(--brand-100); padding: .75rem .9rem; border-radius: 14px 14px 14px 4px; white-space: pre-line; }
.bot-bubble-meta { font-size: .75rem; color: var(--primary); font-weight: 700; margin-bottom: .3rem; }
.bot-bubble-empty { background: var(--warning-soft); border-color: transparent; color: var(--warning); }

/* ---------- رابط الحجز و QR ---------- */
.bot-qr-print { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.bot-qr-big { width: min(280px, 100%); aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 10px; border: 1px solid var(--border); }
.bot-qr-caption { display: grid; gap: .15rem; }
.bot-qr-caption b { font-size: 1.15rem; }
.bot-personal { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; padding: .9rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.bot-qr-small { width: 110px; height: 110px; flex: none; background: #fff; border-radius: 8px; padding: 4px; }
.bot-link-text { font-size: .78rem; word-break: break-all; color: var(--text-2); }
@media print {
    body:has(.bot-qr-print) * { visibility: hidden; }
    body:has(.bot-qr-print) .bot-qr-print, body:has(.bot-qr-print) .bot-qr-print * { visibility: visible; }
    body:has(.bot-qr-print) .bot-qr-print { position: fixed; inset: 0; justify-content: center; }
    .bot-qr-big { width: 12cm; border: 0; }
}

/* =====================================================================
   صفحة الحجز الأونلاين للمرضى (/chat) — wc-*
   ===================================================================== */
.wc-shell { max-width: 760px; margin: 0 auto; padding: 0 1rem 1.5rem; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(.wc-shell) { background: linear-gradient(180deg, var(--primary-soft) 0, var(--bg) 260px); }
.wc-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.wc-brand { display: flex; align-items: center; gap: .7rem; }
.wc-brand b { display: block; font-size: 1.08rem; }
.wc-brand span { display: block; font-size: .8rem; color: var(--text-2); }
.wc-logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 6px 18px var(--primary-ring); }
.wc-logo .icon { width: 24px; height: 24px; }
.wc-user { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: .3rem .65rem; border-radius: 99px; }
.wc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 1.1rem; margin-bottom: .9rem; }
.wc-center { text-align: center; display: grid; justify-items: center; gap: .5rem; padding: 2rem 1.2rem; }
.wc-empty-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); color: var(--text-3); }
.wc-empty-icon .icon { width: 28px; height: 28px; }
.wc-note { display: flex; gap: .5rem; align-items: center; padding: .65rem .8rem; border-radius: 12px; font-size: .9rem; background: var(--info-soft); color: var(--info); }
.wc-note.warn { background: var(--warning-soft); color: var(--warning); }

/* الدخول */
.wc-auth { text-align: center; padding: 1.75rem 1.25rem; margin-top: 1rem; }
.wc-auth h1 { font-size: 1.5rem; margin: .5rem 0 .25rem; }
.wc-auth-art { width: 76px; height: 76px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.wc-auth-art .icon { width: 38px; height: 38px; }
.wc-form { display: grid; gap: .65rem; text-align: start; max-width: 380px; margin: 1.25rem auto .5rem; }
.wc-form label { font-weight: 600; font-size: .9rem; }
.wc-big-input { height: 52px; font-size: 1.2rem; text-align: center; border-radius: 12px; }
.wc-code { letter-spacing: .5em; font-weight: 800; }
.wc-fine { display: flex; gap: .35rem; align-items: center; justify-content: center; color: var(--text-3); font-size: .8rem; margin-top: 1rem; }

/* التبويبات */
.wc-tabs { display: flex; gap: .35rem; padding: .3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 1rem; position: sticky; top: .5rem; z-index: 5; box-shadow: var(--shadow-sm); }
.wc-tabs button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .9rem; color: var(--text-2); height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer; }
.wc-tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.wc-badge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--danger); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; padding: 0 .3rem; }
.wc-tabs button[aria-selected="true"] .wc-badge { background: #fff; color: var(--primary); }

.wc-step-title { font-weight: 800; font-size: .95rem; margin: 1rem 0 .55rem; color: var(--text); }
.wc-chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.wc-chips.wc-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.wc-chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .95rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-weight: 600; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.wc-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* الأطباء */
.wc-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; margin-top: .8rem; }
.wc-doc { display: flex; align-items: center; gap: .85rem; text-align: start; padding: .95rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); font: inherit; color: inherit; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.wc-doc:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.wc-avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 55% 46%), hsl(calc(var(--h) + 40) 60% 38%)); }
.wc-doc-body { display: grid; gap: .12rem; flex: 1; min-width: 0; }
.wc-doc-spec { color: var(--primary); font-weight: 600; font-size: .85rem; }
.wc-doc-title { color: var(--text-2); font-size: .8rem; }
.wc-doc-go { color: var(--text-3); }
.wc-fee { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--success); background: var(--success-soft); padding: .15rem .5rem; border-radius: 99px; justify-self: start; margin-top: .2rem; }
.wc-fee-lg { font-size: .95rem; padding: .35rem .75rem; margin: 0; }
.wc-doc-head { display: flex; align-items: center; gap: .8rem; }
.wc-doc-head > div { flex: 1; }
.wc-bio { font-size: .84rem; color: var(--text-2); margin-top: .25rem; }

/* الكاليندر */
.wc-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.wc-cal-head b { font-size: 1.05rem; }
.wc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.wc-cal-wd { text-align: center; font-size: .75rem; font-weight: 700; color: var(--text-3); padding: .2rem 0; }
.wc-day { aspect-ratio: 1 / 1.05; min-height: 48px; border-radius: 12px; border: 1px solid transparent; background: var(--surface-2); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; color: var(--text); position: relative; padding: 0; }
.wc-day span { font-weight: 800; font-size: 1rem; }
.wc-day small { font-size: .62rem; font-weight: 700; line-height: 1.1; }
.wc-day small .icon { width: 13px; height: 13px; }
.wc-day.available { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.wc-day.available:hover { border-color: var(--success); }
.wc-day.full { background: var(--danger-soft); color: var(--danger); }
.wc-day.full span { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .8; }
.wc-day.leave { background: var(--warning-soft); color: var(--warning); background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--warning) 10%, transparent) 6px 12px); }
.wc-day.off, .wc-day.past, .wc-day.loading { background: transparent; color: var(--text-3); cursor: default; }
.wc-day.past { opacity: .45; }
.wc-day.loading { background: var(--surface-sunken); animation: shimmer 1.2s infinite; }
.wc-day.today::after { content: ""; position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.wc-day.selected { outline: 3px solid var(--primary); outline-offset: 1px; }
.wc-day:disabled { cursor: default; }
.wc-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; margin-top: .8rem; font-size: .78rem; color: var(--text-2); }
.wc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-inline-end: .25rem; }
.wc-legend i.available { background: var(--success); }
.wc-legend i.full { background: var(--danger); }
.wc-legend i.leave { background: var(--warning); }
.wc-legend i.off { background: var(--border-strong); }

/* المواعيد */
.wc-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .45rem; }
.wc-slot { min-height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text); }
.wc-slot.free { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); color: var(--primary); }
.wc-slot.free:hover { background: var(--primary-soft); }
.wc-slot.picked { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px var(--primary-ring); }
.wc-slot.booked { background: var(--surface-sunken); color: var(--text-3); cursor: not-allowed; }
.wc-slot.booked span { text-decoration: line-through; }
.wc-slot.booked small { font-size: .65rem; font-weight: 600; }
.wc-slot.past, .wc-slot.leave { opacity: .45; cursor: not-allowed; }

/* التأكيد والنجاح */
.wc-confirm { border: 2px solid var(--primary); }
.wc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; }
.wc-summary > div { background: var(--surface-2); border-radius: 12px; padding: .55rem .75rem; display: grid; gap: .1rem; }
.wc-summary span { font-size: .75rem; color: var(--text-3); }
.wc-who { display: grid; gap: .45rem; margin-bottom: 1rem; }
.wc-who-item { display: flex; align-items: center; gap: .5rem; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 600; }
.wc-who-item.on { border-color: var(--primary); background: var(--primary-soft); }
.wc-who-item input { accent-color: var(--primary); }
.wc-success { text-align: center; }
.wc-success-icon { width: 72px; height: 72px; margin: .25rem auto .5rem; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.wc-success-icon .icon { width: 38px; height: 38px; }
.wc-success .wc-summary { text-align: start; margin: 1rem 0; }

/* مواعيدي */
.wc-appt { display: flex; align-items: center; gap: .9rem; }
.wc-appt-date { width: 58px; height: 62px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; align-content: center; flex: none; }
.wc-appt-date b { font-size: 1.4rem; line-height: 1; }
.wc-appt-date span { font-size: .75rem; font-weight: 700; }
.wc-appt-body { display: grid; gap: .1rem; flex: 1; min-width: 0; font-size: .9rem; }
.wc-appt.cancelled { opacity: .55; }
.wc-cancel { color: var(--danger); }

/* اسأل */
.wc-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.wc-msgs { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; min-height: 50vh; max-height: 62vh; overflow-y: auto; background: var(--surface-2); }
.wc-msg { max-width: 82%; padding: .6rem .85rem; border-radius: 16px; white-space: pre-line; font-size: .93rem; line-height: 1.55; box-shadow: var(--shadow-sm); }
.wc-msg.bot { align-self: flex-start; background: var(--surface); border-end-start-radius: 4px; }
.wc-msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-end-end-radius: 4px; }
.wc-typing { display: inline-flex; gap: 4px; }
.wc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: wc-dot 1s infinite; }
.wc-typing i:nth-child(2) { animation-delay: .15s; } .wc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.wc-chat-input { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--border); }
.wc-chat-input .input { flex: 1; height: 44px; border-radius: 22px; }
.wc-chat-input .btn { width: 44px; height: 44px; border-radius: 50%; }

.wc-foot { margin-top: auto; padding-top: 1.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--text-3); font-size: .8rem; }
.wc-foot a { color: var(--text-2); display: inline-flex; gap: .3rem; align-items: center; text-decoration: none; }

@media (max-width: 520px) {
    .wc-shell { padding: 0 .65rem 1rem; }
    .wc-docs { grid-template-columns: 1fr; }
    .wc-cal { gap: .25rem; }
    .wc-day { min-height: 42px; border-radius: 10px; }
    .wc-day small { font-size: .55rem; }
    .wc-tabs button { font-size: .82rem; }
    .wc-slots { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- الرسائل الترويجية وتنبيهات الأطباء (ClinicCore) ---------- */
.wa-preview { background: #e5ddd5; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; border-radius: 12px; padding: 1rem; }
[data-theme="dark"] .wa-preview { background-color: #0b141a; }
.wa-bubble { background: #dcf8c6; color: #111b21; border-radius: 10px 10px 2px 10px; padding: .6rem .8rem; white-space: pre-line; font-size: .9rem; line-height: 1.6; box-shadow: 0 1px 1px rgba(0,0,0,.12); max-width: 100%; }
[data-theme="dark"] .wa-bubble { background: #005c4b; color: #e9edef; }
.camp-form { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .camp-form { grid-template-columns: 1fr; } }
.camp-side { position: sticky; top: 0; display: grid; gap: .35rem; }
.camp-count { display: grid; justify-items: center; gap: .1rem; padding: .9rem; border-radius: var(--radius); background: var(--primary-soft); margin-bottom: .6rem; text-align: center; }
.camp-count b { font-size: 1.8rem; color: var(--primary); line-height: 1.1; }
.camp-aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.camp-aud-item { display: grid; justify-items: start; gap: .15rem; text-align: start; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.camp-aud-item .icon { color: var(--primary); }
.camp-aud-item span { font-size: .78rem; color: var(--text-2); }
.camp-aud-item.on { border: 2px solid var(--primary); background: var(--primary-soft); }
.camp-chip { padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 99px; }
.camp-chip.on { border-color: var(--primary); background: var(--primary-soft); }
.camp-sample { font-size: .82rem; display: grid; gap: .15rem; margin: 0; }
.camp-sample li { display: flex; justify-content: space-between; gap: .5rem; }
.camp-progress { display: flex; height: 8px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; margin-bottom: .25rem; }
.camp-progress .ok { background: var(--success); } .camp-progress .bad { background: var(--danger); } .camp-progress .skip { background: var(--border-strong); }

/* تأكيد الرقم داخل خطوة الحجز/مواعيدي */
.wc-verify { border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: 14px; padding: 1rem; background: var(--surface-2); margin-top: .75rem; }
.wc-verify-head { display: flex; gap: .7rem; align-items: flex-start; }
.wc-verify-head b { display: block; }
.wc-verify-head span { display: block; font-size: .86rem; color: var(--text-2); }
.wc-verify-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.wc-verify .wc-form { margin: .9rem 0 .25rem; max-width: none; }

/* تشغيل البوت من اللوحة */
.bot-control { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.bot-control-info { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.bot-control-title { display: flex; align-items: center; gap: .4rem; font-weight: 700; }
.bot-control-flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.bot-control-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 640px) { .bot-control-actions { width: 100%; } .bot-control-actions .btn { flex: 1 1 auto; justify-content: center; } }
