.mobile-review {
  display: none;
}
@media (max-width: 740px) {
  body[data-view="preview"] .mobile-review {
    display: block;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
  }
  .mobile-review .order-row button {
    min-height: 44px;
    min-width: 44px;
  }
  .mobile-review .review-downloads {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .mobile-review .review-downloads button {
    min-height: 44px;
  }
  .mobile-review h2 {
    font-size: 21px;
  }
  .mobile-review h3 {
    margin-top: 24px;
  }
}
.paper:is(.template-akademi, .template-odak, .template-dizin) .new-header {
  border: 0;
  padding: 0 0 16px;
  align-items: start;
}
.paper:is(.template-akademi, .template-odak, .template-dizin) .new-entry {
  margin-bottom: 17px;
  break-inside: avoid;
}
.paper:is(.template-akademi, .template-odak, .template-dizin) .new-entry p {
  margin-top: 6px;
  white-space: pre-line;
}
.paper:is(.template-akademi, .template-odak, .template-dizin) .new-dates {
  font-size: 10px;
  color: #566273;
  margin: 3px 0 6px;
}
.paper:is(.template-akademi, .template-odak, .template-dizin) .new-contacts {
  margin-bottom: 24px;
  font-size: 11px;
}
.paper:is(.template-akademi, .template-odak, .template-dizin) .new-entry-link {
  color: inherit;
  text-decoration: underline;
}
.paper.template-akademi .new-header > div {
  width: 100%;
  text-align: center;
}
.paper.template-akademi .cv-name {
  font-weight: 400;
  font-size: 30px !important;
  letter-spacing: 1px;
}
.paper.template-akademi .new-contacts {
  text-align: center;
  border-top: 3px double var(--accent);
  padding-top: 12px;
}
.paper.template-akademi .new-section h3 {
  text-align: center;
  letter-spacing: 1.3px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 7px;
  font-size: 12px;
}
.paper.template-odak .cv-name {
  font-size: 36px !important;
  letter-spacing: -1.5px;
}
.paper.template-odak .new-contacts {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.paper.template-odak .new-section h3 {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  padding: 0;
  color: var(--accent);
}
.paper.template-odak .new-section-body {
  margin-left: 14px;
}
.paper.template-odak .cv-place {
  font-weight: 600;
}
.paper.template-dizin .new-header {
  border-bottom: 1px solid var(--accent);
  margin-bottom: 16px;
}
.paper.template-dizin .cv-name {
  text-transform: uppercase;
  font-size: 26px !important;
  letter-spacing: 2px;
}
.paper.template-dizin .new-contacts .contact-row {
  display: inline-block;
  margin-right: 16px;
}
.paper.template-dizin .new-section h3 {
  font-size: 11px;
  letter-spacing: 1.5px;
  border: 0;
  padding: 0;
}
.paper.template-dizin .new-section-number {
  display: inline-block;
  font-size: 15px;
  margin-right: 9px;
  color: var(--accent);
}
.paper.template-dizin .new-section {
  border-top: 1px solid #dce1e7;
  padding-top: 15px;
  margin-top: 20px;
}

#paper .cv-photo {
  width: var(--photo-size, 105px) !important;
  height: var(--photo-size, 105px) !important;
  max-width: 100%;
  object-fit: cover;
}
#paper > .cv-header:has(> .cv-photo) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--photo-size, 105px);
  gap: 12px;
}
#paper > .cv-header > .cv-photo {
  grid-column: 2;
  justify-self: end;
}
.photo-crop-dialog {
  width: min(94vw, 430px);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  padding: 22px;
  color: #102d50;
}
.photo-crop-dialog::backdrop {
  background: #102d5080;
}
.photo-crop-dialog h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.photo-crop-dialog p {
  font-size: 13px;
  line-height: 1.5;
}
.photo-crop-dialog canvas {
  display: block;
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 1;
  margin: 16px auto;
  touch-action: none;
  cursor: grab;
  border: 1px solid #dce5ef;
}
.photo-crop-dialog label {
  display: block;
  font-size: 13px;
  margin: 12px 0;
}
.photo-crop-dialog input {
  display: block;
  width: 100%;
  min-height: 30px;
}
.crop-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.crop-actions button {
  min-height: 44px;
}
@media (max-width: 740px) {
  #paper > .cv-header:has(> .cv-photo) {
    grid-template-columns: minmax(0, 1fr) min(var(--photo-size, 105px), 32%);
  }
  #paper > .cv-header > .cv-photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
  }
}
