/* =============================================================
   Campaign Command Center™ — a Metrix product
   Isolated stylesheet: used ONLY by /dashboard-preview,
   /command-center and /command-center-proposal.
   Production site styles are untouched.
   ============================================================= */

:root {
  /* Brand (aligned to campaign site) */
  --cc-navy-950: #071626;
  --cc-navy-900: #0a1f36;
  --cc-navy-800: #0F2C4A;
  --cc-navy-700: #143559;
  --cc-blue-600: #2f6fb3;
  --cc-blue-500: #4a8fd9;
  --cc-blue-400: #7cb1e8;
  --cc-blue-100: #e3eefb;
  --cc-red-500: #cf2435;
  --cc-red-600: #a01525;
  --cc-gold-500: #b07d10;
  --cc-gold-400: #d9a520;
  --cc-gold-100: #f9efd6;

  /* Validated categorical chart palette (fixed order, never cycled) */
  --cc-cat-1: #2f6fb3;
  --cc-cat-2: #cf2435;
  --cc-cat-3: #b07d10;
  --cc-cat-4: #0f9d8a;
  --cc-cat-5: #7a4fc9;
  --cc-cat-6: #c2417f;

  /* Status (reserved — never used as series colors) */
  --cc-good: #1a7f4b;
  --cc-good-bg: #e7f5ec;
  --cc-warn: #b07d10;
  --cc-warn-bg: #f9efd6;
  --cc-serious: #cf2435;
  --cc-serious-bg: #fbe9eb;
  --cc-info-bg: #e3eefb;

  /* Neutrals */
  --cc-ink-900: #14181f;
  --cc-ink-700: #2a2f3a;
  --cc-ink-500: #50596a;
  --cc-ink-400: #6b7585;
  --cc-ink-300: #95a0b2;
  --cc-line: #e5e8ef;
  --cc-line-soft: #eef0f5;
  --cc-bg: #f6f7fa;
  --cc-surface: #ffffff;

  --cc-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cc-font-display: "Libre Baskerville", Georgia, serif;

  --cc-radius-sm: 8px;
  --cc-radius-md: 12px;
  --cc-radius-lg: 16px;
  --cc-radius-xl: 24px;

  --cc-shadow-xs: 0 1px 2px rgba(15,44,74,.05);
  --cc-shadow-sm: 0 2px 6px rgba(15,44,74,.06), 0 1px 2px rgba(15,44,74,.04);
  --cc-shadow-md: 0 6px 18px -4px rgba(15,44,74,.10), 0 2px 6px rgba(15,44,74,.05);
  --cc-shadow-lg: 0 20px 48px -16px rgba(15,44,74,.22), 0 6px 14px -4px rgba(15,44,74,.08);

  --cc-sidebar-w: 248px;
  --cc-topbar-h: 60px;
}

/* ---------- Base ---------- */
body.cc-body, .cc-body *, .cc-body *::before, .cc-body *::after { box-sizing: border-box; }
body.cc-body {
  margin: 0;
  font-family: var(--cc-font);
  background: var(--cc-bg);
  color: var(--cc-ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
.cc-body a { color: var(--cc-blue-600); text-decoration: none; }
.cc-body a:hover { text-decoration: underline; }
.cc-body :focus-visible { outline: 3px solid var(--cc-blue-500); outline-offset: 2px; border-radius: 4px; }
.cc-body h1, .cc-body h2, .cc-body h3, .cc-body h4 { margin: 0; line-height: 1.25; color: var(--cc-navy-900); font-weight: 700; }

.cc-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.cc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--cc-navy-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.cc-skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  .cc-body *, .cc-body *::before, .cc-body *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- App layout ---------- */
.cc-app { display: flex; min-height: 100vh; }

.cc-sidebar {
  width: var(--cc-sidebar-w);
  background: linear-gradient(180deg, var(--cc-navy-800) 0%, var(--cc-navy-950) 100%);
  color: #d7e2ef;
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 90;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.cc-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cc-sidebar-brand .cc-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--cc-blue-500), var(--cc-navy-700));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.cc-sidebar-brand b { color: #fff; font-size: 13.5px; display: block; line-height: 1.2; }
.cc-sidebar-brand span { font-size: 11px; color: #8fa5bd; display: block; }

.cc-nav { flex: 1; overflow-y: auto; padding: 12px 10px 12px; scrollbar-width: thin; }
.cc-nav-group { margin-bottom: 14px; }
.cc-nav-label {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: #7d92aa; padding: 6px 10px 4px; font-weight: 600;
}
.cc-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; color: #c2d1e2;
  font-size: 13.5px; font-weight: 500; margin: 1px 0;
  transition: background .15s ease, color .15s ease;
}
.cc-nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.cc-nav a[aria-current="page"] {
  background: rgba(74,143,217,.18); color: #fff;
  box-shadow: inset 2px 0 0 var(--cc-blue-500);
}
.cc-nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.cc-nav a .cc-nav-badge {
  margin-left: auto; background: var(--cc-red-500); color: #fff;
  font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px;
}
.cc-sidebar-foot {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px; color: #7d92aa;
}
.cc-sidebar-foot b { color: #b9c9da; }

.cc-main {
  flex: 1; min-width: 0; margin-left: var(--cc-sidebar-w);
  display: flex; flex-direction: column; min-height: 100vh;
}

/* ---------- Topbar ---------- */
.cc-topbar {
  height: var(--cc-topbar-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cc-line);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 80;
}
.cc-menu-btn {
  display: none; background: none; border: 1px solid var(--cc-line);
  border-radius: 8px; width: 38px; height: 38px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--cc-ink-700);
}
.cc-search {
  flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px;
  background: var(--cc-bg); border: 1px solid var(--cc-line);
  border-radius: 9px; padding: 7px 12px; color: var(--cc-ink-400);
  font-size: 13px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.cc-search:hover { border-color: var(--cc-blue-400); }
.cc-search kbd {
  margin-left: auto; font-family: inherit; font-size: 11px;
  background: #fff; border: 1px solid var(--cc-line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; color: var(--cc-ink-400);
}
.cc-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.cc-role-switch { position: relative; }
.cc-role-btn {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--cc-line); border-radius: 999px;
  padding: 5px 12px 5px 5px; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--cc-ink-700);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.cc-role-btn:hover { border-color: var(--cc-blue-400); box-shadow: var(--cc-shadow-sm); }
.cc-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--cc-blue-600), var(--cc-navy-800));
  flex: none;
}
.cc-role-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 300px;
  background: #fff; border: 1px solid var(--cc-line); border-radius: 14px;
  box-shadow: var(--cc-shadow-lg); padding: 8px; z-index: 120;
  animation: cc-pop .16s cubic-bezier(.2,.9,.3,1.2);
}
.cc-role-menu[hidden] { display: none; }
.cc-role-menu .cc-role-menu-head {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cc-ink-400); font-weight: 700; padding: 8px 10px 4px;
}
.cc-role-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; text-align: left; font-family: inherit;
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
}
.cc-role-item:hover { background: var(--cc-bg); }
.cc-role-item[aria-checked="true"] { background: var(--cc-blue-100); }
.cc-role-item b { display: block; font-size: 13px; color: var(--cc-ink-900); }
.cc-role-item span { display: block; font-size: 11.5px; color: var(--cc-ink-400); }
.cc-role-item .cc-check { margin-left: auto; color: var(--cc-blue-600); visibility: hidden; }
.cc-role-item[aria-checked="true"] .cc-check { visibility: visible; }

.cc-iconbtn {
  position: relative; width: 38px; height: 38px; border-radius: 9px;
  background: #fff; border: 1px solid var(--cc-line); cursor: pointer;
  display: grid; place-items: center; color: var(--cc-ink-500);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cc-iconbtn:hover { border-color: var(--cc-blue-400); box-shadow: var(--cc-shadow-sm); }
.cc-iconbtn .cc-dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px;
  background: var(--cc-red-500); border-radius: 50%; border: 2px solid #fff;
}

/* ---------- Content ---------- */
.cc-content { flex: 1; padding: 22px 24px 48px; max-width: 1440px; width: 100%; margin: 0 auto; }
.cc-page-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.cc-page-head h1 { font-size: 21px; letter-spacing: -.01em; }
.cc-page-head .cc-sub { color: var(--cc-ink-400); font-size: 13px; margin-top: 3px; }
.cc-page-head .cc-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.cc-demo-strip {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, var(--cc-navy-800), var(--cc-navy-700));
  color: #dbe6f2; font-size: 12.5px; padding: 8px 20px;
}
.cc-demo-strip b { color: var(--cc-gold-400); }
.cc-demo-strip a { color: #fff; text-decoration: underline; text-underline-offset: 2px; margin-left: auto; white-space: nowrap; }

/* ---------- Buttons ---------- */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  border-radius: 9px; padding: 9px 16px; cursor: pointer;
  border: 1px solid transparent; transition: all .16s ease;
  text-decoration: none !important; line-height: 1.2;
}
.cc-btn-primary, .cc-body a.cc-btn-primary {
  background: linear-gradient(180deg, var(--cc-navy-700), var(--cc-navy-800));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(15,44,74,.25);
}
.cc-btn-primary:hover, .cc-body a.cc-btn-primary:hover { background: linear-gradient(180deg, #1a4470, var(--cc-navy-700)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), var(--cc-shadow-md); transform: translateY(-1px); color: #fff; }
.cc-btn-red, .cc-body a.cc-btn-red {
  background: linear-gradient(180deg, #e02b3d, var(--cc-red-500));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 2px 6px rgba(207,36,53,.35);
}
.cc-btn-red:hover, .cc-body a.cc-btn-red:hover { background: linear-gradient(180deg, var(--cc-red-500), var(--cc-red-600)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 16px rgba(207,36,53,.4); transform: translateY(-1px); color: #fff; }
.cc-btn-ghost, .cc-body a.cc-btn-ghost { background: #fff; border-color: var(--cc-line); color: var(--cc-ink-700); }
.cc-btn-ghost:hover, .cc-body a.cc-btn-ghost:hover { border-color: var(--cc-blue-500); color: var(--cc-navy-800); box-shadow: var(--cc-shadow-sm); background: #f8fbff; }
.cc-btn-gold, .cc-body a.cc-btn-gold {
  background: linear-gradient(180deg, #f0c04a, var(--cc-gold-400) 45%, var(--cc-gold-500));
  color: #2b1e03;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 6px rgba(176,125,16,.35);
}
.cc-btn-gold:hover, .cc-body a.cc-btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px rgba(176,125,16,.4); transform: translateY(-1px); color: #2b1e03; filter: brightness(1.04); }
.cc-btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.cc-btn:active { transform: translateY(0); }
.cc-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Cards & grids ---------- */
.cc-grid { display: grid; gap: 16px; }
.cc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cc-grid-23 { grid-template-columns: 2fr 1fr; }
.cc-grid-32 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1100px) {
  .cc-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cc-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cc-grid-23, .cc-grid-32 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cc-grid-4, .cc-grid-3, .cc-grid-2 { grid-template-columns: 1fr; }
}

.cc-card {
  background: var(--cc-surface); border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-lg); box-shadow: var(--cc-shadow-xs);
  padding: 18px; min-width: 0;
}
.cc-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cc-card-head h3 { font-size: 14.5px; font-weight: 700; }
.cc-card-head .cc-hint { font-size: 12px; color: var(--cc-ink-400); }
.cc-card-head .cc-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* Stat tiles */
.cc-stat { position: relative; overflow: hidden; }
.cc-stat .cc-stat-label { font-size: 12px; font-weight: 600; color: var(--cc-ink-400); display: flex; align-items: center; gap: 7px; }
.cc-stat .cc-stat-value {
  font-size: 27px; font-weight: 800; color: var(--cc-navy-900);
  letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums;
}
.cc-stat .cc-stat-delta { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.cc-delta-up { color: var(--cc-good); }
.cc-delta-down { color: var(--cc-serious); }
.cc-delta-flat { color: var(--cc-ink-400); }
.cc-stat .cc-stat-spark { position: absolute; right: 14px; bottom: 14px; opacity: .9; }

/* Chips, pills, badges */
.cc-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}
.cc-pill-good { background: var(--cc-good-bg); color: var(--cc-good); }
.cc-pill-warn { background: var(--cc-warn-bg); color: #7a5608; }
.cc-pill-bad  { background: var(--cc-serious-bg); color: var(--cc-red-600); }
.cc-pill-info { background: var(--cc-info-bg); color: var(--cc-blue-600); }
.cc-pill-neutral { background: var(--cc-line-soft); color: var(--cc-ink-500); }
.cc-pill-gold { background: var(--cc-gold-100); color: #7a5608; }

/* Tables */
.cc-table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.cc-table th {
  text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--cc-ink-400); font-weight: 700; padding: 8px 10px;
  border-bottom: 1px solid var(--cc-line);
  white-space: nowrap;
}
.cc-table td { padding: 10px; border-bottom: 1px solid var(--cc-line-soft); vertical-align: middle; }
.cc-table tbody tr { transition: background .12s ease; }
.cc-table tbody tr:hover { background: #fafbfd; }
.cc-table td .cc-cell-main { font-weight: 600; color: var(--cc-ink-900); }
.cc-table td .cc-cell-sub { font-size: 11.5px; color: var(--cc-ink-400); }
.cc-num { font-variant-numeric: tabular-nums; text-align: right; }
th.cc-num { text-align: right; }

/* Progress */
.cc-progress { height: 7px; background: var(--cc-line-soft); border-radius: 999px; overflow: hidden; }
.cc-progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: var(--cc-blue-600);
  transition: width .8s cubic-bezier(.25,.8,.3,1);
}
.cc-progress.cc-progress-gold > span { background: linear-gradient(90deg, var(--cc-gold-400), var(--cc-gold-500)); }
.cc-progress.cc-progress-red > span { background: var(--cc-red-500); }
.cc-progress.cc-progress-teal > span { background: var(--cc-cat-4); }

/* Lists */
.cc-list { list-style: none; margin: 0; padding: 0; }
.cc-list li { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--cc-line-soft); }
.cc-list li:last-child { border-bottom: 0; }
.cc-list .cc-li-icon {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 13px;
}
.cc-list .cc-li-body { min-width: 0; flex: 1; }
.cc-list .cc-li-title { font-weight: 600; font-size: 13px; color: var(--cc-ink-900); }
.cc-list .cc-li-sub { font-size: 12px; color: var(--cc-ink-400); overflow-wrap: anywhere; }
.cc-list .cc-li-meta { margin-left: auto; font-size: 11.5px; color: var(--cc-ink-300); white-space: nowrap; padding-top: 2px; }

/* Tabs & segmented control */
.cc-tabs { display: flex; gap: 4px; background: var(--cc-line-soft); border-radius: 10px; padding: 3px; width: max-content; max-width: 100%; overflow-x: auto; }
.cc-tab {
  border: 0; background: none; font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--cc-ink-500); padding: 6px 13px; border-radius: 8px; cursor: pointer;
  white-space: nowrap; transition: all .15s ease;
}
.cc-tab[aria-selected="true"] { background: #fff; color: var(--cc-navy-800); box-shadow: var(--cc-shadow-sm); }

/* Filter row above charts (dataviz spec) */
.cc-filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }

/* ---------- Charts ---------- */
.cc-chart { position: relative; width: 100%; }
.cc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cc-chart text { font-family: var(--cc-font); }
.cc-axis-text { font-size: 10.5px; fill: var(--cc-ink-300); }
.cc-grid-line { stroke: var(--cc-line-soft); stroke-width: 1; }
.cc-direct-label { font-size: 11px; font-weight: 600; fill: var(--cc-ink-500); }

.cc-tooltip {
  position: absolute; pointer-events: none; z-index: 60;
  background: var(--cc-navy-900); color: #fff; border-radius: 9px;
  padding: 8px 11px; font-size: 12px; line-height: 1.45;
  box-shadow: var(--cc-shadow-lg); opacity: 0; transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
  max-width: 240px; white-space: nowrap;
}
.cc-tooltip.cc-show { opacity: 1; transform: translateY(0); }
.cc-tooltip .cc-tt-title { font-weight: 700; font-size: 11.5px; color: #b9cde2; margin-bottom: 3px; }
.cc-tooltip .cc-tt-row { display: flex; align-items: center; gap: 7px; }
.cc-tooltip .cc-tt-swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.cc-tooltip .cc-tt-val { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 12px; }

.cc-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--cc-ink-500); margin-top: 10px; }
.cc-legend .cc-lg-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.cc-legend .cc-lg-swatch { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Map ---------- */
.cc-map-svg path.cc-precinct {
  stroke: #fff; stroke-width: 1.5; cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.cc-map-svg path.cc-precinct:hover { opacity: .82; }
.cc-map-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--cc-ink-400); margin-top: 10px; flex-wrap: wrap; }
.cc-map-legend .cc-ml-step { width: 26px; height: 10px; border-radius: 2px; }

/* ---------- Modal / drawer ---------- */
.cc-overlay {
  position: fixed; inset: 0; background: rgba(7,22,38,.45);
  backdrop-filter: blur(3px); z-index: 150;
  display: grid; place-items: center; padding: 20px;
  animation: cc-fade .18s ease;
}
.cc-overlay[hidden] { display: none; }
.cc-modal {
  background: #fff; border-radius: 18px; box-shadow: var(--cc-shadow-lg);
  width: 100%; max-width: 560px; max-height: 86vh; overflow: auto;
  padding: 24px; animation: cc-pop .2s cubic-bezier(.2,.9,.3,1.15);
}
.cc-modal h2 { font-size: 17px; margin-bottom: 4px; }
.cc-modal .cc-modal-sub { color: var(--cc-ink-400); font-size: 13px; margin-bottom: 16px; }
.cc-modal-close {
  float: right; background: var(--cc-line-soft); border: 0; width: 30px; height: 30px;
  border-radius: 8px; cursor: pointer; color: var(--cc-ink-500); font-size: 15px;
}
.cc-modal-close:hover { background: var(--cc-line); }

/* Command palette */
.cc-palette {
  background: #fff; border-radius: 16px; box-shadow: var(--cc-shadow-lg);
  width: 100%; max-width: 520px; overflow: hidden;
  animation: cc-pop .18s cubic-bezier(.2,.9,.3,1.15);
  align-self: start; margin-top: 10vh;
}
.cc-palette input {
  width: 100%; border: 0; border-bottom: 1px solid var(--cc-line);
  padding: 16px 18px; font-family: inherit; font-size: 15px; outline: none;
}
.cc-palette-list { max-height: 320px; overflow: auto; padding: 8px; }
.cc-palette-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; font-family: inherit; text-align: left;
  padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 13.5px;
  color: var(--cc-ink-700);
}
.cc-palette-item:hover, .cc-palette-item.cc-active { background: var(--cc-blue-100); color: var(--cc-navy-800); }
.cc-palette-item .cc-pi-kind { margin-left: auto; font-size: 11px; color: var(--cc-ink-300); }

/* Toasts */
.cc-toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.cc-toast {
  background: var(--cc-navy-900); color: #fff; border-radius: 12px;
  padding: 12px 16px; font-size: 13px; box-shadow: var(--cc-shadow-lg);
  display: flex; align-items: center; gap: 10px; max-width: 340px;
  animation: cc-slide-up .25s cubic-bezier(.2,.9,.3,1.1);
}
.cc-toast .cc-toast-icon { color: var(--cc-gold-400); }

/* Notifications drawer */
.cc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 92vw;
  background: #fff; z-index: 160; box-shadow: var(--cc-shadow-lg);
  display: flex; flex-direction: column;
  animation: cc-slide-left .22s cubic-bezier(.25,.9,.3,1);
}
.cc-drawer-head {
  padding: 16px 18px; border-bottom: 1px solid var(--cc-line);
  display: flex; align-items: center; gap: 10px;
}
.cc-drawer-head h2 { font-size: 15px; }
.cc-drawer-body { flex: 1; overflow: auto; padding: 10px 18px; }

/* Leaderboard */
.cc-rank {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; flex: none;
  background: var(--cc-line-soft); color: var(--cc-ink-500);
}
.cc-rank-1 { background: linear-gradient(135deg, #f3d27a, var(--cc-gold-500)); color: #3d2b02; }
.cc-rank-2 { background: linear-gradient(135deg, #e3e7ee, #b9c2cf); color: #333c49; }
.cc-rank-3 { background: linear-gradient(135deg, #e8c39a, #b9835a); color: #46280d; }

.cc-badge-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 12px; border: 1px solid var(--cc-line);
  text-align: center; background: #fff; transition: all .15s ease;
}
.cc-badge-tile:hover { transform: translateY(-2px); box-shadow: var(--cc-shadow-md); border-color: var(--cc-gold-400); }
.cc-badge-tile .cc-badge-emoji { font-size: 24px; }
.cc-badge-tile b { font-size: 11.5px; color: var(--cc-ink-700); }
.cc-badge-tile span { font-size: 10.5px; color: var(--cc-ink-400); }
.cc-badge-tile.cc-locked { opacity: .45; filter: grayscale(1); }

/* Kanban-ish approval queue */
.cc-queue-card {
  border: 1px solid var(--cc-line); border-radius: 12px; padding: 12px;
  background: #fff; box-shadow: var(--cc-shadow-xs); margin-bottom: 10px;
}

/* Chat */
.cc-chat { display: flex; flex-direction: column; gap: 10px; }
.cc-msg { display: flex; gap: 10px; max-width: 85%; }
.cc-msg .cc-msg-bubble {
  background: var(--cc-line-soft); border-radius: 4px 14px 14px 14px;
  padding: 9px 13px; font-size: 13px;
}
.cc-msg.cc-mine { margin-left: auto; flex-direction: row-reverse; }
.cc-msg.cc-mine .cc-msg-bubble { background: var(--cc-navy-800); color: #fff; border-radius: 14px 4px 14px 14px; }
.cc-msg .cc-msg-meta { font-size: 10.5px; color: var(--cc-ink-300); margin-top: 3px; }

/* AI assistant */
.cc-ai-suggest {
  border: 1px dashed var(--cc-blue-400); background: var(--cc-blue-100);
  border-radius: 12px; padding: 12px 14px; font-size: 13px;
}
.cc-ai-bubble {
  background: linear-gradient(135deg, #f5f9ff, #eef3fb);
  border: 1px solid var(--cc-line); border-radius: 4px 16px 16px 16px;
  padding: 14px 16px; font-size: 13.5px; line-height: 1.65;
}
.cc-ai-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--cc-line); border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 500; color: var(--cc-ink-700);
  cursor: pointer; font-family: inherit; transition: all .15s ease;
}
.cc-ai-chip:hover { border-color: var(--cc-blue-500); color: var(--cc-blue-600); box-shadow: var(--cc-shadow-sm); }

/* Docs grid */
.cc-doc-tile {
  display: flex; gap: 12px; align-items: center; border: 1px solid var(--cc-line);
  border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer;
  transition: all .15s ease;
}
.cc-doc-tile:hover { border-color: var(--cc-blue-400); box-shadow: var(--cc-shadow-sm); transform: translateY(-1px); }
.cc-doc-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 16px; flex: none;
}

/* Permission matrix */
.cc-perm-yes { color: var(--cc-good); font-weight: 700; }
.cc-perm-no { color: var(--cc-ink-300); }

/* Health score ring wrap */
.cc-health { display: flex; align-items: center; gap: 18px; }
.cc-health-detail { flex: 1; min-width: 0; }
.cc-health-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin: 7px 0; }
.cc-health-row .cc-hr-label { width: 96px; color: var(--cc-ink-500); flex: none; }
.cc-health-row .cc-progress { flex: 1; }
.cc-health-row .cc-hr-val { width: 34px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Empty state */
.cc-empty { text-align: center; padding: 36px 16px; color: var(--cc-ink-400); }
.cc-empty .cc-empty-icon { font-size: 30px; margin-bottom: 8px; }
.cc-empty b { display: block; color: var(--cc-ink-700); margin-bottom: 4px; font-size: 14px; }

/* Animations */
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-pop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cc-slide-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cc-slide-left { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes cc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cc-anim-rise { animation: cc-rise .4s cubic-bezier(.25,.8,.3,1) both; }
.cc-anim-rise-1 { animation-delay: .04s; } .cc-anim-rise-2 { animation-delay: .09s; }
.cc-anim-rise-3 { animation-delay: .14s; } .cc-anim-rise-4 { animation-delay: .19s; }
.cc-anim-rise-5 { animation-delay: .24s; } .cc-anim-rise-6 { animation-delay: .29s; }

/* ---------- Mobile ---------- */
@media (max-width: 920px) {
  .cc-sidebar { transform: translateX(-100%); box-shadow: none; }
  .cc-sidebar.cc-open { transform: none; box-shadow: var(--cc-shadow-lg); }
  .cc-main { margin-left: 0; }
  .cc-menu-btn { display: inline-flex; }
  .cc-content { padding: 16px 14px 40px; }
  .cc-search { max-width: none; }
  .cc-search kbd { display: none; }
  .cc-role-btn .cc-role-btn-label { display: none; }
  .cc-btn { padding: 11px 16px; }   /* larger touch targets in the field */
  .cc-sidebar-scrim {
    position: fixed; inset: 0; background: rgba(7,22,38,.4); z-index: 85;
    animation: cc-fade .2s ease;
  }
  .cc-demo-strip .cc-demo-detail { display: none; }
}

/* =============================================================
   DATA-SOURCE TOGGLE  (demo ⇄ live)
   ============================================================= */
.cc-modeswitch {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--cc-line-soft); border: 1px solid var(--cc-line);
  border-radius: 999px; padding: 3px;
}
.cc-mode-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--cc-ink-400); background: transparent; border: 0;
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.cc-mode-btn:hover { color: var(--cc-ink-700); }
.cc-mode-btn.cc-mode-on {
  background: var(--cc-surface); color: var(--cc-ink-900);
  box-shadow: var(--cc-shadow-xs);
}
.cc-mode-btn:focus-visible { outline: 2px solid var(--cc-blue-500); outline-offset: 2px; }
.cc-mode-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--cc-ink-300); }
.cc-mode-btn.cc-mode-on .cc-mode-dot-demo { background: var(--cc-gold-400); }
.cc-mode-btn.cc-mode-on .cc-mode-dot-live {
  background: var(--cc-good); box-shadow: 0 0 0 3px rgba(26,127,75,.18);
  animation: cc-pulse 2s ease-in-out infinite;
}
.cc-mode-abbr { display: none; }

@keyframes cc-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(26,127,75,.18); }
  50%      { box-shadow: 0 0 0 5px rgba(26,127,75,.06); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-mode-btn.cc-mode-on .cc-mode-dot-live { animation: none; }
}

/* Top strip changes character with the mode. */
.cc-strip-link {
  margin-left: auto; white-space: nowrap; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 600; padding: 4px 12px;
  transition: background .16s ease;
}
.cc-strip-link:hover { background: rgba(255,255,255,.22); }
.cc-live-strip { background: linear-gradient(90deg, #0b3d2c, #12563c); color: #d6efe2; }
.cc-live-strip b { color: #7ee2b0; }

.cc-livedot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #45d38a; box-shadow: 0 0 0 3px rgba(69,211,138,.25);
  animation: cc-pulse-live 2s ease-in-out infinite;
}
@keyframes cc-pulse-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(69,211,138,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(69,211,138,.05); }
}
@media (prefers-reduced-motion: reduce) { .cc-livedot { animation: none; } }

/* Live banner inside a view. */
.cc-livebar {
  display: flex; align-items: center; gap: 12px;
  background: var(--cc-good-bg); border: 1px solid #bfe3cd;
  border-radius: var(--cc-radius-md); padding: 12px 16px; margin-bottom: 16px;
  font-size: 13px; color: #15603c; line-height: 1.55;
}
.cc-livebar b { color: #0d4a2d; }
.cc-livebar .cc-btn { margin-left: auto; flex: none; }

/* Nav: modules with no live source read as "off". */
.cc-nav a.cc-nav-off { opacity: .45; }
.cc-nav a .cc-nav-badge-off {
  background: transparent; color: #7d92aa; border: 1px solid rgba(255,255,255,.2);
  font-size: 9px; padding: 0 5px; line-height: 15px;
}
.cc-nav a .cc-nav-badge-bonus { background: var(--cc-gold-500); }
.cc-nav a .cc-nav-badge-real  { background: var(--cc-good); }

/* Stat tile the viewer isn't permitted to see. */
.cc-stat-locked { background: var(--cc-line-soft); border-style: dashed; }
.cc-stat-lockval { font-size: 26px !important; }

.cc-conn-list li { padding: 8px 0; }

/* Admin-gated dataset. NOT an empty state — a permissions state. */
.cc-locked-panel { text-align: center; padding: 30px 18px; }
.cc-locked-icon { font-size: 30px; margin-bottom: 10px; }
.cc-locked-panel b { display: block; font-size: 14.5px; color: var(--cc-ink-900); margin-bottom: 6px; }
.cc-locked-panel p {
  font-size: 13px; color: var(--cc-ink-500); line-height: 1.6;
  max-width: 46ch; margin: 0 auto 14px;
}

/* A column the viewer isn't permitted to read — unknown, not false. */
.cc-unknown {
  display: inline-block; min-width: 18px;
  color: var(--cc-ink-400); font-weight: 600; cursor: help;
}

/* Live data before purchase: offered, not hidden — the lock IS the pitch. */
.cc-mode-btn.cc-mode-locked { opacity: 0.72; }
.cc-mode-btn.cc-mode-locked:hover { opacity: 1; }
.cc-mode-lock { font-size: 10px; line-height: 1; flex: none; }

/* "No live data source connected" — the honest module state. */
.cc-notconn {
  background: var(--cc-surface); border: 1px dashed var(--cc-line);
  border-radius: var(--cc-radius-lg); padding: 40px 28px; text-align: center;
}
.cc-notconn-icon {
  font-size: 40px; line-height: 1; margin-bottom: 14px;
  filter: grayscale(1); opacity: .7;
}
.cc-notconn h2 {
  font-family: var(--cc-font-display); font-size: 21px;
  color: var(--cc-ink-900); margin-bottom: 10px;
}
.cc-notconn p {
  font-size: 13.5px; color: var(--cc-ink-500); line-height: 1.7;
  max-width: 62ch; margin: 0 auto 10px;
}
.cc-notconn-lead { font-size: 14.5px !important; color: var(--cc-ink-700) !important; }
.cc-notconn-lead b { color: var(--cc-blue-600); }
.cc-notconn-list {
  text-align: left; max-width: 46ch; margin: 20px auto 0;
  background: var(--cc-line-soft); border-radius: var(--cc-radius-md); padding: 16px 18px;
}
.cc-notconn-list b {
  display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--cc-ink-400); margin-bottom: 8px;
}
.cc-notconn-list ul { margin: 0; padding-left: 18px; }
.cc-notconn-list li { font-size: 13px; color: var(--cc-ink-700); line-height: 1.6; margin-bottom: 4px; }
.cc-notconn-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px;
}
.cc-notconn-foot {
  font-size: 12px !important; color: var(--cc-ink-400) !important;
  border-top: 1px solid var(--cc-line); padding-top: 16px; margin-top: 24px !important;
}
.cc-notconn-inline { padding: 26px 22px; }
.cc-notconn-inline h2 { font-size: 17px; }

/* Skeleton while the live query is in flight. */
.cc-skel { position: relative; overflow: hidden; }
.cc-skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: cc-shimmer 1.3s infinite;
}
.cc-skel-line { height: 11px; border-radius: 6px; background: var(--cc-line-soft); margin-bottom: 12px; }
.cc-skel-line.cc-skel-lg { height: 26px; }
@keyframes cc-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .cc-skel::after { animation: none; } }

/* =============================================================
   AI MEETING SECRETARY  (bonus add-on)
   ============================================================= */
.cc-addon-bar {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(100deg, var(--cc-navy-800), var(--cc-navy-700));
  color: #dbe6f2; border-radius: var(--cc-radius-lg);
  padding: 18px 22px; font-size: 13.5px; line-height: 1.6;
}
.cc-addon-bar b { color: #fff; }
.cc-addon-chip {
  flex: none; align-self: flex-start;
  background: var(--cc-gold-400); color: var(--cc-navy-950);
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
.cc-addon-price {
  flex: none; text-align: right; padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.cc-addon-price b { display: block; font-size: 20px; color: var(--cc-gold-400); }
.cc-addon-price span { font-size: 11.5px; color: #9fb4ca; }

.cc-mt-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cc-mt-section { padding-top: 14px; border-top: 1px solid var(--cc-line-soft); margin-top: 14px; }
.cc-mt-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.cc-mt-section > b {
  display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--cc-ink-400); margin-bottom: 8px;
}
.cc-mt-section p { font-size: 13.5px; color: var(--cc-ink-700); line-height: 1.7; margin: 0; }
.cc-mt-decisions { margin: 0; padding-left: 18px; }
.cc-mt-decisions li { font-size: 13.5px; color: var(--cc-ink-700); line-height: 1.65; margin-bottom: 6px; }
.cc-mt-risk {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: var(--cc-radius-sm); padding: 10px 12px; margin-bottom: 8px;
  font-size: 13px; color: var(--cc-ink-700); line-height: 1.55;
}
.cc-mt-risk .cc-pill { flex: none; }
.cc-mt-risk-critical { background: var(--cc-serious-bg); }
.cc-mt-risk-medium   { background: var(--cc-warn-bg); }

.cc-mt-talk { display: flex; flex-direction: column; gap: 10px; }
.cc-mt-talk-row { display: flex; align-items: center; gap: 10px; }
.cc-mt-talk-pct { font-size: 12px; font-weight: 700; color: var(--cc-ink-700); width: 30px; text-align: right; }
.cc-mt-quote { font-style: italic; color: var(--cc-ink-400) !important; margin-top: 3px; }
.cc-mt-jump {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px;
  background: var(--cc-line-soft); color: var(--cc-blue-600);
  border: 0; border-radius: 6px; padding: 3px 8px; cursor: pointer;
  transition: background .16s ease;
}
.cc-mt-jump:hover { background: var(--cc-blue-100); }
.cc-mt-hint { font-size: 12px; color: var(--cc-ink-400); line-height: 1.55; margin-top: 12px; }

.cc-mt-transcript { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.cc-mt-line { display: flex; gap: 12px; }
.cc-mt-at {
  flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--cc-ink-300); padding-top: 2px; width: 42px;
}
.cc-mt-line b { font-size: 12.5px; color: var(--cc-ink-900); }
.cc-mt-line p { font-size: 13.5px; color: var(--cc-ink-700); line-height: 1.6; margin: 2px 0 0; }

/* The "watch it work" simulation. */
.cc-mt-sim-stage {
  display: flex; align-items: center; gap: 12px;
  background: var(--cc-navy-900); color: #fff;
  border-radius: var(--cc-radius-md); padding: 16px 18px; flex-wrap: wrap;
}
.cc-mt-sim-stage b { font-size: 14px; }
.cc-mt-sim-stage span { font-size: 12px; color: #9fb4ca; width: 100%; }
.cc-mt-sim-dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--cc-red-500);
  animation: cc-pulse-rec 1.4s ease-in-out infinite;
}
.cc-mt-sim-dot.cc-mt-sim-done { background: #45d38a; animation: none; }
@keyframes cc-pulse-rec { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .cc-mt-sim-dot { animation: none; } }

.cc-mt-sim-log {
  margin-top: 12px; max-height: 190px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 7px;
}
.cc-mt-sim-line {
  font-size: 12.5px; color: var(--cc-ink-700); line-height: 1.5;
  background: var(--cc-line-soft); border-radius: var(--cc-radius-sm);
  padding: 8px 11px; animation: cc-rise .3s ease both;
}

/* Toggle switch (AI joins this call). */
.cc-switch { display: inline-flex; align-items: center; cursor: pointer; flex: none; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch-track {
  display: block; width: 40px; height: 23px; border-radius: 999px;
  background: var(--cc-line); transition: background .18s ease; position: relative;
}
.cc-switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; box-shadow: var(--cc-shadow-xs);
  transition: transform .18s ease;
}
.cc-switch input:checked + .cc-switch-track { background: var(--cc-good); }
.cc-switch input:checked + .cc-switch-track .cc-switch-thumb { transform: translateX(17px); }
.cc-switch input:focus-visible + .cc-switch-track { outline: 2px solid var(--cc-blue-500); outline-offset: 2px; }

/* ---------- Mobile: data toggle + add-on bar + meetings ----------
   The toggle is the point of this screen, so on a phone it keeps its
   space and the search field yields — collapsing to its icon rather
   than pushing the topbar past the viewport. */
@media (max-width: 920px) {
  .cc-mode-full { display: none; }
  .cc-mode-abbr { display: inline; }
  .cc-mode-btn { padding: 7px 10px; }
  .cc-search { min-width: 0; }
  .cc-search > span:nth-of-type(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cc-livebar { flex-wrap: wrap; }
  .cc-livebar .cc-btn { margin-left: 0; }
  .cc-addon-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cc-addon-price {
    padding-left: 0; text-align: left;
    border-left: 0; border-top: 1px solid rgba(255,255,255,.16);
    padding-top: 14px; width: 100%;
  }
  .cc-notconn { padding: 32px 18px; }
  .cc-notconn-actions .cc-btn { width: 100%; }
}
@media (max-width: 560px) {
  /* Search becomes an icon button; Ctrl-K and the palette still work. */
  .cc-search { flex: 0 0 auto; max-width: none; padding: 8px 10px; }
  .cc-search > span:nth-of-type(2) { display: none; }
}
@media (max-width: 420px) {
  .cc-topbar { gap: 7px; padding: 0 12px; }
  .cc-topbar-right { gap: 7px; }
  .cc-modeswitch { padding: 2px; }
  .cc-mode-btn { padding: 6px 8px; font-size: 11.5px; gap: 4px; }
  .cc-strip-link { font-size: 11px; padding: 3px 9px; }
  .cc-mt-at { width: 36px; }
  .cc-addon-chip { font-size: 9px; padding: 4px 8px; }
}

/* =============================================================
   LANDING + PROPOSAL PAGES (marketing surfaces)
   ============================================================= */
.ccl-hero {
  position: relative; overflow: hidden; color: #eaf1f9;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(74,143,217,.28), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(207,36,53,.16), transparent 55%),
    linear-gradient(168deg, var(--cc-navy-900) 0%, var(--cc-navy-800) 55%, #0c2540 100%);
  padding: 96px 0 72px;
}
.ccl-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 90%);
}
.ccl-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(217,165,32,.5); background: rgba(217,165,32,.12);
  color: var(--cc-gold-400); border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ccl-hero h1 {
  font-family: var(--cc-font-display); color: #fff;
  font-size: clamp(2.1rem, 4.6vw + .4rem, 3.6rem); line-height: 1.12;
  letter-spacing: -.015em; margin: 20px 0 16px; max-width: 20ch;
}
.ccl-hero .ccl-lede { font-size: clamp(1.02rem, .5vw + .9rem, 1.2rem); line-height: 1.7; color: #bfd0e2; max-width: 62ch; }
.ccl-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.ccl-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 2; }
@media (min-width: 640px) { .ccl-container { padding: 0 1.5rem; } }
@media (min-width: 920px) { .ccl-container { padding: 0 2rem; } }

.ccl-section { padding: 72px 0; }
.ccl-section-head { max-width: 720px; margin-bottom: 40px; }
.ccl-eyebrow {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--cc-red-500); margin-bottom: 10px;
}
.ccl-section-head h2 { font-family: var(--cc-font-display); font-size: clamp(1.6rem, 2.4vw + .6rem, 2.3rem); letter-spacing: -.012em; margin-bottom: 12px; }
.ccl-section-head p { color: var(--cc-ink-500); font-size: 15.5px; line-height: 1.7; margin: 0; }

.ccl-browser {
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.55);
  background: var(--cc-bg);
}
.ccl-browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #0c2036; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ccl-browser-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.ccl-browser-url {
  flex: 1; max-width: 380px; margin: 0 auto; background: rgba(255,255,255,.09);
  border-radius: 7px; font-size: 11.5px; color: #9fb3c8; text-align: center; padding: 4px 12px;
}
.ccl-feature-card {
  background: #fff; border: 1px solid var(--cc-line); border-radius: 18px; padding: 26px;
  box-shadow: var(--cc-shadow-xs); transition: all .2s ease; height: 100%;
}
.ccl-feature-card:hover { transform: translateY(-3px); box-shadow: var(--cc-shadow-md); border-color: var(--cc-blue-400); }
.ccl-feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 19px; margin-bottom: 14px;
  background: var(--cc-blue-100); color: var(--cc-blue-600);
}
.ccl-feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.ccl-feature-card p { font-size: 13.5px; color: var(--cc-ink-500); line-height: 1.65; margin: 0; }

.ccl-price-card {
  background: #fff; border: 1px solid var(--cc-line); border-radius: 20px; padding: 30px;
  display: flex; flex-direction: column; position: relative; height: 100%;
}
.ccl-price-card.ccl-featured {
  border: 2px solid var(--cc-navy-800); box-shadow: var(--cc-shadow-lg);
}
.ccl-price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cc-gold-400), var(--cc-gold-500));
  color: #241a02; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 999px; padding: 5px 14px; white-space: nowrap;
}
.ccl-price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--cc-navy-900); }
.ccl-price small { font-size: 14px; font-weight: 600; color: var(--cc-ink-400); letter-spacing: 0; }
.ccl-price-card ul { list-style: none; margin: 18px 0 24px; padding: 0; flex: 1; }
.ccl-price-card ul li { display: flex; gap: 9px; font-size: 13.5px; color: var(--cc-ink-700); padding: 6px 0; line-height: 1.5; }
.ccl-price-card ul li::before { content: "✓"; color: var(--cc-good); font-weight: 800; flex: none; }

.ccl-compare-wrap { overflow-x: auto; border: 1px solid var(--cc-line); border-radius: 16px; background: #fff; }
.ccl-compare { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.ccl-compare th, .ccl-compare td { padding: 12px 16px; border-bottom: 1px solid var(--cc-line-soft); text-align: center; }
.ccl-compare th:first-child, .ccl-compare td:first-child { text-align: left; }
.ccl-compare thead th { background: var(--cc-navy-800); color: #fff; font-size: 12.5px; position: sticky; top: 0; }
.ccl-compare tbody tr:last-child td { border-bottom: 0; }

.ccl-timeline { position: relative; padding-left: 28px; }
.ccl-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--cc-line); }
.ccl-tl-item { position: relative; padding-bottom: 26px; }
.ccl-tl-item::before {
  content: ""; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--cc-blue-600);
}
.ccl-tl-item b { display: block; font-size: 14.5px; color: var(--cc-navy-900); }
.ccl-tl-item .ccl-tl-week { font-size: 11.5px; font-weight: 700; color: var(--cc-red-500); text-transform: uppercase; letter-spacing: .07em; }
.ccl-tl-item p { font-size: 13px; color: var(--cc-ink-500); margin: 4px 0 0; line-height: 1.6; }

.ccl-cta-band {
  background: linear-gradient(135deg, var(--cc-navy-900), var(--cc-navy-700));
  border-radius: 24px; padding: 52px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.ccl-cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 50% -30%, rgba(217,165,32,.25), transparent 70%);
}
.ccl-cta-band h2 { font-family: var(--cc-font-display); color: #fff; font-size: clamp(1.5rem, 2.4vw + .5rem, 2.1rem); margin-bottom: 10px; position: relative; }
.ccl-cta-band p { color: #b9cde2; max-width: 54ch; margin: 0 auto 26px; position: relative; }

.ccl-video {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, var(--cc-navy-800), var(--cc-navy-950));
  aspect-ratio: 16 / 9; display: grid; place-items: center; border: 1px solid var(--cc-line);
}
.ccl-video .ccl-play {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: grid; place-items: center; box-shadow: var(--cc-shadow-lg);
  transition: transform .2s ease; color: var(--cc-navy-800);
}
.ccl-video:hover .ccl-play { transform: scale(1.08); }

.ccl-stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .ccl-stat-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ccl-stat-band { grid-template-columns: 1fr 1fr; } }
.ccl-stat-cell { text-align: center; padding: 22px 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.ccl-stat-cell b { display: block; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ccl-stat-cell span { font-size: 12px; color: #9fb3c8; font-weight: 600; }

.ccl-shot-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ccl-shot {
  border: 1px solid var(--cc-line); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--cc-shadow-md);
}

.ccl-footer { background: var(--cc-navy-950); color: #8fa5bd; padding: 34px 0; font-size: 12.5px; }
.ccl-footer a { color: #c2d1e2; }

.ccl-metrix-badge {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px;
}
.ccl-metrix-badge .ccl-mx {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cc-blue-500), var(--cc-navy-700));
  color: #fff; font-size: 11px; font-weight: 800;
}
/* Real Metrix logo — white chip keeps brand colors legible on navy surfaces */
.ccl-metrix-logo {
  display: inline-flex; align-items: center; background: #fff;
  border-radius: 9px; padding: 6px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.ccl-metrix-logo img { height: 22px; width: auto; display: block; }
.ccl-metrix-logo.ccl-metrix-logo-lg { padding: 8px 14px; }
.ccl-metrix-logo.ccl-metrix-logo-lg img { height: 28px; }
/* Transparent variant — no chip; logo rendered white for navy surfaces */
.ccl-metrix-logo.ccl-metrix-logo-transparent { background: none; padding: 0; box-shadow: none; }
.ccl-metrix-logo.ccl-metrix-logo-transparent img { filter: brightness(0) invert(1); height: 30px; }
.ccl-metrix-logo.ccl-metrix-logo-transparent.ccl-metrix-logo-sm img { height: 24px; }
