/* ===== BigHunter — mission control dashboard ===== */
:root {
  --bg: #07090b;
  --bg-2: #0c1014;
  --surface: #11161b;
  --surface-2: #161c22;
  --surface-3: #1c242c;
  --border: #232a31;
  --border-strong: #303a44;
  --border-bright: #3f4d59;

  --text: #e7eef5;
  --text-2: #a3b1bf;
  --text-3: #6e7d8b;
  --text-4: #4d5862;

  --cyan: #29e3ff;
  --cyan-dim: #0aa6c0;
  --cyan-bg: rgba(41, 227, 255, 0.08);
  --green: #3ddc97;
  --green-dim: #1f7d56;
  --amber: #f5c451;
  --red: #ff6b6b;
  --purple: #a98aff;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(41,227,255,0.05), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(61,220,151,0.03), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.mono { font-family: var(--mono); font-feature-settings: "zero", "ss02"; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.dim { color: var(--text-3); }
.dim-2 { color: var(--text-2); }
.muted { color: var(--text-4); }

/* ===== layout ===== */
.shell { max-width: 1480px; margin: 0 auto; padding: 0 24px 64px; }

/* ===== topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  background: rgba(7,9,11,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  display: grid; place-items: center;
  position: relative;
  background: var(--cyan-bg);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid var(--cyan-dim);
  border-radius: 1px;
}
.brand-mark::after {
  content: ""; width: 6px; height: 6px; background: var(--cyan);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--cyan);
}
.brand-name { font-weight: 600; font-size: 15px; }
.brand-name b { color: var(--cyan); }
.brand-tag {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}

.topbar-spacer { flex: 1; }

.period-switch {
  display: flex; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 3px;
}
.period-switch button {
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.period-switch button.active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.system-status {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-md);
  font-family: var(--mono); font-size: 12px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2s infinite;
  color: var(--green);
}
.dot.amber { background: var(--amber); color: var(--amber); }
.dot.red { background: var(--red); color: var(--red); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70% { box-shadow: 0 0 0 8px transparent; opacity: 0.4; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

.clock { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.clock .sep { color: var(--text-4); margin: 0 6px; }

/* ===== back / drill header ===== */
.drill-head {
  display: flex; align-items: center; gap: 16px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.back-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-md);
  font-family: var(--mono); font-size: 12px;
  color: var(--text-2);
  transition: all .12s;
}
.back-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.drill-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.drill-title small {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-top: 4px;
}
.drill-head-actions { margin-left: auto; display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-md);
  font-family: var(--mono); font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  transition: all .12s;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn.primary { border-color: var(--cyan-dim); color: var(--cyan); background: var(--cyan-bg); }
.btn.primary:hover { background: rgba(41,227,255,0.14); }

/* ===== panel ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.panel-head h3 {
  margin: 0; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2);
}
.panel-head .head-meta {
  margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.06em;
}
.panel-head .head-action {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--cyan);
  letter-spacing: 0.06em;
}
.panel-head .head-action:hover { text-decoration: underline; }
.panel-body { padding: 18px; }
.panel.clickable { cursor: pointer; transition: border-color .15s; }
.panel.clickable:hover { border-color: var(--border-bright); }
.panel.clickable:hover .panel-head h3 { color: var(--text); }

/* ===== KPI grid ===== */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 18px 14px;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  transition: all .15s;
  position: relative; overflow: hidden;
}
.kpi:hover { border-color: var(--border-bright); transform: translateY(-1px); }
.kpi-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.kpi-icon {
  width: 14px; height: 14px;
  border: 1px solid var(--border-bright);
  border-radius: 2px;
  display: grid; place-items: center;
  color: var(--text-3);
}
.kpi-value {
  font-family: var(--mono);
  font-size: 34px; font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kpi-row {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px;
}
.kpi-trend {
  font-family: var(--mono); font-size: 12px;
  display: flex; align-items: center; gap: 4px;
}
.kpi-spark { width: 80px; height: 24px; }
.kpi-foot {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3); letter-spacing: 0.04em;
}
.kpi .hot {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono); font-size: 10px;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(255,107,107,0.12); color: var(--red);
  letter-spacing: 0.1em;
}

/* ===== grid layouts ===== */
.row { display: grid; gap: 14px; margin-bottom: 14px; }
.row.r-funnel { grid-template-columns: 1fr; }
.row.r-2-1 { grid-template-columns: 2fr 1fr; }
.row.r-1-1-1 { grid-template-columns: 1fr 1fr 1fr; }
.row.r-1-1 { grid-template-columns: 1fr 1fr; }

/* ===== FUNNEL hero ===== */
.funnel-wrap { padding: 24px; position: relative; }
.funnel-totals {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.ft-item .lbl {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.ft-item .val {
  font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1;
}
.ft-item .val .unit { font-size: 13px; color: var(--text-3); font-weight: 400; margin-left: 3px; }
.ft-item .val.cyan { color: var(--cyan); }
.ft-item .val.green { color: var(--green); }
.ft-item .val.amber { color: var(--amber); }

.funnel-stages {
  display: grid; grid-template-columns: 1fr; gap: 6px;
}
.fstage {
  display: grid;
  grid-template-columns: 28px 1fr 130px 220px 110px;
  align-items: stretch;
  gap: 14px;
  padding: 12px 4px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .12s;
  position: relative;
}
.fstage:hover { background: var(--surface-2); }
.fstage .step-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-4);
  display: flex; align-items: center;
}
.fstage .step-info { display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.fstage .step-name {
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 8px;
}
.fstage .step-name .live-tag {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em;
  padding: 2px 5px; border-radius: 2px;
  background: var(--cyan-bg); color: var(--cyan);
  border: 1px solid var(--cyan-dim);
}
.fstage .step-desc {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.02em;
}
.fstage .step-count {
  font-family: var(--mono);
  font-size: 22px; font-weight: 600;
  text-align: right; line-height: 1;
  align-self: center;
  font-variant-numeric: tabular-nums;
}
.fstage .step-count small {
  display: block; font-size: 10px; color: var(--text-3);
  font-weight: 400; margin-top: 4px; letter-spacing: 0.06em;
}
.fstage .step-bar {
  align-self: center;
  height: 10px;
  background: var(--bg-2);
  border-radius: 2px;
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.fstage .step-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  border-radius: 1px;
}
.fstage.is-stage-7 .step-bar-fill { background: linear-gradient(90deg, var(--green-dim), var(--green)); }
.fstage .step-conv {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-3);
  text-align: right;
  align-self: center;
}
.fstage .step-conv b { color: var(--text); font-weight: 500; }
.fstage .step-conv .arrow {
  display: block; color: var(--text-4); font-size: 9px; margin-top: 4px;
}

/* connector line */
.fstage::after {
  content: ""; position: absolute;
  left: 13px; top: 100%; height: 6px; width: 1px;
  background: var(--border-strong);
}
.fstage:last-child::after { display: none; }

.fstage.active .step-name { color: var(--cyan); }
.fstage.active .step-num { color: var(--cyan); }

/* ===== mini chart ===== */
.bar-list { display: flex; flex-direction: column; gap: 8px; }
.bar-row {
  display: grid; grid-template-columns: 130px 1fr 60px;
  gap: 10px; align-items: center;
  font-size: 12px;
}
.bar-row .label {
  font-family: var(--mono); color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-row .bar {
  height: 6px; background: var(--bg-2);
  border-radius: 1px; overflow: hidden;
  border: 1px solid var(--border);
}
.bar-row .bar > div {
  height: 100%; background: var(--cyan);
  opacity: 0.85;
}
.bar-row .value {
  text-align: right; font-family: var(--mono); color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ===== Eva ===== */
.eva-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.eva-stat {
  padding: 12px; background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.eva-stat .v { font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1; }
.eva-stat .l { font-size: 10px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; }
.dialog {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 12px;
}
.dialog .head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  font-family: var(--mono); font-size: 11px;
}
.dialog .head .who { color: var(--text); }
.dialog .head .time { color: var(--text-4); margin-left: auto; }
.dialog .body { color: var(--text-2); line-height: 1.5; }

/* ===== mailbox summary ===== */
.mb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.mb-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px;
  color: var(--text-3);
  cursor: pointer;
  position: relative;
}
.mb-cell.warm { background: rgba(245,196,81,0.10); border-color: rgba(245,196,81,0.35); color: var(--amber); }
.mb-cell.live { background: rgba(61,220,151,0.10); border-color: rgba(61,220,151,0.35); color: var(--green); }
.mb-cell.pause { background: rgba(255,107,107,0.08); border-color: rgba(255,107,107,0.30); color: var(--red); }
.mb-cell:hover { transform: scale(1.05); }
.mb-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 11px; }
.mb-legend span { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-family: var(--mono); }
.mb-legend i { width: 8px; height: 8px; border-radius: 1px; display: inline-block; }

/* ===== leads feed ===== */
.leads-feed { display: flex; flex-direction: column; }
.lead-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.6fr 1fr 90px;
  gap: 12px; padding: 10px 4px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  cursor: pointer;
  transition: background .1s;
}
.lead-row:hover { background: var(--surface-2); }
.lead-row:last-child { border-bottom: none; }
.lead-name { font-weight: 500; }
.lead-meta { color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.status-pill {
  display: inline-block;
  font-family: var(--mono); font-size: 10px;
  padding: 2px 7px; border-radius: 2px;
  letter-spacing: 0.08em; text-transform: lowercase;
  border: 1px solid var(--border);
  color: var(--text-3);
  background: var(--bg-2);
  white-space: nowrap;
}
.status-pill.new { color: var(--cyan); border-color: var(--cyan-dim); background: var(--cyan-bg); }
.status-pill.sent { color: var(--text); border-color: var(--border-strong); }
.status-pill.followed_up { color: var(--amber); border-color: rgba(245,196,81,0.35); background: rgba(245,196,81,0.06); }
.status-pill.replied { color: var(--green); border-color: rgba(61,220,151,0.35); background: rgba(61,220,151,0.08); }
.status-pill.exhausted { color: var(--text-4); }
.status-pill.hot { color: var(--red); border-color: rgba(255,107,107,0.4); background: rgba(255,107,107,0.08); }
.status-pill.warm { color: var(--amber); border-color: rgba(245,196,81,0.35); background: rgba(245,196,81,0.06); }
.status-pill.cold { color: var(--text-3); }
.status-pill.ok { color: var(--green); border-color: rgba(61,220,151,0.35); background: rgba(61,220,151,0.08); }

/* ===== cities ===== */
.cities-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.city-row {
  display: grid; grid-template-columns: 20px 1fr 1fr 70px;
  gap: 10px; padding: 7px 0;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px dashed var(--border);
}
.city-row .rk { font-family: var(--mono); color: var(--text-4); }
.city-row .nm { font-weight: 500; }
.city-row .ba { height: 4px; background: var(--bg-2); border-radius: 1px; overflow: hidden; border: 1px solid var(--border); }
.city-row .ba > div { height: 100%; background: var(--cyan); opacity: 0.7; }
.city-row .vl { font-family: var(--mono); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.city-row.today { background: rgba(41,227,255,0.04); border-radius: 4px; padding-left: 6px; padding-right: 6px; border-bottom-color: transparent; }
.city-row.today .nm::after {
  content: "● сегодня"; margin-left: 8px; font-family: var(--mono);
  font-size: 10px; color: var(--cyan); letter-spacing: 0.08em;
}

/* ===== health ===== */
.health-list { display: flex; flex-direction: column; gap: 10px; }
.health-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 12px;
}
.health-row .h-lbl { color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.health-row .h-val { margin-left: auto; font-family: var(--mono); font-size: 12px; }

/* ===== tables ===== */
.table-wrap { overflow-x: auto; }

/* Horizontal-scroll affordance: a shadow/fade at the right edge hints that
   wide drill-tables continue past the viewport. The "cover" gradients are
   background-attachment:local so they sit at the scroll-content edges and
   mask the shadow once the user scrolls to that end; the "shadow" gradients
   are background-attachment:scroll so they stay pinned to the visible edge.
   Net effect: a soft shadow appears on whichever side has hidden content.
   Shown on mobile where drill-tables exceed the 390px viewport. */
@media (max-width: 720px) {
  .table-wrap {
    background:
      linear-gradient(90deg,  var(--surface) 30%, rgba(17,22,27,0)) left center,
      linear-gradient(270deg, var(--surface) 30%, rgba(17,22,27,0)) right center,
      radial-gradient(farthest-side at 0%   50%, rgba(41,227,255,0.30), rgba(41,227,255,0)) left center,
      radial-gradient(farthest-side at 100% 50%, rgba(41,227,255,0.30), rgba(41,227,255,0)) right center;
    background-repeat: no-repeat;
    background-size: 28px 100%, 28px 100%, 16px 100%, 16px 100%;
    background-attachment: local, local, scroll, scroll;
  }
}
table.t {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.t th {
  text-align: left; padding: 10px 12px;
  font-weight: 500;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0;
}
.t td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); color: var(--text-2);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.t td.text { font-family: var(--sans); color: var(--text); }
.t tbody tr:hover { background: var(--surface-2); }
.t tbody tr:hover td.text { color: var(--text); }
.t .right { text-align: right; }
.t .center { text-align: center; }

/* filters */
.filters {
  display: flex; gap: 8px; padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.filter {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--mono); font-size: 11px;
  color: var(--text-2);
  cursor: pointer;
}
.filter.on { color: var(--cyan); border-color: var(--cyan-dim); background: var(--cyan-bg); }
.filter:hover { border-color: var(--border-strong); color: var(--text); }
.search {
  flex: 1; min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 7px 12px;
  color: var(--text);
  font-family: var(--mono); font-size: 12px;
}
.search:focus { outline: none; border-color: var(--cyan-dim); }
.filter-group-label {
  font-family: var(--mono); font-size: 10px;
  color: var(--text-4); letter-spacing: 0.12em; text-transform: uppercase;
}

.summary-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.summary-strip .item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.summary-strip .item .l { font-size: 10px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.summary-strip .item .v { font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-strip .item .s { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* anchor metric */
.anchor-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(41,227,255,0.07), transparent 60%);
  border: 1px solid var(--border);
  border-left: 2px solid var(--cyan);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  font-size: 13px;
}
.anchor-strip .pre {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
  padding: 3px 7px; border: 1px solid var(--cyan-dim);
  border-radius: 2px;
}
.anchor-strip .body { color: var(--text); }
.anchor-strip .body b { color: var(--cyan); font-family: var(--mono); font-weight: 600; }
.anchor-strip .body .vs { color: var(--text-3); }
.anchor-strip .body .crossed { color: var(--text-4); text-decoration: line-through; font-family: var(--mono); }

/* mailbox table */
.mbtable td.warm { color: var(--amber); }
.mbtable td.live { color: var(--green); }
.mbtable td.pause { color: var(--red); }

/* enrich coverage donuts */
.cov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.cov-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.cov-card .src { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.cov-card .pct { font-family: var(--mono); font-size: 38px; font-weight: 600; line-height: 1; }
.cov-card .pct .u { font-size: 18px; color: var(--text-3); margin-left: 2px; }
.cov-card .pct.cyan { color: var(--cyan); }
.cov-card .pct.green { color: var(--green); }
.cov-card .pct.amber { color: var(--amber); }
.cov-card .desc { color: var(--text-2); font-size: 12px; margin-top: 12px; line-height: 1.5; }
.cov-card .meter { height: 6px; background: var(--bg-2); border-radius: 1px; margin-top: 14px; overflow: hidden; border: 1px solid var(--border); }
.cov-card .meter > div { height: 100%; }

/* blacklist categories */
.bl-cat {
  display: grid;
  grid-template-columns: 1fr 60px 90px;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 12px;
}
.bl-cat:last-child { border-bottom: none; }
.bl-cat .b-name { color: var(--text); }
.bl-cat .b-name small { display: block; color: var(--text-3); font-family: var(--mono); font-size: 11px; margin-top: 2px; }
.bl-cat .b-count { font-family: var(--mono); text-align: right; color: var(--text); }
.bl-cat .b-bar { height: 4px; background: var(--bg-2); border-radius: 1px; overflow: hidden; border: 1px solid var(--border); }
.bl-cat .b-bar > div { height: 100%; background: var(--red); opacity: 0.6; }

/* outreach example email */
.email-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
}
.email-card .em-head {
  display: grid; grid-template-columns: 70px 1fr;
  gap: 8px 14px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  font-family: var(--mono); font-size: 11px;
}
.email-card .em-head .k { color: var(--text-4); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.email-card .em-head .v { color: var(--text); }
.email-card .em-body { color: var(--text-2); }
.email-card .em-body p { margin: 0 0 8px; }
.email-card .em-body .var { color: var(--cyan); background: var(--cyan-bg); padding: 0 4px; border-radius: 2px; font-family: var(--mono); font-size: 11px; }

/* cron schedule */
.cron-list { display: flex; flex-direction: column; }
.cron-row {
  display: grid; grid-template-columns: 110px 1fr 130px 80px;
  gap: 14px; padding: 11px 4px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.cron-row .cr-time { font-family: var(--mono); color: var(--cyan); }
.cron-row .cr-name { color: var(--text); }
.cron-row .cr-name small { display: block; color: var(--text-3); font-family: var(--mono); font-size: 11px; margin-top: 2px; }
.cron-row .cr-last { font-family: var(--mono); color: var(--text-3); font-size: 11px; }

/* sequence step */
.seq {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 6px; border-radius: 2px;
  font-family: var(--mono); font-size: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.seq.s1 { color: var(--cyan); }
.seq.s2 { color: var(--amber); }
.seq.s3 { color: var(--purple); }

/* mailbox detail row */
.warmup-curve {
  width: 100%; height: 120px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

/* BANT */
.bant {
  display: inline-flex; gap: 2px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em;
}
.bant span {
  width: 18px; height: 18px;
  border-radius: 2px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-4);
}
.bant span.on { background: rgba(61,220,151,0.12); border-color: rgba(61,220,151,0.4); color: var(--green); }

/* small util */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ===== responsive ===== */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .row.r-2-1, .row.r-1-1-1, .row.r-1-1 { grid-template-columns: 1fr; }
  .cov-grid { grid-template-columns: 1fr; }
  .cities-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { padding: 0 14px 40px; }
  .topbar { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .topbar-spacer { display: none; }
  .clock { display: none; }
  .brand-tag { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-value { font-size: 26px; }
  .fstage { grid-template-columns: 22px 1fr 90px; gap: 10px; }
  .fstage .step-bar, .fstage .step-conv { display: none; }
  .fstage .step-name { font-size: 13px; }
  .fstage .step-desc { font-size: 10px; }
  .fstage .step-count { font-size: 18px; }
  .funnel-totals { gap: 14px; }
  .ft-item .val { font-size: 18px; }
  .eva-stats { grid-template-columns: 1fr; }
  .lead-row { grid-template-columns: 1fr 80px; }
  .lead-row > *:nth-child(2), .lead-row > *:nth-child(3), .lead-row > *:nth-child(4) { display: none; }
  .drill-title { font-size: 18px; }
  .period-switch button { padding: 5px 10px; font-size: 11px; }
}
