/* Dark and simple, in the language of the Benthic console: warm near-black, ink-light text, one vermilion accent. */
:root {
  color-scheme: dark;
  --bg: #131209; --sheet: #181818; --card: #1f1f1f; --well: #181818; --tone: #272727; --tone-hi: #313131;
  --fg: #ede9df; --text: #b3aea2; --muted: #9a958a;
  --primary: #f2eee4; --primary-fg: #131209; --accent: #d4462b; --danger: #ef8f7a; --ok: #6bd8a0;
  --lift: 0 1px 2px rgb(0 0 0 / .4), 0 16px 36px -22px rgb(0 0 0 / .8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; }
main { max-width: 40rem; margin: 0 auto; padding: 48px 16px 64px; display: grid; gap: 16px; }
header { padding: 0 8px 8px; }
.eyebrow { margin: 0 0 8px; font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: .02em; }
h1 { margin: 0 0 8px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.03em; color: var(--fg); text-wrap: balance; }
h2 { margin: 0 0 12px; font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.015em; color: var(--fg); }
h3 { margin: 24px 0 4px; font-size: 16px; font-weight: 600; color: var(--fg); }
.lede { margin: 0; font-size: 18px; line-height: 28px; max-width: 34rem; text-wrap: pretty; }
.card { background: var(--card); border-radius: 16px; padding: 24px; box-shadow: var(--lift); overflow-wrap: anywhere; min-width: 0; }
.card.error { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--card)); }
.card.error h2 { color: var(--danger); }
.points { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 12px; }
.points b { color: var(--fg); font-weight: 600; }
.points em { color: var(--fg); }
label { display: block; margin: 20px 0 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg); }
input, textarea { width: 100%; background: var(--well); border: 0; border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 16px; color: var(--fg); box-shadow: inset 0 1px 2px rgb(0 0 0 / .4); resize: vertical; }
input:focus, textarea:focus { outline: none; background: var(--card); box-shadow: 0 0 0 2px var(--accent), inset 0 1px 2px rgb(0 0 0 / .4); }
input::placeholder, textarea::placeholder { color: var(--muted); }
button { font: inherit; border: 0; border-radius: 9999px; padding: 8px 16px; font-weight: 600; background: var(--primary); color: var(--primary-fg); cursor: pointer; transition: transform 500ms var(--ease), opacity 300ms var(--ease), background-color 300ms var(--ease); }
button:hover:not(:disabled) { transform: translateY(-2px); }
button:active:not(:disabled) { transform: scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.soft { background: var(--tone); color: var(--fg); }
button.soft:hover:not(:disabled) { background: var(--tone-hi); }
button.link { background: none; padding: 0; color: var(--muted); font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
button.link:hover:not(:disabled) { color: var(--fg); transform: none; }
button.big { width: 100%; margin-top: 24px; padding: 16px 24px; font-size: 20px; line-height: 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
p { margin: 8px 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 13px; background: var(--tone); color: var(--fg); border-radius: 6px; padding: 2px 4px; }
a { color: var(--fg); text-underline-offset: 4px; }
.steps { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: center; color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--tone); font-size: 12px; font-weight: 600; flex: none; }
.steps li.active { color: var(--fg); font-weight: 600; }
.steps li.active::before { background: var(--accent); color: #fff; }
.steps li.done { color: var(--text); }
.steps li.done::before { content: "\2713"; background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
progress { width: 100%; height: 8px; border: 0; border-radius: 9999px; overflow: hidden; background: var(--tone); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--tone); }
progress::-webkit-progress-value { background: var(--accent); transition: width 300ms var(--ease); }
progress::-moz-progress-bar { background: var(--accent); }
.hash-row { display: flex; gap: 8px; align-items: flex-start; }
.hash { display: block; flex: 1; min-width: 0; padding: 12px 16px; border-radius: 12px; background: #000; color: var(--fg); font-size: 18px; line-height: 28px; word-break: break-all; user-select: all; }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
#circuit-hashes pre { margin: 8px 0 0; padding: 12px 16px; border-radius: 12px; background: #000; color: var(--fg); font: 13px/20px var(--mono); overflow-x: auto; }
summary { cursor: pointer; color: var(--muted); margin-top: 16px; }
.roster { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 18rem; overflow-y: auto; }
.roster li { display: flex; gap: 12px; justify-content: space-between; padding: 8px 12px; border-radius: 12px; background: var(--sheet); font-size: 14px; line-height: 20px; }
.roster b { color: var(--fg); font-weight: 500; }
.roster code { background: transparent; color: var(--muted); }
@media (max-width: 480px) {
  main { padding-top: 24px; }
  h1 { font-size: 30px; line-height: 36px; }
  .card { padding: 16px; }
  .hash { font-size: 15px; }
  .hash-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 1ms !important; } }
