/* =========================================
   THE CV ARCHITECT - Preview + 6 Templates
   ========================================= */

.preview-page { min-height: 100vh; background: var(--bg); padding-top: 68px; }
.preview-layout { display: grid; grid-template-columns: 290px 1fr; min-height: calc(100vh - 68px); }

/* ── Sidebar ──────────────────────────────────── */
.preview-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  position: sticky; top: 68px;
  height: calc(100vh - 68px); overflow-y: auto;
}
.preview-sidebar::-webkit-scrollbar { width: 3px; }
.preview-sidebar::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }

.preview-sidebar-title {
  font-family: 'Satoshi', 'DM Sans', system-ui, sans-serif;
  font-size: 17px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; letter-spacing: -0.02em;
}
.preview-sidebar-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.sidebar-section { margin-bottom: 24px; }
.sidebar-section-label {
  font-size: 10px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}

.template-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.template-opt {
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.template-opt:hover,
.template-opt.selected { border-color: var(--primary); }
.template-opt.selected { box-shadow: 0 0 0 2px var(--primary-light); }
.template-opt-thumb { height: 72px; background: var(--bg); }
.template-opt-name {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  text-align: center; padding: 5px 4px; color: var(--text);
}

.color-list { display: flex; gap: 7px; flex-wrap: wrap; }
.color-opt {
  width: 24px; height: 24px; border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.color-opt:hover  { transform: scale(1.18); }
.color-opt.selected { outline-color: var(--primary); }

.action-btns { display: flex; flex-direction: column; gap: 8px; }
.action-btns .btn {
  width: 100%; justify-content: center;
  border-radius: var(--r-sm); font-size: 13px;
}

/* ── Preview area ─────────────────────────────── */
.preview-main {
  padding: 32px;
  display: flex; flex-direction: column; align-items: center;
  background: #E4E0D9;
}
.preview-toolbar {
  width: 100%; max-width: 794px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.preview-toolbar-title { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.zoom-controls {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm); padding: 4px 12px;
}
.zoom-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 16px; padding: 2px 4px;
  transition: color var(--t) var(--ease);
}
.zoom-btn:hover { color: var(--primary); }
.zoom-label { font-size: 13px; color: var(--text-muted); min-width: 40px; text-align: center; }

.cv-paper-wrap { width: 100%; max-width: 794px; }
#cv-paper {
  width: 794px; min-height: 1123px;
  background: #FFFFFF;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 2px;
  transform-origin: top center;
  transition: transform 0.2s ease;
}

/* ============================
   TEMPLATE 1: MODERN
   ============================ */
.tpl-modern-cv { display: grid; grid-template-columns: 250px 1fr; min-height: 1123px; font-family: 'Inter', sans-serif; font-size: 13px; }
.tpl-modern-sidebar { background: var(--cv-primary, #1B7A7A); color: white; padding: 32px 20px; }
.tpl-modern-main { padding: 32px 28px; color: #1A2332; }
.tpl-modern-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; margin: 0 auto 14px; overflow: hidden;
}
.tpl-modern-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tpl-modern-name-sidebar { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tpl-modern-role-sidebar { text-align: center; font-size: 11px; opacity: 0.8; margin-bottom: 24px; line-height: 1.4; }
.tpl-modern-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.65; margin: 20px 0 8px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.tpl-modern-contact-item { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 7px; font-size: 11px; opacity: 0.88; word-break: break-all; }
.tpl-modern-contact-icon { font-size: 11px; flex-shrink: 0; margin-top: 1px; opacity: 0.7; }
.tpl-modern-skill-item { margin-bottom: 7px; }
.tpl-modern-skill-name { font-size: 11px; margin-bottom: 3px; opacity: 0.88; }
.tpl-modern-skill-bar { height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.tpl-modern-skill-fill { height: 100%; background: rgba(255,255,255,0.75); border-radius: 2px; }
.tpl-modern-header { margin-bottom: 24px; }
.tpl-modern-main-name { font-size: 26px; font-weight: 700; color: #1A2332; margin-bottom: 4px; }
.tpl-modern-main-role { font-size: 13px; font-weight: 500; }
.tpl-modern-divider { height: 3px; background: var(--cv-primary, #1B7A7A); width: 40px; border-radius: 2px; margin: 10px 0; }
.tpl-modern-main-section { margin-bottom: 22px; }
.tpl-modern-main-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1.5px solid #E5E7EB; }
.tpl-modern-entry { margin-bottom: 12px; }
.tpl-modern-entry-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.tpl-modern-entry-title { font-size: 12px; font-weight: 700; }
.tpl-modern-entry-date { font-size: 10px; color: #9CA3AF; white-space: nowrap; margin-left: 8px; }
.tpl-modern-entry-company { font-size: 11px; margin-bottom: 3px; }
.tpl-modern-entry-desc { font-size: 11px; color: #4B5563; line-height: 1.5; }

/* ============================
   TEMPLATE 2: PROFESSIONAL
   ============================ */
.tpl-professional-cv { padding: 40px; min-height: 1123px; font-family: 'Inter', sans-serif; font-size: 13px; color: #1A2332; }
.tpl-professional-header { display: flex; align-items: center; gap: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--cv-primary, #1B7A7A); margin-bottom: 24px; }
.tpl-professional-header-photo { width: 100px; height: 100px; border-radius: 8px; object-fit: cover; border: 2px solid var(--cv-primary, #1B7A7A); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--primary-light); font-size: 26px; font-weight: 700; }
.tpl-professional-header-photo img { width: 100%; height: 100%; object-fit: cover; }
.tpl-professional-header-info { flex: 1; }
.tpl-professional-name { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 3px; }
.tpl-professional-role { font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.tpl-professional-contacts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: #6B7280; }
.tpl-professional-contacts span { display: flex; align-items: center; gap: 4px; }
.tpl-professional-body { display: grid; grid-template-columns: 1fr 240px; gap: 28px; }
.tpl-professional-section { margin-bottom: 20px; }
.tpl-professional-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1.5px solid #E5E7EB; }
.tpl-professional-entry { margin-bottom: 12px; }
.tpl-professional-entry-head { display: flex; justify-content: space-between; align-items: flex-start; }
.tpl-professional-entry-title { font-weight: 700; font-size: 12px; }
.tpl-professional-entry-date { font-size: 10px; color: #9CA3AF; white-space: nowrap; margin-left: 8px; }
.tpl-professional-entry-sub { font-size: 11px; margin-bottom: 3px; }
.tpl-professional-entry-desc { font-size: 11px; color: #4B5563; line-height: 1.5; }
.tpl-professional-skill-item { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.tpl-professional-skill-name { font-size: 11px; }
.tpl-professional-skill-dots { display: flex; gap: 3px; }
.skill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.skill-dot.filled { background: var(--cv-primary, #1B7A7A); }

/* ============================
   TEMPLATE 3: CREATIVE
   ============================ */
.tpl-creative-cv { min-height: 1123px; font-family: 'Inter', sans-serif; font-size: 13px; }
.tpl-creative-top { background: var(--cv-primary, #1B7A7A); color: white; padding: 32px 36px; display: flex; align-items: center; gap: 24px; }
.tpl-creative-avatar { width: 100px; height: 100px; border-radius: 12px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.tpl-creative-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.tpl-creative-header-name { font-size: 26px; font-weight: 700; margin-bottom: 3px; }
.tpl-creative-header-role { font-size: 13px; opacity: 0.85; margin-bottom: 10px; }
.tpl-creative-header-contacts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; opacity: 0.85; }
.tpl-creative-body { display: grid; grid-template-columns: 1fr 220px; padding: 28px 36px; gap: 28px; color: #1A2332; }
.tpl-creative-section { margin-bottom: 20px; }
.tpl-creative-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tpl-creative-title::after { content: ''; flex: 1; height: 2px; background: #E5E7EB; border-radius: 1px; }
.tpl-creative-entry { margin-bottom: 12px; }
.tpl-creative-entry-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 600; margin-bottom: 3px; color: white; }
.tpl-creative-entry-title { font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.tpl-creative-entry-sub { font-size: 11px; margin-bottom: 3px; }
.tpl-creative-entry-desc { font-size: 11px; color: #4B5563; line-height: 1.5; }
.tpl-creative-skill-tag { display: inline-flex; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; margin: 0 4px 5px 0; }

/* ============================
   TEMPLATE 4: SIMPLE
   ============================ */
.tpl-simple-cv { padding: 44px 52px; min-height: 1123px; font-family: 'Inter', sans-serif; font-size: 13px; color: #1A2332; }
.tpl-simple-header { margin-bottom: 28px; display: flex; align-items: flex-start; gap: 20px; }
.tpl-simple-header-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--cv-primary, #1B7A7A); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--primary-light); font-size: 26px; font-weight: 700; }
.tpl-simple-header-photo img { width: 100%; height: 100%; object-fit: cover; }
.tpl-simple-header-info { flex: 1; }
.tpl-simple-name { font-size: 28px; font-weight: 700; margin-bottom: 3px; }
.tpl-simple-role { font-size: 14px; margin-bottom: 8px; }
.tpl-simple-contacts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: #6B7280; padding-bottom: 16px; border-bottom: 1px solid #E5E7EB; }
.tpl-simple-section { margin-bottom: 20px; }
.tpl-simple-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #1A2332; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 2px solid var(--cv-primary, #1B7A7A); display: inline-block; }
.tpl-simple-entry { margin-bottom: 12px; }
.tpl-simple-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1px; }
.tpl-simple-entry-title { font-weight: 700; font-size: 12px; }
.tpl-simple-entry-date { font-size: 10px; color: #9CA3AF; }
.tpl-simple-entry-sub { font-size: 11px; margin-bottom: 3px; }
.tpl-simple-entry-desc { font-size: 11px; color: #4B5563; line-height: 1.5; }
.tpl-simple-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-simple-skill { padding: 3px 10px; border: 1px solid var(--cv-primary, #1B7A7A); border-radius: 4px; font-size: 11px; }

/* ============================
   TEMPLATE 5: CANADIEN
   ============================ */
.tpl-canadian-cv { min-height: 1123px; font-family: 'Inter', sans-serif; font-size: 13px; color: #1A2332; }
.tpl-canadian-header {
  background: white;
  border-top: 5px solid var(--cv-primary, #1B7A7A);
  padding: 28px 40px;
  display: flex; align-items: flex-start; gap: 24px;
  border-bottom: 1px solid #E5E7EB;
}
.tpl-canadian-photo {
  width: 110px; height: 110px; border-radius: 8px;
  border: 2px solid var(--cv-primary, #1B7A7A);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); font-size: 28px; font-weight: 700;
}
.tpl-canadian-photo img { width: 100%; height: 100%; object-fit: cover; }
.tpl-canadian-header-info { flex: 1; }
.tpl-canadian-name { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 3px; }
.tpl-canadian-role { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.tpl-canadian-contacts { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; color: #6B7280; }
.tpl-canadian-contacts span { display: flex; align-items: center; gap: 5px; }
.tpl-canadian-body { padding: 28px 40px; }
.tpl-canadian-section { margin-bottom: 22px; }
.tpl-canadian-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--cv-primary, #1B7A7A);
  margin-bottom: 12px; padding: 6px 12px;
  background: color-mix(in srgb, var(--cv-primary, #1B7A7A) 8%, white);
  border-left: 4px solid var(--cv-primary, #1B7A7A);
  border-radius: 0 4px 4px 0;
}
.tpl-canadian-entry { margin-bottom: 14px; padding-left: 12px; border-left: 2px solid #E5E7EB; }
.tpl-canadian-entry-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.tpl-canadian-entry-title { font-weight: 700; font-size: 13px; }
.tpl-canadian-entry-date { font-size: 11px; color: white; background: var(--cv-primary, #1B7A7A); padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.tpl-canadian-entry-sub { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.tpl-canadian-entry-desc { font-size: 11px; color: #4B5563; line-height: 1.6; }
.tpl-canadian-skills-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-canadian-skill { padding: 4px 12px; background: color-mix(in srgb, var(--cv-primary, #1B7A7A) 10%, white); color: var(--cv-primary, #1B7A7A); border-radius: 20px; font-size: 11px; font-weight: 600; }
.tpl-canadian-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ============================
   TEMPLATE 6: EUROPASS
   ============================ */
.tpl-europass-cv { min-height: 1123px; font-family: Arial, sans-serif; font-size: 11px; color: #1A2332; }
.tpl-europass-header { background: #003087; color: white; padding: 24px 32px; display: flex; align-items: center; gap: 20px; }
.tpl-europass-logo { display: flex; flex-direction: column; align-items: center; margin-right: 8px; }
.tpl-europass-logo-stars { display: grid; grid-template-columns: repeat(4, 10px); gap: 2px; margin-bottom: 4px; }
.tpl-europass-star { color: #FFD700; font-size: 8px; text-align: center; }
.tpl-europass-logo-text { font-size: 7px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.tpl-europass-divider-v { width: 1px; height: 60px; background: rgba(255,255,255,0.3); margin: 0 12px; }
.tpl-europass-photo {
  width: 84px; height: 100px; border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.5);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15); font-size: 22px; font-weight: 700;
}
.tpl-europass-photo img { width: 100%; height: 100%; object-fit: cover; }
.tpl-europass-header-info { flex: 1; }
.tpl-europass-name { font-size: 22px; font-weight: 700; margin-bottom: 2px; letter-spacing: 0.5px; }
.tpl-europass-role { font-size: 12px; opacity: 0.85; margin-bottom: 8px; }
.tpl-europass-contacts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10px; opacity: 0.85; }

.tpl-europass-body { padding: 0; }
.tpl-europass-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid #D1D5DB;
  min-height: 32px;
}
.tpl-europass-row:last-child { border-bottom: none; }
.tpl-europass-label {
  background: #F0F4F8;
  padding: 10px 12px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: #003087;
  display: flex; align-items: flex-start;
  border-right: 1px solid #D1D5DB;
}
.tpl-europass-content { padding: 10px 16px; font-size: 11px; line-height: 1.5; }
.tpl-europass-section-header {
  background: #003087; color: white;
  padding: 8px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.tpl-europass-section-icon { font-size: 13px; }
.tpl-europass-entry { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #E5E7EB; }
.tpl-europass-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tpl-europass-entry-date { font-size: 10px; color: #6B7280; margin-bottom: 2px; }
.tpl-europass-entry-title { font-weight: 700; margin-bottom: 2px; }
.tpl-europass-entry-sub { color: #003087; margin-bottom: 2px; }
.tpl-europass-entry-desc { color: #4B5563; line-height: 1.5; }
.tpl-europass-lang-grid { display: grid; grid-template-columns: 100px repeat(5, 1fr); gap: 4px; font-size: 10px; }
.tpl-europass-lang-header { font-weight: 700; color: #003087; text-align: center; padding: 3px; }
.tpl-europass-lang-cell { text-align: center; padding: 3px; border: 1px solid #E5E7EB; border-radius: 2px; }
.tpl-europass-lang-name { font-weight: 600; display: flex; align-items: center; padding: 3px 0; }

/* ============================
   COUNTDOWN MODAL
   ============================ */
#countdown-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: modal-bg-in 0.3s ease;
}
#countdown-modal.active { display: flex; }
@keyframes modal-bg-in { from { opacity: 0; } to { opacity: 1; } }

.countdown-box {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  max-width: 440px; width: 90%;
  text-align: center;
  animation: modal-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
}
@keyframes modal-slide-in {
  from { opacity: 0; transform: scale(0.82) translateY(24px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.countdown-icon { font-size: 44px; margin-bottom: 12px; color: var(--primary); }
.countdown-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.countdown-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.countdown-ring {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 24px;
}
.countdown-ring svg { transform: rotate(-90deg); }
.countdown-ring-bg   { fill: none; stroke: var(--border-mid); stroke-width: 5; }
.countdown-ring-fill {
  fill: none; stroke: var(--primary); stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.countdown-number {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 700; color: var(--primary);
}
.countdown-ad-zone { margin: 16px 0; min-height: 90px; }
.countdown-skip {
  background: none;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-full);
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
  margin-top: 8px;
}
.countdown-skip:hover { border-color: var(--primary); color: var(--primary); }
.countdown-progress-text { font-size: 12px; color: var(--text-light); margin-top: 8px; }

/* ── ATS Template ─────────────────────────────── */
.tpl-ats-cv {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt;
  color: #000;
  background: #fff;
  padding: 28px 32px;
  line-height: 1.5;
  min-height: 297mm;
  box-sizing: border-box;
}
.tpl-ats-name {
  font-size: 20pt;
  font-weight: 700;
  color: #000;
  margin-bottom: 2px;
  letter-spacing: 0;
}
.tpl-ats-title {
  font-size: 11pt;
  color: #333;
  margin-bottom: 6px;
}
.tpl-ats-contact {
  font-size: 10pt;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.7;
}
.tpl-ats-contact span { margin-right: 14px; }
.tpl-ats-divider {
  border: none;
  border-top: 1px solid #000;
  margin: 10px 0;
}
.tpl-ats-section {
  margin-bottom: 14px;
}
.tpl-ats-section-title {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  margin-bottom: 8px;
}
.tpl-ats-entry { margin-bottom: 10px; }
.tpl-ats-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tpl-ats-entry-title { font-weight: 700; font-size: 10.5pt; }
.tpl-ats-entry-date { font-size: 10pt; color: #444; }
.tpl-ats-entry-org { font-size: 10pt; color: #222; margin-bottom: 3px; }
.tpl-ats-entry-desc { font-size: 10pt; color: #333; margin-top: 2px; line-height: 1.5; }
.tpl-ats-summary { font-size: 10.5pt; color: #222; margin-bottom: 0; line-height: 1.6; }
.tpl-ats-skills-list { font-size: 10.5pt; color: #222; line-height: 1.7; }

/* Print */
@media print {
  body * { visibility: hidden; }
  #cv-paper, #cv-paper * { visibility: visible; }
  #cv-paper { position: fixed; top: 0; left: 0; width: 210mm; min-height: 297mm; box-shadow: none; border-radius: 0; transform: none !important; }
}

/* Responsive */
@media (max-width: 1100px) {
  .preview-layout { grid-template-columns: 260px 1fr; }
  .preview-main { padding: 20px 12px; }
  #cv-paper { transform: scale(0.75) !important; transform-origin: top center !important; margin-bottom: -280px; }
}
@media (max-width: 900px) {
  .preview-layout { grid-template-columns: 1fr; }
  .preview-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  #cv-paper { transform: scale(0.6) !important; transform-origin: top center !important; margin-bottom: -450px; }
}
@media (max-width: 600px) {
  #cv-paper { transform: scale(0.42) !important; transform-origin: top center !important; margin-bottom: -650px; }
  .preview-main { padding: 12px 4px; }
}
