.wl-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.wl-fresh { background: #1f4e2a; color: #4ade80; }
.wl-stale { background: #3a3a3a; color: #9ca3af; }
.wl-react { background: #7c2d12; color: #fb923c; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.wl-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.wl-stat {
  background: #161b22;
  border: 1px solid #2a313c;
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 110px;
}
.wl-stat-label {
  font-size: 11px;
  color: #6e7681;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.wl-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: #e6edf3;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.wl-stat-val.danger { color: #fb923c; }
.wl-stat-val.good { color: #4ade80; }

#wl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}
.wl-card {
  background: #161b22;
  border: 1px solid #2a313c;
  border-left: 3px solid #555;
  border-radius: 6px;
  padding: 14px 16px;
}
.wl-card.state-fresh { border-left-color: #22c55e; }
.wl-card.state-stale { border-left-color: #6b7280; }
.wl-card.state-reactivating { border-left-color: #fb923c; box-shadow: 0 0 12px rgba(251, 146, 60, 0.25); }

.wl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wl-sym {
  font-size: 15px;
  font-weight: 600;
  color: #e6edf3;
  font-family: 'JetBrains Mono', monospace;
}
.wl-rs {
  font-size: 13px;
  color: #8b949e;
  font-variant-numeric: tabular-nums;
}
.wl-rs b { color: #f59e0b; }
.wl-rs .override { color: #fb923c; }

.wl-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  font-size: 12px;
  margin-top: 8px;
}
.wl-m { display: flex; justify-content: space-between; }
.wl-m-label { color: #6e7681; }
.wl-m-val { font-variant-numeric: tabular-nums; color: #d6dde6; }
.wl-m-val.neg { color: #ef4444; }
.wl-m-val.pos { color: #22c55e; }
.wl-m-val.warn { color: #f59e0b; }

.wl-card-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #21262d;
  font-size: 11px;
  color: #6e7681;
  display: flex;
  justify-content: space-between;
}

#wl-events-list {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.wl-evt {
  padding: 8px 12px;
  border-bottom: 1px solid #21262d;
  display: grid;
  grid-template-columns: 130px 110px 110px 1fr;
  gap: 12px;
  align-items: center;
}
.wl-evt:hover { background: #161b22; }
.wl-evt-ts { color: #6e7681; }
.wl-evt-sym { font-weight: 600; color: #e6edf3; }
.wl-evt-type-ENTERED { color: #4ade80; }
.wl-evt-type-REMOVED { color: #9ca3af; }
.wl-evt-type-REACTIVATING { color: #fb923c; font-weight: 700; }
.wl-evt-detail { color: #8b949e; }

#wl-events-filter {
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
}

.bigcap-link, .back-link {
  color: #58a6ff;
  text-decoration: none;
}
.bigcap-link:hover, .back-link:hover { text-decoration: underline; }
