/* ══════════════════════════════════════════════════════
   EMPTY / FIRST-RUN STATES
   ══════════════════════════════════════════════════════ */

.empty-state {
  padding: 60px 40px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1.5px dashed var(--b2);
  background: var(--bg);
  position: relative;
  margin: 8px 0;
  border-radius: var(--r);
}
.empty-state::before,
.empty-state::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--b3);
}
.empty-state::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.empty-state::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.empty-state .es-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--t3);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.empty-state .es-icn {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--t1);
  background: var(--s2);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  position: relative;
  border-radius: var(--r-m);
}
.empty-state .es-icn .pulse {
  position: absolute;
  inset: -8px;
  border: 1.5px solid var(--t1);
  border-radius: calc(var(--r-m) + 8px);
  opacity: 0;
  animation: es-pulse 2.4s ease-out infinite;
}
@keyframes es-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.empty-state .es-icn.ok { border-color: var(--mint); color: var(--mint); }
.empty-state .es-icn.blue { border-color: var(--t1); color: var(--t1); }

.empty-state .es-ttl {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--t1);
  max-width: 28ch;
  margin-bottom: 10px;
  text-wrap: balance;
}
.empty-state .es-sub {
  font-size: 13px;
  color: var(--t2);
  max-width: 48ch;
  line-height: 1.5;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.empty-state .es-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--t3);
  text-transform: uppercase;
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.empty-state .es-meta span::before {
  content: "·";
  color: var(--t3);
  margin-right: 8px;
}
.empty-state .es-meta span:first-child::before { content: ""; margin-right: 0; }

.empty-state .es-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.empty-state .es-actions .btn { min-width: 140px; }

/* Compact variant — fits inside existing panel-body */
.empty-state.compact {
  padding: 36px 24px;
  margin: 0;
  border: 0;
}
.empty-state.compact::before,
.empty-state.compact::after { display: none; }
.empty-state.compact .es-icn { width: 48px; height: 48px; font-size: 22px; margin-bottom: 14px; }
.empty-state.compact .es-ttl { font-size: 20px; }
.empty-state.compact .es-sub { font-size: 12px; margin-bottom: 14px; }

/* KPI strip adjusts to zeros when empty */
.empty-mode .metric .m-val { color: var(--t3) !important; }
.empty-mode .metric .m-delta { display: none; }

/* Genesis block styling — ledger first-run */
.empty-state.genesis {
  background: var(--s2);
  border-style: solid;
  border-color: var(--t1);
}
.empty-state.genesis .es-hash {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t2);
  background: var(--bg);
  padding: 10px 14px;
  border: 1px solid var(--b2);
  margin-top: 12px;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  letter-spacing: 0.05em;
  border-radius: var(--r-c);
}

/* topbar data-mode pill styling — reuses theme-toggle base */
#data-mode-toggle button {
  letter-spacing: 0.12em;
}

/* status banner shown across the top when in empty mode */
.empty-mode-banner {
  background: var(--s2);
  border-bottom: 1px solid var(--b2);
  padding: 7px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--t1);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.empty-mode-banner .msg { font-weight: 700; }
.empty-mode-banner .hint { color: var(--t3); letter-spacing: 0.15em; }
