:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-subtle: #f9fafb;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --primary: #155eef;
  --primary-hover: #004eeb;
  --primary-soft: #eff4ff;
  --teal: #0f766e;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
[hidden], body:not([data-role="admin"]) [data-admin-only],
body:not([data-role="marketer"]) [data-marketer-only] { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.muted { color: var(--muted); font-size: 13px; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: #f2f4f7;
  padding: 2px 5px;
  border-radius: 4px;
}

/* Login */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }

/* Shell */
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: none; background: transparent;
  color: var(--ink-2); border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer; text-align: left;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.nav-item:hover { background: var(--surface-subtle); color: var(--ink); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item.active svg { color: var(--primary); }
.nav-badge { margin-left: auto; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; }

.sidebar-foot { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.clock-box { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; }
.clock-time { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.clock-status { font-size: 12px; color: var(--muted); margin-top: 2px; }

.main { padding: 22px 26px 40px; max-width: 1440px; width: 100%; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
h2 { margin: 0 0 12px 0; font-size: 15px; font-weight: 600; }
h3 { margin: 0 0 8px 0; font-size: 14px; font-weight: 600; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back-row { margin-bottom: 8px; }

/* Subtabs & Pills (Coldy campaign detail) */
.subtabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.subtab {
  border: none; background: transparent; padding: 10px 2px; font: inherit; font-weight: 500;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subtab:hover { color: var(--ink); }
.subtab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.pill-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border); background: var(--surface-subtle); color: var(--ink-2);
  padding: 6px 11px; border-radius: 7px; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.pill.active { background: var(--primary-soft); border-color: #b2ccff; color: var(--primary); font-weight: 600; }

/* Sequence Builder (Coldy left steps + right editor) */
.seq-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.seq-steps-col { display: flex; flex-direction: column; gap: 10px; }
.seq-step-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer;
}
.seq-step-card.active { border-color: var(--primary); background: var(--primary-soft); }
.seq-step-num {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; align-items: center; justify-content: center; margin-right: 8px;
}
.seq-delay-pill {
  align-self: center; background: var(--surface); border: 1px solid var(--border); border-radius: 99px;
  padding: 4px 12px; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px;
}
.seq-delay-pill input { width: 48px !important; padding: 2px 5px !important; text-align: center; }
.seq-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.seq-preview {
  margin-top: 14px; background: var(--surface-subtle); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; white-space: pre-wrap; font-size: 13.5px;
}

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.warmup-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #fafcff; border-color: #d1e0ff; }
.warmup-bar-right { display: flex; align-items: center; gap: 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { padding: 16px 18px; }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-blue { color: var(--primary); }
.kpi-green { color: var(--green); }
.kpi-foot { font-size: 12px; color: var(--muted); }
.two-col-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.banner { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.banner-warn { background: var(--amber-soft); border: 1px solid #fcd34d; color: #92400e; }
.blockers { background: var(--amber-soft); border: 1px solid #fcd34d; color: #92400e; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; font-size: 13px; }
.blockers ul { margin: 4px 0 0 18px; padding: 0; }

/* Settings helpers */
.days-row { display: flex; gap: 12px; flex-wrap: wrap; }
.days-row label { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; cursor: pointer; }
.setting-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.setting-line:last-of-type { border-bottom: none; }
.checkbox-list { display: flex; flex-direction: column; gap: 8px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-subtle); }
.status-select { width: auto !important; font-weight: 600; background: var(--primary-soft) !important; color: var(--primary) !important; border-color: #b2ccff !important; }

/* Switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #d0d5dd; border-radius: 99px; transition: background 0.16s; }
.slider:before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.16s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider:before { transform: translateX(18px); }

/* Buttons & Inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px;
  border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-subtle); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-subtle); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
input[type="text"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 7px;
  font: inherit; font-size: 13px; color: var(--ink); background: var(--surface);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12); }
.num-input { width: 70px !important; padding: 5px 7px !important; }
.form-error { color: var(--red); background: var(--red-soft); padding: 8px 10px; border-radius: 6px; font-size: 12.5px; margin-bottom: 12px; }

/* Tables & Badges */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-subtle); }
.clickable-row { cursor: pointer; }

.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: #047857; }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-gray { background: #f2f4f7; color: var(--ink-2); }

/* Inbox 3-pane (Coldy) */
.inbox-layout { display: grid; grid-template-columns: 220px 330px minmax(0, 1fr); gap: 14px; align-items: start; }
.inbox-filters { display: flex; flex-direction: column; gap: 12px; }
.filter-group label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.inbox-list-wrap { padding: 10px; display: flex; flex-direction: column; max-height: calc(100vh - 150px); }
.inbox-top-bar { padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 7px; padding: 2px; gap: 2px; }
.seg { border: none; background: transparent; padding: 5px 4px; border-radius: 5px; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.seg.active { background: var(--surface); color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.inbox-list { overflow-y: auto; flex: 1; }
.thread-item { padding: 10px 11px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; margin-bottom: 4px; }
.thread-item:hover { background: var(--surface-subtle); }
.thread-item.active { background: var(--primary-soft); border-color: #b2ccff; }
.thread-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.thread-email { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-date { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.thread-subj { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-snip { font-size: 12px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread-tags { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }

.inbox-thread { min-height: 540px; display: flex; flex-direction: column; gap: 14px; }
.thread-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.thread-context { flex-basis: 100%; margin: 0; padding: 12px; background: var(--surface-subtle); border-radius: 8px; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; }
.thread-context dt { color: var(--muted); }
.thread-context dd { margin: 0; }
.thread-messages { display: flex; flex-direction: column; gap: 12px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.email-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: #fff; }
.email-card.out { background: #f8fafc; }
.email-card-meta { font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 3px; }
.email-card-body { white-space: pre-wrap; font-size: 14px; color: var(--ink); line-height: 1.55; }
.reply-composer { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.reply-composer textarea { min-height: 92px; resize: vertical; }

/* Chart, Logs, Modals */
.legend { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.dot-teal { background: var(--teal); }
.dot-blue { background: var(--primary); }
.dot-amber { background: #d97706; }

.period-filter, .period-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.period-filter { justify-content: space-between; margin-bottom: 14px; padding: 12px 16px; }
.range-picker { position: relative; }
.range-popover { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: min(292px, calc(100vw - 48px)); padding: 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow); }
.range-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.range-heading button { min-width: 36px; font-size: 20px; }
.range-month::first-letter { text-transform: uppercase; }
.range-week, .range-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.range-week { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.range-days button { padding: 0; min-height: 33px; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.range-days button.in-range { background: #e0eaff; color: #164096; }
.range-days button.range-edge { background: var(--primary); color: white; border-radius: 5px; font-weight: 600; }
.range-days button:hover, .range-days button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.range-hint { margin-top: 8px; }
.period-error { color: var(--red); }
.period-error:empty { display: none; }
#cd-delete-draft { color: var(--red); }

.chart-box svg { width: 100%; height: 220px; display: block; }
.bot-status-box { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.log-pre { background: #101828; color: #e4e7ec; border-radius: 8px; padding: 12px; font-family: ui-monospace, monospace; font-size: 12px; max-height: 240px; overflow: auto; margin: 0; }
.empty-state { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 24, 40, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 900;
}
.modal-card { width: 100%; max-width: 580px; background: var(--surface); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow); }
#add-lead-dialog { width: min(460px, calc(100vw - 32px)); padding: 22px 24px; color: var(--ink); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
#add-lead-dialog::backdrop { background: rgba(16, 24, 40, 0.45); }
#add-lead-dialog fieldset { border: 0; margin: 14px 0; padding: 0; }
#add-lead-dialog #lead-wave { max-width: 100px; }
#add-lead-dialog p:empty, #deploy-result:empty { display: none; }
.btn-remove-lead { color: var(--red); }

.toast { position: fixed; right: 22px; bottom: 22px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow); z-index: 999; max-width: 440px; }
.toast.err { background: #991b1b; }

@media (max-width: 1120px) {
  .two-col-equal, .seq-layout, .inbox-layout { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .range-popover { right: auto; left: 0; }
  .thread-context { grid-template-columns: 1fr; }
  .thread-context dd + dt { margin-top: 6px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .main { padding: 16px; }
}

/* Project navigation */
.project-selector { position: relative; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.project-current, .project-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px; background: transparent; border: 0; border-radius: 8px; color: var(--ink); font: inherit; text-align: left; }
button.project-current, .project-option, .project-add { cursor: pointer; }
button.project-current:hover, .project-option:hover { background: var(--surface-subtle); }
.project-letter { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 9px; color: #075e55; background: #d9f2eb; font-size: 18px; font-weight: 700; }
.project-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.project-copy strong { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.project-copy small { font-size: 12px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.project-copy small:empty { display: none; }
.project-chevron, .project-check { color: #13695d; }
.project-popup { position: absolute; top: calc(100% - 7px); left: 0; z-index: 55; width: min(300px,calc(100vw - 38px)); padding: 6px; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px #10182823; background: var(--surface); }
.project-popup p { margin: 4px 7px 7px; font-size: 12px; color: var(--muted); }
#project-options { max-height: min(45vh, 340px); overflow-y: auto; }
.project-option[aria-current="true"] { background: #edf8f4; }
.project-add { width: 100%; margin-top: 4px; padding: 9px 7px; background: transparent; border: none; border-top: 1px solid var(--border); text-align: left; color: #08675a; font: inherit; font-weight: 600; }
.project-dialog { width: min(440px, calc(100vw - 30px)); padding: 23px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); box-shadow: var(--shadow); }
.project-dialog::backdrop { background: #10182873; }
.project-dialog h2 { margin: 0 0 16px; }
.project-dialog .field, .project-settings-card .field { margin-bottom: 12px; }
.project-settings-card { margin-bottom: 16px; }
.project-settings-card .checkbox-row { margin-bottom: 14px; }
#team-guide-link { text-decoration: none; }
.mailbox-guide-link { margin-right: auto; text-decoration: none; }
.preview-html { white-space: normal; }
.preview-html p { margin: 0.65em 0; }

.report-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.report-kpis .kpi-card { min-width: 0; margin: 0; }
.report-kpis .kpi-value { font-size: clamp(20px, 2.05vw, 31px); font-variant-numeric: tabular-nums; }
.kpi-stop { border-top: 3px solid var(--red); }
.kpi-stop .kpi-value { color: var(--red); }
.kpi-foot { font-size: 11px; line-height: 1.3; color: var(--muted); margin-top: 4px; }
.campaign-report .period-filter { padding: 8px 0 14px; }
.campaign-report .table-scroll { width: 100%; overflow-x: auto; }
.metrics-table { width: 100%; min-width: 650px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.metrics-table th, .metrics-table td { text-align: right; padding: 10px 9px; border-bottom: 1px solid var(--border); }
.metrics-table th:first-child { text-align: left; }
.metrics-table tbody th { font-weight: 500; }
.metrics-table tbody td { white-space: nowrap; }
.metrics-table .metrics-total { font-weight: 700; background: #eff7f4; }
.metrics-table .metrics-total th { font-weight: 700; }
.metric-help { font-size: 12px; color: var(--muted); max-width: 39em; }
.metric-help summary { cursor: pointer; font-weight: 600; }
@media (max-width: 1150px) { .report-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 690px) { .report-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } .campaign-report .card-head { flex-wrap: wrap; } }
