.phone-field {
  grid-column: 1/-1;
  width: 100%;
  min-width: 0;
}
.phone-field .phone-row {
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.4fr);
}
.photo-controls {
  gap: 14px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.photo-controls input {
  max-width: 100%;
  min-width: 0;
}
#editPhotoCrop {
  display: block;
  margin: 12px 0 20px;
}
#editPhotoCrop + .field {
  margin-top: 12px;
  gap: 12px;
}
.record-body .entry-head {
  justify-content: flex-end;
}
.record-body .entry-head > strong,
.record-body .entry-head > span {
  display: none;
}
.thesis-fields {
  padding: 8px 10px;
  margin: 10px 0;
  border-radius: 8px;
  background: transparent;
}
.thesis-fields > summary {
  padding: 2px !important;
  font-size: 12px !important;
  min-height: 0;
  line-height: 1.5;
}
.thesis-fields[open] > summary {
  margin-bottom: 12px;
}
.cv-rich {
  margin: 5px 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
  min-width: 0;
}
.cv-rich .cv-bullet {
  display: grid !important;
  grid-template-columns: 1.1em minmax(0, 1fr);
  gap: 0.25em;
  white-space: normal !important;
}
.cv-rich .cv-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.cv-rich .cv-bullet > span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.cv-rich .cv-blank {
  height: 0.6em;
}
.cv-item,
.item-content,
.new-entry,
.new-section-body {
  min-width: 0;
  overflow-wrap: anywhere;
}
.bullet-control {
  margin: 8px 0 12px;
}
.multi-options {
  gap: 8px;
}
.multi-options .check {
  margin: 0 !important;
  padding: 6px !important;
}
@media (max-width: 740px) {
  .phone-field .phone-row {
    grid-template-columns: 1fr;
  }
  .phone-field input,
  .phone-field select {
    font-size: 16px;
  }
  .photo-crop-dialog {
    max-width: calc(100vw - 24px);
  }
}

.photo-crop-dialog[data-shape="round"] canvas {
  border-radius: 50%;
  outline: 1px solid #dae2ec;
}
.record-entry .thesis-fields > summary::after,
.record-entry .writing-help > summary::after {
  content: "+" !important;
}
.record-entry .thesis-fields[open] > summary::after,
.record-entry .writing-help[open] > summary::after {
  content: "−" !important;
}

@media (min-width: 741px) {
  .editor {
    align-items: start;
  }
  .preview-panel {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    scrollbar-width: thin;
    overscroll-behavior: auto;
  }
  .preview-panel .paper-frame {
    overflow: visible;
    max-height: none;
  }
}

#paper.panel[data-photo-position="left"] .cv-sidebar > .cv-photo {
  display: block;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 1;
  margin: 0 auto 18px;
}
#paper.panel[data-photo-position="left"] .cv-main .cv-header {
  display: block !important;
}
#paper.panel[data-photo-position="left"] .cv-main .cv-header > div {
  text-align: left;
}

#paper {
  font-size: var(--text-size, 12px);
}
#paper .cv-section h3,
#paper .cv-contacts h3 {
  font-weight: 750 !important;
  letter-spacing: 0.7px !important;
  line-height: 1.35 !important;
  opacity: 1;
}
#paper :is(.dates, .new-dates) {
  font-size: max(11px, calc(var(--text-size, 12px) - 1px)) !important;
  color: #334155 !important;
  line-height: 1.5;
  opacity: 1;
}
#paper :is(.item-content, .new-entry) > strong {
  font-size: calc(var(--text-size, 12px) + 1px) !important;
  font-weight: 700 !important;
}
