.argos-weather-timeline {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.90)
    );
  color: #e5e7eb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.awt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}

.awt-header > :first-child {
  min-width: 0;
}

.awt-title {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
}

.awt-subtitle {
  margin-top: 3px;
  font-size: 11px;
  color: #94a3b8;
}

.awt-current-time {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}

.awt-chart {
  position: relative;
  min-height: 270px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: grab;
}

.awt-chart::-webkit-scrollbar {
  display: none;
}

.awt-empty {
  display: flex;
  min-height: 145px;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}

.awt-canvas {
  display: block;
  width: 100%;
  min-width: 0;
  height: 270px;
}

.awt-weather-band {
  position: relative;
  min-height: 86px;
  height: 86px;
  margin: 8px 0 0;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px 12px 0 0;
  border-bottom-color: transparent;
  background: #071525;
  touch-action: pan-y;
  cursor: grab;
}

.awt-chart.is-time-dragging,
.awt-weather-band.is-time-dragging { cursor: grabbing; }

.awt-weather-band[hidden] { display: none; }

.awt-weather-band-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.awt-weather-period {
  position: relative;
  min-width: 0;
  padding: 9px 7px 28px;
  overflow: hidden;
  color: white;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
}
.awt-weather-period { transition:background-color .5s ease, filter .5s ease; }
.awt-weather-period.is-night { background-color:#071525; filter:saturate(.72) brightness(.72); }
.awt-weather-period.is-night.is-clear { background:radial-gradient(circle at 72% 28%,#f8fafc 0 3px,#cbd5e1 4px,transparent 10px),linear-gradient(180deg,#071525,#17324b); }

.awt-weather-period::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  left: -18px;
  height: 52px;
  border-radius: 50% 50% 0 0;
  background: rgba(238, 248, 255, calc(.18 + var(--cloud, 0) * .006));
  filter: blur(3px);
}

.awt-weather-period.is-rain {
  background: repeating-linear-gradient(105deg, transparent 0 8px, rgba(147, 197, 253, .48) 9px 10px), linear-gradient(180deg, #073969, #164e7a);
}

.awt-weather-period.is-clear { background: radial-gradient(circle at 30% 72%, #fff9b0 0 5px, #ffd84f 7px, transparent 17px), linear-gradient(180deg, #086bb4, #70bde7); }
.awt-weather-period.is-cloudy { background: linear-gradient(180deg, #315879, #7895a9); }
.awt-weather-period.is-storm { background: linear-gradient(180deg, #182337, #374151); }
.awt-weather-period strong, .awt-weather-period span { position: relative; z-index: 1; display: block; }
.awt-weather-period strong { font-size: 11px; }
.awt-weather-period span { margin-top: 3px; font-size: 10px; line-height: 1.15; }

.awt-decision-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}

.awt-legend { display: flex; flex-wrap: wrap; gap: 12px; color: #cbd5e1; font-size: 11px; }
.awt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.awt-line { display: inline-block; width: 26px; border-top: 3px solid; border-radius: 4px; }
.awt-line-wind { border-color: #55aaff; }
.awt-line-measured { border-color: #34d399; border-top-style: dashed; border-top-width: 2px; }
.awt-line-gust { border-color: #f8fafc; border-top-style: dashed; border-top-width: 2px; }

.awt-time-truth {
  display: grid;
  grid-template-columns: 1fr auto 3fr;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 7px;
  color: #94a3b8;
  font-size: 9px;
}
.awt-time-truth strong { color: #f8fafc; font-size: 9px; }
.awt-time-truth span:last-child { text-align: right; }

.awt-transition {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, .18);
  color: #fde047;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

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

.awt-secondary-details { margin-top: 7px; color: #94a3b8; font-size: 10px; }
.awt-secondary-details summary { width: max-content; margin-left: auto; padding: 4px 2px; cursor: pointer; }
.awt-secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 4px; }

.awt-detail {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  background: rgba(8, 25, 42, .72);
}
.awt-detail span, .awt-detail strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.awt-detail span { margin-bottom: 3px; color: #94a3b8; font-size: 9px; }
.awt-detail strong { color: #e2e8f0; font-size: 10px; font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  .argos-weather-timeline *,
  .argos-weather-timeline *::before,
  .argos-weather-timeline *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  .argos-weather-timeline {
    border-color: rgba(255, 255, 255, 0.42);
    background: #07111f;
  }
}

@media (max-width: 760px) {
  .argos-weather-timeline {
    padding: 11px;
    border-radius: 12px;
  }

  .awt-current-time {
    font-size: 18px;
  }

  .awt-chart {
    min-height: 270px;
  }

  .awt-canvas {
    height: 270px;
  }

  .awt-title { font-size: 18px; }
  .awt-weather-band { min-height: 76px; height: 76px; }
  .awt-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awt-decision-row { align-items: flex-start; flex-direction: column; }
}

/* ARGOS_WEATHER_TIMELINE_COMPACT_HEADER_V1 */

.awt-header {
  align-items: flex-start;
  margin-bottom: 2px;
}

.awt-subtitle {
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awt-meta-separator {
  color: rgba(148, 163, 184, 0.65);
}

.awt-meta-separator[hidden] { display: none; }

.awt-chart {
  min-height: 270px;
}

.awt-canvas {
  height: 270px;
}
