.growth-pair-section,
.digital-section,
.audience-section,
.poi-map-section,
.marketing-guide-section {
  scroll-margin-top: 18px;
}

.staple-value-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 14px;
}

.growth-triplet-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: stretch;
}

.growth-triplet-layout .growth-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 8px;
}
.growth-triplet-layout .growth-panel > header { margin-bottom: 5px; }
.growth-triplet-layout .growth-panel > header h3 { font-size: 13px; }
.growth-triplet-layout .growth-card-grid {
  height: 100%;
  min-height: 0;
  grid-auto-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
}
body:not(.h5-body) .growth-triplet-layout .growth-panel-staple .growth-card-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
body:not(.h5-body) .growth-triplet-layout .growth-panel-value .growth-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
body:not(.h5-body) .growth-panel-value .growth-card-crazyThursday { grid-area: 1 / 1; }
body:not(.h5-body) .growth-panel-value .growth-card-weekendCrazyCombo { grid-area: 2 / 1; }
body:not(.h5-body) .growth-panel-value .growth-card-onePersonMeal { grid-area: 1 / 2 / 3 / 3; }
body:not(.h5-body) .growth-panel-value .growth-card-onePersonMeal .growth-split-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.growth-triplet-layout .growth-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
}
.growth-triplet-layout .growth-card > header { min-height: 40px; padding: 9px 9px 5px; }
.growth-triplet-layout .growth-card header h3 { font-size: 12px; }
.growth-triplet-layout .growth-card-head-image { width: 44px; height: 30px; flex-basis: 44px; }
.growth-triplet-layout .growth-metric-grid {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  align-items: stretch;
}
.growth-triplet-layout .growth-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 8px;
}
.growth-triplet-layout .growth-metric > span { min-height: 20px; font-size: 8.5px; line-height: 1.25; }
.growth-triplet-layout .growth-metric > strong { margin-top: 2px; font-size: 14px; line-height: 1.1; }
.growth-triplet-layout .growth-metric small { margin-top: 2px; font-size: 7.5px; }
.growth-triplet-layout .growth-market-reference { margin-top: 3px; color: #74420d; font-size: 9px; font-weight: 800; font-style: normal; line-height: 1.2; }

.growth-panel {
  padding: 16px;
  border: 1px solid var(--line, #e8e2dd);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(55, 42, 35, .05);
}

.growth-panel > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.growth-panel > header h3 { margin: 0; font-size: 17px; }
.growth-panel > header span { color: #8a7f78; font-size: 12px; }
.growth-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.growth-panel-value .growth-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.digital-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.growth-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ebe5df;
  border-radius: 13px;
  background: linear-gradient(180deg, #fff 0%, #fdfbf9 100%);
  box-shadow: 0 6px 15px rgba(55, 42, 35, .045);
}

.growth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: #e1251b; }
.growth-card-crazyThursday::before { background: #f2ad24; }
.growth-card-onePersonMeal::before { display: none; }
.growth-card-weekendCrazyCombo::before { background: #d9a52a; }
.growth-card-godCard::before { background: #9d5bd2; }
.growth-card-app::before { background: #2f6b4f; }
.growth-card > header { display: flex; align-items: center; justify-content: space-between; padding: 15px 15px 10px; }
.growth-card > header h3 { margin: 0; font-size: 16px; }
.growth-card-head-aside { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.growth-card > header span { padding: 3px 8px; border-radius: 999px; background: #f5f1ee; color: #776c65; font-size: 11px; font-weight: 700; }
.growth-card-head-image { display: block; flex: 0 0 42px; width: 42px; height: 30px; object-fit: contain; object-position: right center; background: transparent; }
.growth-card-onePersonMeal { grid-template-rows: auto minmax(0, 1fr) !important; }
.growth-split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%; gap: 1px; background: #eee8e3; }
.growth-split-item { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #fff; }
.growth-card-onePersonMeal .growth-split-grid {
  padding: 6px;
  gap: 6px;
  background: #fff;
}
.growth-card-onePersonMeal .growth-split-item {
  border: 1px solid #ebe5df;
  border-radius: 9px;
  overflow: hidden;
}
.growth-split-head { min-height: 40px; padding: 5px 8px; display: flex; align-items: center; justify-content: space-between; gap: 5px; border-top: 4px solid #d98b22; background: #fffaf1; }
.growth-split-item:nth-child(2) .growth-split-head { border-top-color: #e1251b; background: #fff7f6; }
.growth-split-title { color: #352d28; font-size: 10px; font-weight: 850; white-space: nowrap; }
.growth-split-image { display: block; width: 42px; height: 29px; object-fit: contain; object-position: right center; }
.growth-card-crazyThursday .growth-card-head-image,
.growth-card-weekendCrazyCombo .growth-card-head-image {
  width: 52px;
  height: 34px;
  flex-basis: 52px;
}
.growth-card-onePersonMeal .growth-split-image {
  width: 52px;
  height: 34px;
}
.growth-card-app .growth-card-head-image {
  width: 52px;
  height: 34px;
  flex-basis: 52px;
}
.growth-split-item .growth-metric { height: 100%; border-top: 1px solid #eee8e3; }
.growth-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 1px; background: #eee8e3; border-top: 1px solid #eee8e3; }
.growth-metric { min-width: 0; padding: 12px 15px; background: #fff; }
.growth-metric span { display: block; min-height: 30px; color: #6e645e; font-size: 12px; line-height: 1.35; }
.growth-metric strong { display: block; margin-top: 5px; color: #2e2926; font-size: 23px; letter-spacing: -.03em; }
.growth-metric small { display: block; margin-top: 4px; color: #8a7f78; font-size: 11px; }
.growth-market-reference { display: block; margin-top: 4px; color: #8a5a22; font-size: 10px; font-style: normal; line-height: 1.3; }
.growth-metric.is-fail { background: #fff5f4; }
.growth-metric.is-fail strong { color: #c9342d; }

.audience-panel { padding: 12px 14px 8px; }
.audience-chart { width: 100%; height: 300px; }

.poi-category-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 8px; }
.poi-category-tab,
.poi-subtype-filters button,
.map-view-actions button,
.poi-pagination button {
  border: 1px solid #ded6d0;
  border-radius: 9px;
  background: #fff;
  color: #5f5550;
  font: inherit;
  cursor: pointer;
}
.poi-category-tab { padding: 9px 8px; font-size: 12px; font-weight: 800; }
.poi-category-tab.active { border-color: #e1251b; background: #e1251b; color: #fff; box-shadow: 0 6px 14px rgba(225, 37, 27, .18); }
.poi-subtype-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.poi-subtype-filters button { padding: 6px 8px; font-size: 11px; }
.poi-subtype-filters button.active { border-color: #2f2926; background: #2f2926; color: #fff; }

.poi-map-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 560px; overflow: hidden; }
.poi-map-sidebar { position: relative; z-index: 3; padding: 16px; border-right: 1px solid #e8e1db; background: #fcfaf8; }
.poi-map-sidebar > label { display: grid; gap: 6px; margin-bottom: 12px; color: #635a54; font-size: 12px; font-weight: 700; }
.map-filter-group { margin-bottom: 13px; padding: 11px; border: 1px solid #e6dfd9; border-radius: 11px; background: #fff; }
.map-filter-label { display: block; margin-bottom: 8px; color: #635a54; font-size: 12px; font-weight: 800; }
.poi-map-sidebar select,
.poi-map-sidebar input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #ded6d0; border-radius: 8px; background: #fff; color: #302a27; font: inherit; }
.map-view-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.map-view-actions button { padding: 8px 6px; font-size: 12px; font-weight: 700; }
.map-view-actions button:first-child { border-color: #e1251b; color: #c9342d; }
.map-selected-store { display: grid; gap: 3px; padding: 11px; border-radius: 10px; background: #302a27; color: #fff; }
.map-selected-store span,
.map-selected-store small { color: #d9d1cc; font-size: 10px; }
.map-selected-store strong { font-size: 14px; }
.map-selected-store em { margin-top: 3px; color: #eee8e4; font-size: 10px; font-style: normal; line-height: 1.45; }
.map-restaurant-list { display: grid; gap: 6px; max-height: 150px; margin-top: 12px; overflow-y: auto; }
.map-restaurant-list button { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; padding: 7px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.map-restaurant-list button.active { border-color: #efc5c2; background: #fff1f0; }
.map-restaurant-list i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #3a3430; color: #fff; font-size: 10px; font-style: normal; }
.map-restaurant-list span { min-width: 0; }
.map-restaurant-list strong,
.map-restaurant-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-restaurant-list strong { color: #302a27; font-size: 11px; }
.map-restaurant-list small { margin-top: 2px; color: #887d76; font-size: 9px; }

.poi-map-section .map-canvas {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f0ede8;
}
.poi-map-section #amapContainer { position: absolute; inset: 0; }
.map-load-state { position: absolute; left: 50%; top: 50%; z-index: 20; transform: translate(-50%, -50%); padding: 10px 14px; border: 1px solid #ded6d0; border-radius: 10px; background: rgba(255,255,255,.94); color: #655b55; font-size: 12px; box-shadow: 0 8px 20px rgba(48,42,39,.12); }
.map-load-state[hidden] { display: none; }
.map-load-state.is-error { color: #b93831; }
.amap-store-marker { display: flex; align-items: center; gap: 6px; transform: translateY(2px); padding: 4px 8px 4px 4px; border: 2px solid #302a27; border-radius: 999px; background: #fff; color: #302a27; white-space: nowrap; box-shadow: 0 5px 13px rgba(42,35,31,.24); cursor: pointer; }
.amap-store-marker span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #302a27; color: #fff; font-size: 10px; }
.amap-store-marker strong { font-size: 11px; }
.amap-store-marker.active { border-color: #fff; background: #e1251b; color: #fff; box-shadow: 0 0 0 4px rgba(225,37,27,.18), 0 7px 16px rgba(64,30,27,.28); }
.amap-store-marker.active span { background: #fff; color: #e1251b; }
.amap-poi-marker { display: grid; width: 24px; height: 24px; place-items: center; transform: rotate(-45deg); border: 2px solid #fff; border-radius: 50% 50% 50% 5px; background: #f2ad24; color: #302a27; box-shadow: 0 3px 8px rgba(55,42,35,.25); cursor: pointer; }
.amap-poi-marker span { transform: rotate(45deg); font-size: 8px; font-weight: 800; }
.amap-poi-marker.poi-category-lightMeal { background: #65a85e; color: #fff; }
.amap-poi-marker.poi-category-coffee { background: #8d6045; color: #fff; }
.amap-poi-marker.poi-category-ecosystem { background: #4f87b2; color: #fff; }
.amap-poi-label { display: inline-block; max-width: 120px; overflow: hidden; padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--poi-color) 55%, white); border-radius: 6px; background: rgba(255,255,255,.94); color: #463e39; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 2px 6px rgba(55,42,35,.12); }
.amap-poi-info { display: grid; gap: 5px; width: 270px; padding: 4px; color: #4a423e; }
.amap-poi-info strong { color: #2f2926; font-size: 14px; }
.amap-poi-info span { color: #e1251b; font-size: 11px; font-weight: 800; }
.amap-poi-info p { margin: 0; font-size: 11px; line-height: 1.5; }
.amap-poi-info small { color: #7b7069; line-height: 1.5; }
.poi-map-section .map-legend {
  position: absolute;
  left: auto;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 20px);
  gap: 7px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.9);
  color: #6d625b;
  font-size: 9px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(48,42,39,.1);
}
.poi-map-section .map-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.poi-map-section .map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.poi-map-section .legend-restaurant { background: #e1251b; }
.poi-map-section .legend-poi { background: #f2ad24; }
.map-poi-popover { position: absolute; left: 50%; top: 18px; z-index: 10; transform: translateX(-50%); display: grid; gap: 4px; width: min(310px, calc(100% - 30px)); padding: 13px 38px 13px 14px; border: 1px solid #e3dbd5; border-radius: 11px; background: rgba(255,255,255,.96); box-shadow: 0 10px 24px rgba(48,42,39,.17); }
.map-poi-popover[hidden] { display: none; }
.map-poi-popover button { position: absolute; right: 9px; top: 8px; border: 0; background: transparent; color: #776c65; font-size: 18px; cursor: pointer; }
.map-poi-popover strong { color: #302a27; font-size: 14px; }
.map-poi-popover span { color: #e1251b; font-size: 11px; font-weight: 800; }
.map-poi-popover small { color: #756a63; font-size: 10px; line-height: 1.5; }

.poi-table-panel { margin-top: 12px; overflow: hidden; }
.poi-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; border-bottom: 1px solid #ebe4de; }
.poi-table-toolbar h3 { margin: 0; font-size: 16px; }
.poi-table-toolbar p { margin: 4px 0 0; color: #81766f; font-size: 11px; }
.poi-data-table { min-width: 1120px; }
.poi-data-table th { white-space: nowrap; }
.poi-data-table td { max-width: 220px; font-size: 11px; }
.poi-data-table td.is-empty { color: #aaa19b; }
.poi-edit-input { width: 96px; min-width: 84px; padding: 7px 8px; border: 1px solid #ddd5cf; border-radius: 7px; background: #fffdfa; font: inherit; }
.poi-edit-input:focus { border-color: #e1251b; outline: 2px solid rgba(225,37,27,.1); }
.poi-wpsa-input { text-align: right; font-variant-numeric: tabular-nums; }
.poi-wpsa-input:invalid:not(:placeholder-shown) { border-color: #c62828; background: #fff4f3; }
.poi-table-empty { padding: 24px; color: #8a7f78; text-align: center; }
.poi-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid #ebe4de; color: #766b64; font-size: 12px; }
.poi-pagination button { padding: 6px 10px; }
.poi-pagination button:disabled { cursor: not-allowed; opacity: .42; }

.marketing-guide-card { padding: 18px 20px; background: linear-gradient(135deg, #fff 0%, #fff8f7 100%); }
.guide-opening { margin: 0; color: #332d29; font-size: 16px; font-weight: 800; line-height: 1.65; }
.marketing-guide-copy ul { display: grid; gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.marketing-guide-copy li { position: relative; padding: 10px 12px 10px 32px; border-radius: 9px; background: #fff; color: #645a54; font-size: 13px; line-height: 1.55; }
.marketing-guide-copy li::before { content: "→"; position: absolute; left: 12px; color: #e1251b; font-weight: 900; }
@media (max-width: 980px) {
  .growth-triplet-layout { grid-template-columns: 1fr 1fr; }
  .growth-panel-digital { grid-column: 1 / -1; }
  .staple-value-layout { grid-template-columns: 1fr; }
  .poi-map-shell { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .growth-card-grid,
  .digital-card-grid { grid-template-columns: 1fr; }
  .poi-category-tabs { grid-template-columns: repeat(2, 1fr); }
  .poi-map-shell { grid-template-columns: 1fr; }
  .poi-map-sidebar { border-right: 0; border-bottom: 1px solid #e8e1db; }
  .poi-map-section .map-canvas { min-height: 360px; }
  .audience-chart { height: 340px; }
}

/* Author: Oames.Zhao - strengthen KPI and target readability across the shared Web/H5 cards. */
.metric-group-wpsa .metric-actual strong { font-size: 24px; }
.metric-group-wpsa .metric-period-ytd .metric-actual strong { font-size: 20px; }
.metric-group-wpsa .metric-cell strong { font-size: 15px; }
.module-value-cell strong { font-size: 13px; }
.module-value-cell .module-value-detail { font-size: 9px; }
.module-lever-item strong { font-size: 12px; }
.module-lever-item small { font-size: 9px; }
.business-card-delivery .business-kpi > strong { font-size: 13px; }
.business-card-delivery .business-kpi-target { font-size: 8px; }
.business-kpi > strong { font-size: 15px; }
.business-kpi-target,
.business-primary .business-kpi-target,
.business-detail .business-kpi-target { font-size: 9px; }
.business-primary > strong { font-size: 22px; }
.business-detail > strong { font-size: 14px; }
.growth-triplet-layout .growth-metric > strong { font-size: 16px; }
.growth-triplet-layout .growth-metric small { font-size: 9px; }
