:root {
  --station-bg: #1a1a1a;
  --station-panel: #252525;
  --station-card: #2d2d2d;
  --station-ink: #f1f1f1;
  --station-muted: #b8b8b8;
  --station-dark: #1e1e1e;
  --station-accent: #ffeb3b;
  --station-link: #ffef95;
  --station-link-hover: #fff7bf;
  --station-border: rgba(255, 255, 255, 0.16);
  --station-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  --station-ui-font: "Exo 2", "Nunito Sans", "Segoe UI", sans-serif;
  --station-card-font: "Trebuchet MS", "Verdana", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.alps-station-page {
  margin: 0;
  min-height: 100vh;
  background: var(--station-bg);
  color: var(--station-ink);
  font-family: var(--station-ui-font);
  font-size: clamp(18px, 0.25vw + 17.2px, 20px);
  line-height: 1.45;
  overflow-x: hidden;
}

.alps-station-page a {
  color: var(--station-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 239, 149, 0.44);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.alps-station-page a:hover,
.alps-station-page a:focus-visible {
  color: var(--station-link-hover);
  text-decoration-color: rgba(255, 247, 191, 0.74);
}

.alps-station-page .station-page-topbar .station-home-link {
  color: #f2f2f2;
  text-decoration: none;
}

.alps-station-page .station-page-topbar .station-home-link:hover,
.alps-station-page .station-page-topbar .station-home-link:focus-visible {
  color: #fff3a8;
  text-decoration: none;
}

.station-shell {
  max-width: 1564px;
  margin: 0 auto;
  padding: 14px 12px 28px;
}

.station-page-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--station-dark);
  border: 1px solid rgba(255, 235, 59, 0.24);
  border-radius: 10px;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.18);
  padding: 7px 10px;
  position: sticky;
  top: 8px;
  z-index: 1000;
}

.station-menu-trigger,
.station-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 235, 59, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #f2f2f2;
  font-family: var(--station-ui-font);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.station-menu-trigger {
  display: none;
}

.station-home-link {
  text-decoration: none;
}

.station-top-links-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.station-lang-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.station-station-links {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 235, 59, 0.4) rgba(255, 255, 255, 0.08);
}

.station-station-links::-webkit-scrollbar {
  height: 5px;
}

.station-station-links::-webkit-scrollbar-thumb {
  background: rgba(255, 235, 59, 0.35);
  border-radius: 999px;
}

.station-station-links::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.station-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 235, 59, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  color: #d6d6d6 !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-family: var(--station-ui-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.station-lang-link {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.station-top-link:hover,
.station-top-link:focus-visible {
  color: #fff3a8 !important;
  background: rgba(255, 235, 59, 0.14);
  border-color: rgba(255, 235, 59, 0.45);
  outline: none;
}

.station-top-link.is-active {
  color: #ffeb3b !important;
  background: rgba(255, 235, 59, 0.18);
  border-color: rgba(255, 235, 59, 0.52);
}

.station-menu-trigger:hover,
.station-menu-trigger:focus-visible,
.station-home-link:hover,
.station-home-link:focus-visible {
  background: rgba(255, 235, 59, 0.15);
  color: #fff3a8;
  border-color: rgba(255, 235, 59, 0.5);
  outline: none;
}

.station-page-title-wrap {
  margin-left: 8px;
  text-align: right;
  min-width: min(34vw, 220px);
  flex: 0 0 auto;
}

.station-page-title {
  margin: 0;
  color: #f2f2f2;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.55rem, 0.9vw + 1.2rem, 2.15rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
}

.station-page-subtitle {
  margin: 2px 0 0;
  color: #c9c9c9;
  font-size: clamp(0.9rem, 0.24vw + 0.82rem, 1.05rem);
  line-height: 1.2;
}

.station-layout {
  margin-top: 14px;
}

.station-pane {
  margin-bottom: 12px;
}

.tab,
.tab_data {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 235, 59, 0.45) rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 235, 59, 0.3);
  border-bottom: 0;
  background-color: var(--station-dark);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  font-size: 1.08rem;
}

.tab::-webkit-scrollbar,
.tab_data::-webkit-scrollbar {
  height: 6px;
}

.tab::-webkit-scrollbar-thumb,
.tab_data::-webkit-scrollbar-thumb {
  background: rgba(255, 235, 59, 0.4);
  border-radius: 999px;
}

.tab::-webkit-scrollbar-track,
.tab_data::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.tab button,
.tab_data button {
  background-color: var(--station-dark);
  color: #d0d4da;
  border: 0;
  outline: none;
  flex: 0 0 auto;
  cursor: pointer;
  min-height: 44px;
  padding: 0 14px;
  font-size: 1.06rem;
  font-family: var(--station-ui-font);
  letter-spacing: 0.02em;
  font-weight: 700;
  white-space: nowrap;
  touch-action: manipulation;
  background-image: linear-gradient(rgba(255, 235, 59, 0.85), rgba(255, 235, 59, 0.85));
  background-repeat: no-repeat;
  background-position: center 100%;
  background-size: 0% 2px;
  transition: color 0.2s ease, background-color 0.2s ease, background-size 0.2s ease;
}

.tab button:hover,
.tab button:focus-visible,
.tab_data button:hover,
.tab_data button:focus-visible {
  color: #fff3a8;
  background-color: rgba(30, 30, 30, 0.94);
  background-size: 100% 2px;
}

.tab button.active,
.tab_data button.active {
  color: #ffeb3b;
  background-color: rgba(255, 235, 59, 0.18);
  background-size: 100% 2px;
}

.tab button[disabled],
.tab_data button[disabled] {
  color: #8c949f;
  opacity: 0.75;
  cursor: not-allowed;
  background-image: none;
}

.station-chart-range-controls {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 6;
}

.station-chart-range-btn {
  border: 1px solid rgba(255, 235, 59, 0.34);
  border-radius: 10px;
  background: #262626;
  color: #d0d4da;
  min-height: 40px;
  min-width: 118px;
  padding: 0 14px;
  font-family: var(--station-ui-font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  touch-action: manipulation;
  background-image: linear-gradient(rgba(255, 235, 59, 0.85), rgba(255, 235, 59, 0.85));
  background-repeat: no-repeat;
  background-position: center 100%;
  background-size: 0% 2px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, background-size 0.2s ease, box-shadow 0.2s ease;
}

.station-chart-range-btn:hover,
.station-chart-range-btn:focus-visible {
  color: #fff3a8;
  background-color: #303030;
  border-color: rgba(255, 235, 59, 0.56);
  background-size: 100% 2px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  outline: none;
}

.station-chart-range-btn.is-active {
  color: #ffeb3b;
  background-color: rgba(255, 235, 59, 0.16);
  border-color: rgba(255, 235, 59, 0.56);
  background-size: 100% 2px;
}

.tabcontent {
  display: none;
  padding: 12px;
  border: 1px solid var(--station-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: var(--station-panel);
  box-shadow: var(--station-shadow);
}

#Images .station-images-grid {
  margin: 0;
}

#Images .alps-col.l8.m8,
#Images .alps-col.l4.m4 {
  padding: 0 6px;
}

.timelapse-stage {
  position: relative;
  display: inline-block;
  width: auto;
  max-width: 100%;
  line-height: 0;
  margin: 0 auto;
}

#Canvas1 {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  background: #101010 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: none;
}

.timelapse-controls-wrap {
  width: min(624px, 100%);
  margin: 10px auto 0;
}

.timelapse-controls-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.timelapse-controls-grid .timelapse-control-cell {
  float: none !important;
  flex: 1 1 0;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
}

.timelapse-controls-grid .timelapse-control-cell > .alps-display-container {
  width: 100%;
}

#loadingScreen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: var(--station-ink);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(12px, 1.8vw, 18px);
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 235, 59, 0.08) 0, rgba(255, 235, 59, 0) 52%),
    radial-gradient(circle at 82% 0%, rgba(255, 235, 59, 0.06) 0, rgba(255, 235, 59, 0) 44%),
    #1f1f1f;
  border: 1px solid rgba(255, 235, 59, 0.26);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -28px 34px rgba(0, 0, 0, 0.18);
}

.station-loading-shell {
  width: min(460px, 100%);
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 16px;
  border: 1px solid rgba(255, 235, 59, 0.3);
  background:
    linear-gradient(160deg, rgba(37, 37, 37, 0.95) 0%, rgba(28, 28, 28, 0.98) 100%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.station-loading-spinner {
  width: 58px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: #ffeb3b;
  border-right-color: rgba(255, 235, 59, 0.7);
  animation: station-loading-spin 1.05s linear infinite;
  position: relative;
}

.station-loading-spinner::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 235, 59, 0.24);
  border-left-color: rgba(255, 235, 59, 0.6);
  animation: station-loading-spin 1.6s linear reverse infinite;
}

.station-loading-title {
  margin: 0;
  font-family: var(--station-ui-font);
  font-size: clamp(1.08rem, 0.6vw + 0.9rem, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.014em;
  color: #f6f6f6;
}

.station-loading-track {
  margin: 14px auto 10px;
  width: min(280px, 100%);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 235, 59, 0.24);
  overflow: hidden;
}

.station-loading-track-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 235, 59, 0.6) 0%, rgba(255, 235, 59, 0.96) 52%, rgba(255, 235, 59, 0.75) 100%);
  box-shadow: 0 0 10px rgba(255, 235, 59, 0.35);
  transition: width 0.24s ease;
}

#percent.station-loading-percent {
  margin: 0;
  min-height: 1.6em;
  font-family: Inconsolata, monospace;
  font-size: clamp(1.02rem, 0.45vw + 0.9rem, 1.24rem);
  font-weight: 700;
  color: #ffef95;
  letter-spacing: 0.025em;
  word-break: break-word;
  line-height: 1.35;
}

@keyframes station-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-ctrl {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 100%;
  min-height: 48px;
  padding: 0.54rem 0.25rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 235, 59, 0.34);
  background: #262626;
  color: #fff1a6;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -10px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn-ctrl::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ffeb3b;
  transform: translateX(-50%);
  opacity: 0.9;
  pointer-events: none;
  transition: width 0.22s ease, opacity 0.22s ease;
}

.btn-ctrl i.fa-solid {
  color: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: text-shadow 0.22s ease;
}

.btn-ctrl:hover {
  background: #303030;
  color: #fff3a8 !important;
  border-color: rgba(255, 235, 59, 0.56);
  box-shadow:
    0 11px 20px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -11px 16px rgba(0, 0, 0, 0.22);
}

.btn-ctrl:hover::after,
.btn-ctrl:focus-visible::after {
  width: 100%;
}

.btn-ctrl:hover i.fa-solid,
.btn-ctrl:focus-visible i.fa-solid {
  text-shadow: 0 0 12px rgba(255, 235, 59, 0.32);
}

.btn-ctrl:active {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.24),
    inset 0 2px 8px rgba(0, 0, 0, 0.36);
}

.btn-ctrl:focus-visible {
  outline: 2px solid rgba(255, 235, 59, 0.58);
  outline-offset: 2px;
}

#fa-play {
  color: #71d84c !important;
}

.station-owner-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--station-card);
  border: 1px solid var(--station-border);
  color: var(--station-ink);
  font-family: var(--station-card-font);
  font-size: 1.02rem;
  line-height: 1.5;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.station-image-meta-label,
.station-image-debug {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.98rem;
  line-height: 1.25;
}

.station-image-debug {
  min-height: 1em;
}

#Controls {
  font-size: 1.08rem !important;
  background: transparent !important;
  padding: 0 6px;
}

#Controls .alps-row {
  margin-bottom: 8px;
}

#Controls .alps-row > div {
  background: var(--station-card) !important;
  border: 1px solid var(--station-border);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  padding: 9px 10px !important;
  color: #f3f6fb !important;
  font-family: var(--station-card-font);
}

#Controls .alps-row > div,
#Controls .alps-row > div span,
#Controls .alps-row > div p,
#Controls .alps-row > div b {
  color: #f3f6fb !important;
}

#Controls .alps-yellow {
  background: #232323 !important;
  color: #f3f6fb !important;
  border: 1px solid rgba(246, 211, 101, 0.44) !important;
  border-radius: 8px;
  padding: 6px 8px;
  font-family: var(--station-card-font);
  font-size: 1.04rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#Controls .alps-yellow * {
  color: #f3f6fb !important;
}

#Controls .center {
  width: min(180px, 78%) !important;
}

#Controls .station-owner-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: linear-gradient(180deg, rgba(249, 249, 249, 0.98) 0%, rgba(235, 235, 235, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 16px rgba(0, 0, 0, 0.22);
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#Controls .station-owner-logo-link:hover,
#Controls .station-owner-logo-link:focus-visible {
  border-color: rgba(246, 211, 101, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 20px rgba(0, 0, 0, 0.26);
  outline: none;
}

#Controls .station-owner-logo {
  width: min(190px, 100%) !important;
  max-height: 88px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

#Controls .range-slider {
  margin-top: 6px;
}

#Controls #rs-bullet-fps,
#Controls #rs-bullet-img,
#Controls #curr-img {
  font-family: var(--station-card-font);
  font-weight: 700;
  color: #ffef95 !important;
}

#Controls .alps-yellow a {
  color: #ffef95;
  text-decoration: none;
}

#Controls .alps-yellow a:hover,
#Controls .alps-yellow a:focus-visible {
  color: #fff7bf;
  text-decoration: none;
}

#Controls #debug-txt {
  display: block;
  min-height: 1em;
  margin-top: 0.16rem;
  color: var(--station-muted);
  font-size: 0.94rem;
}

.box-minmax {
  margin-top: 0.25rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--station-muted);
  letter-spacing: 0.03em;
}

.box-minmax span {
  padding-inline: 0.3em;
}

.box-minmax span:first-child {
  margin-left: 0;
}

#Controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  margin: 8px 0 2px;
  --slider-progress: 50%;
  background: transparent;
  accent-color: var(--station-accent);
  cursor: pointer;
}

#Controls input[type="range"]:focus-visible {
  outline: none;
}

#Controls input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ffeb3b 0%,
    #ffeb3b var(--slider-progress),
    #363636 var(--slider-progress),
    #363636 100%
  );
  border: 1px solid rgba(246, 211, 101, 0.32);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.42);
}

#Controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #1e1e1e;
  background: #ffeb3b;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

#Controls input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.34),
    0 0 0 6px rgba(255, 235, 59, 0.18);
}

#Controls input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(0.98);
}

#Controls input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #363636;
  border: 1px solid rgba(246, 211, 101, 0.32);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.42);
}

#Controls input[type="range"]::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: #ffeb3b;
}

#Controls input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #1e1e1e;
  background: #ffeb3b;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

#Controls input[type="range"]::-ms-track {
  height: 10px;
  border-radius: 999px;
  border: 0;
  color: transparent;
  background: transparent;
}

#Controls input[type="range"]::-ms-fill-lower {
  background: #ffeb3b;
  border-radius: 999px;
}

#Controls input[type="range"]::-ms-fill-upper {
  background: #363636;
  border-radius: 999px;
}

#Controls input[type="range"]::-ms-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #1e1e1e;
  background: #ffeb3b;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#Meteo .alps-col.l12,
#ICM .alps-col.l12 {
  background: var(--station-panel) !important;
  border: 1px solid var(--station-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--station-shadow);
  padding: 12px;
}

#Meteo iframe,
#ICM img {
  border: 1px solid var(--station-border);
  border-radius: 10px;
  background: var(--station-card);
}

#suh_meteo {
  height: 76vh !important;
  min-height: 660px;
}

#piw_meteo {
  height: 76vh !important;
  min-height: 720px;
}

#weather-data {
  color: var(--station-ink) !important;
  background: var(--station-card);
  border: 1px solid var(--station-border);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  padding: 12px 14px;
  font-family: var(--station-card-font);
}

#weather-data .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 10px !important;
  font-size: clamp(1.04rem, 0.42vw + 0.9rem, 1.18rem) !important;
  align-items: flex-start;
}

#weather-data .row:last-child {
  margin-bottom: 0 !important;
}

#weather-data .col-6 {
  width: 50% !important;
  text-align: left !important;
}

#weather-data .col-6:first-child {
  color: #d0d0d0;
  font-weight: 700;
}

#weather-data .col-6:last-child {
  color: #f2f2f2;
  font-family: Inconsolata, monospace;
}

#weather-data .col-12 {
  width: 100% !important;
  text-align: left !important;
}

#weather-data .material-icons {
  font-size: 1em !important;
  vertical-align: -0.18em;
  margin-right: 0.28rem;
  color: var(--station-accent);
}

#weather-data .col-6[style*="color: #b00020"] {
  color: #b00020 !important;
}

.station-weather-aux {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.station-weather-source {
  color: var(--station-muted);
  font-size: 0.9rem;
}

.station-weather-aux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 235, 59, 0.34);
  background: #262626;
  color: #fff1a6 !important;
  text-decoration: none !important;
  font-family: var(--station-ui-font);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.station-weather-aux-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffeb3b;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0.95;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.station-weather-aux-btn:hover,
.station-weather-aux-btn:focus-visible {
  color: #fff7bf !important;
  border-color: rgba(255, 235, 59, 0.62);
  background-color: #2f2f2f;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.24);
  outline: none;
}

.station-weather-aux-btn:hover::after,
.station-weather-aux-btn:focus-visible::after {
  transform: scaleX(1);
}

#ICM .alps-row {
  margin: 0;
}

#ICM .icm-composite-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--station-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--station-card);
}

#ICM .icm-composite-strip > .alps-col {
  float: none;
  flex: 0 0 auto;
  padding: 0 !important;
}

#ICM .icm-composite-strip .alps-display-container {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

#ICM .icm-composite-strip img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#icm_data_wrap {
  position: relative;
  overflow: hidden;
}

#icm_data_wrap #WRO_icm {
  display: block;
  width: 100%;
  transform: translateY(0);
  will-change: transform;
}

#ICM p {
  margin: 8px 2px 0;
  color: var(--station-muted);
  font-size: 0.9rem !important;
  text-align: left;
  line-height: 1.5;
}

.station-chart-stage {
  position: relative;
  width: 100%;
  min-height: 620px;
  background: var(--station-panel);
  border: 1px solid var(--station-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--station-shadow);
  padding: 0 !important;
  overflow: hidden;
}

.tabcontent_data {
  display: block;
  position: absolute;
  inset: 0;
  padding: 10px;
  border: 0;
  background: transparent;
  z-index: 1;
}

.tabcontent_data .alps-row,
.tabcontent_data .alps-col,
.tabcontent_data .alps-display-container {
  height: 100%;
}

.tabcontent_data .alps-display-container {
  background: var(--station-card);
  border: 1px solid var(--station-border);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.tabcontent_data .js-plotly-plot,
.tabcontent_data .plotly-graph-div {
  width: 100% !important;
  min-height: 540px;
}

.tabcontent_data .rangeselector .button rect {
  rx: 8px;
  ry: 8px;
  fill: #242424 !important;
  stroke: rgba(255, 235, 59, 0.36) !important;
  stroke-width: 1 !important;
}

.tabcontent_data .rangeselector .button text {
  fill: #e8ebef !important;
  font-family: var(--station-ui-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.tabcontent_data .rangeselector .button:hover rect {
  fill: #2c2c2c !important;
  stroke: rgba(255, 235, 59, 0.56) !important;
}

.tabcontent_data .rangeselector .button.active rect {
  fill: rgba(255, 235, 59, 0.27) !important;
  stroke: rgba(255, 235, 59, 0.72) !important;
}

.tabcontent_data .rangeselector .button.active text {
  fill: #fff2a0 !important;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.visible {
  visibility: visible;
  opacity: 1;
  z-index: 2;
}

@media screen and (max-width: 1200px) {
  .chart {
    margin-top: 14px;
  }

  .station-page-topbar {
    position: static;
  }
}

@media screen and (min-width: 1200px) {
  .pad-l {
    padding-left: 0.35em;
  }

  .pad-r {
    padding-right: 0.35em;
  }
}

@media screen and (max-width: 992px) {
  #Images .alps-col.l8.m8,
  #Images .alps-col.l4.m4 {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #Controls {
    margin-top: 10px;
    padding: 0;
  }

  .station-chart-stage {
    min-height: 560px;
  }

  .tabcontent_data .js-plotly-plot,
  .tabcontent_data .plotly-graph-div {
    min-height: 500px;
  }

  #suh_meteo,
  #piw_meteo {
    height: 72vh !important;
    min-height: 600px;
  }
}

@media screen and (min-width: 861px) {
  .station-layout > .station-pane {
    width: 50% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .chart {
    margin-top: 0;
  }
}

@media screen and (max-width: 860px) {
  .station-layout > .station-pane {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media screen and (max-width: 700px) {
  .station-shell {
    padding: 10px 8px 18px;
  }

  .station-page-topbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
  }

  .station-top-links-wrap {
    display: none;
    width: 100%;
    order: 3;
    gap: 8px;
    overflow: visible;
    flex-direction: column;
  }

  body.station-links-open .station-top-links-wrap {
    display: flex;
  }

  body.station-links-open .station-lang-links {
    justify-content: flex-start;
  }

  body.station-links-open .station-station-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .station-page-title-wrap {
    margin-left: 0;
    width: 100%;
    text-align: left;
    order: 4;
  }

  .station-page-title {
    font-size: clamp(1.3rem, 5vw, 1.65rem);
  }

  .station-page-subtitle {
    font-size: 0.9rem;
  }

  .station-menu-trigger,
  .station-home-link {
    display: inline-flex;
    flex: 1 1 calc(50% - 4px);
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  body.station-links-open .station-station-links .station-top-link {
    width: 100%;
  }

  .tab,
  .tab_data {
    scroll-snap-type: x proximity;
  }

  .tab button,
  .tab_data button {
    flex: 0 0 auto;
    min-width: 122px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.98rem;
    scroll-snap-align: start;
  }

  .station-chart-range-controls {
    gap: 7px;
  }

  .station-chart-range-btn {
    min-width: calc(33.333% - 7px);
    min-height: 42px;
    padding: 0 8px;
    font-size: 0.88rem;
  }

  .tabcontent {
    padding: 8px;
  }

  .timelapse-controls-wrap {
    margin-top: 12px;
  }

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

  .timelapse-controls-grid .timelapse-control-cell {
    width: auto !important;
    flex: 0 0 auto;
  }

  #loadingScreen {
    padding: 12px;
  }

  .station-loading-shell {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .station-loading-spinner {
    width: 50px;
    margin-bottom: 10px;
  }

  .station-loading-track {
    margin-top: 11px;
    margin-bottom: 8px;
    height: 7px;
  }

  .btn-ctrl {
    min-height: 50px;
    padding: 0.45rem 0.2rem;
  }

  #Controls input[type="range"] {
    height: 34px;
    margin: 6px 0 2px;
  }

  #Controls input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -6px;
  }

  #Controls input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

  #Controls input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
  }

  #Controls .alps-row > div {
    padding: 8px 9px !important;
  }

  #Controls .alps-yellow {
    font-size: 0.98rem;
  }

  .box-minmax {
    font-size: 0.8rem;
  }

  #weather-data {
    padding: 10px;
  }

  #weather-data .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 10px;
    row-gap: 2px;
    margin-bottom: 8px !important;
  }

  #weather-data .col-6 {
    width: auto !important;
    flex: 1 1 170px;
    min-width: 0;
  }

  #weather-data .col-6:first-child {
    flex-basis: 180px;
    margin-bottom: 0;
  }

  #weather-data .col-6:last-child {
    flex-basis: 120px;
  }

  .station-weather-aux-btn {
    width: 100%;
  }

  #suh_meteo,
  #piw_meteo {
    height: 70vh !important;
    min-height: 520px;
  }

  .station-chart-stage {
    min-height: 460px;
  }

  .tabcontent_data {
    padding: 5px;
  }

  .tabcontent_data .js-plotly-plot,
  .tabcontent_data .plotly-graph-div {
    height: 100% !important;
    min-height: 390px;
  }

  .tabcontent_data .plotly-graph-div .plot-container,
  .tabcontent_data .plotly-graph-div .svg-container {
    height: 100% !important;
  }
}
