/* Handshake
   Phase 1 item 1.0 — platform skeleton.
   Type (round 5, Nia 2026-12-05): ALL text renders in the system
   stack (--text-font) — body/UI, headings, hero headline, greeting,
   big KPI/glance figure numerals, donut totals. The ONLY exception
   is the logo: the handshake® wordmark is always Nia's logo image,
   never re-set type. The former display-face @font-face blocks are
   removed (the font files stay on disk). Flat UI, light only (dark theme
   removed 2026-12-05, round 18), one semantic color
   language (see :root). Visual-first dashboard: hero, KPI cards,
   chart panels. */

/* The hidden attribute must actually hide: author display rules
 * (e.g. .header-range { display: inline-flex }) override the UA
 * stylesheet's [hidden] { display: none }, so the header range
 * pill stayed visible on Audience and every other non-Overview /
 * non-Campaigns route even though renderApp set hidden = true. */
[hidden] { display: none !important; }

:root {
  --orange: #D35400;
  --orange-dark: #A84300;
  --orange-soft: #FDF0E6;
  --ink: #2C3E50;
  --muted: #7F8C8D;
  --line: #BDC3C7;
  --bg: #ffffff;
  --bg-soft: #F2F4F7;
  --card: #ffffff;
  --header-bg: rgba(255,255,255,.96);
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.06);
  --header-h: 64px;
  --text-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Semantic color language — Flat UI palette (materialui.co/flatuicolors),
     pinned by Nia 2026-12-04. One meaning, one color, everywhere; flat
     fills only, no blended fills on data visuals. --green / --red are kept
     as aliases for the older names. */
  --success: #27AE60;
  --success-dark: #16A085;
  --success-bright: #2ECC71;
  --success-soft: #EAF7EF;
  --success-line: #A9DFBF;
  --green: var(--success);
  --green-soft: var(--success-soft);
  --attention: #E67E22;
  --attention-bright: #F39C12;
  --attention-soft: #FEF5E7;
  --attention-line: #FAD7A0;
  --danger: #C0392B;
  --danger-bright: #E74C3C;
  --danger-soft: #FDEDEC;
  --danger-line: #F5B7B1;
  --red: var(--danger);
  --red-soft: var(--danger-soft);
  --info: #2980B9;
  --info-bright: #3498DB;
  --info-soft: #EBF5FB;
  --info-line: #AED6F1;
  --health: var(--success-bright);
  /* Flat UI neutrals (named tokens for charts + text). */
  --clouds: #ECF0F1;
  --silver: #BDC3C7;
  --concrete: #95A5A6;
  --asbestos: #7F8C8D;
  --wet-asphalt: #34495E;
  --midnight: #2C3E50;
  /* Chart series — Flat UI, in order (dashboard 1.11). */
  --chart-1: #3498DB;
  --chart-2: #1ABC9C;
  --chart-3: #9B59B6;
  --chart-4: #E67E22;
  --chart-5: #2ECC71;
  --chart-6: #F39C12;
  --chart-7: #8E44AD;
  --chart-8: #E74C3C;
  /* Funnel stages — one teal progression (dashboard 1.11, restyled
     to the dashboard reference 2026-12-04). */
  --funnel-1: #E6F7F4;
  --funnel-2: #CCFBF1;
  --funnel-3: #5EEAD4;
  --funnel-4: #14B8A6;
  --funnel-5: #0D9488;
  --score-high: var(--success);
  --score-mid: var(--attention);
  --score-low: var(--danger);
  /* Login — split screen (Nia, 2026-12-04, new reference): very light
     lavender page, white form panel left, dark navy visual panel right
     (#0A1628), teal accents. */
  --auth-page-bg: #E9EDF7;
  --auth-visual-bg: #0A1628;
  --auth-teal: #14B8A6;
  --auth-teal-bright: #2DD4BF;
  --auth-teal-deep: #0D9488;
  /* Dashboard / campaigns design system (Nia, 2026-12-04, dashboard +
     campaigns references): light grey-blue page, white shell, teal
     accent, dark navy hero. */
  --page-bg: #E9EEF3;
  --navy: #0A1628;
  --teal: #14B8A6;
  --teal-bright: #2DD4BF;
  --teal-deep: #0D9488;
  --teal-soft: #E6F7F4;
  --text-soft: #5D6D7E;
  --card-border: #EAEDED;
  --search-bg: #F2F4F7;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text-font);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--teal-deep); }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header / footer ---------- */
.site-header {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid #E5E8E8;
  /* Round 19 (2026-12-05, Nia): left: 0 so the sticky header stays
     pinned to the viewport's left edge during any horizontal scroll
     — the wordmark must never slide off-screen. */
  position: sticky; top: 0; left: 0; background: #fff;
  z-index: 30; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand-logo { height: 15px; width: auto; display: block; }
/* Centered pill search (dashboard reference): light grey pill, icon
   inside left. Hidden below 860px. */
.header-search { flex: 1 1 auto; min-width: 0; max-width: 480px; margin: 0 auto; position: relative; }
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: block; }
.header-search-input {
  width: 100%; max-width: 480px; border: none; border-radius: 999px;
  background: var(--search-bg); padding: 10px 16px 10px 40px;
  font: inherit; font-size: 14px; color: var(--ink);
}
.header-search-input::placeholder { color: var(--muted); opacity: 1; }
.header-search-input:focus { background: #fff; outline: 2px solid rgba(20, 184, 166, .45); outline-offset: 0; box-shadow: 0 0 0 1px var(--teal); }
.header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.lang-toggle {
  background: #fff; border: 1px solid #D5D8DC; border-radius: 999px;
  padding: 8px 12px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal-deep); }
.lang-toggle svg { display: block; }
.workspace-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--search-bg); border: 1px solid transparent; border-radius: 999px;
  padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.workspace-pill-icon { display: flex; color: var(--teal-deep); }
.workspace-pill-icon svg { width: 18px; height: 18px; display: block; }
.workspace-pill-chevron { display: flex; color: var(--muted); }
.workspace-pill-chevron svg { width: 14px; height: 14px; display: block; }
.workspace-pill svg { color: var(--teal-deep); }
/* Header range pill (Campaigns page only): same pill language as the
   workspace switcher. */
.header-range {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--search-bg); border: 1px solid transparent; border-radius: 999px;
  padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.header-range:hover { background: #EAEDED; }
.header-range svg { display: block; }
select.header-range { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235D6D7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 12px; }
/* Bell with orange notification dot. */
.header-bell {
  background: none; border: none; cursor: pointer; color: var(--ink);
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; padding: 0;
}
.header-bell:hover { background: var(--search-bg); }
.header-bell svg { width: 20px; height: 20px; display: block; }
.header-bell-dot {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: #E67E22; border: 2px solid #fff;
  pointer-events: none;
}
/* Notification dropdown under the bell (rendered inside a
   position-relative wrapper by the shell markup). */
.notif-panel {
  position: absolute; right: 0; top: 44px; background: #fff;
  border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px; min-width: 240px; z-index: 40; font-size: 14px; color: var(--ink);
}
.nav-toggle {
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 38px; height: 38px; cursor: pointer; color: var(--ink);
  display: none; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle:hover { border-color: var(--teal); color: var(--teal-deep); }
.user-menu { position: relative; }
.user-menu-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #E67E22; color: #fff; font: inherit; font-weight: 700;
  font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.user-menu-btn:hover { background: #D35400; }
.user-menu-panel {
  position: absolute; right: 0; top: 44px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; width: 250px; z-index: 40;
}
.user-menu-email { font-size: 13px; color: var(--muted); margin: 0 0 12px; overflow-wrap: anywhere; }
.user-menu-email strong { color: var(--ink); font-size: 14px; }
/* ---------- Dashboard footer band (Nia 2026-12-04) ---------- */
/* Dark band matching the login panel and the hero; white wordmark
   ONLY since round 23 (2026-12-05, Nia: "the footer should only
   have the logo in it" — no tagline, no quick links, no menu, no
   status line, no "Powered offgrid AI", no copyright). Hidden on
   the login page by body.auth-view (line ~366). */
.site-footer {
  margin-top: 64px; background: var(--navy); color: #BDC3C7;
  padding: 36px 20px 30px; border-top: none; text-align: left; font-size: 14px;
}
.site-footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: space-between; }
.site-footer-brand { flex: 1 1 260px; }
/* Round 6: hardened with max-height — the 15px height rule is the ONLY
   rule for this img and there are no global img rules, so the ~20px live
   reading is not coming from this stylesheet (likely a device-pixel /
   screenshot measurement: 15 CSS px at DPR 1.33 reads 20 physical px).
   The height="171" attribute in app.js (~10391) is also wrong — the file
   handshake-wordmark-white-trim.png is 1200x161 — and needs a one-line
   app.js fix to height="161" (coordinator; this worker must not touch
   app.js). Either way this rule now pins the rendered height at 15px.
   (Round 23: the margin-bottom is gone — it spaced the logo from the
   removed tagline below it.) */
.site-footer-logo { height: 15px; max-height: 15px; width: auto; display: block; }

/* ---------- Layout ---------- */
#app { min-height: 60vh; }
.app-shell { display: flex; align-items: flex-start; }
.app-content { flex: 1; min-width: 0; padding: 8px 32px 32px; }
.container { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.25; margin: 8px 0 12px; letter-spacing: -0.01em; }
h1.section-title { margin-top: 28px; }
h2 { font-size: 20px; margin: 28px 0 10px; }
h3 { font-size: 16px; margin: 20px 0 8px; }
p { margin: 10px 0; }
.lede { color: var(--muted); font-size: 17px; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }

/* ---------- Sidebar nav ---------- */
.sidebar {
  flex: 0 0 240px; width: 240px; position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); overflow-y: auto;
  border-right: 1px solid #E5E8E8; background: #fff; padding: 16px 12px;
  display: flex; flex-direction: column;
}
.sidebar-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: 8px 12px; margin: 0 0 4px; font-weight: 600;
}
.side-list { list-style: none; margin: 0; padding: 0; }
.side-link {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
}
.side-link-label { grid-column: 2; grid-row: 1; min-width: 0; overflow-wrap: break-word; }
.side-link-icon { display: flex; flex: 0 0 auto; color: var(--muted); grid-column: 1; grid-row: 1; }
.side-link-icon svg { width: 18px; height: 18px; display: block; }
.side-link > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); display: block; grid-column: 1; grid-row: 1; }
.side-link:hover { background: var(--search-bg); color: var(--ink); }
.side-link.active { background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; }
.side-link.active .side-link-icon { color: var(--teal-deep); }
.side-link.active > svg { color: var(--teal-deep); }
.side-link-coming-soon { color: var(--muted); }
.side-link-coming-soon .side-link-icon { color: #BDC3C7; }
/* Collapse toggle (Nia 2026-12-04): pinned to the sidebar bottom
   by its own margin-top: auto (the sidebar is a flex column). */
.side-collapse-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: auto; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left;
}
.side-collapse-btn:hover { background: var(--search-bg); border-color: var(--teal); color: var(--teal-deep); }
.side-collapse-icon { display: flex; flex: 0 0 auto; }
.side-collapse-icon svg { width: 16px; height: 16px; display: block; }
/* Collapsed rail (desktop only — the min-width query leaves the
   mobile overlay sidebar untouched): 64px icons-only, labels hidden,
   links centred on their icon, content takes the
   freed width via the flex shell. */
@media (min-width: 861px) {
  /* Collapsed rail tooltips (bug 6): the bubble is a ::after on the
     hovered link/button, so it must escape the sidebar box. The base
     .sidebar has overflow-y: auto, which clips anything past its
     right edge — so the collapsed rail uses overflow: visible. The
     rail is compacted (8px link/button padding) so all 15 admin
     items plus the collapse button still fit in calc(100vh - 64px)
     at 662px tall (586px total) with no scroll. */
  .sidebar.side-collapsed { flex: 0 0 64px; width: 64px; padding: 16px 8px; overflow: visible; z-index: 45; }
  .side-collapsed .sidebar-label { display: none; }
  .side-collapsed .side-link { grid-template-columns: 18px; justify-content: center; padding: 8px 0; position: relative; }
  .side-collapsed .side-link-label { display: none; }
  .side-collapsed .side-collapse-btn { justify-content: center; padding: 8px 0; position: relative; }
  .side-collapsed .side-collapse-label { display: none; }
  /* Name bubble on hover/focus: dark navy, white text, to the right
     of the 64px rail, vertically centred on the hovered icon. Only
     in collapsed mode — expanded links show their label instead. */
  .side-collapsed .side-link:hover::after,
  .side-collapsed .side-link:focus-visible::after,
  .side-collapsed .side-collapse-btn:hover::after,
  .side-collapsed .side-collapse-btn:focus-visible::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%;
    transform: translateY(-50%); background: var(--navy); color: #fff;
    font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap;
    padding: 7px 12px; border-radius: 8px; box-shadow: var(--shadow);
    z-index: 60; pointer-events: none;
  }
}

/* ---------- Buttons / forms / notices ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 10px;
  padding: 12px 22px; font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer; text-decoration: none; text-align: center; line-height: 1.3;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--teal-deep); color: #fff; }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.notice { border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.notice-error { background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--danger); }
.notice-success { background: var(--success-soft); border: 1px solid var(--success-line); color: var(--success); }
.notice p { margin: 4px 0; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-field input {
  width: 100%; padding: 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.form-field input:focus { border-color: var(--teal); outline: 2px solid rgba(20,184,166,.25); outline-offset: 0; }

/* ---------- Auth (split-screen login — new reference, Nia 2026-12-04) ---------- */
/* Very light lavender page with soft teal ribbon blobs in the corners,
   white form panel left, dark navy visual panel right (#0A1628), teal
   accents. Crisp text throughout: ink on white, full-opacity white on
   navy. White version only. */
body.auth-view .site-header, body.auth-view .site-footer { display: none; }
body.auth-view #app { min-height: 100vh; min-height: 100dvh; }
.auth-page {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px; gap: 20px;
  background:
    radial-gradient(760px 560px at 92% -12%, rgba(45, 212, 191, .55), rgba(45, 212, 191, 0) 68%),
    radial-gradient(620px 460px at 100% 4%, rgba(153, 246, 228, .5), rgba(153, 246, 228, 0) 70%),
    radial-gradient(760px 560px at -6% 108%, rgba(45, 212, 191, .5), rgba(45, 212, 191, 0) 68%),
    radial-gradient(620px 460px at 2% 96%, rgba(153, 246, 228, .45), rgba(153, 246, 228, 0) 70%),
    var(--auth-page-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.auth-split {
  width: 100%; max-width: 1020px; min-height: 620px;
  display: grid; grid-template-columns: 1.08fr 1fr;
  background: var(--card); border-radius: 24px; overflow: hidden;
  border: 1px solid #DFE6EB;
  box-shadow: 0 30px 80px rgba(44, 62, 80, .16), 0 4px 18px rgba(44, 62, 80, .08);
}
/* Left — white sign-in panel. The black handshake® wordmark sits at
   the top, as in the reference. */
.auth-panel { padding: 48px 52px 44px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.auth-logo { width: 125px; height: auto; display: block; margin-bottom: 0; } /* Round 15, 2026-12-05: max-width: 72% removed — it capped the logo at 72% of the fit-content .auth-logo-block (~125px), rendering ~90px instead of 125px. */
/* Logo lockup (round 5, Nia 2026-12-05; round 12: logo grown to
 * 125px, still well under the 208px full size — the wordmark and the
 * "Powered by offgrid AI" line form one centered block
 * (.auth-logo-block) — the line sits directly beneath the logo,
 * right-aligned to the logo's right edge. Small grey, 12px.
 * text-transform: none is load-bearing: the dictated casing
 * (capital P, lowercase offgrid, caps AI) must survive exactly. */
.auth-logo-block { align-self: center; width: fit-content; margin: 0 0 30px; }
.auth-powered { font-family: var(--text-font); color: var(--muted); font-size: 12px; font-weight: 500; text-transform: none; text-align: right; margin: 2px 0 0; }
.auth-title-row { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; }
.auth-title-line { flex: 1 1 0; height: 1px; min-width: 0; background: #D5D8DC; border: 0; }
.auth-panel h1 { font-size: 15px; font-weight: 400; color: var(--ink); margin: 0; text-align: center; white-space: nowrap; }
.auth-panel .lede { margin: 0 0 28px; color: var(--ink); }
.auth-tabs { display: flex; border-bottom: 1px solid #E5E8E8; margin: 0 0 24px; }
.auth-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 4px; margin-bottom: -1px;
  background: none; border: none; border-bottom: 2px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--muted);
  cursor: pointer;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active { color: var(--ink); border-bottom-color: var(--auth-teal); }
.auth-tab:focus-visible { outline: 2px solid rgba(20, 184, 166, .5); outline-offset: 2px; }
.auth-tab-icon { display: flex; color: inherit; }
.auth-tab-icon svg { width: 18px; height: 18px; display: block; }
.auth-tab.active .auth-tab-icon { color: var(--auth-teal); }
/* Icon fields + show/hide password — pill inputs, teal focus. */
.auth-panel .form-field { margin-bottom: 16px; }
.auth-panel .form-field input {
  border-radius: 999px; border: 1px solid #D5D8DC;
  padding: 14px 16px; font-size: 15px; color: var(--ink); background: #fff;
}
.auth-panel .form-field input::placeholder { color: #95A5A6; opacity: 1; }
.auth-panel .form-field input:focus { border-color: var(--auth-teal); outline: 2px solid rgba(20, 184, 166, .25); outline-offset: 0; }
.field-wrap { position: relative; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.field-wrap input { padding-left: 42px; }
.field-wrap.has-toggle input { padding-right: 46px; }
.auth-panel .field-wrap input { padding-left: 42px; }
.auth-panel .field-wrap.has-toggle input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; display: flex; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--ink); outline: 2px solid rgba(20, 184, 166, .35); outline-offset: 0; }
/* Remember me + forgot password row. */
.auth-remember-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.remember-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); margin: 0; cursor: pointer; }
.remember-row input { width: 18px; height: 18px; accent-color: var(--auth-teal); margin: 0; cursor: pointer; }
.auth-forgot { background: none; border: none; padding: 0; font: inherit; font-size: 14px; color: var(--auth-teal-deep); cursor: pointer; }
.auth-forgot:hover { text-decoration: underline; }
/* Teal gradient sign-in button — the file's ONLY gradient. */
.auth-submit {
  display: block; width: 100%; border: none;
  border-radius: 999px; padding: 15px 22px; font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #2DD4BF 0%, #14B8A6 55%, #0D9488 100%);
  box-shadow: 0 10px 24px rgba(13, 148, 136, .35);
  cursor: pointer;
}
.auth-submit:hover, .auth-submit:focus-visible { filter: brightness(.97); box-shadow: 0 12px 28px rgba(13, 148, 136, .45); }
/* Divider + social sign-in. */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: var(--muted); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #D5D8DC; }
.auth-social-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.auth-social-btn {
  width: 48px; height: 48px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #E5E8E8; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(44, 62, 80, .08);
  padding: 0; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.auth-social-btn:hover { border-color: #BDC3C7; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(44, 62, 80, .12); }
.auth-social-btn:focus-visible { outline: 2px solid rgba(20, 184, 166, .5); outline-offset: 2px; }
.auth-social-btn svg { width: 22px; height: 22px; display: block; }
.auth-social-google, .auth-social-microsoft, .auth-social-apple { flex: 0 0 auto; }
.auth-social-msg {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; text-align: center; color: var(--ink);
  background: #E6F7F4; border: 1px solid #BFE9E2;
}
.auth-social-msg[hidden] { display: none; }
/* Footnote under the social row. */
.auth-note { margin-top: 22px; color: var(--ink); text-align: center; font-size: 14px; }
.auth-note-link { color: var(--auth-teal-deep); font-weight: 600; text-decoration: none; }
.auth-note-link:hover { text-decoration: underline; }
/* Discreet language toggle under the login box. */
.auth-under { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-under-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 6px;
}
.auth-under-btn:hover { border-color: var(--orange); color: var(--orange); }
.auth-under-btn svg { display: block; }
/* Right — dark navy visual panel: waves behind, art centered,
   left-aligned marketing line below, wordmark bottom-right. */
.auth-visual {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 46px 42px 40px;
  background: var(--auth-visual-bg);
  color: #fff;
}
.auth-visual-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.auth-visual-waves svg { width: 100%; height: 100%; display: block; }
.auth-visual-art-wrap { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.auth-visual-art { width: 100%; max-width: 440px; height: auto; display: block; }
.auth-visual-bottom { position: relative; z-index: 1; text-align: left; margin-top: 28px; }
.auth-visual-title { font-size: 40px; line-height: 1.15; font-weight: 800; color: #fff; margin: 0 0 10px; }
.auth-visual-title-white { color: #fff; }
.auth-visual-title-teal { color: var(--auth-teal-bright); }
.auth-visual-sub { color: rgba(255, 255, 255, .92); font-size: 16px; line-height: 1.55; margin: 0; }
.auth-visual-wordmark { position: absolute; right: 28px; bottom: 24px; width: 150px; height: auto; display: block; z-index: 1; opacity: .95; }


/* ---------- Overview dashboard (Phase 1 item 1.11) ---------- */
/* Shared KPI/panel rules live here — they serve the Audience and
   Verification modules (not the Overview). The Overview itself was
   rebuilt to the dashboard reference 2026-12-04: dark navy banner,
   greeting, At-a-glance grid (see the big block at the end). */

/* ---------- KPI cards ---------- */
.kpi-grid {
  display: grid; gap: 14px; margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.kpi-card { padding: 20px; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--teal-deep); line-height: 1.2; margin: 4px 0 2px; }
/* Audience header cards: per-card figure colors (Total contacts
 * orange, Suppressed red; Ready to email stays the teal default). */
.kpi-value.kpi-value-orange { color: var(--attention); }
.kpi-value.kpi-value-red { color: var(--danger); }
.kpi-value.kpi-value-green { color: var(--success); }
.kpi-value.kpi-value-grey { color: var(--asbestos); }
.kpi-empty { font-size: 13px; color: var(--muted); }

/* ---------- Chart / visual panels ---------- */
/* .panel-grid / .panel / .empty-chart / .health-panel were unused
   (no markup references them) and were removed in the dashboard
   rework 2026-12-04. .panel-note is kept: the kept Overview sections
   and the provider health copy still use it. */
.panel-note { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.health-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; }
.health-dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa0a6; flex: 0 0 auto; }
.health-dot.ok { background: var(--health); }
.health-dot.attention { background: var(--attention); }
.health-status { font-weight: 600; }

/* ---------- Empty states ---------- */
.empty-card { text-align: center; padding: 36px 20px; }
.empty-title { font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.empty-note { color: var(--muted); margin: 0; }

/* ---------- Provider connections (Phase 1 item 1.2) ---------- */
/* Simple status visuals for Settings & Integrations (admin-only):
   a status pill (green / grey / amber) + plain-language note. No
   technical detail on these cards. */
.provider-grid {
  display: grid; gap: 14px; margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.provider-card { padding: 20px; display: flex; flex-direction: column; }
.provider-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.provider-head h3 { margin: 0; font-size: 17px; }
.provider-desc { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.provider-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.provider-missing { margin-top: 6px; }
.provider-data-list {
  list-style: none; margin: 12px 0 0; padding: 12px 0 0;
  border-top: 1px solid var(--line); font-size: 14.5px;
}
.provider-data-list li { margin: 4px 0; }
.provider-actions { margin-top: auto; padding-top: 16px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px 5px 10px; white-space: nowrap;
}
.status-pill.status-ok { background: var(--success-soft); border-color: var(--success-line); color: var(--success); }
.status-pill.status-attention { background: var(--attention-soft); border-color: var(--attention-line); color: var(--attention); }
.status-pill.status-idle { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Round 19 (2026-12-05, Nia): the page must never scroll sideways
     on mobile. overflow-x: clip (NOT hidden) so the sticky header
     keeps working — the real fixes are the KPI-card grid (minmax)
     and the perf-head wrap; this is only a safety net. */
  html, body { overflow-x: clip; }
  /* Round 18 (2026-12-05, Nia): the hamburger sits at the top-right of
     the header, after the header actions, and the drawer slides in from
     the right. The workspace pill and the (empty) bell are hidden on
     mobile so the hamburger is never pushed off-screen. */
  .nav-toggle { display: flex; order: 10; }
  .header-actions { margin-left: auto; }
  .workspace-pill, .header-bell { display: none; }
  .app-shell { display: block; }
  .sidebar {
    position: fixed; right: 0; left: auto; top: var(--header-h); bottom: 0; z-index: 25;
    transform: translateX(105%); transition: transform .2s ease;
    box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: none; }
  .app-content { padding: 20px 16px; }
  .header-search, .header-range { display: none; }
  .side-collapse-btn { display: none; }
  /* Login: the card stays a floating rounded card with the form alone.
     Round 18 (2026-12-05, Nia): the navy marketing panel is hidden on
     mobile — only the sign-in form shows. */
  .auth-page { padding: 16px; }
  .auth-split { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .auth-panel { padding: 32px 26px 36px; }
  .auth-logo { width: 108px; margin-bottom: 0; }
  .auth-logo-block { margin-bottom: 24px; }
  .auth-visual { display: none; }
  /* Round 26 (2026-12-05, Nia): figure cards go one per row on mobile —
     the shared .kpi-grid (Audience, Verification, Domains, Campaigns
     audience panel, campaign reports) stacks full-width instead of 2-across. */
  .kpi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* Round 26 (2026-12-05, Nia): was `1fr 1fr` (2-across on phones) — the
     480px rule comes after the 860px block and would override it, so it
     must also be 1fr or Nia's ~390px phone stays 2-across. */
  .kpi-grid { grid-template-columns: 1fr; }
  .workspace-pill { padding: 6px 10px; }
}

/* ---------- Type: system stack everywhere (round 5) ---------- */
/* All text inherits var(--text-font) from body; no display-face
   rule remains. */

/* ---------- Audience import (Phase 1 item 1.3) ---------- */
.select-input {
  width: 100%; padding: 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.select-input:focus { border-color: var(--teal); outline: 2px solid rgba(20,184,166,.25); outline-offset: 0; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(2, 1fr); }
.form-field-wide { grid-column: 1 / -1; }
.wizard-card { margin-top: 20px; }
.wizard-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.map-grid { margin-top: 8px; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 12px; border-bottom: 1px solid var(--card-border); white-space: nowrap;
}
.data-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid #F2F4F7; overflow-wrap: anywhere; }
.reason-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 15px; }
.reason-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.reason-list li:last-child { border-bottom: none; }
.report-grid { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(4, 1fr); }
.report-stat { padding: 20px; }
.progress-bar { height: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 16px 0 8px; }
.progress-fill { height: 100%; background: var(--teal); width: 0; transition: width .2s; }
.job-card { margin-top: 14px; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.job-counts { color: var(--muted); font-size: 14.5px; margin: 10px 0; }
.job-report { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
input[type="file"] { font: inherit; font-size: 15px; }
/* ---------- Verification & Hygiene (Phase 1 item 1.5) ---------- */
.verify-scope-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.verify-scope-option {
  display: block; font-weight: 500; font-size: 15px;
  margin: 6px 0; cursor: pointer;
}
.verify-scope-option input { accent-color: var(--teal); margin-right: 8px; }

/* ---------- Suppression center (Phase 1 item 1.6) ---------- */
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.supp-filter-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.supp-filter-row .form-field { flex: 1 1 220px; margin-bottom: 0; }
.supp-filter-row .supp-search-btn { flex: 0 0 auto; }
.supp-filter-row .supp-search-btn .btn { margin-bottom: 1px; }

/* ---------- Campaigns & Templates (Phase 1 item 1.8) ---------- */
/* The email preview pane: rendered body as the recipient sees it,
   newlines preserved, long lines wrapped. */
.email-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  margin: 12px 0;
}
.camp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }

/* ---------- Domains & Deliverability (Phase 1 item 1.7) ---------- */
/* Simple status visuals on the main screen; the technical record
   detail lives only in the admin-only Settings section. */
.dom-health-hero { max-width: 560px; }
.dom-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mono { font-family: var(--text-font); font-size: 13px; overflow-wrap: anywhere; }
.dom-record-card { margin-top: 14px; }
.dom-record-card p { margin: 6px 0; }

@media (max-width: 900px) {
  .report-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Overview dashboard (Phase 1 item 1.11) — restyled to the
   dashboard reference (Nia, 2026-12-04) + Campaigns page
   (campaigns reference, Nia 2026-12-04 19:53 EST).
   Design system: light grey-blue page, white shell, teal accent
   (#14B8A6 / #0D9488), dark navy hero (#0A1628), system stack everywhere,
   white cards (14px radius, soft shadow). The old light animated
   hero (.ov-hero + orbs + shimmer keyframes), the old KPI strip
   (.ov-kpi-strip / .ov-kpi-*) and the old toolbar (.ov-toolbar /
   .ov-range / .ov-ws-switch) were removed here — the new greeting,
   dark banner and At-a-glance grid replace them. Kept 1.11
   analytics (funnel, trend, channel, campaign table, goals,
   donuts, health) keep their classes, restyled to this system.
   Gradients in this file: ONLY .auth-submit, .cmp-hero, .hero-wash.
   (The .hero-wash is the animated hero background: a banner, not a
   data visual, so it is outside the no-gradients-on-data rule.)
   The hero fx is flat-color blobs, not a gradient drift (round 5).
   ================================================================ */

/* ---------- Overview page + shared card language ---------- */
.ov-page .card { border-radius: 14px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.06); }
.ov-page h3 { margin: 0 0 4px; font-size: 17px; }
.ov-page a { color: var(--teal-deep); }
.ov-page a:hover { color: var(--teal); }

/* ---------- Greeting ---------- */
.ov-greeting { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.ov-greeting-title { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 0; }
.ov-greeting-line1 { display: block; }
.ov-greeting-line2 { display: block; font-weight: 400; }
.ov-greeting-sub { color: var(--text-soft); font-size: 16px; margin: 6px 0 0; }
.ov-greeting-actions { display: flex; gap: 12px; align-items: center; flex: 0 0 auto; }
.ov-range-select {
  background: #fff; border: 1px solid #D5D8DC; border-radius: 10px;
  padding: 10px 14px; font: inherit; font-size: 14px; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.ov-range-select:hover { border-color: var(--teal); }
.ov-range-select svg { display: block; }
select.ov-range-select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235D6D7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 12px; }
.ov-page .ov-create-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--success); color: #fff; border: none; border-radius: 10px;
  padding: 11px 18px; font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none;
}
/* Scoped under .ov-page so the button text stays white on hover too:
   the global .ov-page a:hover rule (teal text) otherwise outranks
   the plain .ov-create-btn:hover rule and turns the label green on
   the green button. (Nia 2026-12-04; green since round 5.) */
.ov-page .ov-create-btn:hover { background: var(--success-bright); color: #fff; }
.ov-page .ov-create-btn:active, .ov-page .ov-create-btn:focus-visible { background: var(--success-bright); color: #fff; }
.ov-create-btn svg { width: 18px; height: 18px; display: block; }

/* ---------- Dark navy hero banner ---------- */
.ov-banner {
  position: relative; overflow: hidden;
  background: #060D18; border-radius: 20px;
  padding: 32px 36px; margin-bottom: 28px;
}
.ov-banner-logo { width: 170px; max-width: 70%; height: auto; display: block; margin-bottom: 18px; }
.ov-banner-eyebrow { color: var(--teal-bright); font-size: 12px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; }
/* "Powered offgrid AI" brand line under the eyebrow (Nia 2026-12-04).
 * text-transform: none is load-bearing: the eyebrow above is
 * uppercase, and this line's dictated casing (capital P, lowercase
 * offgrid, caps AI) must survive exactly. */
.ov-banner-powered { color: var(--teal-bright); font-size: 12px; letter-spacing: .04em; font-weight: 600; text-transform: none; margin: -8px 0 12px; }
.ov-banner-title { color: #fff; font-size: 28px; font-weight: 500; line-height: 1.15; margin: 0 0 10px; max-width: 560px; }
.ov-banner-sub { color: rgba(255, 255, 255, .85); font-size: 16px; margin: 0; max-width: 520px; }
.ov-banner-art { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; pointer-events: none; }
.ov-banner-art svg { width: 100%; height: 100%; display: block; }

/* ---------- Futuristic hero (Nia, 2026-12-04 20:50 EST).
   Round 12 (2026-12-05): the six solid hero blobs are REMOVED at
   Nia's direction — no replacement. Both heroes (Overview .ov-banner,
   Campaigns .cmp-hero) keep their copy, layout and dark navy
   background; only the blobs come off. The .hero-fx wrapper stays
   (isolation + content z-index), the blob rules, the blob drift
   keyframes and the below-1280px blob-hide rule are gone. No lines,
   no waves — the ::after bottom waves were removed in round 5. */
.hero-fx { isolation: isolate; }
.hero-fx .ov-banner-logo, .hero-fx .ov-banner-eyebrow, .hero-fx .ov-banner-title, .hero-fx .ov-banner-sub,
.hero-fx .cmp-hero-eyebrow, .hero-fx .cmp-hero-title, .hero-fx .cmp-hero-sub { position: relative; z-index: 1; }
.hero-fx .ov-banner-art, .hero-fx .cmp-hero-art { z-index: 1; }
/* Animated hero wash (round 14, Nia 2026-12-05): a slowly shifting
 * multi-hue colour wash across the whole banner — NO icons, NO
 * discrete blobs/circles (round 12 removal stands). The wash sits
 * under the hero copy (z-index 0; copy is z-index 1) and over the
 * flat base backgrounds, which stay untouched. Respects
 * prefers-reduced-motion. */
.hero-wash { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(115deg, #0B3B34, #0A1F2E 30%, #1B2A6B 58%, #3B1B5E 82%, #0B3B34); background-size: 220% 220%; animation: heroWash 26s ease-in-out infinite alternate; }
@keyframes heroWash { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .hero-wash { animation: none; } }
/* ---------- At a glance ---------- */
/* Card layout is a 3-column grid (icon | stacked text | chevron) on
   the card link itself (.ov-glance-card-link), with explicit
   placement for each span. */
.ov-glance { margin-bottom: 28px; }
.ov-glance-title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0; }
.ov-glance > .ov-glance-sub { color: var(--text-soft); font-size: 14px; margin: 6px 0 18px; }
/* Eight cards in a 4x2 grid (2026-12-04: Delivery rate + Open rate
 * joined the six). Internals are sized down from the 3-across
 * values (icon 48px, value 28px, label 14px, sub 13px, padding
 * 20px, gap 16px) so four cards fit cleanly at 1382px wide with no
 * overlap or wrapping. */
.ov-glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ov-glance-card {
  background: #fff; border: 1px solid var(--card-border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 16px; min-width: 0;
  text-decoration: none; color: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
/* The whole card is one link: the grid lives on the anchor (the card
   div's only child), so the icon/label/value/sub/chevron placement
   rules below apply. (2026-12-04 layout fix: the grid was on the div
   while the spans sat inside the anchor, so nothing was placed and
   the label, value and sub ran inline.) */
.ov-glance-card-link {
  display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto auto;
  column-gap: 10px; align-items: center; min-width: 0;
  text-decoration: none; color: inherit;
}
.ov-glance-import { display: block; margin-top: 10px; padding-left: 50px; }
.ov-glance-card:hover { border-color: #BFE9E2; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.ov-glance-icon { grid-row: 1 / 4; grid-column: 1; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.ov-glance-icon svg { width: 20px; height: 20px; display: block; }
.ov-glance-icon-teal { background: #14B8A6; }
.ov-glance-icon-blue { background: #3498DB; }
.ov-glance-icon-orange { background: #E67E22; }
.ov-glance-icon-purple { background: #9B59B6; }
.ov-glance-icon-green { background: #27AE60; }
.ov-glance-label { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; min-width: 0; }
.ov-glance-value { grid-column: 2; grid-row: 2; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.2; margin: 2px 0; }
.ov-glance-card .ov-glance-sub { grid-column: 2; grid-row: 3; font-size: 12px; color: var(--text-soft); margin: 0; }
.ov-glance-link { color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.ov-glance-link:hover { text-decoration: underline; }
.ov-glance-chevron { grid-column: 3; grid-row: 1 / 4; color: var(--muted); display: flex; align-self: center; justify-self: end; font-size: 16px; }
.ov-glance-chevron svg { width: 16px; height: 16px; display: block; }

/* ---------- Two chart cards ---------- */
.ov-charts2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.cmp-report-charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.cmp-report-funnel { grid-row: span 2; }
/* Campaign report figure cards (round 14): icon chip + context line
 * beside the label and figure. The chip colours match the Analytics
 * treatment (same flat palette, same clicks/revenue variations). */
.cmp-rep-kpi { display: flex; gap: 14px; align-items: flex-start; }
.cmp-rep-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal); flex: 0 0 auto; }
.cmp-rep-icon svg { display: block; }
.cmp-rep-kpi-text { flex: 1; min-width: 0; }
.cmp-rep-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
/* Campaign report insights (round 14): per-campaign observations /
 * recommendations / optimization in three columns. */
.cmp-rep-insights { margin-top: 16px; }
.cmp-rep-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.cmp-rep-group h4 { font-size: 15px; margin: 0 0 8px; }
.cmp-rep-group ul { margin: 0; padding-left: 18px; }
.cmp-rep-group li { font-size: 14.5px; line-height: 1.5; margin: 0 0 8px; }
@media (max-width: 768px) {
  .cmp-rep-groups { grid-template-columns: 1fr; }
}

/* ---------- Audience & Verification charts (Item 5) ---------- */
.aud-charts, .ver-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.aud-ready-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; margin: 12px 0; }
.aud-ready-bar span { display: block; height: 100%; }
.aud-growth-svg { width: 100%; height: auto; display: block; }
.ver-score-wrap { display: flex; justify-content: center; margin: 8px 0; }
.ov-chart2-card { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.ov-chart2-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ov-chart2-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.ov-chart2-head .ov-range-select { margin-left: auto; padding: 7px 10px; font-size: 13px; }
.ov-chart2-head select.ov-range-select { padding-right: 28px; }
.ov-chart2-icon { display: flex; color: var(--teal-deep); flex: 0 0 auto; }
.ov-chart2-icon svg { width: 20px; height: 20px; display: block; }
.ov-chart2-empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.ov-chart2-empty svg { width: 40px; height: 40px; color: #BDC3C7; display: block; margin: 0 auto 12px; }
.ov-chart2-empty p { margin: 0; }

/* ---------- Coming soon ---------- */
.ov-coming-soon { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow); padding: 32px; text-align: center; }
.ov-coming-soon svg { width: 40px; height: 40px; color: #BDC3C7; display: block; margin: 0 auto 12px; }
.ov-coming-soon h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.ov-coming-soon p { color: var(--muted); margin: 0; }

/* ---------- Kept 1.11 analytics (restyled: teal accent, 14px cards) ---------- */
/* (Round 23, 2026-12-05, Nia: the .ov-charts grid and the .ov-funnel /
 * .ov-chart section rules are gone — the funnel left the Overview;
 * the Analytics funnel is an .an-card and its rows keep the
 * .ov-funnel-row rules below.) */
/* Section cards in the grids must be able to shrink below content
   width (long campaign names, wide tables) instead of forcing overflow. */
.ov-funnel, .ov-trend, .ov-channel, .ov-goals, .ov-donut, .ov-health { min-width: 0; }

/* ---------- Funnel bars ---------- */
.ov-funnel-row {
  display: grid; grid-template-columns: 86px 1fr auto auto;
  align-items: center; gap: 10px; padding: 8px 0;
}
.ov-funnel-label { font-size: 14px; font-weight: 500; }
.ov-funnel-bar { display: block; height: 18px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.ov-funnel-bar i { display: block; height: 100%; border-radius: 999px; }
.ov-funnel-row:nth-of-type(1) .ov-funnel-bar i { background: var(--funnel-1); }
.ov-funnel-row:nth-of-type(2) .ov-funnel-bar i { background: var(--funnel-2); }
.ov-funnel-row:nth-of-type(3) .ov-funnel-bar i { background: var(--funnel-3); }
.ov-funnel-row:nth-of-type(4) .ov-funnel-bar i { background: var(--funnel-4); }
.ov-funnel-row:nth-of-type(5) .ov-funnel-bar i { background: var(--funnel-5); }
.ov-funnel-row:nth-of-type(6) .ov-funnel-bar i { background: var(--teal-deep); }
.ov-funnel-val { font-weight: 700; font-size: 14.5px; min-width: 52px; text-align: right; }
.ov-funnel-pct { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 46px; text-align: right; }

/* ---------- Trend chart (inline SVG) ---------- */
.ov-trend-svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.ov-line-sends, .ov-line-opens, .ov-line-clicks {
  fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
}
.ov-line-sends { stroke: var(--chart-1); }
.ov-line-opens { stroke: var(--chart-2); }
.ov-line-clicks { stroke: var(--chart-5); }
.ov-dot-sends { fill: var(--chart-1); }
.ov-dot-opens { fill: var(--chart-2); }
.ov-dot-clicks { fill: var(--chart-5); }
.ov-axis { stroke: var(--line); stroke-width: 1; }
.ov-grid { stroke: var(--clouds); stroke-width: 1; }
.ov-axis-label { fill: var(--muted); font-size: 11px; font-family: var(--text-font); }
.ov-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.ov-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.ov-legend-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.ov-sw-sends { background: var(--chart-1); }
.ov-sw-opens { background: var(--chart-2); }
.ov-sw-clicks { background: var(--chart-5); }

/* ---------- Channel bars (sends by campaign) ---------- */
.ov-channel-row { padding: 10px 0; }
.ov-channel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.ov-channel-label { font-weight: 600; font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.ov-channel-val { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ov-channel-bar { display: block; height: 12px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.ov-channel-bar i { display: block; height: 100%; border-radius: 999px; }
.ov-channel-row:nth-of-type(1) .ov-channel-bar i { background: var(--chart-1); }
.ov-channel-row:nth-of-type(2) .ov-channel-bar i { background: var(--chart-3); }
/* (Round 23: .ov-channel-sub is gone — its only user was the removed
 * "Campaign performance at a glance" card. The .ov-channel-row /
 * -head / -label / -val / -bar rules stay: the Analytics products
 * bars, the Campaigns report rates and the Verification rows use
 * them.) */

/* Chart text (round 14, Nia 2026-12-05): bar values, axis labels and
 * grid lines are 13px — the 11px grey text was unreadable. The fill
 * attributes in the SVG are the fallback; these rules win. */
.ov-chart-val { fill: #4A5568; }
.ov-chart-axis { fill: #7F8C8D; }
.ov-chart-grid { stroke: #e5e7eb; }
.ov-chart-overall { fill: var(--teal-deep); }
.ov-insight-row td { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.ov-insight {
  background: var(--teal-soft); border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 14.5px; line-height: 1.5;
}
.ov-insight strong { font-weight: 700; }

/* ---------- Goals ---------- */
.ov-goal { padding: 14px 0; border-top: 1px solid var(--line); }
.ov-goal:first-of-type { border-top: none; padding-top: 6px; }
.ov-goal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ov-goal-label { font-weight: 600; font-size: 15px; }
.ov-goal-pill {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; border-radius: 999px;
  padding: 4px 11px; white-space: nowrap;
}
.ov-goal-pill.on-track { background: var(--success-soft); color: var(--success); }
.ov-goal-pill.at-risk { background: var(--attention-soft); color: var(--attention); }
.ov-goal-pill.off-track { background: var(--danger-soft); color: var(--danger); }
.ov-goal-bar { height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.ov-goal-fill { display: block; height: 100%; border-radius: 999px; }
/* Fill classes match the JS, which emits ov-goal-<status> (see the
 * goals loop: "ov-goal-" + gStatus with "_" turned into "-"). */
.ov-goal-fill.ov-goal-on-track { background: var(--success); }
.ov-goal-fill.ov-goal-at-risk { background: var(--attention); }
.ov-goal-fill.ov-goal-off-track { background: var(--danger); }
.ov-goal-count { color: var(--muted); font-size: 14px; }

/* ---------- Donuts (replies by intent / audience verification) ---------- */
.ov-donut-body { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.ov-donut-link, .ov-health-link { display: block; color: inherit; text-decoration: none; }
.ov-donut-link:hover, .ov-health-link:hover { text-decoration: none; }
.ov-donut-svg { display: block; flex: 0 0 auto; width: 180px; height: 180px; margin: 10px auto 4px; }
.ov-donut-track { fill: none; stroke: var(--bg-soft); }
.ov-donut-seg { fill: none; }
.ov-seg-interested { stroke: var(--success); }
.ov-seg-not-interested { stroke: var(--concrete); }
.ov-seg-ooo { stroke: var(--info-bright); }
.ov-seg-unsubscribe { stroke: var(--danger-bright); }
.ov-seg-valid { stroke: var(--success); }
.ov-seg-risky { stroke: var(--attention-bright); }
.ov-seg-invalid { stroke: var(--danger-bright); }
.ov-donut-total { font-family: var(--text-font); font-size: 26px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.ov-donut-total-label { font-family: var(--text-font); font-size: 12px; fill: var(--muted); text-anchor: middle; }
.ov-donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.ov-legend-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14.5px; }
.ov-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.ov-legend-label { flex: 1; min-width: 0; }
.ov-legend-val { font-weight: 600; white-space: nowrap; }
.ov-legend-pct { color: var(--muted); white-space: nowrap; }
.ov-dot-interested { background: var(--success); }
.ov-dot-not-interested { background: var(--concrete); }
.ov-dot-ooo { background: var(--info-bright); }
.ov-dot-unsubscribe { background: var(--danger-bright); }
.ov-dot-valid { background: var(--success); }
.ov-dot-risky { background: var(--attention-bright); }
.ov-dot-invalid { background: var(--danger-bright); }
.ov-legend-count { margin-left: auto; font-weight: 600; white-space: nowrap; }
.ov-score { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ov-score-num { font-size: 28px; font-weight: 700; color: var(--success); line-height: 1; }
.ov-score-label { color: var(--muted); font-size: 14px; }

/* ---------- Sending health ---------- */
.ov-health .status-pill { margin: 2px 0 10px; }
.ov-health-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ov-health-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.ov-health-dot.ok { background: var(--success-bright); }
.ov-health-dot.attention { background: var(--attention); }
.ov-health-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* ---------- Sending health score (Item 4) ---------- */
.ov-health-score { display: flex; align-items: center; gap: 14px; margin: 12px 0 6px; }
.ov-health-gauge { width: 92px; height: 92px; flex: 0 0 auto; }
.ov-health-score-title { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.ov-health-score-body .panel-note { margin: 0; }
.ov-health-score-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ov-health-score-row span:first-child { font-weight: 600; }
.ov-health-score-weight { color: var(--muted); white-space: nowrap; }

/* ---------- Explainer / insight cards ---------- */
.ov-insights { margin: 16px 0 28px; }
.ov-insights-title { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.ov-insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ov-insight-card { border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.ov-insight-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.ov-insight-stat { font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.ov-insight-card p { margin: 8px 0; font-size: 14.5px; line-height: 1.5; }
.ov-insight-card p:last-child { margin-bottom: 0; }
.ov-insight-card a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.ov-insight-card a:hover { text-decoration: underline; }
.ov-insight-card.tone-good { background: var(--success-soft); }
.ov-insight-card.tone-attention { background: var(--attention-soft); }
.ov-insight-card.tone-info { background: var(--info-soft); }
/* Red text on the light red background (Nia 2026-12-04: behind-goal
 * revenue reads red). Links keep their own var(--teal-deep) colour:
 * an element's own color beats the inherited card colour, so "Plan
 * the next campaign" stays green. */
.ov-insight-card.tone-bad { background: var(--danger-soft); color: var(--danger); }

/* ================================================================
   Campaigns page (campaigns reference, Nia 2026-12-04 19:53 EST)
   Same shell as the Overview. The perf + types + CTA row is a grid
   (.cmp-mid: 2fr perf | 1fr side column with types + CTA stacked).
   Floats were removed 2026-12-04 — they resolved against the
   Overview 2-col grid tracks and squeezed the right column to ~170px
   at 1382px. DOM order must be perf, types, CTA, recent.
   ================================================================ */

/* ---------- Campaigns head ---------- */
.cmp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.cmp-title { font-size: 30px; font-weight: 800; color: var(--navy); margin: 0; }
.cmp-sub { color: var(--text-soft); font-size: 15px; margin: 6px 0 0; }
.cmp-create-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: var(--success); color: #fff; border: none; border-radius: 10px;
  padding: 11px 18px; font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none;
}
.cmp-create-btn:hover { background: var(--success-bright); color: #fff; }
.cmp-create-btn:active, .cmp-create-btn:focus-visible { background: var(--success-bright); color: #fff; }
.cmp-create-btn svg { width: 18px; height: 18px; display: block; }

/* New campaign form button (round 6): the form's button is a plain
   .btn.btn-primary (app.js ~9244: <button class="btn btn-primary"
   type="button" data-camp-create>), the same classes as the sign-in
   button — so it is scoped by its own data-camp-create attribute,
   no markup change, and .btn-primary itself is untouched (the
   sign-in button keeps its teal .auth-submit gradient). Same green
   as the other create-campaign buttons (.ov-create-btn,
   .cmp-create-btn): Nephritis #27AE60, Emerald
   #2ECC71 on hover/focus/active, white text. --success /
   --success-bright are the green used everywhere, so
   both themes get the same green. */
.btn.btn-primary[data-camp-create] { background: var(--success); color: #fff; }
.btn.btn-primary[data-camp-create]:hover,
.btn.btn-primary[data-camp-create]:focus-visible,
.btn.btn-primary[data-camp-create]:active { background: var(--success-bright); color: #fff; }

/* ---------- Campaigns hero (dark navy -> teal gradient) ---------- */
/* GRADIENT 2 of 3 in this file (see .auth-submit, .hero-wash). */
.cmp-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #060D18 0%, #0A1F2E 55%, #0B3B34 130%);
  border-radius: 20px; padding: 30px 36px; margin-bottom: 24px;
}
.cmp-hero-eyebrow { color: var(--teal-bright); font-size: 12px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; margin: 0 0 10px; }
.cmp-hero-title { color: #fff; font-size: 26px; font-weight: 500; line-height: 1.15; margin: 0 0 8px; }
.cmp-hero-sub { color: rgba(255, 255, 255, .85); font-size: 15px; margin: 0; max-width: 520px; }
.cmp-hero-art { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; pointer-events: none; }
.cmp-hero-art svg { width: 100%; height: 100%; display: block; }

/* ---------- Campaign KPI cards ---------- */
/* Same grid pattern as .ov-glance-card: icon | stacked text | chevron. */
.cmp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.cmp-kpi-card {
  /* Round 19 (2026-12-05, Nia): minmax(0, 1fr) — the text column
     must shrink below its content size. With a plain 1fr the nowrap
     delta pill forced the track wider than the 2-column card and the
     whole page scrolled sideways on mobile. */
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto auto;
  column-gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--card-border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 20px; min-width: 0;
  text-decoration: none; color: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cmp-kpi-card:hover { border-color: #BFE9E2; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.cmp-kpi-icon { grid-row: 1 / 4; grid-column: 1; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.cmp-kpi-icon svg { width: 22px; height: 22px; display: block; }
.cmp-kpi-icon-teal { background: #14B8A6; }
.cmp-kpi-icon-blue { background: #3498DB; }
.cmp-kpi-icon-green { background: #27AE60; }
.cmp-kpi-icon-purple { background: #9B59B6; }
.cmp-kpi-label { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 600; color: var(--text-soft); margin: 0; min-width: 0; }
.cmp-kpi-value { grid-column: 2; grid-row: 2; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.2; margin: 2px 0; min-width: 0; }
.cmp-kpi-delta {
  /* Round 20 (2026-12-05, Nia): the pill wraps at ALL widths, not just
     mobile. On desktop at 1382px the text column is ~123px but the
     Spanish pill ("▲ +0 % frente a los últimos 30 días", ~216px) and
     even the English one (~144px) are wider, so nowrap clipped the
     pill inside the card. max-width/min-width cap it at its track;
     overflow-wrap is insurance for the narrowest phones. */
  grid-column: 2; grid-row: 3; justify-self: start;
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  background: rgba(46, 204, 113, .14); color: #1E8449;
  border-radius: 999px; padding: 3px 8px; white-space: normal; max-width: 100%; min-width: 0; overflow-wrap: break-word;
}
.cmp-kpi-chevron { grid-column: 3; grid-row: 1 / 4; color: var(--muted); display: flex; align-self: center; justify-self: end; font-size: 18px; }
.cmp-kpi-chevron svg { width: 18px; height: 18px; display: block; }

/* Mid row: 2fr performance chart | 1fr side column (types + CTA).
   minmax(0, …) lets both columns shrink instead of overflowing. */
.cmp-mid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
.cmp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cmp-perf { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 0; min-width: 0; }
.cmp-perf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cmp-perf-head h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cmp-perf-head > svg, .cmp-perf-head h3 svg { width: 20px; height: 20px; color: var(--teal-deep); display: block; flex: 0 0 auto; }
.cmp-perf-head .cmp-perf-toggle { margin-left: auto; }
.cmp-perf-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cmp-perf-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-perf-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.cmp-perf-toggle { display: inline-flex; gap: 2px; background: var(--search-bg); border-radius: 999px; padding: 3px; flex: 0 0 auto; }
.cmp-perf-toggle button { border: none; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.cmp-perf-toggle button:hover { color: var(--teal-deep); }
.cmp-perf-toggle button.active { background: var(--navy); color: #fff; }
.cmp-perf-chart { position: relative; }
.cmp-perf-chart svg { width: 100%; height: auto; display: block; }
.cmp-perf-tooltip {
  position: absolute; background: #fff; border: 1px solid var(--card-border);
  border-radius: 10px; box-shadow: var(--shadow); padding: 10px 12px;
  font-size: 13px; z-index: 5; pointer-events: none; min-width: 110px;
}
.cmp-perf-tooltip strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.cmp-perf-tooltip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ---------- Campaign types donut (side column, under perf row) ---------- */
.cmp-types {
  background: #fff; border: 1px solid var(--card-border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 0; min-width: 0;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
}
.cmp-types h3 { grid-column: 1 / -1; margin: 0 0 10px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cmp-types h3 svg { width: 20px; height: 20px; color: var(--teal-deep); display: block; flex: 0 0 auto; }
.cmp-types-donut { grid-column: 1; width: 150px; height: 150px; }
.cmp-types-donut svg { width: 100%; height: 100%; display: block; }
.cmp-types-legend { grid-column: 2; min-width: 0; }
.cmp-types-legend > div { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.cmp-types-legend > div > span:last-child { margin-left: auto; font-weight: 700; padding-left: 12px; }
.cmp-types-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

/* Round 19 (2026-12-05, Nia): the flat teal Campaigns CTA box
   was removed entirely — the "New campaign" form below it is the
   only creation entry now. */

/* ---------- Recent campaigns table ---------- */
.cmp-recent { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.cmp-recent-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cmp-recent-head h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cmp-recent-head h3 svg { width: 20px; height: 20px; color: var(--teal-deep); display: block; flex: 0 0 auto; }
.cmp-recent-head a { color: var(--teal-deep); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cmp-recent-head a:hover { text-decoration: underline; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th {
  text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 12px; border-bottom: 1px solid var(--card-border); white-space: nowrap;
}
.cmp-table th:last-child { text-align: right; }
.cmp-table td { padding: 14px 12px; border-bottom: 1px solid #F2F4F7; vertical-align: middle; }
.cmp-table td:last-child { text-align: right; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { font-weight: 700; }
.cmp-table td:first-child small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.cmp-type-pill {
  display: inline-flex; font-size: 12px; font-weight: 600;
  background: rgba(52, 152, 219, .12); color: #2471A3;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
/* Dot via ::before (inline-block) so .cmp-status works whether the
   JS puts the class on the <td> or on a <span> inside it. */
.cmp-status { color: #1E8449; font-weight: 600; white-space: nowrap; }
.cmp-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #27AE60; margin-right: 8px; vertical-align: middle; }
div.cmp-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; position: relative; }
td.cmp-actions { text-align: right; }
td.cmp-actions .cmp-kebab { margin-left: 8px; }
.cmp-view-report {
  background: #fff; border: 1px solid #D5D8DC; border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.cmp-view-report:hover { border-color: var(--teal); color: var(--teal-deep); }
.cmp-kebab { background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.cmp-kebab:hover { color: var(--ink); background: var(--search-bg); }
.cmp-kebab svg { width: 18px; height: 18px; display: block; }
.cmp-kebab-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--card-border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; min-width: 170px; }
.cmp-kebab-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--ink); border-radius: 8px; cursor: pointer; white-space: nowrap; }
.cmp-kebab-menu button:hover { background: var(--search-bg); }

/* ---------- Overview + Campaigns responsive ---------- */
@media (max-width: 1100px) {
  /* Four glance cards squeeze below ~1100px: two across until the
   * narrow breakpoint takes over. */
  .ov-glance-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* (Round 23: the .ov-charts / .ov-funnel mobile rules are gone —
   * the funnel left the Overview.) */
  .ov-insights-grid { grid-template-columns: 1fr; }
  .aud-charts, .ver-charts { grid-template-columns: 1fr; }
  .cmp-report-charts { grid-template-columns: 1fr; }
  .cmp-report-funnel { grid-row: span 1; }
  .ov-greeting { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ov-greeting-title { font-size: 26px; }
  .ov-banner { padding: 26px 22px; }
  .ov-banner-title { font-size: 24px; }
  .ov-banner-art { display: none; }
  /* Round 22 (2026-12-05, Nia, her phone): the glance cards go ONE
     column on mobile — full-width, stacked, like the Campaigns KPI
     cards. This supersedes round 18 item 2(b) (2 columns x 4 rows):
     at phone width the 2-column cards squeezed the 22px figures and
     the labels/subs wrapped awkwardly. */
  .ov-glance-grid { grid-template-columns: 1fr; }
  /* Round 24 (2026-12-05, Nia): the two Overview chart cards
     ("Revenue and orders over time", "Email volume and
     deliverability") are hidden on mobile only — desktop keeps
     them. The mobile Overview is hero + glance cards + insights +
     logo-only footer. (display: none removes the box entirely, so
     no orphaned gap is left where the charts were.) */
  .ov-charts2 { display: none; }
  .cmp-kpis { grid-template-columns: repeat(2, 1fr); }
  /* Round 19 (2026-12-05, Nia): at 2-column width the delta pill
     ("▲ +0% vs last 30 days", nowrap) forced the card wider than its
     column and the page scrolled sideways. The pill now wraps inside
     its column; tighter padding + a smaller value give the text
     column room. The perf head wraps too so its toggle can't force
     the mid grid wider than the screen. */
  .cmp-kpi-card { padding: 16px; }
  .cmp-kpi-value { font-size: 22px; }
  .cmp-kpi-delta { white-space: normal; font-size: 11px; line-height: 1.35; }
  .cmp-perf-head { flex-wrap: wrap; }
  .cmp-mid { grid-template-columns: 1fr; }
  .cmp-hero { padding: 26px 22px; }
  .cmp-hero-title { font-size: 24px; }
  .cmp-hero-art { display: none; }
  .cmp-recent { overflow-x: auto; }
  .cmp-table { min-width: 680px; }
  /* Round 25 (2026-12-05, Nia, her phone): Campaigns page mobile
     fixes. (1) The green "Create Campaign" button at the top right
     of the Campaigns head is removed on mobile — it was clipped at
     the screen's right edge ("Create Campaign" ran past the screen).
     Desktop keeps it. (2) With the button gone, the subtitle under
     "Campaigns" extends full width at the bottom of the heading
     area: the head stacks (block) so the title column takes the full
     width, and the extra right padding on the subtitle — on top of
     the container's 16px — keeps the text from running to the right
     edge of the screen. */
  .cmp-create-btn { display: none; }
  .cmp-head { display: block; }
  .cmp-sub { padding-right: 16px; }
  /* (3) Campaign Types: the legend sits BELOW the pie on mobile
     (pie on top, legend underneath) instead of squeezed to its
     right in a cramped two-column layout. Desktop keeps the
     side-by-side layout. */
  .cmp-types { grid-template-columns: 1fr; justify-items: center; }
  .cmp-types-donut { grid-column: 1; }
  .cmp-types-legend { grid-column: 1; width: 100%; }
  /* (4) Campaign Performance: no data tooltip on top of the chart
     lines on mobile — tapping a point left the tooltip box covering
     the lines. The tooltip element stays in the DOM (hidden), and
     desktop hover still shows it. */
  .cmp-perf-tooltip { display: none; }
}
@media (max-width: 480px) {
  .ov-page .card { padding: 20px 16px; }
  /* Round 22 (2026-12-05, Nia, her phone): the 8 glance cards go ONE
     column on phones — full-width, stacked, like the Campaigns KPI
     cards (her screenshot). This supersedes round 18 item 2(b)
     (2 columns x 4 rows). The figures are also sized down so the
     cards breathe: value 20px, label 12px, sub 11px, icon 36px. */
  .ov-glance-grid { grid-template-columns: 1fr; }
  .ov-glance-card { padding: 14px; }
  .ov-glance-card-link { grid-template-columns: 36px 1fr auto; }
  .ov-glance-icon { width: 36px; height: 36px; }
  .ov-glance-icon svg { width: 18px; height: 18px; }
  .ov-glance-label { font-size: 12px; }
  .ov-glance-value { font-size: 20px; }
  .ov-glance-card .ov-glance-sub { font-size: 11px; }
  .ov-banner { padding: 26px 20px; }
  .ov-banner-title { font-size: 22px; }
  .ov-banner-logo { width: 150px; }
  .ov-funnel-row { grid-template-columns: 72px 1fr auto auto; gap: 8px; }
  .ov-donut-body { flex-direction: column; align-items: center; }
  .ov-donut-legend { width: 100%; }
  .cmp-kpis { grid-template-columns: 1fr; }
  .cmp-hero { padding: 26px 20px; }
  .cmp-hero-title { font-size: 22px; }
}

/* ---------- Living greeting (Nia 2026-12-04) ---------- */
/* Round 12 (2026-12-05): "Maestro" is plain theme text — no gradient,
   no radiant colour. var(--ink) is dark slate, so it reads as plain
   black. Line 2 (the rotating insight) is a quiet secondary line,
   clearly smaller than the 30px greeting. Line 2 fades between real
   data-driven insights. */
.ov-greet-name {
  color: var(--ink);
}
.ov-greeting-line2 { transition: opacity .45s ease; font-size: 15px; line-height: 1.5; }
.ov-greeting-line2.ov-greet-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .ov-greeting-line2 { transition: none; }
}

/* ---------- Tour modal + post-login prompt (Nia 2026-12-04) ---------- */
/* Overlay + centered card; the tour plays in an iframe that is
   unloaded on close so playback stops. Full-width on narrow
   screens, centered card on wide screens. */
.tour-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 22, 40, .72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.tour-modal {
  /* Round 6 re-measurement: this is the ONLY width rule for the modal.
     At a 1382px viewport min(680px, calc(100vw - 48px)) = min(680, 1334)
     = 680px (global border-box, so padding/border are inside the 680;
     the flex overlay only centers it). The ~889px live reading cannot
     come from this rule. Belt and braces: the same cap as max-width,
     plus min-width: 0 so the flex min-content floor (iframe content)
     can never push the item past its width. */
  position: relative; width: min(680px, calc(100vw - 48px)); max-width: min(680px, calc(100vw - 48px)); min-width: 0; max-height: calc(100vh - 96px);
  background: var(--card); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
/* Round 14: the iframe is taller (was min(382px, calc(100vh -
   160px))) so the compact tour fits WITH the 1-6 step map shown:
   at Nia's 1382x662 window this is min(560, 542) = 542px, under the
   modal max-height of 566px, and it holds the ~510px compact
   content (header + map ~139px + stage + controls). */
.tour-modal iframe { display: block; width: 100%; height: min(560px, calc(100vh - 120px)); border: 0; background: #0A1628; }
.tour-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  font: inherit; font-size: 18px; font-weight: 700; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.tour-modal-close:hover { border-color: var(--teal); color: var(--teal-deep); }
/* Post-login prompt: bottom-right card asking whether to watch. */
.tour-prompt {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: min(360px, calc(100vw - 40px));
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 18px;
}
.tour-prompt-title { font-family: var(--text-font); font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.tour-prompt-text { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.tour-prompt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 480px) {
  /* Round 22 (2026-12-05, Nia, her phone): the tour modal goes
     nearly full-screen on phones so the stacked tour fits without
     the checklist running past the bottom — the 560px iframe cap
     was too short once the stage stacks to one column. The iframe
     scrolls internally if a stage is still taller; the close button
     stays put (absolute in the modal, above the iframe). Desktop
     modal sizing (680px / min(560px, calc(100vh - 120px))) is
     untouched — this block only applies below 480px. */
  .tour-modal-overlay { padding: 12px; }
  .tour-modal { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .tour-modal iframe { height: calc(100vh - 56px); height: calc(100dvh - 56px); }
}

/* Login page tour link (Nia 2026-12-04): "See how it works" under
   the sign-in form; opens the tour modal. */
.auth-tour-link { text-align: center; margin: 18px 0 0; }
.auth-tour-link-btn {
  background: none; border: none; padding: 0; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--teal-deep);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.auth-tour-link-btn:hover { color: var(--teal); }

/* ---------- Analytics & Reports + AI Assistant (round 5) ---------- */
.an-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.an-head-actions { display: flex; gap: 12px; align-items: center; flex: 0 0 auto; flex-wrap: wrap; }
.an-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.an-kpis-4 { margin-bottom: 0; }
.an-kpi { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.an-kpi:hover { transform: translateY(-2px); border-color: var(--teal); }
a.an-kpi-link { text-decoration: none; display: block; color: inherit; }
a.an-kpi-link:hover .an-kpi-value { color: var(--teal-deep); }
/* Round 12: every figure card carries a teal icon chip; the
 * strongest / weakest funnel step gets a tinted left border, and
 * the plain-language takeaway sits under the strip. */
.an-kpi-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teal); margin-bottom: 10px; }
.an-kpi-icon svg { display: block; }
.an-kpi-best { border-left: 3px solid var(--success); }
.an-kpi-watch { border-left: 3px solid var(--attention); }
.an-takeaway { margin: -8px 0 24px; font-size: 14px; }
.an-kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.an-kpi-value { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.2; margin: 4px 0 2px; overflow-wrap: anywhere; }
.an-kpi-sub { font-size: 13px; color: var(--muted); }
.an-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.an-card { margin-bottom: 24px; }
.an-card h3 { margin: 0 0 4px; font-size: 17px; }
.an-attr-models { display: inline-flex; gap: 2px; background: var(--search-bg); border-radius: 999px; padding: 3px; flex-wrap: wrap; margin: 8px 0 4px; }
.an-attr-models button { border: none; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.an-attr-models button:hover { color: var(--teal-deep); }
.an-attr-models button.active { background: var(--navy); color: #fff; }
.an-attr-expl { margin-top: 10px; }
/* Round 12: recommendations are a 2-column card grid, not a flat
 * list; the featured top pick spans both columns with a teal
 * border and a "Top pick" pill. Applied recs get a green left
 * border (and stay visible with the Applied pill); the Copied
 * button turns green. */
.ai-recs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.ai-rec { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 18px; border: 1px solid var(--card-border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.ai-rec:hover { transform: translateY(-2px); border-color: var(--teal); }
.ai-rec-featured { grid-column: 1 / -1; border: 2px solid var(--teal); }
.ai-top-pick { display: inline-block; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.ai-rec-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teal); flex: 0 0 auto; }
.ai-rec-icon svg { display: block; }
.ai-rec-body { flex: 1; min-width: 0; }
.ai-rec-body h4 { margin: 0 0 6px; font-size: 15px; }
.ai-rec-body p { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ai-rec-body p.ai-rec-effect { font-weight: 600; color: var(--ink); }
.ai-rec-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.ai-rec-applied { opacity: .75; border-left: 3px solid var(--success); }
.ai-apply-btn { background: var(--success); color: #fff; border: none; border-radius: 10px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ai-apply-btn:hover { background: var(--success-bright); }
.ai-dismiss-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ai-dismiss-btn:hover { color: var(--ink); border-color: var(--muted); }
.ai-restore-btn { background: none; border: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--teal-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ai-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.ai-steps li { display: flex; gap: 12px; align-items: center; }
.ai-steps li > span:nth-child(2) { flex: 1; min-width: 0; }
.ai-step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--concrete); flex: 0 0 auto; }
.ai-step-dot.done { background: var(--success); }
.ai-step-dot.progress { background: var(--attention); }
.ai-subject { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--card-border); }
.ai-subject:last-child { border-bottom: none; }
.ai-subject-text { font-size: 15px; font-weight: 600; }
.ai-copy-btn { background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex: 0 0 auto; }
.ai-copy-btn:hover { border-color: var(--teal); color: var(--teal-deep); }
.ai-copy-btn.ai-copy-copied { background: var(--success); border-color: var(--success); color: #fff; }
.ai-learned { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 860px) {
  /* Round 26 (2026-12-05, Nia): Analytics figure cards go one per row on
     mobile — the main strip, Traffic, Carts and AI-status .an-kpis rows
     all stack full-width instead of 2-across. */
  .an-kpis { grid-template-columns: 1fr; }
  .an-grid-2 { grid-template-columns: 1fr; }
  .ai-recs-grid { grid-template-columns: 1fr; }
  .ai-rec { flex-direction: column; }
}
