/* =========================
  ScanWin — analytics.css
========================= */

/* =========================
  1. Mobile Page Header Start
========================= */
.sw-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.sw-page-head__title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.44px;
  color: #0f1020;
  margin: 0 0 6px;
}
.sw-page-head__subtitle {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #6b7280;
  margin: 0;
}
/* =========================
  1. Mobile Page Header End
========================= */

/* =========================
  2. Campaign Filter Card + Toolbar Start
========================= */
.sw-camp-filter {
  background: #ffffff;
  border: 1px solid #ece9e0;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.sw-analytics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sw-analytics-toolbar__caption {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9ca3af;
}
.sw-analytics-toolbar__caption strong {
  color: #0f1020;
}

.sw-date-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #0f1020;
  text-decoration: none;
}
.sw-date-pick:hover {
  background: #f9fafb;
  color: #0f1020;
}
.sw-date-pick svg {
  width: 16px;
  height: 16px;
}
/* =========================
  2. Campaign Filter Card + Toolbar End
========================= */

/* =========================
  3. Campaign Filter Chips Start
========================= */
.sw-camp-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sw-camp-chips::-webkit-scrollbar {
  display: none;
}

.sw-camp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 43px;
  padding: 0 14px;
  background: #f7f4ee;
  border: 1px solid #ece9e0;
  border-radius: 999px;
  color: #0f1020;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.sw-camp-chip:hover {
  background: #f9fafb;
  color: #0f1020;
}
.sw-camp-chip__logo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  background: #f3f4f6;
  flex-shrink: 0;
}
.sw-camp-chip.is-active {
  background: #0f0f21;
  border-color: #0f0f21;
  color: #fff;
}
.sw-camp-chip.is-active:hover {
  background: #1a1a2e;
  color: #fff;
}
.sw-camp-chip.is-active .sw-camp-chip__count {
  color: rgba(255, 255, 255, 0.7);
}
.sw-camp-chip.is-active.sw-camp-chip--all .sw-camp-chip__logo {
  display: none;
}

.sw-camp-chip__menu {
  /* display: none; */
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* color: #fff; */
}

.sw-camp-chip__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.sw-camp-chip__name {
  font-size: 13px;
  font-weight: 600;
}
.sw-camp-chip__count {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}
.sw-camp-chip.is-active .sw-camp-chip__count {
  color: rgba(255, 255, 255, 0.65);
}

.sw-camp-chip--more {
  height: 31px;
  padding: 0 14px;
  background: #f3f0ff;
  border-color: #e9e3ff;
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-violet);
}
.sw-camp-chip--more:hover {
  background: #ede5ff;
  color: var(--sw-violet-600);
}
/* =========================
  3. Campaign Filter Chips End
========================= */

/* =========================
  4. Stat Card Start (with trend pill + sparkline)
========================= */
.sw-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.sw-stat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sw-stat__head-l {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sw-stat__iconbox {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sw-stat__iconbox--violet {
  background: #eeedfe;
  color: var(--sw-violet);
}
.sw-stat__iconbox--green {
  background: #d1fae5;
  color: #065f46;
}
.sw-stat__iconbox--yellow {
  background: #fef3c7;
  color: #b45309;
}
.sw-stat__iconbox--sky {
  background: #eeedfe;
  color: #6d5ef7;
}

.sw-stat__label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: #6b7280;
}
.sw-stat__more {
  width: 18px;
  height: 18px;
  background: none;
  border: 0;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sw-stat__more:hover {
  color: var(--sw-text);
}

.sw-stat__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sw-stat__num-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sw-stat__value {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.64px;
  color: #0f1020;
  margin: 0;
}

.sw-stat__trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sw-stat__trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
}
.sw-stat__trend-pill--up {
  background: #d1fae5;
  color: #065f46;
}
.sw-stat__trend-pill--down {
  background: #fef2f2;
  color: #dc2626;
}
.sw-stat__trend-cap {
  font-size: 11px;
  line-height: 14px;
  color: #9ca3af;
}

.sw-stat__spark {
  height: 40px !important;
  width: 80px !important;
  max-width: 80px;
  flex-shrink: 0;
  display: block;
}
/* =========================
  4. Stat Card End
========================= */

/* =========================
  5. Conversion Funnel Card Start
========================= */
.sw-funnel-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.sw-funnel-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sw-funnel-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;  
  color: #0f1020;
  margin: 0 0 4px;
}
.sw-funnel-card__subtitle {
  font-size: 13px;
  line-height: 18px;
  color: #6b7280;
  margin: 0;
}

.sw-funnel-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.sw-funnel-stat__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}
.sw-funnel-stat__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #0f1020;
}
.sw-funnel-stat__value--sm {
  font-size: 18px;
}
.sw-funnel-stat__delta {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.sw-funnel-stat__delta--up {
  background: #d1fae5;
  color: #065f46;
}
.sw-funnel-stat__delta--down {
  background: #fef2f2;
  color: #dc2626;
}

.sw-funnel-chart-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  background: #f5f3ff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 0;
}
.sw-funnel-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.sw-funnel-keep {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 8px;
  margin-top: 16px;
}
.sw-funnel-keep__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

/* =========================
  5. Conversion Funnel Card End
========================= */

/* =========================
  6. Analytics Two-up Panels (Donut + Heatmap) Start
========================= */
.sw-analytics-row {
  margin-bottom: 20px;
}

.sw-analytics-panel {
  background: #fff;
  border: 1px solid #ECE9E0;
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sw-analytics-panel__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #0f1020;
  margin: 0 0 4px;
}
.sw-analytics-panel__subtitle {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0 18px;
}

.sw-donut-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.sw-donut-wrap {
  position: relative;
  aspect-ratio: 1;
  max-width: 160px;
  margin: 0 auto;
}
.sw-analytics-panel .sw-donut-row {
  flex: 1;
  align-items: center;
}
.sw-analytics-panel .sw-demo-foot {
  margin-top: auto;
}

.sw-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.sw-donut-center__num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0f1020;
}
.sw-donut-center__cap {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}

.sw-demo-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sw-demo-legend__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sw-demo-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sw-demo-legend__dot--y {
  background: #fbbf24;
}
.sw-demo-legend__dot--g {
  background: #34d399;
}
.sw-demo-legend__dot--v {
  background: #6e5ef7;
}
.sw-demo-legend__dot--b {
  background: #60a5fa;
}
.sw-demo-legend__main {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.sw-demo-legend__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f1020;
}
.sw-demo-legend__count {
  display: block;
  font-size: 11px;
  color: #9ca3af;
}
.sw-demo-legend__pct {
  font-size: 14px;
  font-weight: 700;
  color: #0f1020;
}

.sw-demo-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid #f3f4f6;
}
.sw-demo-foot__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sw-demo-foot__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9ca3af;
}
.sw-demo-foot__value {
  font-size: 13px;
  font-weight: 600;
  color: #0f1020;
}

.sw-gender-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.sw-gender-bar__fill {
  height: 100%;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18) 0 5px,
      rgba(255, 255, 255, 0) 5px 10px
    ),
    linear-gradient(90deg, #6e5ef7 0%, #9c8ff7 100%);
}

.sw-heatmap-chart {
  width: 100%;
  margin-bottom: 16px;
  min-height: 280px;
}
.sw-heatmap__col-label,
.sw-heatmap__row-label {
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  display: flex;
  align-items: center;
}
.sw-heatmap__col-label {
  justify-content: center;
}
.sw-heatmap__row-label {
  justify-content: flex-start;
  padding-right: 4px;
}
.sw-heatmap__cell {
  border-radius: 6px;
  background: #ede9fe;
  min-height: 36px;
}
.sw-heatmap__cell[data-intensity="0"] {
  background: #f5f3ff;
}
.sw-heatmap__cell[data-intensity="1"] {
  background: #e9e5fe;
}
.sw-heatmap__cell[data-intensity="2"] {
  background: #d6cefa;
}
.sw-heatmap__cell[data-intensity="3"] {
  background: #b9aff5;
}
.sw-heatmap__cell[data-intensity="4"] {
  background: #8a78f0;
}
.sw-heatmap__cell[data-intensity="5"] {
  background: #6e5ef7;
}

.sw-heatmap-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fef3c7;
  border-radius: 10px;
  font-size: 12px;
  color: #92400e;
}
.sw-heatmap-tip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
/* =========================
  6. Donut + Heatmap End
========================= */

/* =========================
  7. Performance Over Time Chart Card Start
========================= */
.sw-perf-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.sw-perf-head {
  margin-bottom: 20px;
}
.sw-perf-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.sw-perf-stat__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.sw-perf-stat__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}
.sw-perf-stat__dot--violet {
  background: #6e5ef7;
}
.sw-perf-stat__dot--cyan {
  background: #06b6d4;
}
.sw-perf-stat__dot--lime {
  background: #84cc16;
}
.sw-perf-stat__value {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #0f1020;
  letter-spacing: -0.4px;
}
.sw-perf-chart-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}
/* =========================
  7. Performance Over Time End
========================= */

/* =========================
  8. Top Performing Content Table Start
========================= */
.sw-perf-table {
  background: #ffffff;
  border: 1px solid #ece9e0;
  border-radius: 16px;
  padding: 24px 28px;
  overflow: hidden;
  height: 100%;
}
.sw-perf-table__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sw-perf-table__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #0f1020;
  margin: 0 0 4px;
}
.sw-perf-table__subtitle {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #9ca3af;
  margin: 0;
}

.sw-view-all {
  font-size: 12px;
  font-weight: 500;
  color: var(--sw-violet);
  text-decoration: none;
}
.sw-view-all:hover {
  color: var(--sw-violet-600);
}

.sw-perf-row-head {
  display: grid;
  grid-template-columns: minmax(180px, 1.8fr) 80px 80px 80px 60px;
  gap: 12px;
  padding: 10px 12px;
  background: #f7f4ee;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9ca3af;
}

.sw-perf-table ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  margin-top: 16px;
}

.sw-perf-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.8fr) 80px 80px 80px 60px;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.sw-perf-row:last-child {
  border-bottom: 0;
}
.sw-perf-row:hover {
  background: #fafafb;
}
.sw-perf-row__post {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sw-perf-row__logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  background: #f3f4f6;
  flex-shrink: 0;
}
.sw-perf-row__title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #0f1020;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sw-perf-row__meta {
  display: block;
  font-size: 11px;
  color: #9ca3af;
}
.sw-perf-row__plat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  width: fit-content;
}
.sw-perf-row__plat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.sw-perf-row.is-top {
  background: #f0ebff;
}
.sw-perf-row.is-top:hover {
  background: #ede9fe;
}
.sw-perf-row__num {
  font-size: 13px;
  font-weight: 500;
  color: #0f1020;
}
.sw-perf-row__num--earned {
  color: #6b2bff;
}
/* =========================
  8. Top Performing Content End
========================= */

/* =========================
  9. Platform Breakdown Start
========================= */
.sw-platforms {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.sw-platform-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: #F0EBFF;
  border-radius: 14px;
}
.sw-platform-top__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sw-platform-top__kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--sw-violet);
}
.sw-platform-top__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 10px;
  font-weight: 500;
}
.sw-platform-top__delta svg {
  width: 12px;
  height: 12px;
}

.sw-platform-top__body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sw-platform-top__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sw-platform-top__icon svg {
  width: 36px;
  height: 36px;
  display: block;
}
.sw-platform-top__text {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.sw-platform-top__name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #0f1020;
}
.sw-platform-top__meta {
  display: block;
  font-size: 11px;
  color: #6B6F7B;
}

.sw-platform-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
.sw-platform-row__bar {
  grid-column: 1 / -1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}
.sw-platform-row__bar-fill {
  height: 100%;
  border-radius: 999px;
}
.sw-platform-row__bar-fill--tt {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2) 0 5px,
      rgba(255, 255, 255, 0) 5px 10px
    ),
    linear-gradient(90deg, #18181b, #3f3f46);
}
.sw-platform-row__bar-fill--yt {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 0 5px,
      rgba(255, 255, 255, 0) 5px 10px
    ),
    linear-gradient(90deg, #ef4444, #f87171);
}
.sw-platform-row__bar-fill--x {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2) 0 5px,
      rgba(255, 255, 255, 0) 5px 10px
    ),
    linear-gradient(90deg, #18181b, #3f3f46);
}
.sw-platform-row__bar-fill--fb {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 0 5px,
      rgba(255, 255, 255, 0) 5px 10px
    ),
    linear-gradient(90deg, #1877f2, #60a5fa);
}

.sw-platform-row__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sw-platform-row__main {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.sw-platform-row__name {
  font-size: 13px;
  font-weight: 500;
  color: #0f1020;
}
.sw-platform-row__count {
  font-size: 11px;
  color: #9ca3af;
}
.sw-platform-row__pct {
  font-size: 13px;
  font-weight: 500;
  color: #0f1020;
}
/* =========================
  9. Platform Breakdown End
========================= */

/* =========================
  10. Responsive Start
========================= */

/* Tablet (≤991.98px) */
@media (max-width: 991.98px) {
  .sw-camp-filter {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 40px;
  }
  .sw-analytics-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }
  .sw-analytics-toolbar .sw-date-pick {
    width: 100%;
    justify-content: space-between;
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
  }
  .sw-analytics-toolbar .sw-date-pick svg {
    width: 18px;
    height: 18px;
  }

  .sw-funnel-stats {
    gap: 20px;
  }
  .sw-donut-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sw-perf-row-head {
    display: none;
  }
  .sw-perf-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 14px 16px;
  }
  .sw-perf-row__post {
    grid-column: 1 / -1;
  }
  .sw-perf-row__plat,
  .sw-perf-row__num {
    font-size: 12px;
  }
  .sw-perf-table__head {
    padding: 16px 16px 8px;
  }
}

/* Phone (≤767.98px) */
@media (max-width: 767.98px) {
  .sw-funnel-card {
    padding: 16px 12px;
  }
  .sw-funnel-card__head {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  .sw-funnel-stats {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .sw-funnel-stats > div {
    min-width: 0;
  }
  .sw-funnel-stat__label {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .sw-funnel-stat__value {
    font-size: 14px;
    gap: 4px;
  }
  .sw-funnel-stat__value--sm {
    font-size: 13px;
  }
  .sw-funnel-stat__delta {
    font-size: 10px;
    padding: 1px 6px;
  }
  .sw-funnel-chart-wrap {
    height: 180px;
  }
  .sw-funnel-keep {
    gap: 4px;
  }
  .sw-funnel-keep__pill {
    font-size: 10px;
    padding: 3px 8px;
  }

  .sw-analytics-panel {
    padding: 16px;
  }
  .sw-heatmap {
    grid-template-columns: 28px repeat(6, 1fr);
    min-height: 220px;
  }
  .sw-heatmap__cell {
    min-height: 28px;
  }

  .sw-perf-card {
    padding: 16px;
  }
  .sw-perf-chart-wrap {
    height: 220px;
  }
  .sw-platform-top {
    padding: 12px;
  }
}

/* Phone (≤575.98px) */
@media (max-width: 575.98px) {
  .sw-stat {
    padding: 12px;
    gap: 12px;
  }
  .sw-stat__value {
    font-size: 22px;
    line-height: 28px;
  }
  .sw-stat__spark {
    height: 32px !important;
    width: 56px !important;
  }
  .sw-stat__iconbox {
    width: 32px;
    height: 32px;
  }
  .sw-stat__iconbox svg {
    width: 18px;
    height: 18px;
  }
  .sw-stat__label {
    font-size: 12px;
  }
  .sw-stat__trend-pill {
    font-size: 10px;
    padding: 2px 6px 2px 4px;
  }
  .sw-stat__trend-cap {
    font-size: 10px;
  }

  .sw-analytics-toolbar .sw-date-pick {
    width: 100%;
  }

  .sw-funnel-card__head {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .sw-funnel-card__head > div {
    min-width: 0;
    flex: 1 1 auto;
  }
  .sw-funnel-card__title {
    font-size: 16px;
    line-height: 22px;
  }
  .sw-funnel-card__subtitle {
    font-size: 12px;
    line-height: 16px;
  }
  .sw-funnel-card .sw-date-pick, .sw-perf-card .sw-date-pick {
    width: 100%;
    flex-shrink: 0;
    height: 38px;
    padding: 0 8px;
    gap: 4px;
    font-size: 13px;
    justify-content: space-between;
    border-radius: 8px;
  }

  .sw-funnel-stats {
    display: grid;
    grid-template-columns: 85px 1fr 1fr;
    gap: 8px;
  }
  .sw-funnel-stats > div {
    min-width: 0;
  }
  .sw-funnel-stat__label {
    font-size: 9px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
  .sw-funnel-stat__value {
    font-size: 13px;
    gap: 3px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
  }
  .sw-funnel-stat__value--sm {
    font-size: 12px;
  }
  .sw-funnel-stat__delta {
    font-size: 9px;
    padding: 1px 5px;
  }
}
/* =========================
  10. Responsive End
========================= */
