.summary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.summary-box { padding: 18px; background: var(--surface); border-radius: 10px; }
.summary-box .s-label {
  font-size: 11px; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.summary-box .s-value { font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.summary-box .s-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.s-good { color: var(--good); }
.s-bad { color: var(--danger); }

.map {
  height: 380px; border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; position: relative; z-index: 0;
}
.leaflet-container { background: var(--surface) !important; }
.map-tooltip {
  font-family: var(--font-ui) !important; font-size: 13px !important;
  padding: 6px 10px !important; border-radius: 8px !important;
  background: var(--bg) !important; color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
.map-tooltip::before { border-top-color: var(--bg) !important; }
.leaflet-popup-content-wrapper { border-radius: 12px !important; box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-family: var(--font-ui) !important; }

.map-legend {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; font-size: 11px; color: var(--text-dim);
}
.legend-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 2px; vertical-align: middle;
}

.tbl { width: 100%; border-collapse: collapse; }
.tbl thead { background: var(--accent); color: #fff; }
.tbl th { font-size: 12px; font-weight: 600; padding: 12px 16px; text-align: left; }
.tbl th:nth-child(n+2) { text-align: right; }
.tbl tbody tr { border-bottom: 1px solid var(--border); transition: background .12s; }
.tbl tbody tr:last-child { border-bottom: none; }
.tbl tbody tr:hover { background: var(--surface); }
.tbl td { padding: 12px 16px; font-size: 14px; }
.tbl td:nth-child(n+2) {
  text-align: right; font-family: var(--font-mono);
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.tbl .cname { font-weight: 600; }


@media (max-width: 640px) {
  .map { height: 300px; }
  .summary { grid-template-columns: 1fr; }
  .tbl td, .tbl th { padding: 10px 12px; font-size: 13px; }
  .map-legend { font-size: 10px; gap: 8px; }
}

.mycountry {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; color: var(--text);
  transition: border-color .15s;
}
.mycountry:hover { border-color: var(--accent); }
.mc-flag { font-size: 34px; line-height: 1; flex-shrink: 0; }
.mc-main { flex: 1; min-width: 0; }
.mc-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); }
.mc-name { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.mc-status { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.mc-status strong { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.mc-good .mc-status strong { color: var(--good); }
.mc-bad .mc-status strong { color: var(--danger); }
.mc-cta { font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; flex-shrink: 0; }

#tomorrowBtn.has-data { position: relative; }
#tomorrowBtn.has-data::after {
  content: ''; position: absolute; top: 3px; right: 3px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--good);
}

@media (max-width: 640px) {
  .mc-cta { display: none; }
  .mc-flag { font-size: 28px; }
  .mc-name { font-size: 16px; }
}
