/* Display the published and proposed cover at the same scale. */
#edit-dialog.cover-editor { width:min(700px,calc(100vw - 24px)); }
.cover-editor .cover-comparison { gap:clamp(10px,3vw,24px); }
.cover-editor .cover-comparison figcaption {
  color:var(--ink);
  font-size:.875rem;
  font-weight:650;
}
.cover-editor .cover-editor-image {
  height:clamp(120px,26svh,225px);
  aspect-ratio:auto;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--paper);
}
.cover-editor .cover-editor-image.awaiting-cover {
  color:var(--green);
  border-style:dashed;
  font-size:.875rem;
}
.cover-editor #cover-upload-preview:not(.awaiting-cover) { border:2px solid var(--green); }
.cover-editor .cover-editor-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cover-editor #cover-change-status { margin:0; color:var(--green); font-weight:650; }
.cover-editor #restore-cover { margin:0 0 0 auto; min-height:42px; }
.cover-editor .cover-import-panel {
  margin:0;
  padding:12px 0 0;
  border:0;
  border-top:1px solid var(--line);
  min-width:0;
}
.cover-editor .cover-import-panel legend { padding:0 10px 0 0; font-size:1rem; font-weight:650; }
.cover-editor .image-link-choices label:has(input:checked) { outline:2px solid var(--green); outline-offset:-2px; }
@media (max-width:520px) {
  .cover-editor .sample-import { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cover-editor #editor-image-link { grid-column:1/-1; width:100%; font-size:1rem; }
  .cover-editor .sample-import button, .cover-editor #restore-cover { min-height:44px; }
}
