:root {
  --pb-bg: #f5f7ff;
  --pb-surface: rgba(255, 255, 255, 0.96);
  --pb-paper: #ffffff;
  --pb-paper-edge-gap: 0.5px;
  --pb-ink: #1f2d52;
  --pb-muted: #63708f;
  --pb-line: #d7def1;
  --pb-accent: #4378ff;
  --pb-accent-dark: #2b4ec9;
  --pb-accent-alt: #eb67b0;
  --pb-shadow: 0 20px 42px rgba(29, 41, 77, 0.12);
  --pb-topbar-offset: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(99, 112, 143, 0.22);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 112, 143, 0.38);
}

body {
  margin: 0;
  color: var(--pb-ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(67, 120, 255, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(235, 103, 176, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, #f4f2ff 100%);
  min-height: 100vh;
}

.pb-loading-dots::after {
  content: "";
  animation: pbDots 1.4s steps(4, end) infinite;
}

@keyframes pbDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.pb-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(215, 222, 241, 0.9);
  background: rgba(249, 251, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pb-topbar-inner,
.pb-shell {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
}

.pb-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.pb-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--pb-accent);
}

.pb-owner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.55rem 0 0;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17, 98, 58, 0.14), rgba(67, 120, 255, 0.14));
  color: #11623a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pb-topbar h1,
.pb-panel h2,
.pb-panel h3,
.cv-header h2,
.cv-section h3 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.pb-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pb-design-menu {
  position: relative;
}

.pb-design-menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(340px, calc(100vw - 2rem));
  max-height: 70vh;
  overflow: auto;
  padding: 0.65rem;
  border: 1px solid rgba(67, 120, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 42px rgba(29, 41, 77, 0.14);
  z-index: 70;
}

.pb-design-menu-group {
  display: grid;
  gap: 0.3rem;
}

.pb-design-menu-group + .pb-design-menu-group {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(215, 222, 241, 0.8);
}

.pb-design-menu-label {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--pb-muted);
}

.pb-design-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--pb-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pb-design-option[data-design-value="ribbon-glow"] {
  color: #3555d1;
}

.pb-design-option[data-design-value="ribbon-frame"] {
  color: #3457c9;
}

.pb-design-option[data-design-value="executive"] {
  color: #18313c;
}

.pb-design-option[data-design-value="spotlight"] {
  color: #9b4d2f;
}

.pb-design-option[data-design-value="atlas"] {
  color: #21384f;
}

.pb-design-option:hover,
.pb-design-option.is-active {
  border-color: rgba(67, 120, 255, 0.18);
  background: linear-gradient(180deg, #f5f8ff, #eef3ff);
}

.pb-design-option.is-active::after {
  content: "Selected";
  color: var(--pb-accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.pb-link-btn,
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pb-link-btn[data-selected-design="ribbon-glow"] {
  color: #3555d1;
}

.pb-link-btn[data-selected-design="ribbon-frame"] {
  color: #3457c9;
}

.pb-link-btn[data-selected-design="executive"] {
  color: #18313c;
}

.pb-link-btn[data-selected-design="spotlight"] {
  color: #9b4d2f;
}

.pb-link-btn[data-selected-design="atlas"] {
  color: #21384f;
}

.pb-link-btn {
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(67, 120, 255, 0.16);
  background: linear-gradient(180deg, #ffffff, #f5f7ff);
  color: var(--pb-accent-dark);
  box-shadow: 0 10px 20px rgba(29, 41, 77, 0.06);
}

.pb-btn {
  border: 0;
  cursor: pointer;
  min-height: 48px;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, var(--pb-accent), var(--pb-accent-alt));
  color: #fff;
  box-shadow: 0 14px 28px rgba(87, 87, 184, 0.22);
}

.pb-btn-secondary {
  background: linear-gradient(180deg, #f5f6ff, #edf1ff);
  color: var(--pb-accent-dark);
  box-shadow: none;
}

.pb-link-btn:hover,
.pb-btn:hover,
.pb-plan-link:hover,
.pb-upgrade-btn:hover,
.pb-mini-btn:hover {
  transform: translateY(-1px);
}

.pb-link-btn:hover {
  background: linear-gradient(180deg, #ffffff, #eef2ff);
}

.pb-btn:hover {
  box-shadow: 0 18px 34px rgba(87, 87, 184, 0.28);
}

.pb-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(620px, 1.18fr);
  gap: 1.2rem;
  padding: 1.4rem 0 2rem;
}

.pb-shell.builder-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.pb-shell.builder-hidden .pb-editor {
  display: none;
}

.pb-shell.builder-hidden .pb-preview-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
  position: relative;
  top: 0;
}

.pb-mobile-switcher {
  display: none;
}

.pb-mobile-tab {
  border: 1px solid rgba(73, 111, 255, 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: #304463;
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pb-mobile-tab:active {
  transform: scale(0.97);
}

.pb-mobile-tab.is-active {
  background: linear-gradient(135deg, #1c7cff, #496fff 58%, #00b8d4);
  color: #fff;
  box-shadow: 0 12px 24px rgba(40, 84, 170, 0.2);
}

.pb-shell.builder-hidden .pb-preview-head,
.pb-shell.builder-hidden .pb-rich-toolbar,
.pb-shell.builder-hidden .cv-sheet {
  margin-left: auto;
  margin-right: auto;
}

.pb-editor {
  display: grid;
  gap: 1rem;
  animation: pbFadeIn 0.4s ease;
}

@keyframes pbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pb-panel {
  border: 1px solid var(--pb-line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--pb-shadow);
  padding: 1.55rem;
  transition: box-shadow 0.25s ease;
}

.pb-panel:hover {
  box-shadow: 0 24px 48px rgba(29, 41, 77, 0.15);
}

.pb-panel-intro {
  background:
    linear-gradient(140deg, rgba(67, 120, 255, 0.08), rgba(255, 255, 255, 0.95)),
    rgba(255, 253, 248, 0.96);
}

.pb-form {
  display: grid;
  gap: 1rem;
}

.pb-editor-card {
  display: grid;
  gap: 1.7rem;
}

.pb-editor-section {
  display: grid;
  gap: 1.05rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(216, 209, 195, 0.9);
  position: relative;
}

.pb-editor-section:first-of-type {
  padding-top: 0.2rem;
  border-top: 0;
}

.pb-editor-section .pb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pb-editor-section .pb-kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--pb-accent), var(--pb-accent-alt));
  flex-shrink: 0;
}

.pb-flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1f4ff, #fcefff);
  color: var(--pb-accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.pb-page-check {
  min-height: 1.3rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(67, 120, 255, 0.14);
  background: rgba(245, 248, 255, 0.86);
  color: var(--pb-muted);
  font-weight: 700;
}

.pb-page-check.is-warning {
  border-color: rgba(166, 88, 24, 0.22);
  background: rgba(255, 244, 227, 0.92);
  color: #8a4d12;
}

.pb-page-check.is-good {
  border-color: rgba(17, 98, 58, 0.18);
  background: rgba(239, 250, 243, 0.92);
  color: #11623a;
}

.pb-print-tip {
  margin: -0.8rem 0 0;
  color: var(--pb-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pb-plan-banner,
.pb-premium-panel {
  border: 1px solid rgba(67, 120, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(67, 120, 255, 0.08), rgba(255, 245, 252, 0.96)),
    rgba(255, 255, 255, 0.96);
}

.pb-plan-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
}

.pb-plan-banner h3 {
  margin: 0;
}

.pb-plan-banner p {
  margin: 0.45rem 0 0;
  color: var(--pb-muted);
}

.pb-plan-actions {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
  align-content: start;
  min-width: 182px;
}

.pb-plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef3ff, #fdeefd);
  color: var(--pb-accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.pb-plan-link,
.pb-upgrade-btn,
.pb-upgrade-strip a {
  color: var(--pb-accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.pb-plan-link,
.pb-upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(67, 120, 255, 0.16);
  background: linear-gradient(180deg, #ffffff, #f5f7ff);
  box-shadow: 0 12px 24px rgba(29, 41, 77, 0.06);
}

.pb-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

.pb-toolbar-field {
  width: min(260px, 100%);
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.pb-toolbar-field span {
  color: var(--pb-accent-dark);
}

.pb-toolbar-field select.is-locked,
#cvPhoto.is-locked {
  border-color: rgba(67, 120, 255, 0.38);
  background: #f5f7ff;
}

.pb-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.pb-template-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.pb-template-group {
  border: 1px solid rgba(67, 120, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 249, 255, 0.94), rgba(255, 245, 252, 0.92));
  padding: 0.9rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pb-template-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 120, 255, 0.1);
}

.pb-template-group strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--pb-accent-dark);
}

.pb-template-group p {
  margin: 0;
  color: var(--pb-muted);
  line-height: 1.45;
}

.pb-premium-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.pb-premium-grid article {
  border: 1px solid rgba(67, 120, 255, 0.16);
  border-radius: 18px;
  background: rgba(247, 249, 255, 0.9);
  padding: 0.9rem;
}

.pb-premium-grid article strong {
  display: block;
  margin-bottom: 0.3rem;
}

.pb-premium-grid article[data-design="executive"] strong {
  color: #18313c;
}

.pb-premium-grid article[data-design="spotlight"] strong {
  color: #9b4d2f;
}

.pb-premium-grid article[data-design="atlas"] strong {
  color: #21384f;
}

.pb-premium-grid article p {
  margin: 0;
  color: var(--pb-muted);
}

.pb-guide-card,
.pb-example-box {
  border: 1px solid rgba(67, 120, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 249, 255, 0.94), rgba(255, 245, 252, 0.92));
  padding: 0.9rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pb-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 120, 255, 0.1);
}

.pb-guide-card strong,
.pb-example-box strong {
  display: block;
  margin-bottom: 0.35rem;
}

.pb-guide-card p,
.pb-example-box p {
  margin: 0;
  color: var(--pb-muted);
  line-height: 1.45;
}

.pb-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.pb-editor-card .pb-section-head {
  margin-bottom: 0;
}

.pb-help,
#builderLead,
#builderMessage,
.cv-meta,
.cv-section p,
.cv-item-meta,
.cv-item-detail {
  color: var(--pb-muted);
}

.pb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pb-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-inline-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.pb-inline-check input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--pb-accent);
}

.pb-attachment-grid {
  display: grid;
  gap: 1rem;
}

.pb-attachment-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(73, 111, 255, 0.14);
  border-radius: 22px;
  background: rgba(245, 249, 255, 0.75);
}

.pb-attachment-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.pb-attachment-head span {
  color: var(--pb-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.pb-span-2 {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.42rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--pb-ink);
}

.pb-optional {
  color: var(--pb-muted);
  font-weight: 600;
}

.pb-field-tip {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pb-muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7def1;
  border-radius: 18px;
  background: #fff;
  padding: 1rem 1.05rem;
  font: inherit;
  color: var(--pb-ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(67, 120, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(67, 120, 255, 0.1), 0 4px 12px rgba(67, 120, 255, 0.08);
  background: rgba(250, 252, 255, 1);
}

input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
  border-color: rgba(67, 120, 255, 0.28);
}

input,
select {
  min-height: 56px;
}

textarea {
  resize: vertical;
  min-height: 176px;
  line-height: 1.55;
}

#cvSummary {
  min-height: 220px;
}

#cvExperience,
#cvEducation {
  min-height: 260px;
}

#cvSkills {
  min-height: 180px;
}

.pb-helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pb-guide-toggle {
  border: 1px solid rgba(67, 120, 255, 0.16);
  border-radius: 18px;
  background: rgba(247, 249, 255, 0.82);
  padding: 0.95rem 1rem;
}

.pb-guide-toggle summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--pb-accent-dark);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pb-guide-toggle summary::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid var(--pb-accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.pb-guide-toggle[open] summary::before {
  transform: rotate(90deg);
}

.pb-guide-toggle summary::-webkit-details-marker {
  display: none;
}

.pb-guide-content {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.pb-guide-content p {
  margin: 0;
  color: var(--pb-muted);
}

.pb-guide-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--pb-ink);
}

.pb-guide-example {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed rgba(155, 77, 47, 0.18);
}

.pb-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 77, 47, 0.2);
  border-radius: 999px;
  background: #fff6ef;
  color: var(--pb-accent-dark);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.pb-mini-btn:hover {
  background: #f7ebdf;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155, 77, 47, 0.1);
}

.pb-mini-btn:active {
  transform: translateY(0);
}

.pb-upgrade-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px dashed rgba(155, 77, 47, 0.26);
  border-radius: 20px;
  background: rgba(255, 248, 239, 0.72);
  color: var(--pb-accent-dark);
  font-weight: 700;
}

.pb-upgrade-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(155, 77, 47, 0.16);
  background: #fff7ef;
}

.pb-status-row {
  padding: 0 0.1rem;
}

#builderMessage {
  margin: 0;
  min-height: 1.2rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

#builderMessage:not(:empty) {
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(245, 248, 255, 0.8);
  border: 1px solid rgba(67, 120, 255, 0.1);
}

.pb-preview-wrap {
  position: sticky;
  top: var(--pb-topbar-offset);
  align-self: start;
}

.pb-rich-toolbar {
  position: sticky;
  top: var(--pb-topbar-offset);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(212, 221, 234, 0.94);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(24, 44, 77, 0.06);
}

.pb-rich-select {
  display: grid;
  gap: 0.22rem;
  min-width: 148px;
}

.pb-rich-select span {
  color: var(--pb-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pb-rich-select select {
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(67, 120, 255, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  color: var(--pb-accent-dark);
  font: inherit;
  font-weight: 700;
}

.pb-rich-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(67, 120, 255, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  color: var(--pb-accent-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pb-rich-btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1ch;
}

.pb-rich-btn-label-bold {
  font-weight: 900;
}

.pb-rich-btn-label-italic {
  font-style: italic;
}

.pb-rich-btn-label-underline {
  text-decoration: underline;
}

.pb-rich-btn-text {
  line-height: 1;
}

.pb-rich-btn:hover,
.pb-rich-btn.is-active {
  transform: translateY(-1px);
  border-color: rgba(67, 120, 255, 0.42);
  box-shadow: 0 10px 20px rgba(67, 120, 255, 0.12);
}

.pb-shell.builder-hidden .pb-preview-wrap {
  grid-column: 1 / -1;
}

.cv-sheet {
  position: relative;
  width: min(100%, 210mm);
  min-height: 297mm;
  border: 1px solid rgba(207, 198, 182, 0.92);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(155, 77, 47, 0.06), transparent 22%),
    var(--pb-paper);
  box-shadow: 0 28px 60px rgba(31, 45, 42, 0.14);
  padding: 2.3rem;
}

.cv-sheet[data-font-theme="modern"] {
  font-family: "Manrope", sans-serif;
}

.cv-sheet[data-font-theme="classic"] {
  font-family: "Fraunces", Georgia, serif;
}

.cv-sheet[data-font-theme="clean"] {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.cv-sheet[data-font-scale="compact"] {
  font-size: 0.94rem;
}

.cv-sheet[data-font-scale="standard"] {
  font-size: 1rem;
}

.cv-sheet[data-font-scale="comfortable"] {
  font-size: 1.05rem;
}

.cv-watermark {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(155, 77, 47, 0.24);
  transform: rotate(-26deg);
  transform-origin: center;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 3;
}

.cv-sheet[data-watermark="on"] .cv-watermark {
  display: flex;
}

.cv-sheet[data-watermark="on"] .cv-header,
.cv-sheet[data-watermark="on"] .cv-section {
  position: relative;
  z-index: 4;
}

@media (min-width: 1180px) {
  .cv-sheet {
    min-height: 297mm;
    padding: 2.4rem;
  }

  .cv-header h2 {
    font-size: clamp(2.3rem, 3.8vw, 3.35rem);
  }

  .cv-section h3 {
    font-size: 1.16rem;
  }
}

.cv-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--pb-line);
}

.cv-header-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 1.2rem;
  align-items: start;
}

.cv-header-copy {
  min-width: 0;
}

.cv-role {
  margin: 0 0 0.3rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--pb-accent);
}

.cv-header h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.cv-meta {
  margin: 0.7rem 0 0;
}

.cv-design-chip {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #f1e7dc;
  color: var(--pb-accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.cv-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  aspect-ratio: 1 / 1.18;
  border: 1px solid rgba(155, 77, 47, 0.18);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5ede3, #efe6da);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.cv-photo-wrap.is-empty {
  border-style: dashed;
}

.cv-photo-wrap::before {
  content: attr(data-edit-label);
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pb-accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(24, 44, 77, 0.12);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.cv-photo-wrap:hover::before,
.cv-photo-wrap:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.cv-photo-wrap.is-empty::after {
  content: attr(data-empty-label);
  padding: 0 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--pb-accent-dark);
}

.cv-photo-wrap.is-empty img {
  display: none;
}

.cv-sheet[data-photo-visibility="off"] .cv-photo-wrap {
  display: none;
}

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

.cv-sheet[data-photo-style="round"] .cv-photo-wrap {
  width: 132px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow:
    0 18px 30px rgba(31, 45, 42, 0.16),
    0 0 0 1px rgba(31, 45, 42, 0.08);
}

.cv-sheet[data-photo-style="round"] .cv-photo-wrap img {
  object-position: center top;
}

.cv-sheet[data-design="traditional"][data-photo-style="round"] .cv-photo-wrap {
  border-color: #111;
  box-shadow:
    0 14px 22px rgba(17, 17, 17, 0.12),
    0 0 0 1px rgba(17, 17, 17, 0.08);
}

.cv-sheet[data-design="executive"][data-photo-style="round"] .cv-photo-wrap {
  border-color: rgba(255, 248, 239, 0.94);
  box-shadow:
    0 20px 34px rgba(5, 15, 20, 0.28),
    0 0 0 1px rgba(255, 248, 239, 0.14);
}

.cv-section {
  padding-top: 1.45rem;
}

.cv-section h3 {
  font-size: 1.08rem;
  margin-bottom: 0.32rem;
}

.cv-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.16rem;
}

.cv-section-bar h3 {
  margin-bottom: 0;
}

.cv-section-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cv-list {
  display: grid;
  gap: 0.45rem;
}

.cv-inline-add {
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(67, 120, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  color: var(--pb-accent-dark);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.cv-inline-add:hover {
  border-color: rgba(67, 120, 255, 0.38);
}

.cv-inline-remove {
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(186, 72, 84, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, #fffafa, #fff0f2);
  color: #a63a47;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.cv-inline-remove:hover {
  border-color: rgba(186, 72, 84, 0.36);
}

.cv-item {
  border-left: 3px solid rgba(155, 77, 47, 0.3);
  padding-left: 0.85rem;
}

.cv-item[data-preview-editable="true"] {
  border-radius: 14px;
  padding: 0.6rem 0.7rem 0.6rem 0.85rem;
}

.cv-item[data-preview-editable="true"] .cv-item-title,
.cv-item[data-preview-editable="true"] .cv-item-org,
.cv-item[data-preview-editable="true"] .cv-item-dates,
.cv-item[data-preview-editable="true"] .cv-item-meta,
.cv-item[data-preview-editable="true"] .cv-item-detail {
  border-radius: 10px;
  padding: 0.18rem 0.35rem;
}

.cv-item[data-preview-editable="true"] .cv-item-title:focus,
.cv-item[data-preview-editable="true"] .cv-item-org:focus,
.cv-item[data-preview-editable="true"] .cv-item-dates:focus,
.cv-item[data-preview-editable="true"] .cv-item-meta:focus,
.cv-item[data-preview-editable="true"] .cv-item-detail:focus {
  outline: none;
  border-color: rgba(67, 120, 255, 0.34);
  background: rgba(67, 120, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(67, 120, 255, 0.2);
}

.cv-item-title {
  font-weight: 800;
}

.cv-item-org,
.cv-item-dates,
.cv-item-meta {
  margin-top: 0.16rem;
  font-size: 0.95rem;
}

.cv-item-detail {
  margin-top: 0.25rem;
  line-height: 1.5;
}

.cv-work-entry {
  display: grid;
  gap: 0.44rem;
  padding: 0.78rem 0.85rem 0.82rem 1rem;
  border: 1px solid rgba(67, 120, 255, 0.12);
  border-left: 4px solid rgba(67, 120, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.92));
  box-shadow: 0 10px 24px rgba(24, 44, 77, 0.05);
}

.cv-list[data-list-kind="experience"] {
  gap: 0.18rem;
  margin-top: 0;
}

.cv-list[data-list-kind="education"] {
  gap: 0.18rem;
  margin-top: 0;
}

#experienceSection .cv-section-bar,
#educationSection .cv-section-bar {
  margin-bottom: 0.08rem;
}

#experienceSection .cv-list,
#educationSection .cv-list {
  display: grid;
  align-content: start;
  padding-top: 0;
}

#experienceSection .cv-free-entry-card,
#educationSection .cv-free-entry-card {
  margin-top: 0;
  padding-top: 0;
}

#experienceSection .cv-free-entry-content[data-preview-editable="true"],
#educationSection .cv-free-entry-content[data-preview-editable="true"] {
  padding-top: 0;
}

#experienceSection .cv-free-entry-content > :first-child,
#educationSection .cv-free-entry-content > :first-child {
  margin-top: 0;
}

.cv-work-entry .cv-item-title {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.28;
}

.cv-work-entry .cv-item-org {
  color: var(--pb-ink);
  font-weight: 700;
  line-height: 1.35;
}

.cv-work-entry .cv-item-dates {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--pb-accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.cv-work-entry .cv-item-detail {
  min-height: 2.8em;
  color: var(--pb-muted);
}

.cv-free-entry-card {
  padding-left: 0;
  border-left: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.cv-free-entry-content[data-preview-editable="true"] {
  min-height: 4.8rem;
  padding: 0.24rem 0 0.2rem;
  border: 0;
  border-radius: 0;
  line-height: 1.4;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(67, 120, 255, 0.1) 0,
      rgba(67, 120, 255, 0.1) 1px,
      transparent 1px,
      transparent 1.62rem
    ),
    transparent;
  box-shadow: none;
}

.cv-free-entry-card.has-content .cv-free-entry-content[data-preview-editable="true"] {
  min-height: 0;
  padding: 0.02rem 0 0;
  background: none;
}

.cv-free-entry-card.has-content .cv-free-entry-content > div,
.cv-free-entry-card.has-content .cv-free-entry-content > p,
.cv-free-entry-card.has-content .cv-free-entry-content > ul,
.cv-free-entry-card.has-content .cv-free-entry-content > ol {
  margin-bottom: 0.08rem;
}

.cv-free-entry-content > * {
  margin: 0 0 0.08rem;
}

.cv-free-entry-content > *:last-child {
  margin-bottom: 0;
}

.cv-free-entry-content[data-preview-editable="true"]:hover,
.cv-free-entry-content[data-preview-editable="true"]:focus {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(67, 120, 255, 0.13) 0,
      rgba(67, 120, 255, 0.13) 1px,
      transparent 1px,
      transparent 1.62rem
    ),
    linear-gradient(180deg, rgba(67, 120, 255, 0.035), rgba(67, 120, 255, 0.035));
}

.cv-free-entry-content strong {
  color: var(--pb-ink);
}

.cv-skill-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.cv-skill-list li {
  color: var(--pb-ink);
  line-height: 1.45;
  font-weight: 600;
}

[data-preview-editable="true"] {
  display: block;
  min-height: 2.9rem;
  padding: 0.18rem 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  transition: background-color 180ms ease, box-shadow 180ms ease;
  white-space: pre-wrap;
  position: relative;
}

[data-preview-editable="true"]::after {
  content: attr(data-edit-hint);
  position: absolute;
  top: 0.4rem;
  right: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(33, 60, 143, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

[data-preview-editable="true"]:hover {
  cursor: text;
}

[data-preview-editable="true"]:hover::after,
[data-preview-editable="true"]:focus::after {
  opacity: 1;
  transform: translateY(0);
}

[data-preview-editable="true"]:focus {
  outline: none;
  background: linear-gradient(180deg, rgba(67, 120, 255, 0.04), rgba(67, 120, 255, 0.04));
}

[data-preview-editable="true"].is-empty-editable::before {
  content: attr(data-placeholder);
  position: absolute;
  left: 0;
  top: 0.22rem;
  color: rgba(99, 112, 143, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

#previewRole[data-preview-editable="true"],
#previewFullName[data-preview-editable="true"] {
  min-height: auto;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  background: transparent;
}

#previewRole[data-preview-editable="true"]::after,
#previewFullName[data-preview-editable="true"]::after {
  right: 0;
}

#previewRole[data-preview-editable="true"]:hover,
#previewFullName[data-preview-editable="true"]:hover,
#previewRole[data-preview-editable="true"]:focus,
#previewFullName[data-preview-editable="true"]:focus {
  background: transparent;
  box-shadow: none;
}

#previewSummary strong,
#previewSummary b,
#previewSkills strong,
#previewSkills b,
#previewLanguages strong,
#previewLanguages b,
#previewCertifications strong,
#previewCertifications b {
  font-weight: 800;
}

#previewSummary em,
#previewSummary i,
#previewSkills em,
#previewSkills i,
#previewLanguages em,
#previewLanguages i,
#previewCertifications em,
#previewCertifications i {
  font-style: italic;
}

#previewSummary u,
#previewSkills u,
#previewLanguages u,
#previewCertifications u {
  text-decoration: underline;
}

.cv-sheet[data-design="executive"] {
  background: #fff;
}

.cv-sheet[data-design="executive"] .cv-header {
  margin: -2.3rem -2.3rem 0;
  padding: 2.3rem 2.3rem 1.5rem;
  background: #18313c;
  border-radius: 30px 30px 0 0;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.cv-sheet[data-design="executive"] .cv-role,
.cv-sheet[data-design="executive"] .cv-header h2,
.cv-sheet[data-design="executive"] .cv-meta {
  color: #fff8ef;
}

.cv-sheet[data-design="executive"] .cv-design-chip {
  background: rgba(255, 248, 239, 0.12);
  color: #fff8ef;
}

.cv-sheet[data-design="executive"] .cv-section {
  position: relative;
}

.cv-sheet[data-design="executive"] .cv-section:first-of-type {
  padding-top: 1.8rem;
}

.cv-sheet[data-design="executive"] .cv-section h3 {
  color: #18313c;
}

.cv-sheet[data-design="executive"][data-watermark="on"] .cv-watermark {
  color: rgba(24, 49, 60, 0.14);
}

.cv-sheet[data-design="traditional"] {
  background: #fff;
  box-shadow: 0 24px 54px rgba(25, 25, 25, 0.12);
}

.cv-sheet[data-design="traditional"] .cv-header {
  padding-bottom: 1.1rem;
  border-bottom: 2px solid #1b1b1b;
}

.cv-sheet[data-design="traditional"] .cv-header-layout {
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 1rem;
}

.cv-sheet[data-design="traditional"] .cv-role {
  color: #111;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.cv-sheet[data-design="traditional"] .cv-header h2 {
  color: #111;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cv-sheet[data-design="traditional"] .cv-meta {
  color: #111;
}

.cv-sheet[data-design="traditional"] .cv-design-chip {
  background: #111;
  color: #fff;
}

.cv-sheet[data-design="traditional"] .cv-photo-wrap {
  width: 120px;
  border-radius: 0;
  border: 1.5px solid #111;
  background: #fff;
  box-shadow: none;
}

.cv-sheet[data-design="traditional"] .cv-section {
  padding-top: 1.2rem;
}

.cv-sheet[data-design="traditional"] .cv-section h3 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #1b1b1b;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.88rem;
  font-family: "Manrope", sans-serif;
}

.cv-sheet[data-design="traditional"] .cv-list {
  gap: 0.7rem;
}

.cv-sheet[data-design="traditional"] .cv-item {
  border-left: 0;
  border-bottom: 1px solid #d8d8d8;
  padding: 0 0 0.7rem;
}

.cv-sheet[data-design="traditional"] .cv-item-title,
.cv-sheet[data-design="traditional"] .cv-skill-list li {
  color: #111;
}

.cv-sheet[data-design="traditional"] .cv-item-meta,
.cv-sheet[data-design="traditional"] .cv-item-detail {
  color: #111;
}

.cv-sheet[data-design="traditional"] .cv-list[data-list-kind="education"] .cv-item {
  padding-bottom: 0.8rem;
}

.cv-sheet[data-design="traditional"] .cv-list[data-list-kind="education"] .cv-item-title {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.cv-sheet[data-design="traditional"] .cv-list[data-list-kind="education"] .cv-item-meta {
  margin-top: 0.22rem;
  color: #111;
  font-weight: 600;
}

.cv-sheet[data-design="traditional"] .cv-list[data-list-kind="education"] .cv-item-detail {
  margin-top: 0.22rem;
  color: #111;
}

.cv-sheet[data-design="traditional"] .cv-skill-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  padding-left: 1.1rem;
}

.cv-sheet[data-design="traditional"] .cv-skill-list li::marker {
  color: #111;
}

.cv-sheet[data-design="ribbon"] {
  background: #fff;
  box-shadow: 0 24px 54px rgba(36, 53, 104, 0.12);
}

.cv-sheet[data-design="ribbon"] .cv-header {
  padding-bottom: 1.2rem;
  border-bottom: 2px solid rgba(67, 120, 255, 0.18);
}

.cv-sheet[data-design="ribbon"] .cv-role {
  color: #315de0;
  letter-spacing: 0.12em;
}

.cv-sheet[data-design="ribbon"] .cv-header h2 {
  color: #17356d;
}

.cv-sheet[data-design="ribbon"] .cv-design-chip {
  background: linear-gradient(135deg, #edf3ff, #fdeef8);
  color: #2950c5;
  border: 1px solid rgba(67, 120, 255, 0.16);
}

.cv-sheet[data-design="ribbon"] .cv-photo-wrap {
  border-color: rgba(67, 120, 255, 0.24);
  background: linear-gradient(180deg, #f4f8ff, #fdf2fa);
  box-shadow: 0 16px 30px rgba(38, 60, 128, 0.12);
}

.cv-sheet[data-design="ribbon"] .cv-section h3 {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 0.9rem;
  padding: 0.52rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #214ba8, #5a67ea 56%, #e96aae);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  font-family: "Manrope", sans-serif;
  box-shadow: 0 12px 24px rgba(58, 78, 174, 0.18);
}

.cv-sheet[data-design="ribbon"] .cv-item {
  border-left: 4px solid rgba(67, 120, 255, 0.34);
  padding-left: 0.95rem;
}

.cv-sheet[data-design="ribbon"] .cv-item-title {
  color: #17356d;
}

.cv-sheet[data-design="ribbon"] .cv-list[data-list-kind="education"] .cv-item-meta {
  color: #496080;
  font-weight: 700;
}

.cv-sheet[data-design="ribbon"] .cv-profile-card {
  border-color: rgba(67, 120, 255, 0.16);
  background: linear-gradient(180deg, #f5f8ff, #fff5fb);
}

.cv-sheet[data-design="ribbon"] .cv-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-left: 0;
  list-style: none;
}

.cv-sheet[data-design="ribbon"] .cv-skill-list li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef3ff, #fff0f8);
  color: #214ba8;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(67, 120, 255, 0.12);
}

.cv-sheet[data-design="ribbon"] .cv-two-column {
  gap: 1rem;
}

.cv-sheet[data-design="ribbon"] .cv-two-column h4 {
  color: #17356d;
}

.cv-sheet[data-design="ribbon"][data-watermark="on"] .cv-watermark {
  color: rgba(48, 81, 173, 0.14);
}

.cv-sheet[data-design="ribbon-glow"] {
  background:
    radial-gradient(circle at top right, rgba(233, 106, 174, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff, #fcfbff);
  box-shadow: 0 28px 60px rgba(64, 83, 173, 0.14);
}

.cv-sheet[data-design="ribbon-glow"] .cv-header {
  padding-bottom: 1.3rem;
  border-bottom: 2px solid rgba(67, 120, 255, 0.16);
}

.cv-sheet[data-design="ribbon-glow"] .cv-role {
  color: #4b74ff;
}

.cv-sheet[data-design="ribbon-glow"] .cv-header h2,
.cv-sheet[data-design="ribbon-glow"] .cv-item-title,
.cv-sheet[data-design="ribbon-glow"] .cv-two-column h4 {
  color: #1f3f97;
}

.cv-sheet[data-design="ribbon-glow"] .cv-design-chip {
  background: linear-gradient(135deg, #eef3ff, #fff0f8);
  color: #3555d1;
  border: 1px solid rgba(67, 120, 255, 0.12);
}

.cv-sheet[data-design="ribbon-glow"] .cv-section h3 {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 0.9rem;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #345ed7, #6b6ef2 58%, #e96cb0);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  font-family: "Manrope", sans-serif;
  box-shadow: 0 14px 28px rgba(87, 93, 199, 0.18);
}

.cv-sheet[data-design="ribbon-glow"] .cv-profile-card,
.cv-sheet[data-design="ribbon-glow"] .cv-item {
  border: 1px solid rgba(67, 120, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fbff, #fff6fb);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.cv-sheet[data-design="ribbon-glow"] .cv-item {
  border-left: 4px solid rgba(67, 120, 255, 0.28);
  padding: 0.92rem 1rem;
}

.cv-sheet[data-design="ribbon-glow"] .cv-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-left: 0;
  list-style: none;
}

.cv-sheet[data-design="ribbon-glow"] .cv-skill-list li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef3ff, #fff0f8);
  color: #2e53c4;
  font-weight: 700;
}

.cv-sheet[data-design="ribbon-glow"][data-watermark="on"] .cv-watermark {
  color: rgba(74, 91, 194, 0.14);
}

.cv-sheet[data-design="ribbon-frame"] {
  background:
    linear-gradient(180deg, rgba(238, 244, 255, 0.92), rgba(255, 255, 255, 1) 14%),
    #fff;
  box-shadow: 0 26px 56px rgba(36, 53, 104, 0.13);
}

.cv-sheet[data-design="ribbon-frame"] .cv-header {
  padding: 1.5rem 1.6rem 1.25rem;
  margin: -2.3rem -2.3rem 0;
  border-radius: 30px 30px 0 0;
  border-bottom: 2px solid rgba(62, 98, 202, 0.14);
  background:
    linear-gradient(90deg, rgba(53, 90, 208, 0.1), rgba(233, 106, 174, 0.08)),
    #fdfdff;
}

.cv-sheet[data-design="ribbon-frame"] .cv-role {
  color: #3457c9;
}

.cv-sheet[data-design="ribbon-frame"] .cv-header h2,
.cv-sheet[data-design="ribbon-frame"] .cv-item-title,
.cv-sheet[data-design="ribbon-frame"] .cv-section h3,
.cv-sheet[data-design="ribbon-frame"] .cv-two-column h4 {
  color: #18356d;
}

.cv-sheet[data-design="ribbon-frame"] .cv-design-chip {
  background: #ffffff;
  color: #3457c9;
  border: 1px solid rgba(67, 120, 255, 0.14);
}

.cv-sheet[data-design="ribbon-frame"] .cv-section {
  padding-top: 1.2rem;
}

.cv-sheet[data-design="ribbon-frame"] .cv-section h3 {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 0.85rem;
  padding: 0.48rem 0.92rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf2ff, #fff1f8);
  border: 1px solid rgba(67, 120, 255, 0.14);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  font-family: "Manrope", sans-serif;
}

.cv-sheet[data-design="ribbon-frame"] .cv-profile-card {
  border: 1px solid rgba(67, 120, 255, 0.14);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(244, 247, 255, 0.9);
}

.cv-sheet[data-design="ribbon-frame"] .cv-item {
  border-left: 0;
  padding: 0.85rem 1rem 0.9rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(67, 120, 255, 0.12);
}

.cv-sheet[data-design="ribbon-frame"] .cv-item + .cv-item {
  margin-top: 0.15rem;
}

.cv-sheet[data-design="ribbon-frame"] .cv-skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.9rem;
  padding-left: 1rem;
}

.cv-sheet[data-design="ribbon-frame"] .cv-skill-list li::marker {
  color: #3457c9;
}

.cv-sheet[data-design="ribbon-frame"][data-watermark="on"] .cv-watermark {
  color: rgba(52, 87, 201, 0.12);
}

.cv-sheet[data-design="spotlight"] {
  background:
    linear-gradient(90deg, rgba(155, 77, 47, 0.08) 0, rgba(155, 77, 47, 0.08) 44px, #fff 44px, #fff 100%);
}

.cv-sheet[data-design="spotlight"] .cv-header {
  border-bottom: 2px solid rgba(155, 77, 47, 0.2);
}

.cv-sheet[data-design="spotlight"] .cv-item {
  border-left-width: 5px;
}

.cv-sheet[data-design="spotlight"] .cv-skill-list li::marker {
  color: var(--pb-accent);
}

.cv-sheet[data-design="atlas"] {
  background:
    linear-gradient(90deg, #21384f 0, #21384f 48px, #fffdfa 48px, #fffdfa 100%);
}

.cv-sheet[data-design="atlas"] .cv-header {
  margin-left: 48px;
  padding-left: 1rem;
  border-bottom: 2px solid rgba(33, 56, 79, 0.14);
}

.cv-sheet[data-design="atlas"] .cv-role {
  color: #315778;
}

.cv-sheet[data-design="atlas"] .cv-header h2 {
  color: #21384f;
}

.cv-sheet[data-design="atlas"] .cv-design-chip {
  background: #21384f;
  color: #fffdfa;
}

.cv-sheet[data-design="atlas"] .cv-photo-wrap {
  border-radius: 18px;
  border-color: rgba(33, 56, 79, 0.24);
  box-shadow: 0 16px 28px rgba(33, 56, 79, 0.12);
}

.cv-sheet[data-design="atlas"] .cv-section {
  margin-left: 48px;
  padding: 1.1rem 1rem 0 1rem;
}

.cv-sheet[data-design="atlas"] .cv-section h3 {
  color: #21384f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.cv-sheet[data-design="atlas"] .cv-list {
  gap: 0.75rem;
}

.cv-sheet[data-design="atlas"] .cv-item {
  border-left: 0;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #f4f7fb;
  box-shadow: inset 0 0 0 1px rgba(33, 56, 79, 0.08);
}

.cv-sheet[data-design="atlas"] .cv-item-title {
  color: #21384f;
}

.cv-sheet[data-design="atlas"] .cv-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-left: 0;
  list-style: none;
}

.cv-sheet[data-design="atlas"] .cv-skill-list li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eef3f8;
  color: #21384f;
  font-weight: 700;
}

.cv-sheet[data-design="atlas"][data-watermark="on"] .cv-watermark {
  color: rgba(33, 56, 79, 0.16);
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  * {
    font-size: 10pt !important;
    line-height: 1.3 !important;
  }

  html,
  body {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .no-print,
  .pb-editor {
    display: none !important;
  }

  .pb-shell {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
  }

  .pb-preview-wrap {
    position: static !important;
  }

  .cv-sheet {
    width: auto !important;
    max-width: 210mm !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 5mm 4mm 3mm !important;
    overflow: visible !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .cv-sheet[data-font-theme="modern"],
  .cv-sheet[data-font-theme="modern"] * {
    font-family: "Manrope", sans-serif !important;
  }

  .cv-sheet[data-font-theme="classic"],
  .cv-sheet[data-font-theme="classic"] * {
    font-family: "Fraunces", Georgia, serif !important;
  }

  .cv-sheet[data-font-theme="clean"],
  .cv-sheet[data-font-theme="clean"] * {
    font-family: "Helvetica Neue", Arial, sans-serif !important;
  }

  .cv-sheet[data-design] {
    padding: 5mm 4mm 3mm !important;
  }

  .cv-attachment-page {
    height: 297mm !important;
    margin-top: 0 !important;
    page-break-before: always !important;
    break-before: page !important;
    break-inside: avoid !important;
    padding: 3mm !important;
  }

  .cv-employment-history-page {
    min-height: 297mm !important;
    margin-top: 0 !important;
    page-break-before: always !important;
    break-before: page !important;
    break-inside: avoid !important;
    gap: 4mm !important;
    padding: 5mm 4mm 3mm !important;
  }

  .cv-employment-history-titlebar,
  .cv-employment-history-footer {
    min-height: 18mm !important;
    padding: 3mm 4mm !important;
    border-radius: 10px !important;
  }

  .cv-employment-history-titlebar h2,
  .cv-employment-history-footer strong {
    font-size: 15pt !important;
    line-height: 1.15 !important;
  }

  .cv-employment-history-card {
    border-width: 1px !important;
    border-radius: 14px !important;
  }

  .cv-employment-history-table th,
  .cv-employment-history-table td {
    padding: 3mm !important;
    font-size: 10pt !important;
  }

  .cv-employment-history-table tbody td {
    height: 58mm !important;
    min-height: 58mm !important;
  }

  /* Compact headers */
  .cv-header {
    padding-top: 0.5mm !important;
    padding-bottom: 2mm !important;
    margin-bottom: 2mm !important;
  }

  .cv-header h2 {
    font-size: 18pt !important;
    line-height: 1.1 !important;
    margin-bottom: 0.5mm !important;
  }

  .cv-header-layout {
    gap: 3mm !important;
  }

  .cv-photo-wrap {
    width: 28mm !important;
    height: 34mm !important;
  }

  .cv-photo-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: 32mm !important;
  }

  /* Prevent decorative edge-to-edge headers from getting clipped in print. */
  .cv-sheet[data-design="executive"] .cv-header,
  .cv-sheet[data-design="ribbon-frame"] .cv-header {
    margin: 0 0 2mm !important;
    padding: 4mm 4mm 3mm !important;
    border-radius: 14px !important;
  }

  .cv-sheet[data-design="ribbon-frame"] {
    padding: 6mm 6mm 4mm !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-header {
    padding: 5mm 5mm 4mm !important;
    margin: 0 0 2.5mm !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-header h2 {
    font-size: 19pt !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-role {
    font-size: 10pt !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-meta {
    font-size: 9.6pt !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-section {
    padding-top: 2.2mm !important;
    padding-bottom: 1mm !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-section h3 {
    font-size: 9pt !important;
    margin-bottom: 1.2mm !important;
    padding: 0.85mm 2.4mm !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-list {
    gap: 1.4mm !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-item,
  .cv-sheet[data-design="ribbon-frame"] .cv-free-entry-card {
    padding: 0.2mm 0 !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-item-title {
    font-size: 11pt !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-item-meta,
  .cv-sheet[data-design="ribbon-frame"] .cv-item-detail,
  .cv-sheet[data-design="ribbon-frame"] .cv-mini-list li,
  .cv-sheet[data-design="ribbon-frame"] .cv-skill-list li {
    font-size: 10pt !important;
    line-height: 1.32 !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-two-column {
    gap: 3.2mm !important;
  }

  .cv-sheet[data-design="executive"] {
    padding: 6mm 6mm 4mm !important;
  }

  .cv-sheet[data-design="executive"] .cv-header {
    padding: 5mm 5mm 4mm !important;
    margin: 0 0 2.5mm !important;
  }

  .cv-sheet[data-design="executive"] .cv-header h2 {
    font-size: 19pt !important;
  }

  .cv-sheet[data-design="executive"] .cv-role,
  .cv-sheet[data-design="executive"] .cv-meta {
    font-size: 10pt !important;
  }

  .cv-sheet[data-design="executive"] .cv-section {
    padding-top: 2.1mm !important;
  }

  .cv-sheet[data-design="executive"] .cv-item-title,
  .cv-sheet[data-design="executive"] .cv-item-meta,
  .cv-sheet[data-design="executive"] .cv-item-detail,
  .cv-sheet[data-design="executive"] .cv-mini-list li,
  .cv-sheet[data-design="executive"] .cv-skill-list li {
    font-size: 10pt !important;
    line-height: 1.32 !important;
  }

  .cv-sheet[data-design="ribbon-glow"] {
    padding: 6mm 6mm 4mm !important;
  }

  .cv-sheet[data-design="ribbon-glow"] .cv-header {
    padding-bottom: 3.4mm !important;
    margin-bottom: 2.4mm !important;
  }

  .cv-sheet[data-design="ribbon-glow"] .cv-header h2 {
    font-size: 19pt !important;
  }

  .cv-sheet[data-design="ribbon-glow"] .cv-section {
    padding-top: 2.1mm !important;
  }

  .cv-sheet[data-design="ribbon-glow"] .cv-section h3 {
    font-size: 9pt !important;
    margin-bottom: 1.15mm !important;
    padding: 0.9mm 2.5mm !important;
  }

  .cv-sheet[data-design="ribbon-glow"] .cv-item-title,
  .cv-sheet[data-design="ribbon-glow"] .cv-item-meta,
  .cv-sheet[data-design="ribbon-glow"] .cv-item-detail,
  .cv-sheet[data-design="ribbon-glow"] .cv-mini-list li,
  .cv-sheet[data-design="ribbon-glow"] .cv-skill-list li {
    font-size: 10pt !important;
    line-height: 1.32 !important;
  }

  .cv-sheet[data-design="spotlight"] {
    padding: 6mm 6mm 4mm !important;
  }

  .cv-sheet[data-design="spotlight"] .cv-header h2 {
    font-size: 19pt !important;
  }

  .cv-sheet[data-design="spotlight"] .cv-section {
    padding-top: 2mm !important;
  }

  .cv-sheet[data-design="spotlight"] .cv-item-title,
  .cv-sheet[data-design="spotlight"] .cv-item-meta,
  .cv-sheet[data-design="spotlight"] .cv-item-detail,
  .cv-sheet[data-design="spotlight"] .cv-mini-list li,
  .cv-sheet[data-design="spotlight"] .cv-skill-list li {
    font-size: 10pt !important;
    line-height: 1.32 !important;
  }

  .cv-sheet[data-design="atlas"] {
    padding: 5.5mm 5mm 4mm !important;
    background:
      linear-gradient(90deg, #21384f 0, #21384f 22px, #fffdfa 22px, #fffdfa 100%) !important;
  }

  .cv-sheet[data-design="atlas"] .cv-header,
  .cv-sheet[data-design="atlas"] .cv-section {
    margin-left: 22px !important;
    padding-left: 3.5mm !important;
  }

  .cv-sheet[data-design="atlas"] .cv-header h2 {
    font-size: 18.5pt !important;
  }

  .cv-sheet[data-design="atlas"] .cv-section {
    padding-top: 2mm !important;
  }

  .cv-sheet[data-design="atlas"] .cv-item-title,
  .cv-sheet[data-design="atlas"] .cv-item-meta,
  .cv-sheet[data-design="atlas"] .cv-item-detail,
  .cv-sheet[data-design="atlas"] .cv-mini-list li,
  .cv-sheet[data-design="atlas"] .cv-skill-list li {
    font-size: 10pt !important;
    line-height: 1.3 !important;
  }

  .cv-sheet[data-design="atlas"] {
    background:
      linear-gradient(90deg, #21384f 0, #21384f 18px, #fffdfa 18px, #fffdfa 100%) !important;
  }

  .cv-sheet[data-design="atlas"] .cv-header,
  .cv-sheet[data-design="atlas"] .cv-section {
    margin-left: 18px !important;
    padding-left: 3mm !important;
    padding-right: 0 !important;
  }

  /* Print the decorative layouts in the same neutral style family as Classic. */
  .cv-sheet[data-design="ribbon"],
  .cv-sheet[data-design="ribbon-glow"],
  .cv-sheet[data-design="ribbon-frame"],
  .cv-sheet[data-design="executive"],
  .cv-sheet[data-design="spotlight"],
  .cv-sheet[data-design="atlas"] {
    color: #111 !important;
    background: #fff !important;
  }

  .cv-sheet[data-design="ribbon"] .cv-header,
  .cv-sheet[data-design="ribbon-glow"] .cv-header,
  .cv-sheet[data-design="ribbon-frame"] .cv-header,
  .cv-sheet[data-design="executive"] .cv-header,
  .cv-sheet[data-design="spotlight"] .cv-header,
  .cv-sheet[data-design="atlas"] .cv-header {
    background: #fff !important;
    color: #111 !important;
    border-bottom: 1px solid #cfd7e3 !important;
    box-shadow: none !important;
  }

  .cv-sheet[data-design="ribbon"] .cv-role,
  .cv-sheet[data-design="ribbon"] .cv-header h2,
  .cv-sheet[data-design="ribbon"] .cv-meta,
  .cv-sheet[data-design="ribbon-glow"] .cv-role,
  .cv-sheet[data-design="ribbon-glow"] .cv-header h2,
  .cv-sheet[data-design="ribbon-glow"] .cv-meta,
  .cv-sheet[data-design="ribbon-frame"] .cv-role,
  .cv-sheet[data-design="ribbon-frame"] .cv-header h2,
  .cv-sheet[data-design="ribbon-frame"] .cv-meta,
  .cv-sheet[data-design="executive"] .cv-role,
  .cv-sheet[data-design="executive"] .cv-header h2,
  .cv-sheet[data-design="executive"] .cv-meta,
  .cv-sheet[data-design="spotlight"] .cv-role,
  .cv-sheet[data-design="spotlight"] .cv-header h2,
  .cv-sheet[data-design="spotlight"] .cv-meta,
  .cv-sheet[data-design="atlas"] .cv-role,
  .cv-sheet[data-design="atlas"] .cv-header h2,
  .cv-sheet[data-design="atlas"] .cv-meta,
  .cv-sheet[data-design="ribbon"] .cv-item-title,
  .cv-sheet[data-design="ribbon-glow"] .cv-item-title,
  .cv-sheet[data-design="ribbon-frame"] .cv-item-title,
  .cv-sheet[data-design="executive"] .cv-item-title,
  .cv-sheet[data-design="spotlight"] .cv-item-title,
  .cv-sheet[data-design="atlas"] .cv-item-title,
  .cv-sheet[data-design="ribbon"] .cv-two-column h4,
  .cv-sheet[data-design="ribbon-glow"] .cv-two-column h4,
  .cv-sheet[data-design="ribbon-frame"] .cv-two-column h4,
  .cv-sheet[data-design="executive"] .cv-two-column h4,
  .cv-sheet[data-design="spotlight"] .cv-two-column h4,
  .cv-sheet[data-design="atlas"] .cv-two-column h4 {
    color: #111 !important;
  }

  .cv-sheet[data-design="ribbon"] .cv-design-chip,
  .cv-sheet[data-design="ribbon-glow"] .cv-design-chip,
  .cv-sheet[data-design="ribbon-frame"] .cv-design-chip,
  .cv-sheet[data-design="executive"] .cv-design-chip,
  .cv-sheet[data-design="spotlight"] .cv-design-chip,
  .cv-sheet[data-design="atlas"] .cv-design-chip,
  .cv-sheet[data-design="ribbon"] .cv-section h3,
  .cv-sheet[data-design="ribbon-glow"] .cv-section h3,
  .cv-sheet[data-design="ribbon-frame"] .cv-section h3,
  .cv-sheet[data-design="executive"] .cv-section h3,
  .cv-sheet[data-design="spotlight"] .cv-section h3,
  .cv-sheet[data-design="atlas"] .cv-section h3 {
    background: transparent !important;
    color: #111 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .cv-sheet[data-design="ribbon"] .cv-item,
  .cv-sheet[data-design="ribbon-glow"] .cv-item,
  .cv-sheet[data-design="ribbon-frame"] .cv-item,
  .cv-sheet[data-design="executive"] .cv-item,
  .cv-sheet[data-design="spotlight"] .cv-item,
  .cv-sheet[data-design="atlas"] .cv-item,
  .cv-sheet[data-design="ribbon"] .cv-profile-card,
  .cv-sheet[data-design="ribbon-glow"] .cv-profile-card,
  .cv-sheet[data-design="ribbon-frame"] .cv-profile-card,
  .cv-sheet[data-design="executive"] .cv-profile-card,
  .cv-sheet[data-design="spotlight"] .cv-profile-card,
  .cv-sheet[data-design="atlas"] .cv-profile-card,
  .cv-sheet[data-design="ribbon"] .cv-free-entry-card,
  .cv-sheet[data-design="ribbon-glow"] .cv-free-entry-card,
  .cv-sheet[data-design="ribbon-frame"] .cv-free-entry-card,
  .cv-sheet[data-design="executive"] .cv-free-entry-card,
  .cv-sheet[data-design="spotlight"] .cv-free-entry-card,
  .cv-sheet[data-design="atlas"] .cv-free-entry-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .cv-sheet[data-design="ribbon"] .cv-skill-list li,
  .cv-sheet[data-design="ribbon-glow"] .cv-skill-list li,
  .cv-sheet[data-design="ribbon-frame"] .cv-skill-list li,
  .cv-sheet[data-design="executive"] .cv-skill-list li,
  .cv-sheet[data-design="spotlight"] .cv-skill-list li,
  .cv-sheet[data-design="atlas"] .cv-skill-list li,
  .cv-sheet[data-design="ribbon"] .cv-mini-list li,
  .cv-sheet[data-design="ribbon-glow"] .cv-mini-list li,
  .cv-sheet[data-design="ribbon-frame"] .cv-mini-list li,
  .cv-sheet[data-design="executive"] .cv-mini-list li,
  .cv-sheet[data-design="spotlight"] .cv-mini-list li,
  .cv-sheet[data-design="atlas"] .cv-mini-list li,
  .cv-sheet[data-design="ribbon"] .cv-item-meta,
  .cv-sheet[data-design="ribbon-glow"] .cv-item-meta,
  .cv-sheet[data-design="ribbon-frame"] .cv-item-meta,
  .cv-sheet[data-design="executive"] .cv-item-meta,
  .cv-sheet[data-design="spotlight"] .cv-item-meta,
  .cv-sheet[data-design="atlas"] .cv-item-meta,
  .cv-sheet[data-design="ribbon"] .cv-item-detail,
  .cv-sheet[data-design="ribbon-glow"] .cv-item-detail,
  .cv-sheet[data-design="ribbon-frame"] .cv-item-detail,
  .cv-sheet[data-design="executive"] .cv-item-detail,
  .cv-sheet[data-design="spotlight"] .cv-item-detail,
  .cv-sheet[data-design="atlas"] .cv-item-detail {
    color: #111 !important;
  }

  .cv-sheet[data-design="ribbon"] .cv-photo-wrap,
  .cv-sheet[data-design="ribbon-glow"] .cv-photo-wrap,
  .cv-sheet[data-design="ribbon-frame"] .cv-photo-wrap,
  .cv-sheet[data-design="executive"] .cv-photo-wrap,
  .cv-sheet[data-design="spotlight"] .cv-photo-wrap,
  .cv-sheet[data-design="atlas"] .cv-photo-wrap {
    border-color: #cfd7e3 !important;
    box-shadow: none !important;
  }

  /* Safe A4 print baseline for all non-classic styled templates. */
  .cv-sheet[data-design="abroad"],
  .cv-sheet[data-design="domestic"],
  .cv-sheet[data-design="skilled"],
  .cv-sheet[data-design="minimal"],
  .cv-sheet[data-design="ribbon"],
  .cv-sheet[data-design="ribbon-glow"],
  .cv-sheet[data-design="ribbon-frame"],
  .cv-sheet[data-design="executive"],
  .cv-sheet[data-design="spotlight"],
  .cv-sheet[data-design="atlas"] {
    padding: 5mm 4mm 3mm !important;
    background: #fff !important;
    color: #111 !important;
  }

  .cv-sheet[data-design="abroad"] .cv-header,
  .cv-sheet[data-design="domestic"] .cv-header,
  .cv-sheet[data-design="skilled"] .cv-header,
  .cv-sheet[data-design="minimal"] .cv-header,
  .cv-sheet[data-design="ribbon"] .cv-header,
  .cv-sheet[data-design="ribbon-glow"] .cv-header,
  .cv-sheet[data-design="ribbon-frame"] .cv-header,
  .cv-sheet[data-design="executive"] .cv-header,
  .cv-sheet[data-design="spotlight"] .cv-header,
  .cv-sheet[data-design="atlas"] .cv-header {
    margin: 0 0 2mm !important;
    padding: 0 0 2mm !important;
    border-radius: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #cfd7e3 !important;
    box-shadow: none !important;
  }

  .cv-sheet[data-design="abroad"] .cv-section,
  .cv-sheet[data-design="domestic"] .cv-section,
  .cv-sheet[data-design="skilled"] .cv-section,
  .cv-sheet[data-design="minimal"] .cv-section,
  .cv-sheet[data-design="ribbon"] .cv-section,
  .cv-sheet[data-design="ribbon-glow"] .cv-section,
  .cv-sheet[data-design="ribbon-frame"] .cv-section,
  .cv-sheet[data-design="executive"] .cv-section,
  .cv-sheet[data-design="spotlight"] .cv-section,
  .cv-sheet[data-design="atlas"] .cv-section {
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 1.2mm !important;
  }

  .cv-sheet[data-design="abroad"] .cv-section h3,
  .cv-sheet[data-design="domestic"] .cv-section h3,
  .cv-sheet[data-design="skilled"] .cv-section h3,
  .cv-sheet[data-design="minimal"] .cv-section h3,
  .cv-sheet[data-design="ribbon"] .cv-section h3,
  .cv-sheet[data-design="ribbon-glow"] .cv-section h3,
  .cv-sheet[data-design="ribbon-frame"] .cv-section h3,
  .cv-sheet[data-design="executive"] .cv-section h3,
  .cv-sheet[data-design="spotlight"] .cv-section h3,
  .cv-sheet[data-design="atlas"] .cv-section h3 {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin-bottom: 0.7mm !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #111 !important;
    font-size: 11pt !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

  .cv-sheet[data-design="abroad"] .cv-profile-card,
  .cv-sheet[data-design="domestic"] .cv-profile-card,
  .cv-sheet[data-design="skilled"] .cv-profile-card,
  .cv-sheet[data-design="minimal"] .cv-profile-card,
  .cv-sheet[data-design="abroad"] .cv-item,
  .cv-sheet[data-design="domestic"] .cv-item,
  .cv-sheet[data-design="skilled"] .cv-item,
  .cv-sheet[data-design="minimal"] .cv-item {
    background: transparent !important;
    box-shadow: none !important;
  }

  #fullPhotoCard {
    max-height: 80mm !important;
  }

  #fullPhotoCard .photo-frame {
    height: 65mm !important;
    overflow: hidden !important;
  }

  /* Tight sections */
  .cv-section {
    padding-top: 1.2mm !important;
    padding-bottom: 0.6mm !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
  }

  .cv-section h3 {
    font-size: 11pt !important;
    margin-bottom: 0.7mm !important;
    padding-bottom: 0.2mm !important;
  }

  .cv-list {
    gap: 0.8mm !important;
  }

  .cv-item {
    padding-left: 3mm !important;
    margin-bottom: 1mm !important;
  }

  .cv-item-title {
    font-size: 10.5pt !important;
    font-weight: 700 !important;
  }

  .cv-item-meta, .cv-item-detail {
    font-size: 9.5pt !important;
  }

  [data-preview-editable="true"],
  .cv-free-entry-content[data-preview-editable="true"] {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  [data-preview-editable="true"]::after,
  [data-preview-editable="true"]::before,
  .cv-photo-wrap::before,
  .cv-photo-wrap::after {
    display: none !important;
    content: none !important;
  }

  .cv-free-entry-card,
  .cv-work-entry {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .cv-skill-list {
    gap: 0.8mm !important;
    column-gap: 4mm !important;
  }

  .cv-skill-list li {
    font-size: 10pt !important;
    margin-bottom: 0.5mm !important;
  }

  /* Profile cards compact */
  .cv-profile-grid {
    gap: 1.5mm !important;
  }

  .cv-profile-card {
    padding: 2mm !important;
    font-size: 9.5pt !important;
  }

  /* Languages compact */
  .cv-two-column {
    gap: 2mm !important;
    column-gap: 3mm !important;
  }

  .cv-two-column h4 {
    font-size: 10pt !important;
    margin-bottom: 1mm !important;
  }

  .cv-mini-list {
    gap: 0.5mm !important;
  }

  .cv-mini-list li {
    font-size: 9.8pt !important;
    line-height: 1.25 !important;
  }

  /* Watermark small */
  .cv-watermark {
    font-size: 14pt !important;
    opacity: 0.2 !important;
  }

  /* Hide/show rules */
  .cv-design-chip {
    display: none !important;
  }

  .cv-header,
  .cv-section,
  .cv-item {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Natural flow layout */
  .cv-sections {
    display: block !important;
  }

  .cv-section {
    display: block !important;
  }

  .cv-section[data-print-empty="true"] {
    display: none !important;
  }

  .cv-free-entry-card[data-print-empty-entry="true"] {
    display: none !important;
  }

  /* Final print lock: keep all templates in one safe monochrome A4 style. */
  .cv-sheet,
  .cv-sheet[data-design],
  .cv-sheet[data-design="abroad"],
  .cv-sheet[data-design="domestic"],
  .cv-sheet[data-design="skilled"],
  .cv-sheet[data-design="minimal"],
  .cv-sheet[data-design="classic"],
  .cv-sheet[data-design="traditional"],
  .cv-sheet[data-design="ribbon"],
  .cv-sheet[data-design="ribbon-glow"],
  .cv-sheet[data-design="ribbon-frame"],
  .cv-sheet[data-design="executive"],
  .cv-sheet[data-design="spotlight"],
  .cv-sheet[data-design="atlas"] {
    width: auto !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    padding: 8mm 8mm 7mm !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #111 !important;
  }

  .cv-header,
  .cv-sheet[data-design] .cv-header,
  .cv-sheet[data-design="abroad"] .cv-header,
  .cv-sheet[data-design="domestic"] .cv-header,
  .cv-sheet[data-design="skilled"] .cv-header,
  .cv-sheet[data-design="minimal"] .cv-header,
  .cv-sheet[data-design="classic"] .cv-header,
  .cv-sheet[data-design="traditional"] .cv-header,
  .cv-sheet[data-design="ribbon"] .cv-header,
  .cv-sheet[data-design="ribbon-glow"] .cv-header,
  .cv-sheet[data-design="ribbon-frame"] .cv-header,
  .cv-sheet[data-design="executive"] .cv-header,
  .cv-sheet[data-design="spotlight"] .cv-header,
  .cv-sheet[data-design="atlas"] .cv-header {
    margin: 0 0 2.5mm !important;
    padding: 0 0 2.5mm !important;
    border: 0 !important;
    border-bottom: 1px solid #cfd7e3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #111 !important;
  }

  .cv-role,
  .cv-header h2,
  .cv-meta,
  .cv-item-title,
  .cv-item-org,
  .cv-item-dates,
  .cv-item-meta,
  .cv-item-detail,
  .cv-section h3,
  .cv-two-column h4,
  .cv-profile-card strong,
  .cv-profile-card span,
  .cv-skill-list li,
  .cv-mini-list li,
  .cv-file-card strong,
  .cv-file-card p,
  .cv-employment-history-titlebar,
  .cv-employment-history-footer,
  .cv-employment-history-titlebar h2,
  .cv-employment-history-footer strong,
  .cv-employment-history-table th,
  .cv-employment-history-table td {
    color: #111 !important;
  }

  .cv-role,
  .cv-section h3,
  .cv-two-column h4,
  .cv-profile-card span {
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

  .cv-design-chip,
  .cv-watermark {
    display: none !important;
  }

  .cv-section h3,
  .cv-sheet[data-design] .cv-section h3 {
    display: block !important;
    min-height: 0 !important;
    margin: 0 0 1mm !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    font-size: 11pt !important;
    font-weight: 700 !important;
  }

  .cv-section,
  .cv-sheet[data-design] .cv-section {
    margin-left: 0 !important;
    padding: 0.7mm 0 0 !important;
  }

  .cv-section-bar {
    margin-bottom: 0.25mm !important;
  }

  #experienceSection .cv-section-bar,
  #educationSection .cv-section-bar {
    margin-bottom: 0 !important;
  }

  .cv-list,
  .cv-sheet[data-design] .cv-list {
    gap: 0.45mm !important;
  }

  #experienceSection .cv-list,
  #educationSection .cv-list {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .cv-item,
  .cv-profile-card,
  .cv-free-entry-card,
  .cv-work-entry,
  .cv-file-card,
  .cv-sheet[data-design] .cv-item,
  .cv-sheet[data-design] .cv-profile-card,
  .cv-sheet[data-design] .cv-free-entry-card,
  .cv-sheet[data-design] .cv-work-entry,
  .cv-sheet[data-design] .cv-file-card {
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .cv-photo-wrap,
  .cv-sheet[data-design] .cv-photo-wrap {
    width: 28mm !important;
    height: 34mm !important;
    border: 1px solid #cfd7e3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .cv-photo-wrap img {
    object-fit: cover !important;
  }

  /* Keep only text-color accents in print so preview and PDF stay close. */
  .cv-sheet[data-design="ribbon-glow"] .cv-role,
  .cv-sheet[data-design="ribbon-glow"] .cv-header h2,
  .cv-sheet[data-design="ribbon-glow"] .cv-section h3,
  .cv-sheet[data-design="ribbon-glow"] .cv-two-column h4,
  .cv-sheet[data-design="ribbon-glow"] .cv-item-title {
    color: #3555d1 !important;
  }

  .cv-sheet[data-design="ribbon-frame"] .cv-role,
  .cv-sheet[data-design="ribbon-frame"] .cv-header h2,
  .cv-sheet[data-design="ribbon-frame"] .cv-section h3,
  .cv-sheet[data-design="ribbon-frame"] .cv-two-column h4,
  .cv-sheet[data-design="ribbon-frame"] .cv-item-title {
    color: #3457c9 !important;
  }

  .cv-sheet[data-design="executive"] .cv-role,
  .cv-sheet[data-design="executive"] .cv-header h2,
  .cv-sheet[data-design="executive"] .cv-section h3,
  .cv-sheet[data-design="executive"] .cv-two-column h4,
  .cv-sheet[data-design="executive"] .cv-item-title {
    color: #1f3b6d !important;
  }

  .cv-sheet[data-design="spotlight"] .cv-role,
  .cv-sheet[data-design="spotlight"] .cv-header h2,
  .cv-sheet[data-design="spotlight"] .cv-section h3,
  .cv-sheet[data-design="spotlight"] .cv-two-column h4,
  .cv-sheet[data-design="spotlight"] .cv-item-title {
    color: #7b4b2f !important;
  }

  .cv-sheet[data-design="atlas"] .cv-role,
  .cv-sheet[data-design="atlas"] .cv-header h2,
  .cv-sheet[data-design="atlas"] .cv-section h3,
  .cv-sheet[data-design="atlas"] .cv-two-column h4,
  .cv-sheet[data-design="atlas"] .cv-item-title {
    color: #28476a !important;
  }
}

@media screen and (max-width: 980px) {
  .pb-topbar {
    position: static;
  }

  .pb-topbar-inner,
  .pb-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .pb-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1rem;
  }

  .pb-mobile-builder .pb-mobile-switcher {
    width: min(100%, calc(100% - 1rem));
    margin: 0 auto 0.9rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .pb-preview-wrap {
    position: static;
  }

  .pb-grid,
  .pb-form,
  .pb-topbar-inner,
  .pb-section-head,
  .pb-template-groups,
  .pb-guide-grid,
  .pb-premium-grid {
    grid-template-columns: 1fr;
  }

  #cvSummary,
  #cvExperience,
  #cvEducation,
  #cvSkills,
  textarea {
    min-height: 180px;
  }

  .pb-topbar-inner,
  .pb-section-head {
    display: grid;
  }

  .pb-topbar-inner {
    padding: 0.9rem 0;
    gap: 0.75rem;
  }

  .pb-topbar h1 {
    font-size: 1.55rem;
  }

  .pb-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .pb-actions .pb-btn:last-child {
    grid-column: 1 / -1;
  }

  .pb-mobile-builder #toggleBuilderBtn,
  .pb-mobile-builder .pb-rich-toolbar {
    display: none !important;
  }

  .pb-mobile-builder .pb-shell[data-mobile-mode="edit"] .pb-preview-wrap {
    display: none;
  }

  .pb-mobile-builder .pb-shell[data-mobile-mode="preview"] .pb-editor {
    display: none !important;
  }

  .pb-mobile-builder .pb-shell[data-mobile-mode="preview"] .pb-preview-wrap {
    display: block;
  }

  .pb-mobile-builder .pb-preview-head {
    margin-bottom: 0.7rem;
  }

  .pb-panel {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .pb-toolbar-field,
  .pb-plan-actions,
  .pb-plan-link,
  .pb-upgrade-btn {
    width: 100%;
  }

  .pb-plan-actions {
    justify-items: start;
    min-width: 0;
  }

  .pb-plan-link,
  .pb-upgrade-btn {
    min-height: 48px;
  }

  .pb-plan-banner,
  .pb-upgrade-strip {
    display: grid;
  }

  .cv-header-layout {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 1rem;
  }

  .cv-sheet {
    min-height: 0;
    border-radius: 26px;
    padding: 1.5rem;
  }

  .cv-header h2 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .cv-meta {
    line-height: 1.55;
  }

  .cv-photo-wrap,
  .cv-sheet[data-photo-style="round"] .cv-photo-wrap {
    width: 112px;
  }

  .cv-sheet[data-design="executive"] .cv-header {
    margin: -1.5rem -1.5rem 0;
    padding: 1.5rem 1.5rem 1.2rem;
    border-radius: 26px 26px 0 0;
  }

  .cv-sheet[data-design="atlas"] {
    background:
      linear-gradient(90deg, #21384f 0, #21384f 40px, #fffdfa 40px, #fffdfa 100%);
  }

  .cv-sheet[data-design="atlas"] .cv-header {
    margin-left: 40px;
    padding-left: 0.85rem;
  }

  .cv-sheet[data-design="atlas"] .cv-section {
    margin-left: 40px;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

@media screen and (max-width: 720px) {
  .pb-topbar h1 {
    font-size: 1.7rem;
  }

  .pb-actions > * {
    flex-basis: 100%;
  }

  .pb-panel {
    padding: 1rem;
    border-radius: 22px;
  }

  .pb-guide-card,
  .pb-example-box,
  .pb-premium-grid article,
  .pb-guide-toggle {
    padding: 0.85rem 0.9rem;
  }

  .pb-print-tip,
  .pb-help,
  .pb-field-tip {
    font-size: 0.92rem;
  }

  .cv-sheet {
    padding: 1.15rem;
    border-radius: 22px;
  }

  .cv-header-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cv-photo-wrap,
  .cv-sheet[data-photo-style="round"] .cv-photo-wrap {
    width: min(116px, 38vw);
    justify-self: start;
  }

  .cv-header {
    padding-bottom: 1.1rem;
  }

  .cv-section {
    padding-top: 1.1rem;
  }

  .cv-sheet[data-design="executive"] .cv-header {
    margin: -1.15rem -1.15rem 0;
    padding: 1.15rem 1.15rem 1rem;
    border-radius: 22px 22px 0 0;
  }

  .cv-sheet[data-design="traditional"] .cv-header-layout {
    grid-template-columns: 1fr;
  }

  .cv-sheet[data-design="traditional"] .cv-photo-wrap {
    width: min(110px, 36vw);
  }

  .cv-sheet[data-design="traditional"] .cv-skill-list {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cv-sheet[data-design="spotlight"] {
    background:
      linear-gradient(90deg, rgba(155, 77, 47, 0.08) 0, rgba(155, 77, 47, 0.08) 26px, #fff 26px, #fff 100%);
  }

  .cv-sheet[data-design="atlas"] {
    background:
      linear-gradient(90deg, #21384f 0, #21384f 28px, #fffdfa 28px, #fffdfa 100%);
  }

  .cv-sheet[data-design="atlas"] .cv-header {
    margin-left: 28px;
    padding-left: 0.75rem;
  }

  .cv-sheet[data-design="atlas"] .cv-section {
    margin-left: 28px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .cv-sheet[data-design="atlas"] .cv-item {
    padding: 0.8rem 0.85rem;
    border-radius: 16px;
  }
}

@media screen and (max-width: 480px) {
  .pb-topbar-inner,
  .pb-shell {
    width: min(100%, calc(100% - 0.75rem));
  }

  .pb-topbar h1 {
    font-size: 1.45rem;
  }

  .pb-kicker {
    font-size: 0.72rem;
  }

  .pb-grid {
    gap: 0.85rem;
  }

  input,
  select,
  textarea {
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
  }

  .cv-sheet {
    padding: 1rem;
    border-radius: 20px;
  }

  .cv-role {
    font-size: 0.76rem;
  }

  .cv-header h2 {
    font-size: 1.65rem;
  }

  .cv-meta {
    margin-top: 0.55rem;
    font-size: 0.94rem;
  }

  .cv-design-chip {
    margin-top: 0.8rem;
  }

  .cv-watermark {
    font-size: clamp(1.85rem, 11vw, 3rem);
  }

  .cv-sheet[data-design="executive"] .cv-header {
    margin: -1rem -1rem 0;
    padding: 1rem 1rem 0.9rem;
    border-radius: 20px 20px 0 0;
  }

  .cv-sheet[data-design="atlas"] .cv-header,
  .cv-sheet[data-design="atlas"] .cv-section {
    margin-left: 24px;
  }

  .cv-sheet[data-design="atlas"] {
    background:
      linear-gradient(90deg, #21384f 0, #21384f 24px, #fffdfa 24px, #fffdfa 100%);
  }
}

:root {
  --pb-bg: #f4f7fc;
  --pb-surface: #f9fbff;
  --pb-paper: #ffffff;
  --pb-ink: #1d2b42;
  --pb-muted: #62728a;
  --pb-line: #d8e0ec;
  --pb-accent: #496fff;
  --pb-accent-dark: #213c8f;
  --pb-shadow: 0 18px 40px rgba(24, 44, 77, 0.08);
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 196, 204, 0.08) 0, transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(73, 111, 255, 0.1) 0, transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.pb-topbar {
  border-bottom-color: rgba(212, 221, 234, 0.94);
  background: rgba(249, 251, 255, 0.9);
}

.pb-topbar h1,
.pb-panel h2,
.pb-panel h3,
.cv-header h2,
.cv-section h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.pb-topbar-inner,
.pb-shell {
  width: min(1440px, calc(100% - 2rem));
}

.pb-topbar-inner {
  padding: 0.9rem 0;
}

.pb-kicker {
  color: #5d73a6;
}

.pb-actions {
  gap: 0.6rem;
}

.pb-link-btn,
.pb-btn,
.pb-plan-link,
.pb-upgrade-btn,
.pb-upgrade-strip a,
.pb-mini-btn {
  border-radius: 14px;
}

.pb-link-btn {
  min-height: 46px;
  padding: 0.75rem 0.95rem;
  border-color: #d7e1ef;
  background: #ffffff;
  color: #304463;
  box-shadow: none;
}

.pb-btn {
  min-height: 46px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #1c7cff, #496fff 58%, #00b8d4);
  box-shadow: 0 14px 28px rgba(40, 84, 170, 0.2);
}

.pb-btn-secondary {
  border: 1px solid #d7e1ef;
  background: #eff5ff;
  color: #27457c;
}

.pb-link-btn:hover {
  background: #f3f7fe;
}

.pb-shell {
  grid-template-columns: minmax(320px, 0.74fr) minmax(700px, 1.26fr);
  gap: 1.1rem;
  padding-top: 1.15rem;
}

.pb-panel {
  border-radius: 24px;
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
}

.pb-panel-intro,
.pb-plan-banner,
.pb-premium-panel {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 196, 204, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
}

.pb-section-head {
  margin-bottom: 0.75rem;
}

.pb-help,
#builderLead,
#builderMessage,
.cv-meta,
.cv-section p,
.cv-item-meta,
.cv-item-detail {
  color: var(--pb-muted);
}

.pb-toolbar-field span {
  color: #304463;
}

.pb-toolbar-field,
.pb-plan-actions {
  min-width: 0;
}

.pb-guide-card,
.pb-example-box,
.pb-premium-grid article,
.pb-guide-toggle {
  border-color: rgba(214, 223, 236, 0.96);
  background: rgba(255, 255, 255, 0.94);
}

input,
select,
textarea {
  border-color: #d7e0ec;
  border-radius: 16px;
  background: #fff;
}

.pb-page-check,
.pb-upgrade-strip {
  border-radius: 16px;
}

.pb-preview-wrap {
  top: 88px;
}

.pb-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.8rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(212, 221, 234, 0.94);
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(73, 111, 255, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(24, 44, 77, 0.07);
}

.pb-shell.builder-hidden .pb-preview-head {
  align-items: center;
}

.pb-preview-note {
  margin: 0;
  color: var(--pb-muted);
  line-height: 1.55;
}

.pb-preview-copy {
  max-width: 460px;
  display: grid;
  gap: 0.45rem;
}

.pb-preview-guide {
  margin: 0;
  color: var(--pb-accent-dark);
  line-height: 1.5;
  font-size: 0.92rem;
}

.cv-sheet {
  border-color: rgba(212, 221, 234, 0.94);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(73, 111, 255, 0.04), transparent 18%),
    var(--pb-paper);
  box-shadow: 0 26px 56px rgba(24, 44, 77, 0.12);
}

.cv-role {
  color: var(--pb-accent);
}

.cv-design-chip {
  background: #eef4ff;
  color: var(--pb-accent-dark);
}

.cv-photo-wrap {
  border-color: rgba(73, 111, 255, 0.14);
  background: linear-gradient(180deg, #edf3ff, #e5edf8);
}

.cv-item {
  border-left-color: rgba(73, 111, 255, 0.3);
}

#cvOverseasExperience {
  min-height: 220px;
}

#cvLanguages,
#cvCertifications {
  min-height: 180px;
}

.cv-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.cv-profile-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #f4f8fc;
  box-shadow: inset 0 0 0 1px rgba(73, 111, 255, 0.1);
}

.cv-profile-card span {
  color: var(--pb-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-profile-card strong {
  color: var(--pb-ink);
  font-size: 0.98rem;
}

.cv-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cv-two-column h4 {
  margin: 0 0 0.55rem;
  color: var(--pb-accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-mini-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.cv-mini-list li {
  color: var(--pb-ink);
  font-weight: 600;
  line-height: 1.42;
}

.cv-sections {
  display: grid;
}

.cv-sheet[data-layout="split"] .cv-sections {
  grid-template-columns: minmax(0, 1.34fr) minmax(230px, 0.82fr);
  column-gap: 1.15rem;
  grid-auto-flow: row dense;
  align-items: start;
}

.cv-sheet[data-layout="split"] .cv-section[data-track="full"] {
  grid-column: 1 / -1;
}

.cv-sheet[data-layout="split"] .cv-section[data-track="main"] {
  grid-column: 1;
}

.cv-sheet[data-layout="split"] .cv-section[data-track="side"] {
  grid-column: 2;
  align-self: start;
}

.cv-sheet[data-layout="single-compact"] {
  padding: 2rem;
}

.cv-sheet[data-layout="single-compact"] .cv-header {
  padding-bottom: 1.15rem;
}

.cv-sheet[data-layout="single-compact"] .cv-section {
  padding-top: 1rem;
}

.cv-sheet[data-layout="single-compact"] .cv-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.cv-sheet[data-layout="single-compact"] .cv-profile-card,
.cv-sheet[data-layout="single-compact"] .cv-item,
.cv-sheet[data-layout="single-compact"] .cv-file-card {
  border-radius: 16px;
}

.cv-sheet[data-photo-visibility="off"] .cv-header-layout {
  grid-template-columns: 1fr;
}

.cv-sheet[data-photo-visibility="off"] .cv-photo-wrap {
  display: none !important;
}

.cv-sheet[data-design="abroad"] {
  background:
    linear-gradient(180deg, rgba(18, 60, 108, 0.05), transparent 18%),
    var(--pb-paper);
  box-shadow: 0 26px 56px rgba(18, 34, 56, 0.13);
}

.cv-sheet[data-design="abroad"] .cv-header {
  border-bottom: 2px solid rgba(18, 60, 108, 0.14);
}

.cv-sheet[data-design="abroad"] .cv-role {
  color: #1f558f;
}

.cv-sheet[data-design="abroad"] .cv-design-chip {
  background: #e9f1fb;
  color: #123c6c;
}

.cv-sheet[data-design="abroad"] .cv-photo-wrap {
  border-color: rgba(18, 60, 108, 0.16);
  background: linear-gradient(180deg, #eef4fb, #e0ecf7);
}

.cv-sheet[data-design="abroad"] .cv-item {
  border-left-color: rgba(18, 60, 108, 0.26);
}

.cv-sheet[data-design="abroad"] .cv-section h3 {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f63d4, #4e6fff 58%, #ea69af);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  font-family: "Manrope", sans-serif;
  box-shadow: 0 12px 24px rgba(69, 93, 205, 0.18);
}

.cv-sheet[data-design="abroad"] .cv-two-column h4 {
  color: #123c6c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cv-sheet[data-design="domestic"] {
  background:
    linear-gradient(180deg, rgba(67, 111, 92, 0.08), transparent 22%),
    var(--pb-paper);
  box-shadow: 0 26px 56px rgba(35, 63, 50, 0.14);
}

.cv-sheet[data-design="domestic"] .cv-header {
  border-bottom: 2px solid rgba(67, 111, 92, 0.18);
}

.cv-sheet[data-design="domestic"] .cv-role,
.cv-sheet[data-design="domestic"] .cv-two-column h4,
.cv-sheet[data-design="domestic"] .cv-profile-card strong {
  color: #2f5f48;
}

.cv-sheet[data-design="domestic"] .cv-section h3 {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f6b54, #548c6e 58%, #de73aa);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  font-family: "Manrope", sans-serif;
  box-shadow: 0 12px 24px rgba(74, 111, 92, 0.18);
}

.cv-sheet[data-design="domestic"] .cv-design-chip {
  background: #e6f1ea;
  color: #2f5f48;
}

.cv-sheet[data-design="domestic"] .cv-profile-card {
  background: #f7fbf8;
  border-color: rgba(67, 111, 92, 0.14);
}

.cv-sheet[data-design="domestic"] .cv-item {
  border-left-color: rgba(67, 111, 92, 0.28);
}

.cv-sheet[data-design="domestic"] .cv-photo-wrap {
  border-color: rgba(67, 111, 92, 0.16);
  background: linear-gradient(180deg, #eff7f2, #e0ece5);
}

.cv-sheet[data-design="domestic"][data-layout="split"] .cv-section[data-track="side"] {
  background: #fbfdfb;
  border: 1px solid rgba(67, 111, 92, 0.12);
  border-radius: 22px;
  padding: 1.1rem;
  margin-top: 1.45rem;
}

.cv-sheet[data-design="skilled"] {
  background:
    linear-gradient(180deg, rgba(36, 64, 90, 0.08), transparent 22%),
    var(--pb-paper);
  box-shadow: 0 26px 56px rgba(22, 36, 54, 0.14);
}

.cv-sheet[data-design="skilled"] .cv-header {
  border-bottom: 2px solid rgba(36, 64, 90, 0.18);
}

.cv-sheet[data-design="skilled"] .cv-role,
.cv-sheet[data-design="skilled"] .cv-section h3,
.cv-sheet[data-design="skilled"] .cv-two-column h4,
.cv-sheet[data-design="skilled"] .cv-profile-card strong,
.cv-sheet[data-design="skilled"] .cv-item-title {
  color: #1f4564;
}

.cv-sheet[data-design="skilled"] .cv-design-chip {
  background: #e8f0f7;
  color: #1f4564;
}

.cv-sheet[data-design="skilled"] .cv-item {
  border-left-color: rgba(201, 111, 36, 0.45);
}

.cv-sheet[data-design="skilled"] .cv-profile-card {
  background: #f7fafc;
  border-color: rgba(36, 64, 90, 0.14);
}

.cv-sheet[data-design="skilled"][data-layout="split"] .cv-section[data-track="side"] {
  background:
    linear-gradient(180deg, rgba(244, 248, 252, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(36, 64, 90, 0.12);
  border-radius: 22px;
  padding: 1.1rem;
  margin-top: 1.45rem;
}

.cv-sheet[data-design="skilled"][data-layout="split"] .cv-profile-grid {
  grid-template-columns: 1fr;
}

.cv-sheet[data-design="minimal"] {
  background: #fff;
  border-radius: 20px;
  border-color: rgba(31, 45, 42, 0.12);
  box-shadow: 0 18px 36px rgba(31, 45, 42, 0.08);
}

.cv-sheet[data-design="minimal"] .cv-header {
  border-bottom: 1px solid rgba(31, 45, 42, 0.14);
}

.cv-sheet[data-design="minimal"] .cv-role,
.cv-sheet[data-design="minimal"] .cv-section h3,
.cv-sheet[data-design="minimal"] .cv-two-column h4 {
  color: #20313d;
}

.cv-sheet[data-design="minimal"] .cv-design-chip {
  margin-top: 0.8rem;
  background: #eef1f4;
  color: #20313d;
}

.cv-sheet[data-design="minimal"] .cv-item {
  border-left-color: rgba(32, 49, 61, 0.18);
}

.cv-sheet[data-design="minimal"] .cv-skill-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

.cv-sheet[data-design="minimal"] .cv-profile-card {
  padding: 0.85rem 0.9rem;
  background: #f7f8fa;
  border-color: rgba(32, 49, 61, 0.08);
}

.cv-attachment-page {
  margin-top: 1rem;
}

.cv-employment-history-page {
  margin-top: 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
}

.cv-employment-history-head {
  padding-bottom: 0;
}

.cv-employment-history-titlebar,
.cv-employment-history-footer {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 1rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #43a9dd, #61c0ea);
  color: #08243b;
}

.cv-employment-history-titlebar h2,
.cv-employment-history-footer strong {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  text-align: center;
}

.cv-employment-history-card {
  min-height: 0;
  border: 2px solid rgba(31, 45, 42, 0.18);
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
}

.cv-employment-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cv-employment-history-table th,
.cv-employment-history-table td {
  width: 33.333%;
  padding: 1rem 1.15rem;
  border-right: 1px solid rgba(31, 45, 42, 0.2);
  border-bottom: 1px solid rgba(31, 45, 42, 0.2);
  vertical-align: top;
  text-align: left;
}

.cv-employment-history-table th:last-child,
.cv-employment-history-table td:last-child {
  border-right: 0;
}

.cv-employment-history-table thead th {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  background: rgba(255, 255, 255, 0.98);
}

.cv-employment-history-table tbody td {
  min-height: 170px;
  height: 170px;
  color: var(--pb-ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.cv-employment-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.cv-employment-history-table tbody tr.is-placeholder td {
  color: rgba(31, 45, 42, 0.42);
}

.cv-attachment-page.is-hidden,
.cv-attachment-frame.is-hidden,
.cv-file-card.is-hidden {
  display: none;
}

.cv-attachment-head {
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(18, 60, 108, 0.14);
}

.cv-attachment-body {
  padding-top: 1.25rem;
}

.cv-attachment-frame {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.cv-attachment-frame img {
  width: 100%;
  max-height: 980px;
  object-fit: contain;
  border: 1px solid rgba(73, 111, 255, 0.12);
  border-radius: 18px;
  background: #f8fbff;
}

.cv-attachment-frame figcaption {
  color: var(--pb-muted);
  font-weight: 700;
}

.cv-file-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed rgba(18, 60, 108, 0.24);
  background: #f4f8fc;
}

.cv-file-card strong {
  color: #123c6c;
}

.cv-file-card p {
  margin: 0;
  color: var(--pb-muted);
}

.cv-sheet[data-design="spotlight"] {
  background:
    linear-gradient(90deg, rgba(73, 111, 255, 0.08) 0, rgba(73, 111, 255, 0.08) 44px, #fff 44px, #fff 100%);
}

.cv-sheet[data-design="executive"] .cv-header {
  background: #1f3b6d;
}

.cv-sheet[data-design="atlas"] {
  background:
    linear-gradient(90deg, #28476a 0, #28476a 48px, #fff 48px, #fff 100%);
}

.cv-sheet[data-design="atlas"] .cv-header h2,
.cv-sheet[data-design="atlas"] .cv-item-title,
.cv-sheet[data-design="atlas"] .cv-section h3 {
  color: #28476a;
}

@media screen and (max-width: 980px) {
  .pb-preview-head {
    display: grid;
    align-items: start;
  }

  .pb-shell {
    grid-template-columns: 1fr;
  }

  .cv-sheet[data-layout="split"] .cv-sections {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .cv-sheet[data-layout="split"] .cv-section[data-track="full"],
  .cv-sheet[data-layout="split"] .cv-section[data-track="main"],
  .cv-sheet[data-layout="split"] .cv-section[data-track="side"] {
    grid-column: 1;
  }

  .pb-grid-three,
  .cv-profile-grid,
  .cv-two-column {
    grid-template-columns: 1fr;
  }

  .pb-attachment-head {
    display: grid;
  }

  .cv-employment-history-table th,
  .cv-employment-history-table td {
    padding: 0.85rem;
  }

  .cv-employment-history-table tbody td {
    height: 150px;
    min-height: 150px;
  }
}

@media screen and (max-width: 720px) {
  .pb-preview-head,
  .pb-panel {
    border-radius: 20px;
    padding: 1rem;
  }

  .cv-employment-history-titlebar,
  .cv-employment-history-footer {
    min-height: 64px;
    padding: 0.85rem 1rem;
  }

  .cv-employment-history-titlebar h2,
  .cv-employment-history-footer strong {
    font-size: 1.2rem;
  }

  .cv-employment-history-card {
    border-radius: 22px;
  }

  .cv-employment-history-table th,
  .cv-employment-history-table td {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .cv-employment-history-table tbody td {
    height: 130px;
    min-height: 130px;
  }
}

/* Safe preview baseline: keep layout differences, remove decorative color-heavy styling
   so screen preview stays much closer to actual PDF/print output. */
.cv-sheet[data-design="abroad"],
.cv-sheet[data-design="domestic"],
.cv-sheet[data-design="skilled"],
.cv-sheet[data-design="minimal"],
.cv-sheet[data-design="ribbon"],
.cv-sheet[data-design="ribbon-glow"],
.cv-sheet[data-design="ribbon-frame"],
.cv-sheet[data-design="executive"],
.cv-sheet[data-design="spotlight"],
.cv-sheet[data-design="atlas"] {
  background: #fff;
  background-image: none;
  color: #111;
}

.cv-sheet[data-design="abroad"] .cv-header,
.cv-sheet[data-design="domestic"] .cv-header,
.cv-sheet[data-design="skilled"] .cv-header,
.cv-sheet[data-design="minimal"] .cv-header,
.cv-sheet[data-design="ribbon"] .cv-header,
.cv-sheet[data-design="ribbon-glow"] .cv-header,
.cv-sheet[data-design="ribbon-frame"] .cv-header,
.cv-sheet[data-design="executive"] .cv-header,
.cv-sheet[data-design="spotlight"] .cv-header,
.cv-sheet[data-design="atlas"] .cv-header {
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-radius: 0;
  background: #fff;
  background-image: none;
  border-bottom: 1px solid #d7deea;
  box-shadow: none;
}

.cv-sheet[data-design="abroad"] .cv-role,
.cv-sheet[data-design="abroad"] .cv-header h2,
.cv-sheet[data-design="abroad"] .cv-meta,
.cv-sheet[data-design="domestic"] .cv-role,
.cv-sheet[data-design="domestic"] .cv-header h2,
.cv-sheet[data-design="domestic"] .cv-meta,
.cv-sheet[data-design="skilled"] .cv-role,
.cv-sheet[data-design="skilled"] .cv-header h2,
.cv-sheet[data-design="skilled"] .cv-meta,
.cv-sheet[data-design="minimal"] .cv-role,
.cv-sheet[data-design="minimal"] .cv-header h2,
.cv-sheet[data-design="minimal"] .cv-meta,
.cv-sheet[data-design="ribbon"] .cv-role,
.cv-sheet[data-design="ribbon"] .cv-header h2,
.cv-sheet[data-design="ribbon"] .cv-meta,
.cv-sheet[data-design="ribbon-glow"] .cv-role,
.cv-sheet[data-design="ribbon-glow"] .cv-header h2,
.cv-sheet[data-design="ribbon-glow"] .cv-meta,
.cv-sheet[data-design="ribbon-frame"] .cv-role,
.cv-sheet[data-design="ribbon-frame"] .cv-header h2,
.cv-sheet[data-design="ribbon-frame"] .cv-meta,
.cv-sheet[data-design="executive"] .cv-role,
.cv-sheet[data-design="executive"] .cv-header h2,
.cv-sheet[data-design="executive"] .cv-meta,
.cv-sheet[data-design="spotlight"] .cv-role,
.cv-sheet[data-design="spotlight"] .cv-header h2,
.cv-sheet[data-design="spotlight"] .cv-meta,
.cv-sheet[data-design="atlas"] .cv-role,
.cv-sheet[data-design="atlas"] .cv-header h2,
.cv-sheet[data-design="atlas"] .cv-meta,
.cv-sheet[data-design="abroad"] .cv-item-title,
.cv-sheet[data-design="domestic"] .cv-item-title,
.cv-sheet[data-design="skilled"] .cv-item-title,
.cv-sheet[data-design="minimal"] .cv-item-title,
.cv-sheet[data-design="ribbon"] .cv-item-title,
.cv-sheet[data-design="ribbon-glow"] .cv-item-title,
.cv-sheet[data-design="ribbon-frame"] .cv-item-title,
.cv-sheet[data-design="executive"] .cv-item-title,
.cv-sheet[data-design="spotlight"] .cv-item-title,
.cv-sheet[data-design="atlas"] .cv-item-title,
.cv-sheet[data-design="abroad"] .cv-two-column h4,
.cv-sheet[data-design="domestic"] .cv-two-column h4,
.cv-sheet[data-design="skilled"] .cv-two-column h4,
.cv-sheet[data-design="minimal"] .cv-two-column h4,
.cv-sheet[data-design="ribbon"] .cv-two-column h4,
.cv-sheet[data-design="ribbon-glow"] .cv-two-column h4,
.cv-sheet[data-design="ribbon-frame"] .cv-two-column h4,
.cv-sheet[data-design="executive"] .cv-two-column h4,
.cv-sheet[data-design="spotlight"] .cv-two-column h4,
.cv-sheet[data-design="atlas"] .cv-two-column h4 {
  color: #111;
}

.cv-sheet[data-design="abroad"] .cv-design-chip,
.cv-sheet[data-design="domestic"] .cv-design-chip,
.cv-sheet[data-design="skilled"] .cv-design-chip,
.cv-sheet[data-design="minimal"] .cv-design-chip,
.cv-sheet[data-design="ribbon"] .cv-design-chip,
.cv-sheet[data-design="ribbon-glow"] .cv-design-chip,
.cv-sheet[data-design="ribbon-frame"] .cv-design-chip,
.cv-sheet[data-design="executive"] .cv-design-chip,
.cv-sheet[data-design="spotlight"] .cv-design-chip,
.cv-sheet[data-design="atlas"] .cv-design-chip {
  background: #eef3f8;
  color: #304463;
  border: 1px solid #d7deea;
  box-shadow: none;
}

.cv-sheet[data-design="abroad"] .cv-section,
.cv-sheet[data-design="domestic"] .cv-section,
.cv-sheet[data-design="skilled"] .cv-section,
.cv-sheet[data-design="minimal"] .cv-section,
.cv-sheet[data-design="ribbon"] .cv-section,
.cv-sheet[data-design="ribbon-glow"] .cv-section,
.cv-sheet[data-design="ribbon-frame"] .cv-section,
.cv-sheet[data-design="executive"] .cv-section,
.cv-sheet[data-design="spotlight"] .cv-section,
.cv-sheet[data-design="atlas"] .cv-section {
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

.cv-sheet[data-design="abroad"] .cv-section h3,
.cv-sheet[data-design="domestic"] .cv-section h3,
.cv-sheet[data-design="skilled"] .cv-section h3,
.cv-sheet[data-design="minimal"] .cv-section h3,
.cv-sheet[data-design="ribbon"] .cv-section h3,
.cv-sheet[data-design="ribbon-glow"] .cv-section h3,
.cv-sheet[data-design="ribbon-frame"] .cv-section h3,
.cv-sheet[data-design="executive"] .cv-section h3,
.cv-sheet[data-design="spotlight"] .cv-section h3,
.cv-sheet[data-design="atlas"] .cv-section h3 {
  display: block;
  min-height: 0;
  margin-bottom: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: #111;
  font-size: 1.08rem;
  text-transform: none;
  letter-spacing: 0;
}

.cv-sheet[data-design="abroad"] .cv-item,
.cv-sheet[data-design="domestic"] .cv-item,
.cv-sheet[data-design="skilled"] .cv-item,
.cv-sheet[data-design="minimal"] .cv-item,
.cv-sheet[data-design="ribbon"] .cv-item,
.cv-sheet[data-design="ribbon-glow"] .cv-item,
.cv-sheet[data-design="ribbon-frame"] .cv-item,
.cv-sheet[data-design="executive"] .cv-item,
.cv-sheet[data-design="spotlight"] .cv-item,
.cv-sheet[data-design="atlas"] .cv-item,
.cv-sheet[data-design="abroad"] .cv-profile-card,
.cv-sheet[data-design="domestic"] .cv-profile-card,
.cv-sheet[data-design="skilled"] .cv-profile-card,
.cv-sheet[data-design="minimal"] .cv-profile-card,
.cv-sheet[data-design="ribbon"] .cv-profile-card,
.cv-sheet[data-design="ribbon-glow"] .cv-profile-card,
.cv-sheet[data-design="ribbon-frame"] .cv-profile-card,
.cv-sheet[data-design="executive"] .cv-profile-card,
.cv-sheet[data-design="spotlight"] .cv-profile-card,
.cv-sheet[data-design="atlas"] .cv-profile-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cv-sheet[data-design="abroad"] .cv-photo-wrap,
.cv-sheet[data-design="domestic"] .cv-photo-wrap,
.cv-sheet[data-design="skilled"] .cv-photo-wrap,
.cv-sheet[data-design="minimal"] .cv-photo-wrap,
.cv-sheet[data-design="ribbon"] .cv-photo-wrap,
.cv-sheet[data-design="ribbon-glow"] .cv-photo-wrap,
.cv-sheet[data-design="ribbon-frame"] .cv-photo-wrap,
.cv-sheet[data-design="executive"] .cv-photo-wrap,
.cv-sheet[data-design="spotlight"] .cv-photo-wrap,
.cv-sheet[data-design="atlas"] .cv-photo-wrap {
  border-color: #d7deea;
  background: #fff;
  box-shadow: none;
}

.cv-sheet[data-design="abroad"] .cv-skill-list li,
.cv-sheet[data-design="domestic"] .cv-skill-list li,
.cv-sheet[data-design="skilled"] .cv-skill-list li,
.cv-sheet[data-design="minimal"] .cv-skill-list li,
.cv-sheet[data-design="ribbon"] .cv-skill-list li,
.cv-sheet[data-design="ribbon-glow"] .cv-skill-list li,
.cv-sheet[data-design="ribbon-frame"] .cv-skill-list li,
.cv-sheet[data-design="executive"] .cv-skill-list li,
.cv-sheet[data-design="spotlight"] .cv-skill-list li,
.cv-sheet[data-design="atlas"] .cv-skill-list li {
  background: transparent;
  color: #111;
  box-shadow: none;
}

/* Bring back safe text-only accents for premium templates. */
.cv-sheet[data-design="ribbon-glow"] .cv-role,
.cv-sheet[data-design="ribbon-glow"] .cv-section h3,
.cv-sheet[data-design="ribbon-glow"] .cv-two-column h4,
.cv-sheet[data-design="ribbon-glow"] .cv-item-title {
  color: #3555d1;
}

.cv-sheet[data-design="ribbon-frame"] .cv-role,
.cv-sheet[data-design="ribbon-frame"] .cv-section h3,
.cv-sheet[data-design="ribbon-frame"] .cv-two-column h4,
.cv-sheet[data-design="ribbon-frame"] .cv-item-title {
  color: #3457c9;
}

.cv-sheet[data-design="executive"] .cv-role,
.cv-sheet[data-design="executive"] .cv-section h3,
.cv-sheet[data-design="executive"] .cv-two-column h4,
.cv-sheet[data-design="executive"] .cv-item-title {
  color: #1f3b6d;
}

.cv-sheet[data-design="spotlight"] .cv-role,
.cv-sheet[data-design="spotlight"] .cv-section h3,
.cv-sheet[data-design="spotlight"] .cv-two-column h4,
.cv-sheet[data-design="spotlight"] .cv-item-title {
  color: #7b4b2f;
}

.cv-sheet[data-design="atlas"] .cv-role,
.cv-sheet[data-design="atlas"] .cv-section h3,
.cv-sheet[data-design="atlas"] .cv-two-column h4,
.cv-sheet[data-design="atlas"] .cv-item-title {
  color: #28476a;
}

.cv-sheet[data-design="ribbon-glow"] .cv-design-chip,
.cv-sheet[data-design="ribbon-frame"] .cv-design-chip,
.cv-sheet[data-design="executive"] .cv-design-chip,
.cv-sheet[data-design="spotlight"] .cv-design-chip,
.cv-sheet[data-design="atlas"] .cv-design-chip {
  color: inherit;
}

/* Purple theme refresh (April 2026) */
:root {
  --pb-bg: #ece9ff;
  --pb-surface: rgba(255, 255, 255, 0.96);
  --pb-paper: #ffffff;
  --pb-ink: #1f1a3a;
  --pb-muted: #645d8a;
  --pb-line: #ddd5ff;
  --pb-accent: #5a45f8;
  --pb-accent-dark: #3e33f6;
  --pb-accent-alt: #7a63ff;
  --pb-shadow: 0 20px 42px rgba(53, 39, 128, 0.18);
}

body {
  background:
    radial-gradient(1000px 640px at -10% 14%, rgba(90, 69, 248, 0.16), transparent 70%),
    radial-gradient(820px 560px at 92% -8%, rgba(115, 88, 255, 0.18), transparent 72%),
    linear-gradient(180deg, #f3f0ff 0%, #ece9ff 52%, #e7e4ff 100%);
}

.pb-topbar,
.pb-panel,
.pb-design-menu-panel,
.pb-preview,
.pb-preview-card,
.pb-editor,
.pb-mobile-switcher {
  border-color: var(--pb-line);
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ff 100%);
  box-shadow: 0 16px 32px rgba(57, 41, 138, 0.12);
}

.pb-topbar h1,
.pb-panel h2,
.pb-panel h3,
.cv-header h2,
.cv-section h3 {
  font-family: "Manrope", "Sora", "IBM Plex Sans", sans-serif;
}

.pb-kicker,
.pb-section-head .pb-kicker {
  color: #4d3fbb;
}

.pb-link-btn,
.pb-btn,
.pb-mobile-tab,
.pb-upgrade-btn,
.pb-flow-badge,
.pb-plan-pill {
  border-color: #d9d0ff;
  background: #fff;
  color: #433b63;
}

.pb-btn,
.pb-upgrade-btn,
.pb-mobile-tab.is-active,
.pb-flow-badge,
.pb-plan-pill {
  background: linear-gradient(135deg, #3e33f6, #5a45f8 50%, #7358ff);
  border-color: transparent;
  color: #fff;
}

.pb-guide-card,
.pb-template-group,
.pb-editor-section,
.pb-premium-grid article {
  border-color: #ddd5ff;
  background: #fff;
}

body,
body button,
body input,
body select,
body textarea,
body h1,
body h2,
body h3,
body h4,
body p,
body span,
body label,
body a {
  font-family: "Manrope", sans-serif !important;
}

@media screen {
  .cv-sheet[data-view-mode="digital"] {
    border-radius: 30px;
    background:
      radial-gradient(120% 160% at 95% 0%, rgba(67, 102, 238, 0.2), transparent 62%),
      linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
    box-shadow: 0 34px 74px rgba(32, 48, 106, 0.2);
  }

  .cv-sheet[data-view-mode="digital"] .cv-header {
    border: 0;
    border-radius: 18px;
    padding: 1.2rem 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1f3d95, #3e62d8 62%, #6f7cf5);
    box-shadow: 0 14px 30px rgba(39, 66, 156, 0.26);
  }

  .cv-sheet[data-view-mode="digital"] .cv-role,
  .cv-sheet[data-view-mode="digital"] .cv-header h2,
  .cv-sheet[data-view-mode="digital"] .cv-meta,
  .cv-sheet[data-view-mode="digital"] .cv-design-chip {
    color: #fff;
  }

  .cv-sheet[data-view-mode="digital"] .cv-design-chip {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
  }

  .cv-sheet[data-view-mode="digital"] .cv-photo-wrap {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
  }

  .cv-sheet[data-view-mode="digital"] .cv-section h3 {
    border-radius: 999px;
    background: linear-gradient(135deg, #273f96, #4766de);
    color: #fff;
    box-shadow: 0 10px 22px rgba(49, 69, 157, 0.22);
  }

  .cv-sheet[data-view-mode="digital"] .cv-item,
  .cv-sheet[data-view-mode="digital"] .cv-profile-card,
  .cv-sheet[data-view-mode="digital"] .cv-file-card {
    border: 1px solid #d8e0fa;
    border-left: 1px solid #d8e0fa;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(35, 55, 128, 0.09);
    padding: 0.88rem 0.95rem;
  }

  .cv-sheet[data-view-mode="digital"] .cv-skill-list li {
    border-radius: 999px;
    border: 1px solid #d6e0ff;
    background: #edf3ff;
    color: #233f93;
    padding: 0.4rem 0.72rem;
  }

  .cv-sheet[data-view-mode="digital"] .cv-two-column h4 {
    color: #284191;
  }

  .cv-sheet[data-view-mode="digital"][data-layout="split"] .cv-section[data-track="side"] {
    border-radius: 18px;
    background: linear-gradient(180deg, #f8faff 0%, #f1f5ff 100%);
    border: 1px solid #dbe3fb;
    padding: 0.95rem;
    margin-top: 1.2rem;
  }
}
