@media (max-width: 991.98px) {
  body.weather-v2-lab .wx-htable-v3 {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* —— htable v3 = lab lines table inside product shell (grey card + white board) —— */
body.weather-v2-lab .wx-htable-v3 {
  --wind-moderate: #fff4d4;
  --wind-strong: #ffe8d6;
  --wind-very_strong: #ffe0e0;
  position: relative;
  /* Grey outer shell — same as hstrip / prod «Почасовой прогноз» */
  background: #eef4f7;
  max-width: 100%;
  min-width: 0;
}

/* White nested board — hug table width (like hstrip visual); no outer frame */
body.weather-v2-lab .wx-htable-v3__board {
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0;
}

body.weather-v2-lab .wx-htable-v3__visual {
  width: max-content;
  max-width: 100%;
}

body.weather-v2-lab .wx-htable-v3__table {
  border-collapse: separate;
  border-spacing: 2px 0;
  width: max-content;
  background: #eef3f6;
  border: 0;
}

body.weather-v2-lab .wx-htable-v3__table th,
body.weather-v2-lab .wx-htable-v3__table td {
  vertical-align: middle;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  background: #fff;
}

body.weather-v2-lab .wx-htable-v3__table thead th {
  vertical-align: top;
  background: #fff;
  color: var(--wx-ink);
  font: 800 11px/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  /* no internal bridge — same grey col gaps as body via border-spacing */
  box-shadow: none;
}

/* Cover only outer border-spacing (no left/right frame); keep internal gaps */
body.weather-v2-lab .wx-htable-v3__table thead th:first-child,
body.weather-v2-lab .wx-htable-v3__table tbody tr:not(.wx-htable-v3__date) td:first-child {
  box-shadow: -2px 0 0 #fff;
}
body.weather-v2-lab .wx-htable-v3__table thead th:last-child,
body.weather-v2-lab .wx-htable-v3__table tbody tr:not(.wx-htable-v3__date) td:last-child {
  box-shadow: 2px 0 0 #fff;
}

body.weather-v2-lab .wx-htable-v3__th-main { display: block; }
body.weather-v2-lab .wx-htable-v3__th-sub {
  display: block;
  margin-top: 3px;
  font: 500 10px/1.25 Manrope, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(24, 61, 82, 0.55);
}

/* white interval under header — 7 cells so col gaps continue to header bottom */
body.weather-v2-lab .wx-htable-v3__head-gap td {
  height: 8px;
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
  line-height: 0;
  font-size: 0;
  box-shadow: none;
}
body.weather-v2-lab .wx-htable-v3__head-gap td:first-child {
  box-shadow: -2px 0 0 #fff;
}
body.weather-v2-lab .wx-htable-v3__head-gap td:last-child {
  box-shadow: 2px 0 0 #fff;
}
/* keep wider «Погода» separators through the gap row */
body.weather-v2-lab .wx-htable-v3__head-gap td.wx-htable-v3__col-wx {
  border-left: 5px solid #eef3f6 !important;
  border-right: 5px solid #eef3f6 !important;
}

body.weather-v2-lab .wx-htable-v3__table tbody tr:not(.wx-htable-v3__date):not(.wx-htable-v3__head-gap) td {
  border-bottom: 1px solid rgba(24, 61, 82, 0.12);
}
body.weather-v2-lab .wx-htable-v3__table tbody tr:not(.wx-htable-v3__date):not(.wx-htable-v3__head-gap):last-child td {
  border-bottom: 0;
}

/* wider separators around «Погода» */
body.weather-v2-lab .wx-htable-v3__table th.wx-htable-v3__col-wx,
body.weather-v2-lab .wx-htable-v3__table td.wx-htable-v3__col-wx {
  border-left: 5px solid #eef3f6;
  border-right: 5px solid #eef3f6;
}

body.weather-v2-lab .wx-htable-v3__date td {
  background: #eef3f6;
  border-bottom: 0;
  padding: 12px 12px 8px;
  font: 700 13px/1.2 Manrope, system-ui, sans-serif;
  color: var(--wx-ink);
  box-shadow: -2px 0 0 #eef3f6, 2px 0 0 #eef3f6;
}
body.weather-v2-lab .wx-htable-v3__date span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.weather-v2-lab .wx-htable-v3__date span::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 0;
  border-top: 1px dashed rgba(24, 61, 82, 0.18);
}

body.weather-v2-lab .wx-htable-v3__time {
  font: 600 14px/1 var(--wx-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  color: var(--wx-ink);
  white-space: nowrap;
}

/* Beat `.wx-htable-v3__table td { text-align: left }` (higher element specificity) */
body.weather-v2-lab .wx-htable-v3__table th.wx-htable-v3__col-delta,
body.weather-v2-lab .wx-htable-v3__table td.wx-htable-v3__col-delta {
  width: 36px;
  max-width: 36px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}
body.weather-v2-lab .wx-htable-v3__delta {
  display: block;
  color: rgba(70, 92, 104, 0.72);
  font: 500 14px/1 var(--wx-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

body.weather-v2-lab .wx-htable-v3__col-wx {
  padding-left: 8px;
  padding-right: 8px;
  width: 1%;
  white-space: nowrap;
}
body.weather-v2-lab .wx-htable-v3__wx {
  display: grid;
  grid-template-columns: 4ch 32px max-content;
  column-gap: 8px;
  align-items: center;
  width: max-content;
  white-space: nowrap;
}
body.weather-v2-lab .wx-htable-v3__temp {
  justify-self: end;
  text-align: right;
  font: 700 18px/1 var(--wx-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.weather-v2-lab .wx-htable-v3__temp.is-temp-pos { color: #b04068; }
body.weather-v2-lab .wx-htable-v3__temp.is-temp-neg { color: var(--wx-tone-cool, #3a8db8); }
body.weather-v2-lab .wx-htable-v3__temp.is-temp-zero { color: #8aa3b0; }

body.weather-v2-lab .wx-htable-v3__sky-ico {
  width: 32px;
  height: 32px;
  display: block;
  justify-self: center;
}
body.weather-v2-lab .wx-htable-v3__sky-num {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font: 600 15px/1 var(--wx-mono, "IBM Plex Mono", ui-monospace, monospace);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #3a8db8;
  white-space: nowrap;
}
body.weather-v2-lab .wx-htable-v3__sky-num.is-cloud {
  color: rgba(70, 92, 104, 0.72);
  font: 500 14px/1 var(--wx-mono, "IBM Plex Mono", ui-monospace, monospace);
  letter-spacing: 0;
}
body.weather-v2-lab .wx-htable-v3__sky-num__unit {
  font: 500 12px/1 Manrope, system-ui, sans-serif;
  color: inherit;
}

body.weather-v2-lab .wx-htable-v3__table th.wx-htable-v3__col-pres,
body.weather-v2-lab .wx-htable-v3__table td.wx-htable-v3__col-pres,
body.weather-v2-lab .wx-htable-v3__table th.wx-htable-v3__col-rh,
body.weather-v2-lab .wx-htable-v3__table td.wx-htable-v3__col-rh,
body.weather-v2-lab .wx-htable-v3__table th.wx-htable-v3__col-dew,
body.weather-v2-lab .wx-htable-v3__table td.wx-htable-v3__col-dew {
  text-align: center;
}
body.weather-v2-lab .wx-htable-v3__pres {
  display: inline-flex;
  justify-content: center;
  font: 700 16px/1 var(--wx-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--wx-ink);
}
body.weather-v2-lab .wx-htable-v3__pres.is-low { color: #3a8db8; }
body.weather-v2-lab .wx-htable-v3__pres.is-high { color: #b04068; }

body.weather-v2-lab .wx-htable-v3__rh {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font: 650 14px/1.25 var(--wx-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  color: var(--wx-ink);
  white-space: nowrap;
}
body.weather-v2-lab .wx-htable-v3__rh-unit {
  font: 500 12px/1 Manrope, system-ui, sans-serif;
  color: var(--wx-muted);
}

body.weather-v2-lab .wx-htable-v3__dew {
  display: inline-flex;
  justify-content: center;
  white-space: nowrap;
  font: 650 14px/1.25 var(--wx-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  color: var(--wx-ink);
}

body.weather-v2-lab .wx-htable-v3__wind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
body.weather-v2-lab .wx-htable-v3__wind-box {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(154, 176, 188, .45);
  border-radius: 4px;
  background: #fff;
  font: 700 12px/1 var(--wx-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  color: var(--wx-ink);
}
body.weather-v2-lab .wx-htable-v3__wind-box.is-empty { color: #9aafb8; }
body.weather-v2-lab .wx-htable-v3__wind-box.is-weak {
  background: #fff;
  border-width: 2px;
  border-color: rgba(120, 148, 162, .7);
}
body.weather-v2-lab .wx-htable-v3__wind-box.is-moderate {
  background: var(--wind-moderate);
  border-color: color-mix(in srgb, #e6c84a 35%, rgba(154, 176, 188, .35));
}
body.weather-v2-lab .wx-htable-v3__wind-box.is-strong {
  background: var(--wind-strong);
  border-color: color-mix(in srgb, #e09050 40%, rgba(154, 176, 188, .3));
}
body.weather-v2-lab .wx-htable-v3__wind-box.is-very_strong {
  background: var(--wind-very_strong);
  border-color: color-mix(in srgb, #e07070 40%, rgba(154, 176, 188, .3));
}
body.weather-v2-lab .wx-htable-v3__wind-to {
  color: var(--wx-muted);
  font: 600 13px/1 Manrope, system-ui, sans-serif;
}
body.weather-v2-lab .wx-htable-v3__wind-dir {
  font: 700 12px/1 Manrope, system-ui, sans-serif;
  min-width: 1.6em;
  margin-left: 2px;
  color: var(--wx-ink);
}
body.weather-v2-lab .wx-htable-v3__wind-dir.is-n { color: #3a8db8; }
body.weather-v2-lab .wx-htable-v3__wind-dir.is-s { color: #b04068; }
