:root {
  --lumi: #008f4f;
  --lumi-dark: #006d3d;
  --lumi-soft: #e4f5ed;
  --ink: #13251d;
  --muted: #66736d;
  --line: #dce8e1;
  --paper: #f5f8f6;
  --panel: #ffffff;
  --amber: #f39a18;
  --amber-soft: #fff2d8;
  --blue: #2f75b8;
  --blue-soft: #e3f0fb;
  --red: #c95149;
  --red-soft: #fae7e5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px 24px;
  background: #101513;
  color: #f3fbf7;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0 14px 8px;
  text-align: center;
}

.brand img {
  width: 182px;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: block;
  width: 100%;
}

.brand-copy strong {
  display: block;
}

.brand-copy strong {
  color: #d8efe5;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1.2px;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-list a,
.store-chip span,
.store-chip small {
  color: #b9d4c8;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  position: relative;
  min-height: 40px;
  padding: 9px 10px 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  background: transparent;
}

.nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
}

.nav-list svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #1bdd94;
}

.nav-list a span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(7, 70, 45, 0.78);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(27, 221, 148, 0.08);
}

.nav-list a.active::before {
  background: #1bdd94;
}

.nav-list a:hover svg,
.nav-list a.active svg {
  color: #18f09c;
}

.store-chip {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.store-chip strong {
  display: block;
  margin: 5px 0 8px;
  font-size: 15px;
}

.store-chip small {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.dashboard {
  padding: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--lumi);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  font-size: 16px;
  letter-spacing: 0;
}

.heading-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--lumi);
}

.title-group span,
.date-block span,
.panel-heading span,
.metric-card span,
.metric-card small,
.region-summary span {
  color: var(--muted);
}

.date-block {
  min-width: 160px;
  padding-top: 4px;
  text-align: right;
}

.date-block strong {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--lumi-soft);
  color: var(--lumi-dark);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.metric-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(19, 37, 29, 0.06);
}

.metric-card {
  min-height: 100px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  border-top-width: 4px;
}

.metric-top {
  min-height: 28px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  padding: 5px;
  border-radius: 8px;
  background: rgba(0, 143, 79, 0.1);
  color: var(--lumi);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accent-amber .icon {
  background: rgba(243, 154, 24, 0.14);
  color: #bd7106;
}

.accent-blue .icon {
  background: rgba(47, 117, 184, 0.12);
  color: var(--blue);
}

.accent-red .icon {
  background: rgba(201, 81, 73, 0.12);
  color: var(--red);
}

.metric-card strong {
  display: block;
  margin: 8px 0 3px;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1;
}

.accent-green {
  border-top-color: var(--lumi);
  background: linear-gradient(180deg, #ffffff, var(--lumi-soft));
}

.accent-amber {
  border-top-color: var(--amber);
  background: linear-gradient(180deg, #ffffff, var(--amber-soft));
}

.accent-blue {
  border-top-color: var(--blue);
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
}

.accent-red {
  border-top-color: var(--red);
  background: linear-gradient(180deg, #ffffff, var(--red-soft));
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  gap: 14px;
  align-items: start;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.15fr) minmax(360px, 0.85fr);
  gap: 10px;
  align-items: start;
}

.analysis-main {
  grid-row: span 2;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(360px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
}

.panel {
  padding: 14px;
  min-width: 0;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.panel-heading strong {
  white-space: nowrap;
}

.stream-panel {
  grid-column: span 1;
}

.bar-chart {
  height: 254px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(30px, 1fr);
  gap: 8px;
  align-items: end;
  padding-top: 8px;
}

.bar-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 22px 1fr 18px;
  gap: 7px;
  align-items: end;
}

.bar {
  min-height: 12px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #00a95d, var(--lumi-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bar-value {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.bar-label {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.line-chart {
  position: relative;
  min-height: 238px;
  padding: 6px 0 0;
}

.line-chart-svg {
  width: 100%;
  height: 238px;
  display: block;
  overflow: visible;
}

.chart-grid line {
  stroke: #dce8e1;
  stroke-width: 1;
}

.line-area {
  fill: rgba(0, 143, 79, 0.12);
}

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

.line-dot {
  fill: #ffffff;
  stroke: var(--lumi);
  stroke-width: 4;
  cursor: pointer;
}

.line-dot:hover,
.line-dot:focus {
  fill: var(--lumi);
  outline: none;
}

.line-label {
  fill: var(--muted);
  font-size: 12px;
  text-anchor: middle;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 138px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #073b25;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(19, 37, 29, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 120ms ease;
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip span {
  margin-top: 3px;
  color: #cce8dc;
  font-size: 12px;
}

.queue-meter {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ece8;
}

.queue-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lumi), var(--amber), var(--red));
  transition: width 180ms ease;
}

.queue-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.queue-meta span:nth-child(n + 2) {
  text-align: center;
}

.queue-meta span:last-child {
  text-align: right;
}

.region-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.region-summary div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.region-summary strong,
.region-summary span {
  display: block;
}

.region-summary strong {
  margin-top: 8px;
  font-size: 24px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #0d1713;
}

.video-frame-large {
  min-height: 420px;
}

.video-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.floorplan-frame {
  height: min(58vh, 610px);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.floorplan-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.live-dot {
  position: relative;
  padding-left: 14px;
  color: var(--lumi);
}

.live-dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--lumi);
}

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

.tracking-grid h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.tracking-list {
  display: grid;
  gap: 8px;
}

.tracking-list.tall {
  height: 286px;
  overflow-y: auto;
  align-content: start;
}

.analysis-grid .tracking-panel {
  height: 365px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.analysis-grid .tracking-panel .panel-heading {
  flex: 0 0 auto;
}

.analysis-grid .tracking-panel .tracking-list.tall {
  flex: 1;
  min-height: 0;
  max-height: 286px;
}

.track-row,
.empty-state,
.info-grid div,
.setting-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.track-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 52px;
}

.track-row.compact {
  grid-template-columns: 1fr auto;
}

.track-row strong,
.track-row span,
.track-row em,
.info-grid span,
.info-grid strong,
.setting-list span,
.setting-list strong {
  display: block;
}

.track-row span,
.info-grid span,
.setting-list span {
  color: var(--muted);
}

.track-row em {
  color: var(--lumi-dark);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.empty-state {
  color: var(--muted);
}

.info-grid,
.setting-list {
  display: grid;
  gap: 10px;
}

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

.info-grid strong,
.setting-list strong {
  margin-top: 5px;
  font-size: 18px;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.store-list-panel {
  position: sticky;
  top: 24px;
}

.store-list {
  display: grid;
  gap: 8px;
}

.store-row {
  width: 100%;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  text-decoration: none;
  display: grid;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.store-row:hover,
.store-row.active {
  border-color: rgba(0, 143, 79, 0.45);
  background: var(--lumi-soft);
}

.store-row strong,
.store-row small,
.store-row em {
  display: block;
}

.store-row strong {
  font-size: 15px;
}

.store-row small {
  margin-top: 4px;
  color: var(--muted);
}

.store-row em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.store-row em.ready {
  background: #ffffff;
  color: var(--lumi-dark);
}

.store-row em.pending {
  background: #fae7e5;
  color: #b7463f;
}

.liveview-panel {
  min-width: 0;
}

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

.camera-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1713;
}

.camera-header {
  min-height: 42px;
  padding: 10px 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.camera-header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-header span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5ece8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.camera-tile.live .camera-header span {
  background: var(--lumi-soft);
  color: var(--lumi-dark);
}

.camera-tile.error .camera-header span {
  background: var(--red-soft);
  color: var(--red);
}

.camera-frame {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d1713;
  color: #b9d4c8;
  font-weight: 800;
}

.camera-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.camera-empty {
  background: #f7faf8;
}

.camera-empty .camera-frame {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 143, 79, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
    #fbfdfc;
  color: var(--muted);
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .nav-list {
    display: flex;
  }

  .store-chip {
    margin-top: 0;
    margin-left: auto;
    min-width: 220px;
  }

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

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

  .overview-grid,
  .analysis-grid,
  .management-grid {
    grid-template-columns: 1fr;
  }

  .analysis-main {
    grid-row: auto;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-list-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .dashboard {
    padding: 16px;
  }

  .topbar,
  .panel-heading,
  .title-group {
    display: grid;
  }

  .date-block {
    text-align: left;
  }

  .kpi-grid,
  .region-summary,
  .tracking-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 16px;
  }

  .brand img {
    width: 150px;
  }

  .store-chip {
    display: none;
  }

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

@media (min-width: 721px) and (max-width: 980px) {
  .camera-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

.overview-page {
  --lumi: #00d084;
  --lumi-dark: #00a96b;
  --ink: #eef7f3;
  --muted: #8d9792;
  --line: rgba(255, 255, 255, 0.1);
  --paper: #050807;
  --panel: rgba(18, 23, 22, 0.94);
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 208, 132, 0.16), transparent 28%),
    linear-gradient(135deg, #050807 0%, #0b1110 48%, #070908 100%);
  color: var(--ink);
}

.overview-page .app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  padding: 16px;
  gap: 16px;
}

.overview-page .sidebar {
  height: calc(100vh - 32px);
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(7, 10, 10, 0.88);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
  gap: 20px;
  overflow-y: auto;
}

.overview-page .brand {
  justify-items: start;
  padding: 0 6px 10px;
}

.overview-page .brand img {
  width: 190px;
}

.overview-page .brand-copy {
  display: none;
}

.overview-page .nav-list {
  gap: 5px;
}

.overview-page .nav-section {
  margin: 14px 10px 7px;
  color: rgba(238, 247, 243, 0.54);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.overview-page .nav-list a {
  min-height: 41px;
  padding: 9px 11px;
  color: rgba(238, 247, 243, 0.66);
  font-size: 14px;
  font-weight: 650;
}

.overview-page .nav-list a span {
  overflow-wrap: normal;
  white-space: nowrap;
}

.overview-page .nav-list svg {
  width: 20px;
  height: 20px;
  color: rgba(238, 247, 243, 0.56);
}

.overview-page .nav-list a.active,
.overview-page .nav-list a:hover {
  background: linear-gradient(90deg, rgba(0, 208, 132, 0.25), rgba(0, 208, 132, 0.08));
  color: #ffffff;
}

.overview-page .nav-list a.active svg,
.overview-page .nav-list a:hover svg {
  color: var(--lumi);
}

.overview-page .nav-badge {
  margin-left: auto;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--lumi);
  color: #06100c;
  font-size: 12px;
  text-align: center;
}

.overview-page .store-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.overview-page .store-chip > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 208, 132, 0.55);
  color: #ffffff;
  font-weight: 900;
}

.overview-page .store-chip strong {
  margin: 0 0 4px;
  color: #ffffff;
}

.overview-page .store-chip small {
  color: rgba(238, 247, 243, 0.62);
  font-size: 13px;
  font-weight: 500;
}

.overview-page .dashboard {
  min-width: 0;
  padding: 22px 0 12px;
}

.overview-page .topbar {
  align-items: center;
  margin-bottom: 20px;
}

.overview-page .title-group {
  min-width: 0;
  flex-wrap: wrap;
  gap: 14px;
}

.overview-page h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 1.8vw, 34px);
  white-space: nowrap;
}

.overview-page .store-select,
.overview-page .ghost-button,
.overview-page .icon-button,
.overview-page .ai-button,
.overview-page .panel-filter {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  font: inherit;
  font-weight: 650;
}

.overview-page .store-select svg,
.overview-page .ghost-button svg,
.overview-page .icon-button svg,
.overview-page .ai-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-page .store-select select {
  min-width: 220px;
  max-width: 320px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}

.overview-page .store-select option {
  color: #102019;
  background: #ffffff;
}

.overview-page .online-state {
  color: var(--lumi);
  font-size: 14px;
  white-space: nowrap;
}

.overview-page .online-state::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--lumi);
}

.overview-page .top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-page .icon-button {
  width: 42px;
  justify-content: center;
  padding: 0;
}

.overview-page .ai-button {
  border-color: rgba(0, 208, 132, 0.65);
  color: var(--lumi);
  box-shadow: 0 0 18px rgba(0, 208, 132, 0.24);
}

.overview-page .kpi-grid {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.overview-page .metric-card,
.overview-page .panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(17, 22, 21, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 20px 48px rgba(0, 0, 0, 0.28);
}

.overview-page .metric-card {
  min-height: 146px;
  padding: 20px;
  border-top-width: 1px;
}

.overview-page .metric-card strong {
  color: #f7fbf9;
  font-size: clamp(28px, 2.1vw, 40px);
  font-weight: 850;
}

.overview-page .metric-card small {
  color: rgba(238, 247, 243, 0.58);
}

.overview-page .metric-top > span {
  color: rgba(238, 247, 243, 0.78);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.overview-page .metric-top > span small {
  color: rgba(238, 247, 243, 0.56);
  font-size: 11px;
  text-transform: lowercase;
}

.overview-page .icon {
  width: 42px;
  height: 42px;
  padding: 8px;
  background: rgba(0, 208, 132, 0.08);
  color: var(--lumi);
}

.overview-page .accent-green,
.overview-page .accent-amber,
.overview-page .accent-blue,
.overview-page .accent-red {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 208, 132, 0.11), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.overview-page .trend {
  margin-right: 14px;
  font-style: normal;
  font-weight: 850;
}

.overview-page .trend.up {
  color: var(--lumi);
}

.overview-page .trend.down {
  color: #ff4d46;
}

.overview-page .overview-grid {
  grid-template-columns: minmax(400px, 1.06fr) minmax(340px, 0.9fr) minmax(420px, 1.06fr);
  gap: 16px;
}

.overview-page .panel {
  padding: 18px 20px;
}

.overview-page .panel-heading {
  align-items: center;
  margin-bottom: 14px;
}

.overview-page h2 {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 850;
  text-transform: uppercase;
}

.overview-page .panel-heading span,
.overview-page .chart-legend span {
  color: rgba(238, 247, 243, 0.58);
}

.overview-page .panel-filter {
  min-height: 38px;
  padding: 0 12px;
  color: rgba(238, 247, 243, 0.75);
}

.overview-page .chart-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}

.overview-page .chart-legend i {
  width: 18px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 999px;
  vertical-align: middle;
}

.overview-page .legend-passby {
  background: #2fd458;
}

.overview-page .legend-store {
  background: #16b7b8;
}

.overview-page .line-chart,
.overview-page .line-chart-svg {
  min-height: 274px;
  height: 274px;
}

.overview-page .chart-grid line {
  stroke: rgba(255, 255, 255, 0.08);
}

.overview-page .line-area {
  fill: rgba(0, 208, 132, 0.17);
}

.overview-page .line-path {
  stroke: #36d65a;
  stroke-width: 3;
}

.overview-page .line-dot {
  fill: #102019;
  stroke: #6afb9f;
}

.overview-page .line-label {
  fill: rgba(238, 247, 243, 0.6);
}

.overview-page .chart-tooltip {
  background: rgba(8, 13, 12, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.overview-page .heatmap-panel .floorplan-frame {
  position: relative;
  height: 262px;
  min-height: 262px;
  background: #101817;
  border-color: rgba(255, 255, 255, 0.12);
  filter: saturate(0.75) contrast(1.1) brightness(0.72);
}

.overview-page .heatmap-panel .floorplan-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 44, 0.34);
  mix-blend-mode: screen;
  pointer-events: none;
}

.overview-page .heatmap-panel img {
  opacity: 0.62;
}

.overview-page .heat-dot {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 54, 0.9) 0 16%, rgba(255, 211, 45, 0.8) 27%, rgba(0, 208, 132, 0.62) 46%, rgba(16, 132, 255, 0.35) 68%, transparent 78%);
  filter: blur(3px);
  mix-blend-mode: screen;
}

.overview-page .dot-a { left: 10%; top: 16%; }
.overview-page .dot-b { left: 35%; top: 8%; transform: scale(1.35); }
.overview-page .dot-c { left: 72%; top: 17%; transform: scale(1.2); }
.overview-page .dot-d { left: 20%; top: 56%; transform: scale(0.82); }
.overview-page .dot-e { left: 44%; top: 63%; transform: scale(1.08); }

.overview-page .heat-scale {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 62%;
  margin: 12px auto 0;
  color: rgba(238, 247, 243, 0.72);
  font-size: 12px;
}

.overview-page .heat-scale i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #243bff, #00c8ff, #18d86b, #ffe13b, #ff3d36);
}

.overview-page .zone-table,
.overview-page .staff-table {
  display: grid;
  gap: 0;
}

.overview-page .zone-table > div {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.65fr 1fr;
  gap: 14px;
  align-items: center;
  min-height: 39px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(238, 247, 243, 0.73);
}

.overview-page .zone-table > div:first-child,
.overview-page .staff-table > div:first-child {
  color: rgba(238, 247, 243, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.overview-page .zone-table strong,
.overview-page .staff-table strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.overview-page .zone-table em,
.overview-page .staff-table em {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(238, 247, 243, 0.82);
  font-style: normal;
}

.overview-page .zone-table i,
.overview-page .staff-table i {
  height: 8px;
  min-width: 14px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #00b978, #17e89b);
}

.overview-page .donut-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: center;
}

.overview-page .donut {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #111615 0 47%, transparent 48%),
    conic-gradient(var(--lumi) 0 78%, rgba(255, 255, 255, 0.72) 78% 100%);
}

.overview-page .donut strong {
  color: #ffffff;
  font-size: 34px;
}

.overview-page .donut span {
  color: rgba(238, 247, 243, 0.66);
  font-size: 12px;
}

.overview-page .donut-note {
  display: grid;
  gap: 18px;
  color: rgba(238, 247, 243, 0.72);
}

.overview-page .donut-note i {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lumi);
}

.overview-page .donut-note span:last-child i {
  background: rgba(255, 255, 255, 0.72);
}

.overview-page .staff-panel {
  grid-column: span 1;
}

.overview-page .staff-table > div {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr 1fr;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(238, 247, 243, 0.73);
}

.overview-page .alert-panel .panel-heading a {
  color: var(--lumi);
  font-weight: 800;
  text-decoration: none;
}

.overview-page .alert-list {
  display: grid;
}

.overview-page .alert-list div {
  display: grid;
  grid-template-columns: 36px 1fr 45px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.overview-page .alert-list b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
}

.overview-page .alert-list .danger {
  background: #ff4545;
}

.overview-page .alert-list .warn {
  background: #ff9f0a;
}

.overview-page .alert-list .info {
  background: #2f8de4;
}

.overview-page .alert-list span {
  color: rgba(255, 255, 255, 0.83);
}

.overview-page .alert-list small {
  display: block;
  margin-top: 2px;
  color: rgba(238, 247, 243, 0.56);
}

.overview-page .alert-list time {
  color: rgba(238, 247, 243, 0.56);
  text-align: right;
}

.overview-page .quick-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(360px, 0.92fr);
  gap: 16px;
  margin-top: 16px;
}

.overview-page .quick-dock > a,
.overview-page .ai-assistant {
  min-height: 106px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(17, 22, 21, 0.94);
  color: rgba(238, 247, 243, 0.76);
  text-decoration: none;
}

.overview-page .quick-dock > a {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  column-gap: 14px;
}

.overview-page .quick-dock > a > span {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 208, 132, 0.55);
  border-radius: 50%;
  color: var(--lumi);
  font-size: 27px;
}

.overview-page .quick-dock strong {
  color: #ffffff;
}

.overview-page .quick-dock small {
  color: rgba(238, 247, 243, 0.55);
}

.overview-page .ai-assistant {
  border-color: rgba(0, 208, 132, 0.65);
  box-shadow: 0 0 22px rgba(0, 208, 132, 0.18);
}

.overview-page .ai-assistant strong {
  color: var(--lumi);
}

.overview-page .ai-assistant em {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 208, 132, 0.14);
  font-size: 10px;
  font-style: normal;
}

.overview-page .ai-assistant label {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 0 8px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.overview-page .ai-assistant button {
  border: 0;
  background: transparent;
  color: var(--lumi);
  font-size: 34px;
  line-height: 1;
}

@media (max-width: 1500px) {
  .overview-page .app-shell {
    grid-template-columns: 272px minmax(0, 1fr);
  }

  .overview-page .kpi-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }

  .overview-page .overview-grid {
    grid-template-columns: repeat(2, minmax(360px, 1fr));
  }

  .overview-page .zone-panel,
  .overview-page .alert-panel {
    grid-column: span 2;
  }

  .overview-page .quick-dock {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 980px) {
  .overview-page .app-shell {
    display: block;
    padding: 0;
  }

  .overview-page .sidebar {
    position: relative;
    height: auto;
    border-radius: 0;
  }

  .overview-page .dashboard {
    padding: 16px;
  }

  .overview-page .topbar,
  .overview-page .title-group,
  .overview-page .top-actions {
    display: grid;
    justify-content: stretch;
  }

  .overview-page .kpi-grid,
  .overview-page .overview-grid,
  .overview-page .quick-dock {
    grid-template-columns: 1fr;
  }

  .overview-page .zone-panel,
  .overview-page .alert-panel,
  .overview-page .staff-panel {
    grid-column: auto;
  }

  .overview-page .zone-table > div,
  .overview-page .staff-table > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px 0;
  }
}

.overview-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.overview-page .app-shell {
  display: block;
  min-height: 100vh;
  padding: 2px 8px 10px;
}

.overview-page .sidebar {
  display: none;
}

.overview-page .dashboard {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.overview-page .topbar {
  min-height: 36px;
  margin-bottom: 15px;
  align-items: center;
}

.overview-page .title-group {
  gap: 10px;
}

.overview-page h1 {
  font-size: clamp(25px, 1.9vw, 31px);
  line-height: 1;
}

.overview-page .store-select,
.overview-page .ghost-button,
.overview-page .icon-button,
.overview-page .ai-button,
.overview-page .panel-filter {
  min-height: 34px;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 14px;
}

.overview-page .icon-button {
  width: 34px;
}

.overview-page .store-select svg,
.overview-page .ghost-button svg,
.overview-page .icon-button svg,
.overview-page .ai-button svg {
  width: 16px;
  height: 16px;
}

.overview-page .online-state {
  font-size: 13px;
}

.overview-page .kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 12px;
}

.overview-page .metric-card {
  min-height: 105px;
  padding: 16px;
  border-radius: 8px;
}

.overview-page .metric-top {
  min-height: 28px;
}

.overview-page .metric-top > span {
  font-size: 11px;
  line-height: 1.2;
}

.overview-page .metric-top > span small {
  font-size: 9px;
}

.overview-page .icon {
  width: 33px;
  height: 33px;
  padding: 7px;
  border-radius: 7px;
}

.overview-page .metric-card strong {
  margin: 5px 0 0;
  font-size: clamp(28px, 2.1vw, 35px);
}

.overview-page .metric-card small {
  font-size: 12px;
}

.overview-page .trend {
  margin-right: 10px;
}

.overview-page .overview-grid {
  grid-template-columns: minmax(430px, 1.08fr) minmax(360px, 0.92fr) minmax(430px, 1.08fr);
  gap: 12px;
}

.overview-page .panel {
  padding: 14px 16px;
  border-radius: 8px;
}

.overview-page .panel-heading {
  margin-bottom: 10px;
}

.overview-page h2 {
  font-size: 15px;
  line-height: 1;
}

.overview-page .panel-heading span {
  font-size: 13px;
}

.overview-page .panel-filter {
  min-height: 32px;
  padding: 0 11px;
}

.overview-page .chart-legend {
  margin-bottom: 0;
  font-size: 11px;
}

.overview-page .line-chart,
.overview-page .line-chart-svg {
  min-height: 228px;
  height: 228px;
}

.overview-page .heatmap-panel .floorplan-frame {
  height: 182px;
  min-height: 182px;
  border-radius: 4px;
}

.overview-page .heat-dot {
  width: 86px;
  height: 86px;
}

.overview-page .heat-scale {
  width: 58%;
  margin-top: 8px;
}

.overview-page .zone-table > div {
  min-height: 33px;
  gap: 10px;
  font-size: 12px;
}

.overview-page .zone-table > div:first-child,
.overview-page .staff-table > div:first-child {
  font-size: 10px;
}

.overview-page .zone-table strong,
.overview-page .staff-table strong {
  font-size: 12px;
}

.overview-page .donut-layout {
  grid-template-columns: 138px 1fr;
  gap: 20px;
}

.overview-page .donut {
  width: 138px;
  height: 138px;
}

.overview-page .donut strong {
  font-size: 30px;
}

.overview-page .donut-note {
  gap: 13px;
  font-size: 13px;
}

.overview-page .staff-table > div {
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.overview-page .alert-list div {
  min-height: 47px;
  grid-template-columns: 30px 1fr 42px;
  gap: 10px;
  font-size: 13px;
}

.overview-page .alert-list b {
  width: 26px;
  height: 26px;
}

.overview-page .alert-list small {
  font-size: 11px;
}

.overview-page .quick-dock {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(280px, 0.92fr);
  gap: 12px;
  margin-top: 12px;
}

.overview-page .quick-dock > a,
.overview-page .ai-assistant {
  min-height: 82px;
  padding: 12px 16px;
  border-radius: 8px;
}

.overview-page .quick-dock > a {
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
}

.overview-page .quick-dock > a > span {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.overview-page .ai-assistant label {
  min-height: 38px;
  margin-top: 10px;
  font-size: 12px;
}

.overview-page .ai-assistant button {
  font-size: 28px;
}

@media (min-width: 981px) {
  .overview-page .kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .overview-page .overview-grid {
    grid-template-columns: minmax(430px, 1.08fr) minmax(360px, 0.92fr) minmax(430px, 1.08fr);
  }

  .overview-page .zone-panel,
  .overview-page .alert-panel,
  .overview-page .staff-panel {
    grid-column: auto;
  }

  .overview-page .quick-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(280px, 0.92fr);
  }
}

.overview-page .app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 12px;
  padding: 0;
}

.overview-page .sidebar {
  display: flex;
  height: 100vh;
  padding: 20px 14px 24px;
  border: 0;
  border-radius: 0;
  background: #101513;
  box-shadow: none;
  gap: 22px;
}

.overview-page .brand {
  justify-items: center;
  gap: 12px;
  padding: 0 14px 8px;
}

.overview-page .brand img {
  width: 182px;
}

.overview-page .brand-copy {
  display: block;
  width: 100%;
}

.overview-page .brand-copy strong {
  color: #d8efe5;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1.2px;
  text-align: center;
  white-space: nowrap;
}

.overview-page .nav-section {
  display: none;
}

.overview-page .nav-list {
  gap: 8px;
}

.overview-page .nav-list a {
  min-height: 40px;
  padding: 9px 10px 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.overview-page .nav-list svg {
  width: 21px;
  height: 21px;
  color: #1bdd94;
}

.overview-page .nav-list a.active,
.overview-page .nav-list a:hover {
  background: rgba(7, 70, 45, 0.78);
}

.overview-page .nav-list a.active::before {
  background: #1bdd94;
}

.overview-page .store-chip {
  display: block;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: transparent;
}

.overview-page .store-chip > span {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: #b9d4c8;
  font-size: 14px;
  font-weight: 700;
}

.overview-page .store-chip strong {
  display: block;
  margin: 5px 0 8px;
  color: #ffffff;
  font-size: 15px;
}

.overview-page .store-chip small {
  display: block;
  color: #b9d4c8;
  font-size: 18px;
  font-weight: 800;
}

.overview-page .dashboard {
  padding: 8px 8px 10px 0;
}

@media (min-width: 981px) {
  .overview-page .kpi-grid {
    grid-template-columns: repeat(5, minmax(138px, 1fr));
  }

  .overview-page .overview-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.92fr) minmax(330px, 1fr);
  }

  .overview-page .quick-dock {
    grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(240px, 0.95fr);
  }
}

.overview-page .heatmap-panel .floorplan-frame {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 2203 / 1387;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.overview-page .heatmap-panel .floorplan-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overview-page .line-label {
  font-size: 10px;
}

.overview-page .overview-grid {
  align-items: stretch;
}

.overview-page .traffic-panel,
.overview-page .heatmap-panel,
.overview-page .zone-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.overview-page .traffic-panel .line-chart {
  flex: 1;
  min-height: 0;
  height: auto;
}

.overview-page .traffic-panel .line-chart-svg {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.overview-page .zone-panel .zone-table {
  flex: 1;
  align-content: stretch;
}
