:root {
  --bg: #f4f6f3;
  --panel: #ffffff;
  --ink: #142019;
  --muted: #5d6b63;
  --line: #e2e7e3;
  --brand: #0b3d2e;
  --brand-2: #135c45;
  --accent: #1fa463;
  --accent-soft: #e3f5ec;
  --warn: #b7791f;
  --warn-soft: #fdf3e1;
  --danger: #c0392b;
  --danger-soft: #fbe9e7;
  --info: #2563eb;
  --info-soft: #e8efff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 30, .06), 0 4px 16px rgba(16, 40, 30, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", Ubuntu, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1512; --panel: #151f1a; --ink: #e6efe9; --muted: #96a59c; --line: #24322b;
    --brand: #0a2a20; --brand-2: #1b6b50; --accent: #2bc078; --accent-soft: #143426;
    --warn: #e0a84a; --warn-soft: #33290f; --danger: #ef6b5b; --danger-soft: #3a1915;
    --info: #6c9bff; --info-soft: #18233d; --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--brand); color: #d8ebe2; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; color: #fff; font-weight: 700; font-size: 16px; }
.logo img { width: 30px; height: 30px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #cfe4da; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.side .grow { flex: 1; }
.side .me { padding: 10px 12px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.1); }
.side .me button { background: none; border: 0; color: #9fd3b9; padding: 0; cursor: pointer; font: inherit; }
main { padding: 26px 30px 90px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bottom-nav { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  main { padding: 16px 16px 96px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; justify-content: space-around; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 6px; border-radius: 8px; min-width: 56px; }
  .bottom-nav a.active { color: var(--accent); }
  .bottom-nav svg { width: 22px; height: 22px; }
  .mobile-top { display: flex !important; }
}
.mobile-top { display: none; align-items: center; justify-content: space-between; margin: -4px 0 14px; }
.mobile-top .logo { padding: 0; color: var(--ink); }

/* ---------- components ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } }

.stat { padding: 16px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; min-height: 38px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(.95); }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; min-height: 30px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .fill { flex: 1; min-width: 160px; }

.table-wrap { overflow-x: auto; margin: 0 -18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--bg); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--muted); text-transform: capitalize; }
.b-running, .b-delivered, .b-completed { background: var(--accent-soft); color: var(--accent); }
.b-read { background: var(--info-soft); color: var(--info); }
.b-scheduled, .b-submitted, .b-sent, .b-sending { background: var(--info-soft); color: var(--info); }
.b-paused, .b-queued, .b-waiting { background: var(--warn-soft); color: var(--warn); }
.b-failed, .b-cancelled { background: var(--danger-soft); color: var(--danger); }
.b-skipped { background: var(--warn-soft); color: var(--warn); }

.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; display: flex; }
.progress span { display: block; height: 100%; }
.p-read { background: var(--info); }
.p-del { background: var(--accent); }
.p-sub { background: #8fd3b0; }
.p-fail { background: var(--danger); }

.banner { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner.danger { background: var(--danger-soft); color: var(--danger); }
.banner.ok { background: var(--accent-soft); color: var(--accent); }
.banner b { font-weight: 700; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar { width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: var(--accent-soft); position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 2px; }
.bars .bar i { display: block; background: var(--accent); }
.bars .lbl { font-size: 11px; color: var(--muted); }
.bars .num { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

.wa-bubble { background: #dcf8c6; color: #111; border-radius: 10px 10px 10px 2px; padding: 10px 12px; white-space: pre-wrap; font-size: 14px; max-width: 420px; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.wa-bg { background: #e5ddd5; border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
@media (prefers-color-scheme: dark) { .wa-bg { background: #0b141a; } .wa-bubble { background: #005c4b; color: #e9edef; } }

.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { padding: 6px 12px; border-radius: 99px; background: var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }
.steps span.on { background: var(--accent); color: #fff; }
.steps span.done { background: var(--accent-soft); color: var(--accent); }

.varrow { display: grid; grid-template-columns: 90px 140px 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 640px) { .varrow { grid-template-columns: 1fr 1fr; } .varrow .vlabel { grid-column: 1 / -1; } }

.list-pills { display: flex; flex-direction: column; gap: 2px; }
.list-pills a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.list-pills a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.list-pills a:hover { background: var(--bg); }
.contacts-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .contacts-layout { grid-template-columns: 1fr; } }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 13px; }

/* toast + modal */
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #14201a; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--danger); }
.modal-back { position: fixed; inset: 0; background: rgba(10, 20, 15, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border-radius: 14px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h2 { margin-bottom: 14px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 500px at 20% -10%, #1b6b50 0%, transparent 60%), var(--brand); }
.auth .card { width: 100%; max-width: 400px; padding: 28px; }
.auth .logo { color: var(--ink); padding: 0 0 18px; font-size: 18px; }
.err-text { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 18px; }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.copy { display: flex; gap: 8px; }
.copy input { font-family: ui-monospace, monospace; font-size: 12px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 22px 0 10px; }
.section-title:first-child { margin-top: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--accent); margin-right: 6px; }
.dot.warn { background: var(--warn); }
.dot.off { background: var(--muted); }
.pulse { animation: pulse 1.6s infinite; }

/* channel tags (MSG91 / WhatsApp QR) */
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.tag-msg91 { background: var(--info-soft); color: var(--info); }
.tag-qr { background: var(--accent-soft); color: var(--accent); }
.tag-cloud { background: #ede7fb; color: #6a3fc8; }

/* choose the sending channel */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .seg { grid-template-columns: 1fr; } }
.seg label { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.seg input { margin-top: 3px; }
.seg small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }

/* WhatsApp QR page */
.wa-state { display: flex; gap: 14px; align-items: center; }
.wa-ok, .wa-off { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex: none; }
.wa-ok { background: var(--accent-soft); color: var(--accent); }
.wa-off { background: var(--line); color: var(--muted); }
.qr-layout { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.qr-img { width: 260px; max-width: 100%; height: auto; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); image-rendering: pixelated; }
.qr-layout > div { flex: 1; min-width: 220px; }
.wa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.wa-grid > .card + .card { margin-top: 0; }
.wa-card .card-head { margin-bottom: 14px; flex-wrap: nowrap; align-items: flex-start; }
.wa-tools { display: flex; gap: 4px; flex: none; }
.wa-card .qr-img { width: 200px; }
.wa-card .qr-layout > div { min-width: 160px; }
.wa-card .steps-list { padding-left: 18px; margin: 0 0 8px; }
@media (max-width: 420px) { .wa-grid { grid-template-columns: 1fr; } }
.steps-list { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; font-size: 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
/* auto reply keyword chip */
.kw { display: inline-block; padding: 2px 8px; margin: 0 2px 3px 0; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
/* file upload box */
.upload { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 10px; }
.upload .up-thumb:empty { display: none; }
.upload .up-thumb img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; display: block; }
.upload .up-info { flex: 1; min-width: 0; }
.upload .up-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload label.btn { cursor: pointer; }
/* attached file inside a WhatsApp preview bubble */
.wa-media { display: block; max-width: 100%; max-height: 220px; border-radius: 8px; margin-bottom: 8px; object-fit: cover; }
.wa-file { padding: 8px 10px; margin-bottom: 8px; border-radius: 8px; background: rgba(0,0,0,.06); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-box { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; margin-bottom: 14px; background: var(--bg, #fafafa); }
.sample-box table th, .sample-box table td { padding: 6px 10px; }
.sample-box ul { margin: 10px 0; padding-left: 18px; line-height: 1.6; }

/* ---------- growth features ---------- */
.logo img { object-fit: contain; border-radius: 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav a { padding: 8px 12px; position: relative; }
.nav-badge { margin-left: auto; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; line-height: 16px; }
.bottom-nav a { position: relative; }
.bottom-nav .nav-badge { position: absolute; top: 0; right: 8px; margin: 0; font-size: 10px; padding: 0 5px; }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.more-list a { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: inherit; font-weight: 500; }
.more-list svg, .tabs svg { width: 20px; height: 20px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs .active { color: var(--accent); border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.chip.off { background: transparent; border-color: var(--line); color: var(--muted); }
.chip.tag-red { background: var(--danger-soft); color: var(--danger); }
.mini { font-size: 12px; color: var(--muted); }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--panel); }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline > * { flex: 1; min-width: 120px; }
.inline > .btn, .inline > .fixed { flex: none; min-width: 0; }
details.more { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
details.more > summary { cursor: pointer; font-weight: 600; }
details.more[open] > summary { margin-bottom: 10px; }
.check-row { display: flex; gap: 8px; align-items: center; }
td.sel, th.sel { width: 32px; }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; background: var(--accent-soft); border-radius: 10px; margin-bottom: 10px; }
.score { font-weight: 700; padding: 2px 8px; border-radius: 99px; font-size: 12px; }
.score.good { background: var(--accent-soft); color: var(--accent); }
.score.fair { background: var(--warn-soft); color: var(--warn); }
.score.bad { background: var(--danger-soft); color: var(--danger); }
.heat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.heat div { height: 34px; border-radius: 4px; background: var(--line); position: relative; }
.heat span { position: absolute; bottom: -16px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--muted); }
pre.code { background: #0e1a16; color: #d6f5e6; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }

/* inbox */
.ib { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.ib-list { padding: 10px; max-height: calc(100vh - 150px); overflow-y: auto; }
.ib-list .tabs a { padding: 8px 9px; font-size: 13px; }
.ib-item { display: block; padding: 10px; border-radius: 10px; color: inherit; border-bottom: 1px solid var(--line); }
.ib-item:hover { background: var(--bg); }
.ib-item.active { background: var(--accent-soft); }
.ib-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ib-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-last { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ib-chat { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 480px; padding: 14px; }
.ib-back { display: none; }
.ib-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; min-height: 0; margin-top: 10px; }
.ib-msgs { overflow-y: auto; background: #efeae2; border-radius: 12px; padding: 12px; }
.ib-side { overflow-y: auto; font-size: 13px; }
.ib-msg { display: flex; margin: 4px 0; }
.ib-msg.out { justify-content: flex-end; }
.ib-bubble { max-width: 78%; background: #fff; color: #111; padding: 6px 10px 4px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.08); word-wrap: break-word; font-size: 14px; }
.ib-msg.out .ib-bubble { background: #d9fdd3; }
.ib-meta { font-size: 11px; color: #667781; text-align: right; margin-top: 2px; }
.ib-src { background: rgba(0,0,0,.06); border-radius: 6px; padding: 0 5px; }
.ib-compose { margin-top: 10px; position: relative; }
.ib-compose textarea { width: 100%; resize: vertical; }
.ib-sug { position: absolute; bottom: 100%; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 240px; overflow-y: auto; z-index: 5; }
.ib-sug:empty { display: none; }
.ib-sugi { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; cursor: pointer; font: inherit; color: inherit; }
.ib-sugi:hover { background: var(--bg); }
@media (prefers-color-scheme: dark) { .ib-msgs { background: #0b141a; } .ib-bubble { background: #202c33; color: #e9edef; } .ib-msg.out .ib-bubble { background: #005c4b; } .ib-meta { color: #8696a0; } }
@media (max-width: 1100px) { .ib-body { grid-template-columns: 1fr; } .ib-side { display: none; } }
@media (max-width: 800px) {
  .ib { grid-template-columns: 1fr; }
  .ib.has-chat .ib-list { display: none; }
  .ib:not(.has-chat) .ib-chat { display: none; }
  .ib-back { display: inline; }
  .ib-chat { height: calc(100vh - 190px); }
}
.ib > .card + .card, .grid > form.card + .card, .grid > .card + form.card { margin-top: 0; }
.card .bars { overflow-x: auto; overflow-y: hidden; }
.card .bars .col { min-width: 22px; }
.page-head .actions select { width: auto; }
.ib-compose select { width: auto; }
