:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18202a;
  background: #f6f7f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 48px);
  color: #f9fbfc;
  background: #13212f;
  border-bottom: 4px solid #1f9d8a;
}

.eyebrow {
  margin: 0 0 4px;
  color: #9ddfd5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.1;
}

main {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 40px) 40px;
}

.status,
.summary article,
.toolbar,
.panel,
.table-wrap {
  border: 1px solid #dde3e8;
  background: #ffffff;
}

.status {
  padding: 8px 12px;
  color: #17332f;
  background: #dff5f0;
  border-color: #9ddfd5;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.status.error {
  color: #5f1d21;
  background: #ffe8e8;
  border-color: #efb2b2;
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary article {
  padding: 18px;
  border-radius: 8px;
}

.summary span {
  display: block;
  margin-bottom: 6px;
  color: #0e7569;
  font-size: 30px;
  font-weight: 800;
}

.summary p,
.section-heading span,
label span,
dt,
.pending li {
  color: #637083;
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
}

label {
  display: grid;
  gap: 6px;
}

input,
select {
  width: 100%;
  height: 40px;
  border: 1px solid #cdd6de;
  border-radius: 6px;
  padding: 0 10px;
  color: #18202a;
  background: #ffffff;
  font: inherit;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading h2,
.panel h2 {
  font-size: 20px;
}

.table-wrap,
.panel {
  border-radius: 8px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: #405064;
  background: #f0f4f6;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #fbfcfd;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.token-list span {
  padding: 3px 7px;
  color: #394757;
  background: #edf3f7;
  border-radius: 999px;
  font-size: 12px;
}

.panel {
  padding: 18px;
}

dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f3;
}

dd {
  margin: 0;
  color: #0e7569;
  font-weight: 800;
  text-align: right;
}

.pending h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.pending ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary,
  .toolbar,
  .split {
    grid-template-columns: 1fr;
  }

  .status {
    white-space: normal;
  }
}
