.citation-form input[type="text"],
.citation-form select {
  width: 100%;
  max-width: 32rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #b6c3cf;
  border-radius: 8px;
  font: inherit;
  background: #ffffff;
}

.row {
  margin-top: 1rem;
}

.access-mode-group.is-inactive {
  opacity: 0.55;
}

.access-mode-group.is-inactive h4 {
  color: #667784;
}

.citation-form select:disabled {
  color: #667784;
  background: #eef1f4;
  border-color: #c8d1d8;
  cursor: not-allowed;
}

.citation-page button {
  border: 0;
  border-radius: 8px;
  background: #1b5f7a;
  color: #ffffff;
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
}

.citation-page button:hover {
  background: #164e64;
}

.citation-results {
  display: grid;
  gap: 1rem;
}

.citation-box {
  border: 1px solid #c9d4dc;
  border-radius: 10px;
  background: #eef7ff;
  padding: 1rem;
  min-width: 0;
}

.citation-text {
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.citation-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.certification-preview-mobile {
  display: none;
}

.certification-preview-desktop {
  display: block;
}

.preview-empty {
  color: #5e6a73;
}

.flash {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid #b94a48;
  border-radius: 8px;
  background: #fff3f2;
  color: #6d1f1c;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.citation-note {
  color: #39464f;
  font-size: 0.95rem;
}

.instructions ul {
  padding-left: 1.25rem;
}

.instructions li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 600px) {
  .citation-form input[type="text"],
  .citation-form select {
    max-width: 100%;
  }

  .citation-page button {
    width: 100%;
  }

  .citation-toolbar {
    flex-direction: column;
  }

  .certification-preview-mobile {
    display: block;
  }

  .certification-preview-desktop {
    display: none;
  }
}
