:root {
  color: #172033;
  background: #f5f7fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

.dashboard-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.eyebrow {
  color: #647089;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.token-form,
.filters,
.status-strip,
.table-panel,
.summary-card {
  background: #ffffff;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
}

.token-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.status-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: #475569;
}

label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}

button {
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 11px 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.summary-card {
  padding: 14px;
}

.summary-card span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 6px;
}

.summary-card strong {
  font-size: 24px;
}

.table-panel {
  padding: 16px;
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 1580px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #475569;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge {
  border-radius: 999px;
  display: inline-flex;
  padding: 5px 9px;
  background: #eef3ff;
  color: #1d4ed8;
  font-weight: 700;
}

.badge.warning {
  background: #fff7ed;
  color: #9a3412;
}

.badge.danger {
  background: #fff1f2;
  color: #be123c;
}

.empty {
  color: #64748b;
  padding: 18px 10px;
}

@media (max-width: 980px) {
  .topbar,
  .filters {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
