/* ─── STATS ──────────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}

.stat-num {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  font-family: sans-serif;
}

.stat-lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
  font-family: sans-serif;
}

.stat-card.acc .stat-num { color: #b85f3d; }
.stat-card.grn .stat-num { color: #24584a; }
.stat-card.ylw .stat-num { color: #a56b1f; }
.stat-card.blu .stat-num { color: #2767a5; }

/* ─── GRID LAYOUTS ───────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.two-col-eq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* ─── PANELS ─────────────────────────────────────────────────────────────── */
.panel-card {
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: sans-serif;
}

.panel-h {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* ─── QUERY HERO ─────────────────────────────────────────────────────────── */
.query-hero {
  background: rgba(36,88,74,0.07);
  border: 0.5px solid rgba(36,88,74,0.18);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.q-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #24584a;
  margin-bottom: 6px;
  font-family: sans-serif;
}

.q-text {
  font-size: 16px;
  font-weight: 500;
  color: #24584a;
  font-family: ui-monospace, monospace;
}

.q-day {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-family: sans-serif;
}

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
.form-row { margin-bottom: 10px; }

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.form-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-family: sans-serif;
  display: block;
}

.form-inp,
.form-select,
.form-textarea {
  width: 100%;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  background: var(--panel-strong);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 120ms ease;
}

.form-inp:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(184,95,61,0.4);
}

.form-textarea {
  resize: vertical;
  min-height: 72px;
}

.btn-send {
  background: #b85f3d;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  font-family: sans-serif;
  transition: opacity 150ms ease;
}

.btn-send:hover { opacity: 0.88; }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-send:active { transform: scale(0.98); }

.btn-secondary {
  background: var(--panel-strong);
  color: var(--text);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: sans-serif;
  transition: border-color 120ms ease;
}

.btn-secondary:hover { border-color: rgba(184,95,61,0.3); }

.btn-green {
  background: #24584a;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: sans-serif;
  transition: opacity 150ms ease;
}

.btn-green:hover { opacity: 0.88; }

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ─── PENDING ROWS ───────────────────────────────────────────────────────── */
.pending-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 6px;
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
}

.pending-row.old {
  background: rgba(184,95,61,0.07);
  border-color: rgba(184,95,61,0.15);
}

.pend-name { font-weight: 500; font-size: 13px; font-family: sans-serif; }
.pend-brand { font-size: 11px; color: var(--muted); }
.pend-days { font-size: 11px; font-family: sans-serif; }
.pend-days.red { color: #b85f3d; font-weight: 600; }
.pend-days.ok { color: var(--muted); }

.withdraw-btn {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(184,95,61,0.1);
  color: #b85f3d;
  border: 0.5px solid rgba(184,95,61,0.2);
  cursor: pointer;
  font-family: sans-serif;
}

/* ─── PROMPT CARDS ───────────────────────────────────────────────────────── */
.prompt-card {
  background: var(--panel-strong);
  border-radius: 12px;
  padding: 10px 12px;
  border-left: 3px solid #b85f3d;
  margin-bottom: 8px;
  position: relative;
}

.prompt-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #b85f3d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  font-family: sans-serif;
}

.prompt-text {
  font-size: 12px;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  cursor: pointer;
  color: var(--muted);
  font-family: sans-serif;
  transition: all 120ms ease;
}

.copy-btn:hover { color: var(--accent); border-color: rgba(184,95,61,0.3); }

/* ─── WEEK TABLE ─────────────────────────────────────────────────────────── */
.week-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: sans-serif;
}

.week-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 10px;
  text-align: left;
  border-bottom: 0.5px solid var(--line);
}

.week-table td {
  padding: 8px 10px;
  border-bottom: 0.5px solid var(--line);
}

.week-table tr:last-child td { border-bottom: none; }

.week-table tr.today-row td {
  background: rgba(36,88,74,0.07);
  color: #24584a;
  font-weight: 500;
}

.query-code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

/* ─── COMMENT ITEMS ──────────────────────────────────────────────────────── */
.comment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 6px;
  gap: 8px;
}

.c-info { flex: 1; overflow: hidden; }

.c-url {
  font-size: 12px;
  color: #2767a5;
  font-family: ui-monospace, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-topic { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: sans-serif; }

.c-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  font-family: sans-serif;
}

.c-status.pending { background: rgba(165,107,31,0.1); color: #a56b1f; }
.c-status.done    { background: rgba(36,88,74,0.1); color: #24584a; }

/* ─── LEAD ROW ───────────────────────────────────────────────────────────── */
.lead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 13px;
  font-family: sans-serif;
}

.lead-row:last-child { border-bottom: none; }
.lead-name { font-weight: 500; }
.lead-brand { font-size: 12px; color: var(--muted); }

/* ─── BADGES ─────────────────────────────────────────────────────────────── */
.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: sans-serif;
}

.badge.warm    { background: rgba(36,88,74,0.1);   color: #24584a; }
.badge.neutral { background: rgba(165,107,31,0.1); color: #a56b1f; }
.badge.unclear { background: rgba(184,95,61,0.1);  color: #b85f3d; }
.badge.done    { background: rgba(39,103,165,0.1); color: #2767a5; }
.badge.overdue { background: rgba(184,95,61,0.12); color: #b85f3d; font-weight: 600; }

/* ─── FOLLOW-UP ROWS ─────────────────────────────────────────────────────── */
.follow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 6px;
  font-family: sans-serif;
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
}

.follow-row.overdue { background: rgba(184,95,61,0.07); border-color: rgba(184,95,61,0.15); }
.follow-row.today   { background: rgba(165,107,31,0.07); border-color: rgba(165,107,31,0.15); }

.fu-name { font-weight: 500; }
.fu-date { font-size: 11px; color: var(--muted); }

.fu-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
}

.fu-tag.red { background: rgba(184,95,61,0.15); color: #b85f3d; }
.fu-tag.ylw { background: rgba(165,107,31,0.15); color: #a56b1f; }

/* ─── STEPS ──────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 8px; }

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.step-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  font-family: sans-serif;
  flex-shrink: 0;
}

.step h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.step p  { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; font-family: sans-serif; }

/* ─── CALLOUTS ───────────────────────────────────────────────────────────── */
.callout {
  padding: 12px 14px;
  border-radius: 14px;
  border: 0.5px solid rgba(36,88,74,0.18);
  background: var(--green-soft);
  color: #23463c;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
  font-family: sans-serif;
}

.callout.warn { border-color: rgba(184,95,61,0.2); background: rgba(184,95,61,0.08); color: #7e3d2a; }
.callout.blue { border-color: rgba(39,103,165,0.18); background: var(--blue-soft); color: #244e77; }

/* ─── QUICK BUTTONS ──────────────────────────────────────────────────────── */
.quick-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.qbtn {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0.5px solid var(--line);
  background: var(--panel-strong);
  text-align: left;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: sans-serif;
  transition: background 120ms ease;
}

.qbtn:hover {
  background: rgba(184,95,61,0.06);
  border-color: rgba(184,95,61,0.25);
  text-decoration: none;
}

.qbtn-ico { font-size: 16px; }

/* ─── ACTIVITY FEED ──────────────────────────────────────────────────────── */
.activity-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 13px;
  font-family: sans-serif;
}

.activity-item:last-child { border-bottom: none; }

.act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.act-dot.grn { background: #24584a; }
.act-dot.org { background: #b85f3d; }
.act-dot.blu { background: #2767a5; }

.act-text { flex: 1; color: var(--text); line-height: 1.4; }
.act-sub  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.act-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }

/* ─── MINI STAT ROW ──────────────────────────────────────────────────────── */
.stat-mini-row { display: flex; gap: 8px; margin-bottom: 12px; }

.stat-mini {
  flex: 1;
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.stat-mini-num { font-size: 20px; font-weight: 500; font-family: sans-serif; }
.stat-mini-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; font-family: sans-serif; }

/* ─── PIPELINE CHECK CARD ────────────────────────────────────────────────── */
.pipeline-check-card {
  background: var(--green-soft);
  border: 0.5px solid rgba(36,88,74,0.2);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
}

.check-days { font-size: 28px; font-weight: 500; color: #24584a; font-family: sans-serif; }
.check-sub  { font-size: 12px; color: #24584a; margin-bottom: 10px; font-family: sans-serif; }

/* ─── MINI GRID ──────────────────────────────────────────────────────────── */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
}

.mini-card {
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.mini-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.mini-card p  { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; font-family: sans-serif; }
.mini-card ul { margin: 8px 0 0 16px; padding: 0; list-style: disc; }
.mini-card li { font-size: 13px; color: var(--muted); line-height: 1.6; font-family: sans-serif; }

/* ─── KPIs ───────────────────────────────────────────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}

.kpi {
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.kpi small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 11px;
  margin-bottom: 6px;
  font-family: sans-serif;
}

.kpi strong { display: block; font-size: 20px; line-height: 1.2; }

/* ─── SETTINGS ───────────────────────────────────────────────────────────── */
.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 13px;
  font-family: sans-serif;
}

.settings-row:last-child { border-bottom: none; }

.settings-lbl {
  min-width: 80px;
  color: var(--muted);
  font-size: 12px;
}

.settings-inp {
  flex: 1;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  background: var(--panel-strong);
  color: var(--text);
  font-family: ui-monospace, monospace;
  outline: none;
}

.settings-inp:focus { border-color: rgba(184,95,61,0.4); }

.danger-zone {
  background: rgba(184,95,61,0.06);
  border: 0.5px solid rgba(184,95,61,0.18);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
}

.dz-title {
  font-size: 12px;
  font-weight: 600;
  color: #b85f3d;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: sans-serif;
}

.dz-btn {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 0.5px solid rgba(184,95,61,0.3);
  background: transparent;
  color: #b85f3d;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 6px;
  font-family: sans-serif;
  transition: background 120ms ease;
}

.dz-btn:hover { background: rgba(184,95,61,0.08); }

/* ─── TELEGRAM CARD ──────────────────────────────────────────────────────── */
.tg-card {
  background: rgba(39,103,165,0.07);
  border: 0.5px solid rgba(39,103,165,0.2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
}

.tg-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2767a5;
  margin-bottom: 6px;
  font-family: sans-serif;
}

/* ─── TABLES ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 10px; }

table { width: 100%; border-collapse: collapse; font-family: sans-serif; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 0.5px solid var(--line); font-size: 13px; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
tr:last-child td { border-bottom: none; }

/* ─── UTILS ──────────────────────────────────────────────────────────────── */
.empty   { color: var(--muted); font-size: 13px; font-family: sans-serif; text-align: center; padding: 20px; }
.loading { color: var(--muted); font-size: 13px; font-family: sans-serif; padding: 20px; }
.section-gap { margin-bottom: 14px; }

.delete-btn {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: transparent;
  border: 0.5px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 120ms ease;
}

.delete-btn:hover { color: #b85f3d; border-color: rgba(184,95,61,0.3); }

/* ─── KPI STRIP (6-column) ───────────────────────────────────────────────── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.kpi-cell {
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}

.kpi-num {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  font-family: sans-serif;
}

.kpi-num.grn { color: #24584a; }
.kpi-num.acc { color: #b85f3d; }
.kpi-num.org { color: #a56b1f; }

.kpi-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
  font-family: sans-serif;
}

/* ─── ACTION QUEUE ───────────────────────────────────────────────────────── */
.aq-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--line);
  font-family: sans-serif;
  font-size: 13px;
}

.aq-row:last-child { border-bottom: none; }

.aq-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
}

.aq-type.grn { background: var(--green-soft); color: #24584a; }
.aq-type.acc { background: var(--accent-soft); color: #b85f3d; }
.aq-type.org { background: rgba(165,107,31,0.1); color: #a56b1f; }
.aq-type.blu { background: var(--blue-soft); color: #2767a5; }
.aq-type.ylw { background: rgba(165,107,31,0.1); color: #a56b1f; }

.aq-desc { flex: 1; font-weight: 500; }

.aq-src {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.aq-open {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  font-family: sans-serif;
  transition: all 120ms ease;
}

.aq-open:hover { border-color: rgba(184,95,61,0.3); color: #b85f3d; }

/* ─── WARM SIGNALS ───────────────────────────────────────────────────────── */
.sig-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--line);
  font-family: sans-serif;
  font-size: 13px;
}

.sig-row:last-child { border-bottom: none; }

.sig-info { flex: 1; }
.sig-name { font-weight: 500; font-size: 13px; }
.sig-brand { font-size: 11px; color: var(--muted); }

.sig-type {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.sig-type.warm    { background: rgba(36,88,74,0.1); color: #24584a; }
.sig-type.neutral { background: rgba(165,107,31,0.1); color: #a56b1f; }

.sig-src { font-size: 11px; color: var(--muted); flex-shrink: 0; }

/* ─── NASTYA STATUS ──────────────────────────────────────────────────────── */
.ns-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--line);
  font-family: sans-serif;
  font-size: 13px;
}

.ns-row:last-child { border-bottom: none; }

.ns-lbl { color: var(--muted); font-size: 12px; }

.ns-val { font-weight: 500; font-size: 13px; }
.ns-val.ok  { color: #24584a; }
.ns-val.no  { color: #b85f3d; }
.ns-val.org { color: #a56b1f; }

/* ─── DAILY FLOW STEPS ───────────────────────────────────────────────────── */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.flow-step {
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.flow-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  font-family: sans-serif;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
}

.flow-lbl { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.flow-sub { font-size: 11px; color: var(--muted); font-family: sans-serif; }

/* ─── PIPELINE CHECK ROWS ────────────────────────────────────────────────── */
.pc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--line);
  font-family: sans-serif;
  font-size: 13px;
}

.pc-row:last-child { border-bottom: none; }
.pc-lbl { color: var(--muted); font-size: 12px; }
.pc-val { font-weight: 500; }
.pc-val.ok { color: #24584a; }
.pc-val.no { color: #b85f3d; }

/* ─── METRICS ROW ────────────────────────────────────────────────────────── */
.met-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--line);
  font-family: sans-serif;
  font-size: 13px;
}

.met-row:last-child { border-bottom: none; }
.met-lbl { color: var(--muted); font-size: 12px; }
.met-val { font-weight: 500; }
.met-val.grn { color: #24584a; }

/* ─── INBOUND: REPLY ROWS ────────────────────────────────────────────────── */
.reply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--line);
  font-family: sans-serif;
  font-size: 13px;
}

.reply-row:last-child { border-bottom: none; }

.reply-info { flex: 1; }
.reply-name { font-weight: 500; }
.reply-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.reply-note { font-size: 12px; color: var(--muted); margin-top: 3px; font-style: italic; }
.reply-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ─── INBOUND: CLASSIFIED SECTIONS ──────────────────────────────────────── */
.cl-section { margin-bottom: 10px; }

.cl-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
  border-bottom: 0.5px solid var(--line);
  margin-bottom: 4px;
  font-family: sans-serif;
}

.cl-head.warm    { color: #24584a; }
.cl-head.neutral { color: #a56b1f; }
.cl-head.blu     { color: #2767a5; }
.cl-head.ylw     { color: #a56b1f; }

.cl-row {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 12px;
  font-family: sans-serif;
}

.cl-row:last-child { border-bottom: none; }
.cl-name { font-weight: 500; }
.cl-brand { color: var(--muted); flex: 1; }
.cl-src { color: var(--muted); font-size: 11px; }

/* ─── PIPELINE STAT BLOCK ────────────────────────────────────────────────── */
.pl-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
}

.pl-num {
  font-size: 28px;
  font-weight: 500;
  font-family: sans-serif;
  line-height: 1;
}

.pl-num.grn { color: #24584a; }
.pl-num.org { color: #a56b1f; }
.pl-stat.warn .pl-num { color: #b85f3d; }

.pl-lbl { font-size: 13px; color: var(--muted); font-family: sans-serif; }

/* ─── HELP PAGE ──────────────────────────────────────────────────────────── */
.help-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.help-tab {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0.5px solid var(--line);
  background: var(--panel-strong);
  color: var(--muted);
  cursor: pointer;
  font-family: sans-serif;
  transition: all 120ms ease;
}

.help-tab:hover { color: var(--text); border-color: rgba(184,95,61,0.3); }

.help-tab.active {
  background: rgba(184,95,61,0.1);
  color: #b85f3d;
  border-color: rgba(184,95,61,0.25);
}

.help-frame-wrap {
  background: var(--panel-strong);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  height: calc(100vh - 160px);
}

.help-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ─── C-STATUS AS BUTTON ─────────────────────────────────────────────────── */
.c-status {
  border: none;
  cursor: pointer;
  transition: all 120ms ease;
}

.c-status:hover { opacity: 0.8; }

/* ─── RESPONSIVE (new) ───────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}
