:root {
  color-scheme: light;
  --ink: #17231e;
  --muted: #718078;
  --line: #e7ece8;
  --surface: #ffffff;
  --canvas: #f5f8f6;
  --green: #157a56;
  --green-dark: #105d42;
  --green-soft: #e9f5ef;
  --amber: #a76b13;
  --amber-soft: #fff5e4;
  --red: #b94a45;
  --red-soft: #fff0ef;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 86% 0%, rgba(35, 136, 94, 0.08), transparent 31rem),
    var(--canvas);
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(21, 122, 86, 0.27);
  outline-offset: 3px;
}

.site-header {
  height: 74px;
  padding: 0 max(28px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(226, 234, 229, 0.8);
  background: rgba(255, 255, 255, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark,
.panel-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
}

.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 17px;
}

.brand-light {
  color: #708078;
  font-weight: 500;
}

.environment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #53625a;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.environment-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3eaa76;
  box-shadow: 0 0 0 3px #e6f4ec;
}

.page-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 53px 0 42px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.45px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

h1 {
  margin-bottom: 9px;
  font-size: clamp(29px, 4vw, 39px);
  letter-spacing: -1.5px;
  line-height: 1.12;
}

.hero-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.chain-card {
  min-width: 225px;
  padding: 15px 19px;
  border: 1px solid #dfece4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 22px rgba(27, 62, 44, 0.035);
}

.chain-label,
.chain-detail {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.chain-label {
  margin-bottom: 7px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.chain-status {
  display: block;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 15px;
}

.chain-status.is-invalid {
  color: var(--red);
}

.chain-detail {
  font-size: 11px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 21px;
}

.stat-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 24px rgba(27, 62, 44, 0.025);
}

.stat-card {
  min-height: 98px;
  padding: 18px 21px;
}

.stat-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 23px;
  letter-spacing: -0.5px;
}

.panel {
  padding: 24px;
  margin-bottom: 19px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
  letter-spacing: -0.45px;
}

.panel-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 400;
}

#transaction-form {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr auto;
  align-items: end;
  gap: 13px;
}

#transaction-form label {
  display: grid;
  gap: 7px;
  color: #526159;
  font-size: 11px;
  font-weight: 600;
}

input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe6e1;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

input::placeholder {
  color: #a0aaa4;
}

.amount-input {
  position: relative;
}

.amount-input input {
  padding-right: 47px;
}

.amount-input span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #88948d;
  font-size: 10px;
  transform: translateY(-50%);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  min-height: 36px;
  border-color: #dce8df;
  color: var(--green-dark);
  background: #f8fbf9;
}

.button-secondary:hover {
  border-color: #b8d5c3;
  background: var(--green-soft);
}

.app-message {
  min-height: 16px;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 11px;
}

.app-message.is-error {
  color: var(--red);
}

.transactions-panel {
  padding-bottom: 17px;
}

.transactions-heading {
  margin-bottom: 17px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

thead {
  background: #f8faf8;
}

th {
  padding: 11px 12px;
  color: #7a8780;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

td {
  padding: 13px 12px;
  border-top: 1px solid #eef1ef;
  color: #34423a;
  font-size: 11px;
}

.block-number {
  color: var(--green-dark);
  font-weight: 700;
}

.amount {
  font-weight: 700;
}

.hash {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  color: #78857d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-confirmed {
  color: var(--green);
  background: var(--green-soft);
}

.status-pending {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-rejected {
  color: var(--red);
  background: var(--red-soft);
}

.tamper-button {
  padding: 5px 7px;
  border: 1px solid #f0dfdc;
  border-radius: 6px;
  color: #a75a53;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
}

.tamper-button:hover {
  background: var(--red-soft);
}

.edit-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.edit-controls input {
  width: 82px;
  height: 29px;
  padding: 0 6px;
  font-size: 10px;
}

.table-note {
  margin: 13px 0 0;
  color: #87928c;
  font-size: 10px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  margin-bottom: 19px;
  border: 1px solid #dfece4;
  border-radius: 11px;
  background: #f0f7f2;
}

.notice-icon {
  flex: 0 0 18px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: #d9ecdf;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.notice p {
  margin: 0;
  color: #5f6e65;
  font-size: 11px;
  line-height: 1.65;
}

.notice strong {
  color: #2a4736;
}

.questions-panel {
  padding-bottom: 22px;
}

.questions-panel h2 {
  margin-bottom: 16px;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  padding-left: 20px;
  margin: 0;
  color: #647169;
  font-size: 11px;
  line-height: 1.6;
}

.answers li {
  padding-left: 3px;
}

.answers strong {
  color: #34453b;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px max(28px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: #89948d;
  background: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 820px) {
  .page-content {
    width: min(100% - 36px, 680px);
    padding-top: 38px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .chain-card {
    width: 100%;
  }

  #transaction-form {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 520px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  .brand {
    gap: 8px;
    font-size: 12px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .environment {
    padding: 7px 9px;
    font-size: 10px;
  }

  .page-content {
    width: calc(100% - 28px);
    padding-top: 32px;
  }

  .stats {
    gap: 8px;
  }

  .stat-card {
    min-height: 85px;
    padding: 13px 11px;
  }

  .stat-label {
    min-height: 25px;
    margin-bottom: 6px;
    font-size: 10px;
  }

  .stat-card strong {
    font-size: 19px;
  }

  .panel {
    padding: 18px 14px;
  }

  #transaction-form {
    grid-template-columns: 1fr;
  }

  .transactions-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-secondary {
    width: 100%;
  }

  .site-footer {
    gap: 10px;
    padding: 17px 14px;
    font-size: 9px;
  }
}
