:root {
  font-family:
    "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #d5d5d5;
  background: #111;
  line-height: 1.5;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #111;
}
a {
  color: inherit;
}
header {
  height: 58px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #303030;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.brand img {
  width: 23px;
  height: 23px;
}
.env {
  color: #777;
  font-size: 11px;
}
#connection {
  margin-left: auto;
  font-size: 11px;
  color: #aaa;
}
#connection i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #b1c0aa;
  margin-right: 8px;
}
nav {
  display: flex;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid #303030;
}
button,
.button,
.file-label {
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  background: #191919;
  border: 1px solid #3c3c3c;
  color: #ccc;
  padding: 6px 10px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover,
.file-label:hover {
  background: #2b2b2b;
  color: #fff;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.file-label:focus-within {
  outline: 1px solid #ccc;
  outline-offset: 3px;
}
nav button,
nav a {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 14px 0;
  color: #888;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
nav button.active,
nav a.active {
  color: #eee;
  border-bottom-color: #bbb;
}
nav button:hover,
nav a:hover {
  background: none;
  color: #fff;
}
main {
  max-width: 1280px;
  padding: 0 32px;
  margin: 0 auto;
}
.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 32px 0 25px;
}
.page-top > div {
  min-width: 0;
}
#subtitle {
  overflow-wrap: anywhere;
}
#open-wallet {
  flex-shrink: 0;
}
h1 {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
}
h2 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  color: #e4e4e4;
}
p {
  font-size: 11px;
  color: #888;
  margin: 9px 0;
  line-height: 1.8;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #333;
}
.metrics article {
  padding: 16px 20px;
  border-right: 1px solid #333;
}
.metrics article:last-child {
  border: 0;
}
.metrics label {
  font-size: 11px;
  color: #888;
}
.metrics strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 23px;
  font-weight: 400;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.network-note {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 25px;
  color: #777;
  font-size: 10px;
}
.panel {
  margin-bottom: 24px;
  min-width: 0;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}
.panel-title > span {
  font-size: 10px;
  color: #777;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 11px;
}
th {
  color: #777;
  font-size: 10px;
  font-weight: 400;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #292929;
}
td {
  padding: 12px;
  border-bottom: 1px solid #252525;
  color: #aaa;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
tr:hover td {
  background: #171717;
}
.block-link {
  padding: 0;
  border: 0;
  background: none;
  color: #dedede;
  font-size: 11px;
  text-decoration: none;
}
.finalized {
  color: #a0b69a;
  font-size: 10px;
}
.hash {
  font-size: 10px;
  color: #999;
}
.empty {
  padding: 25px 0;
  color: #777;
  font-size: 11px;
}
.rules {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  border-top: 1px solid #333;
  padding: 16px 0;
  font-size: 10px;
  color: #777;
}
.rules b {
  color: #bbb;
  font-weight: 400;
  margin-left: 8px;
}
.notice {
  margin-top: 14px;
  font-size: 10px;
  color: #7f7f7f;
}
.validator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.validator-grid .panel {
  border: 1px solid #333;
  padding: 16px;
}
.validator-grid h2 {
  margin-top: 12px;
}
.validator-grid p {
  overflow-wrap: anywhere;
  font-size: 10px;
}
.chip {
  font-size: 9px;
  color: #999;
}
.details {
  font-size: 10px;
  line-height: 2;
  color: #aaa;
  overflow-wrap: anywhere;
  margin-top: 20px;
}
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.wallet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.file-label input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.field-label {
  display: block;
  color: #777;
  margin: 20px 0 8px;
  font-size: 10px;
}
code {
  font: inherit;
  font-size: 10px;
  overflow-wrap: anywhere;
  color: #bbb;
}
.balance {
  font-size: 24px;
  margin: 28px 0 10px;
  overflow-wrap: anywhere;
}
.balance small {
  font-size: 11px;
  color: #888;
}
form label,
label.field {
  display: block;
  margin: 20px 0 10px;
  font-size: 11px;
  color: #aaa;
}
input,
select,
textarea {
  display: block;
  font: inherit;
  font-size: 12px;
  background: #171717;
  color: #ddd;
  border: 1px solid #444;
  border-radius: 2px;
  padding: 9px;
  width: 100%;
  margin-top: 8px;
}
textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}
input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin: 0 8px 0 0;
  vertical-align: middle;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.inline-form label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}
.inline-form input {
  width: 110px;
  margin: 0;
}
.inline-form input.wide {
  width: min(480px, 45vw);
}
#send-result,
.result {
  overflow-wrap: anywhere;
  color: #b8c4b2;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #303030;
  margin-top: 38px;
  padding: 20px 0;
  color: #666;
  font-size: 10px;
}
#error,
.callout {
  border: 1px solid #6b5146;
  background: #211b17;
  color: #d4bba5;
  font-size: 11px;
  padding: 12px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
dialog {
  background: #151515;
  border: 1px solid #555;
  color: #ddd;
  padding: 24px;
  width: min(850px, 94vw);
  max-height: 88vh;
}
dialog::backdrop {
  background: #000b;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    10px/1.7 Consolas,
    monospace;
  color: #aaa;
}
[hidden] {
  display: none !important;
}

/* ---------- additions in the same visual language ---------- */
.callout.ok {
  border-color: #3f5a44;
  background: #151d17;
  color: #b8c4b2;
}
.callout.info {
  border-color: #3c3c3c;
  background: #171717;
  color: #aaa;
}
.callout strong {
  display: block;
  font-weight: 500;
  color: inherit;
  margin-bottom: 4px;
}
.pending {
  color: #d4bba5;
  font-size: 10px;
}
.failed {
  color: #d98f8f;
  font-size: 10px;
}
.chip.ok {
  color: #a0b69a;
}
.chip.warn {
  color: #d4bba5;
}
.chip.bad {
  color: #d98f8f;
}
.muted {
  color: #888;
}
.faint {
  color: #666;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
button.primary,
.button.primary {
  border-color: #666;
  color: #eee;
  background: #222;
}
button.danger {
  border-color: #6b5146;
  color: #d4bba5;
}
.icon-button {
  padding: 0 4px;
  border: 0;
  background: none;
  color: #888;
  font-size: 10px;
}
.icon-button:hover {
  background: none;
  color: #fff;
}
.kv {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  margin: 0;
  font-size: 11px;
}
.kv dt,
.kv dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #252525;
  min-width: 0;
}
.kv dt {
  color: #777;
  font-size: 10px;
}
.kv dd {
  color: #aaa;
  overflow-wrap: anywhere;
}
.subnav {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #303030;
  margin-bottom: 20px;
  overflow-x: auto;
}
.subnav button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 0;
  color: #888;
  font-size: 11px;
}
.subnav button.active {
  color: #eee;
  border-bottom-color: #bbb;
}
.subnav button:hover {
  background: none;
  color: #fff;
}
.address-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #333;
  padding: 10px 12px;
  margin: 8px 0;
}
.address-box code {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
.recovery-code {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  border: 1px solid #333;
  padding: 12px;
  margin: 12px 0;
}
.recovery-code span {
  text-align: center;
  padding: 6px 0;
  border: 1px solid #2a2a2a;
  background: #171717;
  color: #ddd;
  letter-spacing: 0.05em;
}
.review {
  border-top: 1px solid #333;
  margin: 12px 0;
}
.review > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #252525;
  font-size: 11px;
}
.review > div > span:first-child {
  color: #777;
  white-space: nowrap;
}
.review > div > span:last-child {
  color: #ddd;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.recipient-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.recipient-row label {
  margin-bottom: 0;
}
.recipient-row .icon-button {
  margin-bottom: 11px;
}
.hint {
  display: block;
  font-size: 10px;
  color: #777;
  margin-top: 6px;
}
.hint.ok {
  color: #a0b69a;
}
.hint.bad {
  color: #d98f8f;
}
input[aria-invalid="true"] {
  border-color: #6b5146;
}
.meter {
  height: 4px;
  background: #252525;
  margin-top: 8px;
}
.meter span {
  display: block;
  height: 100%;
  background: #a0b69a;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #aaa;
  margin: 16px 0;
}
.check input {
  margin-top: 2px;
}
details.raw {
  border-top: 1px solid #333;
  margin-top: 8px;
}
details.raw summary {
  cursor: pointer;
  color: #888;
  font-size: 11px;
  padding: 12px 0;
}
pre.code {
  border: 1px solid #303030;
  background: #151515;
  padding: 12px;
  overflow-x: auto;
  margin: 0 0 12px;
}
pre.code.nowrap {
  white-space: pre;
}
.account-list button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}
.account-list button.active {
  border-color: #888;
  color: #fff;
}
.spinner {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1px solid #aaa;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: -1px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 40px));
}
.toast {
  background: #191919;
  border: 1px solid #3c3c3c;
  color: #ccc;
  font-size: 11px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}
.toast.bad {
  border-color: #6b5146;
  color: #d4bba5;
}
.toast.ok {
  color: #b8c4b2;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.dialog-body {
  margin-top: 14px;
}
.env.test {
  color: #d4bba5;
}
.steps {
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  color: #aaa;
  line-height: 2;
}
.endpoint td:nth-child(1) {
  color: #a0b69a;
}
.banner {
  border-bottom: 1px solid #6b5146;
  background: #211b17;
  color: #d4bba5;
  font-size: 11px;
  padding: 7px 32px;
}
.icon {
  vertical-align: -1px;
}
.stat label {
  font-size: 11px;
  color: #888;
}
.stat strong {
  display: block;
  font-size: 23px;
  font-weight: 400;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.stat p {
  margin: 4px 0 0;
  font-size: 10px;
}
.skeleton span {
  display: block;
  height: 10px;
  margin: 14px 0;
  background: #1c1c1c;
}
.skeleton span:nth-child(2n) {
  width: 80%;
}
.link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #444;
  background: #171717;
  padding: 10px 12px;
  margin: 12px 0;
}
.link-box code {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
/* ---------- payments, receipts and status ---------- */
.qr {
  display: inline-block;
  background: #fff;
  padding: 6px;
  line-height: 0;
  margin: 12px 0 4px;
}
.qr svg {
  width: 188px;
  height: 188px;
  display: block;
}
.verified {
  color: #a0b69a;
  font-size: 10px;
}
.unverified {
  color: #d4bba5;
  font-size: 10px;
}
.uptime {
  display: flex;
  gap: 2px;
  margin: 14px 0 6px;
}
.uptime span {
  flex: 1 1 0;
  min-width: 1px;
  height: 26px;
  background: #252525;
}
.uptime span.ok {
  background: #a0b69a;
}
.uptime span.warn {
  background: #d4bba5;
}
.uptime span.bad {
  background: #d98f8f;
}
.uptime-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666;
}
.receipt {
  border: 1px solid #333;
  padding: 20px;
  margin-bottom: 24px;
}
.receipt h2 {
  font-size: 14px;
}
.checks {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  font-size: 11px;
  line-height: 2;
}
.checks li::before {
  content: "✓ ";
  color: #a0b69a;
}
.checks li.bad::before {
  content: "✗ ";
  color: #d98f8f;
}
td.actions {
  display: flex;
  gap: 4px;
}
td .wrap {
  display: block;
  white-space: normal;
  min-width: 260px;
  max-width: 560px;
}
.metrics strong.good {
  color: #a0b69a;
}
.metrics strong.warn {
  color: #d4bba5;
}
.metrics strong.bad {
  color: #d98f8f;
}
select.inline {
  display: inline-block;
  width: auto;
  margin: 0;
}
/* ---------- records ---------- */
.metrics.spaced {
  margin-bottom: 24px;
}

@media print {
  :root,
  body {
    background: #fff;
    color: #000;
    color-scheme: light;
  }
  header,
  nav,
  footer,
  #banner,
  #open-wallet,
  #error,
  .toasts,
  .no-print,
  .button-row,
  .subnav {
    display: none !important;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .page-top {
    margin: 0 0 12px;
  }
  h1,
  h2,
  p,
  th,
  td,
  code,
  .kv dt,
  .kv dd,
  .finalized,
  .verified,
  .unverified,
  .chip,
  .hint,
  .block-link {
    color: #000 !important;
  }
  .panel-title,
  .kv dt,
  .kv dd,
  th,
  td,
  .receipt {
    border-color: #999 !important;
  }
  tr:hover td {
    background: none;
  }
  .uptime span {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

@media (max-width: 700px) {
  header {
    padding: 0 16px;
    gap: 12px;
  }
  nav {
    padding: 0 16px;
    gap: 20px;
    overflow-x: auto;
  }
  main {
    padding: 0 16px;
  }
  .env {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics article:nth-child(2) {
    border-right: 0;
  }
  .metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid #333;
  }
  .wallet-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .validator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .network-note {
    gap: 10px;
    font-size: 9px;
  }
  .rules {
    gap: 12px;
  }
  .page-top {
    margin-top: 24px;
  }
  footer {
    flex-wrap: wrap;
    font-size: 9px;
  }
  .panel-title > span {
    max-width: 150px;
    text-align: right;
  }
  .kv {
    grid-template-columns: 1fr;
  }
  .kv dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .recipient-row {
    grid-template-columns: 1fr;
  }
}

/* File drop zones (records) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
  padding: 20px;
  border: 1px dashed #444;
  background: #151515;
  cursor: pointer;
  min-width: 0;
}
.dropzone:hover,
.dropzone.dragging,
.dropzone:focus-within {
  border-color: #a0b69a;
}
.dropzone.chosen {
  border-style: solid;
  border-color: #3f4a3c;
}
.drop-label {
  font-size: 11px;
  color: #e4e4e4;
}
.drop-action {
  font-size: 11px;
  color: #888;
}
.drop-name {
  font-size: 11px;
  color: #aaa;
  overflow-wrap: anywhere;
}
.dropzone.chosen .drop-name {
  color: #a0b69a;
}
.lead {
  font-size: 13px;
  color: #cfcfcf;
  line-height: 1.8;
  max-width: 720px;
}
.uses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.uses h3 {
  font-size: 11px;
  font-weight: 500;
  color: #e4e4e4;
  margin: 16px 0 0;
}
.verdict {
  margin-top: 18px;
}
details.more {
  margin: 14px 0;
}
details.more summary {
  cursor: pointer;
  color: #888;
  font-size: 11px;
}
@media (max-width: 700px) {
  .uses {
    grid-template-columns: 1fr;
  }
}
#footer a {
  color: inherit;
  text-decoration: none;
}
#footer a:hover {
  color: #e4e4e4;
}
