/* =========================================================
   вернём·часы — мокап интерфейса (анонимизированный)
   Тёмное «окно приложения»: сверка прайсов + дашборд.
   Самодостаточная тёмная палитра — выглядит одинаково
   в светлой и тёмной теме сайта (как реальный скриншот).
   ========================================================= */
.appwin {
  --aw-bg: #0e1116;
  --aw-panel: #14181e;
  --aw-card: #1a1f27;
  --aw-card2: #1f2630;
  --aw-line: #2a313b;
  --aw-text: #e7eaef;
  --aw-muted: #8a93a0;
  --aw-dim: #626b76;
  --aw-cobalt: #5b78ff;
  --aw-cobalt-soft: rgba(91, 120, 255, 0.16);
  --aw-green: #35c07a;
  --aw-green-soft: rgba(53, 192, 122, 0.15);
  --aw-red: #ef5b58;
  --aw-amber: #efa63c;
  --aw-purple: #8a7bff;

  position: relative;
  background: var(--aw-bg);
  border: 1px solid var(--aw-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: var(--aw-text);
  font-family: var(--ff-text);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.appwin * { box-sizing: border-box; }
.appwin .mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* ---- Top bar ---- */
.aw-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 16px;
  background: var(--aw-panel);
  border-bottom: 1px solid var(--aw-line);
}
.aw-dots { display: flex; gap: 7px; flex: none; }
.aw-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.aw-dots i:nth-child(1) { background: #ec6a5e; }
.aw-dots i:nth-child(2) { background: #f4bf4f; }
.aw-dots i:nth-child(3) { background: #61c554; }
.aw-brand { font-weight: 600; font-size: 12.5px; color: var(--aw-muted); white-space: nowrap; }
.aw-brand b { color: var(--aw-text); }
.aw-tabs { display: flex; gap: 4px; margin: 0 auto; min-width: 0; flex-shrink: 1; }
.aw-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 8px;
  color: var(--aw-muted); font-size: 12px; font-weight: 500;
  border: 1px solid transparent;
}
.aw-tab.is-active { color: var(--aw-text); background: var(--aw-card); border-color: var(--aw-line); }
.aw-tab svg { width: 13px; height: 13px; }
.aw-bar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.aw-counter { font-size: 11.5px; color: var(--aw-dim); white-space: nowrap; }
.aw-counter b { color: var(--aw-text); }
.aw-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--aw-cobalt); color: #fff;
  font-weight: 600; font-size: 12px;
  padding: 8px 13px; border-radius: 8px; white-space: nowrap; flex: none;
}

/* ---- Body layouts ---- */
.aw-body { display: grid; grid-template-columns: 218px 1fr; min-height: 0; }
.aw-body--full { display: block; }

/* ---- Sidebar ---- */
.aw-side {
  background: var(--aw-panel);
  border-right: 1px solid var(--aw-line);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 20px;
}
.aw-sgroup { display: flex; flex-direction: column; gap: 9px; }
.aw-slabel { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aw-dim); }
.aw-search {
  background: var(--aw-card); border: 1px solid var(--aw-line);
  border-radius: 8px; padding: 9px 11px; color: var(--aw-dim); font-size: 12px;
}
.aw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-fchip {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--aw-line); color: var(--aw-muted);
}
.aw-fchip.is-active { background: var(--aw-cobalt-soft); border-color: transparent; color: #b9c5ff; }
.aw-sup { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--aw-text); }
.aw-sup .box {
  width: 15px; height: 15px; border-radius: 4px; flex: none;
  background: var(--aw-cobalt); position: relative;
}
.aw-sup .box::after {
  content: ""; position: absolute; left: 4px; top: 1.5px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.aw-sup .count { margin-left: auto; color: var(--aw-dim); font-size: 11px; }
.aw-meta { display: grid; gap: 7px; font-size: 11.5px; }
.aw-meta div { display: flex; justify-content: space-between; gap: 10px; }
.aw-meta dt { color: var(--aw-dim); }
.aw-meta dd { color: var(--aw-muted); margin: 0; text-align: right; }
.aw-hint { font-size: 11px; color: var(--aw-dim); line-height: 1.5; }

/* ---- Main (validation cards) ---- */
.aw-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--aw-bg); }
.aw-rowcard {
  background: var(--aw-card); border: 1px solid var(--aw-line);
  border-radius: 12px; padding: 14px 16px;
}
.aw-rowcard.is-flagged { border-left: 3px solid var(--aw-amber); }
.aw-rowcard.is-ok { border-left: 3px solid var(--aw-green); }
.aw-rc-top { display: flex; align-items: flex-start; gap: 10px; }
.aw-sku {
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  background: var(--aw-cobalt-soft); color: #9fb0ff; flex: none; letter-spacing: 0.04em;
}
.aw-name { font-weight: 600; font-size: 13.5px; color: var(--aw-text); }
.aw-qty { margin-left: auto; font-size: 12.5px; color: var(--aw-muted); white-space: nowrap; }
.aw-qty b { color: var(--aw-text); }
.aw-subline { font-size: 11.5px; color: var(--aw-dim); margin-top: 7px; display: flex; align-items: center; gap: 7px; }
.aw-subline .dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--aw-dim); }
.aw-match { margin-top: 9px; font-size: 12px; }
.aw-match.found { color: var(--aw-green); }
.aw-match.none { color: var(--aw-amber); }
.aw-variants { margin-top: 5px; font-size: 11.5px; color: var(--aw-dim); }
.aw-variants b { color: var(--aw-muted); }
.aw-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.aw-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--aw-line); color: var(--aw-muted); background: transparent;
}
.aw-btn svg { width: 13px; height: 13px; }
.aw-btn--ok { background: var(--aw-green); border-color: transparent; color: #06240f; }
.aw-btn--alt { color: var(--aw-text); }
.aw-btn--ai { color: #c2bbff; border-color: rgba(138,123,255,0.4); }
.aw-btn--no { color: #ffb4b2; border-color: rgba(239,91,88,0.4); }

/* ---- Dashboard ---- */
.aw-dash { padding: 18px; background: var(--aw-bg); }
.aw-dash-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.aw-dash-head h4 { font-family: var(--ff-display); font-weight: 600; font-size: 16px; margin: 0; color: var(--aw-text); }
.aw-dash-head .per { color: var(--aw-dim); font-weight: 500; }
.aw-seg { margin-left: auto; display: flex; gap: 4px; background: var(--aw-card); border: 1px solid var(--aw-line); border-radius: 8px; padding: 3px; }
.aw-seg span { font-size: 11px; padding: 5px 10px; border-radius: 6px; color: var(--aw-muted); }
.aw-seg span.is-active { background: var(--aw-cobalt); color: #fff; }
.aw-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.aw-kpi { background: var(--aw-card); border: 1px solid var(--aw-line); border-radius: 12px; padding: 16px; }
.aw-kpi.is-save { border-color: rgba(53,192,122,0.4); background: linear-gradient(180deg, var(--aw-green-soft), transparent); }
.aw-kpi .k-label { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aw-dim); }
.aw-kpi .k-val { font-family: var(--ff-display); font-weight: 700; font-size: 21px; margin-top: 8px; color: var(--aw-text); letter-spacing: -0.01em; }
.aw-kpi.is-save .k-val { color: var(--aw-green); }
.aw-kpi .k-sub { font-size: 11px; color: var(--aw-dim); margin-top: 6px; }
.aw-kpi .k-sub.neg { color: var(--aw-red); }
.aw-kpi .k-sub.pos { color: var(--aw-green); }

.aw-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aw-panelcard { background: var(--aw-card); border: 1px solid var(--aw-line); border-radius: 12px; padding: 16px; }
.aw-panelcard h5 { font-size: 12.5px; font-weight: 600; margin: 0 0 12px; color: var(--aw-text); }
.aw-panelcard h5 span { color: var(--aw-dim); font-weight: 500; }
.aw-tbl { display: flex; flex-direction: column; gap: 0; }
.aw-tbl .th, .aw-tbl .tr { display: grid; grid-template-columns: 1fr auto 40px; gap: 10px; align-items: center; padding: 8px 0; }
.aw-tbl .th { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aw-dim); border-bottom: 1px solid var(--aw-line); padding-top: 0; }
.aw-tbl .tr { border-bottom: 1px solid rgba(42,49,59,0.5); font-size: 12px; }
.aw-tbl .tr:last-child { border-bottom: 0; }
.aw-tbl .c-name { color: var(--aw-muted); }
.aw-tbl .c-val { font-weight: 600; color: var(--aw-text); text-align: right; }
.aw-tbl .c-cnt { color: var(--aw-dim); text-align: right; }

.aw-deal { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(42,49,59,0.5); font-size: 12px; }
.aw-deal:last-child { border-bottom: 0; }
.aw-tag { font-size: 10px; padding: 3px 7px; border-radius: 5px; background: var(--aw-cobalt-soft); color: #9fb0ff; flex: none; }
.aw-deal .d-name { color: var(--aw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-deal .d-profit { margin-left: auto; color: var(--aw-green); font-weight: 600; white-space: nowrap; }
.aw-deal .d-profit .pct { color: var(--aw-dim); font-weight: 500; font-size: 11px; margin-left: 4px; }

.aw-warn { margin-top: 12px; background: rgba(239,166,60,0.08); border: 1px solid rgba(239,166,60,0.3); border-radius: 12px; padding: 14px 16px; }
.aw-warn h5 { color: var(--aw-amber); margin: 0 0 10px; font-size: 12.5px; font-weight: 600; }
.aw-warn .aw-deal .d-profit { color: var(--aw-red); }

.aw-learn { margin-top: 12px; background: var(--aw-card); border: 1px solid var(--aw-line); border-radius: 12px; padding: 16px; }
.aw-learn h5 { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; color: var(--aw-text); }
.aw-learn h5 span { color: var(--aw-dim); font-weight: 500; }
.aw-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.aw-stat .s-val { font-family: var(--ff-display); font-weight: 700; font-size: 19px; color: var(--aw-text); }
.aw-stat.is-acc .s-val { color: var(--aw-cobalt); }
.aw-stat .s-lbl { font-size: 10.5px; color: var(--aw-dim); margin-top: 4px; }

/* ---- Window caption ---- */
.aw-caption { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.aw-caption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .aw-counter { display: none; }
}
@media (max-width: 860px) {
  .aw-tabs { display: none; }
  .aw-kpis { grid-template-columns: repeat(2, 1fr); }
  .aw-stats { grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
}
@media (max-width: 680px) {
  .aw-body { grid-template-columns: 1fr; }
  .aw-side { display: none; }
  .aw-dash-grid { grid-template-columns: 1fr; }
  .aw-brand { display: none; }
}
@media (max-width: 520px) {
  .appwin { font-size: 12px; }
  .aw-kpis { grid-template-columns: 1fr 1fr; }
  .aw-stats { grid-template-columns: repeat(2, 1fr); }
  .aw-qty { width: 100%; margin: 6px 0 0; order: 3; }
}

/* =========================================================
   CRM — мультиканальный инбокс (Кейс 02, анонимизированный)
   ========================================================= */
.aw-crm { display: grid; grid-template-columns: 158px 280px 1fr 252px; min-height: 540px; }

/* ---- Nav rail ---- */
.aw-nav {
  background: var(--aw-panel); border-right: 1px solid var(--aw-line);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 4px;
}
.aw-nav-brand { display: flex; align-items: center; gap: 9px; padding: 4px 6px 14px; }
.aw-nav-brand .glyph {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, var(--aw-cobalt), var(--aw-purple));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.aw-nav-brand .glyph svg { width: 16px; height: 16px; }
.aw-nav-brand .t { line-height: 1.2; min-width: 0; }
.aw-nav-brand .t b { display: block; font-size: 12.5px; color: var(--aw-text); font-weight: 600; }
.aw-nav-brand .t span { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aw-dim); }
.aw-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px;
  color: var(--aw-muted); font-size: 12px; font-weight: 500;
}
.aw-nav-item svg { width: 15px; height: 15px; flex: none; color: var(--aw-dim); }
.aw-nav-item .nb {
  margin-left: auto; font-size: 10px; font-weight: 600;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  background: var(--aw-card2); color: var(--aw-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.aw-nav-item.is-active { background: var(--aw-cobalt-soft); color: #c2cdff; }
.aw-nav-item.is-active svg { color: #9fb0ff; }
.aw-nav-item.is-active .nb { background: var(--aw-cobalt); color: #fff; }
.aw-nav-item .nb.acc { background: rgba(138,123,255,0.25); color: #c2bbff; }
.aw-nav-foot { margin-top: auto; padding: 10px 7px 2px; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aw-dim); }

/* ---- Conversation list ---- */
.aw-list { border-right: 1px solid var(--aw-line); display: flex; flex-direction: column; min-width: 0; background: var(--aw-panel); }
.aw-list-top { padding: 14px 14px 10px; border-bottom: 1px solid var(--aw-line); }
.aw-segtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.aw-segtab {
  font-size: 11px; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--aw-line); color: var(--aw-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.aw-segtab.is-active { background: var(--aw-cobalt-soft); border-color: transparent; color: #c2cdff; }
.aw-segtab .n { color: var(--aw-dim); font-weight: 600; }
.aw-segtab.is-active .n { color: #9fb0ff; }
.aw-convo {
  display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 12px 14px;
  border-bottom: 1px solid rgba(42,49,59,0.5); cursor: default;
}
.aw-convo.is-active { background: var(--aw-card); box-shadow: inset 3px 0 0 var(--aw-cobalt); }
.aw-av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff;
}
.aw-av.c1 { background: #4a6cf0; } .aw-av.c2 { background: #2f9e6e; }
.aw-av.c3 { background: #b16ad6; } .aw-av.c4 { background: #d98a3c; }
.aw-av.c5 { background: #5a8fd6; } .aw-av.c6 { background: #c75d8a; }
.aw-cv-body { min-width: 0; }
.aw-cv-line1 { display: flex; align-items: center; gap: 7px; }
.aw-cv-name { font-weight: 600; font-size: 12.5px; color: var(--aw-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-ch { font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 5px; border-radius: 4px; flex: none; }
.aw-ch.tg { background: rgba(91,120,255,0.18); color: #9fb0ff; }
.aw-ch.em { background: rgba(138,147,160,0.18); color: #aeb6c1; }
.aw-ch.wa { background: rgba(53,192,122,0.18); color: #6fd6a0; }
.aw-ch.mp { background: rgba(239,166,60,0.18); color: #f0bd72; }
.aw-cv-time { margin-left: auto; font-size: 10.5px; color: var(--aw-dim); flex: none; }
.aw-cv-sub { font-size: 11px; color: var(--aw-dim); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-cv-line3 { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.aw-st { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.aw-st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.aw-st.work { background: rgba(239,166,60,0.14); color: #f0bd72; }
.aw-st.buy { background: var(--aw-green-soft); color: #6fd6a0; }
.aw-st.quiet { background: rgba(138,123,255,0.14); color: #b6acff; }
.aw-st.new { background: var(--aw-cobalt-soft); color: #9fb0ff; }
.aw-unread {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--aw-cobalt); color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- Thread ---- */
.aw-thread { display: flex; flex-direction: column; min-width: 0; background: var(--aw-bg); }
.aw-th-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--aw-line); }
.aw-th-head .nm { font-weight: 600; font-size: 14px; color: var(--aw-text); }
.aw-th-head .sub { font-size: 11.5px; color: var(--aw-dim); }
.aw-th-chtabs { margin-left: auto; display: flex; gap: 5px; }
.aw-th-chtab { font-size: 11px; padding: 5px 10px; border-radius: 7px; color: var(--aw-muted); border: 1px solid var(--aw-line); display: inline-flex; align-items: center; gap: 6px; }
.aw-th-chtab.is-active { color: var(--aw-text); background: var(--aw-card); }
.aw-th-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.aw-daysep { text-align: center; font-size: 10.5px; color: var(--aw-dim); margin: 2px 0; }
.aw-msg { max-width: 78%; }
.aw-msg .bubble { padding: 10px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; color: var(--aw-text); }
.aw-msg .meta { font-size: 10px; color: var(--aw-dim); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.aw-msg.in .bubble { background: var(--aw-card); border: 1px solid var(--aw-line); border-bottom-left-radius: 5px; }
.aw-msg.out { align-self: flex-end; text-align: right; }
.aw-msg.out .bubble { background: var(--aw-cobalt); color: #fff; border-bottom-right-radius: 5px; text-align: left; }
.aw-msg.out .meta { justify-content: flex-end; }
/* AI suggestion */
.aw-ai {
  align-self: stretch; margin-top: 2px;
  background: linear-gradient(180deg, rgba(138,123,255,0.10), transparent);
  border: 1px solid rgba(138,123,255,0.4); border-radius: 14px; padding: 14px 15px;
}
.aw-ai-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: #c2bbff; margin-bottom: 9px; }
.aw-ai-head .badge { margin-left: auto; font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--aw-amber); background: rgba(239,166,60,0.14); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.aw-ai-text { font-size: 12.5px; line-height: 1.55; color: var(--aw-text); }
.aw-ai-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.aw-th-compose { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--aw-line); background: var(--aw-panel); }
.aw-th-compose .field { flex: 1; background: var(--aw-card); border: 1px solid var(--aw-line); border-radius: 9px; padding: 9px 12px; color: var(--aw-dim); font-size: 12px; }
.aw-th-compose .send { width: 34px; height: 34px; border-radius: 9px; background: var(--aw-cobalt); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.aw-th-compose .send svg { width: 15px; height: 15px; }

/* ---- Client card ---- */
.aw-cc { border-left: 1px solid var(--aw-line); background: var(--aw-panel); padding: 16px 15px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.aw-cc-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; }
.aw-cc-head .av { width: 52px; height: 52px; border-radius: 50%; font-size: 17px; }
.aw-cc-head .nm { font-weight: 600; font-size: 14px; color: var(--aw-text); white-space: nowrap; }
.aw-seg-chip { font-size: 10.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--aw-cobalt-soft); color: #9fb0ff; white-space: nowrap; }
.aw-cc-block { display: flex; flex-direction: column; gap: 8px; }
.aw-cc-block .lbl { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aw-dim); }
.aw-cc-meta { display: grid; gap: 7px; font-size: 11.5px; }
.aw-cc-meta div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.aw-cc-meta dt { color: var(--aw-dim); white-space: nowrap; }
.aw-cc-meta dd { color: var(--aw-text); margin: 0; text-align: right; white-space: nowrap; }
.aw-cc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-cc-tag { font-size: 10.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--aw-line); color: var(--aw-muted); }
.aw-cc-ai { background: var(--aw-card); border: 1px solid var(--aw-line); border-radius: 10px; padding: 12px; }
.aw-cc-ai .h { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; color: #c2bbff; margin-bottom: 7px; }
.aw-cc-ai p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--aw-muted); }

/* =========================================================
   CRM — сегменты + рассылки (второе окно)
   ========================================================= */
.aw-twocol { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 0; }
.aw-segcol { border-right: 1px solid var(--aw-line); padding: 18px; background: var(--aw-panel); }
.aw-col-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.aw-col-head h5 { font-family: var(--ff-display); font-weight: 600; font-size: 14px; margin: 0; color: var(--aw-text); }
.aw-col-head .add { margin-left: auto; font-size: 11px; font-weight: 600; color: #9fb0ff; border: 1px solid rgba(91,120,255,0.4); border-radius: 7px; padding: 5px 10px; white-space: nowrap; }
.aw-segrow {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 11px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid rgba(42,49,59,0.5);
}
.aw-segrow:last-child { border-bottom: 0; }
.aw-segrow.is-active { background: var(--aw-cobalt-soft); margin: 0 -10px; padding: 13px 10px; border-radius: 9px; border-bottom-color: transparent; }
.aw-segdot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.aw-seg-name { font-weight: 600; font-size: 12.5px; color: var(--aw-text); }
.aw-seg-rule { font-size: 11px; color: var(--aw-dim); margin-top: 3px; }
.aw-seg-count { text-align: right; }
.aw-seg-count b { font-family: var(--ff-display); font-weight: 700; font-size: 16px; color: var(--aw-text); display: block; }
.aw-seg-count span { font-size: 9.5px; color: var(--aw-dim); text-transform: uppercase; letter-spacing: 0.05em; }

.aw-bccol { padding: 18px; background: var(--aw-bg); display: flex; flex-direction: column; gap: 14px; }
.aw-bc-aud { display: flex; align-items: center; gap: 10px; background: var(--aw-card); border: 1px solid var(--aw-line); border-radius: 10px; padding: 12px 14px; }
.aw-bc-aud .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--aw-cobalt-soft); color: #9fb0ff; display: flex; align-items: center; justify-content: center; flex: none; }
.aw-bc-aud .ic svg { width: 16px; height: 16px; }
.aw-bc-aud .t b { font-size: 12.5px; color: var(--aw-text); display: block; }
.aw-bc-aud .t span { font-size: 11px; color: var(--aw-dim); }
.aw-bc-aud .cnt { margin-left: auto; text-align: right; }
.aw-bc-aud .cnt b { font-family: var(--ff-display); font-weight: 700; font-size: 17px; color: var(--aw-cobalt); }
.aw-bc-aud .cnt span { display: block; font-size: 9.5px; color: var(--aw-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.aw-bc-chan { display: flex; gap: 8px; }
.aw-bc-chan .opt { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; font-weight: 600; padding: 9px; border-radius: 9px; border: 1px solid var(--aw-line); color: var(--aw-muted); }
.aw-bc-chan .opt.is-active { background: var(--aw-cobalt-soft); border-color: transparent; color: #c2cdff; }
.aw-bc-msg { background: var(--aw-card); border: 1px solid var(--aw-line); border-radius: 10px; padding: 14px; }
.aw-bc-msg .top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.aw-bc-msg .top .lbl { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aw-dim); }
.aw-bc-msg .top .gen { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #c2bbff; border: 1px solid rgba(138,123,255,0.4); border-radius: 7px; padding: 4px 9px; white-space: nowrap; }
.aw-bc-msg p { margin: 0 0 7px; font-size: 12.5px; line-height: 1.55; color: var(--aw-text); }
.aw-bc-msg p:last-child { margin-bottom: 0; }
.aw-bc-msg .vars { font-size: 11px; color: #9fb0ff; }
.aw-bc-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.aw-bc-foot .when { font-size: 11.5px; color: var(--aw-muted); }
.aw-bc-foot .when b { color: var(--aw-text); }
.aw-bc-send { margin-left: auto; background: var(--aw-cobalt); color: #fff; font-weight: 600; font-size: 12.5px; padding: 10px 16px; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px; }
.aw-bc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid var(--aw-line); }
.aw-bc-stat .v { font-family: var(--ff-display); font-weight: 700; font-size: 17px; color: var(--aw-text); }
.aw-bc-stat .v.pos { color: var(--aw-green); }
.aw-bc-stat .l { font-size: 10px; color: var(--aw-dim); margin-top: 3px; }
.aw-bc-prev-h { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aw-dim); margin-bottom: 2px; }

/* ---- CRM responsive ---- */
@media (max-width: 1100px) {
  .aw-crm { grid-template-columns: 150px 1fr 240px; }
  .aw-crm .aw-list { display: none; }
}
@media (max-width: 860px) {
  .aw-crm { grid-template-columns: 1fr 230px; }
  .aw-crm .aw-nav { display: none; }
  .aw-twocol { grid-template-columns: 1fr; }
  .aw-segcol { border-right: 0; border-bottom: 1px solid var(--aw-line); }
}
@media (max-width: 620px) {
  .aw-crm { grid-template-columns: 1fr; }
  .aw-crm .aw-cc { display: none; }
  .aw-th-chtabs { display: none; }
  .aw-bc-stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Кейс 02 — «каналы в одном инбоксе» (карточка истории, тема сайта)
   ========================================================= */
.merge { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; }
.merge__src { display: flex; flex-direction: column; gap: 8px; }
.merge__chan {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  background: var(--accent-softer); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px;
}
.merge__chan .mc { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.mc.tg { background: #5b78ff; } .mc.em { background: #8a93a0; }
.mc.mp { background: #efa63c; } .mc.wa { background: #35c07a; }
.merge__arrow { font-size: 22px; color: var(--accent); font-weight: 700; }
.merge__out {
  text-align: center; font-size: 13px; line-height: 1.35; color: var(--muted);
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; min-width: 96px;
}
.merge__out b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; margin-top: 2px; }

.minigrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { text-align: left; }
.mini b { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 26px; color: var(--ink); letter-spacing: -0.01em; }
.mini span { font-size: 12px; color: var(--muted); }

@media (max-width: 520px) {
  .merge { grid-template-columns: 1fr auto; gap: 12px; }
  .merge__arrow { display: none; }
  .merge__out { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .closer-steps { grid-template-columns: 1fr !important; }
}
