:root {
  --bg: #060606; --panel: #0c0c0e; --line: #1d1f1b; --line-2: #2b2e27;
  --text: #f4f5f0; --soft: #d3d6cb; --muted: #a4a898; --dim: #8a8f7e;
  --lime: #cdf714; --lime-faint: rgba(205, 247, 20, 0.08); --bad: #ff8a7a;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: radial-gradient(70% 60% at 50% 0%, rgba(205,247,20,0.07), transparent 70%), var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; min-height: 100vh; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.top { border-bottom: 1px solid var(--line); background: rgba(6,6,6,0.8); }
.top-in { display: flex; align-items: center; gap: 14px; height: 64px; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.brand img { height: 24px; width: auto; display: block; }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
.top nav a { color: #e6e8e0; }
.top nav a:hover { color: var(--lime); text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 48px var(--gutter) 60px; }
.eyebrow { color: var(--soft); font-size: 11.5px; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 6vw, 48px); line-height: 1.02; }
h1 em { font-style: normal; color: var(--lime); }
.lede { color: var(--soft); margin-top: 14px; font-size: 17px; max-width: 760px; }
.card { margin-top: 28px; padding: 24px; background: linear-gradient(180deg, #0f1011, #0b0c0d); border: 1px solid var(--line-2); border-radius: 14px; }
.card h2 { font-size: 18px; font-weight: 800; }
.card h3 { font-size: 15px; font-weight: 700; margin-top: 26px; color: var(--soft); }
.sub { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.side { position: sticky; top: 12px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--soft); margin: 18px 0 8px; }
.opt { font-weight: 400; color: var(--dim); }
input[type=text], input[type=url] { width: 100%; height: 48px; padding: 0 14px; border-radius: 9px; border: 1px solid #3a3d35; background: #070808; color: var(--text); font-family: var(--mono); font-size: 14px; }
input[type=text]:focus, input[type=url]:focus { border-color: var(--lime); outline: none; box-shadow: 0 0 0 3px rgba(205,247,20,0.15); }
input[aria-invalid=true] { border-color: var(--bad); }
input[type=color] { width: 56px; height: 40px; padding: 2px; border-radius: 8px; border: 1px solid #3a3d35; background: #070808; cursor: pointer; }
.row { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.mono { font-family: var(--mono); }
.affix { display: flex; align-items: center; height: 48px; border-radius: 9px; border: 1px solid #3a3d35; background: #070808; font-family: var(--mono); font-size: 14px; max-width: 160px; }
.affix:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(205,247,20,0.15); }
.affix input { border: 0; background: transparent; box-shadow: none !important; height: 46px; }
.affix span { padding-right: 14px; color: var(--dim); }
.hint { color: var(--dim); font-size: 12.5px; margin-top: 6px; }
.hint b { color: var(--soft); }
.err { color: var(--bad); font-size: 13.5px; margin-top: 6px; }
.err:empty { display: none; }
.walletecho { margin-top: 8px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 9px; font-family: var(--mono); font-size: 12.5px; color: var(--soft); overflow-wrap: anywhere; }
.walletecho[hidden] { display: none; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; }
legend { padding: 0; font-size: 13px; font-weight: 600; color: var(--soft); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--soft); margin: 12px 0 0; line-height: 1.45; font-size: 14.5px; }
label.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lime); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.btn-lime { background: var(--lime); color: #0a0a0a; }
.btn-lime:hover { box-shadow: 0 8px 30px rgba(205,247,20,0.35); }
.btn[disabled] { opacity: 0.55; cursor: default; box-shadow: none; }
.row .btn { width: 100%; }
.msg { margin-top: 16px; padding: 12px 14px; border-radius: 9px; font-size: 14.5px; border: 1px solid var(--line-2); background: #0a0b0a; color: var(--soft); overflow-wrap: anywhere; }
.msg:empty { display: none; }
.msg.ok { border-color: rgba(205,247,20,0.5); background: var(--lime-faint); color: var(--text); }
.msg.bad { border-color: rgba(255,138,122,0.5); color: #ffd6cf; }
ul.facts { margin: 12px 0 0; padding-left: 18px; color: var(--soft); font-size: 14.5px; }
ul.facts li { margin: 9px 0; }
ol { margin: 10px 0 0; padding-left: 20px; color: var(--soft); font-size: 14.5px; }
ol li { margin: 6px 0; }
code { font-family: var(--mono); font-size: 0.86em; background: #121411; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.hosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.host { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: #0a0b0b; }
.host h3 { margin-top: 0; color: var(--text); }
.host p { margin-top: 10px; font-size: 14px; }

/* the preview: its colours come from --accent, set from the colour field */
.pv { --accent: #4f8cff; margin-top: 14px; border: 1px solid #262b33; border-radius: 12px; background: #0e1116; color: #e9edf3; overflow: hidden; }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #171b22; border-bottom: 1px solid #262b33; }
.pv-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.pv-brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-brand img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.pv-brand img[hidden], .pv-mark[hidden] { display: none; }
.pv-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: #0e1116; font-weight: 800; flex: none; }
.pv-btn { flex: none; padding: 6px 10px; border-radius: 8px; background: var(--accent); color: #0e1116; font-size: 12px; font-weight: 700; }
.pv-tag { padding: 14px 14px 6px; color: #8f9bad; overflow-wrap: anywhere; }
.pv-fees { width: calc(100% - 28px); margin: 8px 14px; border-collapse: collapse; font-size: 13px; }
.pv-fees th, .pv-fees td { text-align: left; padding: 7px 0; border-bottom: 1px solid #262b33; vertical-align: top; }
.pv-fees th { font-weight: 600; width: 38%; padding-right: 10px; }
.pv-fees td { color: #c3ccd9; }
.pv-fees tr:last-child th, .pv-fees tr:last-child td { color: var(--accent); border-bottom: 0; font-weight: 700; }
.pv-line { padding: 4px 14px; font-size: 12.5px; color: #8f9bad; overflow-wrap: anywhere; }
.pv-foot { padding: 10px 14px 14px; font-size: 11.5px; color: #8f9bad; overflow-wrap: anywhere; }

footer { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) 40px; color: var(--dim); font-size: 12.5px; }
footer p + p { margin-top: 6px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .hosts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .top nav a.hide-sm { display: none; }
  main { padding-top: 34px; }
  .card { padding: 18px; }
}
