.vw-page {
  height: calc(100vh - 118px);
  min-height: 760px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #f8fafc;
}

.vw-title {
  font-size: 20px;
  font-weight: 700;
  color: #13202f;
}

.vw-subtitle {
  font-size: 12px;
  color: #617080;
  margin-top: 2px;
}

.vw-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vw-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(640px, 1fr) 340px;
  gap: 10px;
  min-height: 0;
}

.vw-map-wrap {
  position: relative;
  min-height: 0;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f5;
}

.vw-map {
  width: 100%;
  height: 100%;
  min-height: 470px;
}

.vw-map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8dee6;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
}

.vw-layer-switch label {
  font-size: 12px;
  margin-right: 8px;
}

.vw-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: auto;
}

.vw-panel {
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.vw-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #213043;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.vw-note,
.vw-muted {
  font-size: 12px;
  color: #64748b;
}

.vw-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.vw-kpi {
  border: 1px solid #e3e8ef;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.vw-kpi-label {
  font-size: 11px;
  color: #64748b;
}

.vw-kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #17212b;
}

.vw-bottom {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 340px;
  gap: 10px;
  min-height: 300px;
  max-height: 380px;
}

.vw-timeline-panel,
.vw-forecast-detail {
  overflow: auto;
}

.vw-timeline table {
  font-size: 12px;
  margin: 0;
}

.vw-timeline-frame {
  border-radius: 4px;
}

.vw-pill {
  display: inline-block;
  min-width: 54px;
  text-align: left;
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf2f7;
  font-size: 11px;
  white-space: nowrap;
}

.vw-weather-glyph {
  min-width: 92px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.18);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  font: 8px/1 Arial, sans-serif;
  color: #17212b;
  white-space: nowrap;
}

.vw-weather-time {
  font-weight: 700;
  color: #334155;
  margin-bottom: 1px;
  letter-spacing: 0;
}

.vw-glyph-stack {
  display: grid;
  gap: 1px;
}

.vw-glyph-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.vw-glyph-chip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
}

.vw-glyph-arrow {
  display: inline-flex;
  width: 10px;
  justify-content: center;
}

.vw-glyph-dir {
  width: 18px;
  font-size: 8px;
  color: #475569;
}

.vw-glyph-value {
  min-width: 26px;
  text-align: right;
  font-weight: 700;
  color: #111827;
}

.vw-glyph-value small {
  margin-left: 1px;
  font-size: 7px;
  font-weight: 400;
  color: #64748b;
}

.vw-glyph-empty {
  color: #94a3b8;
}

.vw-hover-card {
  min-width: 210px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
}

.vw-hover-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.vw-hover-meta {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 6px;
}

.vw-hover-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 8px;
  align-items: baseline;
}

.vw-hover-label {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
}

.vw-hover-value {
  font-size: 10px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.vw-status-progress .progress-bar {
  background-color: #2563eb;
}

.vw-status-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 8px;
}

.vw-status-label {
  font-size: 11px;
  color: #64748b;
}

.vw-status-value {
  font-size: 11px;
  font-weight: 700;
  color: #17212b;
  text-align: right;
}

.vw-analysis-tabs .nav-link {
  padding: 4px 8px;
  font-size: 12px;
}

.vw-analysis-tabs .tab-content {
  padding-top: 6px;
}

.vw-chart {
  min-height: 260px;
}

.vw-analysis-block {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.vw-subsection-title {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.vw-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.vw-mini-item {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 6px;
  background: #f8fafc;
}

.vw-mini-label {
  font-size: 10px;
  color: #64748b;
}

.vw-mini-value {
  font-size: 12px;
  font-weight: 700;
  color: #17212b;
}

.vw-risk-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.vw-risk-pill {
  min-width: 74px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.vw-risk-1 {
  background: #fef3c7;
  color: #92400e;
}

.vw-risk-2 {
  background: #fed7aa;
  color: #9a3412;
}

.vw-risk-3 {
  background: #fecaca;
  color: #991b1b;
}

.vw-risk-text {
  font-size: 11px;
  color: #334155;
}

@media (max-width: 1100px) {
  .vw-main,
  .vw-bottom {
    grid-template-columns: 1fr;
  }

  .vw-page {
    height: auto;
  }

  .vw-map {
    height: 520px;
  }
}
