
.live-view {
  min-height: 100vh;
}

.live-view .app-grid {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

.live-view .map-view {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

.live-view #map,
.live-view .map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.live-view .map-view {
  border-radius: var(--corner-radius);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

.live-view .map-canvas {
  border-radius: inherit;
}

.live-view .panel-left,
.live-view .panel-right {
  padding: clamp(14px, 3vw, 20px);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  border-radius: var(--corner-radius);
  background: var(--panel-bg);
}

.live-view .panel-left {
  overflow-y: auto;
  gap: clamp(4px, 1.1vh, 8px);
}


.live-view .panel-right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.right-panel-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vh, 14px);
  height: 100%;
  min-height: 0;
}

.rp-top,
.rp-list,
.rp-bottom {
  min-width: 0;
}

.rp-top {
  position: sticky;
  top: 0;
  background: var(--panel-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--corner-radius);
  padding: clamp(12px, 2.6vh, 16px);
  z-index: 2;
}

.rp-top-header {
  margin: 0;
  padding-bottom: clamp(4px, 0.8vh, 8px);
}

.rp-filter-row {
  margin: 0;
}

.rp-filter-row .item {
  gap: clamp(8px, 1.2vh, 12px);
  padding: 0;
}

.rp-filter-row .slider-input-row {
  margin-top: clamp(6px, 1.1vh, 10px);
}

.live-view .right-panel .rp-list {
  flex: 1 1 auto;
  background: var(--panel-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--corner-radius);
  padding: clamp(12px, 2.6vh, 16px);
  min-height: 0;
  overflow-y: auto;
}

.rp-bottom {
  position: sticky;
  bottom: 0;
  background: var(--panel-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--corner-radius);
  padding: clamp(10px, 2vh, 14px);
  box-shadow: 0 -10px 18px rgba(15, 23, 42, 0.1);
  z-index: 2;
}

.rp-bottom .collision-sublist {
  margin: 0;
}

.live-stats__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-stats__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
}

.live-stats__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-stats__empty {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted-text-color);
}

.live-stats__item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
  font-size: 0.8rem;
}

.live-stats__label {
  font-weight: 500;
  line-height: 1.2;
}

.live-stats__value {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.live-stats__change {
  font-size: 0.7rem;
  color: var(--muted-text-color);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .live-view .app-grid {
    height: calc(100vh - var(--nav-h));
    margin-top: var(--nav-h);
    padding: 0;
  }
}

@media (max-width: 768px) {
  .live-view .app-grid {
    height: auto;
    margin-top: var(--nav-h);
    padding: clamp(16px, 4vw, 28px);
  }

  .live-view .map-view {
    min-height: clamp(360px, 65vh, 540px);
    max-height: calc(100vh - var(--nav-h) - clamp(16px, 6vw, 40px));
  }

  .live-view #map,
  .live-view .map-canvas {
    height: 100%;
    min-height: inherit;
  }

  .live-view .map-nav {
    left: 50%;
    transform: translateX(-50%);
    top: clamp(12px, 4vw, 24px);
    gap: clamp(6px, 3vw, 14px);
    padding: clamp(8px, 3vw, 14px);
    width: calc(100% - clamp(32px, 12vw, 64px));
    justify-content: center;
    flex-wrap: wrap;
  }

  .live-view .map-nav .nav-button {
    flex: 1 1 clamp(120px, 32vw, 200px);
    min-width: clamp(120px, 32vw, 200px);
  }
}