﻿* {
  box-sizing: border-box;
}

:root {
  --page: #f2f4f8;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #344054;
  --muted: #667085;
  --soft: #f7f9fc;
  --line: #e4e7ec;
  --blue: #2563eb;
  --blue-dark: #174ec9;
  --blue-soft: #eff6ff;
  --navy: #12365a;
  --green: #20735f;
  --rose: #a94f65;
  --amber: #c7843c;
  --shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
  --preview-scale: 0.48;
}

html {
  width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family:
    Inter,
    "Plus Jakarta Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.cv-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.cv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 231, 236, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
}

.logo span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #69a7ff);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.step-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #667085;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.step-tab:not(:last-child)::after {
  content: "";
  width: 42px;
  height: 1px;
  margin-left: 4px;
  background: #e3e8f0;
}

.step-tab span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #667085;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 850;
  transition: 0.2s ease;
}

.step-tab strong {
  font-weight: 750;
}

.step-tab.active {
  color: var(--blue);
}

.step-tab.active span {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.step-tab.complete span {
  color: #ffffff;
  background: #1d4ed8;
}

.step-tab.complete:not(:last-child)::after {
  background: #bfd2ff;
}

.print-btn,
.primary-btn,
.download-wide,
.preview-card button {
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1858df);
  box-shadow: 0 15px 28px rgba(37, 99, 235, 0.22);
  font-weight: 850;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.print-btn {
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 13px;
}

.print-btn:hover,
.primary-btn:hover,
.download-wide:hover,
.preview-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.cv-page {
  padding: 34px 0 72px;
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 66px, transparent 66px),
    var(--page);
}

.page-hero {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  margin: 14px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.template-area {
  margin-bottom: 26px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.section-heading > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.template-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 12px;
}

.template-option {
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.template-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.template-option.active {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.13);
}

.template-option strong {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 850;
}

.template-option small {
  display: block;
  min-height: 32px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.template-thumb {
  position: relative;
  display: block;
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.template-thumb span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.thumb-name {
  width: 70px;
  height: 8px;
  background: #101828;
}

.thumb-role {
  width: 48px;
  height: 5px;
  background: #98a2b3;
}

.thumb-line {
  height: 4px;
  background: #cfd5df;
}

.thumb-rule {
  height: 1px;
  background: #101828;
}

.thumb-pill {
  height: 13px;
  background: #eaf1ff;
}

.modern-mini .thumb-sidebar,
.creative-mini .thumb-sidebar {
  inset: 0 auto 0 0;
  width: 34%;
  border-radius: 0;
  background: #12365a;
}

.creative-mini {
  background: #fffaf6;
}

.creative-mini .thumb-sidebar {
  background: #a94f65;
}

.thumb-photo {
  left: 14px;
  top: 15px;
  width: 30px;
  height: 30px;
  background: #dbeafe;
}

.modern-mini .thumb-name,
.creative-mini .thumb-name {
  left: 45%;
  top: 22px;
  width: 76px;
}
.modern-mini .thumb-role,
.creative-mini .thumb-role {
  left: 45%;
  top: 38px;
}
.modern-mini .l1,
.creative-mini .l1 {
  left: 45%;
  top: 66px;
  width: 88px;
}
.modern-mini .l2,
.creative-mini .l2 {
  left: 45%;
  top: 84px;
  width: 75px;
}
.modern-mini .l3 {
  left: 45%;
  top: 102px;
  width: 98px;
}
.modern-mini .p1,
.creative-mini .p1 {
  left: 45%;
  top: 124px;
  width: 44px;
}
.modern-mini .p2,
.creative-mini .p2 {
  left: calc(45% + 52px);
  top: 124px;
  width: 35px;
}

.classic-mini .thumb-name {
  left: 50%;
  top: 23px;
  transform: translateX(-50%);
  width: 84px;
}
.classic-mini .thumb-role {
  left: 50%;
  top: 39px;
  transform: translateX(-50%);
}
.classic-mini .thumb-rule {
  left: 23px;
  top: 58px;
  width: calc(100% - 46px);
}
.classic-mini .l1 {
  left: 23px;
  top: 78px;
  width: 105px;
}
.classic-mini .l2 {
  left: 23px;
  top: 95px;
  width: 92px;
}
.classic-mini .l3 {
  left: 23px;
  top: 116px;
  width: 116px;
}
.classic-mini .l4 {
  left: 23px;
  top: 133px;
  width: 74px;
}

.executive-mini .thumb-top {
  inset: 0 0 auto 0;
  height: 45px;
  border-radius: 0;
  background: #101828;
}

.executive-mini .thumb-name {
  left: 17px;
  top: 16px;
  width: 76px;
  background: #ffffff;
}
.executive-mini .thumb-role {
  left: 17px;
  top: 31px;
  background: #d0d5dd;
}
.executive-mini .thumb-sidebox {
  right: 16px;
  top: 64px;
  width: 38px;
  height: 64px;
  border-radius: 7px;
  background: #eef2f7;
}
.executive-mini .l1 {
  left: 17px;
  top: 68px;
  width: 78px;
}
.executive-mini .l2 {
  left: 17px;
  top: 89px;
  width: 88px;
}
.executive-mini .l3 {
  left: 17px;
  top: 110px;
  width: 68px;
}

.minimal-mini .thumb-name {
  left: 22px;
  top: 24px;
  width: 86px;
}
.minimal-mini .thumb-role {
  left: 22px;
  top: 41px;
}
.minimal-mini .l1 {
  left: 22px;
  top: 72px;
  width: 112px;
}
.minimal-mini .l2 {
  left: 22px;
  top: 91px;
  width: 94px;
}
.minimal-mini .l3 {
  left: 22px;
  top: 116px;
  width: 120px;
}
.minimal-mini .l4 {
  left: 22px;
  top: 135px;
  width: 75px;
}

.corporate-mini .thumb-band {
  inset: 0 0 auto 0;
  height: 15px;
  border-radius: 0;
  background: #20735f;
}

.corporate-mini .thumb-name {
  left: 18px;
  top: 32px;
  width: 82px;
}
.corporate-mini .thumb-role {
  left: 18px;
  top: 49px;
  background: #20735f;
}
.corporate-mini .thumb-sidebox {
  right: 15px;
  top: 63px;
  width: 34px;
  height: 64px;
  border-radius: 7px;
  background: #e3f3ed;
}
.corporate-mini .l1 {
  left: 18px;
  top: 78px;
  width: 82px;
}
.corporate-mini .l2 {
  left: 18px;
  top: 99px;
  width: 96px;
}
.corporate-mini .l3 {
  left: 18px;
  top: 120px;
  width: 70px;
}

.ats-mini .thumb-name {
  left: 20px;
  top: 20px;
  width: 88px;
}
.ats-mini .thumb-role {
  left: 20px;
  top: 37px;
}
.ats-mini .thumb-rule {
  left: 20px;
  top: 58px;
  width: calc(100% - 40px);
  background: #d0d5dd;
}
.ats-mini .l1 {
  left: 20px;
  top: 78px;
  width: 110px;
}
.ats-mini .l2 {
  left: 20px;
  top: 96px;
  width: 118px;
}
.ats-mini .l3 {
  left: 20px;
  top: 118px;
  width: 96px;
}
.ats-mini .l4 {
  left: 20px;
  top: 136px;
  width: 80px;
}

.builder-shell {
  padding: 34px;
  border-radius: 28px;
  background: #f4f6fa;
}

.builder-status {
  display: none;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 38px;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cv-form {
  min-width: 0;
}

.preview-shell {
  position: sticky;
  top: 88px;
  min-width: 0;
  padding-left: 34px;
  border-left: 1px solid #e3e8f0;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeSlide 0.24s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.form-heading {
  margin-bottom: 34px;
}

.form-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.form-heading p {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

.personal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 32px;
  align-items: start;
}

.field-stack {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-form label,
.photo-field > span {
  display: block;
  color: #101828;
  font-size: 14px;
  font-weight: 750;
}

.cv-form input,
.cv-form textarea,
.cv-form select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cad5ea;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  padding: 14px 15px;
  font-size: 15px;
  line-height: 1.45;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.cv-form textarea {
  min-height: 150px;
  resize: vertical;
}

.cv-form input::placeholder,
.cv-form textarea::placeholder {
  color: #8b96b1;
}

.cv-form input:focus,
.cv-form textarea:focus,
.cv-form select:focus {
  border-color: #7898e8;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.photo-upload {
  position: relative;
  min-height: 144px;
  margin-top: 7px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  border: 1.5px dashed #8aa1d8;
  border-radius: 9px;
  color: #46516b;
  background: #ffffff;
  padding: 18px 12px;
  overflow: hidden;
}

.photo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-preview {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  color: #8b96b1;
  background: #f7f8fc;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.user-icon::before,
.user-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid currentColor;
}

.user-icon::before {
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.user-icon::after {
  bottom: 4px;
  width: 20px;
  height: 11px;
  border-radius: 999px 999px 0 0;
  border-bottom: 0;
}

.photo-upload strong {
  color: #344054;
  font-size: 13px;
}

.photo-upload small,
.photo-field p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.photo-field p {
  margin-top: 10px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
}

.form-actions button,
.download-wide {
  min-height: 56px;
  padding: 0 24px;
  font-size: 15px;
}

.ghost-btn {
  border: 0;
  color: #475467;
  background: transparent;
  font-weight: 850;
}

.ghost-btn::before {
  content: "<";
  margin-right: 10px;
  color: #667085;
}

.ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary-btn {
  min-width: 170px;
}

.review-panel {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.review-panel div {
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.review-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.review-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.download-wide {
  width: 100%;
}

.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.preview-top h2 {
  margin: 0;
  font-size: 22px;
}

.preview-top > span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.preview-card {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.preview-card-lines {
  display: grid;
  gap: 6px;
}

.preview-card-lines span {
  width: 94px;
  height: 5px;
  border-radius: 999px;
  background: #c9d2df;
}

.preview-card-lines span:nth-child(2) {
  width: 72px;
}

.preview-card-lines span:nth-child(3) {
  width: 110px;
}

.preview-card button {
  min-height: 38px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.paper-wrap {
  width: 100%;
  max-height: calc(100vh - 180px);
  overflow: auto;
  border-radius: 16px;
  background: #f6f8fc;
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: #c5ceda transparent;
}

.paper-stage {
  width: calc(794px * var(--preview-scale));
  height: calc(1123px * var(--preview-scale));
  margin: 0 auto;
}

.cv-paper {
  width: 794px;
  min-height: 1123px;
  overflow: hidden;
  transform: scale(var(--preview-scale));
  transform-origin: top left;
  background: #ffffff;
  color: #1d2939;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.cv-paper h1,
.cv-paper h2,
.cv-paper h3,
.cv-paper h4,
.cv-paper p {
  margin: 0;
}

.cv-paper p,
.cv-paper li,
.cv-paper span {
  font-size: 14px;
  line-height: 1.62;
}

.cv-section {
  margin-bottom: 28px;
}

.cv-section h3 {
  margin-bottom: 12px;
}

.plain-lines {
  display: grid;
  gap: 7px;
}

.line-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.line-list li {
  position: relative;
  padding-left: 16px;
  color: #475467;
}

.line-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.42;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #1f4fb8;
  background: #edf4ff;
  font-size: 12px;
  font-weight: 800;
}

.template-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #667085;
}

.cv-photo {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  overflow: hidden;
  color: #12365a;
  background: #dcecff;
  font-size: 34px;
  font-weight: 900;
}

.cv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-template {
  display: grid;
  grid-template-columns: 255px 1fr;
}

.cv-sidebar {
  padding: 42px 28px;
  color: #ffffff;
  background: linear-gradient(180deg, #12365a, #0f2b48);
}

.cv-sidebar h2,
.creative-template aside h2 {
  font-size: 30px;
  line-height: 1.08;
}

.cv-sidebar > p,
.creative-template aside > p {
  margin-top: 8px;
  color: #b9d7f5;
}

.cv-box {
  margin-top: 30px;
}

.cv-box h4 {
  margin-bottom: 12px;
  color: #9cc9f1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cv-box span,
.cv-box p,
.cv-box li {
  color: #eef7ff;
}

.cv-box .skill-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.cv-main {
  padding: 48px;
}

.cv-main h3 {
  color: #12365a;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 2px solid #dbeafe;
  padding-bottom: 9px;
}

.classic-template {
  padding: 58px 64px;
  font-family: Georgia, "Times New Roman", serif;
}

.classic-head {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 34px;
  border-bottom: 2px solid #101828;
}

.classic-head .cv-photo {
  margin: 0 auto 16px;
}

.classic-head h1 {
  font-size: 46px;
  line-height: 1.08;
}

.classic-head p {
  margin-top: 8px;
  color: #101828;
  font-size: 18px;
  font-style: italic;
}

.classic-head .template-contact {
  justify-content: center;
  margin-top: 10px;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
}

.classic-template h3 {
  padding-bottom: 8px;
  color: #101828;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 1px solid #d0d5dd;
}

.executive-template {
  display: flex;
  flex-direction: column;
}

.exec-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 48px;
  color: #ffffff;
  background: #111827;
}

.exec-title {
  display: flex;
  gap: 20px;
  align-items: center;
}

.exec-title .cv-photo {
  margin: 0;
  color: #111827;
  background: #e5e7eb;
}

.exec-top h1 {
  font-size: 44px;
  line-height: 1.08;
}

.exec-top p {
  margin-top: 8px;
  color: #d0d5dd;
  font-size: 18px;
}

.exec-contact {
  display: grid;
  gap: 7px;
  align-content: start;
  color: #d0d5dd;
  text-align: right;
}

.exec-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
}

.exec-grid aside {
  padding: 38px 28px;
  background: #f2f4f7;
}

.exec-grid main {
  padding: 42px;
}

.exec-grid h3 {
  color: #101828;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.minimal-template {
  padding: 62px 70px;
}

.minimal-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 42px;
}

.minimal-head h1 {
  font-size: 52px;
  line-height: 1.05;
}

.minimal-head p {
  margin-top: 8px;
  color: #101828;
  font-size: 20px;
}

.minimal-head .template-contact {
  margin-top: 12px;
}

.minimal-head .cv-photo {
  margin: 0;
  color: #101828;
  background: #f2f4f7;
}

.minimal-template h3 {
  color: #101828;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.creative-template {
  display: grid;
  grid-template-columns: 270px 1fr;
  background: #fffaf5;
}

.creative-template aside {
  padding: 42px 28px;
  color: #ffffff;
  background: linear-gradient(180deg, #a94f65, #783344);
}

.creative-template .cv-photo {
  color: #783344;
  background: #ffe7d1;
}

.creative-template aside p,
.creative-template aside li,
.creative-template aside span {
  color: #fff6ef;
}

.creative-template aside h4 {
  color: #ffe2c7;
}

.creative-template main {
  padding: 48px;
}

.creative-template main h3 {
  color: #783344;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.creative-template .skill-tags span {
  color: #783344;
  background: #ffe7d1;
}

.corporate-template {
  padding: 0;
}

.corporate-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 54px 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #164c41, #20735f);
}

.corporate-head .cv-photo {
  margin: 0;
  color: #164c41;
  background: #dff5ed;
}

.corporate-head h1 {
  font-size: 46px;
  line-height: 1.08;
}

.corporate-head p {
  margin-top: 9px;
  color: #dff5ed;
  font-size: 18px;
}

.corporate-head .template-contact {
  margin-top: 14px;
  color: #effaf6;
}

.corporate-body {
  display: grid;
  grid-template-columns: 1fr 225px;
  gap: 34px;
  padding: 42px 54px;
}

.corporate-template h3 {
  color: #164c41;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.corporate-aside {
  padding: 24px;
  border-radius: 18px;
  background: #eef8f4;
}

.corporate-template .skill-tags span {
  color: #164c41;
  background: #dff5ed;
}

.ats-template {
  padding: 54px 62px;
  font-family: Arial, sans-serif;
}

.ats-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid #d0d5dd;
}

.ats-head .cv-photo {
  margin: 0;
  color: #344054;
  background: #f2f4f7;
}

.ats-head h1 {
  font-size: 38px;
  line-height: 1.08;
}

.ats-head p {
  margin-top: 7px;
  color: #344054;
  font-size: 17px;
}

.ats-head .template-contact {
  margin-top: 10px;
}

.ats-template h3 {
  padding-bottom: 6px;
  color: #101828;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 1px solid #eaecf0;
}

.ats-template .skill-tags span {
  color: #344054;
  background: #f2f4f7;
  border-radius: 5px;
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  html,
  body {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    font-size: 10.5px !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body * {
    box-shadow: none !important;
  }

  .cv-header,
  .page-hero,
  .template-area,
  .builder-status,
  .cv-form,
  .preview-top,
  .preview-card,
  .header-actions,
  .step-nav,
  .logo {
    display: none !important;
  }

  .cv-page,
  .cv-container,
  .builder-shell,
  .builder-grid,
  .preview-shell,
  .paper-wrap,
  .paper-stage {
    display: block !important;
    position: static !important;
    width: 194mm !important;
    min-width: 0 !important;
    max-width: 194mm !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  .cv-paper {
    display: block !important;
    position: relative !important;
    width: 194mm !important;
    min-width: 0 !important;
    max-width: 194mm !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
    box-shadow: none !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-before: avoid !important;
    break-after: avoid !important;
    break-inside: avoid !important;
  }

  .cv-paper p,
  .cv-paper li,
  .cv-paper span {
    font-size: 10px !important;
    line-height: 1.26 !important;
  }

  .cv-section {
    margin-bottom: 8px !important;
  }

  .cv-section h3 {
    margin-bottom: 4px !important;
  }

  .line-list,
  .plain-lines {
    gap: 2px !important;
  }

  .line-list li {
    padding-left: 10px !important;
  }

  .line-list li::before {
    top: 0.62em !important;
    width: 3px !important;
    height: 3px !important;
  }

  .cv-entry {
    padding-bottom: 5px !important;
    margin-bottom: 5px !important;
  }

  .cv-entry-top {
    gap: 8px !important;
    margin-bottom: 2px !important;
  }

  .cv-entry h4 {
    font-size: 11px !important;
    line-height: 1.18 !important;
  }

  .cv-entry-top > span {
    font-size: 9px !important;
  }

  .skill-tags {
    gap: 4px !important;
  }

  .skill-tags span {
    padding: 3px 6px !important;
    font-size: 9px !important;
  }

  .level-list {
    gap: 3px !important;
  }

  .level-item {
    gap: 1px !important;
  }

  .level-item > div {
    gap: 6px !important;
  }

  .level-item strong,
  .level-item span {
    font-size: 9px !important;
  }

  .level-item em {
    height: 2px !important;
  }

  .cv-photo {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 7px !important;
    font-size: 18px !important;
  }

  .modern-template {
    display: grid !important;
    grid-template-columns: 52mm 142mm !important;
  }

  .cv-sidebar {
    padding: 7mm 5mm !important;
  }

  .cv-sidebar h2,
  .creative-template aside h2 {
    font-size: 17px !important;
    line-height: 1.04 !important;
  }

  .cv-sidebar > p,
  .creative-template aside > p {
    margin-top: 3px !important;
  }

  .cv-box {
    margin-top: 8px !important;
  }

  .cv-box h4 {
    margin-bottom: 3px !important;
    font-size: 8.5px !important;
  }

  .cv-main,
  .creative-template main {
    padding: 7mm !important;
  }

  .cv-main h3,
  .creative-template main h3 {
    font-size: 9.5px !important;
    padding-bottom: 2px !important;
    border-bottom-width: 1px !important;
  }

  .classic-template,
  .minimal-template,
  .ats-template {
    padding: 7mm 9mm !important;
  }

  .classic-head {
    padding-bottom: 6px !important;
    margin-bottom: 8px !important;
  }

  .classic-head h1,
  .corporate-head h1 {
    font-size: 22px !important;
    line-height: 1.02 !important;
  }

  .classic-head p,
  .corporate-head p,
  .minimal-head p,
  .ats-head p,
  .exec-top p {
    margin-top: 3px !important;
    font-size: 11px !important;
  }

  .minimal-head {
    margin-bottom: 9px !important;
  }

  .minimal-head h1 {
    font-size: 26px !important;
    line-height: 1.02 !important;
  }

  .exec-top {
    padding: 7mm !important;
  }

  .exec-title {
    gap: 8px !important;
  }

  .exec-top h1 {
    font-size: 22px !important;
    line-height: 1.02 !important;
  }

  .exec-contact {
    gap: 2px !important;
  }

  .exec-grid {
    grid-template-columns: 48mm 146mm !important;
  }

  .exec-grid aside {
    padding: 6mm 5mm !important;
  }

  .exec-grid main {
    padding: 6mm !important;
  }

  .creative-template {
    grid-template-columns: 52mm 142mm !important;
  }

  .creative-template aside {
    padding: 7mm 5mm !important;
  }

  .corporate-head {
    padding: 7mm 9mm 5mm !important;
  }

  .corporate-body {
    grid-template-columns: 1fr 45mm !important;
    gap: 5mm !important;
    padding: 6mm 9mm !important;
  }

  .corporate-aside {
    padding: 4mm !important;
    border-radius: 8px !important;
  }

  .ats-head {
    padding-bottom: 5px !important;
    margin-bottom: 8px !important;
  }

  .template-contact {
    gap: 3px 7px !important;
  }
}

@media (max-width: 1220px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .step-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 0 12px;
  }

  .template-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .builder-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    padding: 38px;
  }
}

@media (max-width: 980px) {
  :root {
    --preview-scale: 0.42;
  }

  .builder-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .preview-shell {
    position: static;
    padding-left: 0;
    border-left: 0;
  }

  .preview-card {
    display: flex;
  }

  .paper-wrap {
    max-height: none;
  }
}

@media (max-width: 760px) {
  :root {
    --preview-scale: 0.36;
  }

  .cv-container {
    width: min(100% - 24px, 1240px);
  }

  .cv-header {
    overflow: hidden;
  }

  .header-inner {
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 14px 0 0;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 17px;
  }

  .logo span {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .header-actions a {
    display: none;
  }

  .print-btn {
    min-height: 38px;
    padding: 0 15px;
    font-size: 12px;
    white-space: nowrap;
  }

  .step-nav {
    order: 3;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .step-nav::-webkit-scrollbar {
    display: none;
  }

  .step-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    gap: 6px;
    padding: 0 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .step-tab span {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .step-tab strong {
    max-width: 72px;
    overflow: hidden;
    text-overflow: clip;
  }

  .step-tab:not(:last-child)::after {
    flex: 0 0 18px;
    width: 18px;
    margin-left: 2px;
  }

  .cv-page {
    padding: 24px 0 54px;
  }

  .page-hero {
    margin-bottom: 22px;
    text-align: left;
  }

  .page-hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.65;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .template-area {
    margin-bottom: 20px;
  }

  .template-picker {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 12px;
    margin: 0 -2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #b9c6dd transparent;
    -webkit-overflow-scrolling: touch;
  }

  .template-option {
    flex: 0 0 174px;
    scroll-snap-align: start;
    padding: 8px;
    border-radius: 14px;
  }

  .template-option.active {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.16);
  }

  .template-option strong {
    margin-top: 7px;
    font-size: 12px;
  }

  .template-option small {
    min-height: 0;
    font-size: 10px;
    line-height: 1.35;
  }

  .template-thumb {
    height: 104px;
    border-radius: 11px;
  }

  .builder-shell {
    padding: 12px;
    border-radius: 20px;
  }

  .builder-grid {
    width: 100%;
    padding: 22px 20px;
    gap: 30px;
    border-radius: 14px;
  }

  .form-heading {
    margin-bottom: 24px;
  }

  .form-heading h2 {
    font-size: 27px;
  }

  .form-heading p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
  }

  .personal-layout,
  .field-grid.two {
    grid-template-columns: 1fr;
  }

  .personal-layout {
    gap: 22px;
  }

  .field-stack,
  .field-grid {
    gap: 15px;
  }

  .cv-form label,
  .photo-field > span {
    font-size: 13px;
  }

  .cv-form input,
  .cv-form textarea {
    min-height: 50px;
    padding: 13px 14px;
    font-size: 14px;
  }

  .cv-form textarea {
    min-height: 136px;
  }

  .photo-field {
    width: 100%;
    max-width: 260px;
  }

  .photo-upload {
    min-height: 136px;
    padding: 16px 12px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    margin-top: 30px;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .preview-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .paper-wrap {
    padding: 12px;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  :root {
    --preview-scale: 0.32;
  }

  .cv-container {
    width: min(100% - 20px, 1240px);
  }

  .header-inner {
    padding-top: 12px;
  }

  .logo {
    font-size: 16px;
    gap: 8px;
  }

  .print-btn {
    padding: 0 13px;
    font-size: 11px;
  }

  .step-tab strong {
    max-width: 58px;
  }

  .step-tab:not(:last-child)::after {
    width: 14px;
    flex-basis: 14px;
  }

  .template-option {
    flex-basis: 158px;
  }

  .template-thumb {
    height: 96px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .builder-shell {
    padding: 8px;
  }

  .builder-grid {
    padding: 20px;
  }

  .photo-field {
    max-width: none;
  }
}
/* STRUCTURED BUILDER SECTIONS */

.repeat-list {
  display: grid;
  gap: 16px;
}

.compact-list {
  gap: 10px;
}

.item-card {
  padding: 18px;
  border-radius: 18px;
  background: #fbfcff;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.07),
    0 12px 28px rgba(15, 23, 42, 0.04);
}

.compact-card {
  padding: 14px;
  border-radius: 14px;
}

.item-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.item-card-head strong {
  font-size: 15px;
  font-weight: 850;
}

.field-grid.three {
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
}

.field-grid.inline-repeat {
  grid-template-columns: minmax(0, 1.4fr) minmax(145px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
}

.cv-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.check-row {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  margin: 12px 0 14px;
  color: #475467 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.check-row input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}

.add-btn,
.remove-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.add-btn {
  min-height: 44px;
  margin-top: 16px;
  padding: 0 18px;
  color: var(--blue);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.add-btn:hover {
  transform: translateY(-1px);
  background: #e4efff;
}

.add-btn.compact {
  min-height: 36px;
  margin: 0;
  padding: 0 13px;
  font-size: 13px;
}

.remove-btn {
  min-height: 32px;
  padding: 0 12px;
  color: #b42318;
  background: #fff1f3;
  font-size: 12px;
}

.remove-btn:hover {
  background: #ffe4e8;
}

.remove-btn.inline {
  align-self: center;
  margin-bottom: 2px;
}

.subsection-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

.subsection-title:first-of-type {
  margin-top: 0;
}

.subsection-title h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.mt-field {
  margin-top: 22px;
}

.review-checklist {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 14px;
  color: #475467;
  background: #f8fafc;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.check-item span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4e7ec;
}

.check-item.done span,
.check-item.ready span {
  background: var(--blue);
}

.check-item.done span::before,
.check-item.ready span::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.cv-entry {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cv-entry:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.cv-entry-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
}

.cv-entry h4 {
  color: #101828;
  font-size: 15px;
  line-height: 1.35;
}

.cv-entry-top p {
  margin-top: 2px;
  color: #667085;
}

.cv-entry-top > span {
  flex: 0 0 auto;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.level-list {
  display: grid;
  gap: 10px;
}

.level-item {
  display: grid;
  gap: 6px;
}

.level-item > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.level-item strong {
  color: #1d2939;
  font-size: 13px;
}

.level-item span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.level-item em {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7ec;
}

.level-item i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  color: var(--blue);
}

.cv-box .level-item strong,
.cv-box .level-item span,
.creative-template aside .level-item strong,
.creative-template aside .level-item span {
  color: #ffffff;
}

.cv-box .level-item em,
.creative-template aside .level-item em {
  background: rgba(255, 255, 255, 0.18);
}

.cv-box .level-item i,
.creative-template aside .level-item i {
  color: #ffffff;
}

.corporate-aside .level-item i,
.corporate-template .level-item i {
  color: #20735f;
}

.creative-template .level-item i {
  color: #a94f65;
}

.ats-template .level-item i {
  color: #475467;
}

@media (max-width: 760px) {
  .field-grid.three,
  .field-grid.inline-repeat {
    grid-template-columns: 1fr;
  }

  .item-card {
    padding: 15px;
  }

  .item-card-head {
    align-items: flex-start;
  }

  .remove-btn.inline {
    width: 100%;
    min-height: 38px;
  }

  .subsection-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .add-btn.compact {
    width: 100%;
  }

  .cv-entry-top {
    flex-direction: column;
    gap: 4px;
  }
}
.pdf-export-holder {
  position: fixed;
  left: 0;
  top: 0;
  width: 210mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

.pdf-export-paper,
.pdf-export-mode {
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
  width: 210mm !important;
  min-width: 210mm !important;
  max-width: 210mm !important;
  height: 297mm !important;
  min-height: 297mm !important;
  max-height: 297mm !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.pdf-export-holder .cv-paper p,
.pdf-export-holder .cv-paper li,
.pdf-export-holder .cv-paper span {
  font-size: 10px !important;
  line-height: 1.26 !important;
}

.pdf-export-holder .cv-section {
  margin-bottom: 8px !important;
}

.pdf-export-holder .cv-section h3 {
  margin-bottom: 4px !important;
}

.pdf-export-holder .line-list,
.pdf-export-holder .plain-lines {
  gap: 2px !important;
}

.pdf-export-holder .line-list li {
  padding-left: 10px !important;
}

.pdf-export-holder .cv-entry {
  padding-bottom: 5px !important;
  margin-bottom: 5px !important;
}

.pdf-export-holder .cv-entry-top {
  gap: 8px !important;
  margin-bottom: 2px !important;
}

.pdf-export-holder .cv-entry h4 {
  font-size: 11px !important;
  line-height: 1.18 !important;
}

.pdf-export-holder .cv-entry-top > span {
  font-size: 9px !important;
}

.pdf-export-holder .level-list {
  gap: 3px !important;
}

.pdf-export-holder .level-item {
  gap: 1px !important;
}

.pdf-export-holder .level-item strong,
.pdf-export-holder .level-item span {
  font-size: 9px !important;
}

.pdf-export-holder .level-item em {
  height: 2px !important;
}

.pdf-export-holder .cv-photo {
  width: 42px !important;
  height: 42px !important;
  margin-bottom: 7px !important;
  font-size: 18px !important;
}

.pdf-export-holder .modern-template {
  display: grid !important;
  grid-template-columns: 56mm 154mm !important;
}

.pdf-export-holder .cv-sidebar,
.pdf-export-holder .creative-template aside {
  padding: 7mm 5mm !important;
}

.pdf-export-holder .cv-main,
.pdf-export-holder .creative-template main {
  padding: 7mm !important;
}

.pdf-export-holder .cv-sidebar h2,
.pdf-export-holder .creative-template aside h2 {
  font-size: 17px !important;
  line-height: 1.04 !important;
}

.pdf-export-holder .cv-box {
  margin-top: 8px !important;
}

.pdf-export-holder .cv-box h4 {
  margin-bottom: 3px !important;
  font-size: 8.5px !important;
}

.pdf-export-holder .classic-template,
.pdf-export-holder .minimal-template,
.pdf-export-holder .ats-template {
  padding: 7mm 9mm !important;
}

.pdf-export-holder .classic-head {
  padding-bottom: 6px !important;
  margin-bottom: 8px !important;
}

.pdf-export-holder .classic-head h1,
.pdf-export-holder .corporate-head h1,
.pdf-export-holder .exec-top h1 {
  font-size: 22px !important;
  line-height: 1.02 !important;
}

.pdf-export-holder .minimal-head {
  margin-bottom: 9px !important;
}

.pdf-export-holder .minimal-head h1 {
  font-size: 26px !important;
  line-height: 1.02 !important;
}

.pdf-export-holder .exec-top {
  padding: 7mm !important;
}

.pdf-export-holder .exec-grid {
  grid-template-columns: 52mm 158mm !important;
}

.pdf-export-holder .exec-grid aside,
.pdf-export-holder .exec-grid main {
  padding: 6mm !important;
}

.pdf-export-holder .creative-template {
  grid-template-columns: 56mm 154mm !important;
}

.pdf-export-holder .corporate-head {
  padding: 7mm 9mm 5mm !important;
}

.pdf-export-holder .corporate-body {
  grid-template-columns: 1fr 48mm !important;
  gap: 5mm !important;
  padding: 6mm 9mm !important;
}

.pdf-export-holder .corporate-aside {
  padding: 4mm !important;
}
/* FIX: Make Classic + Minimal fit one-page PDF */
.classic-template,
.minimal-template {
  height: 1123px !important;
  max-height: 1123px !important;
  overflow: hidden !important;
}

.classic-template {
  padding: 34px 46px !important;
}

.classic-head {
  padding-bottom: 14px !important;
  margin-bottom: 18px !important;
}

.classic-head h1 {
  font-size: 34px !important;
}

.classic-head p {
  font-size: 14px !important;
  margin: 4px 0 !important;
}

.classic-section {
  margin-bottom: 14px !important;
}

.classic-section h3 {
  font-size: 12px !important;
  margin-bottom: 7px !important;
  padding-bottom: 5px !important;
}

.minimal-template {
  padding: 36px 48px !important;
}

.minimal-head {
  margin-bottom: 20px !important;
}

.minimal-head h1 {
  font-size: 36px !important;
}

.minimal-head p {
  font-size: 15px !important;
  margin: 4px 0 !important;
}

.minimal-template section {
  margin-bottom: 15px !important;
}

.minimal-template h3 {
  font-size: 12px !important;
  margin-bottom: 7px !important;
}

.classic-template p,
.minimal-template p,
.classic-template li,
.minimal-template li,
.classic-template span,
.minimal-template span {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.classic-template .cv-entry,
.minimal-template .cv-entry {
  margin-bottom: 10px !important;
}

.classic-template .line-list,
.minimal-template .line-list {
  margin: 6px 0 0 !important;
  padding-left: 16px !important;
}

.classic-template .level-item,
.minimal-template .level-item {
  margin-bottom: 7px !important;
}
/* FIX carousel cards: more realistic CV previews */
.choose-overlay {
  top: auto !important;
  bottom: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(8px) !important;
  background: #2563eb !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  opacity: 0 !important;
}

.home-template-card:hover .choose-overlay,
.home-template-card.active .choose-overlay {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Better paper preview */
.home-template-preview {
  background: #ffffff !important;
  border: 1px solid #e5eaf3;
}

/* Modern realistic */
.preview-modern {
  background: linear-gradient(90deg, #153e66 0 35%, #fff 35% 100%) !important;
}

.preview-modern::before {
  content: "";
  position: absolute;
  left: 46%;
  top: 34px;
  width: 42%;
  height: 8px;
  border-radius: 99px;
  background: #111827;
  box-shadow:
    0 24px 0 #cbd5e1,
    0 48px 0 #d7deea,
    0 72px 0 #d7deea,
    0 120px 0 #d7deea,
    0 144px 0 #d7deea;
}

.preview-modern::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbeafe;
}

/* Classic realistic */
.preview-classic::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 48%;
  height: 8px;
  border-radius: 99px;
  transform: translateX(-50%);
  background: #111827;
  box-shadow:
    0 24px 0 #94a3b8,
    0 58px 0 #cbd5e1,
    0 82px 0 #cbd5e1,
    0 106px 0 #cbd5e1,
    0 150px 0 #cbd5e1;
}

.preview-classic::after {
  content: "";
  position: absolute;
  left: 13%;
  top: 82px;
  width: 74%;
  height: 2px;
  background: #111827;
}

/* Executive realistic */
.preview-exec {
  background: linear-gradient(#111827 0 58px, #fff 58px 100%) !important;
}

.preview-exec::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 35%;
  height: 8px;
  border-radius: 99px;
  background: #fff;
  box-shadow:
    0 22px 0 rgba(255, 255, 255, 0.7),
    0 78px 0 #cbd5e1,
    0 104px 0 #cbd5e1,
    0 130px 0 #cbd5e1;
}

.preview-exec::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 95px;
  width: 58px;
  height: 82px;
  border-radius: 10px;
  background: #e2e8f0;
}

/* Minimal realistic */
.preview-minimal::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 34px;
  width: 48%;
  height: 8px;
  border-radius: 99px;
  background: #111827;
  box-shadow:
    0 28px 0 #94a3b8,
    0 68px 0 #cbd5e1,
    0 94px 0 #cbd5e1,
    0 120px 0 #cbd5e1,
    0 150px 0 #cbd5e1;
}

/* Creative realistic */
.preview-creative {
  background: linear-gradient(90deg, #a94f64 0 33%, #fff 33% 100%) !important;
}

.preview-creative::before {
  content: "";
  position: absolute;
  left: 46%;
  top: 36px;
  width: 42%;
  height: 8px;
  border-radius: 99px;
  background: #111827;
  box-shadow:
    0 28px 0 #cbd5e1,
    0 52px 0 #cbd5e1,
    0 92px 0 #d7deea,
    0 118px 0 #d7deea;
}

.preview-creative::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbeafe;
}

/* Hide older random preview elements that make cards messy */
.home-template-preview > span {
  opacity: 0;
}
.real-thumb {
  height: 190px !important;
  background: #f8fafc !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  display: block !important;
}

.real-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.template-option:hover .real-thumb img,
.template-option.active .real-thumb img {
  transform: scale(1.04);
}

.real-thumb span {
  display: none !important;
}
