/* LaneReach · Skyfer Logistics dashboards.
   Brand colours from the Skyfer signature card: navy text, Skyfer blue, Skyfer lime green. */
:root {
  --navy: #14305a; --blue: #195d9c; --blue-600: #154f86; --blue-soft: #e8f1fa; --blue-line: #c9dcef;
  --green: #8ac044; --green-600: #5f9a24; --green-soft: #eff7e4; --green-line: #cfe6b1;
  --bg: #f1f5f9; --panel: #ffffff; --text: #1c2b3f; --muted: #64748b; --line: #e3e9f0;
  --warn: #b7791f; --warn-soft: #fdf3e1; --bad: #c53030; --bad-soft: #fdecec;
  /* surfaces and lines that used to be written as fixed colours (dark values below) */
  --panel-2: #f7f9fc; --hover: #f3f7fb; --tint: #eef2f6; --input-line: #d5dee8; --text-2: #33465f; --muted-2: #9aa5b4;
  --bg-top: #e7eff8; --hero-a: #ffffff; --hero-b: #f3f8fd; --hero-c: #f4faec;
  --ocean-soft: #e4f4f3; --ocean: #11756e; --both-soft: #efe9fd; --both: #6d28d9; --green-tint: #f7fbf2;
  --disabled: #b6c2cf; --disabled-go: #c9d3bd; --danger-line: #f1c4c4; --warn-line: #f3d9a6; --chip-line: #9cc0e6;
  color-scheme: light;
  /* stage colours, shared by bars, chips and cards */
  --st-queued: #9aa8ba; --st-awaiting: #195d9c; --st-hard: #d64545; --st-soft: #e59f2b;
  --st-stale: #7b8798; --st-converted: #6aa531; --st-failed: #8b1e1e; --st-review: #7c3aed; --st-other: #0e8a8a; --st-interested: #3b82c4;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 48, 90, .05), 0 4px 16px rgba(20, 48, 90, .06);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--text);
  accent-color: var(--blue);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; background: var(--bg); min-height: 100vh;
  background-image: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 260px); background-repeat: no-repeat; }
a { color: var(--blue); }
code { font-family: Consolas, monospace; font-size: 12px; background: var(--tint); padding: 1px 5px; border-radius: 4px; }

/* ------------------------------------------------------------------ header */
header.top { display: flex; align-items: center; gap: 22px; padding: 10px 28px; background: var(--panel);
  position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 var(--line); }
header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 45%, var(--green) 100%); }
header.top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
header.top .brand img { height: 34px; display: block; }
header.top .brand .product { border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.15; }
header.top .brand .product b { display: block; color: var(--navy); font-size: 15px; letter-spacing: .02em; }
header.top .brand .product span { color: var(--green-600); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
header.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
header.top nav a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
header.top nav a:hover { color: var(--navy); background: var(--hover); }
header.top nav a.active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(25, 93, 156, .25); }
header.top .spacer { flex: 1; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
header.top .badge { flex-shrink: 0; }   /* "LIVE · emails are sent" stays on one line */
.badge.dry { background: var(--warn-soft); color: var(--warn); }
.badge.live { background: var(--bad-soft); color: var(--bad); }
.badge.lang { background: var(--blue-soft); color: var(--blue); font-weight: 600; }

main { padding: 24px 28px 40px; max-width: 1680px; margin: 0 auto; }
.page-title { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 22px; color: var(--navy); }
.page-title p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: 320px minmax(420px, 1fr) minmax(360px, 0.9fr); gap: 18px; align-items: start; }
@media (max-width: 1280px) { .grid { grid-template-columns: 300px 1fr; } .grid .preview-panel { grid-column: 1 / -1; } }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } main { padding: 16px; } header.top { padding: 10px 16px; } }

/* ------------------------------------------------------------------ panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel > h2 { margin: 0; padding: 14px 18px; font-size: 15px; color: var(--navy); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; }
.panel > h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(var(--blue), var(--green)); }
.panel > h2 .hint { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 12px; }
.panel .body { padding: 16px 18px; }

/* ------------------------------------------------------------------ form controls */
input[type=text], input[type=search], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--input-line); border-radius: 10px; font: inherit; background: var(--panel); color: var(--text); }
input:focus, select:focus, textarea:focus, .editor:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
input.invalid { border-color: var(--bad); outline: 3px solid var(--bad-soft); }
label.field { display: block; font-weight: 700; font-size: 11px; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
label.field .req { color: var(--bad); }
button { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid var(--input-line); background: var(--panel); padding: 8px 14px; color: var(--navy); font-weight: 600; }
button:hover { background: var(--panel-2); border-color: var(--blue-line); }
button.primary { background: linear-gradient(135deg, var(--blue), #2275bf); border-color: var(--blue); color: #fff;
  box-shadow: 0 2px 8px rgba(25, 93, 156, .25); }
button.primary:hover { background: linear-gradient(135deg, var(--blue-600), var(--blue)); }
button.primary:disabled { background: var(--disabled); border-color: var(--disabled); box-shadow: none; cursor: not-allowed; }
button.go { background: linear-gradient(135deg, var(--green-600), var(--green)); border-color: var(--green-600); color: #fff;
  box-shadow: 0 2px 8px rgba(95, 154, 36, .3); }
button.go:hover { background: linear-gradient(135deg, #4f8420, var(--green-600)); }
button.go:disabled { background: var(--disabled-go); border-color: var(--disabled-go); box-shadow: none; cursor: not-allowed; }
button.small { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.note.warn { color: var(--warn); }
.error { color: var(--bad); font-size: 13px; }
.status-error { color: var(--bad); }

/* ------------------------------------------------------------------ countries */
.country-list { max-height: calc(100vh - 420px); min-height: 220px; overflow: auto; margin-top: 10px; padding-right: 4px; }
.market { border-top: 1px solid var(--line); padding: 8px 0; }
.market:first-child { border-top: 0; }
.market-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); padding: 4px 0; cursor: pointer; }
.country { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 22px; border-radius: 8px; cursor: pointer; }
.country:hover { background: var(--panel-2); }
.country:has(input:checked) { background: var(--green-soft); }
.country .meta { margin-left: auto; white-space: nowrap; }
.selected-pill { display: inline-block; background: var(--green-soft); color: var(--green-600); border: 1px solid var(--green-line);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }

/* ------------------------------------------------------------------ editor */
.segmented { display: inline-flex; border: 1px solid var(--input-line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.segmented button { border: 0; border-radius: 0; padding: 8px 16px; }
.segmented button.on { background: var(--blue); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--blue-soft); color: var(--blue); border: 1px dashed var(--chip-line); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.chip:hover { background: var(--green-soft); color: var(--green-600); border-color: var(--green); }
.chip[draggable=true] { cursor: grab; }
.toolbar { display: flex; gap: 4px; padding: 6px; border: 1px solid var(--input-line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--panel-2); flex-wrap: wrap; align-items: center; }
.toolbar button { padding: 4px 10px; }
.toolbar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; }
.editor { min-height: 340px; max-height: 520px; overflow: auto; border: 1px solid var(--input-line); border-radius: 0 0 10px 10px;
  padding: 14px 16px; background: var(--panel); line-height: 1.55; }
.editor p { margin: 0 0 10px; }
.editor img { max-width: 100%; height: auto; cursor: pointer; }
.editor img.selected { outline: 3px solid var(--green); outline-offset: 2px; }
textarea.html-source { min-height: 340px; font-family: Consolas, monospace; font-size: 12px; border-radius: 0 0 10px 10px; }
.toolbar .img-tools { display: inline-flex; gap: 4px; align-items: center; }
.toolbar .img-tools[hidden] { display: none; }
.toolbar .img-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.drop-hint { margin-top: 6px; padding: 10px; border: 2px dashed var(--green); border-radius: 10px; color: var(--green-600);
  text-align: center; font-size: 12px; font-weight: 600; background: var(--green-soft); }

/* ------------------------------------------------------------------ preview */
.preview-meta { font-size: 13px; line-height: 1.8; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.preview-meta b { display: inline-block; width: 64px; color: var(--muted); font-weight: 600; }
iframe.preview { width: 100%; height: 540px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* ------------------------------------------------------------------ run */
.run-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.run-bar input { max-width: 340px; }
.run-panel { border-top: 4px solid var(--green); }
.result { margin-top: 16px; }
.info-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.info-list div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.info-list b { color: var(--navy); }

/* ------------------------------------------------------------------ tables */
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  padding: 9px 10px; border-bottom: 1px solid var(--line); background: var(--panel-2); position: sticky; top: 0; z-index: 3; }   /* stays above chips and their × while scrolling */
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:hover td { background: var(--panel-2); }
.table-wrap { max-height: calc(100vh - 360px); overflow: auto; }
#table.table-wrap { max-height: none; }   /* Tracking: every row at once, the page scrolls (no inner box) */
.empty { padding: 40px; text-align: center; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--tint); color: var(--muted); font-weight: 600; }
.tag.sample { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.tag.air { background: var(--blue-soft); color: var(--blue); }
.tag.ocean { background: var(--ocean-soft); color: var(--ocean); }
.tag.followup { background: var(--green-soft); color: var(--green-600); }
.tag.interested { background: var(--blue-soft); color: var(--blue); } .tag.later { background: var(--tint); color: var(--muted); }
a.button-link { display: inline-block; text-decoration: none; font-size: 12px; font-weight: 700; padding: 5px 11px;
  border-radius: 8px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; border: 1px solid var(--blue-line); }
a.button-link:hover { background: var(--blue); color: #fff; }
a.button-link.go { background: var(--green-soft); color: var(--green-600); border-color: var(--green-line); }
a.button-link.go:hover { background: var(--green-600); color: #fff; }
a.button-link.muted { background: var(--panel-2); color: var(--muted); border-color: var(--line); }

/* ------------------------------------------------------------------ campaign cards (stages per campaign) */
.campaign-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .campaign-list { grid-template-columns: 1fr; } }
.campaign-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel);
  display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, border-color .15s; }
.campaign-card:hover { border-color: var(--blue-line); box-shadow: var(--shadow); }
.campaign-card .head { display: flex; align-items: flex-start; gap: 10px; }
.campaign-card .name { font-weight: 700; font-size: 15px; color: var(--navy); }
.campaign-card .route { color: var(--text); font-size: 13px; margin-top: 2px; }
.campaign-card .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.campaign-card .total { margin-left: auto; text-align: right; }
.campaign-card .total b { display: block; font-size: 22px; color: var(--navy); line-height: 1; }
.campaign-card .total span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.campaign-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stage-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--tint); }
.stage-bar span { display: block; height: 100%; }
.stage-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.stage-chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.stage-chip b { font-variant-numeric: tabular-nums; }
.stage-chip.zero { opacity: .55; }
.st-queued { background: var(--st-queued); } .st-awaiting_reply { background: var(--st-awaiting); }
.st-hard_bounce { background: var(--st-hard); } .st-soft_bounce { background: var(--st-soft); } .st-later { background: var(--st-other); } .st-interested { background: var(--st-interested); }
.st-stale { background: var(--st-stale); } .st-converted { background: var(--st-converted); } .st-failed { background: var(--st-failed); }

/* ------------------------------------------------------------------ tracking */
.track-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .track-layout { grid-template-columns: 1fr; } }
.campaign-nav { max-height: calc(100vh - 230px); overflow: auto; }
.campaign-nav button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 12px 16px; background: var(--panel); }
.campaign-nav button:hover { background: var(--panel-2); }
.campaign-nav button.on { background: var(--blue-soft); box-shadow: inset 4px 0 0 var(--blue); }
.campaign-nav .n1 { font-weight: 700; color: var(--navy); display: flex; gap: 6px; align-items: center; }
.campaign-nav .n1 .count { margin-left: auto; font-weight: 600; color: var(--muted); font-size: 12px; }
.campaign-nav .n2 { font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 3px; }
.campaign-nav .stage-bar { margin-top: 8px; height: 5px; }
.campaign-nav button.followup-toggle { padding: 6px 16px 6px 28px; font-size: 12px; font-weight: 600; color: var(--blue); background: var(--panel-2); }
.campaign-nav .followup-toggle .caret { display: inline-block; width: 12px; }
.campaign-nav .followup-list button.followup-item { padding: 8px 16px 8px 40px; background: var(--panel-2); }
.campaign-nav .followup-list button.followup-item .n1 { font-weight: 600; font-size: 13px; }
.campaign-nav .followup-list button.followup-item.on { background: var(--blue-soft); box-shadow: inset 4px 0 0 var(--blue); }
.campaign-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 16px 18px; }
.campaign-head h1 { margin: 0; font-size: 20px; color: var(--navy); }
.campaign-head .route { font-size: 14px; margin-top: 4px; }
.campaign-head .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.campaign-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 16px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow);
  border-top: 4px solid var(--st-queued); }
.card .label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.card .value { font-size: 28px; font-weight: 700; margin-top: 4px; color: var(--navy); font-variant-numeric: tabular-nums; }
.card.awaiting { border-top-color: var(--st-awaiting); }
.card.hard { border-top-color: var(--st-hard); } .card.hard .value { color: var(--st-hard); }
.card.soft { border-top-color: var(--st-soft); } .card.soft .value { color: var(--warn); }
.card.later { border-top-color: var(--st-other); } .card.later .value { color: var(--st-other); }
.card.interested { border-top-color: var(--st-interested); } .card.interested .value { color: var(--st-interested); }
.card.stale { border-top-color: var(--st-stale); }
.card.converted { border-top-color: var(--st-converted); } .card.converted .value { color: var(--green-600); }
.card.failed { border-top-color: var(--st-failed); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; flex-wrap: wrap; }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: 13px 14px; font-weight: 700; color: var(--muted); }
.tabs button:hover { color: var(--navy); background: none; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.tabs button .n { background: var(--tint); border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-size: 12px; color: var(--text); }
.tabs button.on .n { background: var(--blue); color: #fff; }
.filters { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; align-items: center; }
.filters > * { max-width: 280px; }

/* ------------------------------------------------------------------ follow-up page */
.fu-grid { display: grid; grid-template-columns: 340px minmax(420px, 1fr) minmax(360px, 0.9fr); gap: 18px; align-items: start; }
@media (max-width: 1280px) { .fu-grid { grid-template-columns: 320px 1fr; } .fu-grid .preview-panel { grid-column: 1 / -1; } }
@media (max-width: 820px) { .fu-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--panel-2); }
.stat .label { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 22px; font-weight: 700; color: var(--navy); }
.stat.go { background: var(--green-soft); border-color: var(--green-line); }
.stat.go .value { color: var(--green-600); }

/* ------------------------------------------------------------------ agents & images page */
.sig-thumb { display: block; height: 44px; max-width: 170px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 4px; }
.sig-cell { min-width: 180px; }
td input.agent-name { min-width: 150px; }
td input.agent-email { min-width: 230px; }
.flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.flag-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--panel); }
.flag-card:hover { border-color: var(--blue-line); }
.flag-card img, .flag-missing { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--panel-2); border-radius: 6px; }
.flag-missing { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.flag-name { font-weight: 700; font-size: 13px; color: var(--navy); }
.flag-card button { align-self: flex-start; }

/* ------------------------------------------------------------------ campaign page: setup row + script/preview */
.setup-bar { padding: 4px 18px 14px; overflow: visible; }
.setup-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.setup-field { min-width: 200px; }
.setup-field.grow { flex: 1 1 220px; min-width: 180px; }
.setup-field.from-field, .setup-field.to-field { flex: 0 1 260px; min-width: 150px; }
.setup-field.sent-field { flex: 0 0 auto; min-width: 0; margin-left: auto; }   /* Sent by: always on the right */
@media (min-width: 900px) { .setup-row { flex-wrap: nowrap; } }
.setup-arrow { font-size: 22px; color: var(--green-600); font-weight: 700; padding-bottom: 6px; }
.to-picker { position: relative; }
.picker-button { width: 100%; text-align: left; font-weight: 600; padding: 9px 36px 9px 12px; position: relative; color: var(--text); }
.picker-button::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.picker-button.empty { color: var(--muted); font-weight: 500; }
.to-popover { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(420px, 90vw); background: var(--panel);
  border: 1px solid var(--blue-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 48, 90, .18); padding: 12px; }
.to-popover .country-list { max-height: 360px; min-height: 0; }
.to-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.to-chips:empty { display: none; }
.to-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green-600);
  border: 1px solid var(--green-line); border-radius: 999px; padding: 3px 4px 3px 11px; font-size: 12px; font-weight: 700; }
.to-chip button { border: 0; background: transparent; padding: 0 6px; color: var(--green-600); font-size: 14px; line-height: 1; border-radius: 999px; }
.to-chip button:hover { background: var(--panel); }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.work-grid[hidden], .panel[hidden], .segmented[hidden] { display: none !important; }   /* hidden wins over the grid / panel layout */
@media (max-width: 1100px) { .work-grid { grid-template-columns: 1fr; } }
.work-grid .preview-panel { position: sticky; top: 76px; }
@media (max-width: 1100px) { .work-grid .preview-panel { position: static; } }

/* narrow screens: header wraps instead of scrolling sideways */
header.top { flex-wrap: wrap; row-gap: 8px; }
@media (min-width: 1001px) { header.top { flex-wrap: nowrap; } header.top nav { flex-wrap: nowrap; } }   /* narrower: the header wraps, never a sideways scroll bar */
@media (max-width: 760px) {
  header.top { gap: 10px; }
  header.top .brand img { height: 28px; }
  header.top .brand .product span { display: none; }
  header.top nav a { padding: 6px 10px; }
  header.top .spacer { display: none; }
  .setup-field, .setup-field.grow, .setup-field.from-field, .setup-field.to-field, .setup-field.sent-field { flex: 1 1 100%; min-width: 0; margin-left: 0; }
  .setup-arrow { display: none; }
  .campaign-list { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ header: signed-in user */
.user-menu { display: flex; align-items: center; gap: 10px; padding-left: 12px; border-left: 1px solid var(--line);
  margin-left: auto; flex-shrink: 0; white-space: nowrap; }   /* always at the right */
.user-menu .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--green)); }
.user-menu .who { line-height: 1.2; }
.user-menu .who b { display: block; color: var(--navy); font-size: 13px; }
.user-menu .who span { color: var(--muted); font-size: 11px; }
.user-menu .signout { font-size: 12px; font-weight: 600; text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.user-menu .signout:hover { background: var(--hover); color: var(--bad); }
@media (max-width: 1400px) { .user-menu .who span { display: none; } }   /* keep the name, hide role + email */
@media (max-width: 1200px) { header.top { gap: 12px; padding-left: 18px; padding-right: 18px; } header.top nav a { padding: 8px 10px; }
  header.top .brand .product span { display: none; } }

/* ------------------------------------------------------------------ home */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center;
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 60%, var(--hero-c) 100%); border: 1px solid var(--line);
  border-radius: 22px; padding: 36px 40px; box-shadow: var(--shadow); }
.hero-logo { height: 46px; display: block; margin-bottom: 14px; }
.hero h1 { margin: 0; font-size: 44px; line-height: 1.05; color: var(--navy); letter-spacing: -.01em; }
.hero h1::after { content: ""; display: block; width: 72px; height: 5px; border-radius: 5px; margin-top: 12px;
  background: linear-gradient(90deg, var(--blue), var(--green)); }
.hero-line { font-size: 17px; line-height: 1.55; color: var(--text-2); margin: 16px 0 0; max-width: 560px; }
.hero .hello { color: var(--muted); font-size: 12px; margin: 16px 0 0; }
.hero-art svg { width: 100%; height: auto; display: block; border-radius: 26px; box-shadow: 0 18px 40px rgba(20, 48, 90, .22); }
a.cta { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green)); box-shadow: 0 4px 14px rgba(95, 154, 36, .35); }
a.cta:hover { background: linear-gradient(135deg, #4f8420, var(--green-600)); }
a.cta.ghost { background: var(--panel); color: var(--blue); border: 1px solid var(--blue-line); box-shadow: none; }
a.cta.ghost:hover { background: var(--blue-soft); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 24px; } .hero h1 { font-size: 34px; } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; font-size: 13px;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 8px; }
.step:nth-child(even) .n { background: var(--green-soft); color: var(--green-600); }
.step b { display: block; color: var(--navy); font-size: 15px; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 22px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat-card b { display: block; font-size: 28px; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-card small { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------------ stop + stopped */
button.danger { color: var(--bad); border-color: var(--danger-line); background: var(--panel); }
button.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.tag.stopped { background: var(--bad-soft); color: var(--bad); }
.campaign-card.stopped { background: var(--panel-2); }
.campaign-card.stopped .stage-bar { opacity: .55; }

/* ------------------------------------------------------------------ setup */
.section-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.section-tabs button { border-radius: 999px; padding: 8px 16px; }
.section-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.setup-section[hidden] { display: none; }
.flag-cell img { width: 54px; height: 36px; object-fit: contain; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; display: block; margin-bottom: 3px; }
.flag-missing.small { display: inline-grid; place-items: center; width: 54px; height: 36px; font-size: 11px; border: 1px dashed var(--line); border-radius: 4px; }
tr.inactive-row td { color: var(--muted-2); }
.nowrap { white-space: nowrap; }
.script-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.script-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line); }
.script-chip:hover { background: var(--blue); color: #fff; }
.script-chip.missing { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.script-chips.versions { margin-top: 6px; }
.script-chip.version { background: var(--green-soft); color: var(--green-600); border-color: var(--green-line); }
.script-chip.version:hover { background: var(--green-600); color: #fff; }
.script-chip.add { background: var(--panel); color: var(--blue); border-style: dashed; }
/* the × on an added script (Setup → Languages & scripts) */
.chip-wrap { position: relative; display: inline-flex; }
.chip-x { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--danger-line, #f1b7b7); background: var(--panel); color: var(--bad, #c62828);
  font-size: 13px; line-height: 1; cursor: pointer; }
.chip-x:hover, .chip-x:focus { background: var(--bad, #c62828); color: #fff; border-color: var(--bad, #c62828); }
.day-picks { display: flex; gap: 10px; flex-wrap: wrap; }
.day-picks label { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
dialog.dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, 94vw); box-shadow: 0 24px 60px rgba(20, 48, 90, .3); }
dialog.dialog.wide { width: min(900px, 96vw); }
dialog.dialog::backdrop { background: rgba(20, 48, 90, .35); }
dialog.dialog form { padding: 20px 22px; max-height: 88vh; overflow: auto; }
dialog.dialog h3 { margin: 0 0 4px; color: var(--navy); }
.dialog-actions { margin-top: 18px; }

/* ------------------------------------------------------------------ sign-in */
body.login-body { display: grid; place-items: center; padding: 24px; min-height: 100vh;
  background: linear-gradient(135deg, #14305a 0%, #195d9c 55%, #5f9a24 130%); }
.login-wrap { width: 100%; max-width: 440px; padding: 0; margin: 0; }
.login-card { background: var(--panel); border-radius: 22px; padding: 34px 32px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.login-logo { height: 44px; display: block; margin: 0 auto 10px; }
.login-card h1 { text-align: center; margin: 0; color: var(--navy); font-size: 30px; }
.login-tag { text-align: center; color: var(--muted); line-height: 1.5; margin: 8px 0 22px; }
.ms-button { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 700;
  color: var(--text); border: 1px solid var(--input-line); border-radius: 12px; padding: 12px; background: var(--panel); }
.ms-button:hover { background: var(--panel-2); border-color: var(--blue); }
.ms-button.disabled { opacity: .45; pointer-events: none; }
.login-message { border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.login-message.error { background: var(--bad-soft); color: var(--bad); }
.login-message.info { background: var(--green-soft); color: var(--green-600); }
.divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; color: var(--muted); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------------ reply classifier */
.st-needs_review { background: var(--st-review); } .st-other_reply { background: var(--st-other); }
.card.review { border-top-color: var(--st-review); } .card.review .value { color: var(--st-review); }
.card.other { border-top-color: var(--st-other); }
.reply-text { font-style: italic; color: var(--text); max-width: 520px; line-height: 1.45; }
.move-to { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.move-to select { width: auto; padding: 4px 8px; font-size: 12px; }
.try-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--panel-2); max-width: 620px; }
.prob { display: grid; grid-template-columns: 130px 1fr 44px; gap: 8px; align-items: center; font-size: 12px; margin-top: 6px; }
.prob i { display: block; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.prob b { text-align: right; font-variant-numeric: tabular-nums; }
.to-chip.cue { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); margin: 0 4px 6px 0; }
.to-chip.cue button { color: var(--blue); }
textarea#try-text { max-width: 620px; font: inherit; }

/* tracking rows: short line + details on demand */
table.rows tr.details-row td { background: var(--panel-2); border-bottom: 1px solid var(--line); }
table.rows tr.details-row:hover td { background: var(--panel-2); }
dl.details { grid-template-columns: 120px 1fr; padding: 4px 6px; }
table.rows select { width: auto; min-width: 130px; max-width: 170px; padding: 5px 8px; font-size: 13px; }

.reply-mail { margin: 8px 6px 4px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; background: var(--panel); }
.reply-mail .reply-head { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.reply-mail .reply-body { padding: 10px 12px; white-space: pre-wrap; font-size: 13px; line-height: 1.5; max-height: 360px; overflow: auto; }

/* home: running campaigns */
.running { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 18px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft); }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.running .stats { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.reply-mail .reply-translation { padding: 10px 12px; border-top: 1px dashed var(--line); background: var(--green-tint); font-size: 13px; white-space: pre-wrap; }

/* ------------------------------------------------------------------ weekly report + reasons */
.st-needs_review { background: var(--st-review); }
.card.later .note, .card .note { font-size: 11px; }
.week-switch { display: flex; align-items: center; gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
.week-switch select { width: auto; min-width: 240px; }
.week-table tbody tr { cursor: pointer; }
.week-table tr.on td { background: var(--blue-soft); }
.tag.running { background: var(--green-soft); color: var(--green-600); }
.tag.finished { background: var(--tint); color: var(--muted); }
.reason { display: inline-block; font-size: 12px; font-weight: 600; color: var(--navy); }
.reason .when { display: block; font-weight: 500; color: var(--muted); }
#to-country.unset { color: var(--muted); }

/* ------------------------------------------------------------------ create campaign: target offices + sources */
.plan-panel { margin-top: 18px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.plan-stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.plan-stat span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.plan-stat b { display: block; font-size: 24px; color: var(--navy); font-variant-numeric: tabular-nums; }
.plan-stat small { color: var(--muted); font-size: 11px; }
.plan-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
/* Target partners: one box per source with its partners (head offices) and contacts (head + branch) */
.plan-by-source { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.source-block { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; color: var(--muted); }
.source-block b { color: var(--navy); font-size: 18px; font-variant-numeric: tabular-nums; margin-right: 3px; }
.source-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--navy); }
.source-chip b { font-variant-numeric: tabular-nums; }
.source-chip.wca { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.source-chip.jct { background: var(--green-soft); color: var(--green-600); border-color: transparent; }
.source-chip.both { background: var(--both-soft); color: var(--both); border-color: transparent; }


/* ------------------------------------------------------------------ dark mode
   data-theme="dark" (header button) or the computer's dark mode when nothing was chosen. */
:root[data-theme="dark"] {
  --navy: #e3ebf6; --blue: #5aa2e8; --blue-600: #3d8ad6; --blue-soft: #16304d; --blue-line: #2b4c70;
  --green: #9ccf55; --green-600: #8cc24a; --green-soft: #1d3014; --green-line: #3a5a22;
  --bg: #0d1520; --panel: #151f2d; --text: #dce4ee; --muted: #93a3b8; --line: #263548;
  --warn: #f0b45a; --warn-soft: #36290f; --bad: #f47c7c; --bad-soft: #3a1a1c;
  --panel-2: #1a2637; --hover: #1f2d41; --tint: #223146; --input-line: #33465e; --text-2: #b9c6d6; --muted-2: #6b7c92;
  --bg-top: #122033; --hero-a: #16233a; --hero-b: #152435; --hero-c: #1a2a1c;
  --ocean-soft: #123331; --ocean: #5cc9bd; --both-soft: #2a2145; --both: #b9a0fa; --green-tint: #1a2716;
  --disabled: #3a4757; --disabled-go: #3c4a33; --danger-line: #6b2b2b; --warn-line: #6b5427; --chip-line: #3d6894;
  --st-queued: #7d8ca0; --st-awaiting: #4a90d9; --st-stale: #8a97a8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --navy: #e3ebf6; --blue: #5aa2e8; --blue-600: #3d8ad6; --blue-soft: #16304d; --blue-line: #2b4c70;
  --green: #9ccf55; --green-600: #8cc24a; --green-soft: #1d3014; --green-line: #3a5a22;
  --bg: #0d1520; --panel: #151f2d; --text: #dce4ee; --muted: #93a3b8; --line: #263548;
  --warn: #f0b45a; --warn-soft: #36290f; --bad: #f47c7c; --bad-soft: #3a1a1c;
  --panel-2: #1a2637; --hover: #1f2d41; --tint: #223146; --input-line: #33465e; --text-2: #b9c6d6; --muted-2: #6b7c92;
  --bg-top: #122033; --hero-a: #16233a; --hero-b: #152435; --hero-c: #1a2a1c;
  --ocean-soft: #123331; --ocean: #5cc9bd; --both-soft: #2a2145; --both: #b9a0fa; --green-tint: #1a2716;
  --disabled: #3a4757; --disabled-go: #3c4a33; --danger-line: #6b2b2b; --warn-line: #6b5427; --chip-line: #3d6894;
  --st-queued: #7d8ca0; --st-awaiting: #4a90d9; --st-stale: #8a97a8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
  }
}
/* what can't be a colour swap: the Skyfer logo is dark text on transparent, filled navy buttons */
:root[data-theme="dark"] header.top .brand img, :root[data-theme="dark"] .hero-logo,
:root[data-theme="dark"] .login-logo { background: #fff; border-radius: 8px; padding: 3px 8px; }
:root[data-theme="dark"] .section-tabs button.on { background: var(--blue); border-color: var(--blue); }
:root[data-theme="dark"] header.top nav a.active, :root[data-theme="dark"] .segmented button.on,
:root[data-theme="dark"] .tabs button.on .n { background: #2f78c4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) header.top .brand img, :root:not([data-theme="light"]) .hero-logo,
  :root:not([data-theme="light"]) .login-logo { background: #fff; border-radius: 8px; padding: 3px 8px; }
  :root:not([data-theme="light"]) .section-tabs button.on { background: var(--blue); border-color: var(--blue); }
  :root:not([data-theme="light"]) header.top nav a.active, :root:not([data-theme="light"]) .segmented button.on,
  :root:not([data-theme="light"]) .tabs button.on .n { background: #2f78c4; }
}
.theme-toggle { border-radius: 999px; padding: 6px 10px; font-size: 15px; line-height: 1; }

/* ------------------------------------------------------------------ tracking: chips, selection, actions */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chip-row:empty { display: none; }
.chip-row button { border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; }
.chip-row button .n { margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-row button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-row button.on .n { color: #fff; }
.chip-row button.zero { opacity: .5; }
.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 8px 12px;
  border: 1px solid var(--blue-line); background: var(--blue-soft); border-radius: 10px; }
.action-bar .count { font-weight: 700; color: var(--navy); }
.action-bar a { font-size: 12px; cursor: pointer; }
.action-bar select, .action-bar input { width: auto; padding: 5px 8px; font-size: 13px; }
.again-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
table.rows td.sel, table.rows th.sel { width: 28px; }
table.rows .row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.action-bar[hidden], .again-form[hidden] { display: none; }


/* ------------------------------------------------------------------ reports: wins */
.wins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .wins-grid { grid-template-columns: 1fr; } }
.win-bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; align-items: center; gap: 10px; width: 100%;
  text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 7px 10px; margin-bottom: 6px; }
.win-bar .name { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-bar .track { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.win-bar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green)); border-radius: 999px; }
.win-bar .n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.win-bar.on { border-color: var(--green-600); box-shadow: 0 0 0 2px var(--green-soft); }

/* ------------------------------------------------------------------ tracking: one line of buttons, conversation */
table.rows .row-actions { flex-wrap: nowrap; }
table.rows .row-actions button { white-space: nowrap; padding: 5px 10px; }
.country-name { font-weight: 700; color: var(--navy); padding: 8px 4px; }
.conversation { display: flex; flex-direction: column; gap: 8px; margin: 6px 4px 4px; }
.conv-mail { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.conv-mail.sent { border-left: 4px solid var(--blue); }
.conv-mail.received { border-left: 4px solid var(--green-600); }
.conv-head { padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); border-radius: 10px 10px 0 0; }
.conv-subject { font-size: 12px; color: var(--muted); margin-top: 2px; }
.conv-body { padding: 10px 12px; white-space: pre-wrap; font-size: 13px; line-height: 1.5; max-height: 360px; overflow: auto; }
.conv-note { font-size: 12px; color: var(--muted); padding: 2px 12px 8px; }

/* ------------------------------------------------------------------ help: assistant panel + guide page */
.help-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; border-radius: 999px; padding: 10px 16px;
  background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 6px 20px rgba(20, 48, 90, .25); font-weight: 700; }
.help-fab:hover { background: var(--blue-600); }
.help-panel { position: fixed; right: 18px; bottom: 70px; z-index: 40; width: min(400px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 48px rgba(20, 48, 90, .25); overflow: hidden; }
.help-panel[hidden] { display: none; }
.help-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--blue-soft), var(--green-soft)); color: var(--navy); }
.help-head .spacer { flex: 1; }
.help-close { border: 0; background: transparent; font-size: 20px; line-height: 1; padding: 0 4px; color: var(--muted); }
.help-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.help-msg { max-width: 92%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.help-msg p { margin: 0 0 6px; } .help-msg p:last-child { margin-bottom: 0; }
.help-msg ol { margin: 4px 0 6px 18px; padding: 0; }
.help-msg.you { align-self: flex-end; background: var(--blue); color: #fff; }
.help-msg.bot { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); }
.help-answer.more { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }
.help-title { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.help-links { font-size: 12px; margin-top: 4px; }
.help-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.help-chips button { font-size: 12px; padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.help-ask { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.help-ask input { flex: 1; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } .guide-toc { position: static; } }
.guide-toc { position: sticky; top: 80px; padding: 12px 14px; max-height: calc(100vh - 100px); overflow: auto; }
.guide-toc a { display: block; font-size: 13px; padding: 3px 0; text-decoration: none; }
.toc-chapter { font-weight: 700; color: var(--navy); margin-top: 10px; font-size: 13px; }
.guide { padding: 6px 22px 22px; }
.guide h2 { color: var(--navy); margin: 22px 0 6px; font-size: 19px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.guide h3 { color: var(--navy); margin: 16px 0 4px; font-size: 15px; }
.guide-section { scroll-margin-top: 80px; line-height: 1.6; }
.guide-section p { margin: 0 0 8px; }
.guide-hits { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }

/* header: menu items and the brand never wrap (keeps the bar one line high) */
header.top nav a, header.top .brand .product b, header.top .brand .product span { white-space: nowrap; }

/* Create campaign: the campaign just created, shown under Recent campaigns after the page reloads */
.created-note { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: var(--green-soft, #e8f5e9);
  border: 1px solid var(--green-600, #2e7d32); }
.campaign-card.just-created { box-shadow: 0 0 0 3px var(--green-600, #2e7d32); }

/* Create campaign: the Script list, always opening downwards under its box */
.picker { position: relative; }
.picker-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink, inherit);
  font: inherit; font-weight: 400; }
.picker-button:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.picker-caret { color: var(--muted); }
.picker-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; max-height: 340px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(16, 38, 70, .18);
  padding: 4px 0; }
.picker-group { padding: 8px 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.picker-option { display: block; width: 100%; text-align: left; border: 0; border-radius: 0; padding: 7px 12px 7px 20px;
  background: none; color: inherit; font: inherit; font-weight: 400; }
.picker-option:hover, .picker-option:focus { background: var(--blue-soft); outline: none; }
.picker-option.on { color: var(--blue); font-weight: 700; }

/* Campaign page: follow-up 1 and 2 side by side (stacked on a phone) */
.followup-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.followup-picks select { width: 100%; }
.field-hint { text-transform: none; font-weight: 400; letter-spacing: 0; }
@media (max-width: 640px) { .followup-picks { grid-template-columns: 1fr; } }

/* LaneReach automated: weekly campaigns under their master, their follow-ups one step further in */
.followup-item.depth-2 { margin-left: 18px; border-left: 2px solid var(--line, #d8dee6); }
.followup-item.weekly .n1 .tag { margin-right: 4px; }
/* Edit scripts dialog (stopped campaign) */
.scripts-dialog { border: 1px solid var(--line, #d8dee6); border-radius: 12px; padding: 20px; width: min(560px, calc(100vw - 32px));
  background: var(--panel, #fff); color: inherit; }
.scripts-dialog::backdrop { background: rgba(10, 20, 30, .45); }
.scripts-dialog h2 { margin: 0 0 6px; font-size: 18px; }
.scripts-dialog select { width: 100%; }
.panel.future .route { margin-bottom: 4px; }
/* one more menu item (Future campaigns): below 1150px the name next to the avatar goes, the avatar stays */
@media (max-width: 1150px) and (min-width: 761px) { .user-menu .who { display: none; } header.top nav a { padding: 8px 8px; } header.top { gap: 10px; } }

/* Create campaign: follow-up 1 and 2 previews side by side (stacked on smaller screens) */
.fu-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fu-previews .preview { height: 420px; }
.fu-title { margin: 0 0 6px; font-size: 15px; }
.fu-title span { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
@media (max-width: 1100px) { .fu-previews { grid-template-columns: 1fr; } }
/* narrower windows: the header badge says just LIVE / DRY RUN (the full text is its tooltip) */
@media (max-width: 1150px) { header.top .badge-more { display: none; } }

/* Create page in Edit mode (a stopped campaign) */
.edit-banner { margin: 0 0 14px; }

/* Setup → Markets: its countries as chips; Add / Edit market: tick the countries, grouped by their market now */
.country-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 520px; }
.country-chips .chip { cursor: default; font-size: 12px; padding: 2px 8px; }
.country-filter { width: 100%; margin-bottom: 6px; }
.country-picks { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.country-picks .pick-group + .pick-group { margin-top: 8px; }
.country-picks .pick-head { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.country-picks label { display: inline-flex; align-items: center; gap: 5px; width: 48%; font-size: 13px; padding: 2px 0; }
.country-picks label[hidden] { display: none; }
@media (max-width: 560px) { .country-picks label { width: 100%; } }

/* ------------------------------------------------------------------ Reports dashboard */
.report-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 14px 18px; }
.report-picker { display: flex; align-items: center; gap: 6px; }
.report-picker select { min-width: 210px; }
.report-filter { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.report-filter span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.report-filters #tz { margin: 0 0 6px auto; }
.report-scope { margin: 22px 2px 10px; font-size: 20px; color: var(--navy); }
.report-scope span { color: var(--muted); font-weight: 500; font-size: 15px; }
.report-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; box-shadow: var(--shadow);
  border-top: 3px solid var(--line); }
.kpi span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kpi b { display: block; font-size: 30px; line-height: 1.15; margin-top: 6px; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.kpi-campaigns_air, .kpi-campaigns_ocean { border-top-color: var(--blue); }
.kpi-running_air, .kpi-running_ocean { border-top-color: var(--blue-line); }
.kpi-contacts { border-top-color: var(--navy); }
.kpi-suppressed { border-top-color: var(--bad); }
.kpi-pricing_leads { border-top-color: var(--green-600); }
.report-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.report-source { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel-2); }
.report-source dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.report-source dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.report-source dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.report-table th.num, .report-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-table td.num { position: relative; }
.report-table tr.pick { cursor: pointer; }
.report-table td.muted { color: var(--muted); }
.report-table tr.source-row td { background: var(--panel-2); border-bottom-color: var(--panel-2); font-size: 12px; padding-top: 6px; padding-bottom: 6px; }
.report-table tr.source-row td:first-child { padding-left: 34px; }
.report-table button.link { background: none; border: 0; padding: 0 2px; color: var(--navy); cursor: pointer; font: inherit; }
.report-table button.link:hover { color: var(--blue); text-decoration: underline; }
.report-table button.toggle { width: 22px; color: var(--muted); }

/* Reports by branch: one colour per branch (categorical, validated for colour-blind separation in both modes;
   light mode always shows labels and numbers next to the colour) */
:root { --br-1: #2a78d6; --br-2: #eb6834; --br-3: #1baf7a; --br-4: #eda100; --br-5: #e87ba4; --br-6: #008300; --br-7: #4a3aa7; }
:root[data-theme="dark"] { --br-1: #3987e5; --br-2: #d95926; --br-3: #199e70; --br-4: #c98500; --br-5: #d55181; --br-6: #008300; --br-7: #9085e9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --br-1: #3987e5; --br-2: #d95926; --br-3: #199e70; --br-4: #c98500; --br-5: #d55181; --br-6: #008300; --br-7: #9085e9; }
}
.report-page { --accent: var(--blue); }
.branch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.branch-tab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
  border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: var(--shadow); }
.branch-tab:hover { border-color: var(--tab); }
.branch-tab.on { background: var(--tab); border-color: var(--tab); color: #fff; }
.branch-tab .dot, .branch-chip .dot, .hbar-label .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tab); display: inline-block; flex: none; }
.branch-tab.on .dot { background: #fff; }
.branch-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.report-filter-panel { border-top: 3px solid var(--accent); }
.report-scope { border-left: 5px solid var(--accent); padding-left: 10px; }
.report-page .kpi { border-top-color: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--panel)), var(--panel) 70%); }
.report-page .kpi-suppressed { border-top-color: var(--bad); }
.report-page .kpi-pricing_leads { border-top-color: var(--green-600); }
.report-page .kpi-pricing_leads b { color: var(--green-600); }
.report-visuals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1000px) { .report-visuals { grid-template-columns: 1fr; } }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 190px; height: 190px; flex: none; }
.donut circle[data-tip] { cursor: default; }
.donut-total { font-size: 34px; font-weight: 800; fill: var(--navy); text-anchor: middle; }
.donut-label { font-size: 11px; fill: var(--muted); text-anchor: middle; text-transform: uppercase; letter-spacing: .05em; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; display: grid; gap: 6px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto 40px; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend b { color: var(--navy); font-variant-numeric: tabular-nums; }
.legend small { color: var(--muted); text-align: right; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 56px; align-items: center; gap: 10px; font-size: 13px; padding: 2px 4px; border-radius: 6px; }
.hbar:hover { background: var(--hover); }
.hbar-label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { display: flex; gap: 2px; height: 16px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 0; }
.hbar-fill.ocean { opacity: .5; background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255, 255, 255, .45) 4px 6px); }
.hbar b { text-align: right; color: var(--navy); font-variant-numeric: tabular-nums; }
.hbar-key { display: flex; gap: 16px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.hbar-key .swatch { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: var(--muted); margin-right: 6px; vertical-align: middle; }
.hbar-key .swatch.ocean { opacity: .5; background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(255, 255, 255, .6) 3px 5px); }
.lead-cell { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; width: 100%; }
.lead-bar { display: inline-block; height: 8px; border-radius: 4px; max-width: 80px; min-width: 0; }
.tag.running { background: var(--green-soft); color: var(--green-600); }
.report-page .chart-tip, .chart-tip { position: absolute; z-index: 50; background: var(--navy); color: var(--panel); font-size: 12px; padding: 5px 9px;
  border-radius: 8px; pointer-events: none; box-shadow: var(--shadow); white-space: nowrap; }
.report-visuals[hidden], .report-page .panel[hidden] { display: none; }
.branch-tab .count { font-weight: 600; opacity: .75; font-size: 12px; }

/* Future campaigns: the next campaign's name and day */
.next-campaign { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: var(--panel-2); }
.next-row { flex-wrap: wrap; gap: 8px; }
.next-row input[type=text] { flex: 1 1 260px; }
.next-row input[type=date] { flex: 0 0 170px; }

/* Setup → Agents: click a signature card to see it at full size */
.sig-open { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }
.sig-open:hover .sig-thumb, .sig-open:focus-visible .sig-thumb { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
dialog.dialog.sig-view { width: min(800px, 94vw); padding: 20px 22px; box-sizing: border-box; }
.sig-view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sig-view-head h3 { margin: 0; }
.sig-view img { display: block; width: 100%; height: auto; margin: 12px 0 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* Agent quota (Setup) and the quota warnings on Create campaign */
.quota-meter { display: inline-block; width: 120px; height: 8px; border-radius: 4px; background: var(--panel-2); vertical-align: middle; overflow: hidden; border: 1px solid var(--line); }
.quota-meter > span { display: block; height: 100%; background: var(--green-600); }
.quota-meter.high > span { background: var(--warn); }
.quota-meter.full > span { background: var(--bad); }
.quota-cell { white-space: nowrap; }
.quota-cell span:last-child { margin-left: 6px; font-variant-numeric: tabular-nums; }
.quota-warn { display: inline-block; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 11px; border-radius: 999px; padding: 1px 8px; }
tr.quota-full td { background: color-mix(in srgb, var(--bad-soft) 55%, transparent); }
.quota-org { display: block; max-width: 420px; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; background: var(--panel-2); }
.quota-org.over { border-color: var(--bad); }
.quota-org b { font-size: 28px; color: var(--navy); font-variant-numeric: tabular-nums; }
.quota-org .quota-meter { width: 100%; margin-top: 6px; height: 10px; }
.quota-label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.quota-of { color: var(--muted); }
.quota-banner { margin-top: 10px; }

tr.agent-off td { opacity: .55; }

/* Create campaign: how many days the first emails take with the agents ticked */
.days-note { margin-top: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.days-note.longer { border-color: var(--warn); background: var(--warn-soft); }
.days-note > b { font-size: 18px; color: var(--navy); margin-right: 6px; }
.days-note > span:last-of-type { margin-left: 8px; color: var(--text-2); }

.running-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--text-2); font-size: 13px; }

/* Setup → Name check */
.name-check input { flex: 1 1 320px; }
.name-result { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--panel-2); }
.name-result.is-name { border-color: var(--green-600); }
.name-result.no-name { border-color: var(--warn); }
.name-email { font-size: 18px; font-weight: 700; color: var(--navy); }
.name-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .name-lists { grid-template-columns: 1fr; } }
.name-add { gap: 6px; margin-bottom: 8px; }
.word-chip { display: inline-flex; align-items: center; gap: 4px; }
.chip-x { border: 0; background: none; padding: 0 2px; cursor: pointer; color: var(--muted); font-size: 14px; line-height: 1; }
.chip-x:hover { color: var(--bad); }

/* LaneReach's own pop-ups (dialog.js): a card in the centre, like the Unsubscribe page */
dialog.lr-dialog { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--panel);
  color: var(--text); box-shadow: 0 24px 60px rgba(20, 48, 90, .28); animation: lr-pop .16s ease-out; }
dialog.lr-dialog::backdrop { background: rgba(20, 48, 90, .38); backdrop-filter: blur(2px); }
@keyframes lr-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
dialog.lr-dialog form { padding: 28px 26px 22px; text-align: center; max-height: 88vh; overflow: auto; }
.lr-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--blue); background: var(--blue-soft); }
.lr-dialog.lr-kind-ok .lr-icon { color: var(--green-600); background: var(--green-soft); }
.lr-dialog.lr-kind-danger .lr-icon, .lr-dialog.lr-kind-error .lr-icon { color: var(--bad); background: var(--bad-soft); }
.lr-dialog h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; color: var(--navy); overflow-wrap: anywhere; }
.lr-dialog p { margin: 8px 0 0; line-height: 1.55; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.lr-image { display: block; max-width: 100%; margin: 16px auto 0; border-radius: 8px; border: 1px solid var(--line); }
.lr-input { width: 100%; margin-top: 16px; text-align: left; }
.lr-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.lr-actions button { min-width: 110px; padding: 10px 20px; }
.lr-actions .lr-ok { color: #fff; background: var(--blue); border-color: var(--blue); }
.lr-actions .lr-ok:hover { background: var(--blue-600); }
.lr-dialog.lr-kind-danger .lr-actions .lr-ok { background: var(--bad); border-color: var(--bad); }
.lr-dialog.lr-kind-ok .lr-actions .lr-ok { background: var(--green-600); border-color: var(--green-600); }
dialog.lr-dialog.lr-has-image { width: min(640px, calc(100vw - 32px)); }
.lr-actions button:focus-visible { outline: 3px solid var(--blue-line); outline-offset: 2px; }

/* Reports → Download PDF */
.report-pdf { margin-bottom: 2px; }
.report-filters #tz + .report-pdf { margin-left: 0; }
.pdf-head { display: flex; align-items: center; gap: 14px; padding: 4px 2px 14px; margin-bottom: 8px; border-bottom: 3px solid var(--green); }
.pdf-head[hidden] { display: none; }
.pdf-head img { height: 42px; }
.pdf-head b { display: block; font-size: 20px; color: var(--navy); }
.pdf-head span { color: var(--muted); font-size: 14px; }
.pdf-head small { margin-left: auto; color: var(--muted); }
.pdf-export .page-title { display: none; }
.pdf-export .table-wrap { overflow: visible !important; max-height: none !important; }

/* Agent quota colours: red over 90% of the daily limit, orange over 50%, green otherwise */
.q-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums;
  border-radius: 999px; padding: 2px 10px; font-size: 13px; border: 1px solid transparent; }
.q-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.q-red { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.q-orange { color: #c05621; background: #fff1e6; border-color: #f6c9a4; }
.q-green { color: var(--green-600); background: var(--green-soft); border-color: var(--green-line); }
:root[data-theme="dark"] .q-orange { color: #f6ad55; background: #3a2412; border-color: #7a4a1e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .q-orange { color: #f6ad55; background: #3a2412; border-color: #7a4a1e; } }
.quota-meter.red > span { background: var(--bad); }
.quota-meter.orange > span { background: #dd6b20; }
.quota-meter.green > span { background: var(--green-600); }
.q-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.q-filter { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.q-filter.on { outline: 2px solid var(--navy); outline-offset: 1px; }
.q-filter b { font-variant-numeric: tabular-nums; }

/* Form pop-ups (Add agent, Add branch, Edit scripts, signature viewer): the same card as the other pop-ups */
dialog.dialog, .scripts-dialog { border: 0; border-radius: 18px; background: var(--panel); color: var(--text);
  box-shadow: 0 24px 60px rgba(20, 48, 90, .28); animation: lr-pop .16s ease-out; }
dialog.dialog::backdrop, .scripts-dialog::backdrop { background: rgba(20, 48, 90, .38); backdrop-filter: blur(2px); }
dialog.dialog form { padding: 24px 26px 22px; }
dialog.dialog h3, .scripts-dialog h2 { font-size: 19px; color: var(--navy); margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 3px solid var(--green); }
.scripts-dialog { padding: 24px 26px 22px; }
.dialog-actions, .scripts-dialog .row:last-child { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.dialog-actions button { min-width: 110px; padding: 10px 20px; }

/* Setup -> Countries & flags: public holidays status */
.holiday-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 2px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); font-size: 13px; color: var(--muted); }
.holiday-status:empty { display: none; }
.holiday-status .small { margin-left: auto; }

/* ================================================================== Reports: polished look (12 Oct 2026) */
/* header band: Skyfer navy with the branch colour, the view shown under the title */
.report-page .page-title { position: relative; overflow: hidden; display: block; padding: 22px 26px 20px; margin-bottom: 16px;
  border-radius: 20px; color: #fff; box-shadow: 0 10px 30px rgba(20, 48, 90, .18);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 70%, transparent) 0%, transparent 55%),
              linear-gradient(135deg, #14305a 0%, #195d9c 100%); }
.report-page .page-title::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 192, 68, .35), transparent 70%); pointer-events: none; }
.report-page .page-title h1 { color: #fff; font-size: 26px; letter-spacing: .01em; }
.report-page .page-title p { color: rgba(255, 255, 255, .82); margin: 6px 0 0; max-width: 760px; }
.report-page .page-title .hero-scope { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-weight: 600; font-size: 13px; }
.report-page .page-title .hero-scope i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(138, 192, 68, .3); }

/* branch tabs: soft pills with the branch colour */
.report-page .branch-tabs { gap: 10px; }
.report-page .branch-tab { padding: 8px 16px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.report-page .branch-tab:hover { transform: translateY(-1px); }
.report-page .branch-tab.on { box-shadow: 0 6px 16px color-mix(in srgb, var(--tab) 40%, transparent); }

/* filter bar */
.report-page .report-filter-panel { border-top: 0; border-radius: 16px; position: relative; overflow: hidden; }
.report-page .report-filter-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--green)); }
.report-page .report-pdf { box-shadow: 0 6px 14px rgba(25, 93, 156, .25); }

/* section title */
.report-page .report-scope { border-left: 0; padding-left: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 22px; }
.report-page .report-scope::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(var(--accent), var(--green)); align-self: center; }

/* number cards */
.report-page .report-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.report-page .kpi { position: relative; border: 1px solid var(--line); border-top: 0; border-radius: 18px; padding: 16px 16px 14px;
  background: var(--panel); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, box-shadow .15s; --k: var(--accent); }
.report-page .kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 48, 90, .12); }
.report-page .kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--k); }
.report-page .kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: color-mix(in srgb, var(--k) 10%, transparent); }
.report-page .kpi-campaigns_air { --k: #2a78d6; } .report-page .kpi-campaigns_ocean { --k: #0e8a8a; }
.report-page .kpi-running_air { --k: #4a90d9; } .report-page .kpi-running_ocean { --k: #1baf7a; }
.report-page .kpi-contacts { --k: #4a3aa7; } .report-page .kpi-suppressed { --k: var(--bad); } .report-page .kpi-pricing_leads { --k: var(--green-600); }
.report-page .kpi .kpi-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.report-page .kpi .kpi-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  color: var(--k); background: color-mix(in srgb, var(--k) 14%, var(--panel)); }
.report-page .kpi .kpi-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.report-page .kpi span.kpi-name { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; }
.report-page .kpi b { position: relative; z-index: 1; font-size: 34px; font-weight: 800; margin-top: 10px; color: var(--navy); letter-spacing: -.01em; }
.report-page .kpi-pricing_leads b { color: var(--green-600); }
.report-page .kpi-suppressed b { color: var(--bad); }
.report-page .kpi small { position: relative; z-index: 1; min-height: 16px; }
.report-page .kpi .live { display: inline-flex; align-items: center; gap: 5px; }
.report-page .kpi .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1baf7a; animation: lr-pulse 1.6s infinite; }
@keyframes lr-pulse { 0% { box-shadow: 0 0 0 0 rgba(27, 175, 122, .5); } 70% { box-shadow: 0 0 0 7px rgba(27, 175, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(27, 175, 122, 0); } }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.delta.up { color: var(--green-600); background: var(--green-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta.flat { color: var(--muted); background: var(--panel-2); }
.delta + .vs { color: var(--muted); font-size: 11px; margin-left: 4px; }

/* panels */
.report-page > .panel, .report-page .report-visuals .panel { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.report-page .panel > h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; padding: 16px 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.report-page .panel > h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(var(--accent), var(--green)); }
.report-page .panel > h2 .hint { margin-left: auto; }
.report-page .panel > .body { padding: 18px 20px 20px; }

/* donut + legend */
.report-page .donut { width: 210px; height: 210px; filter: drop-shadow(0 6px 12px rgba(20, 48, 90, .12)); }
.report-page .donut circle[data-tip] { transition: stroke-width .15s; }
.report-page .donut circle[data-tip]:hover { stroke-width: 28; }
.report-page .legend { gap: 4px; }
.report-page .legend li { padding: 6px 10px; border-radius: 10px; }
.report-page .legend li:hover { background: var(--hover); }
.report-page .legend i { border-radius: 50%; }

/* bars */
.report-page .hbars { gap: 10px; }
.report-page .hbar { grid-template-columns: 150px 1fr 60px; padding: 4px 6px; border-radius: 10px; }
.report-page .hbar-track { height: 18px; border-radius: 999px; background: var(--panel-2); box-shadow: inset 0 1px 2px rgba(20, 48, 90, .08); }
.report-page .hbar-fill { border-radius: 999px; background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28));
  animation: lr-grow .6s ease-out both; transform-origin: left; }
@keyframes lr-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.report-page .hbar b { font-size: 14px; }

/* tables */
.report-page .table-wrap { max-height: 560px; overflow: auto; }
.report-page .report-table thead th { position: sticky; top: 0; z-index: 2; background: var(--panel-2); font-size: 11px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); }
.report-page .report-table tbody tr:nth-child(even):not(.source-row) td { background: color-mix(in srgb, var(--panel-2) 60%, var(--panel)); }
.report-page .report-table tbody tr:not(.source-row):hover td { background: var(--hover); }
.report-page .report-table td { padding-top: 11px; padding-bottom: 11px; }
.report-page .report-table a { color: var(--navy); font-weight: 700; text-decoration: none; }
.report-page .report-table a:hover { color: var(--blue); text-decoration: underline; }
.report-page .tag.running, .report-page .tag.stopped { border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.report-page .lead-cell { display: inline-flex; align-items: center; gap: 8px; }
.report-page .lead-bar { border-radius: 999px; height: 8px; }

/* source cards */
.report-page .report-source { position: relative; border-radius: 14px; padding: 14px 16px 14px 20px; background: var(--panel); box-shadow: var(--shadow); }
.report-page .report-source::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 5px; border-radius: 0 4px 4px 0; background: var(--accent); }
.report-page .report-source.src-wca::before { background: #2a78d6; }
.report-page .report-source.src-jct::before { background: #eb6834; }
.report-page .report-source.src-both::before { background: #4a3aa7; }
.report-page .report-source dd { font-size: 22px; }

/* empty states */
.report-page .empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; color: var(--muted); text-align: center; }
.report-page .empty::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background:
  radial-gradient(circle at 50% 50%, var(--panel) 0 9px, transparent 10px), linear-gradient(135deg, var(--blue-soft), var(--green-soft)); }

/* the PDF never animates (each part is drawn as it finally looks) */
.pdf-export .hbar-fill, .pdf-export .kpi .live::before { animation: none !important; }
.pdf-export .table-wrap { max-height: none !important; }

/* Create campaign: a short note inside a field label (keeps the row's boxes on one line) */
.label-hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.report-page .kpi-partners { --k: #195d9c; }

/* sign-in with email + password */
.password-login { display: grid; gap: 6px; text-align: left; margin-top: 8px; }
.password-login input { width: 100%; }
.password-login button { width: 100%; margin-top: 10px; padding: 11px; }
.ms-button[hidden], .password-login[hidden] { display: none !important; }
.password-login input { box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--input-line); border-radius: 10px;
  background: var(--panel); color: var(--text); font: inherit; font-size: 15px; }
.password-login input:focus { outline: 2px solid var(--blue-line); border-color: var(--blue); }
.password-login .field { margin-top: 8px; }

/* Reports: tables and source cards (polish 2) */
.tag.running { margin-top: 0; }                    /* the Home section ".running" spacing never applies to a label */
.report-page .report-source dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .report-page .report-source dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report-page .report-source { padding: 16px 18px 16px 22px; }
.report-page .report-source dd { font-size: 24px; letter-spacing: -.01em; }
.mini-flag { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; margin-right: 8px; vertical-align: -3px;
  box-shadow: 0 0 0 1px var(--line); }
.report-page .report-table .zero { color: var(--muted-2); font-weight: 400; }
.report-page .report-table td.num { font-weight: 600; color: var(--navy); }
.report-page .report-table tr.country-row td:first-child { white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-running { color: var(--green-600); background: var(--green-soft); }
.pill-running i { animation: lr-pulse 1.8s infinite; box-shadow: 0 0 0 0 rgba(95, 154, 36, .4); }
.pill-stopped { color: var(--bad); background: var(--bad-soft); }
.report-page .lead-cell { justify-content: flex-end; gap: 10px; width: 100%; }
.lead-track { display: inline-block; width: 76px; height: 8px; border-radius: 999px; background: var(--panel-2);
  box-shadow: inset 0 1px 2px rgba(20, 48, 90, .08); overflow: hidden; }
.lead-track > span { display: block; height: 100%; border-radius: 999px; min-width: 0; }
.report-page .report-table td a { display: inline-block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.pdf-export .pill i { animation: none !important; }

/* Reports -> By source: share of contacts + 2 x 2 tiles */
.report-page .report-sources { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.report-page .report-source { --src: var(--accent); padding: 16px 18px 18px 22px; }
.report-page .report-source.src-wca { --src: #2a78d6; } .report-page .report-source.src-jct { --src: #eb6834; }
.report-page .report-source.src-both { --src: #4a3aa7; } .report-page .report-source.src-other { --src: var(--muted); }
.report-page .report-source::before { background: var(--src) !important; }
.src-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.src-share { color: var(--muted); font-size: 12px; white-space: nowrap; }
.src-share b { color: var(--navy); font-size: 15px; }
.src-bar { height: 6px; margin: 10px 0 14px; border-radius: 999px; background: var(--panel-2); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(20, 48, 90, .08); }
.src-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--src), color-mix(in srgb, var(--src) 60%, #fff)); }
.report-page .report-source dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; margin: 0; }
.src-tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.src-tile dt { color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.report-page .src-tile dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.src-tile.good { background: var(--green-soft); border-color: var(--green-line); } .src-tile.good dd { color: var(--green-600); }
.src-tile.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); } .src-tile.bad dd { color: var(--bad); }

/* By source, aesthetic pass: tinted card top, share ring, tiles with icons */
.report-page .report-source { border: 1px solid var(--line); border-radius: 18px; padding: 18px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--src) 10%, var(--panel)) 0%, var(--panel) 46%);
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.report-page .report-source:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 48, 90, .12); }
.report-page .report-source::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 4px; border-radius: 0;
  background: linear-gradient(90deg, var(--src), color-mix(in srgb, var(--src) 45%, var(--panel))) !important; }
.report-page .report-source .source-chip { font-size: 13px; padding: 4px 12px; }
.report-page .src-head { align-items: center; margin-bottom: 14px; }
.src-caption { color: var(--muted); font-size: 12px; margin-top: 6px; }
.src-ring { width: 58px; height: 58px; flex: none; }
.src-ring circle { fill: none; stroke-width: 6; }
.src-ring .track { stroke: color-mix(in srgb, var(--src) 14%, var(--panel-2)); }
.src-ring .fill { stroke: var(--src); stroke-linecap: round; }
.src-ring text { text-anchor: middle; font-size: 13px; font-weight: 800; fill: var(--navy); }
.report-page .src-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; }
.src-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: var(--src); background: color-mix(in srgb, var(--src) 12%, var(--panel)); }
.src-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.src-tile > div { min-width: 0; }
.report-page .src-tile dd { font-size: 20px; margin-top: 2px; }
.report-page .src-tile.good .src-ico { color: var(--green-600); background: color-mix(in srgb, var(--green-600) 15%, var(--panel)); }
.report-page .src-tile.bad .src-ico { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, var(--panel)); }

/* LaneReach's own dropdown list (dropdown.js): always below the box */
.lr-dd { position: fixed; z-index: 3000; display: flex; flex-direction: column; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(20, 48, 90, .18); padding: 6px;
  max-width: min(460px, calc(100vw - 16px)); animation: lr-dd-in .12s ease-out; }
@keyframes lr-dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lr-dd-search { margin: 0 0 6px; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--input-line);
  border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; }
.lr-dd-search:focus { outline: 2px solid var(--blue-line); border-color: var(--blue); }
.lr-dd-items { overflow-y: auto; overscroll-behavior: contain; }
.lr-dd-item { padding: 8px 12px 8px 30px; border-radius: 8px; cursor: pointer; font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; position: relative; }
.lr-dd-item.active { background: var(--hover); }
.lr-dd-item.selected { font-weight: 700; color: var(--navy); }
.lr-dd-item.selected::before { content: "✓"; position: absolute; left: 10px; color: var(--green-600); font-weight: 800; }
.lr-dd-item.disabled { color: var(--muted-2); cursor: default; }
.lr-dd-item.in-group { padding-left: 38px; }
.lr-dd-item.in-group.selected::before { left: 18px; }
.lr-dd-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lr-dd-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }
select.lr-dd-open { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* Top bar: never wider than the window (no sideways scroll bar on any page) */
header.top nav, header.top .brand { min-width: 0; }
header.top .brand, header.top .user-menu, header.top .theme-toggle { flex-shrink: 0; }
@media (max-width: 1440px) and (min-width: 1001px) {
  header.top { gap: 14px; padding-left: 20px; padding-right: 20px; }
  header.top nav { gap: 2px; }
  header.top nav a { padding: 8px 11px; }
}
@media (max-width: 1320px) and (min-width: 1001px) {
  .user-menu .who { display: none; }                         /* the avatar (initials) stays; hover shows who */
  header.top .brand .product span { display: none; }
  header.top nav a { padding: 7px 9px; font-size: 14px; }
}
@media (max-width: 1120px) and (min-width: 1001px) { header.top nav a { padding: 6px 7px; font-size: 13px; } }

/* Setup tables on narrower screens (or Windows display scaling): wrap long text, shrink boxes, no sideways scroll */
@media (max-width: 1400px) {
  #countries table td:nth-child(5), #countries table td:nth-child(8) { white-space: normal; overflow-wrap: anywhere; max-width: 150px; }
  #countries table td:last-child .row, #countries table td:last-child { flex-wrap: wrap; white-space: normal; }
  #countries table td:last-child { max-width: 128px; }
  #countries table td:last-child button { margin: 2px 0; }
  #agents table td:nth-child(3) input { width: 100%; min-width: 0; max-width: 150px; }
  #agents table td:nth-child(4) input { width: 100%; min-width: 0; max-width: 200px; }
  #agents table td:nth-child(7) img { width: 124px; height: auto; }
  #agents table td:last-child { white-space: normal; }
  #agents table td:last-child button { display: block; width: 100%; margin: 3px 0; }
}
@media (max-width: 1150px) {
  #countries table td:nth-child(4), #countries table th:nth-child(4) { display: none; }   /* language: in Edit */
  #countries table td:nth-child(5), #countries table td:nth-child(8) { max-width: 120px; font-size: 12px; }
  #agents table td:nth-child(7) img { width: 104px; }
}

/* Agent quota table: headings on one line, a narrower meter on smaller screens */
#quota-agents th { white-space: nowrap; }
@media (max-width: 1200px) { #quota-agents .quota-meter { width: 70px; } #quota-agents td, #quota-agents th { padding-left: 8px; padding-right: 8px; } }
.lr-dd[popover] { inset: auto; margin: 0; position: fixed; overflow: visible; }

/* Future campaigns: branch dropdown */
.future-filter .body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.future-filter .field { margin: 0; }
.future-filter select { min-width: 240px; width: auto; }
.future-filter .note { margin: 0; }

/* Agent quota: the organisation's Assigned / Remaining */
.org-pair { display: flex; gap: 22px; align-items: baseline; margin: 4px 0 6px; font-size: 14px; color: var(--muted); }
.org-pair b { font-size: 22px; color: var(--text); margin-left: 4px; }

/* Future campaigns: "Nudge the pricing leads" with the next campaign */
.leads-card { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.leads-card.on { border-color: var(--green, #2e9e5b); background: var(--tint); }
.leads-card label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.leads-card input[type=checkbox] { width: 18px; height: 18px; }

/* Future campaigns: the three nudges of the next campaign, side by side */
.nudge-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.nudge-cards .leads-card { margin-top: 12px; }
.nudge-ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
