/* Journal profiles — Journals tab + Metadata picker */

.journals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.journals-empty-state {
  color: var(--muted, #666);
  font-style: italic;
  padding: 16px 0;
  margin: 0;
}

.journal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line, #ddd);
  background: var(--paper, #fff);
  border-radius: 2px;
  transition: border-color 0.15s ease;
}

.journal-row:hover {
  border-color: var(--accent, #a8341f);
}

.journal-row-info {
  flex: 1;
  min-width: 0;
}

.journal-row-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #1a1611;
}

.journal-row-short {
  color: var(--muted, #666);
  font-weight: 400;
  font-size: 0.9em;
  margin-left: 4px;
}

.journal-row-meta {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted, #666);
}

.journal-row-edit {
  flex-shrink: 0;
}

#journals-editor {
  margin-top: 16px;
}

#journals-editor .form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 8px;
}

#jp-journal-logo-preview,
#jp-publisher-logo-preview {
  border: 1px solid var(--line, #ddd);
  padding: 4px;
  background: #fff;
  border-radius: 2px;
  max-width: 240px;
}

#journal-profile-select {
  flex: 1;
  min-width: 0;
}

#journal-profile-save-name {
  flex: 1;
  min-width: 0;
}

label[for="jp-import"] {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────
   Journal profile editor — sectioned fields and DOI block
   ───────────────────────────────────────────────────────── */
.jp-section-title {
  font-size: 14px;
  font-weight: 600;
  margin: 22px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink, #1a1611);
  letter-spacing: 0.02em;
}
.jp-section-title:first-of-type { margin-top: 4px; }

.jp-section-hint {
  font-size: 12px;
  color: var(--muted, #666);
  margin: 0 0 10px;
  line-height: 1.55;
}
.jp-section-hint code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

.jp-doi-preview {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fbfaf7;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink, #1a1611);
}
.jp-doi-preview code {
  background: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.jp-doi-seq {
  color: var(--muted, #666);
  font-size: 11px;
}

.jp-doi-history {
  font-size: 11px;
  color: var(--muted, #666);
  margin-left: auto;
  align-self: center;
}

/* Article tab — hint under the DOI input */
.art-doi-hint {
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted, #666);
  line-height: 1.5;
}
.art-doi-hint--warn {
  color: #b85a14;
}
.art-doi-hint code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}
