.rs-thermal-map-shell {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
}

.rs-thermal-map {
  --rs-tm-bg: var(--rs-bg, #07090d);
  --rs-tm-panel: rgba(11, 15, 20, 0.94);
  --rs-tm-panel-2: rgba(15, 20, 27, 0.9);
  --rs-tm-panel-3: rgba(20, 26, 35, 0.9);
  --rs-tm-panel-border: var(--rs-border, rgba(255, 255, 255, 0.08));
  --rs-tm-border-strong: var(--rs-border-strong, rgba(255, 255, 255, 0.14));
  --rs-tm-accent: var(--rs-primary, #ff2d3d);
  --rs-tm-accent-soft: var(--rs-primary-soft, rgba(255, 45, 61, 0.12));
  --rs-tm-accent-border: var(--rs-primary-border, rgba(255, 45, 61, 0.35));
  --rs-tm-text: var(--rs-text, #f4f7fb);
  --rs-tm-text-muted: var(--rs-text-muted, #a7b0bf);
  --rs-tm-text-soft: var(--rs-text-soft, #6f7a8b);
  --rs-tm-rail-width: 360px;
  --rs-tm-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);

  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  position: relative;
  background: var(--rs-tm-bg);
  color: var(--rs-tm-text);
  overflow: hidden;
}

.rs-thermal-map * {
  box-sizing: border-box;
}

.rs-thermal-map button,
.rs-thermal-map input,
.rs-thermal-map select {
  font: inherit;
}

.rs-thermal-map__sidebar {
  width: var(--rs-tm-rail-width);
  min-width: 300px;
  flex: 0 0 var(--rs-tm-rail-width);
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.97), rgba(7, 9, 13, 0.95));
  border-right: 1px solid var(--rs-tm-panel-border);
  display: flex;
  flex-direction: column;
  z-index: 1120;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--rs-tm-shadow);
  transition: margin-left 0.28s cubic-bezier(.16,1,.3,1), transform 0.28s cubic-bezier(.16,1,.3,1);
}

.rs-thermal-map.rs-thermal-map--rail-collapsed .rs-thermal-map__sidebar {
  margin-left: calc(var(--rs-tm-rail-width) * -1);
}

.sb__header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--rs-tm-panel-border);
  background: rgba(11, 15, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.sb__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sb__brandIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--rs-tm-accent-soft);
  border: 1px solid var(--rs-tm-accent-border);
  color: var(--rs-tm-accent);
  font-weight: 900;
  font-size: 12px;
  flex: 0 0 auto;
}

.sb__brandName {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.12;
  color: var(--rs-tm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb__brandSub {
  margin-top: 2px;
  font-size: 10px;
  color: var(--rs-tm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sb__titleActions,
.sb__status {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.sb__close {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid var(--rs-tm-panel-border);
  background: rgba(255,255,255,0.06);
  color: var(--rs-tm-text-muted);
  white-space: nowrap;
}

.pill--live {
  background: var(--rs-tm-accent-soft);
  border-color: var(--rs-tm-accent-border);
  color: var(--rs-tm-accent);
}

.pill--count {
  color: var(--rs-tm-text);
  font-variant-numeric: tabular-nums;
}

.pill--locked {
  color: var(--rs-tm-accent);
  border-color: var(--rs-tm-accent-border);
  background: var(--rs-tm-accent-soft);
}

.tm-mobile-tabs {
  display: none;
}

.sb__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.tm-panel {
  border: 1px solid var(--rs-tm-panel-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  padding: 11px;
}

.tm-panel--atlas {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(0,0,0,0.12));
}

.tm-panel--prediction {
  border-color: rgba(255, 45, 61, 0.24);
  background: linear-gradient(180deg, rgba(255,45,61,0.075), rgba(0,0,0,0.12));
}

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

.tm-panel__head h2 {
  margin: 1px 0 0;
  color: var(--rs-tm-text);
  font-size: 13px;
  line-height: 1.18;
  font-weight: 900;
}

.tm-panel__kicker {
  display: block;
  color: var(--rs-tm-text-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.control {
  background: rgba(0,0,0,0.20);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
}

.control + .control,
.control + .tm-field-grid,
.tm-field-grid + .sb__actions {
  margin-top: 8px;
}

.control__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--rs-tm-text-muted);
}

.control--row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control--row .control__label {
  font-size: 11px;
}

.control__label {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.control__value {
  color: var(--rs-tm-accent);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(167,176,191,0.72);
  margin-top: 5px;
}

.tm-field-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 8px;
}

.select,
.search {
  width: 100%;
  min-height: 38px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--rs-tm-panel-border);
  color: var(--rs-tm-text);
  padding: 8px 10px;
  border-radius: 8px;
  outline: none;
}

.search::placeholder {
  color: rgba(167,176,191,0.58);
}

.select:focus,
.search:focus,
.rs-thermal-map input[type="range"]:focus-visible,
.thermal-atlas-switch input:focus-visible,
.thermal-readiness-switch input:focus-visible,
.tm-mobile-tab:focus-visible,
.iconBtn:focus-visible,
.rs-thermal-map .btn:focus-visible {
  border-color: var(--rs-tm-accent-border);
  box-shadow: 0 0 0 3px var(--rs-tm-accent-soft);
  outline: none;
}

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

.rs-thermal-map .btn {
  min-height: 38px;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--rs-tm-panel-border);
  color: var(--rs-tm-text);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
}

.rs-thermal-map .btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--rs-tm-border-strong);
}

.rs-thermal-map .btn:active {
  transform: scale(0.99);
}

.tm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1rem;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--rs-tm-accent);
  font-variant-numeric: tabular-nums;
}

.tm-icon--meta {
  min-width: 0.85rem;
  justify-content: flex-start;
  color: rgba(167,176,191,0.85);
}

.thermal-atlas-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.thermal-atlas-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: rgba(0,0,0,0.26);
  color: var(--rs-tm-text-muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
}

.thermal-atlas-switch span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thermal-atlas-switch input {
  appearance: none;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
}

.thermal-atlas-switch input::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: rgba(244,247,251,0.76);
  transition: transform 0.18s ease, background 0.18s ease;
}

.thermal-atlas-switch input:checked {
  border-color: rgba(255,45,61,0.44);
  background: rgba(255,45,61,0.22);
}

.thermal-atlas-switch input:checked::after {
  transform: translateX(12px);
  background: #fff;
}

.thermal-atlas-legend {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: rgba(244,247,251,0.70);
  font-size: 10px;
  font-weight: 800;
}

.thermal-atlas-legend__bar {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #001a8a 0%, #005dff 24%, #00d4ff 42%, #59ff72 60%, #ffe14a 78%, #ff2a1f 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.thermal-atlas-status,
.thermal-readiness-status,
.thermal-readiness-locked,
.inspector-empty {
  margin-top: 9px;
  color: rgba(244,247,251,0.76);
  font-size: 11px;
  line-height: 1.42;
}

.thermal-atlas-status.is-error,
.thermal-readiness-status.is-error {
  color: #fecaca;
}

.thermal-readiness-control__copy {
  margin: 0 0 10px;
  color: var(--rs-tm-text-muted);
  font-size: 11px;
  line-height: 1.42;
}

.thermal-readiness-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--rs-tm-text);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.thermal-readiness-switch input {
  appearance: none;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.34);
  position: relative;
  cursor: pointer;
}

.thermal-readiness-switch input::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: rgba(244,247,251,0.78);
  transition: transform 0.18s ease, background 0.18s ease;
}

.thermal-readiness-switch input:checked {
  border-color: var(--rs-tm-accent-border);
  background: rgba(255,45,61,0.26);
}

.thermal-readiness-switch input:checked::after {
  transform: translateX(16px);
  background: #fff;
}

.thermal-readiness-fields {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 8px;
  align-items: end;
}

.thermal-readiness-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--rs-tm-text-muted);
  font-size: 11px;
  font-weight: 800;
}

.thermal-readiness-field b {
  color: var(--rs-tm-accent);
  font-variant-numeric: tabular-nums;
}

.thermal-readiness-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.thermal-readiness-summary span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(0,0,0,0.24);
  color: var(--rs-tm-text-muted);
  font-size: 10px;
  font-weight: 800;
}

.thermal-readiness-summary b {
  color: var(--rs-tm-text);
}

.inspector {
  background: rgba(255, 45, 61, 0.08);
  border: 1px solid var(--rs-tm-accent-border);
  border-radius: 8px;
  padding: 10px;
}

.inspector__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  color: var(--rs-tm-accent);
  margin-bottom: 8px;
}

.inspector__title {
  margin-top: 1px;
  color: var(--rs-tm-text);
  font-size: 13px;
  font-weight: 900;
}

.inspector__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  font-size: 12px;
  color: rgba(244,247,251,0.86);
  margin-bottom: 10px;
}

.inspector__grid div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 7px;
  background: rgba(0,0,0,0.20);
}

.inspector__cta {
  display: flex;
  gap: 8px;
}

.nav-btn {
  flex: 1;
  background: var(--rs-tm-accent);
  color: #0b0f14;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.inspector-empty {
  margin-top: 0;
  padding: 10px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.16);
}

.sb__listWrap {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 0 12px 14px;
}

.listHeader {
  position: sticky;
  top: 59px;
  z-index: 2;
  padding: 10px 2px 8px;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.96), rgba(7, 9, 13, 0.82));
  font-size: 11px;
  font-weight: 900;
  color: var(--rs-tm-text-muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

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

.hotspotList {
  overflow: visible;
}

.rs-thermal-map .card {
  background: rgba(255,255,255,0.04);
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.rs-thermal-map .card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--rs-tm-border-strong);
  transform: translateX(2px);
}

.rs-thermal-map .card.active {
  border-color: var(--rs-tm-accent-border);
  background: var(--rs-tm-accent-soft);
}

.card-info {
  min-width: 0;
}

.card-info h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 900;
}

.card-meta {
  font-size: 11px;
  color: var(--rs-tm-text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-score {
  font-size: 15px;
  font-weight: 900;
  color: var(--rs-tm-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.weather-forecast-card {
  margin-top: 8px;
}

.weather-forecast-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-forecast-wind {
  margin-top: 5px;
}

.weather-forecast-alignment {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--rs-tm-text-muted);
  background: rgba(255,255,255,0.04);
  font-weight: 900;
}

.weather-forecast-alignment--aligned {
  border-color: rgba(34,197,94,0.34);
  color: #bbf7d0;
  background: rgba(34,197,94,0.1);
}

.weather-forecast-alignment--crosswind {
  border-color: rgba(245,197,66,0.34);
  color: #fde68a;
  background: rgba(245,197,66,0.1);
}

.weather-forecast-alignment--tailwind {
  border-color: rgba(239,68,68,0.42);
  color: #fecaca;
  background: rgba(239,68,68,0.12);
}

.weather-forecast-badges {
  margin-top: 4px;
}

.weather-forecast-note {
  margin: 8px 0 0;
}

.weather-forecast-link {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid var(--rs-tm-accent-border);
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  background: var(--rs-tm-accent-soft);
  font-size: 11px;
  font-weight: 900;
}

.weather-forecast-link:hover {
  background: rgba(255,45,61,0.18);
}

.rs-thermal-map__main {
  flex: 1;
  position: relative;
  min-width: 0;
}

.rs-thermal-map__main .map {
  width: 100%;
  height: 100%;
  background: #0b0f14;
}

.rs-thermal-map.rs-thermal-map--atlas .leaflet-tile-pane {
  filter: saturate(0.72) contrast(0.92) brightness(1.06);
}

.rs-thermal-map .thermal-flow-canvas {
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.rs-thermal-map .rs-thermal-core {
  filter: drop-shadow(0 0 5px rgba(255, 36, 29, 0.72));
}

.rs-thermal-map.rs-thermal-map--atlas .leaflet-heatmap-layer {
  mix-blend-mode: multiply;
}

.rs-thermal-map .leaflet-container svg,
.rs-thermal-map .leaflet-container canvas {
  max-width: none !important;
  max-height: none !important;
}

.rs-thermal-map .leaflet-control-container {
  font-family: inherit;
}

.tm-command-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.tm-command-bar__status {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: min(840px, calc(100% - 150px));
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.tm-command-bar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.tm-command-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  min-width: 0;
  max-width: 190px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(244,247,251,0.78);
  background: rgba(255,255,255,0.055);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-command-chip--strong {
  color: #fff;
  border-color: var(--rs-tm-accent-border);
  background: var(--rs-tm-accent-soft);
}

.hud {
  position: absolute;
  top: 64px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 1000;
  gap: 10px;
}

.hud > .iconBtn,
.hud__spacer {
  display: none;
}

.prediction-hud {
  pointer-events: auto;
  min-width: min(320px, 44vw);
  max-width: min(470px, 58vw);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--rs-tm-accent-border);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.72);
  color: var(--rs-tm-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.prediction-hud__label {
  color: var(--rs-tm-text-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.prediction-hud__value {
  color: var(--rs-tm-accent);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prediction-hud__meta {
  min-width: 0;
  color: rgba(244,247,251,0.74);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iconBtn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  background: rgba(7, 9, 13, 0.72);
  color: var(--rs-tm-text);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.iconBtn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.iconBtn:hover {
  background: rgba(255, 45, 61, 0.14);
  border-color: var(--rs-tm-accent-border);
  color: var(--rs-tm-accent);
}

.iconBtn.small {
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 14px;
  border: none;
  background: transparent;
}

.rs-thermal-map .sb__close.iconBtn {
  display: none;
}

.toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.76);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
  border: 1px solid var(--rs-tm-accent-border);
  color: var(--rs-tm-text);
  z-index: 1200;
  max-width: min(92vw, 640px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.toast.is-error {
  border-color: rgba(239, 68, 68, 0.55);
}

.prediction-popup {
  min-width: 190px;
  color: #0b0f14;
  font-size: 12px;
  line-height: 1.45;
}

.prediction-popup__title {
  margin-bottom: 4px;
  color: #111827;
  font-weight: 900;
}

.prediction-popup__reasons {
  margin-top: 5px;
  color: #374151;
  font-size: 11px;
}

.skeleton {
  background: rgba(255,255,255,0.025);
  height: 54px;
  margin-bottom: 8px;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

.skLine {
  height: 8px;
  background: rgba(255,255,255,0.06);
  width: 60%;
  margin-bottom: 7px;
  border-radius: 999px;
}

.skLine.short {
  width: 42%;
}

body.rs-thermal-map-route {
  overflow: hidden;
}

body.rs-thermal-map-route #main-content {
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: none;
}

body.rs-thermal-map-route footer {
  display: none;
}

body.rs-thermal-map-route .rs-thermal-map-shell {
  height: 100%;
  min-height: 0;
  max-width: none;
}

body.rs-thermal-map-route .rs-thermal-map {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.rs-thermal-map-route #sidebar {
  z-index: 5000 !important;
}

body.rs-thermal-map-route #overlay {
  z-index: 4990 !important;
}

body.rs-thermal-map-route .rs-app-header {
  z-index: 4900;
}

@media (min-width: 1500px) {
  .rs-thermal-map {
    --rs-tm-rail-width: 392px;
  }
}

@media (max-width: 1320px) {
  .tm-command-chip:nth-child(3) {
    display: none;
  }
}

@media (max-width: 1100px) {
  .rs-thermal-map {
    --rs-tm-rail-width: 336px;
  }

  .tm-command-chip:nth-child(4) {
    display: none;
  }
}

@media (max-width: 767px) {
  body.rs-thermal-map-route #main-content {
    width: 100%;
    max-width: none;
  }

  body.rs-thermal-map-route #main-content > .rs-thermal-map-shell {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
  }

  body.rs-thermal-map-route .rs-thermal-map {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  body.rs-thermal-map-route .rs-thermal-map__main,
  body.rs-thermal-map-route .rs-thermal-map__main .map {
    min-width: 0;
    min-height: 0;
  }

  .rs-thermal-map__sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: min(72svh, 620px);
    flex-basis: auto;
    border-right: 0;
    border-top: 1px solid var(--rs-tm-panel-border);
    border-radius: 18px 18px 0 0;
    transform: translateY(calc(100% - 94px));
    margin-left: 0 !important;
    box-shadow: 0 -18px 60px rgba(0,0,0,0.42);
  }

  .rs-thermal-map__sidebar.open {
    transform: translateY(0);
  }

  .sb__header {
    padding: 11px 12px 10px;
    border-radius: 18px 18px 0 0;
  }

  .sb__title {
    min-height: 34px;
  }

  .sb__brandIcon {
    width: 28px;
    height: 28px;
  }

  .sb__brandName {
    font-size: 13px;
  }

  .sb__brandSub {
    display: none;
  }

  .sb__close {
    display: inline-flex;
    width: 36px;
    height: 36px;
  }

  .rs-thermal-map .sb__close.iconBtn {
    display: inline-flex;
  }

  .tm-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
  }

  .tm-mobile-tab {
    min-width: 0;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
    color: var(--rs-tm-text-muted);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tm-mobile-tab.is-active {
    color: #fff;
    background: var(--rs-tm-accent-soft);
    border-color: var(--rs-tm-accent-border);
  }

  .sb__content {
    padding: 10px 10px 0;
    gap: 9px;
  }

  .rs-thermal-map__sidebar [data-sheet-panel] {
    display: none;
  }

  .rs-thermal-map__sidebar [data-sheet-panel].is-sheet-active {
    display: block;
  }

  .rs-thermal-map__sidebar .sb__listWrap.is-sheet-active {
    display: flex;
  }

  .tm-panel {
    padding: 10px;
  }

  .tm-panel__head h2 {
    font-size: 13px;
  }

  .thermal-atlas-switches,
  .thermal-readiness-fields,
  .tm-field-grid,
  .sb__actions {
    grid-template-columns: 1fr;
  }

  .thermal-atlas-switch,
  .rs-thermal-map .btn,
  .select,
  .search {
    min-height: 44px;
  }

  .thermal-readiness-field {
    gap: 7px;
  }

  .sb__listWrap {
    min-height: 0;
    max-height: calc(72svh - 204px);
    padding: 10px;
    overflow: hidden;
  }

  .listHeader {
    position: static;
    padding: 0 0 8px;
    background: transparent;
  }

  .hotspotList {
    overflow-y: auto;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }

  .rs-thermal-map .card {
    min-height: 58px;
  }

  .tm-command-bar {
    display: none;
  }

  .hud {
    top: max(12px, env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    justify-content: flex-start;
  }

  .hud > .iconBtn,
  .hud__spacer {
    display: inline-flex;
  }

  .hud__spacer {
    flex: 1;
  }

  .prediction-hud {
    min-width: 0;
    max-width: calc(100vw - 124px);
    flex: 1 1 auto;
    min-height: 40px;
  }

  .prediction-hud__label {
    display: none;
  }

  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 24px);
  }
}
