.resume-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.resume-actions .btn:hover {
  transform: none;
}

.resume-document {
  min-height: 62vh;
  font-weight: 400;
}

.resume-document strong,
.resume-document b {
  font-weight: 600;
}

.resume-document span.zj-cv-name,
.resume-document span.zj-cv-name-bold {
  font-size: 3em;
  line-height: 1.05;
}

.resume-document span.zj-cv-name {
  font-weight: 600;
}

.resume-document span.zj-cv-name-bold {
  font-weight: 800;
}

.resume-document span.zj-cv-title {
  font-size: 3em;
  font-weight: 700;
}

.resume-document p.zj-cv-section-title {
  font-weight: 800;
}

.resume-document p.cv-pro-title {
  font-style: italic;
  font-weight: 700;
}

.resume-document [data-placeholder-link="true"] {
  color: var(--zj-blue);
}

.resume-annotated-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 1rem;
}

.resume-annotated-line__content {
  min-width: 0;
}

.resume-annotated-line__annotation {
  justify-self: end;
  font-style: italic;
  text-align: right;
  white-space: nowrap;
}

.resume-annotation-target {
  max-height: 7rem;
  overflow: auto;
  border-left: 3px solid var(--zj-blue);
  border-radius: 0.2rem;
  padding: 0.6rem 0.75rem;
  background: #f6f9ff;
  font-size: 0.88rem;
}

.resume-history-list {
  display: grid;
  max-height: min(52vh, 28rem);
  gap: 0.6rem;
  margin-top: 1rem;
  overflow-y: auto;
}

.resume-history-empty {
  margin: 0;
  border: 1px dashed #adb5bd;
  border-radius: 0.45rem;
  padding: 1rem;
  text-align: center;
}

.resume-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
}

.resume-history-item__time {
  display: block;
  color: #212529;
  font-size: 0.9rem;
  font-weight: 700;
}

.resume-history-item__preview {
  display: block;
  margin-top: 0.15rem;
  overflow: hidden;
  color: #6c757d;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-contact-dialog {
  width: min(96vw, 900px);
}

.resume-contact-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.resume-contact-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(10rem, 1fr) minmax(14rem, 1.4fr) auto;
  align-items: end;
  gap: 0.6rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.65rem;
}

.resume-contact-row__field {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  color: #495057;
  font-size: 0.75rem;
  font-weight: 600;
}

.resume-contact-row__remove {
  margin-bottom: 0.05rem;
}

.resume-contact-list:empty::before {
  content: "当前没有联系方式；可点击下方按钮添加。";
  border: 1px dashed #adb5bd;
  border-radius: 0.45rem;
  padding: 0.9rem;
  color: #6c757d;
  text-align: center;
}

#resume-cn li,
#resume-cn .col-xl-10 .mt-1,
#resume-cn .col-xl-10 p.mb-2 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  font-weight: 400;
}

.resume-document.is-editing {
  border-radius: 0.5rem;
}

.resume-document.is-editing:not(.show-edit-guides) [contenteditable="true"] {
  outline: none;
}

@media (max-width: 1199px) {
  .resume-document .zj-cv-section-title {
    margin-top: 0.75rem !important;
    text-align: left;
  }
}

@media (max-width: 575px) {
  .resume-document {
    font-size: 0.92rem;
  }

  .resume-document span.zj-cv-name,
  .resume-document span.zj-cv-name-bold {
    font-size: 2.25em;
  }

  .resume-actions .btn {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
  }

  .resume-annotated-line {
    grid-template-columns: 1fr;
    row-gap: 0.1rem;
  }

  .resume-annotated-line__annotation {
    justify-self: start;
    text-align: left;
  }

  .resume-contact-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .resume-contact-row__remove {
    justify-self: end;
  }
}

@media print {
  .resume-actions {
    display: none !important;
  }

  .resume-document {
    font-size: 10pt;
  }
}
