/* The bench: four numbered panels, and one strip of 66 chains.
 *
 * The strip is the only drawing on this site and it is not decoration — each bar's height is a
 * digit of the message, so the shape you see is the message, and the three bars at the end are
 * the checksum that moves the other way.
 */

.steps { display: grid; gap: 22px; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; align-items: start; }
  #step-sign, #step-theft { grid-column: 1 / -1; }
}

.step .idx {
  display: inline-block; margin-right: 10px; padding: 3px 7px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.08em;
  color: var(--page); background: var(--ember-4); border-radius: 2px;
  vertical-align: 2px;
}
.step.theft { border-color: var(--ember-2); }
.step.theft .idx { background: var(--bad); }

/* ---- the field form --------------------------------------------------------------------- */
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fields label {
  display: grid; gap: 6px;
  font: 600 11px/1 var(--mono); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ember-4);
}
.fields label.wide { grid-column: 1 / -1; }
.fields input, .fields select {
  font: 400 14px/1 var(--mono); color: var(--ink);
  background: var(--panel-2); border: 2px solid var(--edge); border-radius: 2px;
  padding: 11px 12px; min-height: 44px; width: 100%;
  letter-spacing: 0; text-transform: none;
}
.fields input:focus-visible, .fields select:focus-visible {
  outline: 2px solid var(--ember-5); outline-offset: 1px;
}

/* ---- the 66 chains ---------------------------------------------------------------------- */
.chainwrap { margin-top: 20px; }
.chainhead {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 9px;
  font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-dim);
}
.chainhead b { color: var(--ink); }
.chainhead .csum b { color: var(--ember-5); }
.chainhead .legendline { margin-left: auto; text-transform: none; letter-spacing: 0.02em; }

.chains {
  display: grid; grid-template-columns: repeat(66, 1fr); gap: 2px;
  height: 128px; align-items: end;
  padding: 10px 10px 0; background: var(--panel-2);
  border: 2px solid var(--edge); border-radius: 2px;
}
.chains i {
  display: block; width: 100%; min-height: 3px; border-radius: 1px 1px 0 0;
  background: var(--ember-2);
  transition: height 0.18s ease, background 0.18s ease;
}
.chains i.c { background: var(--ember-5); }           /* a checksum chain */
.chains i.reach { background: var(--ember-4); }        /* the forger could walk this one */
/* 🔴 Hollow, not another colour. The brand is one hue family — the disc's 15 deg and nothing
 * else — so a second tint next to the accent reads as the same bar at a slightly different
 * brightness, which is no signal at all. An unreachable chain is drawn as a bar that was never
 * filled, which is what it is. */
.chains i.stuck {
  background: transparent;
  border: 2px solid var(--bad);
  border-bottom: 0;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) { .chains i { transition: none; } }

.chainfoot {
  margin: 9px 0 0; font: 400 13px/1.5 var(--mono); color: var(--ink-dim);
}
.chainfoot b { color: var(--ink); }

/* ---- verdicts ---------------------------------------------------------------------------- */
.verdictbar {
  margin: 0 0 16px; padding: 13px 15px; border-radius: 2px;
  font: 600 14px/1.4 var(--mono); letter-spacing: 0.02em;
  border: 2px solid var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent);
}
.verdictbar.good { border-color: var(--ember-5); color: var(--ember-5); background: color-mix(in srgb, var(--ember-5) 10%, transparent); }

.stuck { margin-top: 14px; }
.stuck h5 {
  margin: 0 0 8px; font: 600 11px/1 var(--mono); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--bad);
}
.stuck ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.stuck li {
  font: 400 12.5px/1 var(--mono); padding: 7px 9px;
  border: 1px solid var(--bad); border-radius: 2px; color: var(--ink-dim);
}
.stuck li b { color: var(--bad); }

.diffout {
  font: 400 13px/1.6 var(--mono); color: var(--ink-dim);
  background: var(--panel-2); border: 2px solid var(--edge); border-radius: 2px; padding: 12px 13px;
}
.diffout b { color: var(--ember-5); }
.diffout .no { color: var(--bad); }

.theft-out { margin-top: 18px; }
