.cv-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) auto;
  gap: 18px;
}

.cv-builder-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 9px;
}

.cv-builder-progress span {
  color: #52677e;
  font-size: 12px;
  font-weight: 700;
}

.cv-builder-progress i {
  display: block;
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: #e3e9f0;
  overflow: hidden;
}

.cv-builder-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #135fa7, #0b9870);
}

.cv-builder-progress b {
  color: #0b7659;
  font-size: 12px;
}

.cv-step-intro {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #d8e4f2;
  border-radius: 14px;
  background: linear-gradient(145deg, #f4f8ff, #fff);
}

.cv-step-intro > span {
  color: #135fa7;
  font-size: 12px;
  font-weight: 800;
}

.cv-step-intro h2 {
  margin: 4px 0 7px;
}

.cv-step-intro p,
.cv-field-tip {
  margin: 0;
  color: #5a6e84;
  font-size: 13px;
  line-height: 1.75;
}

.cv-field-tip {
  margin-top: -6px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eef7f3;
  color: #306554;
}

.cv-template {
  position: relative;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 104px;
  padding: 12px !important;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}

.cv-template:hover {
  transform: translateY(-2px);
  border-color: #7fa9d0;
  box-shadow: 0 9px 22px rgba(16, 42, 67, 0.09);
}

.cv-template:has(input:checked) {
  border-color: #135fa7;
  box-shadow: 0 0 0 2px rgba(19, 95, 167, 0.13);
}

.cv-template:has(input:disabled) {
  opacity: 0.64;
}

.cv-template > input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.cv-template-mini {
  display: grid;
  align-content: start;
  gap: 5px;
  width: 54px;
  height: 72px;
  padding: 8px 6px;
  border: 1px solid #cdd8e4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 11px rgba(22, 43, 84, 0.1);
}

.cv-template-mini::before {
  content: "";
  width: 62%;
  height: 7px;
  border-radius: 2px;
  background: #135fa7;
}

.cv-template-mini i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #cbd6e1;
}

.cv-template-mini i:nth-child(2),
.cv-template-mini i:nth-child(4) {
  width: 76%;
}

.cv-template-mini[data-template*="gold"]::before {
  background: #9c7612;
}

.cv-template-mini[data-template*="dark"] {
  border-top: 14px solid #17202a;
}

.cv-template-mini[data-template*="health"]::before {
  background: #087f5b;
}

.cv-template-mini[data-template*="education"]::before {
  background: #6741d9;
}

.cv-template-mini[data-template*="finance"]::before {
  background: #0b4f3c;
}

.cv-template-copy {
  display: grid;
  gap: 4px;
}

.cv-template-copy b {
  color: #17324d;
  font-size: 14px;
}

.cv-template-copy small {
  margin: 0 !important;
  color: #52677e;
  font-size: 11px;
  line-height: 1.45;
}

.cv-template-copy em {
  color: #0b7659;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.cv-readiness-target {
  display: grid;
  gap: 3px;
  margin-bottom: 9px;
  padding: 10px 12px;
  border: 1px solid #ead5a7;
  border-radius: 10px;
  background: #fff9eb;
}

.cv-readiness-target.is-ready {
  border-color: #b9e0d1;
  background: #edf9f4;
}

.cv-readiness-target b {
  color: #70470e;
  font-size: 12px;
}

.cv-readiness-target.is-ready b {
  color: #087255;
}

.cv-readiness-target span {
  color: #687688;
  font-size: 10px;
  line-height: 1.55;
}

.cv-editor-guided {
  display: grid;
  gap: 7px;
  margin: 9px 0;
}

.cv-editor-guided h4 {
  margin: 0;
}

.cv-editor-guided article {
  padding: 10px;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  background: #fff;
}

.cv-editor-guided article > b,
.cv-editor-guided article > small {
  display: block;
}

.cv-editor-guided article > small {
  color: #6d7b8c;
  font-size: 10px;
}

.cv-editor-guided ul {
  margin: 7px 0 0;
  padding-inline-start: 18px;
  font-size: 11px;
  line-height: 1.6;
}

.cv-editor footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cv-sample-wrap {
  display: grid;
  gap: 7px;
}

.cv-sample-wrap .cv-avatar {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 2px solid color-mix(in srgb, var(--sample-accent) 35%, white);
  border-radius: 50%;
  background: #e8edf3;
  object-fit: cover;
  object-position: center 24%;
}

.cv-photo-note,
.cv-photo-credit {
  color: #68798c;
  font-size: 10px;
  line-height: 1.5;
}

.cv-photo-credit {
  width: fit-content;
  color: #45688e;
  text-decoration: none;
}

.cv-photo-credit:hover {
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .cv-top {
    grid-template-columns: 1fr minmax(180px, 260px);
  }

  .cv-top > div:last-child {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .cv-top {
    grid-template-columns: 1fr;
  }

  .cv-top > div:last-child {
    grid-column: auto;
  }
}
