:root {
  --bg: #f5f7fb;
  --bg-strong: #ffffff;
  --text: #07111f;
  --muted: #657185;
  --muted-2: #98a3b5;
  --line: rgba(7, 17, 31, 0.09);
  --shadow: 0 24px 80px rgba(7, 17, 31, 0.08);
  --shadow-soft: 0 10px 34px rgba(7, 17, 31, 0.06);
  --navy: #07111f;
  --blue: #70c7ff;
  --blue-strong: #1e9df0;
  --green1: #78e6a6;
  --green2: #16b46d;
  --violet: #8d5cf6;
  --amber: #f4b000;
  --danger: #ef5a42;
  --card-radius: 28px;
  --radius: 18px;
  color-scheme: light;
}

:root.dark {
  --bg: #050914;
  --bg-strong: #0b1320;
  --text: #edf3ff;
  --muted: #a5b0c2;
  --muted-2: #6d7a90;
  --line: rgba(237, 243, 255, 0.12);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 6% 0%, rgba(112, 199, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 96% 5%, rgba(141, 92, 246, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
}
button { font: inherit; cursor: pointer; }

.app-shell {
  width: min(1880px, calc(100vw - 38px));
  margin: 0 auto;
  padding: 22px 0 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-mark {
  width: 58px; height: 58px; border-radius: 21px;
  background: linear-gradient(145deg, #0c1a2c, #050914);
  display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: 0 16px 34px rgba(7,17,31,.18);
}
.brand-mark svg { width: 39px; height: 39px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: .96; }
.eyebrow { margin: 0 0 1px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; font-weight: 900; }
h1 { margin: 0; font-size: clamp(32px, 3.4vw, 52px); line-height: .94; letter-spacing: -.055em; }
.muted { margin: 7px 0 0; color: var(--muted); font-size: 15px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-button, .mode-button, .unit-pill, .chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
:root.dark .icon-button, :root.dark .mode-button, :root.dark .unit-pill, :root.dark .chip { background: rgba(11,19,32,.76); }
.icon-button { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; }
.icon-button svg, .mode-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode-button { height: 46px; border-radius: 999px; padding: 0 16px; display: flex; align-items: center; gap: 9px; }
.unit-pill { height: 46px; border-radius: 999px; padding: 4px; display: flex; align-items: center; gap: 4px; }
.unit-pill span, .unit-pill strong { min-width: 51px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; }
.unit-pill strong { background: var(--bg-strong); box-shadow: inset 0 0 0 1px var(--line); }

.spot-selector { margin-bottom: 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 0 2px 9px; }
.section-heading p { margin: 0; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .13em; font-weight: 900; }
.section-heading span { color: var(--muted); font-size: 13px; }
.section-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; min-width: 0; }
.station-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 157, 240, 0.24);
  background: rgba(112, 199, 255, 0.13);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .015em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(30, 157, 240, 0.08);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.station-link:hover {
  transform: translateY(-1px);
  background: rgba(112, 199, 255, 0.22);
  border-color: rgba(30, 157, 240, 0.42);
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 11px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; color: var(--muted); transition: transform .18s ease, background .18s ease, color .18s ease; white-space: nowrap; }
.chip:hover { transform: translateY(-1px); color: var(--text); }
.chip[aria-selected="true"] { background: var(--navy); border-color: transparent; color: #fff; }
.chip .type-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--blue-strong); }
.chip.lagoon .type-dot { background: var(--green2); }

.glass-card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
:root.dark .glass-card { background: rgba(11,19,32,.80); }

.now-panel {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 16px;
}
.now-hero { padding: 20px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.mini-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: var(--muted); }
.big-stars { margin: 10px 0 7px; min-height: 38px; font-size: clamp(30px, 3vw, 44px); line-height: 1; color: var(--amber); letter-spacing: .04em; }
.big-stars.zero { color: var(--muted-2); }
.score-reason { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.38; }
.metrics-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.metric { min-height: 116px; padding: 17px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.metric:last-child { border-right: 0; }
.metric p { margin: 7px 0 3px; color: var(--muted); font-size: 12px; font-weight: 800; }
.metric strong { display: block; font-size: clamp(18px, 1.7vw, 28px); letter-spacing: -.035em; }
.metric small { color: var(--muted); font-size: 12px; }
.metric-icon { width: 28px; height: 28px; color: var(--text); display: inline-grid; place-items: center; }
.metric-icon:before { display: block; line-height: 1; }
.metric-icon.wind:before { content: "≋"; font-size: 36px; transform: rotate(180deg); }
.metric-icon.gust:before { content: "≋"; font-size: 30px; color: var(--blue-strong); }
.metric-icon.arrow:before { content: "↑"; font-size: 31px; transform: rotate(var(--dir-rotation, 0deg)); }
.metric-icon.temp:before { content: "♨"; font-size: 26px; }
.metric-icon.water:before { content: "♒"; font-size: 28px; }
.metric-icon.rain:before { content: "♢"; font-size: 29px; transform: rotate(45deg); }
.metric-icon.cloud:before { content: "☁"; font-size: 29px; }

.forecast-card { overflow: hidden; }
.forecast-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
h2 { margin: 4px 0 0; font-size: clamp(24px, 2.3vw, 36px); line-height: 1; letter-spacing: -.05em; }
.legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; color: var(--muted); font-size: 13px; font-weight: 800; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 24px; height: 12px; border-radius: 999px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(255,255,255,.42); }
.swatch.blue { background: var(--blue); }
.swatch.green1 { background: var(--green1); }
.swatch.green2 { background: var(--green2); }
.swatch.violet { background: var(--violet); }

.days-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 12px 10px;
}
.day-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px 10px;
  background: var(--bg-strong);
  box-shadow: 0 8px 22px rgba(7,17,31,.045);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.day-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(7,17,31,.08); }
.day-card.active { border-color: rgba(30,157,240,.52); box-shadow: 0 0 0 2px rgba(30,157,240,.16), 0 14px 32px rgba(7,17,31,.08); }
.day-title { display: flex; align-items: start; justify-content: space-between; gap: 5px; margin-bottom: 10px; }
.day-title strong { font-size: clamp(11px, .86vw, 14px); text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-title span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.weather-icon { font-size: 22px; line-height: 1; }
.wind-tile {
  border-radius: 18px;
  min-height: 84px;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: #07111f;
  background: #eef1f6;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.50);
}
.wind-tile .stars { min-height: 18px; color: #8a6100; font-weight: 950; letter-spacing: .02em; font-size: clamp(10px, .9vw, 13px); }
.wind-tile .wind-value { font-size: clamp(21px, 2vw, 33px); line-height: 1; letter-spacing: -.05em; font-weight: 950; }
.wind-tile .wind-value small { font-size: .42em; letter-spacing: 0; font-weight: 850; margin-left: 2px; }
.wind-tile .direction { color: rgba(7,17,31,.72); font-size: 12px; font-weight: 850; display: flex; align-items: center; justify-content: center; gap: 4px; }
.dir-arrow { display: inline-block; font-size: 18px; transform: rotate(var(--dir-rotation, 0deg)); }
.wind-neutral { background: linear-gradient(145deg, #eef1f6, #f8fafc); }
.wind-blue { background: linear-gradient(145deg, #b7e4ff, #6dc8ff); }
.wind-green1 { background: linear-gradient(145deg, #bff6d0, #78e6a6); }
.wind-green2 { background: linear-gradient(145deg, #7fe4a5, #15b46b); color: #03160e; }
.wind-violet { background: linear-gradient(145deg, #cab7ff, #8d5cf6); color: #160733; }
.wind-violet .direction { color: rgba(22,7,51,.76); }
.day-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.day-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offshore-note { display: none; }

.forecast-table-wrap { padding: 0 12px 10px; }
.forecast-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; }
.forecast-table th, .forecast-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: 9px 6px; }
.forecast-table th:last-child, .forecast-table td:last-child { border-right: 0; }
.forecast-table tr:last-child td { border-bottom: 0; }
.forecast-table thead th { background: rgba(255,255,255,.62); vertical-align: middle; }
:root.dark .forecast-table thead th { background: rgba(11,19,32,.70); }
.forecast-table th:first-child, .forecast-table td:first-child { width: 132px; text-align: left; color: var(--muted); font-weight: 850; }
.table-day strong { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-day span { color: var(--muted); font-size: 11px; }
.row-label { font-size: 12px; line-height: 1.15; }
.row-label span { display: block; color: var(--muted-2); font-size: 11px; margin-top: 3px; }
.forecast-table tbody td:not(:first-child) { font-size: clamp(13px, .95vw, 18px); font-weight: 760; }
.cell-stars { color: var(--amber); letter-spacing: .03em; font-weight: 950; }
.cell-stars.zero { color: var(--muted-2); }
.wind-cell { font-weight: 950 !important; color: #07111f; }
.wind-cell small { display: block; margin-top: 2px; font-size: 10px; font-weight: 850; color: rgba(7,17,31,.68); }
.cell-direction { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--text); }
.precip { color: var(--blue-strong); }
.selected-col { outline: 2px solid rgba(30,157,240,.34); outline-offset: -2px; }

.rain-drops {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin-right: 4px;
  font-size: .92em;
  letter-spacing: -0.13em;
  filter: saturate(1.2);
}
.rain-mm { white-space: nowrap; }
.rain-meta .rain-drops { margin-right: 2px; }
.metric #nowRain .rain-drops,
#nowRain .rain-drops {
  display: inline-flex;
  font-size: .78em;
  margin-right: 6px;
  vertical-align: 0.07em;
}

.data-footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; padding: 13px 20px 16px; }
.error-message { margin: 0 0 14px; border: 1px solid rgba(239,90,66,.34); background: rgba(239,90,66,.10); color: var(--danger); padding: 12px 14px; border-radius: 18px; font-weight: 800; }
.loading main { opacity: .72; }

@media (max-width: 1240px) {
  .app-shell { width: min(100% - 24px, 1880px); }
  .now-panel { grid-template-columns: 1fr; }
  .now-hero { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric:nth-child(4) { border-right: 0; }
  .metric:nth-child(n+5) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .toolbar { justify-content: space-between; flex-wrap: wrap; }
  .mode-button span { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; }
  .section-meta { justify-content: flex-start; }
  .forecast-header { align-items: start; flex-direction: column; }
  .legend { justify-content: flex-start; }
  .metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(even) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .days-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-table-wrap { overflow-x: auto; }
  .forecast-table { min-width: 940px; }
}

@media (max-width: 520px) {
  .app-shell { width: min(100% - 16px, 1880px); padding-top: 14px; }
  .brand-mark { width: 50px; height: 50px; border-radius: 18px; }
  .metrics-strip { grid-template-columns: 1fr; }
  .metric { border-right: 0 !important; border-top: 1px solid var(--line); min-height: 96px; }
  .metric:first-child { border-top: 0; }
  .days-grid { grid-template-columns: 1fr; }
}


/* --- Vizualūs sluoksniai: temperatūra, debesuotumas ir valandinė dienos detalė --- */
.swatch.temp { background: linear-gradient(90deg, #7667ff, #8fc9ff, #e9f8b7, #ffd16a, #f04a3e); }
.swatch.cloud { background: linear-gradient(90deg, #ffffff, #c9d0da, #6f7886, #2d3440); border: 1px solid var(--line); }

.temp-cell,
.cloud-cell,
.meta-pill,
.hourly-data td.temp-cell,
.hourly-data td.cloud-cell {
  color: #07111f;
  font-weight: 900 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}
.temp-freezing { background: linear-gradient(145deg, #7469ff, #b7c9ff); color: #0a0630 !important; }
.temp-cold { background: linear-gradient(145deg, #9bd9ff, #d7f0ff); }
.temp-cool { background: linear-gradient(145deg, #d7f4d9, #f0fac3); }
.temp-mild { background: linear-gradient(145deg, #fff7a6, #ffd66e); }
.temp-warm { background: linear-gradient(145deg, #ffc064, #ff8a45); }
.temp-hot { background: linear-gradient(145deg, #ff7a63, #f0443e); color: #270303 !important; }
.temp-extreme { background: linear-gradient(145deg, #e91e63, #7b1be6); color: #fff !important; }

.cloud-clear { background: linear-gradient(145deg, #ffffff, #fbfdff); color: #07111f !important; }
.cloud-light { background: linear-gradient(145deg, #edf1f6, #dfe5ec); color: #07111f !important; }
.cloud-mid { background: linear-gradient(145deg, #bfc7d1, #98a3af); color: #07111f !important; }
.cloud-high { background: linear-gradient(145deg, #747f8e, #4e5968); color: #fff !important; }
.cloud-overcast { background: linear-gradient(145deg, #404a58, #252d38); color: #fff !important; }

.day-card.active::after {
  content: "";
  display: none;
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--blue-strong);
  font-weight: 950;
}
.day-meta { grid-template-columns: 1fr 1fr; }
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 3px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hourly-panel {
  margin: 0 12px 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(7,17,31,.055);
}
:root.dark .hourly-panel { background: rgba(11,19,32,.72); }
.hourly-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.hourly-title strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.03em;
}
.hourly-title span,
.hourly-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.hourly-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.hourly-data {
  width: max(1120px, 100%);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.hourly-data th,
.hourly-data td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 8px 6px;
  min-width: 58px;
  scroll-snap-align: start;
}
.hourly-data tr:last-child td { border-bottom: 0; }
.hourly-data th:last-child,
.hourly-data td:last-child { border-right: 0; }
.hourly-data th {
  background: rgba(255,255,255,.56);
  font-size: 12px;
  color: var(--muted);
  font-weight: 950;
}
:root.dark .hourly-data th { background: rgba(11,19,32,.66); }
.hourly-data td:first-child,
.hourly-data th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 116px;
  text-align: left;
  background: var(--bg-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 1px 0 0 var(--line);
}
.hourly-time { display: block; color: var(--text); font-weight: 950; font-size: 13px; }
.hourly-weather { font-size: 20px; line-height: 1; }
.hourly-data .wind-cell { border-radius: 0; }
.hourly-data .dir-arrow { font-size: 16px; }
.hourly-data .cell-stars { white-space: nowrap; }

@media (max-width: 900px) {
  .hourly-top { align-items: start; flex-direction: column; gap: 6px; }
  .hourly-panel { margin-left: 10px; margin-right: 10px; }
}


/* --- Meteo v7: viena 10 dienų prognozė + valandinė detalė užvedus ant dienos --- */
.days-grid { display: none !important; }
.compact-primary-forecast { padding: 12px 12px 10px; }
.forecast-card { overflow: visible; }
.forecast-header { padding-bottom: 10px; }
.forecast-table { border-radius: 24px; box-shadow: 0 10px 30px rgba(7,17,31,.045); }
.forecast-table th:not(:first-child),
.forecast-table td:not(:first-child) { cursor: pointer; transition: transform .12s ease, filter .12s ease, box-shadow .12s ease; }
.forecast-table th:not(:first-child):hover,
.forecast-table td:not(:first-child):hover { filter: saturate(1.08) brightness(1.02); }
.selected-head,
.forecast-table .selected-col { outline: 3px solid rgba(30,157,240,.48); outline-offset: -3px; box-shadow: inset 0 0 0 999px rgba(30,157,240,.055); }
.table-day strong { font-size: clamp(11px, .9vw, 14px); }
.row-label { font-weight: 950; }

/* Ryškesnė vėjo krypties rodyklė: rodo Į KUR pučia vėjas */
.dir-arrow {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: rgba(7,17,31,.92);
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1;
  transform: rotate(var(--dir-rotation, 0deg));
  box-shadow: 0 7px 18px rgba(7,17,31,.18), inset 0 0 0 1px rgba(255,255,255,.24);
}
.cell-direction { gap: 7px; font-weight: 950; }
.hourly-data .dir-arrow { width: 26px; height: 26px; font-size: 15px; }
.metric-icon.arrow:before { font-weight: 1000; font-size: 38px; color: var(--navy); text-shadow: 0 2px 8px rgba(7,17,31,.16); }
:root.dark .metric-icon.arrow:before { color: #fff; }

.hourly-panel { margin-top: 0; }
.hourly-top { background: linear-gradient(180deg, rgba(30,157,240,.08), transparent); }
.hourly-hint::before { content: "Užvesk ant dienos viršuje. "; color: var(--blue-strong); }

@media (max-width: 900px) {
  .forecast-table-wrap { overflow-x: auto; }
  .forecast-table { min-width: 940px; }
}


/* --- Meteo v7: krypties rodyklė be raidžių + plonas dienos bloko kontūras --- */
.cell-direction.arrow-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 34px;
}

.dir-arrow {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  box-shadow: none;
  position: relative;
  transform: rotate(var(--dir-rotation, 0deg));
}
:root.dark .dir-arrow { color: #fff; }
.dir-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 4px;
  height: 23px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}
.dir-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 13px;
  height: 13px;
  border-left: 4px solid currentColor;
  border-top: 4px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.hourly-data .dir-arrow {
  width: 31px;
  height: 31px;
}
.hourly-data .dir-arrow::before { height: 21px; top: 5px; width: 4px; }
.hourly-data .dir-arrow::after { width: 12px; height: 12px; border-left-width: 4px; border-top-width: 4px; }

/* plonas vientisas stulpelio kontūras vietoje storo atskirų langelių outline */
.selected-head,
.forecast-table .selected-col {
  outline: 0 !important;
  box-shadow: none !important;
  position: relative;
  background-clip: padding-box;
}
.forecast-table .selected-col {
  box-shadow:
    inset 1.5px 0 0 var(--blue-strong),
    inset -1.5px 0 0 var(--blue-strong) !important;
}
.forecast-table .selected-head {
  box-shadow:
    inset 1.5px 0 0 var(--blue-strong),
    inset -1.5px 0 0 var(--blue-strong),
    inset 0 1.5px 0 var(--blue-strong) !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.forecast-table .selected-bottom {
  box-shadow:
    inset 1.5px 0 0 var(--blue-strong),
    inset -1.5px 0 0 var(--blue-strong),
    inset 0 -1.5px 0 var(--blue-strong) !important;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.forecast-table th:not(:first-child):hover,
.forecast-table td:not(:first-child):hover {
  filter: saturate(1.06) brightness(1.01);
}


/* --- Meteo.lt map v8: full-scale official forecast map at the bottom --- */
.meteo-map-card {
  margin-top: 18px;
  overflow: hidden;
}
.meteo-map-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.meteo-map-header h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2vw, 34px);
}
.meteo-map-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}
.meteo-map-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.meteo-map-tabs a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 950;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
:root.dark .meteo-map-tabs a { background: rgba(11,19,32,.70); }
.meteo-map-tabs a:hover { transform: translateY(-1px); color: var(--text); }
.meteo-map-tabs a.active {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}
:root.dark .meteo-map-tabs a.active { background: #fff; color: #07111f; }
.meteo-map-frame {
  margin: 12px 14px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-strong);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.meteo-map-frame iframe {
  display: block;
  width: 100%;
  height: min(640px, 70vh);
  border: 0;
  background: #fff;
}
.meteo-map-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.meteo-map-note a {
  flex: 0 0 auto;
  color: var(--blue-strong);
  text-decoration: none;
  font-weight: 950;
}
.meteo-map-note a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .meteo-map-header { align-items: start; flex-direction: column; }
  .meteo-map-header p { text-align: left; }
  .meteo-map-frame iframe { height: 520px; }
  .meteo-map-note { align-items: start; flex-direction: column; }
}


/* --- Meteo.lt full-scale v9: real full-bleed map --- */
.meteo-map-fullscale {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}
.meteo-map-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.meteo-map-actions p {
  margin: 0;
}
.meteo-fullscreen-button {
  border: 1px solid var(--line);
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
}
:root.dark .meteo-fullscreen-button { background: #fff; color: #07111f; }
.meteo-map-fullscale .meteo-map-header,
.meteo-map-fullscale .meteo-map-tabs,
.meteo-map-fullscale .meteo-map-note {
  width: min(1880px, calc(100vw - 38px));
  margin-left: auto;
  margin-right: auto;
}
.meteo-map-fullscale .meteo-map-frame {
  width: 100%;
  margin: 12px 0 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
.meteo-map-fullscale .meteo-map-frame iframe {
  height: clamp(720px, 88vh, 1080px);
}
.meteo-map-card.expanded-map .meteo-map-frame iframe {
  height: 96vh;
}
.meteo-map-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
  margin: 0;
  background: #fff;
}
.meteo-map-frame:fullscreen iframe {
  width: 100vw;
  height: 100vh;
}
@media (max-width: 900px) {
  .meteo-map-fullscale .meteo-map-header,
  .meteo-map-fullscale .meteo-map-tabs,
  .meteo-map-fullscale .meteo-map-note {
    width: min(100vw - 18px, 1880px);
  }
  .meteo-map-actions { justify-content: flex-start; }
  .meteo-map-fullscale .meteo-map-frame iframe { height: 78vh; }
}


/* --- v9: Meteo.lt žemėlapis tikrai per visą naršyklės plotį --- */
.meteo-map-card.meteo-map-fullscale {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw !important;
  max-width: none !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}
.meteo-map-fullscale .meteo-map-frame {
  width: 100vw !important;
  max-width: none !important;
  height: clamp(760px, 92vh, 1200px);
  margin: 12px 0 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}
.meteo-map-fullscale .meteo-map-frame iframe {
  width: 100vw !important;
  height: 100% !important;
  min-height: 760px;
  display: block;
}
.meteo-map-card.expanded-map {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  left: 0 !important;
  right: auto !important;
  display: flex;
  flex-direction: column;
  background: var(--bg-strong);
}
.meteo-map-card.expanded-map .meteo-map-header,
.meteo-map-card.expanded-map .meteo-map-tabs,
.meteo-map-card.expanded-map .meteo-map-note {
  width: 100% !important;
  max-width: none !important;
}
.meteo-map-card.expanded-map .meteo-map-frame {
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0 !important;
}
.meteo-map-card.expanded-map .meteo-map-frame iframe {
  height: 100% !important;
  min-height: 0 !important;
}
@media (max-width: 900px) {
  .meteo-map-fullscale .meteo-map-frame { height: 82vh; }
  .meteo-map-fullscale .meteo-map-frame iframe { min-height: 0; }
}


/* --- Meteo v10 bazė: priartintas žemėlapio režimas, perrašomas v11 autofit taisyklėmis žemiau --- */
html.meteo-map-open,
body.meteo-map-open {
  overflow: hidden !important;
}

/* Įprastame puslapyje Meteo.lt iframe jau rodomas kaip žemėlapio langas, o ne siauras puslapis. */
.meteo-map-fullscale .meteo-map-frame {
  height: clamp(760px, 86vh, 1120px);
  overflow: hidden;
  background: #fff;
}

.meteo-map-fullscale .meteo-map-frame iframe {
  width: 100vw !important;
  height: 100% !important;
  transform-origin: 50% 180px;
  transform: translateY(-54px) scale(1.45);
  background: #fff;
}

.meteo-map-card.expanded-map {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  left: 0 !important;
  right: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  overflow: hidden !important;
}

.meteo-map-card.expanded-map .meteo-map-header {
  position: fixed !important;
  top: 12px;
  right: 12px;
  z-index: 2147483003;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: block !important;
}

.meteo-map-card.expanded-map .meteo-map-header > div:first-child,
.meteo-map-card.expanded-map .meteo-map-actions p,
.meteo-map-card.expanded-map .meteo-map-note {
  display: none !important;
}

.meteo-map-card.expanded-map .meteo-map-actions {
  display: block !important;
}

.meteo-map-card.expanded-map .meteo-fullscreen-button {
  background: rgba(7, 17, 31, .92) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: 0 16px 46px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(18px);
}

.meteo-map-card.expanded-map .meteo-map-tabs {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 2147483003;
  width: auto !important;
  max-width: calc(100vw - 190px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: rgba(255,255,255,.74);
  border-radius: 999px;
  box-shadow: 0 16px 46px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}

.meteo-map-card.expanded-map .meteo-map-tabs a {
  background: transparent;
  box-shadow: none;
}

.meteo-map-card.expanded-map .meteo-map-frame {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483001;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}

/* Meteo.lt puslapis iframe viduje yra fiksuoto pločio, todėl jį priartiname ir apkerpame,
   kad pats žemėlapis užimtų langą. */
.meteo-map-card.expanded-map .meteo-map-frame iframe {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 0 !important;
  border: 0 !important;
  transform-origin: 50% 175px !important;
  transform: translateY(-82px) scale(2.55) !important;
  background: #fff;
}

.meteo-map-frame:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background: #fff !important;
}

.meteo-map-frame:fullscreen iframe {
  width: 100vw !important;
  height: 100vh !important;
  transform-origin: 50% 175px !important;
  transform: translateY(-82px) scale(2.55) !important;
}

@media (max-width: 900px) {
  .meteo-map-fullscale .meteo-map-frame iframe {
    transform-origin: 50% 160px;
    transform: translateY(-45px) scale(1.65);
  }
  .meteo-map-card.expanded-map .meteo-map-frame iframe,
  .meteo-map-frame:fullscreen iframe {
    transform-origin: 50% 150px !important;
    transform: translateY(-70px) scale(2.05) !important;
  }
  .meteo-map-card.expanded-map .meteo-map-tabs {
    max-width: calc(100vw - 140px) !important;
    overflow-x: auto;
  }
}


/* --- Meteo v11: automatinis žemėlapio pritaikymas langui + pilnai matomi Meteo.lt mygtukai --- */
.meteo-map-fullscale .meteo-map-frame {
  height: clamp(620px, 78vh, 900px) !important;
  display: grid;
  place-items: center;
  overflow: hidden !important;
  background: #fff !important;
}

.meteo-map-fullscale .meteo-map-frame iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  transform: none !important;
  transform-origin: center center !important;
}

.meteo-map-card.expanded-map {
  background: #fff !important;
}

.meteo-map-card.expanded-map .meteo-map-tabs {
  top: auto !important;
  bottom: 14px !important;
  left: 14px !important;
  max-width: calc(100vw - 220px) !important;
  z-index: 2147483003 !important;
}

.meteo-map-card.expanded-map .meteo-map-header {
  top: auto !important;
  bottom: 14px !important;
  right: 14px !important;
  z-index: 2147483004 !important;
}

.meteo-map-card.expanded-map .meteo-map-frame {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: #fff !important;
}

.meteo-map-card.expanded-map .meteo-map-frame iframe {
  position: relative !important;
  width: var(--meteo-source-width, 1180px) !important;
  height: var(--meteo-source-height, 820px) !important;
  min-height: 0 !important;
  max-width: none !important;
  border: 0 !important;
  transform-origin: center center !important;
  transform: scale(var(--meteo-fit-scale, 1)) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.meteo-map-card.expanded-map .meteo-fullscreen-button {
  padding: 12px 16px !important;
}

@media (max-width: 760px) {
  .meteo-map-card.expanded-map .meteo-map-tabs {
    left: 10px !important;
    right: 10px !important;
    bottom: 72px !important;
    max-width: none !important;
    border-radius: 18px;
  }
  .meteo-map-card.expanded-map .meteo-map-header {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
  }
  .meteo-map-card.expanded-map .meteo-fullscreen-button {
    width: 100%;
  }
}

/* --- Mobile v13: telefonui skirtas Windguru/Windy tipo maketas --- */
.mobile-tabbar { display: none; }

@media (max-width: 760px) {
  html {
    scroll-padding-top: 10px;
    background: #06111f;
  }
  body {
    min-width: 320px;
    background:
      radial-gradient(circle at 20% -10%, rgba(112,199,255,.18), transparent 18rem),
      linear-gradient(180deg, #06111f 0%, #07111f 46%, #f3f6fa 46%, #f3f6fa 100%);
    color: #f6f9ff;
    -webkit-tap-highlight-color: transparent;
  }
  .app-shell {
    width: 100%;
    margin: 0;
    padding: 0 0 calc(86px + env(safe-area-inset-bottom));
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 300;
    margin: 0;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    align-items: center;
    gap: 10px;
    background: rgba(5, 12, 24, .92);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 34px rgba(0,0,0,.20);
    backdrop-filter: blur(18px);
  }
  .brand { gap: 10px; min-width: 0; flex: 1 1 auto; }
  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,.24);
  }
  .brand-mark svg { width: 29px; height: 29px; }
  .brand-copy { min-width: 0; }
  .eyebrow {
    color: #70c7ff;
    font-size: 9px;
    letter-spacing: .20em;
  }
  h1 {
    color: #fff;
    font-size: clamp(28px, 9.5vw, 38px);
    line-height: .92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 148px);
  }
  .muted { color: rgba(236,246,255,.74); font-size: 12px; margin-top: 4px; }
  .toolbar { flex: 0 0 auto; gap: 6px; }
  .mode-button { display: none; }
  .unit-pill {
    height: 37px;
    padding: 3px;
    gap: 1px;
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.12);
    color: #dcecff;
    box-shadow: none;
  }
  .unit-pill strong,
  .unit-pill span {
    min-width: 38px;
    height: 29px;
    font-size: 11px;
  }
  .unit-pill strong { color: #07111f; background: #fff; }
  .unit-pill span:last-child { display: none; }
  .icon-button {
    width: 37px;
    height: 37px;
    border-radius: 13px;
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: none;
  }

  .spot-selector {
    margin: 0;
    padding: 12px 10px 10px;
    background: #07111f;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .section-heading {
    margin: 0 2px 8px;
    align-items: center;
    flex-direction: row;
  }
  .section-heading p { color: rgba(236,246,255,.72); font-size: 10px; }
  .section-meta { gap: 8px; }
  .section-meta > span { display: none; }
  .station-link {
    color: #70c7ff;
    background: rgba(112,199,255,.12);
    border: 1px solid rgba(112,199,255,.20);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    text-decoration: none;
    font-weight: 900;
  }
  .chips {
    gap: 7px;
    padding: 0 0 2px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.10);
    box-shadow: none;
    color: rgba(236,246,255,.72);
    font-size: 13px;
  }
  .chip[aria-selected="true"] {
    background: #fff;
    color: #07111f;
  }

  .glass-card { border-radius: 0; box-shadow: none; }
  .now-panel {
    display: block;
    margin: 0;
    border-left: 0;
    border-right: 0;
    background: linear-gradient(180deg, rgba(8,24,43,.96), rgba(5,13,25,.96));
    border-color: rgba(255,255,255,.08);
    overflow: hidden;
  }
  .now-hero {
    position: relative;
    min-height: 126px;
    padding: 16px 18px 12px;
    border: 0;
    color: #fff;
    background:
      radial-gradient(circle at 78% 48%, rgba(112,199,255,.16), transparent 5.6rem),
      linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  }
  .now-hero::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 17px;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.42);
    background:
      radial-gradient(circle, transparent 43%, rgba(255,255,255,.12) 44%, transparent 46%),
      repeating-conic-gradient(from 0deg, rgba(255,255,255,.48) 0 1deg, transparent 1deg 15deg);
    opacity: .78;
    pointer-events: none;
  }
  .now-hero .mini-label { color: rgba(236,246,255,.66); }
  .big-stars {
    margin: 9px 0 4px;
    min-height: 31px;
    font-size: 28px;
    color: #f7b928;
  }
  .score-reason {
    max-width: calc(100% - 115px);
    color: rgba(236,246,255,.74);
    font-size: 13px;
  }
  .metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .metric {
    min-height: 71px;
    padding: 9px 8px;
    border-color: rgba(255,255,255,.08) !important;
    border-top: 0 !important;
    background: rgba(255,255,255,.025);
    color: #fff;
  }
  .metric:nth-child(4n) { border-right: 0; }
  .metric:nth-child(n+5) { border-top: 1px solid rgba(255,255,255,.08) !important; }
  .metric-icon { display: none; }
  .metric p {
    margin: 0 0 4px;
    color: rgba(236,246,255,.60);
    font-size: 10px;
    letter-spacing: .02em;
  }
  .metric strong {
    color: #fff;
    font-size: 20px;
    letter-spacing: -.04em;
  }
  .metric small { color: rgba(236,246,255,.62); font-size: 10px; }

  .forecast-card {
    margin: 0;
    border-left: 0;
    border-right: 0;
    background: #07111f;
    color: #f6f9ff;
    overflow: visible;
  }
  .forecast-header {
    padding: 13px 12px 10px;
    border-color: rgba(255,255,255,.08);
    background: #07111f;
    gap: 9px;
  }
  .forecast-header .mini-label { color: rgba(236,246,255,.70); }
  .legend {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    color: rgba(236,246,255,.72);
    font-size: 11px;
    scrollbar-width: none;
  }
  .legend::-webkit-scrollbar { display: none; }
  .swatch { width: 20px; height: 10px; }
  .compact-primary-forecast { padding: 0 0 8px; }
  .forecast-table-wrap {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #07111f;
    scrollbar-width: thin;
  }
  .forecast-table {
    min-width: 720px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: #07111f;
    table-layout: fixed;
    box-shadow: none;
  }
  .forecast-table th,
  .forecast-table td {
    padding: 7px 4px;
    border-color: rgba(255,255,255,.08);
  }
  .forecast-table th:first-child,
  .forecast-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 8;
    width: 86px;
    min-width: 86px;
    background: #07111f;
    color: rgba(236,246,255,.70);
    box-shadow: 1px 0 0 rgba(255,255,255,.08);
  }
  .forecast-table thead th {
    background: #0c1929;
    color: #fff;
  }
  .forecast-table thead th:first-child { z-index: 10; }
  .forecast-table tbody td:not(:first-child) {
    color: #f6f9ff;
    font-size: 14px;
    font-weight: 900;
  }
  .forecast-table .wind-cell,
  .forecast-table .temp-cell,
  .forecast-table .cloud-cell { color: #07111f !important; }
  .forecast-table .cloud-high,
  .forecast-table .cloud-overcast { color: #fff !important; }
  .table-day strong { font-size: 10px; letter-spacing: .05em; }
  .table-day span { font-size: 10px; color: rgba(236,246,255,.58); }
  .row-label { font-size: 10.5px; }
  .row-label span { font-size: 10px; color: rgba(236,246,255,.46); }
  .cell-stars { font-size: 12px; }
  .rain-drops { font-size: .86em; }
  .dir-arrow {
    width: 25px;
    height: 25px;
    color: #f7fbff;
  }
  .dir-arrow::before { width: 3px; height: 18px; top: 5px; }
  .dir-arrow::after { width: 10px; height: 10px; border-left-width: 3px; border-top-width: 3px; top: 3px; }
  .forecast-table .selected-col {
    box-shadow:
      inset 1.5px 0 0 #70c7ff,
      inset -1.5px 0 0 #70c7ff,
      inset 0 0 0 999px rgba(112,199,255,.05) !important;
  }
  .forecast-table .selected-head {
    box-shadow:
      inset 1.5px 0 0 #70c7ff,
      inset -1.5px 0 0 #70c7ff,
      inset 0 1.5px 0 #70c7ff,
      inset 0 0 0 999px rgba(112,199,255,.05) !important;
  }
  .forecast-table .selected-bottom {
    box-shadow:
      inset 1.5px 0 0 #70c7ff,
      inset -1.5px 0 0 #70c7ff,
      inset 0 -1.5px 0 #70c7ff,
      inset 0 0 0 999px rgba(112,199,255,.05) !important;
  }

  .hourly-panel {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: #07111f;
    color: #f6f9ff;
  }
  .hourly-top {
    padding: 13px 12px 11px;
    background: linear-gradient(180deg, rgba(112,199,255,.10), transparent);
    border-color: rgba(255,255,255,.08);
  }
  .hourly-title strong { color: #fff; font-size: 17px; }
  .hourly-title span,
  .hourly-hint { color: rgba(236,246,255,.64); font-size: 11px; }
  .hourly-hint::before { content: "Paspausk dieną viršuje. "; color: #70c7ff; }
  .hourly-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hourly-data {
    width: max(960px, 100%);
    background: #07111f;
  }
  .hourly-data th,
  .hourly-data td {
    min-width: 52px;
    padding: 7px 4px;
    border-color: rgba(255,255,255,.08);
  }
  .hourly-data th {
    background: #0c1929;
    color: rgba(236,246,255,.70);
  }
  .hourly-data th:first-child,
  .hourly-data td:first-child {
    width: 86px;
    min-width: 86px;
    background: #07111f;
    color: rgba(236,246,255,.70);
    z-index: 8;
  }
  .hourly-data .wind-cell,
  .hourly-data .temp-cell,
  .hourly-data .cloud-cell { color: #07111f !important; }
  .hourly-data .cloud-high,
  .hourly-data .cloud-overcast { color: #fff !important; }

  .data-footer {
    padding: 11px 12px 14px;
    background: #07111f;
    color: rgba(236,246,255,.52);
    font-size: 10.5px;
  }

  .meteo-map-card {
    margin-top: 0;
    background: #f5f7fb !important;
    color: #07111f;
    border-radius: 0 !important;
  }
  .meteo-map-header {
    padding: 15px 12px 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .meteo-map-header h2 { font-size: 22px; }
  .meteo-map-actions { justify-content: flex-start; gap: 8px; }
  .meteo-map-actions p { display: none; }
  .meteo-fullscreen-button { padding: 9px 12px; font-size: 12px; }
  .meteo-map-tabs { padding: 8px 12px 0; }
  .meteo-map-frame {
    height: 62vh !important;
    min-height: 420px;
    margin: 10px 0 0 !important;
    border-radius: 0 !important;
  }
  .meteo-map-fullscale .meteo-map-frame iframe {
    width: 100% !important;
    height: 100% !important;
  }
  .meteo-map-note { padding: 10px 12px 16px; }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 500;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 7px;
    border-radius: 24px;
    background: rgba(5, 12, 24, .92);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 16px 50px rgba(0,0,0,.34);
    backdrop-filter: blur(18px);
  }
  .mobile-tabbar a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 17px;
    color: rgba(236,246,255,.62);
    text-decoration: none;
    font-size: 10px;
    font-weight: 850;
  }
  .mobile-tabbar a.active {
    background: #0c83c9;
    color: #fff;
  }
  .mobile-tabbar span { font-size: 19px; line-height: 1; }
  .mobile-tabbar strong { font-size: 10px; font-weight: 900; }
}

@media (max-width: 420px) {
  .forecast-table { min-width: 670px; }
  .forecast-table th:first-child,
  .forecast-table td:first-child,
  .hourly-data th:first-child,
  .hourly-data td:first-child { width: 78px; min-width: 78px; }
  .metric strong { font-size: 18px; }
  .metric p { font-size: 9.5px; }
}

@media (max-width: 760px) {
  .metric { border-right: 1px solid rgba(255,255,255,.08) !important; }
  .metric:nth-child(4n) { border-right: 0 !important; }
}

/* --- Minimal dark UI v14: pirma rodom 10 dienų prognozę, spotas keičiamas per pavadinimą --- */
html.dark,
html.dark body {
  background: #07111f;
  color-scheme: dark;
}
body {
  background:
    radial-gradient(circle at 18% -8%, rgba(112, 199, 255, 0.15), transparent 24rem),
    radial-gradient(circle at 92% -10%, rgba(141, 92, 246, 0.12), transparent 24rem),
    #07111f !important;
  color: #f6f9ff;
}
.minimal-app.app-shell {
  width: min(1760px, 100vw);
  padding: 0 0 44px;
}
.minimal-topbar {
  position: sticky;
  top: 0;
  z-index: 460;
  min-height: 76px;
  margin: 0;
  padding: calc(12px + env(safe-area-inset-top)) clamp(12px, 2vw, 28px) 12px;
  justify-content: flex-start;
  background: rgba(5, 12, 24, .88);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  backdrop-filter: blur(20px);
}
.spot-title-button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font: inherit;
  text-align: left;
}
.spot-title-button #spotTitle {
  display: block;
  font-weight: 950;
  font-size: clamp(34px, 6.8vw, 76px);
  line-height: .88;
  letter-spacing: -.065em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-title-chevron {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(236,246,255,.82);
  font-size: 19px;
  transform: translateY(2px);
}
.spot-title-button[aria-expanded="true"] .spot-title-chevron { transform: translateY(2px) rotate(180deg); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.spot-picker-panel[hidden],
.now-panel[hidden],
.days-grid[hidden] { display: none !important; }
.spot-picker-panel {
  position: sticky;
  top: calc(76px + env(safe-area-inset-top));
  z-index: 430;
  margin: 0;
  padding: 12px clamp(12px, 2vw, 28px) 14px;
  background: rgba(5, 12, 24, .96);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 50px rgba(0,0,0,.30);
  backdrop-filter: blur(20px);
}
.spot-picker-panel .section-heading { margin: 0 0 10px; }
.spot-picker-panel .section-heading p { color: rgba(236,246,255,.68); }
.spot-picker-panel .section-meta { align-items: center; gap: 10px; }
.spot-picker-panel .section-meta > span { color: rgba(236,246,255,.50); }
.spot-picker-panel .chips { padding: 2px 0; }
.spot-picker-panel .chip {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: rgba(236,246,255,.75);
  box-shadow: none;
}
.spot-picker-panel .chip[aria-selected="true"] {
  background: #fff;
  color: #07111f;
}
.spot-picker-panel .station-link {
  color: #70c7ff;
  background: rgba(112,199,255,.12);
  border: 1px solid rgba(112,199,255,.25);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 900;
}
.minimal-app main { margin: 0; }
.minimal-app .forecast-card {
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: rgba(7,17,31,.98);
  color: #f6f9ff;
  box-shadow: none;
  overflow: visible;
}
.minimal-forecast-header {
  padding: 13px clamp(10px, 1.6vw, 24px) 10px;
  background: #07111f;
  border-color: rgba(255,255,255,.08);
}
.minimal-forecast-header .mini-label { color: rgba(236,246,255,.72); }
.minimal-forecast-header .legend {
  color: rgba(236,246,255,.68);
  font-size: 12px;
}
.minimal-app .forecast-table-wrap {
  padding: 0;
  background: #07111f;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.minimal-app .forecast-table {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  background: #07111f;
  box-shadow: none;
}
.minimal-app .forecast-table th,
.minimal-app .forecast-table td {
  border-color: rgba(255,255,255,.08);
}
.minimal-app .forecast-table thead th {
  background: #0c1929;
  color: #fff;
}
.minimal-app .forecast-table th:first-child,
.minimal-app .forecast-table td:first-child {
  background: #07111f;
  color: rgba(236,246,255,.72);
}
.minimal-app .forecast-table tbody td:not(:first-child) {
  color: #f6f9ff;
}
.minimal-app .forecast-table .wind-cell,
.minimal-app .forecast-table .temp-cell,
.minimal-app .forecast-table .cloud-cell { color: #07111f !important; }
.minimal-app .forecast-table .cloud-high,
.minimal-app .forecast-table .cloud-overcast { color: #fff !important; }
.minimal-app .hourly-panel {
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: #07111f;
  color: #f6f9ff;
}
.minimal-app .hourly-top {
  background: linear-gradient(180deg, rgba(112,199,255,.10), transparent);
  border-color: rgba(255,255,255,.08);
}
.minimal-app .hourly-title strong { color: #fff; }
.minimal-app .hourly-title span,
.minimal-app .hourly-hint { color: rgba(236,246,255,.64); }
.minimal-app .hourly-scroll {
  background: #07111f;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.minimal-app .hourly-data {
  background: #07111f;
}
.minimal-app .hourly-data th,
.minimal-app .hourly-data td {
  border-color: rgba(255,255,255,.08);
}
.minimal-app .hourly-data th {
  background: #0c1929;
  color: rgba(236,246,255,.72);
}
.minimal-app .hourly-data th:first-child,
.minimal-app .hourly-data td:first-child {
  background: #07111f;
  color: rgba(236,246,255,.72);
}
.minimal-app .hourly-data .wind-cell,
.minimal-app .hourly-data .temp-cell,
.minimal-app .hourly-data .cloud-cell { color: #07111f !important; }
.minimal-app .hourly-data .cloud-high,
.minimal-app .hourly-data .cloud-overcast { color: #fff !important; }
.minimal-app .data-footer {
  background: #07111f;
  color: rgba(236,246,255,.48);
}
.minimal-app .meteo-map-card {
  margin-top: 0;
  border-radius: 0 !important;
}
.mobile-tabbar { display: none !important; }

@media (max-width: 760px) {
  body {
    background: #07111f !important;
    color: #f6f9ff;
  }
  .minimal-app.app-shell {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .minimal-topbar {
    min-height: 64px;
    padding: calc(9px + env(safe-area-inset-top)) 10px 9px;
  }
  .spot-title-button #spotTitle {
    max-width: calc(100vw - 54px);
    font-size: clamp(33px, 12vw, 48px);
  }
  .spot-title-chevron {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .spot-picker-panel {
    top: calc(64px + env(safe-area-inset-top));
    padding: 10px 10px 12px;
  }
  .spot-picker-panel .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .spot-picker-panel .section-meta > span { display: none; }
  .spot-picker-panel .chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .spot-picker-panel .chip {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 11px 12px;
  }
  .minimal-forecast-header {
    display: block;
    padding: 10px 10px 8px;
  }
  .minimal-forecast-header .mini-label {
    display: block;
    margin-bottom: 7px;
  }
  .minimal-forecast-header .legend {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .minimal-forecast-header .legend::-webkit-scrollbar { display: none; }
  .minimal-app .forecast-table {
    min-width: 680px;
  }
  .minimal-app .forecast-table th:first-child,
  .minimal-app .forecast-table td:first-child,
  .minimal-app .hourly-data th:first-child,
  .minimal-app .hourly-data td:first-child {
    position: sticky;
    left: 0;
    z-index: 8;
    width: 78px;
    min-width: 78px;
    box-shadow: 1px 0 0 rgba(255,255,255,.08);
  }
  .minimal-app .hourly-data { width: max(960px, 100%); }
  .hourly-hint::before { content: "Paspausk dieną viršuje. "; color: #70c7ff; }
  .meteo-map-card { margin-top: 0; }
}

/* --- Minimal v16: 08–20 daytime hourly strip with interactive day scroll --- */
:root { --bw-v15-row-label: 42px; }
.spot-title-button #spotTitle {
  font-weight: 620 !important;
  font-size: clamp(26px, 4.6vw, 48px) !important;
  line-height: 1 !important;
  letter-spacing: -.035em !important;
}
.minimal-topbar {
  min-height: 58px !important;
  padding-top: calc(10px + env(safe-area-inset-top)) !important;
  padding-bottom: 10px !important;
}
.minimal-forecast-header {
  padding: 8px clamp(8px, 1.2vw, 16px) 7px !important;
}
.minimal-forecast-header .mini-label {
  font-size: 10px !important;
  letter-spacing: .18em !important;
  opacity: .72;
}
.minimal-forecast-header .legend,
.legend { display: none !important; }

/* Hide explanatory row text: keep only compact symbols. */
.forecast-table th:first-child,
.forecast-table td:first-child,
.hourly-data th:first-child,
.hourly-data td:first-child {
  width: var(--bw-v15-row-label) !important;
  min-width: var(--bw-v15-row-label) !important;
  max-width: var(--bw-v15-row-label) !important;
  text-align: center !important;
  font-size: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.row-label span,
.hourly-row-label span,
.forecast-table th:first-child .mini-label { display: none !important; }
.row-label::before,
.hourly-row-label::before,
.forecast-table thead th:first-child::before {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(236,246,255,.76);
  font-size: 14px;
  font-weight: 850;
}
.forecast-table thead th:first-child::before,
.hourly-row-time::before { content: "•"; }
.row-score::before,
.hourly-row-score::before { content: "★"; color: #f4b000; }
.row-wind::before,
.hourly-row-wind::before { content: "≋"; font-size: 17px; color: #70c7ff; }
.row-gust::before,
.hourly-row-gust::before { content: "↯"; color: #70c7ff; }
.row-direction::before,
.hourly-row-direction::before { content: "↗"; color: #f6f9ff; }
.row-temp::before,
.hourly-row-temp::before { content: "°"; color: #ffd56e; }
.row-water::before,
.hourly-row-water::before { content: "≈"; color: #8d5cf6; }
.row-rain::before,
.hourly-row-rain::before { content: "💧"; font-size: 13px; }
.row-cloud::before,
.hourly-row-cloud::before { content: "☁"; }

/* Continuous hourly timeline: one horizontal table across all forecast days. */
.minimal-app .hourly-panel {
  margin-top: 0 !important;
  border-top: 1px solid rgba(255,255,255,.10);
}
.hourly-top { display: none !important; }
.minimal-app .hourly-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.minimal-app .hourly-data {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto !important;
}
.minimal-app .hourly-data th:not(:first-child),
.minimal-app .hourly-data td:not(:first-child) {
  min-width: 62px;
  width: 62px;
  max-width: 62px;
  padding-left: 5px;
  padding-right: 5px;
  scroll-snap-align: start;
}
.hourly-day-chip {
  display: block;
  color: #70c7ff;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  margin-bottom: 2px;
}
.hourly-day-chip small {
  display: block;
  color: rgba(236,246,255,.50);
  font-size: 9px;
  letter-spacing: 0;
  margin-top: 1px;
}
.hour-day-start {
  border-left: 2px solid rgba(112,199,255,.52) !important;
}
.selected-hour-day {
  box-shadow: inset 0 0 0 999px rgba(112,199,255,.075);
}
.minimal-app .hourly-data th.selected-hour-day {
  background: #112842 !important;
}

/* Keep the selected 10-day column as a thin outline around the full block. */
.forecast-table .selected-col {
  outline-width: 1px !important;
  outline-color: rgba(112,199,255,.90) !important;
  box-shadow: inset 0 0 0 999px rgba(112,199,255,.035) !important;
}

@media (max-width: 760px) {
  :root { --bw-v15-row-label: 34px; }
  .minimal-topbar {
    min-height: 50px !important;
    padding: calc(8px + env(safe-area-inset-top)) 9px 8px !important;
  }
  .spot-title-button #spotTitle {
    font-size: clamp(24px, 8.4vw, 34px) !important;
    max-width: calc(100vw - 46px) !important;
    font-weight: 600 !important;
  }
  .spot-title-chevron {
    width: 24px !important;
    height: 24px !important;
    font-size: 15px !important;
  }
  .minimal-forecast-header {
    padding: 6px 8px 5px !important;
  }
  .minimal-forecast-header .mini-label {
    margin: 0 !important;
    font-size: 9px !important;
  }
  .minimal-app .forecast-table {
    min-width: 620px !important;
  }
  .minimal-app .forecast-table th,
  .minimal-app .forecast-table td {
    padding: 6px 4px !important;
  }
  .row-label::before,
  .hourly-row-label::before,
  .forecast-table thead th:first-child::before {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  .minimal-app .hourly-data th:not(:first-child),
  .minimal-app .hourly-data td:not(:first-child) {
    min-width: 55px;
    width: 55px;
    max-width: 55px;
  }
}


/* --- Minimal v16: daytime-only hourly forecast, smoother selected day movement --- */
.hourly-row-time::before { content: "08" !important; font-size: 11px; letter-spacing: -.02em; }
.minimal-app .hourly-scroll { scroll-behavior: smooth; }
.minimal-app .hourly-data th:not(:first-child),
.minimal-app .hourly-data td:not(:first-child) {
  min-width: 64px;
  width: 64px;
  max-width: 64px;
}
.selected-hour-day {
  box-shadow: inset 0 0 0 999px rgba(112,199,255,.10) !important;
}
.minimal-app .hourly-data th.selected-hour-day {
  background: #122c48 !important;
}
@media (max-width: 760px) {
  .minimal-app .hourly-data th:not(:first-child),
  .minimal-app .hourly-data td:not(:first-child) {
    min-width: 58px;
    width: 58px;
    max-width: 58px;
  }
}

/* --- Minimal v17: color gusts + water, add wave-height row --- */
.forecast-table .gust-cell,
.forecast-table .water-cell,
.forecast-table .wave-cell,
.hourly-data .gust-cell,
.hourly-data .water-cell,
.hourly-data .wave-cell {
  color: #07111f !important;
  font-weight: 950 !important;
}
.forecast-table .gust-cell small,
.forecast-table .wave-cell small,
.hourly-data .gust-cell small,
.hourly-data .wave-cell small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 850;
  color: rgba(7,17,31,.62);
}
.water-cold { background: linear-gradient(145deg, #a9dfff, #52bdf5); }
.water-cool { background: linear-gradient(145deg, #bfeaff, #8fd6ff); }
.water-ok { background: linear-gradient(145deg, #bff6d0, #78e6a6); }
.water-warm { background: linear-gradient(145deg, #fff1a6, #ffd56e); }
.water-hot { background: linear-gradient(145deg, #ffc36e, #ff8b4a); }
.wave-flat { background: linear-gradient(145deg, #eef1f6, #f8fafc); color: #4d596b !important; }
.wave-small { background: linear-gradient(145deg, #d2f1ff, #88d7ff); }
.wave-mid { background: linear-gradient(145deg, #96e9cf, #35c491); }
.wave-high { background: linear-gradient(145deg, #cab7ff, #8d5cf6); color: #160733 !important; }
.row-wave::before,
.hourly-row-wave::before { content: "∿"; color: #70c7ff; font-size: 18px; }

@media (max-width: 760px) {
  .minimal-app .forecast-table { min-width: 650px !important; }
}



/* --- Minimal v18: inland spots, clearer hourly day/date, expandable symbol legend --- */
.minimal-app .forecast-card { position: relative; }
.symbol-legend {
  position: absolute;
  left: 10px;
  top: 42px;
  z-index: 45;
  width: 34px;
  color: #ecf6ff;
}
.symbol-legend summary {
  list-style: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(236,246,255,.20);
  background: rgba(7,17,31,.84);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  color: rgba(236,246,255,.88);
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}
.symbol-legend summary::-webkit-details-marker { display: none; }
.symbol-legend[open] summary {
  background: #70c7ff;
  color: #07111f;
  border-color: transparent;
}
.symbol-legend-panel {
  position: absolute;
  left: 0;
  top: 38px;
  width: 182px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(236,246,255,.14);
  background: rgba(7,17,31,.96);
  box-shadow: 0 20px 60px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}
.symbol-legend-panel strong {
  margin-bottom: 2px;
  font-size: 11px;
  color: rgba(236,246,255,.62);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.symbol-legend-panel span {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  min-height: 24px;
  color: rgba(236,246,255,.84);
  font-size: 12px;
  font-weight: 760;
}
.symbol-legend-panel i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-style: normal;
  color: #fff;
}
.hourly-day-chip strong {
  display: block;
  font-size: 10px;
  line-height: 1.05;
  letter-spacing: .035em;
}
.hourly-day-chip small {
  font-size: 10px !important;
  color: rgba(236,246,255,.64) !important;
}
@media (max-width: 760px) {
  .symbol-legend {
    left: 7px;
    top: 36px;
  }
  .symbol-legend-panel {
    width: 166px;
    padding: 10px;
  }
  .symbol-legend-panel span { font-size: 11px; }
  .hourly-day-chip strong { font-size: 9px; }
}



/* --- Minimal v19: platesnis šoninis simbolių meniu su tekstais --- */
.symbol-legend.side-symbol-menu {
  left: 10px;
  top: 42px;
  width: 34px;
  z-index: 80;
}
.symbol-legend.side-symbol-menu[open] {
  width: min(322px, calc(100vw - 20px));
}
.symbol-legend.side-symbol-menu summary {
  position: relative;
  z-index: 2;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel {
  width: min(318px, calc(100vw - 20px));
  padding: 14px;
  gap: 8px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(12,22,36,.98), rgba(7,17,31,.98));
  border-color: rgba(112,199,255,.22);
  box-shadow: 0 26px 74px rgba(0,0,0,.55);
}
.symbol-legend.side-symbol-menu .symbol-legend-panel strong {
  margin: 0 0 4px;
  padding-left: 2px;
  color: rgba(236,246,255,.72);
  font-size: 11px;
  letter-spacing: .15em;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel span {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 6px 7px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.055);
}
.symbol-legend.side-symbol-menu .symbol-legend-panel i {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.09);
  color: #ecf6ff;
  font-size: 14px;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel b {
  display: block;
  margin: 0;
  color: #ecf6ff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.12;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel small {
  display: block;
  margin-top: 2px;
  color: rgba(236,246,255,.58);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
}
@media (max-width: 760px) {
  .symbol-legend.side-symbol-menu {
    left: 6px;
    top: 33px;
  }
  .symbol-legend.side-symbol-menu[open] {
    width: min(292px, calc(100vw - 12px));
  }
  .symbol-legend.side-symbol-menu .symbol-legend-panel {
    width: min(292px, calc(100vw - 12px));
    padding: 11px;
    gap: 6px;
  }
  .symbol-legend.side-symbol-menu .symbol-legend-panel span {
    grid-template-columns: 30px 1fr;
    min-height: 38px;
    padding: 5px 6px;
  }
  .symbol-legend.side-symbol-menu .symbol-legend-panel i {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }
  .symbol-legend.side-symbol-menu .symbol-legend-panel b { font-size: 12px; }
  .symbol-legend.side-symbol-menu .symbol-legend-panel small { font-size: 10px; }
}
/* build: bw20260602_minimal_v23_symbol_drawer_ico */


/* --- Minimal v20: Windguru-style row labels instead of separate symbol drawer --- */
:root { --bw-v20-row-label: 136px; }

/* Remove the separate ? explanation drawer; explanations now live in the table label column. */
.symbol-legend,
.symbol-legend.side-symbol-menu { display: none !important; }

/* Forecast and hourly tables get a visible left label column like Windguru. */
.minimal-app .forecast-table th:first-child,
.minimal-app .forecast-table td:first-child,
.minimal-app .hourly-data th:first-child,
.minimal-app .hourly-data td:first-child {
  width: var(--bw-v20-row-label) !important;
  min-width: var(--bw-v20-row-label) !important;
  max-width: var(--bw-v20-row-label) !important;
  text-align: left !important;
  font-size: 12px !important;
  line-height: 1.08 !important;
  padding: 7px 8px !important;
  color: rgba(236,246,255,.88) !important;
  font-weight: 850 !important;
  white-space: normal !important;
  vertical-align: middle !important;
  background: rgba(7, 17, 31, .96) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.08) !important;
}

/* Sticky label column while the forecast is pushed horizontally. */
.minimal-app .forecast-table th:first-child,
.minimal-app .forecast-table td:first-child,
.minimal-app .hourly-data th:first-child,
.minimal-app .hourly-data td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 6 !important;
}
.minimal-app .forecast-table thead th:first-child,
.minimal-app .hourly-data thead th:first-child { z-index: 9 !important; }

/* Put a compact symbol before each readable row name. */
.minimal-app .row-label::before,
.minimal-app .hourly-row-label::before {
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 7px 0 0 !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.065) !important;
  color: rgba(236,246,255,.92) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  vertical-align: middle !important;
}
.minimal-app .forecast-table thead th:first-child::before,
.minimal-app .hourly-row-time::before { display: none !important; content: none !important; }

.minimal-app .row-label span,
.minimal-app .hourly-row-label span,
.minimal-app .forecast-table th:first-child .mini-label {
  display: inline !important;
  margin: 0 0 0 4px !important;
  color: rgba(236,246,255,.54) !important;
  font-size: 10.5px !important;
  font-weight: 760 !important;
}

/* Stronger individual icon colors; the text itself remains understated. */
.minimal-app .row-score::before,
.minimal-app .hourly-row-score::before { content: "★" !important; color: #f4b000 !important; }
.minimal-app .row-wind::before,
.minimal-app .hourly-row-wind::before { content: "≋" !important; color: #70c7ff !important; font-size: 16px !important; }
.minimal-app .row-gust::before,
.minimal-app .hourly-row-gust::before { content: "↯" !important; color: #70c7ff !important; }
.minimal-app .row-direction::before,
.minimal-app .hourly-row-direction::before { content: "↗" !important; color: #f6f9ff !important; }
.minimal-app .row-temp::before,
.minimal-app .hourly-row-temp::before { content: "°" !important; color: #ffd56e !important; }
.minimal-app .row-water::before,
.minimal-app .hourly-row-water::before { content: "≈" !important; color: #8d5cf6 !important; }
.minimal-app .row-wave::before,
.minimal-app .hourly-row-wave::before { content: "∿" !important; color: #70c7ff !important; font-size: 17px !important; }
.minimal-app .row-rain::before,
.minimal-app .hourly-row-rain::before { content: "💧" !important; font-size: 12px !important; }
.minimal-app .row-cloud::before,
.minimal-app .hourly-row-cloud::before { content: "☁" !important; color: #cfd6df !important; }

/* Keep day columns compact after adding label text. */
.minimal-app .forecast-table { min-width: 780px !important; }
.minimal-app .hourly-data th:not(:first-child),
.minimal-app .hourly-data td:not(:first-child) {
  min-width: 64px !important;
  width: 64px !important;
  max-width: 64px !important;
}

@media (max-width: 760px) {
  :root { --bw-v20-row-label: 108px; }
  .minimal-app .forecast-table { min-width: 700px !important; }
  .minimal-app .forecast-table th:first-child,
  .minimal-app .forecast-table td:first-child,
  .minimal-app .hourly-data th:first-child,
  .minimal-app .hourly-data td:first-child {
    font-size: 10.5px !important;
    padding: 6px 6px !important;
  }
  .minimal-app .row-label::before,
  .minimal-app .hourly-row-label::before {
    width: 20px !important;
    height: 20px !important;
    margin-right: 5px !important;
    font-size: 11px !important;
  }
  .minimal-app .row-label span,
  .minimal-app .hourly-row-label span { font-size: 9.5px !important; }
  .minimal-app .hourly-data th:not(:first-child),
  .minimal-app .hourly-data td:not(:first-child) {
    min-width: 56px !important;
    width: 56px !important;
    max-width: 56px !important;
  }
}

/* build: bw20260602_minimal_v23_symbol_drawer_ico */


/* --- Minimal v23: paslėptas simbolių stalčius + ikonėlė prie spoto --- */
:root {
  --bw-v23-symbol-col: 42px;
  --bw-v23-drawer-width: 292px;
}

.minimal-app .spot-title-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
}
.spot-title-ico {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.22));
}
@media (max-width: 760px) {
  .spot-title-ico { width: 21px; height: 21px; border-radius: 7px; }
}

/* Grąžiname simbolių drawerį, bet paliekame jį paslėptą iki simbolio paspaudimo. */
.minimal-app .forecast-card { position: relative !important; }
.symbol-legend,
.symbol-legend.side-symbol-menu {
  display: block !important;
  position: absolute !important;
  top: 58px !important;
  left: 10px !important;
  z-index: 60 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}
.symbol-legend summary,
.symbol-legend.side-symbol-menu summary {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel {
  display: grid !important;
  gap: 7px !important;
  width: var(--bw-v23-drawer-width) !important;
  max-width: min(var(--bw-v23-drawer-width), calc(100vw - 30px)) !important;
  padding: 14px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(7, 17, 31, .96) !important;
  color: rgba(236,246,255,.92) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.42) !important;
  backdrop-filter: blur(18px) !important;
  opacity: 0 !important;
  transform: translateX(-18px) scale(.98) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
}
.symbol-legend.side-symbol-menu[open] {
  width: var(--bw-v23-drawer-width) !important;
  height: auto !important;
  pointer-events: auto !important;
}
.symbol-legend.side-symbol-menu[open] .symbol-legend-panel {
  opacity: 1 !important;
  transform: translateX(0) scale(1) !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel strong {
  display: block !important;
  margin: 0 0 4px !important;
  font-size: 12px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(236,246,255,.62) !important;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel span {
  display: grid !important;
  grid-template-columns: 34px 1fr !important;
  grid-template-areas: "ico title" "ico text" !important;
  gap: 1px 10px !important;
  align-items: center !important;
  padding: 7px 8px !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.055) !important;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel i {
  grid-area: ico !important;
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.08) !important;
  font-style: normal !important;
  font-size: 15px !important;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel b {
  grid-area: title !important;
  display: block !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  color: #fff !important;
}
.symbol-legend.side-symbol-menu .symbol-legend-panel small {
  grid-area: text !important;
  display: block !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  color: rgba(236,246,255,.60) !important;
}

/* Kai stalčius atidarytas, lentelės turinys pastumiamas, todėl paaiškinimai neuždengia prognozės. */
.minimal-app .forecast-card.symbol-drawer-open .compact-primary-forecast,
.minimal-app .forecast-card.symbol-drawer-open .hourly-panel,
.minimal-app .forecast-card.symbol-drawer-open .data-footer {
  padding-left: calc(var(--bw-v23-drawer-width) + 8px) !important;
  transition: padding-left .18s ease !important;
}

/* Lentelės kairėje rodome tik siaurą simbolių koloną. */
:root { --bw-v20-row-label: var(--bw-v23-symbol-col) !important; }
.minimal-app .forecast-table th:first-child,
.minimal-app .forecast-table td:first-child,
.minimal-app .hourly-data th:first-child,
.minimal-app .hourly-data td:first-child {
  width: var(--bw-v23-symbol-col) !important;
  min-width: var(--bw-v23-symbol-col) !important;
  max-width: var(--bw-v23-symbol-col) !important;
  padding: 5px 4px !important;
  text-align: center !important;
  font-size: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.minimal-app .row-label span,
.minimal-app .hourly-row-label span,
.minimal-app .forecast-table th:first-child .mini-label {
  display: none !important;
}
.minimal-app .row-label::before,
.minimal-app .hourly-row-label::before {
  margin: 0 auto !important;
  width: 25px !important;
  height: 25px !important;
  font-size: 14px !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.075) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055) !important;
}
.minimal-app .forecast-table thead th:first-child::before,
.minimal-app .hourly-row-time::before {
  display: none !important;
  content: none !important;
}
.minimal-app .row-label:hover::before,
.minimal-app .hourly-row-label:hover::before,
.minimal-app .row-label:focus-visible::before,
.minimal-app .hourly-row-label:focus-visible::before {
  background: rgba(112,199,255,.18) !important;
  box-shadow: inset 0 0 0 1px rgba(112,199,255,.34), 0 0 0 3px rgba(112,199,255,.08) !important;
}

@media (max-width: 760px) {
  :root {
    --bw-v23-symbol-col: 34px;
    --bw-v23-drawer-width: 238px;
  }
  .minimal-app .forecast-card.symbol-drawer-open .compact-primary-forecast,
  .minimal-app .forecast-card.symbol-drawer-open .hourly-panel,
  .minimal-app .forecast-card.symbol-drawer-open .data-footer {
    padding-left: 0 !important;
  }
  .symbol-legend.side-symbol-menu {
    top: 50px !important;
    left: 8px !important;
  }
  .symbol-legend.side-symbol-menu .symbol-legend-panel {
    padding: 10px !important;
    border-radius: 16px !important;
  }
  .symbol-legend.side-symbol-menu .symbol-legend-panel span {
    grid-template-columns: 28px 1fr !important;
    padding: 6px !important;
  }
  .symbol-legend.side-symbol-menu .symbol-legend-panel i { width: 25px !important; height: 25px !important; font-size: 13px !important; }
  .symbol-legend.side-symbol-menu .symbol-legend-panel b { font-size: 12px !important; }
  .symbol-legend.side-symbol-menu .symbol-legend-panel small { font-size: 10px !important; }
  .minimal-app .forecast-table th:first-child,
  .minimal-app .forecast-table td:first-child,
  .minimal-app .hourly-data th:first-child,
  .minimal-app .hourly-data td:first-child {
    width: var(--bw-v23-symbol-col) !important;
    min-width: var(--bw-v23-symbol-col) !important;
    max-width: var(--bw-v23-symbol-col) !important;
    padding: 4px 3px !important;
  }
  .minimal-app .row-label::before,
  .minimal-app .hourly-row-label::before { width: 22px !important; height: 22px !important; font-size: 12px !important; }
}

/* build: bw20260602_minimal_v23_symbol_drawer_ico */

/* build: bw20260602_minimal_v24_windguru_side_labels */
/* V24: row explanations behave like Windguru labels.
   Default: only icons. Tap/click any left icon to expand labels in the same left column.
   Tap/click the expanded labels again to collapse. Nothing overlays the forecast data. */
:root {
  --bw-v24-symbol-col: 42px;
  --bw-v24-label-col: 154px;
}

.minimal-app .symbol-legend,
.minimal-app .symbol-legend.side-symbol-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.minimal-app .forecast-card.symbol-drawer-open .compact-primary-forecast,
.minimal-app .forecast-card.symbol-drawer-open .hourly-panel,
.minimal-app .forecast-card.symbol-drawer-open .data-footer {
  padding-left: 0 !important;
}

/* Collapsed state: a narrow sticky icon column, no text. */
.minimal-app .forecast-table th:first-child,
.minimal-app .forecast-table td:first-child,
.minimal-app .hourly-data th:first-child,
.minimal-app .hourly-data td:first-child {
  width: var(--bw-v24-symbol-col) !important;
  min-width: var(--bw-v24-symbol-col) !important;
  max-width: var(--bw-v24-symbol-col) !important;
  padding: 5px 4px !important;
  text-align: center !important;
  font-size: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: width .18s ease, min-width .18s ease, max-width .18s ease, padding .18s ease, background .18s ease !important;
}
.minimal-app .forecast-table th:first-child .mini-label,
.minimal-app .row-label span,
.minimal-app .hourly-row-label span {
  display: none !important;
}
.minimal-app .row-label::before,
.minimal-app .hourly-row-label::before {
  margin: 0 auto !important;
  width: 25px !important;
  height: 25px !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.075) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055) !important;
}
.minimal-app .forecast-table thead th:first-child::before,
.minimal-app .hourly-row-time::before {
  display: none !important;
  content: none !important;
}

/* Expanded state: the same sticky column becomes a Windguru-like explanation column. */
.minimal-app .forecast-card.symbol-labels-open .forecast-table th:first-child,
.minimal-app .forecast-card.symbol-labels-open .forecast-table td:first-child,
.minimal-app .forecast-card.symbol-labels-open .hourly-data th:first-child,
.minimal-app .forecast-card.symbol-labels-open .hourly-data td:first-child {
  width: var(--bw-v24-label-col) !important;
  min-width: var(--bw-v24-label-col) !important;
  max-width: var(--bw-v24-label-col) !important;
  padding: 6px 10px !important;
  text-align: left !important;
  font-size: 12px !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  color: rgba(236,246,255,.88) !important;
  background: rgba(7,17,31,.985) !important;
}
.minimal-app .forecast-card.symbol-labels-open .forecast-table th:first-child .mini-label,
.minimal-app .forecast-card.symbol-labels-open .row-label span,
.minimal-app .forecast-card.symbol-labels-open .hourly-row-label span {
  display: inline !important;
  margin-left: 4px !important;
  color: rgba(236,246,255,.55) !important;
  font-size: 10px !important;
  font-weight: 760 !important;
}
.minimal-app .forecast-card.symbol-labels-open .row-label::before,
.minimal-app .forecast-card.symbol-labels-open .hourly-row-label::before {
  margin: 0 7px 0 0 !important;
  vertical-align: middle !important;
}

/* A subtle edge tells the user the left labels are an interactive side strip. */
.minimal-app .forecast-table th:first-child,
.minimal-app .forecast-table td:first-child,
.minimal-app .hourly-data th:first-child,
.minimal-app .hourly-data td:first-child {
  box-shadow: inset -1px 0 0 rgba(255,255,255,.12) !important;
}
.minimal-app .forecast-card.symbol-labels-open .forecast-table td:first-child,
.minimal-app .forecast-card.symbol-labels-open .hourly-data td:first-child {
  box-shadow: inset -1px 0 0 rgba(112,199,255,.24) !important;
}

@media (max-width: 760px) {
  :root {
    --bw-v24-symbol-col: 34px;
    --bw-v24-label-col: 126px;
  }
  .minimal-app .forecast-card.symbol-labels-open .forecast-table th:first-child,
  .minimal-app .forecast-card.symbol-labels-open .forecast-table td:first-child,
  .minimal-app .forecast-card.symbol-labels-open .hourly-data th:first-child,
  .minimal-app .forecast-card.symbol-labels-open .hourly-data td:first-child {
    padding: 5px 7px !important;
    font-size: 10.5px !important;
  }
  .minimal-app .row-label::before,
  .minimal-app .hourly-row-label::before {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }
  .minimal-app .forecast-card.symbol-labels-open .row-label::before,
  .minimal-app .forecast-card.symbol-labels-open .hourly-row-label::before {
    margin-right: 5px !important;
  }
  .minimal-app .forecast-card.symbol-labels-open .row-label span,
  .minimal-app .forecast-card.symbol-labels-open .hourly-row-label span {
    font-size: 9px !important;
  }
}
