:root {
  --accent: #0075ff; --accent-h: #0068e0; --accent-bg: #e8f2ff;
  --text: #333b45; --text2: #525c69; --muted: #8a939e; --line: #e3e6ea; --line2: #eef0f2;
  --bg: #eef2f5; --card: #fff; --soft: #f6f8fa;
  --ok: #19b36b; --ok-bg: #e5f7ee; --warn: #c27c00; --warn-bg: #fff4dc; --bad: #e5463b; --bad-bg: #fdecea;
  --r: 12px; --r-s: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sh: 0 1px 2px rgba(31, 45, 61, .06), 0 1px 1px rgba(31, 45, 61, .03);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font: 14px/1.45 var(--font); color: var(--text); -webkit-font-smoothing: antialiased; padding: 16px 18px 12px; min-width: 760px; }
body.card-mode { background: #fff; padding: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.bad { color: var(--bad); }
.grow { flex: 1; }

/* загрузка, ошибка */
.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 260px; color: var(--muted); }
.spin { width: 32px; height: 32px; border: 3px solid #d6e6ff; border-top-color: var(--accent); border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; }
.spin.sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes sp { to { transform: rotate(360deg); } }
.fatal { max-width: 560px; margin: 40px auto; background: var(--card); border-radius: var(--r); padding: 30px 32px; box-shadow: var(--sh); }
.fatal-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.fatal h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.fatal p { margin: 0 0 18px; color: var(--text2); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 28px 18px; }
.err-box { margin: 12px 16px; padding: 12px 14px; border-radius: var(--r-s); background: var(--bad-bg); color: #9c2b23; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px 16px; color: var(--muted); text-align: center; }
.empty svg { color: #c5ccd4; margin-bottom: 4px; }
.empty b { color: var(--text2); font-weight: 600; }

/* кнопки, поля */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid #d5dae0; background: #fff; cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--soft); border-color: #c4cad1; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text2); }
.btn-ghost:hover { background: rgba(255,255,255,.7); }
.btn-link { border: 0; background: none; color: var(--accent); padding: 0 6px; }
.btn-link:hover { background: none; text-decoration: underline; }
.sel, .inp { height: 32px; border: 1px solid #d5dae0; border-radius: var(--r-s); background: #fff; padding: 0 10px; font-size: 13px; }
.sel { padding-right: 26px; cursor: pointer; max-width: 230px; }
.sel:disabled { opacity: .5; }
.inp:focus, .sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,117,255,.12); }
.sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.sw input { margin: 0; accent-color: var(--accent); }

/* шапка */
.top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; background: rgba(255,255,255,.6); padding: 4px; border-radius: 11px; }
.tab { border: 0; background: none; padding: 7px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--text2); display: inline-flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--text); }
.tab.active { background: #fff; color: var(--text); box-shadow: var(--sh); }
.tab-n:empty { display: none; }
.tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #dfe3e8; color: var(--text2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tab-n.hot { background: var(--bad); color: #fff; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.upd { color: var(--muted); font-size: 12.5px; }
.note { margin: -4px 0 12px; padding: 10px 14px; border-radius: var(--r-s); background: var(--warn-bg); color: #7a5300; font-size: 13px; }
.foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12px; }
.foot a { color: var(--muted); text-decoration: underline; }

/* карточки и плитки */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 14px; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line2); font-weight: 600; flex-wrap: wrap; min-height: 54px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.tile { text-align: left; background: var(--card); border: 1.5px solid transparent; border-radius: var(--r); box-shadow: var(--sh); padding: 14px 16px 13px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; transition: border-color .15s; }
.tile:hover { border-color: #cfe3ff; }
.tile.sel { border-color: var(--accent); }
.tile-static { cursor: default; }
.tile-static:hover { border-color: transparent; }
.tile-l { color: var(--text2); font-size: 13px; }
.tile-v { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile-s { color: var(--muted); font-size: 12.5px; min-height: 18px; }
.tile-wait.hot { background: linear-gradient(180deg, #fff 0%, #fff6f5 100%); }
.tile-wait.hot .tile-v { color: var(--bad); }

/* сейчас */
.now-grid { display: grid; grid-template-columns: 290px 1fr; gap: 14px; align-items: start; }
.ops { position: sticky; top: 10px; }
.ops .card-h { justify-content: space-between; }
.ops-list { padding: 6px; max-height: 72vh; overflow: auto; }
.op { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; }
.op:hover { background: var(--soft); }
.op.on { background: var(--accent-bg); }
.op.fired .op-n b { color: var(--muted); }
.op-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.op-n b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-n small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-c { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent-bg); color: var(--accent); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; }
.op-c.zero { background: var(--soft); color: var(--muted); font-weight: 500; }
.op-c.hot { background: var(--bad-bg); color: var(--bad); }
.now-main .card-h { font-weight: 400; }
.now-main .card-h .sw { margin-left: auto; }
.now-who { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-bg); color: var(--accent); border-radius: 15px; padding: 3px 4px 3px 12px; font-size: 13px; font-weight: 500; }
.now-who .x { border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 17px; line-height: 1; width: 22px; height: 22px; border-radius: 50%; }
.now-who .x:hover { background: rgba(0,117,255,.12); }

/* сегменты, чипы */
.seg { display: inline-flex; background: var(--soft); border-radius: 9px; padding: 3px; gap: 2px; }
.seg-b { border: 0; background: none; padding: 5px 12px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--text2); }
.seg-b.active { background: #fff; color: var(--text); box-shadow: var(--sh); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid #d5dae0; background: #fff; border-radius: 16px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--text2); }
.chip:hover { border-color: #b9c0c8; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* фильтры */
.filters { padding: 4px 0 12px; }
.ms-ic { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.ms-ic .chi { width: 16px !important; height: 16px !important; margin-right: -3px; box-shadow: 0 0 0 1.5px #fff; }
.ms-b .ms-l { display: inline-flex; align-items: center; }
.frow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; }
.period { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pc { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.pc .inp { width: 140px; }

/* выпадающий список */
.ms { position: relative; }
.ms-b { height: 32px; border: 1px solid #d5dae0; border-radius: var(--r-s); background: #fff; padding: 0 10px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; max-width: 240px; }
.ms-b .ms-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-b.on { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.ms-pop { position: absolute; z-index: 30; top: 38px; left: 0; width: 300px; background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(31,45,61,.18), 0 0 0 1px rgba(31,45,61,.06); }
.ms-s { padding: 8px; border-bottom: 1px solid var(--line2); }
.ms-s input { width: 100%; height: 30px; border: 1px solid #d5dae0; border-radius: 7px; padding: 0 9px; font-size: 13px; }
.ms-s input:focus { outline: none; border-color: var(--accent); }
.ms-list { max-height: 290px; overflow: auto; padding: 4px; }
.ms-i { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.ms-i:hover { background: var(--soft); }
.ms-i input { margin: 0; accent-color: var(--accent); }
.ms-n { display: flex; flex-direction: column; min-width: 0; }
.ms-n small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.ms-f { display: flex; justify-content: space-between; padding: 8px; border-top: 1px solid var(--line2); }
.ms-f button { border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 13px; padding: 4px 6px; }
.ms-f .ms-ok { background: var(--accent); color: #fff; border-radius: 6px; padding: 4px 14px; }

/* таблица */
.list-h { font-weight: 400; }
.list-count { color: var(--text2); font-size: 13px; }
.search { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 32px; border: 1px solid #d5dae0; border-radius: var(--r-s); padding: 0 10px; color: var(--muted); width: 250px; }
.search input { border: 0; outline: none; flex: 1; font-size: 13px; background: none; min-width: 0; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover, .tbl th.on { color: var(--text); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; font-size: 13px; }
.tbl tbody tr { cursor: pointer; transition: background .1s; }
.tbl tbody tr:hover { background: #f7faff; }
.tbl tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.c-ch { width: 44px; padding-left: 16px !important; }
.c-cl .cl { display: flex; flex-direction: column; min-width: 150px; max-width: 280px; }
.c-cl b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-cl small, .c-cls small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-dt, .c-cls, .c-ans { white-space: nowrap; }
.sk { display: inline-block; width: 130px; height: 12px; border-radius: 6px; vertical-align: middle;
      background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 50%, #eef0f3 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.c-n { text-align: right; color: var(--text2); font-variant-numeric: tabular-nums; width: 64px; }
.tbl th.c-n { text-align: right; }
.c-crm { white-space: nowrap; padding-right: 16px !important; }
.who { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.who span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line2); }

/* статусы, CRM */
.pill { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.st-new { background: var(--bad-bg); color: var(--bad); }
.st-work { background: var(--accent-bg); color: var(--accent); }
.st-pause { background: var(--warn-bg); color: var(--warn); }
.st-closed { background: #eef0f2; color: #6a737f; }
.st-spam { background: #f1eef7; color: #7a6aa0; }
.crm { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 6px; font-size: 12px; margin-right: 4px; border: 1px solid transparent; }
a.crm { text-decoration: none; }
a.crm:hover { filter: brightness(.95); text-decoration: none; }
.crm-lead { background: #fff1e0; color: #b45f00; }
.crm-deal { background: #e6f6ec; color: #13834d; }
.crm-contact { background: #e8f2ff; color: #0060d1; }
.crm-company { background: #f0ebfb; color: #6b44c2; }
.crm-off { background: #f3f4f6; color: var(--muted); }
.crm-del { text-decoration: line-through; }
.crm-wait { background: #f3f4f6; color: #b6bcc3; }

/* значки каналов, аватары */
.chi { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c); flex: none; vertical-align: middle; }
.chi svg { width: 100%; height: 100%; display: block; }
.chi-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.chi-max { background: linear-gradient(135deg, #3f8cff, #7b3fe4); }
.chi-avito { background: #fff; box-shadow: inset 0 0 0 1px #e1e4e8; }
.av { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 600; flex: none; overflow: visible; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av-q { width: 32px; height: 32px; background: #ffd6d2; color: var(--bad); font-weight: 700; }
.av-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.dot-online { background: var(--ok); }
.dot-pause { background: #f5a623; }
.dot-offline { background: #c3c9d0; }

/* отчёты */
.rep-per { color: var(--text2); margin: 0 2px 10px; font-size: 13px; }
.rep-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.tbl-rep tbody tr { cursor: default; }
.tbl-rep .num { text-align: right; white-space: nowrap; }
.tbl-rep th.num { text-align: right; }
.tbl-rep td:first-child, .tbl-rep th:first-child { padding-left: 16px; }
.tbl-rep td:last-child, .tbl-rep th:last-child { padding-right: 16px; }
.hb { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--line2); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.hb i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.cbars { padding: 8px 16px 12px; }
.cbar { display: grid; grid-template-columns: 26px 1fr 110px 44px 40px; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.cbar .hb { width: 100%; margin: 0; }
.cbar b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cbar small { color: var(--muted); text-align: right; }
.cbar-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 150px; padding: 16px 16px 26px; align-items: end; }
.hr { position: relative; height: 100%; display: flex; align-items: flex-end; }
.hr i { display: block; width: 100%; background: #9cc6ff; border-radius: 4px 4px 0 0; min-height: 2px; }
.hr:hover i { background: var(--accent); }
.hr span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }

/* окно поверх */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(28,38,51,.45); display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow: auto; }
.modal-box { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-box.wide { max-width: 980px; }
.modal-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; border-radius: 50%; z-index: 2; }
.modal-x:hover { background: var(--soft); color: var(--text); }
body.modal-open { overflow: hidden; }
.ex { padding: 24px 26px; }
.ex h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.ex-step { color: var(--text2); margin-bottom: 10px; min-height: 20px; }
.ex-log { color: var(--muted); font-size: 12.5px; min-height: 18px; margin-top: 8px; }
.ex-act { display: flex; justify-content: flex-end; margin-top: 16px; }
.bar { height: 6px; background: var(--line2); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 2%; background: var(--accent); transition: width .3s; }
.fl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.fl .inp { width: 100%; }
.gs-help { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.gs-help summary { cursor: pointer; color: var(--accent); }
.gs-help pre { background: var(--soft); padding: 10px; border-radius: 8px; font-size: 11.5px; overflow: auto; }

/* карточка диалога */
.cd { padding: 22px 26px 26px; }
.cd-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-right: 30px; }
.cd-ht { flex: 1; min-width: 200px; }
.cd-ht h2 { margin: 0; font-size: 20px; font-weight: 600; }
.cd-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cd-act { display: flex; gap: 8px; width: 100%; margin-top: 2px; }
.cd-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin: 18px 0 6px; }
.cd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line2); border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); }
.f { background: #fff; padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; }
.f-l { font-size: 12px; color: var(--muted); }
.f-v { font-size: 13.5px; }
.f-v small { display: block; color: var(--muted); }
.cd-r { min-width: 0; }
.cd-r .cd-sec { margin-top: 18px; }
.cd-crm { border: 1px solid var(--line2); border-radius: 10px; padding: 4px 14px 8px; }
.cd-facts { align-self: start; }
.who .two { display: flex; flex-direction: column; white-space: normal; max-width: none; line-height: 1.25; }
.who .two small { font-size: 11.5px; }
.cd-crm .cd-sec { margin: 8px 0 4px; }
.cr { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.cr:last-child { border-bottom: 0; }
.cr-t { width: 74px; color: var(--muted); font-size: 12.5px; flex: none; }
.cr a { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr small { margin-left: auto; }
.cr-off span { color: var(--muted); }
.cd-sec { font-weight: 600; margin: 20px 0 10px; font-size: 14px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 4px; }
.tl li { position: relative; padding: 0 0 12px 22px; display: grid; grid-template-columns: 104px 1fr; column-gap: 10px; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #b9c3ce; }
.tl li::after { content: ""; position: absolute; left: 8px; top: 17px; bottom: -2px; width: 1px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl time { color: var(--muted); font-size: 12.5px; }
.tl b { font-weight: 500; font-size: 13.5px; }
.tl small { grid-column: 2; color: var(--muted); }
.tl .tl-ok::before { background: var(--ok); }
.tl .tl-bad::before { background: var(--bad); }
.tl .tl-end::before { background: #6a737f; }
.tl .tl-start::before { background: var(--accent); }
.msgs { background: #f3f6f9; border-radius: 12px; padding: 14px; max-height: 620px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
body.card-mode .msgs { max-height: none; }
.msg { max-width: 76%; padding: 7px 11px 8px; border-radius: 12px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); font-size: 13.5px; }
.msg-client { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-operator, .msg-bot { align-self: flex-end; background: #e2f0ff; border-bottom-right-radius: 4px; }
.msg-bot { background: #eef0f3; }
.msg-a { font-size: 12px; color: var(--muted); margin-bottom: 2px; font-weight: 500; }
.msg-a time { font-weight: 400; margin-left: 4px; }
.msg-t { white-space: normal; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-file { display: inline-block; margin-left: 6px; color: var(--muted); font-size: 12px; }
.msg-sys { align-self: center; background: none; box-shadow: none; color: var(--muted); font-size: 12px; text-align: center; max-width: 90%; padding: 2px 8px; }
.msg-sys time { margin-left: 4px; }
.msg-day { align-self: center; font-size: 12px; color: var(--muted); background: #e6ebf0; border-radius: 10px; padding: 1px 10px; margin: 6px 0 2px; }

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .now-grid { grid-template-columns: 1fr; }
  .ops { position: static; }
  .ops-list { max-height: 260px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .rep-grid { grid-template-columns: 1fr; }
  .tbl .c-cls { display: none; }
}
@media (max-width: 900px) {
  .cd-grid { grid-template-columns: 1fr; }
  .cd-facts { grid-template-columns: 1fr; }
  .tbl .c-n, .tbl .c-dt { display: none; }
}
