:root {
  color-scheme: light;
  --bg: #eef2f4;
  --surface: #ffffff;
  --surface-soft: #f7f9fa;
  --ink: #20262d;
  --muted: #68717c;
  --line: #d9e0e5;
  --teal: #147d7e;
  --teal-deep: #0c5557;
  --coral: #d75d48;
  --gold: #c48b2c;
  --blue: #315e86;
  --shadow: 0 18px 45px rgba(32, 38, 45, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar h1,
.panel-heading h2,
.preview-toolbar h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-actions,
.panel-heading,
.section-title-row,
.preview-toolbar,
.photo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-actions button {
  white-space: nowrap;
}

.unlock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid #f0c9a4;
  border-radius: 999px;
  background: #fff5e8;
  color: #8a4d00;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.unlock-badge.unlocked {
  border-color: #a6d7ca;
  background: #e7f6f1;
  color: #1f6658;
}

.primary-button,
.ghost-button,
.small-button,
.text-button,
.file-control span,
.remove-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 13px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.primary-button {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 125, 126, 0.2);
}

.primary-button:hover,
.small-button:hover,
.file-control:hover span,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 27, 31, 0.52);
}

.paywall-overlay.open {
  display: flex;
}

.paywall-dialog {
  position: relative;
  width: min(100%, 560px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 80px rgba(20, 27, 31, 0.24);
  padding: 24px;
}

.paywall-dialog h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.paywall-copy {
  margin: 0;
  color: var(--muted);
}

.payment-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}

.payment-package {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.payment-package.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 136, 127, 0.12);
}

.package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.package-head strong {
  font-size: 15px;
}

.package-badge,
.package-status {
  width: fit-content;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.package-badge {
  padding: 2px 7px;
  background: #fff3d7;
  color: #8b5e00;
}

.package-price {
  color: var(--teal);
  font-size: 25px;
  font-weight: 900;
}

.package-desc {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.package-status {
  padding: 3px 8px;
  background: #edf6f4;
  color: var(--teal);
}

.payment-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 18px 0 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.payment-qr[hidden] {
  display: none !important;
}

.payment-qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 240px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.payment-qr-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-qr-placeholder {
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.payment-qr-placeholder code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #edf3f4;
  color: var(--ink);
}

.payment-qr.has-qr .payment-qr-image {
  display: block;
}

.payment-qr.has-qr .payment-qr-placeholder {
  display: none;
}

.payment-qr-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.payment-qr-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.paywall-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding-left: 20px;
}

.paywall-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-help {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dce4e8;
  border-radius: var(--radius);
  background: #f7f9fa;
}

.delivery-help strong {
  font-size: 14px;
}

.delivery-help p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.delivery-help .text-button {
  justify-self: start;
  padding-left: 0;
}

.paywall-note {
  margin: 14px 0 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
}

.paywall-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.ghost-button,
.small-button,
.file-control span {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.text-button {
  min-height: 32px;
  padding: 6px 10px;
  background: transparent;
  color: var(--coral);
}

.remove-button {
  min-height: 32px;
  padding: 6px 9px;
  background: #fff2ef;
  color: #a13f2e;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
  gap: 28px;
  width: min(1560px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 42px) 46px;
}

.editor-panel,
.preview-panel {
  min-width: 0;
}

.editor-panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(32, 38, 45, 0.08);
}

.panel-heading {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.form-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.form-section.last {
  border-bottom: 0;
}

.form-section h3 {
  margin: 0 0 13px;
  font-size: 16px;
  font-weight: 800;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 125, 126, 0.13);
}

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

.template-option {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.template-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.template-option.active {
  border-color: var(--teal);
  background: #e9f6f5;
  color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(20, 125, 126, 0.1);
}

.template-option:hover {
  transform: translateY(-1px);
}

.template-swatch {
  position: relative;
  display: block;
  width: 46px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #d8e0e5;
  border-radius: 6px;
  background: #fff;
}

.template-swatch::before,
.template-swatch::after {
  position: absolute;
  content: "";
}

.template-swatch::before {
  inset: 7px 8px auto;
  height: 5px;
  border-radius: 999px;
  background: #28323b;
}

.template-swatch::after {
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 20px;
  border-radius: 4px;
  background:
    linear-gradient(#9aa7b0 0 0) 0 0 / 100% 3px no-repeat,
    linear-gradient(#c4cdd3 0 0) 0 8px / 75% 3px no-repeat,
    linear-gradient(#c4cdd3 0 0) 0 16px / 88% 3px no-repeat;
}

.swatch-modern {
  background: linear-gradient(90deg, #113d43 0 34%, #fff 34%);
}

.swatch-modern::before {
  left: 18px;
}

.swatch-modern::after {
  left: 20px;
}

.swatch-classic {
  background:
    linear-gradient(#1e2932 0 0) 8px 12px / 30px 2px no-repeat,
    #fff;
}

.swatch-creative {
  background: linear-gradient(#1f4e5f 0 36%, #fff 36%);
}

.swatch-creative::before {
  background: #f5d18f;
}

.swatch-compact {
  background:
    linear-gradient(#2f5d50 0 0) 0 16px / 100% 4px no-repeat,
    #fff;
}

.swatch-minimal {
  background:
    linear-gradient(#101820 0 0) 8px 14px / 30px 2px no-repeat,
    linear-gradient(#e2e7ea 0 0) 8px 24px / 30px 1px no-repeat,
    #fff;
}

.swatch-business {
  background: linear-gradient(#f4f7f9 0 32%, #fff 32%);
}

.swatch-business::before {
  background: #315e86;
}

.swatch-timeline {
  background:
    linear-gradient(90deg, transparent 0 13px, #b95b49 13px 16px, transparent 16px),
    #fff;
}

.swatch-executive {
  background:
    linear-gradient(#24303b 0 0) 8px 24px / 30px 2px no-repeat,
    linear-gradient(#c48b2c 0 0) 8px 30px / 30px 2px no-repeat,
    #fff;
}

.photo-row {
  justify-content: flex-start;
}

.photo-thumb {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px dashed #9bb0b8;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 125, 126, 0.14), rgba(215, 93, 72, 0.1)),
    #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.file-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.file-control span {
  display: inline-flex;
  align-items: center;
}

.dynamic-list {
  display: grid;
  gap: 12px;
}

.entry-card {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.entry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.entry-card-header strong {
  font-size: 14px;
}

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

.entry-grid .wide,
.entry-card label:has(textarea) {
  grid-column: 1 / -1;
}

.preview-panel {
  position: sticky;
  top: 100px;
  align-self: start;
}

.preview-toolbar {
  margin-bottom: 14px;
}

.paper-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.paper-wrap {
  display: flex;
  justify-content: center;
  overflow: auto;
  padding: 6px 0 28px;
}

.resume-page {
  width: min(100%, 794px);
  min-height: 1120px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #24303b;
  overflow: hidden;
  transition: background 180ms ease;
}

.resume-page h2,
.resume-page h3,
.resume-page p {
  margin: 0;
}

.resume-name {
  font-size: 40px;
  font-weight: 850;
  line-height: 1.05;
}

.resume-role {
  color: inherit;
  font-size: 18px;
  font-weight: 700;
}

.resume-photo {
  width: 116px;
  height: 116px;
  overflow: hidden;
  border-radius: 50%;
  background: #d8e5e7;
  flex: 0 0 auto;
}

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

.initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  font-size: 34px;
  font-weight: 850;
}

.resume-section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.resume-section {
  display: grid;
  gap: 9px;
}

.resume-item {
  display: grid;
  gap: 3px;
  break-inside: avoid;
}

.item-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.item-title {
  font-weight: 850;
}

.item-meta {
  color: #68717c;
  font-size: 12.5px;
}

.resume-list {
  margin: 0;
  padding-left: 18px;
}

.resume-list li {
  margin: 1px 0;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-list li {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.contact-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: inherit;
  font-size: 13px;
}

.classic-contact {
  margin-top: 12px;
}

.classic-contact .contact-list,
.template-compact .contact-list {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 4px 16px;
  color: #525d67;
}

.template-compact .contact-list {
  margin-top: 10px;
}

.empty-note {
  color: #8a949e;
  font-style: italic;
}

.template-modern {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.template-modern .resume-side {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 38px 26px;
  background: #113d43;
  color: #eef8f7;
}

.template-modern .resume-main {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 42px 38px;
}

.template-modern .resume-photo {
  border: 4px solid rgba(255, 255, 255, 0.35);
}

.template-modern .resume-section-title {
  color: var(--teal);
}

.template-modern .resume-side .resume-section-title {
  color: #9ce0da;
}

.template-modern .skill-list li {
  background: rgba(255, 255, 255, 0.12);
  color: #f7ffff;
}

.template-modern .initials {
  background: #0d6c6e;
}

.template-classic {
  padding: 48px 56px;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
}

.template-classic .resume-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 24px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 2px solid #1e2932;
}

.template-classic .resume-name {
  font-size: 38px;
  font-weight: 700;
}

.template-classic .resume-role {
  margin-top: 6px;
  color: #6c4f27;
  font-size: 17px;
}

.template-classic .resume-body {
  display: grid;
  gap: 22px;
  padding-top: 24px;
}

.template-classic .resume-section-title {
  border-bottom: 1px solid #c9c3b9;
  padding-bottom: 4px;
  color: #6c4f27;
}

.template-classic .resume-photo {
  width: 104px;
  height: 104px;
  border-radius: var(--radius);
}

.template-classic .skill-list li {
  border: 1px solid #d5c8b8;
  color: #3a332c;
}

.template-classic .initials {
  background: #7c6035;
}

.template-creative {
  display: grid;
  grid-template-rows: auto 1fr;
}

.template-creative .resume-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 28px;
  align-items: center;
  padding: 38px 44px;
  background: #1f4e5f;
  color: #fff;
}

.template-creative .resume-role {
  margin-top: 8px;
  color: #f5d18f;
}

.template-creative .resume-body {
  display: grid;
  grid-template-columns: 1fr 1.75fr;
  gap: 30px;
  padding: 30px 42px 42px;
}

.template-creative .resume-column {
  display: grid;
  align-content: start;
  gap: 22px;
}

.template-creative .resume-section-title {
  color: #d75d48;
}

.template-creative .skill-list li {
  background: #fff0db;
  color: #7b4c00;
}

.template-creative .resume-photo {
  width: 124px;
  height: 124px;
  border: 4px solid rgba(255, 255, 255, 0.35);
}

.template-creative .initials {
  background: #d75d48;
}

.template-compact {
  padding: 38px 42px;
  font-size: 14px;
}

.template-compact .resume-header {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 4px solid #2f5d50;
}

.template-compact .resume-name {
  font-size: 34px;
}

.template-compact .resume-role {
  color: #2f5d50;
}

.template-compact .resume-body {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 24px;
  padding-top: 22px;
}

.template-compact .resume-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.template-compact .resume-photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
}

.template-compact .resume-section-title {
  color: #2f5d50;
}

.template-compact .skill-list li {
  background: #eaf3ef;
  color: #23473d;
}

.template-compact .initials {
  background: #2f5d50;
}

.template-minimal {
  padding: 50px 62px;
  font-size: 14.5px;
}

.template-minimal .resume-header {
  display: grid;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 2px solid #20262d;
}

.template-minimal .resume-name {
  font-size: 42px;
  font-weight: 800;
}

.template-minimal .resume-role {
  color: #4c5660;
}

.template-minimal .minimal-contact .contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: #57616b;
}

.template-minimal .resume-body {
  display: grid;
  gap: 22px;
  padding-top: 24px;
}

.template-minimal .resume-section-title {
  color: #20262d;
}

.template-minimal .skill-list li {
  border: 1px solid #d9e0e5;
  color: #3b454e;
}

.template-minimal .initials {
  background: #20262d;
}

.template-business {
  display: grid;
  grid-template-rows: auto 1fr;
}

.template-business .resume-header {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 34px 42px;
  background: #f3f7fa;
  border-bottom: 5px solid #315e86;
}

.template-business .resume-photo {
  width: 108px;
  height: 108px;
  border-radius: var(--radius);
}

.template-business .resume-role {
  margin: 6px 0 10px;
  color: #315e86;
}

.template-business .contact-list {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 4px 16px;
  color: #586470;
}

.template-business .resume-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 42px 42px;
}

.template-business .resume-column {
  display: grid;
  align-content: start;
  gap: 20px;
}

.template-business .resume-section-title {
  color: #315e86;
}

.template-business .skill-list li {
  background: #e9f0f6;
  color: #244d72;
}

.template-business .initials {
  background: #315e86;
}

.template-timeline {
  padding: 42px 52px;
}

.template-timeline .resume-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 24px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #d9e0e5;
}

.template-timeline .resume-role {
  margin: 8px 0 12px;
  color: #b95b49;
}

.template-timeline .resume-photo {
  width: 104px;
  height: 104px;
  border: 3px solid #f0d1c8;
}

.template-timeline .contact-list {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 4px 18px;
  color: #586470;
}

.template-timeline .resume-body {
  display: grid;
  gap: 22px;
  padding-top: 26px;
}

.template-timeline .resume-section-title {
  color: #b95b49;
}

.template-timeline .timeline-block {
  display: grid;
  gap: 22px;
}

.template-timeline .timeline-block .resume-item {
  position: relative;
  padding-left: 22px;
}

.template-timeline .timeline-block .resume-item::before {
  position: absolute;
  top: 5px;
  left: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid #b95b49;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.template-timeline .timeline-block .resume-item::after {
  position: absolute;
  top: 20px;
  bottom: -12px;
  left: 6px;
  width: 1px;
  background: #e3c1b8;
  content: "";
}

.template-timeline .skill-list li {
  background: #fbebe7;
  color: #8a3f30;
}

.template-timeline .initials {
  background: #b95b49;
}

.template-executive {
  padding: 46px 58px;
}

.template-executive .resume-header {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 3px solid #24303b;
}

.template-executive .resume-photo {
  width: 92px;
  height: 92px;
  border: 3px solid #c48b2c;
}

.template-executive .resume-name {
  font-size: 40px;
}

.template-executive .resume-role {
  color: #c48b2c;
}

.template-executive .executive-contact .contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  color: #586470;
}

.template-executive .resume-body {
  display: grid;
  gap: 24px;
  padding-top: 28px;
}

.template-executive .resume-section-title {
  padding-top: 8px;
  border-top: 1px solid #c48b2c;
  color: #24303b;
}

.template-executive .executive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.template-executive .skill-list li {
  border: 1px solid #d8c196;
  color: #6a4c17;
}

.template-executive .initials {
  background: #24303b;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unlock-badge {
    grid-column: 1 / -1;
  }

  .workspace {
    padding-inline: 12px;
  }

  .field-grid,
  .entry-grid,
  .template-picker {
    grid-template-columns: 1fr;
  }

  .resume-page {
    min-height: 0;
    overflow: visible;
  }

  .template-modern,
  .template-creative .resume-body,
  .template-compact .resume-body,
  .template-business .resume-body,
  .template-executive .executive-grid {
    grid-template-columns: 1fr;
  }

  .template-modern .resume-side,
  .template-modern .resume-main,
  .template-creative .resume-header,
  .template-creative .resume-body,
  .template-compact,
  .template-classic,
  .template-minimal,
  .template-business .resume-header,
  .template-business .resume-body,
  .template-timeline,
  .template-executive {
    padding: 28px 22px;
  }

  .template-classic .resume-header,
  .template-creative .resume-header,
  .template-compact .resume-header,
  .template-business .resume-header,
  .template-timeline .resume-header {
    grid-template-columns: 1fr;
  }

  .classic-contact .contact-list,
  .template-compact .contact-list,
  .template-business .contact-list,
  .template-timeline .contact-list {
    grid-template-columns: 1fr;
  }

  .resume-name {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .topbar-actions {
    grid-template-columns: 1fr;
  }

  .paywall-dialog {
    padding: 22px 18px;
  }

  .paywall-actions {
    grid-template-columns: 1fr;
  }

  .payment-packages {
    grid-template-columns: 1fr;
  }

  .payment-package {
    min-height: 0;
  }
}

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

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #fff;
  }

  .topbar,
  .editor-panel,
  .preview-toolbar,
  .paywall-overlay {
    display: none !important;
  }

  .workspace,
  .paper-wrap,
  .preview-panel {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .resume-page {
    width: 210mm;
    min-height: 297mm;
    overflow: visible;
    box-shadow: none;
  }
}
