:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --ink: #17201b;
  --muted: #5c675f;
  --line: #dce3dd;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --teal-dark: #0f766e;
  --shadow: 0 18px 45px rgba(23, 32, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px 32px 48px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: 0;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.subtitle,
.section-note,
.muted {
  color: var(--muted);
}

.subtitle {
  margin-top: 6px;
  font-size: 14px;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.channel-switch {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.channel-switch:hover {
  background: var(--teal-dark);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.section-head .eyebrow {
  margin-bottom: 0;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-note {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.45;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.kpi,
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi {
  min-height: 174px;
  padding: 18px;
}

.kpi-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.kpi-value {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: 0;
}

.kpi-sub {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.trend {
  font-weight: 760;
}

.trend.up {
  color: var(--green);
}

.trend.down {
  color: var(--red);
}

.panel {
  padding: 18px;
}

.dashboard-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dashboard-link h2 {
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.15;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
}

.creative-summary-table {
  margin-bottom: 24px;
}

.video-quality-block {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: stretch;
  gap: 22px;
}

.video-quality-chart,
.video-quality-chart .combo-chart {
  height: 100%;
}

.video-quality-chart .combo-chart {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  min-height: 415px;
}

.video-quality-chart .combo-svg {
  flex: 1;
  min-height: 315px;
}

.equal-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-fixed {
  min-height: 330px;
}

.chart-fixed .combo-svg {
  min-height: 260px;
}

.bar-chart {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 88px;
  align-items: center;
  gap: 14px;
  min-height: 34px;
}

.bar-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.bar-track {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.bar-fill {
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
}

.bar-value {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

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

.product-performance-wrap {
  max-height: 760px;
}

.product-performance-table {
  min-width: 1540px;
}

.stacked-tables {
  display: grid;
  gap: 22px;
  align-content: start;
}

.table-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.table-product-name {
  font-weight: 760;
  line-height: 1.3;
}

.ugc-product-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.ugc-product-table th,
.ugc-product-table td {
  padding-right: 8px;
  padding-left: 8px;
}

.ugc-col-product {
  width: 20%;
}

.ugc-col-creative {
  width: 10%;
}

.ugc-col-metric {
  width: 7.77%;
}

.ugc-product-table th:first-child,
.ugc-product-table td:first-child {
  white-space: normal;
}

.ugc-product-table th:not(:first-child),
.ugc-product-table td:not(:first-child) {
  text-align: right;
}

.ugc-product-table .group-head {
  text-align: center;
}

.ugc-product-table .table-product-name {
  min-width: 0;
}

.product-total-row td {
  background: #f4f8f5;
  font-weight: 760;
}

.product-detail-row td:first-child {
  color: var(--muted);
}

.product-detail-row td:nth-child(2) {
  padding-left: 16px;
}

.product-change-row td {
  padding-top: 6px;
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  background: #fbfcfa;
}

.product-change-row td:nth-child(2) {
  padding-left: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.day-type-table {
  table-layout: fixed;
}

.day-type-table th,
.day-type-table td {
  width: 12.5%;
}

.day-type-table th:first-child,
.day-type-table td:first-child {
  width: 22%;
}

.cpc-day-table {
  table-layout: fixed;
}

.cpc-day-table .cpc-day-col-type {
  width: 18%;
}

.cpc-day-table .cpc-day-col-small {
  width: 9%;
}

.cpc-day-table .cpc-day-col-metric {
  width: 11%;
}

.cpc-day-table .cpc-day-col-wide {
  width: 16.5%;
}

.cpc-day-table th,
.cpc-day-table td {
  padding-right: 12px;
  padding-left: 12px;
  text-align: center;
}

.cpc-day-table th:first-child,
.cpc-day-table td:first-child {
  text-align: left;
}

th {
  padding: 10px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.metric-main,
.cell-note {
  display: block;
}

.cell-note {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 760;
}

.cell-note.up {
  color: var(--green);
}

.cell-note.down {
  color: var(--red);
}

th.month-sep,
td.month-sep {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

th.group-head {
  text-align: center;
}

tr:last-child td {
  border-bottom: 0;
}

.product-cell {
  min-width: 420px;
  max-width: 720px;
  white-space: normal;
  text-align: left !important;
}

.product-cell strong,
.product-cell span {
  display: block;
}

.product-cell strong {
  line-height: 1.35;
}

.product-cell span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.roas-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.roas-top {
  background: #dcfce7;
  color: #047857;
}

.roas-high {
  background: #dbeafe;
  color: #1d4ed8;
}

.roas-mid {
  background: #fef3c7;
  color: #b45309;
}

.roas-low {
  background: #fee2e2;
  color: #b91c1c;
}

.rank-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 820;
}

.rank-move.up {
  background: #dcfce7;
  color: #047857;
}

.rank-move.down {
  background: #fee2e2;
  color: #b91c1c;
}

.rank-move.same {
  background: #eef4ef;
  color: var(--muted);
}

.rank-move.new {
  background: #dbeafe;
  color: #1d4ed8;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.metric-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.metric-tab {
  min-width: 92px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  transition: background 180ms ease, color 180ms ease;
}

.metric-tab.active,
.metric-tab:hover {
  background: var(--surface);
  color: var(--ink);
}

.combo-chart {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.combo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.combo-title {
  font-size: 16px;
  font-weight: 820;
}

.combo-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-box.gmv {
  background: var(--blue);
}

.legend-box.cost {
  background: var(--amber);
}

.legend-line {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.combo-svg {
  display: block;
  width: 100%;
  height: auto;
}

.axis-line {
  stroke: #b9c4bd;
  stroke-width: 1;
}

.axis-line.subtle,
.grid-line {
  stroke: #e2e8e3;
  stroke-width: 1;
}

.bar-gmv {
  fill: var(--blue);
}

.bar-cost {
  fill: var(--amber);
}

.roas-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.blue {
  stroke: var(--blue);
}

.chart-line.green {
  stroke: var(--green);
}

.chart-line.amber {
  stroke: var(--amber);
}

.legend-line.blue {
  background: var(--blue);
}

.legend-line.green {
  background: var(--green);
}

.legend-line.amber {
  background: var(--amber);
}

.roas-point {
  fill: var(--surface);
  stroke: var(--green);
  stroke-width: 3;
}

.line-point {
  fill: var(--surface);
  stroke-width: 3;
}

.line-point.amber {
  stroke: var(--amber);
}

.axis-label,
.axis-title,
.value-label,
.roas-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.value-label,
.roas-label {
  fill: var(--ink);
  font-size: 12px;
  paint-order: stroke;
  stroke: #fbfcfa;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.inside-bar-label {
  fill: #fff;
  stroke: rgba(23, 63, 142, 0.55);
  stroke-width: 4px;
}

.stack-item {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.stack-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stack-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.stack-name {
  font-weight: 760;
}

.stack-meta {
  color: var(--muted);
}

.product-card {
  display: grid;
  gap: 18px;
}

.product-name {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 780;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 800;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.level-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.level-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.level-metrics {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.level-metrics strong {
  color: var(--ink);
}

.error {
  padding: 24px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: #fff1f2;
  color: #7f1d1d;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-bar.slim {
  background: var(--surface-soft);
}

.coverage-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.coverage-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.coverage-note strong {
  color: var(--ink);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  min-width: 210px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.filter-month-field {
  display: grid;
  gap: 6px;
  min-width: 210px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="month"],
.month-trigger {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-transform: none;
}

.month-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-weight: 780;
}

.month-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
}

.month-picker {
  position: absolute;
  z-index: 1000;
  padding: 12px;
  border: 1px solid rgba(18, 31, 28, 0.3);
  border-radius: 16px;
  background: rgba(41, 43, 45, 0.86);
  box-shadow: 0 18px 38px rgba(14, 25, 22, 0.22);
  backdrop-filter: blur(12px);
}

.month-picker-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.month-year {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 820;
}

.year-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.year-option {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
}

.year-option.active {
  background: #2f80ed;
}

.year-option:hover {
  background: rgba(255, 255, 255, 0.18);
}

.month-nav,
.month-option {
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.month-nav {
  width: 36px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 22px;
  line-height: 1;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.month-option {
  min-height: 42px;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
}

.month-option:hover,
.month-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.month-option.active {
  background: #2f80ed;
}

.month-option:disabled,
.month-nav:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.compact-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px 340px;
  gap: 16px;
  align-items: stretch;
}

.overall-grid .compact-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share-panel {
  min-height: 364px;
}

.share-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.share-content {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 12px;
}

.donut-chart {
  width: 190px;
  max-width: 100%;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: var(--surface-soft);
  stroke-width: 22;
}

.donut-segment {
  fill: none;
  stroke-width: 22;
  stroke-linecap: butt;
}

.donut-total,
.donut-sub {
  transform: rotate(90deg);
  transform-origin: 90px 90px;
  fill: var(--ink);
}

.donut-total {
  font-size: 20px;
  font-weight: 820;
}

.donut-sub {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.share-legend {
  display: grid;
  gap: 8px;
  width: 100%;
}

.share-legend-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.share-legend-row span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.share-legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.share-legend-row strong {
  color: var(--ink);
}

.share-legend-row.with-compare {
  align-items: flex-start;
}

.share-values {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.share-values small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.share-values b {
  font-weight: 820;
}

.share-values b.up {
  color: var(--green);
}

.share-values b.down {
  color: var(--red);
}

.report-block {
  margin-top: 16px;
}

.subsection-head {
  margin-top: 22px;
  margin-bottom: 10px;
}

.subsection-head .eyebrow {
  margin-bottom: 0;
}

.metric-chart {
  margin-bottom: 16px;
}

.traffic-line-clicks {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3;
}

.legend-line.clicks {
  background: var(--pink);
}

.clicks-point {
  fill: var(--pink);
  stroke: #fff;
  stroke-width: 2;
}

.clicks-label {
  fill: var(--pink);
  font-size: 11px;
  font-weight: 800;
}

.chart-tabs,
.table-tabs {
  margin: 0 0 14px;
}

.chart-range-filter {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.chart-range-field {
  display: grid;
  gap: 6px;
  min-width: 170px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.month-picker-trigger {
  min-width: 170px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.month-picker-trigger::after {
  content: "";
  float: right;
  width: 7px;
  height: 7px;
  margin-top: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.68;
}

.month-picker-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 12px;
  width: min(560px, calc(100vw - 64px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(16, 60, 26, 0.16);
}

.month-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.month-picker-close {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.month-picker-years {
  display: grid;
  gap: 14px;
  max-height: 420px;
  overflow: auto;
}

.month-picker-year {
  display: grid;
  gap: 8px;
}

.month-picker-year h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.month-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.month-picker-month {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}

.month-picker-month.in-range {
  background: #eef2e9;
}

.month-picker-month.active {
  border-color: var(--yves-green, var(--green));
  background: var(--yves-green, var(--green));
  color: #ffffff;
}

.month-picker-month:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.table-filter {
  margin-top: 8px;
}

.cell-delta {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 760;
}

.cell-delta.up {
  color: var(--green);
}

.cell-delta.down {
  color: var(--red);
}

.cell-delta-line {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.campaign-cell {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.total-row {
  border-top: 2px solid var(--ink);
  background: var(--surface-soft);
  font-weight: 820;
}

.yves-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yves-filter-bar {
  justify-content: flex-start;
}

.yves-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  align-items: stretch;
  gap: 16px;
}

.yves-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.split-bars {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.split-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 70px;
  align-items: center;
  gap: 14px;
}

.split-bar-label {
  margin-bottom: 4px;
  font-weight: 820;
}

.compact-table table {
  font-size: 13px;
}

.muted-row {
  color: var(--muted);
  background: var(--surface-soft);
}

.yves-campaign-tabs {
  margin: 4px 14px 8px;
}

.yves-campaign-note {
  margin: 0 14px 10px;
}

.yves-daytype-panel {
  margin-top: 16px;
  padding: 18px;
}

body.yves-page {
  --yves-green: #0f3b22;
  --yves-green-2: #176039;
  --yves-cream: #f7f6ef;
  --yves-cream-2: #ede9dd;
  --yves-gold: #b8a269;
  --yves-ink: #102015;
  --tiktok-cyan: #20d5d2;
  --tiktok-red: #ff4f6d;
  --tiktok-ink: #111719;
  --bg: #f6f7f2;
  --surface: #fffefb;
  --surface-soft: #f0f3ec;
  --ink: var(--yves-ink);
  --muted: #657066;
  --line: #dedbd0;
  --green: #14b985;
  --red: #ff5a69;
  --blue: var(--tiktok-cyan);
  --amber: #f2a01f;
  --pink: var(--tiktok-red);
  --teal-dark: var(--yves-green-2);
  --shadow: 0 10px 26px rgba(21, 34, 25, 0.07);
  background: linear-gradient(180deg, #faf9f4 0, #f6f7f2 320px, #f1f0e8 100%);
  font-size: 90%;
}

.yves-page .topbar {
  position: sticky;
  align-items: center;
  min-height: 92px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(16, 60, 26, 0.11);
  background: rgba(255, 254, 251, 0.9);
  color: var(--yves-ink);
  box-shadow: 0 10px 30px rgba(20, 30, 22, 0.06);
  backdrop-filter: blur(18px);
}

.yves-brand-lockup {
  display: grid;
  place-items: center;
  flex: 0 0 84px;
  width: 84px;
  min-height: 64px;
  padding: 10px 8px;
  border: 1px solid rgba(15, 59, 34, 0.12);
  border-radius: 8px;
  background: var(--yves-green);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 59, 34, 0.16);
}

.yves-brand-lockup span {
  display: block;
  font-size: 15px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.yves-brand-lockup small {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.yves-title-block {
  min-width: 0;
  flex: 1;
}

.yves-page .topbar .eyebrow {
  color: var(--tiktok-red);
}

.yves-page h1 {
  max-width: 760px;
  color: var(--yves-ink);
  font-size: 30px;
  font-weight: 820;
}

.yves-page .subtitle {
  max-width: 840px;
  color: #667167;
}

.yves-page .topbar-actions {
  align-self: center;
}

.yves-page .channel-switch {
  border-color: rgba(15, 59, 34, 0.12);
  background: var(--yves-green);
  color: #ffffff;
}

.yves-page .channel-switch:hover {
  background: var(--tiktok-ink);
}

.yves-page .status {
  border-color: rgba(15, 59, 34, 0.11);
  background: #ffffff;
  color: #667167;
}

.yves-page .status-dot {
  background: var(--tiktok-cyan);
  box-shadow: 0 0 0 3px rgba(32, 213, 210, 0.14);
}

.yves-page main {
  width: min(1188px, 100%);
  padding-top: 24px;
}

.yves-page .subtitle,
.yves-page .section-note {
  display: none;
}

.yves-page .filter-bar {
  position: relative;
  margin-top: 0;
  margin-bottom: 22px;
  padding: 14px;
  border-color: rgba(15, 59, 34, 0.1);
  background: rgba(255, 254, 251, 0.96);
  box-shadow: var(--shadow);
}

.yves-page .filter-bar label {
  min-width: 260px;
  color: #4e5d52;
  letter-spacing: 0.04em;
}

.yves-page .filter-month-field {
  min-width: 260px;
  color: #4e5d52;
  letter-spacing: 0.04em;
}

.yves-page .filter-bar select {
  min-height: 50px;
  border-color: #d7d2c2;
  background: #ffffff;
  color: var(--yves-ink);
  font-size: 18px;
  font-weight: 820;
}

.yves-page .main-month-trigger {
  min-width: 260px;
  min-height: 46px;
  border-color: #d7d2c2;
  background: #ffffff;
  color: var(--yves-ink);
  font-size: 16px;
  font-weight: 720;
}

.yves-page .section {
  margin-top: 28px;
}

.yves-page .section-head {
  align-items: flex-start;
  padding: 0 2px;
}

.yves-page .section-head .eyebrow,
.yves-page .panel > .eyebrow {
  color: var(--yves-green-2);
}

.yves-page h2 {
  font-size: 25px;
  font-weight: 780;
}

.yves-page .section-note {
  color: #697269;
  font-size: 14px;
}

.yves-page .chart-range-filter {
  margin-bottom: 14px;
  border-color: #d7d2c2;
  background: #f5f7f1;
}

.yves-page .chart-range-field {
  color: #536052;
}

.yves-page .month-picker-trigger {
  border-color: #d7d2c2;
  background: #fffdf8;
  color: var(--yves-ink);
}

.yves-page .month-picker-popover {
  border-color: #d7d2c2;
  background: #fffdf8;
}

.yves-page .kpi,
.yves-page .panel {
  border-color: rgba(15, 59, 34, 0.11);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.yves-page .kpi {
  min-height: 142px;
  padding: 18px 20px;
  border-top: 0;
  box-shadow:
    inset 0 3px 0 var(--yves-green),
    var(--shadow);
}

.yves-page .kpi-label {
  color: #566257;
  font-size: 13px;
}

.yves-page .kpi-value {
  margin-top: 10px;
  color: #0d1d12;
  font-size: 34px;
  line-height: 1;
  font-weight: 820;
}

.yves-page .kpi-sub {
  margin-top: 14px;
  color: #6f776f;
}

.yves-page .yves-split-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 22px;
}

.yves-page .yves-split-panel .split-bars {
  flex: 1;
  align-content: center;
}

.yves-page .yves-split-panel .split-bar-row {
  grid-template-columns: minmax(0, 1fr) minmax(126px, 0.48fr);
  align-items: center;
  gap: 28px;
  padding: 20px 0;
}

.yves-page .yves-split-panel .split-bar-row + .split-bar-row {
  border-top: 1px solid #e4dfd2;
}

.yves-page .yves-split-panel .split-bar-label {
  margin-bottom: 10px;
  color: #0d1d12;
  font-size: 17px;
  font-weight: 720;
}

.yves-page .split-metrics {
  display: grid;
  gap: 5px;
}

.yves-page .split-metrics div {
  display: grid;
  grid-template-columns: 44px max-content;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  color: #697269;
  font-size: 12px;
  line-height: 1.25;
}

.yves-page .split-metrics span {
  color: #7a8279;
  font-weight: 400;
}

.yves-page .split-metrics strong {
  color: #132018;
  font-size: 12px;
  font-weight: 460;
}

.yves-page .split-share {
  display: grid;
  grid-template-columns: minmax(56px, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.yves-page .split-share .bar-track {
  height: 10px;
  background: #ecefe6;
}

.yves-page .split-share .bar-value {
  color: #566257;
  font-size: 12px;
  font-weight: 500;
}

.yves-page .yves-daytype-panel {
  margin-top: 18px;
  padding: 22px 24px 28px;
}

.yves-page table {
  border-collapse: separate;
  border-spacing: 0;
}

.yves-page th {
  padding: 14px 12px;
  border-bottom: 1px solid #d9ded6;
  color: #526052;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.yves-page td {
  padding: 16px 12px;
  border-bottom: 1px solid #e5e0d2;
  vertical-align: top;
}

.yves-page tbody tr:last-child td {
  border-bottom: 0;
}

.yves-page .total-row {
  border-top: 0;
  background: #f1f5ee;
}

.yves-page .total-row td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.yves-page .total-row td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.yves-page .metric-main {
  color: #0d1d12;
  font-size: 16px;
  font-weight: 640;
}

.yves-page .cell-delta-line {
  color: #747b72;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.25;
  opacity: 0.7;
  text-transform: lowercase;
}

.yves-page .cell-delta-line .trend {
  font-size: 9px;
  font-weight: 400;
}

.yves-page .yves-daytype-table {
  table-layout: fixed;
  border-right: 1px solid #d9ded6;
}

.yves-page .yves-daytype-table th,
.yves-page .yves-daytype-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #d9ded6;
  color: #132018;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.yves-page .yves-daytype-table th {
  color: #566257;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.yves-page .yves-daytype-table th:first-child,
.yves-page .yves-daytype-table td:first-child {
  width: 22%;
  border-right: 1px solid #d9ded6;
  text-align: left;
}

.yves-page .yves-daytype-table th:not(:first-child),
.yves-page .yves-daytype-table td:not(:first-child) {
  text-align: right;
}

.yves-page .yves-daytype-table .total-row {
  background: transparent;
  font-weight: 400;
}

.yves-page .yves-daytype-table .total-row td:first-child,
.yves-page .yves-daytype-table .total-row td:last-child {
  border-radius: 0;
}

.yves-page .yves-daytype-table .metric-main {
  color: #132018;
  font-size: 16px;
  font-weight: 400;
}

.yves-page .yves-daytype-table .cell-delta-line {
  color: #7a8279;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.68;
  text-transform: lowercase;
}

.yves-page .yves-daytype-table .cell-delta-line .trend {
  font-size: 9px;
  font-weight: 400;
}

.yves-page .yves-creative-panel {
  padding: 18px 22px 24px;
}

.yves-page .yves-product-panel {
  padding: 18px 22px 24px;
}

.yves-page .yves-video-panel {
  padding: 18px 22px 24px;
}

.yves-page .yves-live-panel {
  padding: 18px 22px 24px;
}

.yves-page .product-max-filter {
  margin: 0 0 16px;
  border-color: #d7d2c2;
  background: #f7f8f3;
}

.yves-page .live-report-filter {
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  margin-bottom: 14px;
}

.yves-page .yves-performance-tabs {
  margin: 0 0 14px;
}

.yves-page .yves-wide-table-wrap {
  overflow-x: auto;
}

.yves-page .yves-creative-table {
  min-width: 1120px;
  table-layout: fixed;
  border-right: 1px solid #dfe3da;
}

.yves-page .yves-performance-table {
  margin-bottom: 18px;
}

.yves-page .yves-video-table {
  min-width: 960px;
  margin-top: 18px;
}

.yves-page .yves-live-table {
  min-width: 1060px;
  margin-top: 18px;
}

.yves-page .yves-creative-table th,
.yves-page .yves-creative-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #dfe3da;
  color: #132018;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.yves-page .yves-creative-table th {
  color: #566257;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.yves-page .yves-creative-table th:first-child,
.yves-page .yves-creative-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 170px;
  border-right: 1px solid #dfe3da;
  background: var(--surface);
  text-align: left;
}

.yves-page .yves-creative-table th:first-child {
  z-index: 2;
}

.yves-page .yves-creative-table .video-row td:first-child {
  background: #f7f9f4;
}

.yves-page .yves-creative-table .video-total-row td {
  background: #f7f9f4;
}

.yves-page .yves-creative-table .video-total-row td:first-child {
  background: #f7f9f4;
  font-weight: 700;
}

.yves-page .yves-creative-table .video-child-row td:first-child {
  padding-left: 34px;
}

.yves-page .creative-cell {
  display: grid;
  gap: 3px;
}

.yves-page .creative-cell span {
  color: #132018;
}

.yves-page .creative-metric-main {
  color: #132018;
  font-size: 13px;
  font-weight: 400;
}

.yves-page .creative-cell small {
  color: #7a8279;
  font-size: 10px;
  font-weight: 400;
}

.yves-page .empty-cell {
  color: #7a8279;
  text-align: left;
}

.yves-page .video-funnel {
  margin: 4px 0 18px;
  padding: 16px 18px 10px;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  background: #fffefb;
  overflow-x: auto;
}

.yves-page .funnel-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 8px;
  color: #566257;
  font-size: 12px;
}

.yves-page .funnel-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yves-page .funnel-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.yves-page .funnel-legend .compare {
  background: #8fd8ad;
}

.yves-page .funnel-legend .current {
  background: var(--yves-green);
}

.yves-page .mirror-funnel-svg {
  display: block;
  width: 100%;
  min-width: 920px;
}

.yves-page .mirror-axis {
  stroke: #d8d4c7;
  stroke-width: 1;
}

.yves-page .mirror-bar.compare {
  fill: #8fd8ad;
}

.yves-page .mirror-bar.current {
  fill: var(--yves-green);
}

.yves-page .mirror-label {
  fill: #7a8279;
  font-size: 12px;
  font-weight: 500;
}

.yves-page .mirror-value {
  fill: #132018;
  font-size: 16px;
  font-weight: 760;
}

.yves-page .mirror-pct {
  fill: #9aa096;
  font-size: 10px;
}

.yves-page .product-sku-chart-block {
  margin-top: 20px;
  padding: 18px 20px 12px;
  border: 1px solid #ded8ca;
  border-radius: 8px;
  background: #fffefb;
}

.yves-page .top-sku-chart {
  overflow-x: auto;
}

.yves-page .top-sku-svg {
  display: block;
  width: 100%;
  min-width: 920px;
}

.yves-page .sku-label {
  fill: #263027;
  font-size: 11px;
}

.yves-page .account-product-label {
  fill: #7a8279;
  font-size: 9px;
}

.yves-page .sku-bar {
  fill: var(--yves-green-2);
}

.yves-page .sku-value {
  fill: #132018;
  font-size: 12px;
  font-weight: 700;
}

.yves-page .combo-chart {
  border-color: #ded8ca;
  background: #fffefb;
  box-shadow: none;
}

.yves-page .legend-box.gmv,
.yves-page .bar-gmv {
  background: var(--yves-green);
  fill: var(--yves-green);
}

.yves-page .legend-box.cost,
.yves-page .bar-cost {
  background: #8fd8ad;
  fill: #8fd8ad;
}

.yves-page .roas-line {
  stroke: var(--yves-green);
}

.yves-page .metric-tabs {
  border-color: #d7d2c2;
  background: #f0f3ec;
}

.yves-page .metric-tab.active,
.yves-page .metric-tab:hover {
  background: var(--tiktok-ink);
  color: #ffffff;
}

.yves-page .split-bars {
  padding: 18px 0 0;
  gap: 0;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .level-grid,
  .overall-grid,
  .yves-detail-grid,
  .yves-overview-grid {
    grid-template-columns: 1fr;
  }

  .yves-page .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .yves-page .topbar-actions {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    flex-direction: column;
    padding: 16px;
  }

  main {
    padding: 16px 16px 32px;
  }

  h1 {
    font-size: 24px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 110px 1fr 72px;
    gap: 10px;
  }

  .product-stats {
    grid-template-columns: 1fr;
  }

  .filter-bar label,
  .filter-month-field {
    min-width: 100%;
  }

  .chart-range-field,
  .month-picker-trigger {
    width: 100%;
    min-width: 100%;
  }

  .month-picker-popover {
    left: 0;
    width: 100%;
  }

  .month-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-bar-row {
    grid-template-columns: 1fr;
  }

  .yves-page .yves-split-panel .split-bar-row,
  .yves-page .split-share {
    grid-template-columns: 1fr;
  }

  .yves-page .topbar {
    min-height: 0;
    padding: 18px;
  }

  .yves-brand-lockup {
    width: 86px;
    min-height: 66px;
    flex-basis: 86px;
  }

  .yves-brand-lockup span {
    font-size: 15px;
  }

  .yves-brand-lockup small {
    font-size: 9px;
  }

  .yves-page h1 {
    font-size: 26px;
  }

  .yves-page main {
    padding: 16px 16px 32px;
  }

  .yves-page .filter-bar {
    margin-top: 0;
    padding: 14px;
  }

  .yves-page .filter-bar label,
  .yves-page .filter-month-field {
    min-width: 100%;
  }

  .yves-page .kpi-value {
    font-size: 34px;
  }
}

/* TikTok dashboard type scale: reduce visible text by ~10% without touching Shopee. */
.yves-page .topbar .eyebrow,
.yves-page .section-head .eyebrow,
.yves-page .panel > .eyebrow {
  font-size: 10.8px;
}

.yves-page h1 {
  font-size: 27px;
}

.yves-page h2 {
  font-size: 22.5px;
}

.yves-page .yves-brand-lockup span {
  font-size: 13.5px;
}

.yves-page .yves-brand-lockup small {
  font-size: 8.1px;
}

.yves-page .status,
.yves-page .channel-switch,
.yves-page .section-note,
.yves-page .filter-bar label,
.yves-page .filter-month-field,
.yves-page .share-title,
.yves-page .share-legend-row,
.yves-page .kpi-label {
  font-size: 11.7px;
}

.yves-page .month-picker-trigger {
  font-size: 12.6px;
}

.yves-page .main-month-trigger {
  font-size: 14.4px;
}

.yves-page .chart-range-field,
.yves-page .yves-creative-table th,
.yves-page .yves-daytype-table th,
.yves-page .month-picker-head {
  font-size: 9.9px;
}

.yves-page .kpi-value {
  font-size: 30.6px;
}

.yves-page .kpi-sub,
.yves-page .split-metrics div,
.yves-page .split-metrics strong,
.yves-page .split-share .bar-value,
.yves-page .funnel-legend,
.yves-page .yves-creative-table th,
.yves-page .yves-creative-table td,
.yves-page .sku-value {
  font-size: 10.8px;
}

.yves-page .yves-split-panel .split-bar-label {
  font-size: 15.3px;
}

.yves-page .yves-daytype-table th,
.yves-page .yves-daytype-table td {
  font-size: 12.6px;
}

.yves-page .metric-main,
.yves-page .yves-daytype-table .metric-main {
  font-size: 14.4px;
}

.yves-page .creative-metric-main {
  font-size: 11.7px;
}

.yves-page .cell-delta-line,
.yves-page .cell-delta-line .trend,
.yves-page .yves-daytype-table .cell-delta-line,
.yves-page .yves-daytype-table .cell-delta-line .trend,
.yves-page .account-product-label {
  font-size: 8.1px;
}

.yves-page .creative-cell small,
.yves-page .mirror-pct {
  font-size: 9px;
}

.yves-page .mirror-label,
.yves-page .sku-label {
  font-size: 10.8px;
}

.yves-page .mirror-value {
  font-size: 14.4px;
}

.yves-page .month-picker-popover {
  width: min(360px, calc(100vw - 48px));
  padding: 18px 18px 22px;
  border: 0;
  border-radius: 18px;
  background: rgba(61, 63, 64, 0.98);
  box-shadow: 0 22px 54px rgba(16, 24, 20, 0.32);
}

.yves-page .month-picker-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.yves-page .month-picker-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.yves-page .month-picker-nav:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.yves-page .month-picker-head span {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.yves-page .month-picker-year-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.yves-page .month-picker-year-tab {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.yves-page .month-picker-year-tab.active {
  background: #2f80ed;
}

.yves-page .month-picker-year {
  gap: 0;
}

.yves-page .month-picker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

.yves-page .month-picker-month {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.yves-page .month-picker-month:hover {
  background: rgba(255, 255, 255, 0.1);
}

.yves-page .month-picker-month.in-range {
  background: rgba(255, 255, 255, 0.08);
}

.yves-page .month-picker-month.active {
  background: #2f80ed;
  color: #ffffff;
}

.yves-page .month-picker-month:disabled {
  color: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

/* TikTok compact density pass: bring component scale closer to Shopee. */
.yves-page .topbar {
  min-height: 76px;
  padding: 10px 28px;
}

.yves-page main {
  width: min(1080px, 100%);
  padding-top: 18px;
}

.yves-brand-lockup {
  flex-basis: 70px;
  width: 70px;
  min-height: 54px;
  padding: 8px 7px;
}

.yves-page h1 {
  font-size: 24px;
}

.yves-page h2 {
  font-size: 20px;
}

.yves-page .section {
  margin-top: 20px;
}

.yves-page .section-head {
  margin-bottom: 10px;
}

.yves-page .filter-bar,
.yves-page .chart-range-filter {
  padding: 8px;
  margin-bottom: 12px;
}

.yves-page .filter-month-field,
.yves-page .filter-bar label {
  min-width: 180px;
}

.yves-page .month-picker-trigger,
.yves-page .main-month-trigger {
  min-width: 180px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 11.6px;
}

.yves-page .chart-range-field {
  min-width: 132px;
  gap: 4px;
}

.yves-page .yves-overview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 12px;
}

.yves-page .kpi-grid,
.yves-page .yves-kpi-grid {
  gap: 12px;
}

.yves-page .kpi {
  min-height: 118px;
  padding: 14px 16px;
}

.yves-page .kpi-value {
  margin-top: 8px;
  font-size: 27px;
}

.yves-page .kpi-sub {
  gap: 4px;
  margin-top: 10px;
}

.yves-page .panel,
.yves-page .yves-daytype-panel,
.yves-page .yves-creative-panel,
.yves-page .yves-product-panel,
.yves-page .yves-video-panel,
.yves-page .yves-live-panel {
  padding: 14px 16px 18px;
}

.yves-page .yves-split-panel {
  padding: 16px 18px;
}

.yves-page .yves-split-panel .split-bar-row {
  gap: 18px;
  padding: 14px 0;
}

.yves-page .yves-split-panel .split-bar-label {
  font-size: 14px;
}

.yves-page .split-metrics div {
  grid-template-columns: 38px max-content;
}

.yves-page .chart-fixed {
  min-height: 292px;
}

.yves-page .chart-fixed .combo-svg {
  min-height: 226px;
}

.yves-page .combo-chart {
  padding: 14px 14px 8px;
}

.yves-page .yves-creative-table th,
.yves-page .yves-creative-table td {
  padding: 10px 10px;
}

.yves-page .yves-daytype-table th,
.yves-page .yves-daytype-table td {
  padding: 13px 16px;
}

.yves-page .month-picker-popover {
  width: min(252px, calc(100vw - 36px));
  padding: 12px 12px 14px;
  border-radius: 14px;
}

.yves-page .month-picker-head {
  grid-template-columns: 32px 1fr 32px;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
}

.yves-page .month-picker-nav,
.yves-page .month-picker-head span {
  min-height: 32px;
  height: 32px;
}

.yves-page .month-picker-nav {
  width: 32px;
  font-size: 20px;
}

.yves-page .month-picker-year-tabs {
  gap: 7px;
  margin-bottom: 12px;
}

.yves-page .month-picker-year-tab {
  min-height: 32px;
  font-size: 11.8px;
}

.yves-page .month-picker-grid {
  gap: 7px 9px;
}

.yves-page .month-picker-month {
  min-height: 32px;
  font-size: 11.8px;
}

@media (max-width: 720px) {
  .yves-page main {
    width: min(100%, 100%);
  }
}
