/* ===== Sample dashboards page ===== */

:root {
  --ink: #141414;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  --blue: #0c28e1;
  --pad: clamp(1rem, 2.5vw, 2.25rem);
}

* { box-sizing: border-box; }

/* Baseline density: render at 90% on desktop (matches the main site) */
@media (min-width: 821px) {
  body { zoom: 0.9; }
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== Page header (portfolio shell) ===== */
.dash-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.7rem var(--pad);
  background: var(--blue);
  flex-wrap: wrap;
}

.dash-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  color: #ffffff;
  white-space: nowrap;
}

.dash-wordmark-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #ffffff;
}

.dash-switch {
  display: flex;
  gap: 0.35rem;
  padding: 0.28rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.dash-switch-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.dash-switch-btn:hover { background: rgba(255, 255, 255, 0.14); }

.dash-switch-btn.is-active {
  background: #ffffff;
  color: var(--blue);
}

.dash-switch-kicker {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.dash-switch-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.dash-sample-chip {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
}

.dash-back {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.92;
}

.dash-back:hover { opacity: 1; }

/* ===== Context strip ===== */
.dash-context {
  padding: 0.7rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  font-size: 0.92rem;
  color: var(--muted);
}

.dash-context strong { color: var(--ink); }

/* ===== Skin sections ===== */
.dash-main { min-height: 70vh; }

.dash-skin { display: none; }
.dash-skin.is-active { display: block; animation: dzFadeIn 0.3s ease; }

@keyframes dzFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.dz-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 55vh;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.dz-loader.is-on { display: flex; }

.dz-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #e4e6ea;
  border-top-color: var(--blue);
  animation: dzSpin 0.8s linear infinite;
}

@keyframes dzSpin { to { transform: rotate(360deg); } }

/* ===== Chart entrance animations (PBI-style) ===== */
@media (prefers-reduced-motion: no-preference) {
  .dz-anim-bar {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: dzGrowY 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }

  .dz-anim-fade { animation: dzChartFade 0.45s ease both; }

  .dz-anim-cell {
    transform-box: fill-box;
    transform-origin: center;
    animation: dzCellIn 0.35s ease both;
  }
}

@keyframes dzGrowY { from { transform: scaleY(0); } }
@keyframes dzChartFade { from { opacity: 0; } }
@keyframes dzCellIn { from { opacity: 0; transform: scale(0.55); } }

/* ===== Shared bits ===== */
.dz-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.dz-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.dz-hint { font-size: 0.76rem; font-weight: 500; color: var(--muted); }

.dz-card-note {
  font-size: 0.76rem;
  color: var(--muted);
}

.dz-scope {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.dz-scope button {
  border: 0;
  background: none;
  color: #1d4fd7;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 0.35rem;
  text-decoration: underline;
}

.dz-range {
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.38rem 0.55rem;
  cursor: pointer;
}

.dz-range-dark {
  background: #3b3a39;
  color: #ffffff;
  border-color: #4f4e4d;
}

/* chips / slicers */
.dz-chips {
  display: inline-flex;
  gap: 0.25rem;
  background: #eef1f5;
  border-radius: 999px;
  padding: 0.2rem;
}

.dz-chips button {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #55606e;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.dz-chips button:hover { color: #1f2a37; }
.dz-chips button.is-active { background: #ffffff; color: #141414; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }

.dz-chips-sub { margin-bottom: 0.65rem; }

.dz-chart { width: 100%; min-height: 190px; }
.dz-chart svg { display: block; width: 100%; height: auto; }

.dz-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 190px;
}

.dz-donut-stack { flex-direction: column; align-items: stretch; gap: 0.5rem; }

.dz-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  min-width: 150px;
  margin: 0;
  padding: 0;
}

.dz-donut-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
}

.dz-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.dz-legend-val {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dz-legend-pct {
  color: var(--muted);
  font-size: 0.76rem;
  min-width: 2.7rem;
  text-align: right;
}

.dz-table-wrap { overflow-x: auto; }

.dz-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  background: #1c1c1e;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.45rem 0.6rem;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.1s ease;
  max-width: 260px;
}

.dz-tooltip.is-on { opacity: 1; }

.dz-tooltip .tt-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.dz-tooltip .tt-row { display: block; opacity: 0.9; font-weight: 500; }

/* KPI deltas (shared) */
.kpi-delta.up { color: #157a3c; }
.kpi-delta.down { color: #b3261e; }
.kpi-delta.flat { color: var(--muted); }

/* ============================================================
   SKIN 1 — CRM & Ops (home services)
   ============================================================ */
.ghl-app {
  display: flex;
  background: #f5f7fa;
  min-height: 700px; /* fixed vertical rhythm — view switches don't reflow the shell */
}

.ghl-sidebar {
  flex: 0 0 176px;
  background: #101b30;
  color: #c6cfdd;
  padding: 1rem 0.7rem;
}

.ghl-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.1rem 0.3rem;
}

.ghl-nav { display: flex; flex-direction: column; gap: 0.2rem; }

.ghl-nav-item {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: #c6cfdd;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.ghl-nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }

.ghl-nav-item.is-active {
  background: #2563eb;
  color: #ffffff;
}

.ghl-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.9rem 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ghl-view { display: none; flex-direction: column; gap: 0.85rem; }
.ghl-view.is-active { display: flex; }

.ghl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.ghl-account { display: flex; flex-direction: column; }
.ghl-account strong { font-size: 1.05rem; }
.ghl-account span { font-size: 0.8rem; color: var(--muted); }

.ghl-topbar-right { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }

.ghl-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ghl-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ghl-kpi {
  background: #ffffff;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.ghl-kpi .kpi-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.ghl-kpi .kpi-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: 0.1rem;
}

.ghl-kpi .kpi-delta { font-size: 0.76rem; font-weight: 700; }

.ghl-card {
  background: #ffffff;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  min-width: 0;
}

.ghl-grid-3 {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr;
  gap: 0.85rem;
}

.ghl-grid-camps {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 0.85rem;
}

.ghl-grid-camps2 {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.85rem;
}

.dz-heat svg { display: block; width: 100%; max-width: 460px; height: auto; }

.dz-heat-note { font-size: 0.76rem; color: var(--muted); margin: 0.4rem 0 0; }
.dz-heat-note strong { color: var(--ink); }

/* pipeline funnel (horizontal bars, sequential ramp) */
.ghl-funnel { display: flex; flex-direction: column; gap: 0.42rem; }

.ghl-funnel-step { font-size: 0.79rem; }

.ghl-funnel-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 0.14rem;
}

.ghl-funnel-conv { font-weight: 700; color: #157a3c; }

.ghl-funnel-bar {
  height: 25px;
  border-radius: 4px;
  color: #10305e;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.5rem;
  white-space: nowrap;
  min-width: 4rem;
}

.ghl-funnel-bar.deep { color: #ffffff; }

.ghl-funnel-bar small { font-weight: 600; opacity: 0.75; }

.ghl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 620px;
}

.ghl-table th,
.ghl-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #edf1f6;
  white-space: nowrap;
}

.ghl-table th {
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.ghl-table th[data-sort] { cursor: pointer; }
.ghl-table th[data-sort]:hover { color: #1d4fd7; }
.ghl-table th.sort-asc::after { content: " ▲"; font-size: 0.6rem; }
.ghl-table th.sort-desc::after { content: " ▼"; font-size: 0.6rem; }

.ghl-table .num, .meta-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.ghl-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: #e8effc;
  color: #1d4fd7;
}

.ghl-type-badge.sms { background: #e7f6ec; color: #157a3c; }

.ghl-stage-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: #eef1f5;
  color: #45505e;
}

.ghl-stage-pill.s0 { background: #e8effc; color: #1d4fd7; }
.ghl-stage-pill.s1 { background: #fdf0dc; color: #9a5b00; }
.ghl-stage-pill.s2 { background: #f3e8fd; color: #6d28d9; }
.ghl-stage-pill.s3 { background: #e7f6ec; color: #157a3c; }
.ghl-stage-pill.s4 { background: #f0f0f1; color: #55606e; }

.ghl-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
}

.ghl-status.live { background: #e7f6ec; color: #157a3c; }
.ghl-status.paused { background: #f4f4f5; color: #6b6b6b; }

.ghl-export {
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1d4fd7;
  background: #e8effc;
  border: 0;
  border-radius: 7px;
  padding: 0.32rem 0.75rem;
  cursor: pointer;
}

.ghl-export:hover { background: #d9e5fa; }

/* ============================================================
   SKIN 2 — Paid Ads (fitness)
   ============================================================ */
.meta-app {
  background: #f0f2f5;
  padding: 0 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.meta-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  margin: 0 -1.1rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid #dadde1;
  flex-wrap: wrap;
}

.meta-account { display: flex; flex-direction: column; }

.meta-appname { font-weight: 700; font-size: 1.02rem; color: #050505; }
.meta-actname { font-size: 0.78rem; color: #65676b; }

.meta-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.meta-kpi {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  padding: 0.7rem 0.9rem;
}

.meta-kpi .kpi-label { display: block; font-size: 0.78rem; color: #65676b; font-weight: 600; }
.meta-kpi .kpi-value {
  display: block;
  font-size: 1.42rem;
  font-weight: 700;
  color: #050505;
  font-variant-numeric: tabular-nums;
  margin-top: 0.08rem;
}
.meta-kpi .kpi-delta { font-size: 0.76rem; font-weight: 700; }

.meta-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  padding: 0.85rem 1rem;
  min-width: 0;
}

.meta-metric-tabs { display: flex; gap: 0.25rem; }

.meta-metric-tabs button {
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: #65676b;
  background: #f0f2f5;
  border: 0;
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  cursor: pointer;
}

.meta-metric-tabs button.is-active { background: #1877f2; color: #ffffff; }

.meta-grid-3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.85rem;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 900px;
}

.meta-table th,
.meta-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid #ebedf0;
  text-align: left;
  white-space: nowrap;
}

.meta-table tbody tr { cursor: pointer; transition: background 0.1s ease; }
.meta-table tbody tr:hover { background: #f7f8fa; }
.meta-table tbody tr.is-selected { background: #e7f0fd; box-shadow: inset 3px 0 0 #1877f2; }
.meta-table tbody tr.is-off td { opacity: 0.5; }
.meta-table tbody tr.is-off .meta-toggle, .meta-table tbody tr.is-off .meta-delivery { opacity: 1; }

.meta-export {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #050505;
  background: #e4e6eb;
  border: 0;
  border-radius: 7px;
  padding: 0.34rem 0.8rem;
  cursor: pointer;
}

.meta-export:hover { background: #d8dadf; }

.meta-table thead th {
  font-size: 0.72rem;
  color: #65676b;
  font-weight: 700;
  border-bottom: 2px solid #dadde1;
  cursor: default;
}

.meta-table thead th[data-sort] { cursor: pointer; }
.meta-table thead th[data-sort]:hover { color: #1877f2; }
.meta-table thead th span { font-weight: 500; font-size: 0.66rem; }

.meta-table tfoot td {
  font-weight: 700;
  border-top: 2px solid #dadde1;
  border-bottom: 0;
  background: #fafbfc;
}

.meta-camp-name { font-weight: 600; color: #050505; }
.meta-camp-name small { display: block; font-weight: 500; color: #65676b; font-size: 0.72rem; }

.meta-delivery { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.78rem; }
.meta-delivery .dot { width: 8px; height: 8px; border-radius: 50%; background: #31a24c; }
.meta-delivery.off { color: #65676b; }
.meta-delivery.off .dot { background: #bcc0c4; }

/* iOS-style toggle */
.meta-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 0;
  background: #1877f2;
  cursor: pointer;
  transition: background 0.15s ease;
  flex: 0 0 auto;
}

.meta-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: left 0.15s ease;
}

.meta-toggle.off { background: #ced0d4; }
.meta-toggle.off::after { left: 2px; }

/* ============================================================
   SKIN 3 — Weekly BI report (e-commerce)
   ============================================================ */
.pbi-app {
  background: #eaeaea;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
}

.pbi-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #252423;
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  flex-wrap: wrap;
}

.pbi-title { font-weight: 600; font-size: 0.95rem; }

.pbi-canvas {
  padding: 0.85rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 auto;
}

.pbi-slicer-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pbi-slicer-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #605e5c;
}

.dz-chips-pbi { background: #ffffff; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.dz-chips-pbi button.is-active { background: #252423; color: #ffffff; }

.pbi-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}

.pbi-kpi {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.13);
  padding: 0.6rem 0.75rem;
  border-top: 3px solid #f2c811;
}

.pbi-kpi .kpi-label { display: block; font-size: 0.7rem; color: #605e5c; font-weight: 600; }
.pbi-kpi .kpi-value {
  display: block;
  font-size: 1.24rem;
  font-weight: 700;
  color: #252423;
  font-variant-numeric: tabular-nums;
  margin: 0.08rem 0 0.1rem;
}
.pbi-kpi .kpi-delta { font-size: 0.72rem; font-weight: 700; }
.pbi-kpi .kpi-spark { display: block; margin-top: 0.3rem; }
.pbi-kpi .kpi-spark svg { display: block; width: 100%; height: 22px; }

.pbi-tile {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.13);
  padding: 0.75rem 0.9rem;
  min-width: 0;
}

.pbi-grid-main {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 0.75rem;
}

.pbi-grid-4 {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.95fr 0.95fr;
  gap: 0.75rem;
}

.pbi-grid-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem;
}

.pbi-gauge svg { display: block; width: 100%; max-width: 250px; margin: 0 auto; height: auto; }

.pbi-whatif input[type="range"] {
  width: 100%;
  accent-color: #f2c811;
  margin: 0.15rem 0 0.55rem;
  cursor: pointer;
}

.pbi-whatif-read { font-size: 0.86rem; margin-bottom: 0.55rem; color: #454545; }
.pbi-whatif-read strong { font-size: 1.02rem; color: #252423; }

.pbi-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.pbi-notes li {
  padding-left: 0.8rem;
  border-left: 3px solid #f2c811;
}

.pbi-notes li strong { color: #252423; }
.pbi-notes li.warn { border-left-color: #d13438; }
.pbi-notes li.good { border-left-color: #107c10; }

.pbi-map svg { display: block; width: 100%; max-width: 430px; height: auto; }

.pbi-map-note { font-size: 0.72rem; color: #605e5c; margin-top: 0.35rem; }

.pbi-funnel { display: flex; flex-direction: column; gap: 0.4rem; }

.pbi-funnel-step { font-size: 0.78rem; }

.pbi-funnel-bar {
  height: 23px;
  border-radius: 3px;
  background: #2AA05A;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  white-space: nowrap;
  min-width: 3.4rem;
}

.pbi-funnel-meta {
  display: flex;
  justify-content: space-between;
  color: #605e5c;
  margin-bottom: 0.12rem;
}

.pbi-funnel-drop { font-size: 0.7rem; color: #d13438; font-weight: 600; }

.pbi-pagetabs {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: #f3f2f1;
  border-top: 1px solid #d2d0ce;
  padding: 0.3rem 1.1rem;
  font-size: 0.78rem;
}

.pbi-pagetab {
  padding: 0.28rem 0.8rem;
  border-radius: 3px 3px 0 0;
  font-weight: 600;
  color: #605e5c;
}

.pbi-pagetab.is-active { background: #ffffff; color: #252423; box-shadow: 0 -1px 2px rgba(0,0,0,0.08); }
.pbi-pagetab.is-disabled { opacity: 0.6; cursor: not-allowed; }

.pbi-pagecount { margin-left: auto; color: #605e5c; }

/* ===== Footer ===== */
.dash-footer {
  padding: 1.25rem var(--pad) 2rem;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

.dash-footer a { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .pbi-grid-4 { grid-template-columns: 1fr 1fr; }
  .meta-grid-3 { grid-template-columns: 1fr 1fr; }
  .ghl-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .ghl-kpis, .meta-kpis { grid-template-columns: repeat(2, 1fr); }
  .pbi-kpis { grid-template-columns: repeat(3, 1fr); }
  .pbi-grid-main, .pbi-grid-2, .ghl-grid-camps, .ghl-grid-camps2 { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .ghl-sidebar { display: flex; flex: none; width: 100%; padding: 0.5rem 0.7rem; align-items: center; gap: 0.5rem; }
  .ghl-app { flex-direction: column; }
  .ghl-logo { margin: 0; width: 30px; height: 30px; }
  .ghl-nav { flex-direction: row; }
  .dash-switch { order: 3; width: 100%; justify-content: stretch; }
  .dash-switch-btn { flex: 1 1 0; }
  .dash-header-right { display: none; }
  .pbi-kpis { grid-template-columns: repeat(2, 1fr); }
  .ghl-grid-3, .meta-grid-3, .pbi-grid-4 { grid-template-columns: 1fr; }
}
