.dashboard {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(189, 254, 235, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(107, 0, 255, 0.18), rgba(3, 54, 43, 0.42) 52%, rgba(167, 240, 0, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.dashboard-header__copy h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.95;
}

.dashboard-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-header__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(189, 254, 235, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-header__tools {
  display: grid;
  gap: 10px;
  min-width: min(100%, 280px);
}

.dashboard-clock {
  min-width: 240px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.55fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.dashboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.dashboard-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.dashboard-panel__body {
  padding: 14px 18px 18px;
}

.dashboard-panel--matches .match-list,
.dashboard-panel--watchlist .watchlist-list {
  display: grid;
  gap: 10px;
}

.dashboard-panel--intel {
  padding: 18px;
}

.dashboard-panel--intel .analysis-hero {
  margin-bottom: 0;
}

.dashboard-panel--watchlist {
  padding: 18px;
}

.watchlist-panel__intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.watchlist-card {
  padding: 14px;
  border: 1px solid rgba(189, 254, 235, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.watchlist-card:hover {
  transform: translateY(-1px);
  border-color: rgba(189, 254, 235, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.watchlist-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.watchlist-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.25;
}

.watchlist-match,
.watchlist-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.watchlist-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 750;
}

.watchlist-metrics strong {
  color: var(--ink);
}

.watchlist-risk {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--risk-color);
  background: var(--risk-bg);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.watchlist-empty .empty-state {
  min-height: 180px;
}

.watchlist-open {
  display: inline-flex;
  width: 100%;
  margin-top: 14px;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 1280px) {
  .dashboard-grid {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  }

  .dashboard-panel--watchlist {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .dashboard-header {
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
