/* ================================================================
   RESET + FONTS
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ifont: 'Inter', system-ui, sans-serif;
  --dfont: 'Space Grotesk', system-ui, sans-serif;
  --transition: 0.25s ease;
}

/* ─── LIGHT THEME (default) ─── */
[data-theme="light"] {
  --bg: #eef1f8;
  --panel-bg: #eef1f8;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-mid: #cbd5e1;
  --text: #111827;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --primary: #2563eb;
  --primary-mid: #3b82f6;
  --primary-bg: #dbeafe;
  --primary-dim: #eff6ff;
  --danger: #ef4444;
  --green: #10b981;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-paper: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --tag-bg: #eff6ff;
  --tag-border: #bfdbfe;
  --tag-color: #2563eb;
}

/* ─── DARK THEME ─── */
[data-theme="dark"] {
  --bg: #0f1117;
  --panel-bg: #0f1117;
  --surface: #161b2a;
  --card: #1c2336;
  --border: #1e2840;
  --border-mid: #2a3558;
  --text: #e8edf6;
  --text-muted: #8d9ab8;
  --text-dim: #4d5a70;
  --primary: #3b82f6;
  --primary-mid: #60a5fa;
  --primary-bg: rgba(59, 130, 246, 0.15);
  --primary-dim: rgba(59, 130, 246, 0.07);
  --danger: #f87171;
  --green: #34d399;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-paper: 0 8px 40px rgba(0, 0, 0, 0.45);
  --input-bg: #111728;
  --input-border: #243050;
  --tag-bg: rgba(59, 130, 246, 0.1);
  --tag-border: rgba(59, 130, 246, 0.25);
  --tag-color: #60a5fa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ifont);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
  overflow: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ================================================================
   APP HEADER
   ================================================================ */
.app-header {
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.app-header-inner {
  height: 100%;
  max-width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--dfont);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-active-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
  background: var(--primary-dim);
  border: 1px solid var(--primary-bg);
  border-radius: 100px;
  padding: 5px 13px;
}

.preview-active-badge svg {
  flex-shrink: 0;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-btn:hover {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--primary-bg);
}

.header-export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--dfont);
  transition: all 0.2s;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.header-export-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ================================================================
   APP LAYOUT — 2 column
   ================================================================ */
.app-layout {
  display: grid;
  grid-template-columns: 500px 1fr;
  height: calc(100vh - 60px);
}

/* ================================================================
   LEFT: FORM COLUMN
   ================================================================ */
.form-column {
  background: var(--panel-bg);
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  padding: 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.form-column::-webkit-scrollbar {
  width: 5px;
}

.form-column::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 10px;
}

/* ── STEP HEADER CARD ── */
.step-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px 18px;
  box-shadow: var(--shadow-sm);
}

.step-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.step-title {
  font-family: var(--dfont);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-counter {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.step-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--dfont);
  line-height: 1;
}

.step-total {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Segmented progress */
.step-segments-row {
  display: flex;
  gap: 5px;
}

.step-segment {
  flex: 1;
  height: 4px;
  border-radius: 100px;
  background: var(--border);
  transition: background 0.3s ease;
}

.step-segment.done {
  background: var(--primary-bg);
}

.step-segment.active {
  background: var(--primary);
}

/* ── FORM CARD ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

#builder-form {
  padding: 24px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Fields */
.field-group {
  margin-bottom: 18px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.field-input,
.field-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--ifont);
  font-size: 0.88rem;
  padding: 10px 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field-input:focus,
.field-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-dim);
}

.field-textarea {
  resize: vertical;
  min-height: 80px;
}

.char-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: right;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

/* Icon inputs */
.input-icon-wrap {
  position: relative;
}

.input-prefix-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.field-input.has-icon {
  padding-left: 36px;
}

/* Section subheaders */
.section-subheader {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0 14px;
  font-family: var(--dfont);
}

/* Tag previews */
.tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tag-pill {
  font-size: 0.73rem;
  color: var(--tag-color);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 5px;
  padding: 2px 9px;
  font-weight: 500;
}

/* Profile photo upload */
.photo-upload-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 20px;
}

.photo-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
  overflow: hidden;
}

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

.photo-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.photo-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.photo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.photo-upload-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.photo-upload-link:hover {
  text-decoration: underline;
}

.photo-remove-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--dfont);
}

.photo-remove-link:hover {
  text-decoration: underline;
}

/* Entry cards for repeatable sections */
.entry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.entry-card:hover {
  border-color: var(--border-mid);
}

.entry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.entry-card-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-family: var(--dfont);
}

.entry-remove {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.entry-remove:hover {
  background: #fef2f2;
  border-color: var(--danger);
  color: var(--danger);
}

/* Add entry button */
.add-entry-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: 1.5px dashed var(--border-mid);
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--dfont);
  transition: all 0.2s;
  margin-bottom: 14px;
}

.add-entry-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.add-entry-sm {
  font-size: 0.78rem;
  padding: 8px 14px;
  margin-top: 8px;
}

/* "Stand out" dashed card */
.stand-out-card {
  border: 1.5px dashed var(--border-mid);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 4px;
}

.stand-out-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stand-out-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 3px;
}

/* Extras */
.extras-section {
  margin-bottom: 24px;
}

/* ── FORM NAVIGATION (sticky at bottom) ── */
.form-nav {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
  margin-top: auto;
}

.nav-right-btns {
  display: flex;
  gap: 10px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 40px;
  border-radius: 9px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--dfont);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  color: var(--text);
  border-color: var(--border-mid);
  background: var(--bg);
}

.btn-next {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  height: 40px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--dfont);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-next:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-generate {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 40px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--dfont);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-generate:hover {
  background: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.hidden {
  display: none !important;
}

/* Form footer */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.74rem;
  color: var(--text-dim);
  padding: 4px 0;
}

.clear-link {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.74rem;
  font-family: var(--ifont);
  transition: color 0.2s;
}

.clear-link:hover {
  color: var(--danger);
}


/* ================================================================
   RIGHT: PREVIEW COLUMN
   ================================================================ */
.preview-column {
  background: var(--bg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 1px solid var(--border);
}

.preview-scroll-inner {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 32px 100px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.preview-scroll-inner::-webkit-scrollbar {
  width: 5px;
}

.preview-scroll-inner::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 10px;
}

.mobile-pdf-notice {
  display: none;
}

/* Floating action bar */
.preview-float-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  z-index: 10;
  white-space: nowrap;
}

.btn-save-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  height: 40px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--dfont);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save-progress:hover {
  color: var(--text);
  background: var(--surface);
}

.btn-gen-pdf {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  height: 40px;
  border-radius: 100px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--dfont);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.btn-gen-pdf:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

/* ================================================================
   RESUME PAPER — Always paper-white regardless of theme
   ================================================================ */
.resume-paper {
  background: #ffffff;
  color: #111827;
  width: min(720px, 100%);
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
  padding: 52px 56px;
  min-height: 980px;
  font-family: var(--ifont);
  position: relative;
}

/* Paper header */
.rv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.rv-name {
  font-family: var(--dfont);
  font-size: 2.2rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.0;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.rv-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.rv-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

/* Contact row */
.rv-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 10px 0 14px;
}

.rv-contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #374151;
  text-decoration: none;
}

.rv-contact-item svg {
  opacity: 0.6;
  color: #374151;
  flex-shrink: 0;
}

.rv-contact-item:hover {
  color: #2563eb;
}

.rv-header-line {
  height: 2px;
  background: #2563eb;
  margin-bottom: 18px;
  border-radius: 2px;
}

/* Sections */
.rv-section {
  margin-bottom: 18px;
}

.rv-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rv-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.rv-section-line {
  flex: 1;
  height: 1px;
  background: #2563eb;
  opacity: 0.35;
}

.rv-summary {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.75;
}

.rv-placeholder {
  font-size: 0.8rem;
  color: #9ca3af;
  font-style: italic;
}

.rv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Experience / Education entries */
.rv-entry-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.rv-entry-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.rv-entry-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rv-entry-sub {
  font-size: 0.83rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.rv-entry-desc {
  font-size: 0.84rem;
  color: #374151;
  line-height: 1.7;
  white-space: pre-line;
}

.rv-bullets {
  list-style: disc;
  padding-left: 20px;
  margin: 4px 0;
}

.rv-bullets li {
  font-size: 0.84rem;
  color: #374151;
  margin-bottom: 3px;
  line-height: 1.65;
}

.rv-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.rv-entry-tag {
  font-size: 0.71rem;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.rv-entry-url {
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.rv-entry-url:hover {
  text-decoration: underline;
}

/* Skills */
.rv-skills-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.rv-skills-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  min-width: 130px;
  white-space: nowrap;
}

.rv-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rv-skills-pill {
  font-size: 0.74rem;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 2px 9px;
  border-radius: 4px;
}

/* Extras */
.rv-extras-item {
  margin-bottom: 7px;
  font-size: 0.85rem;
  color: #374151;
}

.rv-extras-item strong {
  color: #111827;
  font-weight: 700;
}

/* ================================================================
   MOBILE TABS
   ================================================================ */
.mobile-tabs {
  display: none;
}

/* ================================================================
   PHOTO EDITOR MODAL
   ================================================================ */
.photo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px;
}

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

.photo-editor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  width: min(460px, 100%);
  overflow: hidden;
  animation: pe-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pe-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Header */
.pe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.pe-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pe-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.pe-title {
  font-family: var(--dfont);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pe-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pe-close:hover {
  background: #fef2f2;
  border-color: var(--danger);
  color: var(--danger);
}

/* Canvas */
.pe-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

#photo-canvas {
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 100%;
}

#photo-canvas:active {
  cursor: grabbing;
}

.pe-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 8px;
  padding-bottom: 4px;
}

/* Controls */
.pe-controls {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-bottom: 1px solid var(--border);
}

.pe-ctrl-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pe-ctrl-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 80px;
  flex-shrink: 0;
}

.pe-ctrl-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.pe-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.pe-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
  cursor: grab;
}

.pe-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pe-icon-btn:hover {
  background: var(--primary-dim);
  border-color: var(--primary-bg);
  color: var(--primary);
}

.pe-flip-btn {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--dfont);
  transition: all 0.2s;
}

.pe-flip-btn:hover {
  border-color: var(--primary-bg);
  color: var(--primary);
  background: var(--primary-dim);
}

.pe-flip-btn.active {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
}

.pe-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--dfont);
  min-width: 32px;
  text-align: right;
}

/* Footer */
.pe-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.pe-footer-right {
  display: flex;
  gap: 8px;
}

.pe-btn-reset {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--dfont);
  cursor: pointer;
  transition: all 0.2s;
}

.pe-btn-reset:hover {
  color: var(--text);
  border-color: var(--border-mid);
}

.pe-btn-cancel {
  padding: 0 14px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--dfont);
  cursor: pointer;
  transition: all 0.2s;
}

.pe-btn-cancel:hover {
  color: var(--text);
  border-color: var(--border-mid);
}

.pe-btn-apply {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--dfont);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.pe-btn-apply:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* ================================================================
   PRINT
   ================================================================ */

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* ── 1. PAGE SETUP ──
     margin: 0 removes the browser-added date / URL / page-number bands.
     Internal spacing is handled by padding on .resume-paper below. */
  @page {
    size: A4 portrait;
    margin: 0;
  }

  /* ── 2. HIDE ALL UI CHROME ── */
  .app-header,
  .form-column,
  .step-header-card,
  .form-card,
  .form-nav,
  .form-footer,
  .preview-float-bar,
  .mobile-tabs,
  .photo-overlay,
  .toast,
  .mobile-pdf-notice,
  #particles-canvas {
    display: none !important;
  }

  /* ── 3. RESET BODY / HTML ── */
  html,
  body {
    overflow: visible !important;
    height: auto !important;
    width: auto !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* ── 4. COLLAPSE THE GRID LAYOUT ── */
  .app-layout {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    grid-template-columns: none !important;
    position: static !important;
  }

  /* ── 5. MAKE PREVIEW COLUMN FILL THE WHOLE PAGE ──
     Critical: reset ALL positioning/transform that mobile CSS applies.
     Without this, browsers print a blank page because the column
     is off-screen (left:100%) or clipped (overflow:hidden). */
  .preview-column,
  .preview-column.tab-visible,
  .preview-column.tab-hidden {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    border: none !important;
    background: #fff !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Also reset form column transforms so it doesn't interfere */
  .form-column,
  .form-column.tab-hidden {
    transform: none !important;
    position: static !important;
  }

  .preview-scroll-inner {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
  }

  /* ── 6. THE RESUME PAPER — full page, no card chrome ──
     Reset the mobile scaling transform so it prints at full size. */
  .resume-paper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16mm 14mm !important;
    /* owns the page margins since @page margin is 0 */
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: auto !important;
    page-break-inside: avoid;
    font-size: 10pt;
    /* Critical: reset mobile scaling transform */
    transform: none !important;
    transform-origin: initial !important;
  }

  /* ── 7. TYPOGRAPHY TWEAKS FOR PRINT ── */
  .rv-name {
    font-size: 20pt !important;
  }

  .rv-title {
    font-size: 9pt !important;
  }

  .rv-summary {
    font-size: 9.5pt !important;
  }

  .rv-entry-title {
    font-size: 10pt !important;
  }

  .rv-entry-sub,
  .rv-entry-desc,
  .rv-bullets li {
    font-size: 9pt !important;
  }

  .rv-section-title {
    font-size: 7pt !important;
  }

  .rv-skills-cat {
    font-size: 8.5pt !important;
  }

  .rv-skills-pill,
  .rv-entry-tag {
    font-size: 7.5pt !important;
  }


  /* ── 9. AVOID WIDOW/ORPHAN BREAKS ── */
  .rv-section {
    page-break-inside: avoid;
  }

  .rv-entry {
    page-break-inside: avoid;
  }

  /* ── 10. HIDE PLACEHOLDER TEXT ── */
  .rv-placeholder {
    display: none !important;
  }

  /* ── 10b. HIDE PLACEHOLDER PROFILE PHOTO ── */
  .rv-photo[data-placeholder="true"] {
    display: none !important;
  }

  /* ── 11. LINKS — show as plain text in print ── */
  .rv-contact-item,
  .rv-entry-url {
    color: #374151 !important;
    text-decoration: none !important;
  }
}

/* ================================================================
   TOAST NOTIFICATION (Mobile UX)
   ================================================================ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--text);
  color: var(--surface);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--dfont);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1000px) {
  .app-layout {
    grid-template-columns: 420px 1fr;
  }
}

@media (max-width: 780px) {
  body {
    overflow: auto;
  }

  .app-layout {
    display: block;
    height: calc(100vh - 60px - 56px);
    overflow: hidden;
  }

  .form-column {
    position: fixed;
    top: 60px;
    bottom: 56px;
    left: 0;
    right: 0;
    height: auto;
    z-index: 10;
    transition: transform 0.3s ease;
  }

  .form-column.tab-hidden {
    transform: translateX(-100%);
  }

  .preview-column {
    position: fixed;
    top: 60px;
    bottom: 56px;
    left: 100%;
    right: 0;
    width: 100%;
    border-left: none;
    transition: transform 0.3s ease;
    overflow: hidden;
  }

  .preview-column.tab-visible {
    transform: translateX(-100%);
  }

  .mobile-tabs {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 200;
  }

  .mobile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--dfont);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s;
  }

  .mobile-tab.active {
    color: var(--primary);
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* ── Mobile Preview: scale-to-fit approach ── */
  .preview-scroll-inner {
    padding: 16px 0 120px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .resume-paper {
    /* Keep the paper at full desktop width so content renders properly */
    width: 720px !important;
    max-width: 720px !important;
    padding: 44px 48px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1) !important;
    min-height: 980px;

    /* Scale down from top-left to fit the viewport width.
       --mobile-scale is set by JS for reliable cross-browser support.
       Fallback: use a conservative 0.5 scale if JS hasn't run yet. */
    transform-origin: top left;
    transform: scale(var(--mobile-scale, 0.5));

    /* Shrink the layout box to match the visual (scaled) size.
       This prevents overflow and ensures scrolling works correctly. */
    margin-bottom: calc(-980px * (1 - var(--mobile-scale, 0.5))) !important;
    margin-right: calc(-720px * (1 - var(--mobile-scale, 0.5))) !important;
  }

  .preview-active-badge {
    display: none;
  }

  /* Float bar adjustments for mobile */
  .preview-float-bar {
    position: fixed;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    border-radius: 100px;
    padding: 4px 6px;
    gap: 8px;
  }

  .btn-save-progress {
    font-size: 0.75rem;
    padding: 0 14px;
    height: 38px;
  }

  .btn-gen-pdf {
    font-size: 0.75rem;
    padding: 0 16px;
    height: 38px;
  }

  /* Touch targets improvement */
  .field-input,
  .pe-btn-apply,
  .pe-btn-cancel,
  .pe-btn-reset {
    height: 44px;
  }

  .btn-next,
  .btn-generate {
    height: 44px;
  }

  .entry-card-header {
    padding: 14px 16px;
    min-height: 44px;
  }

  .entry-remove {
    padding: 8px;
    margin: -8px;
  }

  /* Virtual keyboard fix: un-sticky the bottom nav so it stops jumping over inputs */
  .form-nav {
    position: static;
    margin: 20px -24px -20px;
    /* pull out of padding to touch edges */
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
    padding: 16px 24px;
    background: var(--surface);
  }

  .mobile-pdf-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    margin: 8px 16px 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: var(--dfont);
    text-align: center;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .rv-name {
    font-size: 1.5rem;
  }

  .rv-entry-header {
    flex-direction: column;
    gap: 3px;
  }
}

/* ================================================================
   RESUME TEMPLATE THEMES
   Applied via data-template attribute on .resume-paper
   ================================================================ */

/* ── Classic (default — blue) ── */
/* No overrides needed, inherits base styles */

/* ── Modern — Teal/Emerald ── */
.resume-paper[data-template="modern"] .rv-title {
  color: #0d9488;
}

.resume-paper[data-template="modern"] .rv-header-line {
  background: #0d9488;
}

.resume-paper[data-template="modern"] .rv-section-title {
  color: #0d9488;
}

.resume-paper[data-template="modern"] .rv-section-line {
  background: #0d9488;
}

.resume-paper[data-template="modern"] .rv-contact-item:hover {
  color: #0d9488;
}

.resume-paper[data-template="modern"] .rv-entry-url {
  color: #0d9488;
}

.resume-paper[data-template="modern"] .rv-skills-pill {
  color: #0d9488;
  background: #f0fdfa;
  border-color: #ccfbf1;
}

.resume-paper[data-template="modern"] .rv-entry-tag {
  color: #0d9488;
  background: #f0fdfa;
  border-color: #ccfbf1;
}

/* ── Executive — Dark Navy Header, Gold Accents ── */
.resume-paper[data-template="executive"] .rv-header {
  background: #1e293b;
  color: #fff;
  margin: -52px -56px 0;
  padding: 48px 56px 28px;
}

.resume-paper[data-template="executive"] .rv-name {
  color: #fff;
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="executive"] .rv-title {
  color: #d97706;
}

.resume-paper[data-template="executive"] .rv-header+.rv-contacts {
  margin-top: 16px;
}

.resume-paper[data-template="executive"] .rv-header-line {
  background: #d97706;
  height: 1px;
}

.resume-paper[data-template="executive"] .rv-section-title {
  color: #1e293b;
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="executive"] .rv-section-line {
  background: #d97706;
}

.resume-paper[data-template="executive"] .rv-skills-pill {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.resume-paper[data-template="executive"] .rv-entry-tag {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.resume-paper[data-template="executive"] .rv-entry-url {
  color: #d97706;
}

/* ── Creative — Purple Gradient ── */
.resume-paper[data-template="creative"] .rv-name {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-paper[data-template="creative"] .rv-title {
  color: #7c3aed;
}

.resume-paper[data-template="creative"] .rv-header-line {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  height: 3px;
}

.resume-paper[data-template="creative"] .rv-section-title {
  color: #7c3aed;
}

.resume-paper[data-template="creative"] .rv-section-line {
  background: #7c3aed;
}

.resume-paper[data-template="creative"] .rv-contact-item:hover {
  color: #7c3aed;
}

.resume-paper[data-template="creative"] .rv-entry-url {
  color: #7c3aed;
}

.resume-paper[data-template="creative"] .rv-skills-pill {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ede9fe;
}

.resume-paper[data-template="creative"] .rv-entry-tag {
  color: #ec4899;
  background: #fdf2f8;
  border-color: #fce7f3;
}

/* ── Developer — Green Monospace ── */
.resume-paper[data-template="developer"] .rv-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
}

.resume-paper[data-template="developer"] .rv-title {
  color: #059669;
  font-family: 'JetBrains Mono', monospace;
}

.resume-paper[data-template="developer"] .rv-header-line {
  background: #059669;
}

.resume-paper[data-template="developer"] .rv-section-title {
  color: #059669;
  font-family: 'JetBrains Mono', monospace;
}

.resume-paper[data-template="developer"] .rv-section-line {
  background: #059669;
}

.resume-paper[data-template="developer"] .rv-contact-item:hover {
  color: #059669;
}

.resume-paper[data-template="developer"] .rv-entry-url {
  color: #059669;
}

.resume-paper[data-template="developer"] .rv-skills-pill {
  color: #059669;
  background: #ecfdf5;
  border-color: #a7f3d0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
}

.resume-paper[data-template="developer"] .rv-entry-tag {
  color: #059669;
  background: #ecfdf5;
  border-color: #a7f3d0;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Elegant — Burgundy Serif, Centered Header ── */
.resume-paper[data-template="elegant"] .rv-header {
  justify-content: center;
}

.resume-paper[data-template="elegant"] .rv-name-block {
  text-align: center;
}

.resume-paper[data-template="elegant"] .rv-name {
  font-family: 'Playfair Display', serif;
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

.resume-paper[data-template="elegant"] .rv-title {
  color: #881337;
}

.resume-paper[data-template="elegant"] .rv-contacts {
  justify-content: center;
}

.resume-paper[data-template="elegant"] .rv-header-line {
  background: #881337;
}

.resume-paper[data-template="elegant"] .rv-section-title {
  color: #881337;
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="elegant"] .rv-section-line {
  background: #881337;
}

.resume-paper[data-template="elegant"] .rv-contact-item:hover {
  color: #881337;
}

.resume-paper[data-template="elegant"] .rv-entry-url {
  color: #881337;
}

.resume-paper[data-template="elegant"] .rv-skills-pill {
  color: #881337;
  background: #fff1f2;
  border-color: #fecdd3;
}

.resume-paper[data-template="elegant"] .rv-entry-tag {
  color: #881337;
  background: #fff1f2;
  border-color: #fecdd3;
}

/* ── Minimalist — Pure B&W ── */
.resume-paper[data-template="minimalist"] .rv-title {
  color: #111827;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.resume-paper[data-template="minimalist"] .rv-header-line {
  background: #111827;
  height: 1px;
}

.resume-paper[data-template="minimalist"] .rv-section-title {
  color: #111827;
}

.resume-paper[data-template="minimalist"] .rv-section-line {
  background: #d1d5db;
}

.resume-paper[data-template="minimalist"] .rv-skills-pill {
  color: #374151;
  background: transparent;
  border: 1px solid #d1d5db;
}

.resume-paper[data-template="minimalist"] .rv-entry-tag {
  color: #374151;
  background: transparent;
  border: 1px solid #d1d5db;
}

/* ── Bold — Coral/Orange Gradient Header ── */
.resume-paper[data-template="bold"] .rv-header {
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #fff;
  margin: -52px -56px 0;
  padding: 48px 56px 28px;
}

.resume-paper[data-template="bold"] .rv-name {
  color: #fff;
  font-size: 2.5rem;
}

.resume-paper[data-template="bold"] .rv-title {
  color: rgba(255, 255, 255, 0.85);
}

.resume-paper[data-template="bold"] .rv-header+.rv-contacts {
  margin-top: 16px;
}

.resume-paper[data-template="bold"] .rv-header-line {
  background: #dc2626;
  height: 3px;
}

.resume-paper[data-template="bold"] .rv-section-title {
  color: #dc2626;
}

.resume-paper[data-template="bold"] .rv-section-line {
  background: #dc2626;
}

.resume-paper[data-template="bold"] .rv-contact-item:hover {
  color: #dc2626;
}

.resume-paper[data-template="bold"] .rv-entry-url {
  color: #dc2626;
}

.resume-paper[data-template="bold"] .rv-skills-pill {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.resume-paper[data-template="bold"] .rv-entry-tag {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

\n
/* ================================================================\n   GENERATED TEMPLATES \n   ================================================================ */
\n \n
/* ================================================================\n   GENERATED TEMPLATES \n   ================================================================ */
\n

/* ── Template azure ── */
.resume-paper[data-template="azure"] .rv-title {
  color: #3b82f6;
}

.resume-paper[data-template="azure"] .rv-header-line {
  background: #3b82f6;
}

.resume-paper[data-template="azure"] .rv-section-title {
  color: #1e40af;
}

.resume-paper[data-template="azure"] .rv-section-line {
  background: #3b82f6;
  opacity: 0.2;
}

.resume-paper[data-template="azure"] .rv-contact-item:hover {
  color: #3b82f6;
}

.resume-paper[data-template="azure"] .rv-skills-pill {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.resume-paper[data-template="azure"] .rv-entry-tag {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.resume-paper[data-template="azure"] {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="azure"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="azure"] .rv-contacts {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #bfdbfe;
  padding-right: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="azure"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="azure"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="azure"] #rv-skills-section {
  grid-column: 1;
  grid-row: 3 / 8;
  padding-right: 20px;
  border-right: 1px solid #bfdbfe;
  height: 100%;
}

.resume-paper[data-template="azure"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="azure"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="azure"] #rv-summary-section {
  grid-column: 2;
  grid-row: 2;
}

.resume-paper[data-template="azure"] #rv-exp-section {
  grid-column: 2;
  grid-row: 3;
}

.resume-paper[data-template="azure"] #rv-projects-section {
  grid-column: 2;
  grid-row: 4;
}

.resume-paper[data-template="azure"] #rv-edu-section {
  grid-column: 2;
  grid-row: 5;
}

.resume-paper[data-template="azure"] #rv-extras-section {
  grid-column: 2;
  grid-row: 6;
}

/* ── Template sunset ── */
.resume-paper[data-template="sunset"] .rv-header {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  margin: -50px -50px 24px;
  padding: 50px 50px 30px;
  border-radius: 6px 6px 0 0;
}

.resume-paper[data-template="sunset"] .rv-title {
  color: rgba(255, 255, 255, 0.85);
}

.resume-paper[data-template="sunset"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="sunset"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="sunset"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="sunset"] .rv-section-title {
  color: #b45309;
}

.resume-paper[data-template="sunset"] .rv-section-line {
  background: #f59e0b;
  opacity: 0.2;
}

.resume-paper[data-template="sunset"] .rv-contact-item:hover {
  color: #f59e0b;
}

.resume-paper[data-template="sunset"] .rv-skills-pill {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.resume-paper[data-template="sunset"] .rv-entry-tag {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.resume-paper[data-template="sunset"] {
  text-align: center;
}

.resume-paper[data-template="sunset"] .rv-contacts,
.resume-paper[data-template="sunset"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="sunset"] .rv-section-title,
.resume-paper[data-template="sunset"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="sunset"] .rv-section-line,
.resume-paper[data-template="sunset"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="sunset"] .rv-skills-pill,
.resume-paper[data-template="sunset"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="sunset"] #rv-skills-block,
.resume-paper[data-template="sunset"] .mr-skills {
  justify-content: center;
}

/* ── Template nordic ── */
.resume-paper[data-template="nordic"] .rv-title {
  color: #64748b;
}

.resume-paper[data-template="nordic"] .rv-header-line {
  background: #64748b;
}

.resume-paper[data-template="nordic"] .rv-section-title {
  color: #334155;
}

.resume-paper[data-template="nordic"] .rv-section-line {
  background: #64748b;
  opacity: 0.2;
}

.resume-paper[data-template="nordic"] .rv-contact-item:hover {
  color: #64748b;
}

.resume-paper[data-template="nordic"] .rv-skills-pill {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.resume-paper[data-template="nordic"] .rv-entry-tag {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.resume-paper[data-template="nordic"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="nordic"] .rv-name,
.resume-paper[data-template="nordic"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="nordic"] .rv-section-title,
.resume-paper[data-template="nordic"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #64748b;
  padding-bottom: 4px;
}

.resume-paper[data-template="nordic"] .rv-section-line,
.resume-paper[data-template="nordic"] .mr-section-line {
  display: none;
}

/* ── Template emerald ── */
.resume-paper[data-template="emerald"] .rv-title {
  color: #059669;
}

.resume-paper[data-template="emerald"] .rv-header-line {
  background: #059669;
}

.resume-paper[data-template="emerald"] .rv-section-title {
  color: #065f46;
}

.resume-paper[data-template="emerald"] .rv-section-line {
  background: #059669;
  opacity: 0.2;
}

.resume-paper[data-template="emerald"] .rv-contact-item:hover {
  color: #059669;
}

.resume-paper[data-template="emerald"] .rv-skills-pill {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.resume-paper[data-template="emerald"] .rv-entry-tag {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.resume-paper[data-template="emerald"] .rv-section,
.resume-paper[data-template="emerald"] .mr-section {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume-paper[data-template="emerald"] .rv-section-line,
.resume-paper[data-template="emerald"] .mr-section-line {
  display: none;
}

/* ── Template midnight ── */
.resume-paper[data-template="midnight"] {
  background: #0f172a;
  color: #06b6d4;
}

.resume-paper[data-template="midnight"] .rv-title {
  color: #06b6d4;
}

.resume-paper[data-template="midnight"] .rv-header-line {
  background: #06b6d4;
  opacity: 0.5;
}

.resume-paper[data-template="midnight"] .rv-section-title {
  color: #06b6d4;
}

.resume-paper[data-template="midnight"] .rv-section-line {
  background: #06b6d4;
  opacity: 0.4;
}

.resume-paper[data-template="midnight"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.7);
}

.resume-paper[data-template="midnight"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="midnight"] .rv-entry-title {
  color: #06b6d4;
}

.resume-paper[data-template="midnight"] .rv-entry-desc {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="midnight"] .rv-entry-sub {
  color: rgba(255, 255, 255, 0.6);
}

.resume-paper[data-template="midnight"] .rv-entry-date {
  color: rgba(255, 255, 255, 0.5);
}

.resume-paper[data-template="midnight"] .rv-skills-pill {
  background: transparent;
  color: #06b6d4;
  border-color: #1e293b;
}

.resume-paper[data-template="midnight"] .rv-entry-tag {
  background: transparent;
  color: #06b6d4;
  border-color: #1e293b;
}

.resume-paper[data-template="midnight"] {
  text-align: center;
}

.resume-paper[data-template="midnight"] .rv-contacts,
.resume-paper[data-template="midnight"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="midnight"] .rv-section-title,
.resume-paper[data-template="midnight"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="midnight"] .rv-section-line,
.resume-paper[data-template="midnight"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="midnight"] .rv-skills-pill,
.resume-paper[data-template="midnight"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="midnight"] #rv-skills-block,
.resume-paper[data-template="midnight"] .mr-skills {
  justify-content: center;
}

/* ── Template coral ── */
.resume-paper[data-template="coral"] .rv-title {
  color: #f43f5e;
}

.resume-paper[data-template="coral"] .rv-header-line {
  background: #f43f5e;
}

.resume-paper[data-template="coral"] .rv-section-title {
  color: #be123c;
}

.resume-paper[data-template="coral"] .rv-section-line {
  background: #f43f5e;
  opacity: 0.2;
}

.resume-paper[data-template="coral"] .rv-contact-item:hover {
  color: #f43f5e;
}

.resume-paper[data-template="coral"] .rv-skills-pill {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.resume-paper[data-template="coral"] .rv-entry-tag {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.resume-paper[data-template="coral"] .rv-list,
.resume-paper[data-template="coral"] .mr-section-exp,
.resume-paper[data-template="coral"] .mr-section-edu {
  border-left: 2px solid #fecdd3;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="coral"] .rv-entry,
.resume-paper[data-template="coral"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="coral"] .rv-entry::before,
.resume-paper[data-template="coral"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #f43f5e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff1f2;
}

.resume-paper[data-template="coral"] .rv-entry::before {
  left: -25px;
}

/* ── Template slate ── */
.resume-paper[data-template="slate"] .rv-title {
  color: #64748b;
}

.resume-paper[data-template="slate"] .rv-header-line {
  background: #64748b;
}

.resume-paper[data-template="slate"] .rv-section-title {
  color: #475569;
}

.resume-paper[data-template="slate"] .rv-section-line {
  background: #64748b;
  opacity: 0.2;
}

.resume-paper[data-template="slate"] .rv-contact-item:hover {
  color: #64748b;
}

.resume-paper[data-template="slate"] .rv-skills-pill {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.resume-paper[data-template="slate"] .rv-entry-tag {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.resume-paper[data-template="slate"] {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="slate"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="slate"] .rv-contacts {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #e2e8f0;
  padding-right: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="slate"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="slate"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="slate"] #rv-skills-section {
  grid-column: 1;
  grid-row: 3 / 8;
  padding-right: 20px;
  border-right: 1px solid #e2e8f0;
  height: 100%;
}

.resume-paper[data-template="slate"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="slate"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="slate"] #rv-summary-section {
  grid-column: 2;
  grid-row: 2;
}

.resume-paper[data-template="slate"] #rv-exp-section {
  grid-column: 2;
  grid-row: 3;
}

.resume-paper[data-template="slate"] #rv-projects-section {
  grid-column: 2;
  grid-row: 4;
}

.resume-paper[data-template="slate"] #rv-edu-section {
  grid-column: 2;
  grid-row: 5;
}

.resume-paper[data-template="slate"] #rv-extras-section {
  grid-column: 2;
  grid-row: 6;
}

/* ── Template lavender ── */
.resume-paper[data-template="lavender"] .rv-title {
  color: #8b5cf6;
}

.resume-paper[data-template="lavender"] .rv-header-line {
  background: #8b5cf6;
}

.resume-paper[data-template="lavender"] .rv-section-title {
  color: #6d28d9;
}

.resume-paper[data-template="lavender"] .rv-section-line {
  background: #8b5cf6;
  opacity: 0.2;
}

.resume-paper[data-template="lavender"] .rv-contact-item:hover {
  color: #8b5cf6;
}

.resume-paper[data-template="lavender"] .rv-skills-pill {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.resume-paper[data-template="lavender"] .rv-entry-tag {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.resume-paper[data-template="lavender"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="lavender"] .rv-name,
.resume-paper[data-template="lavender"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="lavender"] .rv-section-title,
.resume-paper[data-template="lavender"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #8b5cf6;
  padding-bottom: 4px;
}

.resume-paper[data-template="lavender"] .rv-section-line,
.resume-paper[data-template="lavender"] .mr-section-line {
  display: none;
}

/* ── Template ruby ── */
.resume-paper[data-template="ruby"] .rv-title {
  color: #dc2626;
}

.resume-paper[data-template="ruby"] .rv-header-line {
  background: #dc2626;
}

.resume-paper[data-template="ruby"] .rv-section-title {
  color: #b91c1c;
}

.resume-paper[data-template="ruby"] .rv-section-line {
  background: #dc2626;
  opacity: 0.2;
}

.resume-paper[data-template="ruby"] .rv-contact-item:hover {
  color: #dc2626;
}

.resume-paper[data-template="ruby"] .rv-skills-pill {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.resume-paper[data-template="ruby"] .rv-entry-tag {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.resume-paper[data-template="ruby"] {
  text-align: center;
}

.resume-paper[data-template="ruby"] .rv-contacts,
.resume-paper[data-template="ruby"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="ruby"] .rv-section-title,
.resume-paper[data-template="ruby"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="ruby"] .rv-section-line,
.resume-paper[data-template="ruby"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="ruby"] .rv-skills-pill,
.resume-paper[data-template="ruby"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="ruby"] #rv-skills-block,
.resume-paper[data-template="ruby"] .mr-skills {
  justify-content: center;
}

/* ── Template ocean ── */
.resume-paper[data-template="ocean"] .rv-header {
  background: linear-gradient(135deg, #1e3a5f, #0d9488);
  color: #fff;
  margin: -50px -50px 24px;
  padding: 50px 50px 30px;
  border-radius: 6px 6px 0 0;
}

.resume-paper[data-template="ocean"] .rv-title {
  color: rgba(255, 255, 255, 0.85);
}

.resume-paper[data-template="ocean"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="ocean"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="ocean"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="ocean"] .rv-section-title {
  color: #0369a1;
}

.resume-paper[data-template="ocean"] .rv-section-line {
  background: #0284c7;
  opacity: 0.2;
}

.resume-paper[data-template="ocean"] .rv-contact-item:hover {
  color: #0284c7;
}

.resume-paper[data-template="ocean"] .rv-skills-pill {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.resume-paper[data-template="ocean"] .rv-entry-tag {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.resume-paper[data-template="ocean"] {
  display: grid;
  grid-template-columns: 1fr 28%;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="ocean"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="ocean"] .rv-contacts {
  grid-column: 2;
  grid-row: 2;
  border-left: 1px solid #bae6fd;
  padding-left: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="ocean"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="ocean"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="ocean"] #rv-skills-section {
  grid-column: 2;
  grid-row: 3 / 8;
  padding-left: 20px;
  border-left: 1px solid #bae6fd;
  height: 100%;
}

.resume-paper[data-template="ocean"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="ocean"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="ocean"] #rv-summary-section {
  grid-column: 1;
  grid-row: 2;
}

.resume-paper[data-template="ocean"] #rv-exp-section {
  grid-column: 1;
  grid-row: 3;
}

.resume-paper[data-template="ocean"] #rv-projects-section {
  grid-column: 1;
  grid-row: 4;
}

.resume-paper[data-template="ocean"] #rv-edu-section {
  grid-column: 1;
  grid-row: 5;
}

.resume-paper[data-template="ocean"] #rv-extras-section {
  grid-column: 1;
  grid-row: 6;
}

/* ── Template monochrome ── */
.resume-paper[data-template="monochrome"] .rv-title {
  color: #1a1a1a;
}

.resume-paper[data-template="monochrome"] .rv-header-line {
  background: #1a1a1a;
}

.resume-paper[data-template="monochrome"] .rv-section-title {
  color: #262626;
}

.resume-paper[data-template="monochrome"] .rv-section-line {
  background: #1a1a1a;
  opacity: 0.2;
}

.resume-paper[data-template="monochrome"] .rv-contact-item:hover {
  color: #1a1a1a;
}

.resume-paper[data-template="monochrome"] .rv-skills-pill {
  background: #f5f5f5;
  color: #262626;
  border-color: #d4d4d4;
}

.resume-paper[data-template="monochrome"] .rv-entry-tag {
  background: #f5f5f5;
  color: #262626;
  border-color: #d4d4d4;
}

.resume-paper[data-template="monochrome"] .rv-list,
.resume-paper[data-template="monochrome"] .mr-section-exp,
.resume-paper[data-template="monochrome"] .mr-section-edu {
  border-left: 2px solid #d4d4d4;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="monochrome"] .rv-entry,
.resume-paper[data-template="monochrome"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="monochrome"] .rv-entry::before,
.resume-paper[data-template="monochrome"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #f5f5f5;
}

.resume-paper[data-template="monochrome"] .rv-entry::before {
  left: -25px;
}

/* ── Template amber ── */
.resume-paper[data-template="amber"] .rv-title {
  color: #d97706;
}

.resume-paper[data-template="amber"] .rv-header-line {
  background: #d97706;
}

.resume-paper[data-template="amber"] .rv-section-title {
  color: #92400e;
}

.resume-paper[data-template="amber"] .rv-section-line {
  background: #d97706;
  opacity: 0.2;
}

.resume-paper[data-template="amber"] .rv-contact-item:hover {
  color: #d97706;
}

.resume-paper[data-template="amber"] .rv-skills-pill {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
}

.resume-paper[data-template="amber"] .rv-entry-tag {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
}

.resume-paper[data-template="amber"] .rv-section,
.resume-paper[data-template="amber"] .mr-section {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume-paper[data-template="amber"] .rv-section-line,
.resume-paper[data-template="amber"] .mr-section-line {
  display: none;
}

/* ── Template ivy ── */
.resume-paper[data-template="ivy"] .rv-title {
  color: #166534;
}

.resume-paper[data-template="ivy"] .rv-header-line {
  background: #166534;
}

.resume-paper[data-template="ivy"] .rv-section-title {
  color: #14532d;
}

.resume-paper[data-template="ivy"] .rv-section-line {
  background: #166534;
  opacity: 0.2;
}

.resume-paper[data-template="ivy"] .rv-contact-item:hover {
  color: #166534;
}

.resume-paper[data-template="ivy"] .rv-skills-pill {
  background: #f0fdf4;
  color: #14532d;
  border-color: #86efac;
}

.resume-paper[data-template="ivy"] .rv-entry-tag {
  background: #f0fdf4;
  color: #14532d;
  border-color: #86efac;
}

.resume-paper[data-template="ivy"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="ivy"] .rv-name,
.resume-paper[data-template="ivy"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="ivy"] .rv-section-title,
.resume-paper[data-template="ivy"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #166534;
  padding-bottom: 4px;
}

.resume-paper[data-template="ivy"] .rv-section-line,
.resume-paper[data-template="ivy"] .mr-section-line {
  display: none;
}

/* ── Template pastel ── */
.resume-paper[data-template="pastel"] .rv-title {
  color: #ec4899;
}

.resume-paper[data-template="pastel"] .rv-header-line {
  background: #ec4899;
}

.resume-paper[data-template="pastel"] .rv-section-title {
  color: #be185d;
}

.resume-paper[data-template="pastel"] .rv-section-line {
  background: #ec4899;
  opacity: 0.2;
}

.resume-paper[data-template="pastel"] .rv-contact-item:hover {
  color: #ec4899;
}

.resume-paper[data-template="pastel"] .rv-skills-pill {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}

.resume-paper[data-template="pastel"] .rv-entry-tag {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}

.resume-paper[data-template="pastel"] {
  text-align: center;
}

.resume-paper[data-template="pastel"] .rv-contacts,
.resume-paper[data-template="pastel"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="pastel"] .rv-section-title,
.resume-paper[data-template="pastel"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="pastel"] .rv-section-line,
.resume-paper[data-template="pastel"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="pastel"] .rv-skills-pill,
.resume-paper[data-template="pastel"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="pastel"] #rv-skills-block,
.resume-paper[data-template="pastel"] .mr-skills {
  justify-content: center;
}

/* ── Template graphite ── */
.resume-paper[data-template="graphite"] .rv-title {
  color: #374151;
}

.resume-paper[data-template="graphite"] .rv-header-line {
  background: #374151;
}

.resume-paper[data-template="graphite"] .rv-section-title {
  color: #1f2937;
}

.resume-paper[data-template="graphite"] .rv-section-line {
  background: #374151;
  opacity: 0.2;
}

.resume-paper[data-template="graphite"] .rv-contact-item:hover {
  color: #374151;
}

.resume-paper[data-template="graphite"] .rv-skills-pill {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #9ca3af;
}

.resume-paper[data-template="graphite"] .rv-entry-tag {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #9ca3af;
}

.resume-paper[data-template="graphite"] .rv-list,
.resume-paper[data-template="graphite"] .mr-section-exp,
.resume-paper[data-template="graphite"] .mr-section-edu {
  border-left: 2px solid #9ca3af;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="graphite"] .rv-entry,
.resume-paper[data-template="graphite"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="graphite"] .rv-entry::before,
.resume-paper[data-template="graphite"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #374151;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #f3f4f6;
}

.resume-paper[data-template="graphite"] .rv-entry::before {
  left: -25px;
}

/* ── Template sakura ── */
.resume-paper[data-template="sakura"] .rv-title {
  color: #f472b6;
}

.resume-paper[data-template="sakura"] .rv-header-line {
  background: #f472b6;
}

.resume-paper[data-template="sakura"] .rv-section-title {
  color: #be185d;
}

.resume-paper[data-template="sakura"] .rv-section-line {
  background: #f472b6;
  opacity: 0.2;
}

.resume-paper[data-template="sakura"] .rv-contact-item:hover {
  color: #f472b6;
}

.resume-paper[data-template="sakura"] .rv-skills-pill {
  background: #fdf2f8;
  color: #be185d;
  border-color: #f9a8d4;
}

.resume-paper[data-template="sakura"] .rv-entry-tag {
  background: #fdf2f8;
  color: #be185d;
  border-color: #f9a8d4;
}

.resume-paper[data-template="sakura"] {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="sakura"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="sakura"] .rv-contacts {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #f9a8d4;
  padding-right: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="sakura"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="sakura"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="sakura"] #rv-skills-section {
  grid-column: 1;
  grid-row: 3 / 8;
  padding-right: 20px;
  border-right: 1px solid #f9a8d4;
  height: 100%;
}

.resume-paper[data-template="sakura"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="sakura"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="sakura"] #rv-summary-section {
  grid-column: 2;
  grid-row: 2;
}

.resume-paper[data-template="sakura"] #rv-exp-section {
  grid-column: 2;
  grid-row: 3;
}

.resume-paper[data-template="sakura"] #rv-projects-section {
  grid-column: 2;
  grid-row: 4;
}

.resume-paper[data-template="sakura"] #rv-edu-section {
  grid-column: 2;
  grid-row: 5;
}

.resume-paper[data-template="sakura"] #rv-extras-section {
  grid-column: 2;
  grid-row: 6;
}

/* ── Template bronze ── */
.resume-paper[data-template="bronze"] .rv-title {
  color: #a16207;
}

.resume-paper[data-template="bronze"] .rv-header-line {
  background: #a16207;
}

.resume-paper[data-template="bronze"] .rv-section-title {
  color: #854d0e;
}

.resume-paper[data-template="bronze"] .rv-section-line {
  background: #a16207;
  opacity: 0.2;
}

.resume-paper[data-template="bronze"] .rv-contact-item:hover {
  color: #a16207;
}

.resume-paper[data-template="bronze"] .rv-skills-pill {
  background: #fefce8;
  color: #854d0e;
  border-color: #fde047;
}

.resume-paper[data-template="bronze"] .rv-entry-tag {
  background: #fefce8;
  color: #854d0e;
  border-color: #fde047;
}

.resume-paper[data-template="bronze"] {
  text-align: center;
}

.resume-paper[data-template="bronze"] .rv-contacts,
.resume-paper[data-template="bronze"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="bronze"] .rv-section-title,
.resume-paper[data-template="bronze"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="bronze"] .rv-section-line,
.resume-paper[data-template="bronze"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="bronze"] .rv-skills-pill,
.resume-paper[data-template="bronze"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="bronze"] #rv-skills-block,
.resume-paper[data-template="bronze"] .mr-skills {
  justify-content: center;
}

/* ── Template neon ── */
.resume-paper[data-template="neon"] {
  background: #0a0a0a;
  color: #22c55e;
}

.resume-paper[data-template="neon"] .rv-title {
  color: #22c55e;
}

.resume-paper[data-template="neon"] .rv-header-line {
  background: #22c55e;
  opacity: 0.5;
}

.resume-paper[data-template="neon"] .rv-section-title {
  color: #22c55e;
}

.resume-paper[data-template="neon"] .rv-section-line {
  background: #22c55e;
  opacity: 0.4;
}

.resume-paper[data-template="neon"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.7);
}

.resume-paper[data-template="neon"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="neon"] .rv-entry-title {
  color: #22c55e;
}

.resume-paper[data-template="neon"] .rv-entry-desc {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="neon"] .rv-entry-sub {
  color: rgba(255, 255, 255, 0.6);
}

.resume-paper[data-template="neon"] .rv-entry-date {
  color: rgba(255, 255, 255, 0.5);
}

.resume-paper[data-template="neon"] .rv-skills-pill {
  background: transparent;
  color: #22c55e;
  border-color: #1a1a1a;
}

.resume-paper[data-template="neon"] .rv-entry-tag {
  background: transparent;
  color: #22c55e;
  border-color: #1a1a1a;
}

.resume-paper[data-template="neon"] .rv-list,
.resume-paper[data-template="neon"] .mr-section-exp,
.resume-paper[data-template="neon"] .mr-section-edu {
  border-left: 2px solid #1a1a1a;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="neon"] .rv-entry,
.resume-paper[data-template="neon"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="neon"] .rv-entry::before,
.resume-paper[data-template="neon"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #0a0a0a;
}

.resume-paper[data-template="neon"] .rv-entry::before {
  left: -25px;
}

/* ── Template swiss ── */
.resume-paper[data-template="swiss"] .rv-title {
  color: #ef4444;
}

.resume-paper[data-template="swiss"] .rv-header-line {
  background: #ef4444;
}

.resume-paper[data-template="swiss"] .rv-section-title {
  color: #1a1a1a;
}

.resume-paper[data-template="swiss"] .rv-section-line {
  background: #ef4444;
  opacity: 0.2;
}

.resume-paper[data-template="swiss"] .rv-contact-item:hover {
  color: #ef4444;
}

.resume-paper[data-template="swiss"] .rv-skills-pill {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #e5e7eb;
}

.resume-paper[data-template="swiss"] .rv-entry-tag {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #e5e7eb;
}

.resume-paper[data-template="swiss"] .rv-name,
.resume-paper[data-template="swiss"] .mr-name {
  text-transform: uppercase;
  font-size: 3rem;
  letter-spacing: -1px;
}

.resume-paper[data-template="swiss"] .rv-section-title,
.resume-paper[data-template="swiss"] .mr-section-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 900;
  background: #ef4444;
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}

.resume-paper[data-template="swiss"] .rv-section-line,
.resume-paper[data-template="swiss"] .mr-section-line {
  display: none;
}

/* ── Template royal ── */
.resume-paper[data-template="royal"] .rv-header {
  background: linear-gradient(135deg, #312e81, #1e1b4b);
  color: #fff;
  margin: -50px -50px 24px;
  padding: 50px 50px 30px;
  border-radius: 6px 6px 0 0;
}

.resume-paper[data-template="royal"] .rv-title {
  color: rgba(255, 255, 255, 0.85);
}

.resume-paper[data-template="royal"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="royal"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="royal"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="royal"] .rv-section-title {
  color: #3730a3;
}

.resume-paper[data-template="royal"] .rv-section-line {
  background: #4338ca;
  opacity: 0.2;
}

.resume-paper[data-template="royal"] .rv-contact-item:hover {
  color: #4338ca;
}

.resume-paper[data-template="royal"] .rv-skills-pill {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.resume-paper[data-template="royal"] .rv-entry-tag {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.resume-paper[data-template="royal"] {
  text-align: center;
}

.resume-paper[data-template="royal"] .rv-contacts,
.resume-paper[data-template="royal"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="royal"] .rv-section-title,
.resume-paper[data-template="royal"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="royal"] .rv-section-line,
.resume-paper[data-template="royal"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="royal"] .rv-skills-pill,
.resume-paper[data-template="royal"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="royal"] #rv-skills-block,
.resume-paper[data-template="royal"] .mr-skills {
  justify-content: center;
}

/* ── Template sage ── */
.resume-paper[data-template="sage"] .rv-title {
  color: #65a30d;
}

.resume-paper[data-template="sage"] .rv-header-line {
  background: #65a30d;
}

.resume-paper[data-template="sage"] .rv-section-title {
  color: #4d7c0f;
}

.resume-paper[data-template="sage"] .rv-section-line {
  background: #65a30d;
  opacity: 0.2;
}

.resume-paper[data-template="sage"] .rv-contact-item:hover {
  color: #65a30d;
}

.resume-paper[data-template="sage"] .rv-skills-pill {
  background: #f7fee7;
  color: #4d7c0f;
  border-color: #bef264;
}

.resume-paper[data-template="sage"] .rv-entry-tag {
  background: #f7fee7;
  color: #4d7c0f;
  border-color: #bef264;
}

.resume-paper[data-template="sage"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="sage"] .rv-name,
.resume-paper[data-template="sage"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="sage"] .rv-section-title,
.resume-paper[data-template="sage"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #65a30d;
  padding-bottom: 4px;
}

.resume-paper[data-template="sage"] .rv-section-line,
.resume-paper[data-template="sage"] .mr-section-line {
  display: none;
}

/* ── Template metro ── */
.resume-paper[data-template="metro"] .rv-title {
  color: #2563eb;
}

.resume-paper[data-template="metro"] .rv-header-line {
  background: #2563eb;
}

.resume-paper[data-template="metro"] .rv-section-title {
  color: #1d4ed8;
}

.resume-paper[data-template="metro"] .rv-section-line {
  background: #2563eb;
  opacity: 0.2;
}

.resume-paper[data-template="metro"] .rv-contact-item:hover {
  color: #2563eb;
}

.resume-paper[data-template="metro"] .rv-skills-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.resume-paper[data-template="metro"] .rv-entry-tag {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.resume-paper[data-template="metro"] .rv-list,
.resume-paper[data-template="metro"] .mr-section-exp,
.resume-paper[data-template="metro"] .mr-section-edu {
  border-left: 2px solid #93c5fd;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="metro"] .rv-entry,
.resume-paper[data-template="metro"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="metro"] .rv-entry::before,
.resume-paper[data-template="metro"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #eff6ff;
}

.resume-paper[data-template="metro"] .rv-entry::before {
  left: -25px;
}

/* ── Template ivory ── */
.resume-paper[data-template="ivory"] .rv-title {
  color: #92400e;
}

.resume-paper[data-template="ivory"] .rv-header-line {
  background: #92400e;
}

.resume-paper[data-template="ivory"] .rv-section-title {
  color: #78350f;
}

.resume-paper[data-template="ivory"] .rv-section-line {
  background: #92400e;
  opacity: 0.2;
}

.resume-paper[data-template="ivory"] .rv-contact-item:hover {
  color: #92400e;
}

.resume-paper[data-template="ivory"] .rv-skills-pill {
  background: #fffbf0;
  color: #78350f;
  border-color: #fbbf24;
}

.resume-paper[data-template="ivory"] .rv-entry-tag {
  background: #fffbf0;
  color: #78350f;
  border-color: #fbbf24;
}

.resume-paper[data-template="ivory"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="ivory"] .rv-name,
.resume-paper[data-template="ivory"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="ivory"] .rv-section-title,
.resume-paper[data-template="ivory"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #92400e;
  padding-bottom: 4px;
}

.resume-paper[data-template="ivory"] .rv-section-line,
.resume-paper[data-template="ivory"] .mr-section-line {
  display: none;
}

/* ── Template pixel ── */
.resume-paper[data-template="pixel"] .rv-title {
  color: #8b5cf6;
}

.resume-paper[data-template="pixel"] .rv-header-line {
  background: #8b5cf6;
}

.resume-paper[data-template="pixel"] .rv-section-title {
  color: #7c3aed;
}

.resume-paper[data-template="pixel"] .rv-section-line {
  background: #8b5cf6;
  opacity: 0.2;
}

.resume-paper[data-template="pixel"] .rv-contact-item:hover {
  color: #8b5cf6;
}

.resume-paper[data-template="pixel"] .rv-skills-pill {
  background: #faf5ff;
  color: #7c3aed;
  border-color: #c4b5fd;
}

.resume-paper[data-template="pixel"] .rv-entry-tag {
  background: #faf5ff;
  color: #7c3aed;
  border-color: #c4b5fd;
}

.resume-paper[data-template="pixel"] .rv-name,
.resume-paper[data-template="pixel"] .mr-name {
  text-transform: uppercase;
  font-size: 3rem;
  letter-spacing: -1px;
}

.resume-paper[data-template="pixel"] .rv-section-title,
.resume-paper[data-template="pixel"] .mr-section-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 900;
  background: #8b5cf6;
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}

.resume-paper[data-template="pixel"] .rv-section-line,
.resume-paper[data-template="pixel"] .mr-section-line {
  display: none;
}

/* ── Template charcoal ── */
.resume-paper[data-template="charcoal"] .rv-title {
  color: #525252;
}

.resume-paper[data-template="charcoal"] .rv-header-line {
  background: #525252;
}

.resume-paper[data-template="charcoal"] .rv-section-title {
  color: #404040;
}

.resume-paper[data-template="charcoal"] .rv-section-line {
  background: #525252;
  opacity: 0.2;
}

.resume-paper[data-template="charcoal"] .rv-contact-item:hover {
  color: #525252;
}

.resume-paper[data-template="charcoal"] .rv-skills-pill {
  background: #fafafa;
  color: #404040;
  border-color: #a3a3a3;
}

.resume-paper[data-template="charcoal"] .rv-entry-tag {
  background: #fafafa;
  color: #404040;
  border-color: #a3a3a3;
}

.resume-paper[data-template="charcoal"] .rv-section,
.resume-paper[data-template="charcoal"] .mr-section {
  background: #fafafa;
  border: 1px solid #a3a3a3;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume-paper[data-template="charcoal"] .rv-section-line,
.resume-paper[data-template="charcoal"] .mr-section-line {
  display: none;
}

/* ── Template citrus ── */
.resume-paper[data-template="citrus"] .rv-title {
  color: #84cc16;
}

.resume-paper[data-template="citrus"] .rv-header-line {
  background: #84cc16;
}

.resume-paper[data-template="citrus"] .rv-section-title {
  color: #4d7c0f;
}

.resume-paper[data-template="citrus"] .rv-section-line {
  background: #84cc16;
  opacity: 0.2;
}

.resume-paper[data-template="citrus"] .rv-contact-item:hover {
  color: #84cc16;
}

.resume-paper[data-template="citrus"] .rv-skills-pill {
  background: #f7fee7;
  color: #4d7c0f;
  border-color: #a3e635;
}

.resume-paper[data-template="citrus"] .rv-entry-tag {
  background: #f7fee7;
  color: #4d7c0f;
  border-color: #a3e635;
}

.resume-paper[data-template="citrus"] {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="citrus"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="citrus"] .rv-contacts {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #a3e635;
  padding-right: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="citrus"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="citrus"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="citrus"] #rv-skills-section {
  grid-column: 1;
  grid-row: 3 / 8;
  padding-right: 20px;
  border-right: 1px solid #a3e635;
  height: 100%;
}

.resume-paper[data-template="citrus"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="citrus"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="citrus"] #rv-summary-section {
  grid-column: 2;
  grid-row: 2;
}

.resume-paper[data-template="citrus"] #rv-exp-section {
  grid-column: 2;
  grid-row: 3;
}

.resume-paper[data-template="citrus"] #rv-projects-section {
  grid-column: 2;
  grid-row: 4;
}

.resume-paper[data-template="citrus"] #rv-edu-section {
  grid-column: 2;
  grid-row: 5;
}

.resume-paper[data-template="citrus"] #rv-extras-section {
  grid-column: 2;
  grid-row: 6;
}

/* ── Template blueprint ── */
.resume-paper[data-template="blueprint"] .rv-title {
  color: #2563eb;
}

.resume-paper[data-template="blueprint"] .rv-header-line {
  background: #2563eb;
}

.resume-paper[data-template="blueprint"] .rv-section-title {
  color: #1e40af;
}

.resume-paper[data-template="blueprint"] .rv-section-line {
  background: #2563eb;
  opacity: 0.2;
}

.resume-paper[data-template="blueprint"] .rv-contact-item:hover {
  color: #2563eb;
}

.resume-paper[data-template="blueprint"] .rv-skills-pill {
  background: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
}

.resume-paper[data-template="blueprint"] .rv-entry-tag {
  background: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
}

.resume-paper[data-template="blueprint"] .rv-list,
.resume-paper[data-template="blueprint"] .mr-section-exp,
.resume-paper[data-template="blueprint"] .mr-section-edu {
  border-left: 2px solid #93c5fd;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="blueprint"] .rv-entry,
.resume-paper[data-template="blueprint"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="blueprint"] .rv-entry::before,
.resume-paper[data-template="blueprint"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #eff6ff;
}

.resume-paper[data-template="blueprint"] .rv-entry::before {
  left: -25px;
}

/* ── Template rose ── */
.resume-paper[data-template="rose"] .rv-title {
  color: #e11d48;
}

.resume-paper[data-template="rose"] .rv-header-line {
  background: #e11d48;
}

.resume-paper[data-template="rose"] .rv-section-title {
  color: #be123c;
}

.resume-paper[data-template="rose"] .rv-section-line {
  background: #e11d48;
  opacity: 0.2;
}

.resume-paper[data-template="rose"] .rv-contact-item:hover {
  color: #e11d48;
}

.resume-paper[data-template="rose"] .rv-skills-pill {
  background: #fff1f2;
  color: #be123c;
  border-color: #fda4af;
}

.resume-paper[data-template="rose"] .rv-entry-tag {
  background: #fff1f2;
  color: #be123c;
  border-color: #fda4af;
}

.resume-paper[data-template="rose"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="rose"] .rv-name,
.resume-paper[data-template="rose"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="rose"] .rv-section-title,
.resume-paper[data-template="rose"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #e11d48;
  padding-bottom: 4px;
}

.resume-paper[data-template="rose"] .rv-section-line,
.resume-paper[data-template="rose"] .mr-section-line {
  display: none;
}

/* ── Template timber ── */
.resume-paper[data-template="timber"] .rv-title {
  color: #78350f;
}

.resume-paper[data-template="timber"] .rv-header-line {
  background: #78350f;
}

.resume-paper[data-template="timber"] .rv-section-title {
  color: #713f12;
}

.resume-paper[data-template="timber"] .rv-section-line {
  background: #78350f;
  opacity: 0.2;
}

.resume-paper[data-template="timber"] .rv-contact-item:hover {
  color: #78350f;
}

.resume-paper[data-template="timber"] .rv-skills-pill {
  background: #fef3c7;
  color: #713f12;
  border-color: #d97706;
}

.resume-paper[data-template="timber"] .rv-entry-tag {
  background: #fef3c7;
  color: #713f12;
  border-color: #d97706;
}

.resume-paper[data-template="timber"] .rv-section,
.resume-paper[data-template="timber"] .mr-section {
  background: #fef3c7;
  border: 1px solid #d97706;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume-paper[data-template="timber"] .rv-section-line,
.resume-paper[data-template="timber"] .mr-section-line {
  display: none;
}

/* ── Template aurora ── */
.resume-paper[data-template="aurora"] .rv-header {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  margin: -50px -50px 24px;
  padding: 50px 50px 30px;
  border-radius: 6px 6px 0 0;
}

.resume-paper[data-template="aurora"] .rv-title {
  color: rgba(255, 255, 255, 0.85);
}

.resume-paper[data-template="aurora"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="aurora"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="aurora"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="aurora"] .rv-section-title {
  color: #6d28d9;
}

.resume-paper[data-template="aurora"] .rv-section-line {
  background: #7c3aed;
  opacity: 0.2;
}

.resume-paper[data-template="aurora"] .rv-contact-item:hover {
  color: #7c3aed;
}

.resume-paper[data-template="aurora"] .rv-skills-pill {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #c4b5fd;
}

.resume-paper[data-template="aurora"] .rv-entry-tag {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #c4b5fd;
}

.resume-paper[data-template="aurora"] {
  text-align: center;
}

.resume-paper[data-template="aurora"] .rv-contacts,
.resume-paper[data-template="aurora"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="aurora"] .rv-section-title,
.resume-paper[data-template="aurora"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="aurora"] .rv-section-line,
.resume-paper[data-template="aurora"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="aurora"] .rv-skills-pill,
.resume-paper[data-template="aurora"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="aurora"] #rv-skills-block,
.resume-paper[data-template="aurora"] .mr-skills {
  justify-content: center;
}

/* ── Template concrete ── */
.resume-paper[data-template="concrete"] .rv-title {
  color: #6b7280;
}

.resume-paper[data-template="concrete"] .rv-header-line {
  background: #6b7280;
}

.resume-paper[data-template="concrete"] .rv-section-title {
  color: #4b5563;
}

.resume-paper[data-template="concrete"] .rv-section-line {
  background: #6b7280;
  opacity: 0.2;
}

.resume-paper[data-template="concrete"] .rv-contact-item:hover {
  color: #6b7280;
}

.resume-paper[data-template="concrete"] .rv-skills-pill {
  background: #f9fafb;
  color: #4b5563;
  border-color: #d1d5db;
}

.resume-paper[data-template="concrete"] .rv-entry-tag {
  background: #f9fafb;
  color: #4b5563;
  border-color: #d1d5db;
}

.resume-paper[data-template="concrete"] {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="concrete"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="concrete"] .rv-contacts {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #d1d5db;
  padding-right: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="concrete"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="concrete"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="concrete"] #rv-skills-section {
  grid-column: 1;
  grid-row: 3 / 8;
  padding-right: 20px;
  border-right: 1px solid #d1d5db;
  height: 100%;
}

.resume-paper[data-template="concrete"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="concrete"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="concrete"] #rv-summary-section {
  grid-column: 2;
  grid-row: 2;
}

.resume-paper[data-template="concrete"] #rv-exp-section {
  grid-column: 2;
  grid-row: 3;
}

.resume-paper[data-template="concrete"] #rv-projects-section {
  grid-column: 2;
  grid-row: 4;
}

.resume-paper[data-template="concrete"] #rv-edu-section {
  grid-column: 2;
  grid-row: 5;
}

.resume-paper[data-template="concrete"] #rv-extras-section {
  grid-column: 2;
  grid-row: 6;
}

/* ── Template vineyard ── */
.resume-paper[data-template="vineyard"] .rv-title {
  color: #7f1d1d;
}

.resume-paper[data-template="vineyard"] .rv-header-line {
  background: #7f1d1d;
}

.resume-paper[data-template="vineyard"] .rv-section-title {
  color: #991b1b;
}

.resume-paper[data-template="vineyard"] .rv-section-line {
  background: #7f1d1d;
  opacity: 0.2;
}

.resume-paper[data-template="vineyard"] .rv-contact-item:hover {
  color: #7f1d1d;
}

.resume-paper[data-template="vineyard"] .rv-skills-pill {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}

.resume-paper[data-template="vineyard"] .rv-entry-tag {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}

.resume-paper[data-template="vineyard"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="vineyard"] .rv-name,
.resume-paper[data-template="vineyard"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="vineyard"] .rv-section-title,
.resume-paper[data-template="vineyard"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #7f1d1d;
  padding-bottom: 4px;
}

.resume-paper[data-template="vineyard"] .rv-section-line,
.resume-paper[data-template="vineyard"] .mr-section-line {
  display: none;
}

/* ── Template prism ── */
.resume-paper[data-template="prism"] .rv-title {
  color: #8b5cf6;
}

.resume-paper[data-template="prism"] .rv-header-line {
  background: #8b5cf6;
}

.resume-paper[data-template="prism"] .rv-section-title {
  color: #6d28d9;
}

.resume-paper[data-template="prism"] .rv-section-line {
  background: #8b5cf6;
  opacity: 0.2;
}

.resume-paper[data-template="prism"] .rv-contact-item:hover {
  color: #8b5cf6;
}

.resume-paper[data-template="prism"] .rv-skills-pill {
  background: #faf5ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.resume-paper[data-template="prism"] .rv-entry-tag {
  background: #faf5ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.resume-paper[data-template="prism"] .rv-list,
.resume-paper[data-template="prism"] .mr-section-exp,
.resume-paper[data-template="prism"] .mr-section-edu {
  border-left: 2px solid #ddd6fe;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="prism"] .rv-entry,
.resume-paper[data-template="prism"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="prism"] .rv-entry::before,
.resume-paper[data-template="prism"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #8b5cf6;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #faf5ff;
}

.resume-paper[data-template="prism"] .rv-entry::before {
  left: -25px;
}

/* ── Template snowfall ── */
.resume-paper[data-template="snowfall"] .rv-title {
  color: #94a3b8;
}

.resume-paper[data-template="snowfall"] .rv-header-line {
  background: #94a3b8;
}

.resume-paper[data-template="snowfall"] .rv-section-title {
  color: #64748b;
}

.resume-paper[data-template="snowfall"] .rv-section-line {
  background: #94a3b8;
  opacity: 0.2;
}

.resume-paper[data-template="snowfall"] .rv-contact-item:hover {
  color: #94a3b8;
}

.resume-paper[data-template="snowfall"] .rv-skills-pill {
  background: #ffffff;
  color: #64748b;
  border-color: #e2e8f0;
}

.resume-paper[data-template="snowfall"] .rv-entry-tag {
  background: #ffffff;
  color: #64748b;
  border-color: #e2e8f0;
}

.resume-paper[data-template="snowfall"] {
  text-align: center;
}

.resume-paper[data-template="snowfall"] .rv-contacts,
.resume-paper[data-template="snowfall"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="snowfall"] .rv-section-title,
.resume-paper[data-template="snowfall"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="snowfall"] .rv-section-line,
.resume-paper[data-template="snowfall"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="snowfall"] .rv-skills-pill,
.resume-paper[data-template="snowfall"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="snowfall"] #rv-skills-block,
.resume-paper[data-template="snowfall"] .mr-skills {
  justify-content: center;
}

/* ── Template mahogany ── */
.resume-paper[data-template="mahogany"] .rv-title {
  color: #78350f;
}

.resume-paper[data-template="mahogany"] .rv-header-line {
  background: #78350f;
}

.resume-paper[data-template="mahogany"] .rv-section-title {
  color: #713f12;
}

.resume-paper[data-template="mahogany"] .rv-section-line {
  background: #78350f;
  opacity: 0.2;
}

.resume-paper[data-template="mahogany"] .rv-contact-item:hover {
  color: #78350f;
}

.resume-paper[data-template="mahogany"] .rv-skills-pill {
  background: #fffbeb;
  color: #713f12;
  border-color: #d97706;
}

.resume-paper[data-template="mahogany"] .rv-entry-tag {
  background: #fffbeb;
  color: #713f12;
  border-color: #d97706;
}

.resume-paper[data-template="mahogany"] .rv-section,
.resume-paper[data-template="mahogany"] .mr-section {
  background: #fffbeb;
  border: 1px solid #d97706;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume-paper[data-template="mahogany"] .rv-section-line,
.resume-paper[data-template="mahogany"] .mr-section-line {
  display: none;
}

/* ── Template electric ── */
.resume-paper[data-template="electric"] {
  background: #0c1929;
  color: #60a5fa;
}

.resume-paper[data-template="electric"] .rv-title {
  color: #3b82f6;
}

.resume-paper[data-template="electric"] .rv-header-line {
  background: #3b82f6;
  opacity: 0.5;
}

.resume-paper[data-template="electric"] .rv-section-title {
  color: #60a5fa;
}

.resume-paper[data-template="electric"] .rv-section-line {
  background: #3b82f6;
  opacity: 0.4;
}

.resume-paper[data-template="electric"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.7);
}

.resume-paper[data-template="electric"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="electric"] .rv-entry-title {
  color: #3b82f6;
}

.resume-paper[data-template="electric"] .rv-entry-desc {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="electric"] .rv-entry-sub {
  color: rgba(255, 255, 255, 0.6);
}

.resume-paper[data-template="electric"] .rv-entry-date {
  color: rgba(255, 255, 255, 0.5);
}

.resume-paper[data-template="electric"] .rv-skills-pill {
  background: transparent;
  color: #60a5fa;
  border-color: #1e3a5f;
}

.resume-paper[data-template="electric"] .rv-entry-tag {
  background: transparent;
  color: #60a5fa;
  border-color: #1e3a5f;
}

.resume-paper[data-template="electric"] .rv-list,
.resume-paper[data-template="electric"] .mr-section-exp,
.resume-paper[data-template="electric"] .mr-section-edu {
  border-left: 2px solid #1e3a5f;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="electric"] .rv-entry,
.resume-paper[data-template="electric"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="electric"] .rv-entry::before,
.resume-paper[data-template="electric"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #0c1929;
}

.resume-paper[data-template="electric"] .rv-entry::before {
  left: -25px;
}

/* ── Template bamboo ── */
.resume-paper[data-template="bamboo"] .rv-title {
  color: #16a34a;
}

.resume-paper[data-template="bamboo"] .rv-header-line {
  background: #16a34a;
}

.resume-paper[data-template="bamboo"] .rv-section-title {
  color: #166534;
}

.resume-paper[data-template="bamboo"] .rv-section-line {
  background: #16a34a;
  opacity: 0.2;
}

.resume-paper[data-template="bamboo"] .rv-contact-item:hover {
  color: #16a34a;
}

.resume-paper[data-template="bamboo"] .rv-skills-pill {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.resume-paper[data-template="bamboo"] .rv-entry-tag {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.resume-paper[data-template="bamboo"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="bamboo"] .rv-name,
.resume-paper[data-template="bamboo"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="bamboo"] .rv-section-title,
.resume-paper[data-template="bamboo"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #16a34a;
  padding-bottom: 4px;
}

.resume-paper[data-template="bamboo"] .rv-section-line,
.resume-paper[data-template="bamboo"] .mr-section-line {
  display: none;
}

/* ── Template steel ── */
.resume-paper[data-template="steel"] .rv-title {
  color: #6b7280;
}

.resume-paper[data-template="steel"] .rv-header-line {
  background: #6b7280;
}

.resume-paper[data-template="steel"] .rv-section-title {
  color: #374151;
}

.resume-paper[data-template="steel"] .rv-section-line {
  background: #6b7280;
  opacity: 0.2;
}

.resume-paper[data-template="steel"] .rv-contact-item:hover {
  color: #6b7280;
}

.resume-paper[data-template="steel"] .rv-skills-pill {
  background: #f3f4f6;
  color: #374151;
  border-color: #9ca3af;
}

.resume-paper[data-template="steel"] .rv-entry-tag {
  background: #f3f4f6;
  color: #374151;
  border-color: #9ca3af;
}

.resume-paper[data-template="steel"] {
  display: grid;
  grid-template-columns: 1fr 28%;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="steel"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="steel"] .rv-contacts {
  grid-column: 2;
  grid-row: 2;
  border-left: 1px solid #9ca3af;
  padding-left: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="steel"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="steel"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="steel"] #rv-skills-section {
  grid-column: 2;
  grid-row: 3 / 8;
  padding-left: 20px;
  border-left: 1px solid #9ca3af;
  height: 100%;
}

.resume-paper[data-template="steel"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="steel"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="steel"] #rv-summary-section {
  grid-column: 1;
  grid-row: 2;
}

.resume-paper[data-template="steel"] #rv-exp-section {
  grid-column: 1;
  grid-row: 3;
}

.resume-paper[data-template="steel"] #rv-projects-section {
  grid-column: 1;
  grid-row: 4;
}

.resume-paper[data-template="steel"] #rv-edu-section {
  grid-column: 1;
  grid-row: 5;
}

.resume-paper[data-template="steel"] #rv-extras-section {
  grid-column: 1;
  grid-row: 6;
}

/* ── Template peach ── */
.resume-paper[data-template="peach"] .rv-title {
  color: #fb923c;
}

.resume-paper[data-template="peach"] .rv-header-line {
  background: #fb923c;
}

.resume-paper[data-template="peach"] .rv-section-title {
  color: #c2410c;
}

.resume-paper[data-template="peach"] .rv-section-line {
  background: #fb923c;
  opacity: 0.2;
}

.resume-paper[data-template="peach"] .rv-contact-item:hover {
  color: #fb923c;
}

.resume-paper[data-template="peach"] .rv-skills-pill {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.resume-paper[data-template="peach"] .rv-entry-tag {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.resume-paper[data-template="peach"] {
  text-align: center;
}

.resume-paper[data-template="peach"] .rv-contacts,
.resume-paper[data-template="peach"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="peach"] .rv-section-title,
.resume-paper[data-template="peach"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="peach"] .rv-section-line,
.resume-paper[data-template="peach"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="peach"] .rv-skills-pill,
.resume-paper[data-template="peach"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="peach"] #rv-skills-block,
.resume-paper[data-template="peach"] .mr-skills {
  justify-content: center;
}

/* ── Template horizon ── */
.resume-paper[data-template="horizon"] .rv-title {
  color: #0ea5e9;
}

.resume-paper[data-template="horizon"] .rv-header-line {
  background: #0ea5e9;
}

.resume-paper[data-template="horizon"] .rv-section-title {
  color: #0284c7;
}

.resume-paper[data-template="horizon"] .rv-section-line {
  background: #0ea5e9;
  opacity: 0.2;
}

.resume-paper[data-template="horizon"] .rv-contact-item:hover {
  color: #0ea5e9;
}

.resume-paper[data-template="horizon"] .rv-skills-pill {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #7dd3fc;
}

.resume-paper[data-template="horizon"] .rv-entry-tag {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #7dd3fc;
}

.resume-paper[data-template="horizon"] .rv-list,
.resume-paper[data-template="horizon"] .mr-section-exp,
.resume-paper[data-template="horizon"] .mr-section-edu {
  border-left: 2px solid #7dd3fc;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="horizon"] .rv-entry,
.resume-paper[data-template="horizon"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="horizon"] .rv-entry::before,
.resume-paper[data-template="horizon"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #0ea5e9;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #f0f9ff;
}

.resume-paper[data-template="horizon"] .rv-entry::before {
  left: -25px;
}

/* ── Template garnet ── */
.resume-paper[data-template="garnet"] .rv-header {
  background: linear-gradient(135deg, #881337, #d4a017);
  color: #fff;
  margin: -50px -50px 24px;
  padding: 50px 50px 30px;
  border-radius: 6px 6px 0 0;
}

.resume-paper[data-template="garnet"] .rv-title {
  color: rgba(255, 255, 255, 0.85);
}

.resume-paper[data-template="garnet"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="garnet"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="garnet"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="garnet"] .rv-section-title {
  color: #9f1239;
}

.resume-paper[data-template="garnet"] .rv-section-line {
  background: #be123c;
  opacity: 0.2;
}

.resume-paper[data-template="garnet"] .rv-contact-item:hover {
  color: #be123c;
}

.resume-paper[data-template="garnet"] .rv-skills-pill {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fda4af;
}

.resume-paper[data-template="garnet"] .rv-entry-tag {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fda4af;
}

.resume-paper[data-template="garnet"] {
  text-align: center;
}

.resume-paper[data-template="garnet"] .rv-contacts,
.resume-paper[data-template="garnet"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="garnet"] .rv-section-title,
.resume-paper[data-template="garnet"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="garnet"] .rv-section-line,
.resume-paper[data-template="garnet"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="garnet"] .rv-skills-pill,
.resume-paper[data-template="garnet"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="garnet"] #rv-skills-block,
.resume-paper[data-template="garnet"] .mr-skills {
  justify-content: center;
}

/* ── Template mosaic ── */
.resume-paper[data-template="mosaic"] .rv-title {
  color: #8b5cf6;
}

.resume-paper[data-template="mosaic"] .rv-header-line {
  background: #8b5cf6;
}

.resume-paper[data-template="mosaic"] .rv-section-title {
  color: #7c3aed;
}

.resume-paper[data-template="mosaic"] .rv-section-line {
  background: #8b5cf6;
  opacity: 0.2;
}

.resume-paper[data-template="mosaic"] .rv-contact-item:hover {
  color: #8b5cf6;
}

.resume-paper[data-template="mosaic"] .rv-skills-pill {
  background: #faf5ff;
  color: #7c3aed;
  border-color: #c4b5fd;
}

.resume-paper[data-template="mosaic"] .rv-entry-tag {
  background: #faf5ff;
  color: #7c3aed;
  border-color: #c4b5fd;
}

.resume-paper[data-template="mosaic"] .rv-section,
.resume-paper[data-template="mosaic"] .mr-section {
  background: #faf5ff;
  border: 1px solid #c4b5fd;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume-paper[data-template="mosaic"] .rv-section-line,
.resume-paper[data-template="mosaic"] .mr-section-line {
  display: none;
}

/* ── Template glacier ── */
.resume-paper[data-template="glacier"] .rv-title {
  color: #0891b2;
}

.resume-paper[data-template="glacier"] .rv-header-line {
  background: #0891b2;
}

.resume-paper[data-template="glacier"] .rv-section-title {
  color: #0e7490;
}

.resume-paper[data-template="glacier"] .rv-section-line {
  background: #0891b2;
  opacity: 0.2;
}

.resume-paper[data-template="glacier"] .rv-contact-item:hover {
  color: #0891b2;
}

.resume-paper[data-template="glacier"] .rv-skills-pill {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}

.resume-paper[data-template="glacier"] .rv-entry-tag {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}

.resume-paper[data-template="glacier"] {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="glacier"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="glacier"] .rv-contacts {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #a5f3fc;
  padding-right: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="glacier"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="glacier"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="glacier"] #rv-skills-section {
  grid-column: 1;
  grid-row: 3 / 8;
  padding-right: 20px;
  border-right: 1px solid #a5f3fc;
  height: 100%;
}

.resume-paper[data-template="glacier"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="glacier"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="glacier"] #rv-summary-section {
  grid-column: 2;
  grid-row: 2;
}

.resume-paper[data-template="glacier"] #rv-exp-section {
  grid-column: 2;
  grid-row: 3;
}

.resume-paper[data-template="glacier"] #rv-projects-section {
  grid-column: 2;
  grid-row: 4;
}

.resume-paper[data-template="glacier"] #rv-edu-section {
  grid-column: 2;
  grid-row: 5;
}

.resume-paper[data-template="glacier"] #rv-extras-section {
  grid-column: 2;
  grid-row: 6;
}

/* ── Template terracotta ── */
.resume-paper[data-template="terracotta"] .rv-title {
  color: #c2410c;
}

.resume-paper[data-template="terracotta"] .rv-header-line {
  background: #c2410c;
}

.resume-paper[data-template="terracotta"] .rv-section-title {
  color: #9a3412;
}

.resume-paper[data-template="terracotta"] .rv-section-line {
  background: #c2410c;
  opacity: 0.2;
}

.resume-paper[data-template="terracotta"] .rv-contact-item:hover {
  color: #c2410c;
}

.resume-paper[data-template="terracotta"] .rv-skills-pill {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fb923c;
}

.resume-paper[data-template="terracotta"] .rv-entry-tag {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fb923c;
}

.resume-paper[data-template="terracotta"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="terracotta"] .rv-name,
.resume-paper[data-template="terracotta"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="terracotta"] .rv-section-title,
.resume-paper[data-template="terracotta"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #c2410c;
  padding-bottom: 4px;
}

.resume-paper[data-template="terracotta"] .rv-section-line,
.resume-paper[data-template="terracotta"] .mr-section-line {
  display: none;
}

/* ── Template papercut ── */
.resume-paper[data-template="papercut"] .rv-title {
  color: #d946ef;
}

.resume-paper[data-template="papercut"] .rv-header-line {
  background: #d946ef;
}

.resume-paper[data-template="papercut"] .rv-section-title {
  color: #a21caf;
}

.resume-paper[data-template="papercut"] .rv-section-line {
  background: #d946ef;
  opacity: 0.2;
}

.resume-paper[data-template="papercut"] .rv-contact-item:hover {
  color: #d946ef;
}

.resume-paper[data-template="papercut"] .rv-skills-pill {
  background: #fdf4ff;
  color: #a21caf;
  border-color: #f0abfc;
}

.resume-paper[data-template="papercut"] .rv-entry-tag {
  background: #fdf4ff;
  color: #a21caf;
  border-color: #f0abfc;
}

.resume-paper[data-template="papercut"] {
  display: grid;
  grid-template-columns: 1fr 28%;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="papercut"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="papercut"] .rv-contacts {
  grid-column: 2;
  grid-row: 2;
  border-left: 1px solid #f0abfc;
  padding-left: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="papercut"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="papercut"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="papercut"] #rv-skills-section {
  grid-column: 2;
  grid-row: 3 / 8;
  padding-left: 20px;
  border-left: 1px solid #f0abfc;
  height: 100%;
}

.resume-paper[data-template="papercut"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="papercut"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="papercut"] #rv-summary-section {
  grid-column: 1;
  grid-row: 2;
}

.resume-paper[data-template="papercut"] #rv-exp-section {
  grid-column: 1;
  grid-row: 3;
}

.resume-paper[data-template="papercut"] #rv-projects-section {
  grid-column: 1;
  grid-row: 4;
}

.resume-paper[data-template="papercut"] #rv-edu-section {
  grid-column: 1;
  grid-row: 5;
}

.resume-paper[data-template="papercut"] #rv-extras-section {
  grid-column: 1;
  grid-row: 6;
}

/* ── Template granite ── */
.resume-paper[data-template="granite"] {
  background: #111827;
  color: #9ca3af;
}

.resume-paper[data-template="granite"] .rv-title {
  color: #374151;
}

.resume-paper[data-template="granite"] .rv-header-line {
  background: #374151;
  opacity: 0.5;
}

.resume-paper[data-template="granite"] .rv-section-title {
  color: #9ca3af;
}

.resume-paper[data-template="granite"] .rv-section-line {
  background: #374151;
  opacity: 0.4;
}

.resume-paper[data-template="granite"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.7);
}

.resume-paper[data-template="granite"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="granite"] .rv-entry-title {
  color: #374151;
}

.resume-paper[data-template="granite"] .rv-entry-desc {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="granite"] .rv-entry-sub {
  color: rgba(255, 255, 255, 0.6);
}

.resume-paper[data-template="granite"] .rv-entry-date {
  color: rgba(255, 255, 255, 0.5);
}

.resume-paper[data-template="granite"] .rv-skills-pill {
  background: transparent;
  color: #9ca3af;
  border-color: #374151;
}

.resume-paper[data-template="granite"] .rv-entry-tag {
  background: transparent;
  color: #9ca3af;
  border-color: #374151;
}

.resume-paper[data-template="granite"] .rv-list,
.resume-paper[data-template="granite"] .mr-section-exp,
.resume-paper[data-template="granite"] .mr-section-edu {
  border-left: 2px solid #374151;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="granite"] .rv-entry,
.resume-paper[data-template="granite"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="granite"] .rv-entry::before,
.resume-paper[data-template="granite"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #374151;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #111827;
}

.resume-paper[data-template="granite"] .rv-entry::before {
  left: -25px;
}

/* ── Template mint ── */
.resume-paper[data-template="mint"] .rv-title {
  color: #10b981;
}

.resume-paper[data-template="mint"] .rv-header-line {
  background: #10b981;
}

.resume-paper[data-template="mint"] .rv-section-title {
  color: #047857;
}

.resume-paper[data-template="mint"] .rv-section-line {
  background: #10b981;
  opacity: 0.2;
}

.resume-paper[data-template="mint"] .rv-contact-item:hover {
  color: #10b981;
}

.resume-paper[data-template="mint"] .rv-skills-pill {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

.resume-paper[data-template="mint"] .rv-entry-tag {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

.resume-paper[data-template="mint"] .rv-section,
.resume-paper[data-template="mint"] .mr-section {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume-paper[data-template="mint"] .rv-section-line,
.resume-paper[data-template="mint"] .mr-section-line {
  display: none;
}

/* ── Template crimson ── */
.resume-paper[data-template="crimson"] .rv-header {
  background: linear-gradient(135deg, #dc2626, #450a0a);
  color: #fff;
  margin: -50px -50px 24px;
  padding: 50px 50px 30px;
  border-radius: 6px 6px 0 0;
}

.resume-paper[data-template="crimson"] .rv-title {
  color: rgba(255, 255, 255, 0.85);
}

.resume-paper[data-template="crimson"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="crimson"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="crimson"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="crimson"] .rv-section-title {
  color: #b91c1c;
}

.resume-paper[data-template="crimson"] .rv-section-line {
  background: #dc2626;
  opacity: 0.2;
}

.resume-paper[data-template="crimson"] .rv-contact-item:hover {
  color: #dc2626;
}

.resume-paper[data-template="crimson"] .rv-skills-pill {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #f87171;
}

.resume-paper[data-template="crimson"] .rv-entry-tag {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #f87171;
}

.resume-paper[data-template="crimson"] {
  text-align: center;
}

.resume-paper[data-template="crimson"] .rv-contacts,
.resume-paper[data-template="crimson"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="crimson"] .rv-section-title,
.resume-paper[data-template="crimson"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="crimson"] .rv-section-line,
.resume-paper[data-template="crimson"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="crimson"] .rv-skills-pill,
.resume-paper[data-template="crimson"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="crimson"] #rv-skills-block,
.resume-paper[data-template="crimson"] .mr-skills {
  justify-content: center;
}

/* ── Template sand ── */
.resume-paper[data-template="sand"] .rv-title {
  color: #a16207;
}

.resume-paper[data-template="sand"] .rv-header-line {
  background: #a16207;
}

.resume-paper[data-template="sand"] .rv-section-title {
  color: #854d0e;
}

.resume-paper[data-template="sand"] .rv-section-line {
  background: #a16207;
  opacity: 0.2;
}

.resume-paper[data-template="sand"] .rv-contact-item:hover {
  color: #a16207;
}

.resume-paper[data-template="sand"] .rv-skills-pill {
  background: #fefdf5;
  color: #854d0e;
  border-color: #e5d5a0;
}

.resume-paper[data-template="sand"] .rv-entry-tag {
  background: #fefdf5;
  color: #854d0e;
  border-color: #e5d5a0;
}

.resume-paper[data-template="sand"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="sand"] .rv-name,
.resume-paper[data-template="sand"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="sand"] .rv-section-title,
.resume-paper[data-template="sand"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #a16207;
  padding-bottom: 4px;
}

.resume-paper[data-template="sand"] .rv-section-line,
.resume-paper[data-template="sand"] .mr-section-line {
  display: none;
}

/* ── Template carbon ── */
.resume-paper[data-template="carbon"] {
  background: #18181b;
  color: #ef4444;
}

.resume-paper[data-template="carbon"] .rv-title {
  color: #ef4444;
}

.resume-paper[data-template="carbon"] .rv-header-line {
  background: #ef4444;
  opacity: 0.5;
}

.resume-paper[data-template="carbon"] .rv-section-title {
  color: #ef4444;
}

.resume-paper[data-template="carbon"] .rv-section-line {
  background: #ef4444;
  opacity: 0.4;
}

.resume-paper[data-template="carbon"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.7);
}

.resume-paper[data-template="carbon"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="carbon"] .rv-entry-title {
  color: #ef4444;
}

.resume-paper[data-template="carbon"] .rv-entry-desc {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="carbon"] .rv-entry-sub {
  color: rgba(255, 255, 255, 0.6);
}

.resume-paper[data-template="carbon"] .rv-entry-date {
  color: rgba(255, 255, 255, 0.5);
}

.resume-paper[data-template="carbon"] .rv-skills-pill {
  background: transparent;
  color: #ef4444;
  border-color: #27272a;
}

.resume-paper[data-template="carbon"] .rv-entry-tag {
  background: transparent;
  color: #ef4444;
  border-color: #27272a;
}

.resume-paper[data-template="carbon"] {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="carbon"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="carbon"] .rv-contacts {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #27272a;
  padding-right: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="carbon"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="carbon"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="carbon"] #rv-skills-section {
  grid-column: 1;
  grid-row: 3 / 8;
  padding-right: 20px;
  border-right: 1px solid #27272a;
  height: 100%;
}

.resume-paper[data-template="carbon"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="carbon"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="carbon"] #rv-summary-section {
  grid-column: 2;
  grid-row: 2;
}

.resume-paper[data-template="carbon"] #rv-exp-section {
  grid-column: 2;
  grid-row: 3;
}

.resume-paper[data-template="carbon"] #rv-projects-section {
  grid-column: 2;
  grid-row: 4;
}

.resume-paper[data-template="carbon"] #rv-edu-section {
  grid-column: 2;
  grid-row: 5;
}

.resume-paper[data-template="carbon"] #rv-extras-section {
  grid-column: 2;
  grid-row: 6;
}

/* ── Template lilac ── */
.resume-paper[data-template="lilac"] .rv-title {
  color: #a78bfa;
}

.resume-paper[data-template="lilac"] .rv-header-line {
  background: #a78bfa;
}

.resume-paper[data-template="lilac"] .rv-section-title {
  color: #7c3aed;
}

.resume-paper[data-template="lilac"] .rv-section-line {
  background: #a78bfa;
  opacity: 0.2;
}

.resume-paper[data-template="lilac"] .rv-contact-item:hover {
  color: #a78bfa;
}

.resume-paper[data-template="lilac"] .rv-skills-pill {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

.resume-paper[data-template="lilac"] .rv-entry-tag {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

.resume-paper[data-template="lilac"] {
  text-align: center;
}

.resume-paper[data-template="lilac"] .rv-contacts,
.resume-paper[data-template="lilac"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="lilac"] .rv-section-title,
.resume-paper[data-template="lilac"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="lilac"] .rv-section-line,
.resume-paper[data-template="lilac"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="lilac"] .rv-skills-pill,
.resume-paper[data-template="lilac"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="lilac"] #rv-skills-block,
.resume-paper[data-template="lilac"] .mr-skills {
  justify-content: center;
}

/* ── Template dusk ── */
.resume-paper[data-template="dusk"] .rv-header {
  background: linear-gradient(135deg, #312e81, #f97316);
  color: #fff;
  margin: -50px -50px 24px;
  padding: 50px 50px 30px;
  border-radius: 6px 6px 0 0;
}

.resume-paper[data-template="dusk"] .rv-title {
  color: rgba(255, 255, 255, 0.85);
}

.resume-paper[data-template="dusk"] .rv-contact-item {
  color: rgba(255, 255, 255, 0.8);
}

.resume-paper[data-template="dusk"] .rv-contact-item:hover {
  color: #fff;
}

.resume-paper[data-template="dusk"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="dusk"] .rv-section-title {
  color: #4f46e5;
}

.resume-paper[data-template="dusk"] .rv-section-line {
  background: #6366f1;
  opacity: 0.2;
}

.resume-paper[data-template="dusk"] .rv-contact-item:hover {
  color: #6366f1;
}

.resume-paper[data-template="dusk"] .rv-skills-pill {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #a5b4fc;
}

.resume-paper[data-template="dusk"] .rv-entry-tag {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #a5b4fc;
}

.resume-paper[data-template="dusk"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="dusk"] .rv-name,
.resume-paper[data-template="dusk"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="dusk"] .rv-section-title,
.resume-paper[data-template="dusk"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #6366f1;
  padding-bottom: 4px;
}

.resume-paper[data-template="dusk"] .rv-section-line,
.resume-paper[data-template="dusk"] .mr-section-line {
  display: none;
}

/* ── Template classic ── */
.resume-paper[data-template="classic"] .rv-title {
  color: #2563eb;
}

.resume-paper[data-template="classic"] .rv-header-line {
  background: #2563eb;
}

.resume-paper[data-template="classic"] .rv-section-title {
  color: #1e3a8a;
}

.resume-paper[data-template="classic"] .rv-section-line {
  background: #2563eb;
  opacity: 0.2;
}

.resume-paper[data-template="classic"] .rv-contact-item:hover {
  color: #2563eb;
}

.resume-paper[data-template="classic"] .rv-skills-pill {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: #bfdbfe;
}

.resume-paper[data-template="classic"] .rv-entry-tag {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: #bfdbfe;
}

.resume-paper[data-template="classic"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="classic"] .rv-name,
.resume-paper[data-template="classic"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="classic"] .rv-section-title,
.resume-paper[data-template="classic"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 4px;
}

.resume-paper[data-template="classic"] .rv-section-line,
.resume-paper[data-template="classic"] .mr-section-line {
  display: none;
}

/* ── Template modern ── */
.resume-paper[data-template="modern"] .rv-title {
  color: #10b981;
}

.resume-paper[data-template="modern"] .rv-header-line {
  background: #10b981;
}

.resume-paper[data-template="modern"] .rv-section-title {
  color: #064e3b;
}

.resume-paper[data-template="modern"] .rv-section-line {
  background: #10b981;
  opacity: 0.2;
}

.resume-paper[data-template="modern"] .rv-contact-item:hover {
  color: #10b981;
}

.resume-paper[data-template="modern"] .rv-skills-pill {
  background: #ecfdf5;
  color: #064e3b;
  border-color: #a7f3d0;
}

.resume-paper[data-template="modern"] .rv-entry-tag {
  background: #ecfdf5;
  color: #064e3b;
  border-color: #a7f3d0;
}

.resume-paper[data-template="modern"] .rv-list,
.resume-paper[data-template="modern"] .mr-section-exp,
.resume-paper[data-template="modern"] .mr-section-edu {
  border-left: 2px solid #a7f3d0;
  padding-left: 20px;
  margin-left: 10px;
}

.resume-paper[data-template="modern"] .rv-entry,
.resume-paper[data-template="modern"] .mr-entry {
  position: relative;
}

.resume-paper[data-template="modern"] .rv-entry::before,
.resume-paper[data-template="modern"] .mr-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ecfdf5;
}

.resume-paper[data-template="modern"] .rv-entry::before {
  left: -25px;
}

/* ── Template executive ── */
.resume-paper[data-template="executive"] .rv-title {
  color: #1e293b;
}

.resume-paper[data-template="executive"] .rv-header-line {
  background: #1e293b;
}

.resume-paper[data-template="executive"] .rv-section-title {
  color: #0f172a;
}

.resume-paper[data-template="executive"] .rv-section-line {
  background: #1e293b;
  opacity: 0.2;
}

.resume-paper[data-template="executive"] .rv-contact-item:hover {
  color: #1e293b;
}

.resume-paper[data-template="executive"] .rv-skills-pill {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.resume-paper[data-template="executive"] .rv-entry-tag {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.resume-paper[data-template="executive"] {
  text-align: center;
}

.resume-paper[data-template="executive"] .rv-contacts,
.resume-paper[data-template="executive"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="executive"] .rv-section-title,
.resume-paper[data-template="executive"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="executive"] .rv-section-line,
.resume-paper[data-template="executive"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="executive"] .rv-skills-pill,
.resume-paper[data-template="executive"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="executive"] #rv-skills-block,
.resume-paper[data-template="executive"] .mr-skills {
  justify-content: center;
}

/* ── Template creative ── */
.resume-paper[data-template="creative"] .rv-title {
  color: #f43f5e;
}

.resume-paper[data-template="creative"] .rv-header-line {
  background: #f43f5e;
}

.resume-paper[data-template="creative"] .rv-section-title {
  color: #9f1239;
}

.resume-paper[data-template="creative"] .rv-section-line {
  background: #f43f5e;
  opacity: 0.2;
}

.resume-paper[data-template="creative"] .rv-contact-item:hover {
  color: #f43f5e;
}

.resume-paper[data-template="creative"] .rv-skills-pill {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

.resume-paper[data-template="creative"] .rv-entry-tag {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

.resume-paper[data-template="creative"] {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 0 40px;
  align-items: start;
}

.resume-paper[data-template="creative"] .rv-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.resume-paper[data-template="creative"] .rv-contacts {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #fecdd3;
  padding-right: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.resume-paper[data-template="creative"] .rv-contact-item {
  justify-content: flex-start;
  width: 100%;
  word-break: break-all;
}

.resume-paper[data-template="creative"] .rv-header-line {
  display: none;
}

.resume-paper[data-template="creative"] #rv-skills-section {
  grid-column: 1;
  grid-row: 3 / 8;
  padding-right: 20px;
  border-right: 1px solid #fecdd3;
  height: 100%;
}

.resume-paper[data-template="creative"] .rv-skills-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resume-paper[data-template="creative"] .rv-skills-cat {
  min-width: auto;
}

.resume-paper[data-template="creative"] #rv-summary-section {
  grid-column: 2;
  grid-row: 2;
}

.resume-paper[data-template="creative"] #rv-exp-section {
  grid-column: 2;
  grid-row: 3;
}

.resume-paper[data-template="creative"] #rv-projects-section {
  grid-column: 2;
  grid-row: 4;
}

.resume-paper[data-template="creative"] #rv-edu-section {
  grid-column: 2;
  grid-row: 5;
}

.resume-paper[data-template="creative"] #rv-extras-section {
  grid-column: 2;
  grid-row: 6;
}

/* ── Template developer ── */
.resume-paper[data-template="developer"] .rv-title {
  color: #8b5cf6;
}

.resume-paper[data-template="developer"] .rv-header-line {
  background: #8b5cf6;
}

.resume-paper[data-template="developer"] .rv-section-title {
  color: #5b21b6;
}

.resume-paper[data-template="developer"] .rv-section-line {
  background: #8b5cf6;
  opacity: 0.2;
}

.resume-paper[data-template="developer"] .rv-contact-item:hover {
  color: #8b5cf6;
}

.resume-paper[data-template="developer"] .rv-skills-pill {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.resume-paper[data-template="developer"] .rv-entry-tag {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.resume-paper[data-template="developer"] .rv-name,
.resume-paper[data-template="developer"] .mr-name {
  text-transform: uppercase;
  font-size: 3rem;
  letter-spacing: -1px;
}

.resume-paper[data-template="developer"] .rv-section-title,
.resume-paper[data-template="developer"] .mr-section-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 900;
  background: #8b5cf6;
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}

.resume-paper[data-template="developer"] .rv-section-line,
.resume-paper[data-template="developer"] .mr-section-line {
  display: none;
}

/* ── Template elegant ── */
.resume-paper[data-template="elegant"] .rv-title {
  color: #b45309;
}

.resume-paper[data-template="elegant"] .rv-header-line {
  background: #b45309;
}

.resume-paper[data-template="elegant"] .rv-section-title {
  color: #78350f;
}

.resume-paper[data-template="elegant"] .rv-section-line {
  background: #b45309;
  opacity: 0.2;
}

.resume-paper[data-template="elegant"] .rv-contact-item:hover {
  color: #b45309;
}

.resume-paper[data-template="elegant"] .rv-skills-pill {
  background: #fffbeb;
  color: #78350f;
  border-color: #fde68a;
}

.resume-paper[data-template="elegant"] .rv-entry-tag {
  background: #fffbeb;
  color: #78350f;
  border-color: #fde68a;
}

.resume-paper[data-template="elegant"] {
  font-family: 'Playfair Display', serif;
}

.resume-paper[data-template="elegant"] .rv-name,
.resume-paper[data-template="elegant"] .mr-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.resume-paper[data-template="elegant"] .rv-section-title,
.resume-paper[data-template="elegant"] .mr-section-title {
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #b45309;
  padding-bottom: 4px;
}

.resume-paper[data-template="elegant"] .rv-section-line,
.resume-paper[data-template="elegant"] .mr-section-line {
  display: none;
}

/* ── Template minimalist ── */
.resume-paper[data-template="minimalist"] .rv-title {
  color: #475569;
}

.resume-paper[data-template="minimalist"] .rv-header-line {
  background: #475569;
}

.resume-paper[data-template="minimalist"] .rv-section-title {
  color: #334155;
}

.resume-paper[data-template="minimalist"] .rv-section-line {
  background: #475569;
  opacity: 0.2;
}

.resume-paper[data-template="minimalist"] .rv-contact-item:hover {
  color: #475569;
}

.resume-paper[data-template="minimalist"] .rv-skills-pill {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

.resume-paper[data-template="minimalist"] .rv-entry-tag {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

.resume-paper[data-template="minimalist"] {
  text-align: center;
}

.resume-paper[data-template="minimalist"] .rv-contacts,
.resume-paper[data-template="minimalist"] .mr-contacts {
  justify-content: center;
  flex-wrap: wrap;
}

.resume-paper[data-template="minimalist"] .rv-section-title,
.resume-paper[data-template="minimalist"] .mr-section-title {
  text-align: center;
  display: inline-block;
}

.resume-paper[data-template="minimalist"] .rv-section-line,
.resume-paper[data-template="minimalist"] .mr-section-line {
  margin: 8px auto 16px;
  width: 60px;
}

.resume-paper[data-template="minimalist"] .rv-skills-pill,
.resume-paper[data-template="minimalist"] .mr-pill {
  justify-content: center;
}

.resume-paper[data-template="minimalist"] #rv-skills-block,
.resume-paper[data-template="minimalist"] .mr-skills {
  justify-content: center;
}

/* ── Template bold ── */
.resume-paper[data-template="bold"] .rv-title {
  color: #eab308;
}

.resume-paper[data-template="bold"] .rv-header-line {
  background: #eab308;
}

.resume-paper[data-template="bold"] .rv-section-title {
  color: #713f12;
}

.resume-paper[data-template="bold"] .rv-section-line {
  background: #eab308;
  opacity: 0.2;
}

.resume-paper[data-template="bold"] .rv-contact-item:hover {
  color: #eab308;
}

.resume-paper[data-template="bold"] .rv-skills-pill {
  background: #fefce8;
  color: #713f12;
  border-color: #fef08a;
}

.resume-paper[data-template="bold"] .rv-entry-tag {
  background: #fefce8;
  color: #713f12;
  border-color: #fef08a;
}

.resume-paper[data-template="bold"] .rv-section,
.resume-paper[data-template="bold"] .mr-section {
  background: #fefce8;
  border: 1px solid #fef08a;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume-paper[data-template="bold"] .rv-section-line,
.resume-paper[data-template="bold"] .mr-section-line {
  display: none;
}