:root {
  --bg: #0d0f12;
  --bg2: #14171c;
  --card: #171b21;
  --line: #262b33;
  --text: #e6e8eb;
  --muted: #8b939e;
  --accent: #ff6600;
  --accent-2: #ff8533;
  --ok: #3ccf91;
  --warn: #f5b041;
  --err: #ff5d5d;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(1200px 600px at 10% -10%, #1c140d 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top, main, footer { width: min(760px, 100% - 32px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 0 8px; }
.brand { display: flex; gap: 14px; align-items: center; }
h1 { font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.pill { border: 1px solid #5a3415; color: var(--accent-2); background: #26170c; border-radius: 99px; padding: 2px 10px; font-size: .8rem; white-space: nowrap; }
main { display: grid; gap: 16px; padding: 16px 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font: 14px/1.4 var(--mono); word-break: break-all;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--err); }
.hint { color: var(--muted); font-size: .82rem; margin: 8px 0 16px; }
code { font-family: var(--mono); font-size: .9em; }
button {
  font: inherit; cursor: pointer; border-radius: 10px; border: 0;
}
#submit {
  width: 100%; padding: 13px 16px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 20px -8px #ff660088;
}
#submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
#submit:not(:disabled):hover { filter: brightness(1.07); }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); padding: 6px 12px; }
.ghost:hover { border-color: var(--accent); }
.link { background: none; color: var(--muted); padding: 0; text-decoration: underline; font-size: .85rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.work { margin-top: 18px; }
.work-head { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; margin-bottom: 8px; }
.bar { height: 10px; background: var(--bg2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ffb27a); transition: width .25s ease; }
.meta { color: var(--muted); font: 12px/1.4 var(--mono); margin: 8px 0 0; }
.msg { margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); font-size: .92rem; overflow-wrap: anywhere; }
.msg.ok { border-color: #1f6b4c; background: #0f2219; }
.msg.err { border-color: #6b1f1f; background: #221010; }
.msg.warn { border-color: #6b531f; background: #221a0d; }
.msg a { color: var(--accent-2); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.stat .k { color: var(--muted); font-size: .78rem; }
.stat .v { font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .note { color: var(--muted); font-size: .75rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: .78rem; }
td.addr { font-family: var(--mono); font-size: .8rem; }
td a { color: var(--accent-2); text-decoration: none; }
.muted { color: var(--muted); }
.st { font-size: .75rem; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.st.sent, .st.ok { color: var(--ok); border-color: #1f6b4c; }
.st.queued, .st.processing, .st.warn { color: var(--warn); border-color: #6b531f; }
.st.failed, .st.err { color: var(--err); border-color: #6b1f1f; }
.addr-box { display: flex; gap: 10px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.addr-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .78rem; color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { color: var(--muted); margin: 8px 0 0; font-size: .92rem; }
/* Nodely stagenet node + wallet guides */
.node-lede { color: var(--muted); margin: -4px 0 14px; font-size: .92rem; }
.node-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font: .88rem/1.4 var(--mono); }
.node-bar code { color: var(--text); font-size: .95rem; overflow-wrap: anywhere; }
.node-bar .live { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.node-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.node-meta { color: var(--muted); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .8rem; }
.node-bar .copy-btn { margin-left: auto; }
.w-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
details.acc { border-top: 1px solid var(--line); padding-inline: 12px; }
details.acc:first-of-type { border-top: 0; }
details.acc[open] { background: var(--bg2); }
details.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 0; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.w-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.w-name { font-weight: 500; overflow-wrap: anywhere; }
.w-plat { color: var(--muted); font-size: .82rem; min-width: 7.5em; text-align: right; }
.chev { color: var(--muted); transition: transform .15s ease; }
details.acc[open] .chev { transform: rotate(90deg); }
.guide { display: grid; gap: 10px; padding-bottom: 16px; min-width: 0; }
.codewrap { position: relative; min-width: 0; }
pre.code { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 70px 12px 14px; font: .8rem/1.55 var(--mono); overflow-x: auto; color: #d7dbe0; }
.codewrap .copy-btn { position: absolute; top: 8px; right: 8px; background: var(--bg2); font-size: .8rem; padding: 4px 10px; }
.steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .9rem; }
.steps b { font-weight: 600; }
.note { font-size: .84rem; color: var(--muted); margin: 0; }
.note a { color: var(--accent-2); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 480px) {
  .w-row { grid-template-columns: minmax(0, 1fr) auto; }
  .w-plat { display: none; }
  .codewrap { display: grid; gap: 6px; }
  .codewrap .copy-btn { position: static; justify-self: end; order: -1; }
  pre.code { padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
footer { color: var(--muted); font-size: .8rem; text-align: center; padding: 8px 0 32px; }
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .top { padding-top: 18px; }
  .card { padding: 16px; }
  .pill { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }
