:root {
  --vgw-strip-height: 28px;
}

#virgonia-weather-strip {
  /* Keep vertical footprint minimal: the grid provides only a 2px separation on workspace tabs. */
  min-width: 0;
  height: var(--vgw-strip-height);
  margin: 0 18px;
  padding: 0 10px;
  border: 1px solid rgba(126, 163, 122, 0.54);
  border-radius: 8px;
  background: #295626;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 2px 7px rgba(0, 0, 0, 0.14);
  color: #edf4f8;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

#virgonia-weather-strip .vgw-icon {
  flex: 0 0 auto;
  color: #f0c86a;
  font-size: 15px;
  line-height: 1;
}

#virgonia-weather-strip .vgw-fixed {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1;
}

#virgonia-weather-strip .vgw-fixed-divider {
  flex: 0 0 0.5rem;
  width: 0.5rem;
}

#virgonia-weather-strip .vgw-line {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1;
}

#virgonia-weather-strip .vgw-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  will-change: transform;
}

#virgonia-weather-strip .vgw-ticker-copy {
  flex: 0 0 auto;
  white-space: nowrap;
}

#virgonia-weather-strip .vgw-ticker-copy + .vgw-ticker-copy {
  margin-left: 48px;
}

#virgonia-weather-strip .vgw-line:not(.vgw-ticker-active) .vgw-ticker-track {
  width: 100%;
}

#virgonia-weather-strip .vgw-line.vgw-ticker-active .vgw-ticker-track {
  animation: vgw-weather-ticker var(--vgw-ticker-duration, 18s) linear infinite;
}

@keyframes vgw-weather-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--vgw-ticker-distance, 600px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  #virgonia-weather-strip .vgw-line.vgw-ticker-active .vgw-ticker-track {
    animation-duration: 45s;
  }
}

#virgonia-weather-strip .vgw-date,
#virgonia-weather-strip .vgw-location,
#virgonia-weather-strip .vgw-temp {
  color: #ffffff;
  font-weight: 700;
}

#virgonia-weather-strip .vgw-separator {
  color: rgba(224, 237, 245, 0.72);
  padding: 0 3px;
}

.chat-panel.vgw-weather-host {
  grid-template-rows: auto var(--vgw-strip-height) minmax(0, 1fr) auto;
  row-gap: 0;
}

.workspace-overlay.vgw-weather-host,
.dm-session-overlay.vgw-weather-host {
  grid-template-rows: auto var(--vgw-strip-height) minmax(0, 1fr) !important;
  row-gap: 2px !important;
}

.workspace-overlay.vgw-weather-host > .workspace-maps-layout,
.workspace-overlay.vgw-weather-host > .workspace-frame-shell,
.workspace-overlay.vgw-weather-host > .owlbear-layout,
.dm-session-overlay.vgw-weather-host > .dm-session-layout {
  min-height: 0;
}


@media (max-width: 1024px), (pointer: coarse) {
  :root { --vgw-strip-height: 26px; }
  #virgonia-weather-strip {
  /* Keep vertical footprint minimal: the grid provides only a 2px separation on workspace tabs. */
    margin-inline: 10px;
    padding-inline: 8px;
  }
  #virgonia-weather-strip .vgw-line {
    font-size: 0.76rem;
  }
  #virgonia-weather-strip .vgw-narrative-long {
    display: none;
  }
}
