.field {
  margin-bottom: 1rem;
  min-width: 0;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}
input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #bccdd5;
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: white;
  min-height: 46px;
}
textarea {
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1.2rem;
  min-height: 1.2rem;
  height: 1.2rem;
  accent-color: var(--brand);
}
input[type="file"] {
  font-size: 0.875rem;
}
input[type="hidden"] {
  display: none;
}
.invalid input,
.invalid select,
.invalid textarea {
  border-color: var(--error);
}
.field .help {
  margin-top: 0.35rem;
}
.form-panel {
  max-width: 580px;
  margin: 2rem auto;
  background: white;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-panel h1 {
  font-size: 1.9rem;
}
.form-panel input[type="radio"] {
  margin-inline-end: 0.5rem;
}
.editor {
  max-width: 860px;
  background: white;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.editor section {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.editor-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
details summary {
  cursor: pointer;
  padding: 0.8rem 0;
  font-weight: 700;
}
.wizard-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-block: 1.5rem;
}
.wizard-nav button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  background: white;
  color: var(--muted);
}
.wizard-nav button[aria-current="step"] {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
@media (max-width: 560px) {
  .editor {
    padding: 1rem;
  }
  .editor-actions .button {
    flex: 1;
  }
  .wizard-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .form-panel {
    margin-top: 1rem;
  }
}
/* Unsaved local previews and the publication review step. */
.upload-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1rem;
}
.upload-previews figure { margin: 0; min-width: 0; }
.upload-previews img { width: 100%; max-width: 320px; height: 180px; object-fit: contain; }
.upload-previews figcaption, .review-fields dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.review-fields dt { font-weight: 700; margin-top: 1rem; }
.review-fields dd { margin-inline-start: 0; }
