/* `hidden` wins over the display rules below (a label's `block`), so a part of
   the form that does not apply is not shown. */
[hidden] {
  display: none !important;
}
body {
  font-family: system-ui, sans-serif;
  max-width: 52rem;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.45;
  color: #1d1d1f;
}
section {
  border-top: 1px solid #ddd;
  padding: 0.5rem 0 1rem;
}
label {
  display: block;
  margin: 0.5rem 0;
}
input:not([type="file"], [type="radio"], [type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.35rem;
  font: inherit;
}
fieldset {
  border: 1px solid #ddd;
  margin: 0.75rem 0;
}
button {
  font: inherit;
  padding: 0.35rem 0.8rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
}
button.primary {
  font-weight: 600;
}
.hint,
.status {
  color: #555;
}
.status.ok {
  color: #0a6b2d;
}
.status.error {
  color: #b00020;
}
code,
.id {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  word-break: break-all;
}

/* The six steps, the current one marked. */
.progress {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.progress li {
  flex: 1;
  padding: 0.3rem 0.5rem;
  border-bottom: 3px solid #ddd;
  color: #777;
  counter-increment: step;
}
.progress li::before {
  content: counter(step) ". ";
}
.progress li.done {
  border-color: #0a6b2d;
  color: #0a6b2d;
}
.progress li.current {
  border-color: #1d1d1f;
  color: #1d1d1f;
  font-weight: 600;
}

/* A party, in the keys, review and finished steps. */
.party {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 0.75rem 0;
  padding: 0.5rem 0.75rem;
}
.party h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}
.party .check::before {
  content: "✔ ";
  color: #0a6b2d;
}
.party .refused::before {
  content: "✘ ";
}
.party .refused {
  color: #b00020;
}

/* The registration: a desk inside its entity, a user's right per party. */
fieldset.desk {
  margin-left: 1rem;
}
label.right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.2rem 0;
}

/* A radio button to the left of its label; a row of them in .choices. */
label.choice {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.choices {
  display: flex;
  gap: 1.5rem;
}
p.label {
  margin: 0.5rem 0 0.2rem;
}
/* Where a sensitive value goes, beside its field. */
.assurance {
  border-left: 3px solid #0a6b2d;
  padding-left: 0.6rem;
  color: #333;
  font-size: 0.95em;
}

/* A command to paste into a terminal, whole: its lines as they are. */
pre.command {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0.5rem;
  overflow-x: auto;
  white-space: pre;
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  max-height: 20rem;
}
