:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #edf5ff;
  --text: #0f172a;
  --muted: #52627a;
  --line: rgba(15, 23, 42, 0.09);
  --accent: #1a56db;
  --accent-rgb: 26, 86, 219;
  --accent-deep: #0f3f91;
  --navy: #0b1f3a;
  --marine: #123a63;
  --wolf-amber: #f59e0b;
  --shadow-lg: 0 28px 70px rgba(11, 31, 58, 0.16);
  --shadow-md: 0 14px 34px rgba(11, 31, 58, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --paper-shadow: 0 34px 90px rgba(11, 31, 58, 0.18);
}

* { box-sizing: border-box; }

[hidden],
.editor-page [hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(26, 86, 219, 0.12), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(11, 31, 58, 0.08), transparent 25rem),
    var(--bg);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

button, input, textarea { font: inherit; }
select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 3px solid rgba(26, 86, 219, 0.22);
  outline-offset: 3px;
}

.editor-page { min-height: 100vh; display: flex; flex-direction: column; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.editor-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 9px 18px;
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 86, 219, 0.1);
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.08);
}

.topbar-left, .topbar-right, .history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-right {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
}

.logo-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(26, 86, 219, 0.2);
}

.logo-copy strong, .logo-copy small { display: block; }
.logo-copy strong { font-family: "Outfit", sans-serif; font-size: 0.95rem; }
.logo-copy small,
.mini-label,
.preview-section h3 {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
}

.history-actions button,
.ghost-button,
.preview-switch button,
.preview-actions button,
.template-button,
.swatch,
.tab-button,
.quick-actions button {
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255, 255, 255, 0.75);
  color: var(--marine);
  border-radius: 14px;
  padding: 9px 12px;
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.history-actions button,
.topbar-right .ghost-button,
.topbar-right .primary-button {
  min-width: 36px;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.history-actions button {
  background: rgba(237, 245, 255, 0.68);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.topbar-right .ghost-button {
  background: rgba(255, 255, 255, 0.5);
  color: #24415f;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: none;
}

.topbar-right .utility-action {
  border-color: transparent;
  background: transparent;
  color: rgba(36, 65, 95, 0.68);
  padding-inline: 7px;
}

.topbar-right .primary-button {
  min-width: 78px;
  padding-inline: 14px;
  font-size: 0.84rem;
  box-shadow: 0 14px 30px rgba(26, 86, 219, 0.26);
}

.feedback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.desktop-feedback-link {
  border-color: rgba(5, 150, 105, 0.16);
  color: #047857;
}

.history-actions button:hover,
.ghost-button:hover,
.preview-switch button:hover,
.preview-actions button:hover,
.template-button:hover,
.tab-button:hover,
.quick-actions button:hover {
  background: rgba(23, 23, 23, 0.05);
  border-color: rgba(26, 86, 219, 0.18);
  color: var(--accent-deep);
}

.primary-button,
.section-header button,
.inline-add button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(26, 86, 219, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button:hover,
.section-header button:hover,
.inline-add button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 18px 34px rgba(26, 86, 219, 0.28);
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.completion-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(26, 86, 219, 0.1);
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.06);
}

.completion-pill span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.completion-pill strong {
  font-size: 0.9rem;
}

.completion-track,
.ats-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.08);
}

.completion-track { width: clamp(76px, 9vw, 118px); }
.completion-track div, .ats-meter div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--wolf-amber));
  border-radius: inherit;
  transition: width 260ms ease;
}

.editor-shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  min-height: 0;
  margin-top: 0;
  height: calc(100vh - 58px);
}

.editor-pane { min-width: 0; min-height: 0; }
.form-pane {
  border-right: 1px solid rgba(26, 86, 219, 0.08);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(238, 244, 251, 0.88));
  overflow: auto;
}

.pane-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 18px 24px;
}

.form-intro, .section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.form-intro {
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 245, 255, 0.82)),
    rgba(239, 246, 255, 0.72);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.04);
}

.form-intro h1,
.section-header h2,
.preview-toolbar h2,
.resume-header h1,
.letter-header h1 {
  margin: 4px 0 6px;
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.04em;
}

.form-intro h1 { font-size: clamp(1.25rem, 2vw, 1.7rem); }

.form-intro p,
.section-header p,
.finish-card p,
.preview-section .body-copy,
.preview-item p,
.letter-body,
.preview-toolbar p {
  color: var(--muted);
  line-height: 1.55;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quick-actions button {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.form-intro .mini-label {
  font-size: 0.68rem;
}

.form-intro h1 {
  margin-bottom: 0;
}
.tab-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 0 12px;
  margin: 2px 0 12px;
  scrollbar-width: thin;
}

.tab-row .tab-button {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 800;
}

.tab-button.active,
.template-button.active,
.preview-switch button.active,
.ghost-button.active {
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.template-button {
  flex: 1 1 170px;
  min-height: 68px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.template-button .template-name {
  font-weight: 900;
}

.template-button .template-use {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.template-button.active .template-use {
  color: rgba(255, 255, 255, 0.78);
}

.template-button:focus-visible {
  outline-color: rgba(var(--accent-rgb), 0.36);
}

.form-card,
.finish-card,
.ats-card,
.document-preview {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
  border-radius: 22px;
}

.form-card {
  padding: 20px;
  border-radius: 22px;
}
.step-panel { display: none; }
.step-panel.active { display: block; }

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

label { display: grid; gap: 8px; }
label span {
  color: var(--marine);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.11);
  border-radius: 16px;
  background: white;
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.12);
  background: #fbfdff;
}

textarea { resize: vertical; min-height: 110px; }
.full-span { grid-column: 1 / -1; }

.field-label {
  color: var(--marine);
  font-size: 0.9rem;
  font-weight: 800;
}

.date-field {
  display: grid;
  gap: 8px;
}

.date-parts {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 8px;
}

.date-current-option {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.date-current-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.textarea-field {
  display: grid;
  gap: 8px;
}

.textarea-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bullet-button {
  border: 1px solid rgba(26, 86, 219, 0.16);
  border-radius: 999px;
  background: rgba(26, 86, 219, 0.08);
  color: var(--accent);
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.bullet-button:hover,
.bullet-button:focus-visible {
  background: rgba(26, 86, 219, 0.12);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
  outline: none;
}

.rich-text-field {
  display: grid;
  gap: 8px;
}

.rich-text-label {
  color: #15304f;
  font-size: 0.9rem;
  font-weight: 800;
}

.rich-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(26, 86, 219, 0.12);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.86);
}

.rich-text-toolbar button {
  border: 1px solid rgba(26, 86, 219, 0.12);
  border-radius: 10px;
  background: white;
  color: #24405f;
  padding: 7px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.rich-text-toolbar button:hover,
.rich-text-toolbar button:focus-visible {
  color: var(--accent);
  border-color: rgba(26, 86, 219, 0.3);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
  outline: none;
}

.rich-text-editor {
  min-height: 132px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 16px;
  background: white;
  color: #0f172a;
  line-height: 1.55;
  outline: none;
}

.rich-text-editor:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.rich-text-editor:focus {
  border-color: rgba(26, 86, 219, 0.56);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.12);
}

.stack-list { display: grid; gap: 16px; }
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.section-header .secondary-action {
  border: 1px solid rgba(26, 86, 219, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent);
  box-shadow: none;
}

.section-header .secondary-action:hover,
.section-header .secondary-action:focus-visible {
  background: rgba(26, 86, 219, 0.08);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
  filter: none;
}

.entry-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(26, 86, 219, 0.1);
}

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

.entry-card-header strong { font-family: "Outfit", sans-serif; font-size: 1.05rem; }
.entry-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.entry-card-actions button {
  border: 1px solid rgba(26, 86, 219, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #24405f;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.entry-card-actions button:hover,
.entry-card-actions button:focus-visible {
  border-color: rgba(26, 86, 219, 0.28);
  color: var(--accent);
  outline: none;
}

.entry-card-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.entry-card-actions [data-remove] {
  border: 0;
  background: rgba(220, 38, 38, 0.1);
  color: #b42318;
}

.skill-input-wrap { margin-bottom: 18px; }
.inline-add { display: flex; gap: 10px; }
.inline-add input { flex: 1; }

.chips-wrap,
.skill-chip-preview,
.template-buttons,
.color-row,
.finish-actions,
.language-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.language-button {
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: white;
  color: var(--marine);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.language-button.active {
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: white;
  border-color: transparent;
}

.template-library-inline {
  max-height: 270px;
  overflow: auto;
  padding-right: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(26, 86, 219, 0.08);
  color: #0f172a;
  font-size: 0.9rem;
}

.chip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 86, 219, 0.18);
  color: inherit;
}

.finish-card { padding: 22px; }
.swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--swatch);
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.08);
  padding: 0;
}

.swatch.active { box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.2), 0 10px 18px rgba(11, 31, 58, 0.12); }
.swatch:focus-visible { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.28), 0 10px 18px rgba(11, 31, 58, 0.12); }

.audit-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.audit-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.audit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.preview-pane {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(26, 86, 219, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(239, 246, 255, 0.86), rgba(226, 232, 240, 0.95));
  min-height: 0;
}

.preview-toolbar {
  display: grid;
  gap: 9px;
  padding: 12px 18px 13px;
  border-bottom: 1px solid rgba(26, 86, 219, 0.1);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
}

.preview-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.preview-toolbar-top {
  min-height: 32px;
}

.preview-toolbar-main h2 {
  margin: 0;
  line-height: 1.05;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.preview-actions button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--marine);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.preview-actions .preview-export {
  border: 0;
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 18px rgba(26, 86, 219, 0.18);
}

.preview-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.preview-switch button {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.preview-scroll {
  flex: 1;
  overflow: auto;
  padding: 16px 20px 24px;
  scroll-padding: 24px;
}
.ats-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.ats-card .ats-meter {
  grid-column: 1 / -1;
  height: 7px;
}

.ats-card .ghost-button {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.ats-summary-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.ats-card strong {
  display: block;
  margin-top: 3px;
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
}

.document-preview {
  width: min(100%, 840px);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--paper-shadow);
  border: 1px solid rgba(255, 255, 255, 0.82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.2px;
  line-height: 1.38;
}

.resume-preview,
.letter-preview {
  background: white;
  min-height: 1120px;
  padding: 46px 50px;
}

.document-preview .resume-preview {
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
  font-size: 14.2px;
  line-height: 1.38;
}

.document-preview.template-modern {
  --template-accent-block: rgba(var(--accent-rgb), 0.08);
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
}

.document-preview.template-modern .resume-header {
  position: relative;
  padding: 32px 44px 25px;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

.document-preview.template-modern .resume-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.document-preview.template-modern .resume-header h1 {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.document-preview.template-modern .resume-header p {
  margin: 5px 0 13px;
  color: var(--accent);
  font-size: 10.8px;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.document-preview.template-modern .meta-line {
  display: flex;
  flex-wrap: wrap;
  column-gap: 17px;
  row-gap: 4px;
  margin-top: 0;
  align-items: center;
  justify-content: flex-start;
  color: #4b5563;
  font-size: 12.2px;
  line-height: 1.4;
}

.document-preview.template-modern .meta-line > * {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
  background: transparent;
}

.document-preview.template-modern .meta-line > * + *::before {
  content: none;
}

.document-preview.template-modern .meta-line a {
  color: #374151;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
}

.document-preview.template-modern .meta-line a[href^="http"] {
  color: rgba(var(--accent-rgb), 0.9);
  font-weight: 700;
}

.document-preview.template-modern .meta-line a:hover,
.document-preview.template-modern .meta-line a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
}

.document-preview.template-modern .resume-single-column {
  padding: 25px 44px 34px;
}

.document-preview.template-modern .preview-section {
  margin: 0 0 22px;
}

.document-preview.template-modern .preview-section:last-child {
  margin-bottom: 0;
}

.document-preview.template-modern #previewSummarySection {
  margin-bottom: 20px;
}

.document-preview.template-modern .preview-section h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.document-preview.template-modern .preview-section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.16);
}

.document-preview.template-modern .resume-side-column .preview-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.document-preview.template-modern .preview-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.document-preview.template-modern .preview-item .item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 2px;
}

.document-preview.template-modern .preview-item .item-header strong,
.document-preview.template-modern .preview-item > strong {
  color: #0f172a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.document-preview.template-modern .preview-item .date-range {
  flex-shrink: 0;
  color: #6b7280;
  font-size: 11.7px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

.document-preview.template-modern .preview-item .item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px 0;
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 12.4px;
  font-weight: 400;
  line-height: 1.4;
}

.document-preview.template-modern .preview-item .item-meta > * {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.document-preview.template-modern .preview-item .item-meta > * + *::before {
  content: none;
}

.document-preview.template-modern .preview-item .item-meta .sep {
  color: #d1d5db;
  font-size: 11px;
  padding: 0 6px;
  user-select: none;
}

.document-preview.template-modern #previewProjectsSection .project-link-row {
  margin: -2px 0 6px;
}

.document-preview.template-modern #previewProjectsSection .project-link-row a {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.8px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.document-preview.template-modern #previewProjectsSection .project-link-row a:hover,
.document-preview.template-modern #previewProjectsSection .project-link-row a:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.13);
}

.document-preview.template-modern .rich-text-block {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.62;
}

.document-preview.template-modern .rich-text-block * {
  font-family: inherit;
  font-size: inherit;
}

.document-preview.template-modern .rich-text-block p {
  margin-bottom: 4px;
}

.document-preview.template-modern .rich-text-block p:last-child {
  margin-bottom: 0;
}

.document-preview.template-modern .rich-text-block ul,
.document-preview.template-modern .rich-text-block ol {
  margin: 2px 0;
  padding-left: 18px;
}

.document-preview.template-modern .rich-text-block li {
  margin-bottom: 2px;
}

.document-preview.template-modern .body-copy {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

.document-preview.template-modern .skill-chip-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.document-preview.template-modern .skill-chip-preview span {
  padding: 2px 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.045);
  color: #334155;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.3px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.document-preview.template-modern #previewCustomSectionWrap {
  break-inside: avoid;
  page-break-inside: avoid;
}

.document-preview.template-modern .preview-section.section-compact .preview-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.document-preview.template-classic {
  --template-accent-block: rgba(var(--accent-rgb), 0.06);
}

.document-preview.template-bold {
  --template-accent-block: rgba(var(--accent-rgb), 0.12);
}

.document-preview.template-creative,
.document-preview.template-elegant {
  --template-accent-block: rgba(var(--accent-rgb), 0.1);
}

.document-preview.template-minimal,
.document-preview.template-professional,
.document-preview.template-legal,
.document-preview.template-finance {
  --template-accent-block: rgba(var(--accent-rgb), 0.07);
}

.document-preview.template-tech,
.document-preview.template-engineering,
.document-preview.template-medical,
.document-preview.template-arabic,
.document-preview.template-executive,
.document-preview.template-academic {
  --template-accent-block: rgba(var(--accent-rgb), 0.09);
}

.document-preview.template-classic .resume-preview {
  font-family: Georgia, "Times New Roman", serif;
  padding: 15mm 19mm 16mm;
  color: #1a1a1a;
  font-size: 14.6px;
  line-height: 1.55;
}

.document-preview.template-classic .resume-header {
  text-align: center;
  border-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.document-preview.template-classic .double-rule-top,
.document-preview.template-classic .double-rule-top-thin,
.document-preview.template-classic .header-rule {
  border: 0;
}

.document-preview.template-classic .double-rule-top {
  border-top: 2.5px solid var(--accent);
  margin: 0 0 4px;
}

.document-preview.template-classic .double-rule-top-thin {
  border-top: 1px solid var(--accent);
  margin: 0 0 17px;
}

.document-preview.template-classic .header-rule {
  border-top: 1px solid #d0d0d0;
  margin: 12px 0 0;
}

.document-preview.template-creative .resume-preview {
  background:
    radial-gradient(circle at 92% 4%, rgba(var(--accent-rgb), 0.13), transparent 10rem),
    #fff;
}

.document-preview.template-creative .preview-section {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.045);
}

.document-preview.template-minimal .resume-preview {
  padding: 0;
}

.document-preview.template-minimal .resume-header {
  padding: 32px 44px 22px;
  text-align: center;
  border-bottom: 1px solid #d4d4d4;
}

.document-preview.template-minimal .resume-header h1 {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.document-preview.template-minimal .resume-header p {
  margin: 4px 0 11px;
  color: #555;
  font-size: 12.8px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.document-preview.template-minimal .meta-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 16px;
  row-gap: 4px;
  color: #555;
  font-size: 12.1px;
  line-height: 1.4;
}

.document-preview.template-minimal .meta-line > * {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.document-preview.template-minimal .meta-line a {
  color: var(--accent-deep);
  text-decoration: none;
}

.document-preview.template-minimal .meta-line a:hover,
.document-preview.template-minimal .meta-line a:focus-visible {
  text-decoration: underline;
}

.document-preview.template-minimal .resume-single-column {
  padding: 23px 44px 32px;
}

.document-preview.template-minimal .preview-section {
  margin: 0 0 17px;
}

.document-preview.template-minimal .preview-section:last-child {
  margin-bottom: 0;
}

.document-preview.template-minimal #previewSummarySection {
  margin-bottom: 15px;
}

.document-preview.template-minimal .preview-section h3 {
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid rgba(var(--accent-rgb), 0.35);
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12.8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: none;
}

.document-preview.template-minimal .preview-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.document-preview.template-minimal .preview-item .item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 1px;
}

.document-preview.template-minimal .preview-item .item-header strong,
.document-preview.template-minimal .preview-item > strong {
  display: block;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.document-preview.template-minimal .preview-item .date-range {
  flex-shrink: 0;
  color: #6b7280;
  font-size: 11.9px;
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
}

.document-preview.template-minimal .preview-item .item-meta {
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 12.4px;
  line-height: 1.45;
}

.document-preview.template-minimal .preview-item .item-meta .sep {
  color: #c4c4c4;
  padding: 0 6px;
  user-select: none;
}

.document-preview.template-minimal #previewProjectsSection .project-link-row {
  margin: -1px 0 4px;
}

.document-preview.template-minimal #previewProjectsSection .project-link-row a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11.9px;
  line-height: 1.45;
  padding-bottom: 1px;
  text-decoration: none;
}

.document-preview.template-minimal #previewProjectsSection .project-link-row a:hover,
.document-preview.template-minimal #previewProjectsSection .project-link-row a:focus-visible {
  border-bottom-color: var(--accent-deep);
}

.document-preview.template-minimal .rich-text-block {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.52;
}

.document-preview.template-minimal .rich-text-block * {
  font-family: inherit;
  font-size: inherit;
}

.document-preview.template-minimal .rich-text-block p {
  margin-bottom: 3px;
}

.document-preview.template-minimal .rich-text-block p:last-child {
  margin-bottom: 0;
}

.document-preview.template-minimal .rich-text-block ul,
.document-preview.template-minimal .rich-text-block ol {
  margin: 1px 0;
  padding-left: 18px;
}

.document-preview.template-minimal .rich-text-block li {
  margin-bottom: 1px;
}

.document-preview.template-minimal .body-copy {
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.52;
}

.document-preview.template-minimal .skill-chip-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.document-preview.template-minimal .skill-chip-preview span {
  padding: 2px 7px;
  border: 1px solid #c4c8cc;
  border-radius: 2px;
  background: transparent;
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.6px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.document-preview.template-tech .resume-preview,
.document-preview.template-engineering .resume-preview {
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.08) 0 16px, transparent 16px),
    #fff;
}

.document-preview.template-tech .preview-section h3,
.document-preview.template-engineering .preview-section h3 {
  font-family: "Courier New", monospace;
}

.document-preview.template-medical .resume-header {
  border-left-color: var(--accent);
}

.document-preview.template-medical .preview-section h3 {
  color: var(--accent);
}

.document-preview.template-academic .resume-preview {
  font-family: Georgia, "Times New Roman", serif;
}

.document-preview.template-academic .preview-section h3 {
  color: var(--accent);
  border-bottom-style: double;
}

.document-preview.template-legal .resume-preview {
  font-family: Georgia, "Times New Roman", serif;
}

.document-preview.template-legal .resume-header {
  border-bottom: 3px solid var(--accent);
}

.document-preview.template-professional .resume-header {
  padding: 13mm 17mm 10px;
  border-bottom: 2px solid var(--accent);
  text-align: left;
}

.document-preview.template-professional .resume-preview {
  display: block;
  padding: 0;
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.document-preview.template-professional .resume-header h1 {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 29.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.document-preview.template-professional .resume-header p {
  margin: 3px 0 8px;
  color: #555;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.document-preview.template-professional .meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

.document-preview.template-professional .meta-line > * {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.document-preview.template-professional .meta-line a {
  color: var(--accent-deep);
  text-decoration: none;
}

.document-preview.template-professional .meta-line a:hover,
.document-preview.template-professional .meta-line a:focus-visible {
  text-decoration: underline;
}

.document-preview.template-professional .resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(124px, 0.42fr);
  gap: 0;
  padding: 0 17mm 10px;
}

.document-preview.template-professional .resume-main-column {
  padding-top: 13px;
  padding-right: 15px;
  box-shadow: inset -1px 0 0 rgba(226, 230, 234, 0.75);
}

.document-preview.template-professional .resume-side-column {
  padding-top: 13px;
  padding-left: 12px;
  background: transparent;
}

.document-preview.template-professional .preview-section {
  margin: 0 0 13px;
}

.document-preview.template-professional .preview-section:last-child {
  margin-bottom: 0;
}

.document-preview.template-professional .preview-section h3 {
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.document-preview.template-professional .preview-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.document-preview.template-professional .resume-main-column .preview-item {
  padding: 7px 0;
  border-bottom: 1px solid #ebebeb;
}

.document-preview.template-professional .resume-main-column .preview-item:first-child {
  padding-top: 0;
}

.document-preview.template-professional .preview-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.document-preview.template-professional .item-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 1px;
}

.document-preview.template-professional .item-title,
.document-preview.template-professional .preview-item > strong {
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
}

.document-preview.template-professional .item-date {
  flex-shrink: 0;
  color: #555;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

.document-preview.template-professional .item-sub,
.document-preview.template-professional .preview-item .item-meta {
  margin: 0 0 4px;
  color: #555;
  font-size: 12.6px;
  line-height: 1.42;
}

.document-preview.template-professional .item-sub .sub-company {
  color: #444;
  font-weight: 600;
}

.document-preview.template-professional .item-sub .sub-sep {
  color: #ccc;
  margin: 0 6px;
}

.document-preview.template-professional #previewProjectsSection .project-link-row {
  margin: -1px 0 4px;
}

.document-preview.template-professional #previewProjectsSection .project-link-row a {
  color: var(--accent-deep);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.document-preview.template-professional #previewProjectsSection .project-link-row a:hover,
.document-preview.template-professional #previewProjectsSection .project-link-row a:focus-visible {
  text-decoration: underline;
}

.document-preview.template-professional .rich-text-block {
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3px;
  line-height: 1.5;
}

.document-preview.template-professional .rich-text-block * {
  font-family: inherit;
  font-size: inherit;
}

.document-preview.template-professional .rich-text-block p {
  margin: 0 0 4px;
}

.document-preview.template-professional .rich-text-block p:last-child {
  margin-bottom: 0;
}

.document-preview.template-professional .rich-text-block ul,
.document-preview.template-professional .rich-text-block ol {
  margin: 2px 0 4px 17px;
  padding: 0;
}

.document-preview.template-professional .rich-text-block li {
  margin-bottom: 1px;
}

.document-preview.template-professional .skill-chip-preview {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}

.document-preview.template-professional .skill-chip-preview span {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #374151;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12.2px;
  font-weight: 400;
  line-height: 1.55;
  white-space: nowrap;
}

.document-preview.template-professional .skill-chip-preview span::before {
  content: "";
}

.document-preview.template-professional .skill-chip-preview span:not(:last-child)::after {
  content: "·";
  padding: 0 7px;
  color: rgba(var(--accent-rgb), 0.45);
}

.document-preview.template-professional .resume-preview > #previewSkillsSection {
  margin: 0;
  padding: 2px 17mm 14mm;
}

.document-preview.template-professional .resume-preview > #previewSkillsSection h3 {
  margin-bottom: 7px;
}

.document-preview.template-professional .resume-side-column .preview-item {
  padding: 5px 0;
  border-bottom: 1px solid #ebebeb;
}

.document-preview.template-professional .resume-side-column .preview-item:first-child {
  padding-top: 0;
}

.document-preview.template-professional .side-item-title {
  display: block;
  margin-bottom: 1px;
  color: #1a1a1a;
  font-size: 12.6px;
  font-weight: 700;
  line-height: 1.35;
}

.document-preview.template-professional .side-item-sub {
  margin: 0 0 2px;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

.document-preview.template-professional .side-item-note {
  color: #1a1a1a;
  font-size: 12px;
  line-height: 1.45;
}

.document-preview.template-tech .resume-preview,
.document-preview.template-engineering .resume-preview,
.document-preview.template-finance .resume-preview {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 0 28px;
}

.document-preview.template-tech .resume-header,
.document-preview.template-engineering .resume-header,
.document-preview.template-finance .resume-header,
.document-preview.template-tech .resume-layout,
.document-preview.template-engineering .resume-layout,
.document-preview.template-finance .resume-layout,
.document-preview.template-tech #previewSummarySection,
.document-preview.template-engineering #previewSummarySection,
.document-preview.template-finance #previewSummarySection,
.document-preview.template-tech #previewExperienceSection,
.document-preview.template-engineering #previewExperienceSection,
.document-preview.template-finance #previewExperienceSection {
  grid-column: 1 / -1;
}

.document-preview.template-executive .preview-section h3 {
  color: var(--accent);
  letter-spacing: 0.14em;
}

.document-preview.template-medical .skill-chip-preview span {
  border-radius: 12px;
  color: var(--accent);
}

.document-preview.template-elegant .resume-preview {
  padding: 13mm 15mm 14mm;
  background: #fff;
  color: #1c1c1c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.2px;
  line-height: 1.5;
}

.document-preview.template-elegant .preview-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  border-bottom: 0;
  color: rgba(var(--accent-rgb), 0.86);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.document-preview.template-elegant .resume-main-column .preview-section h3::before,
.document-preview.template-elegant .resume-main-column .preview-section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.22);
}

.document-preview.template-elegant .resume-side-column .preview-section h3 {
  display: block;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.22);
  text-align: left;
}

.document-preview.template-finance .resume-header {
  border-bottom-color: var(--accent);
}

.document-preview.template-finance #previewExperienceSection .preview-item > strong::before,
.document-preview.template-finance #previewProjectsSection .preview-item > strong::before {
  content: "▪ ";
  color: var(--accent);
}

.resume-header { padding-bottom: 18px; border-bottom: 2px solid rgba(23, 23, 23, 0.08); }
.template-bold .resume-header {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  margin: -46px -50px 26px;
  padding: 46px 50px 24px;
  background: #151515;
}

.template-creative .resume-header,
.template-elegant .resume-header {
  border-bottom: 0;
  text-align: center;
}

.document-preview.template-elegant .resume-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 24px;
  margin: 0;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.28);
  text-align: left;
}

.document-preview.template-elegant .header-identity {
  min-width: 0;
}

.document-preview.template-elegant .resume-header h1 {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.document-preview.template-elegant .resume-header h1::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 8px;
  background: var(--accent);
}

.document-preview.template-elegant .resume-header .job-title {
  margin: 11px 0 0;
  color: #777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.document-preview.template-elegant .header-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px 12px;
  max-width: 270px;
  color: #555;
  font-size: 10.7px;
  line-height: 1.45;
  text-align: right;
}

.document-preview.template-elegant .header-contact .contact-item {
  display: inline-flex;
  white-space: nowrap;
}

.document-preview.template-elegant .header-contact a {
  color: var(--accent);
  text-decoration: none;
}

.document-preview.template-elegant .header-contact a:hover,
.document-preview.template-elegant .header-contact a:focus-visible {
  text-decoration: underline;
}

.document-preview.template-classic .meta-line,
.document-preview.template-creative .meta-line,
.document-preview.template-elegant .meta-line {
  justify-content: center;
}

.document-preview.template-classic .meta-line {
  align-items: center;
  gap: 0;
  margin-top: 0;
  color: #444;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.7px;
  line-height: 1.6;
}

.document-preview.template-classic .meta-line a,
.document-preview.template-classic .meta-line span {
  color: #444;
  text-decoration: none;
}

.document-preview.template-classic .meta-line a {
  color: var(--accent);
}

.document-preview.template-classic .meta-line a:hover,
.document-preview.template-classic .meta-line a:focus-visible {
  text-decoration: underline;
}

.document-preview.template-classic .meta-line .meta-sep {
  margin: 0 7px;
  color: #bbb;
  font-size: 10px;
  user-select: none;
}

.template-creative .resume-header h1 {
  color: var(--accent);
}

.template-minimal .resume-header,
.template-professional .resume-header,
.template-legal .resume-header,
.template-finance .resume-header {
  border-bottom-color: var(--accent);
}

.template-tech .resume-header,
.template-engineering .resume-header,
.template-medical .resume-header {
  border-left: 6px solid var(--accent);
  padding-left: 18px;
}

.template-arabic .resume-preview {
  direction: rtl;
  text-align: right;
}

.document-preview.template-arabic .resume-preview {
  direction: rtl;
  text-align: right;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  color: #374151;
  font-size: 13.8px;
  line-height: 1.58;
  padding: 48px 56px 58px;
}

.document-preview.template-arabic .resume-header {
  margin: 0 0 28px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e5e7eb;
  border-left: 0;
}

.document-preview.template-arabic .resume-header h1 {
  margin: 0 0 5px;
  color: var(--accent);
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.document-preview.template-arabic .resume-header p {
  margin: 0 0 15px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.document-preview.template-arabic .meta-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0;
  margin-top: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.75;
}

.document-preview.template-arabic .meta-line .meta-item {
  display: inline-flex;
  align-items: baseline;
  unicode-bidi: isolate;
}

.document-preview.template-arabic .meta-line .meta-item + .meta-item::before {
  content: "·";
  margin: 0 9px;
  color: #cbd5e1;
  font-weight: 700;
}

.document-preview.template-arabic .meta-line a {
  color: #4b5563;
  text-decoration: none;
}

.document-preview.template-arabic .meta-line a:hover,
.document-preview.template-arabic .meta-line a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.document-preview.template-arabic .ltr-token {
  direction: ltr;
  unicode-bidi: isolate-override;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.document-preview.template-arabic .preview-section {
  margin-top: 24px;
  page-break-inside: auto;
}

.document-preview.template-arabic .preview-section:first-of-type {
  margin-top: 0;
}

.document-preview.template-arabic .preview-section h3 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  break-after: avoid-page;
  page-break-after: avoid;
}

.document-preview.template-arabic .preview-section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.06) 64%, transparent);
}

.document-preview.template-arabic .preview-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.document-preview.template-arabic .preview-item {
  page-break-inside: auto;
}

.document-preview.template-arabic .arabic-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 3px;
}

.document-preview.template-arabic .preview-item strong,
.document-preview.template-arabic .arabic-item-header strong {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.document-preview.template-arabic .item-date {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}

.document-preview.template-arabic .item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0 0 5px;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.6;
}

.document-preview.template-arabic .item-meta > span,
.document-preview.template-arabic .item-meta > a {
  unicode-bidi: isolate;
}

.document-preview.template-arabic .item-meta .meta-sep {
  margin: 0 8px;
  color: #d1d5db;
  font-weight: 700;
}

.document-preview.template-arabic .item-meta a,
.document-preview.template-arabic .project-link-row a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.document-preview.template-arabic .item-meta a:hover,
.document-preview.template-arabic .item-meta a:focus-visible,
.document-preview.template-arabic .project-link-row a:hover,
.document-preview.template-arabic .project-link-row a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.document-preview.template-arabic .rich-text-block,
.document-preview.template-arabic .body-copy {
  color: #374151;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 13.2px;
  line-height: 1.78;
  direction: rtl;
  text-align: right;
}

.document-preview.template-arabic .rich-text-block * {
  font-family: inherit;
  font-size: inherit;
}

.document-preview.template-arabic .rich-text-block p {
  margin: 0 0 6px;
}

.document-preview.template-arabic .rich-text-block p:last-child {
  margin-bottom: 0;
}

.document-preview.template-arabic .rich-text-block ul,
.document-preview.template-arabic .rich-text-block ol {
  margin: 4px 0;
  padding-inline-start: 0;
  padding-inline-end: 18px;
  list-style-position: outside;
}

.document-preview.template-arabic .rich-text-block li {
  margin-bottom: 3px;
  padding-inline-start: 0;
  padding-inline-end: 2px;
  text-align: right;
}

.document-preview.template-arabic .rich-text-block .align-left {
  text-align: left;
}

.document-preview.template-arabic .rich-text-block .align-center {
  text-align: center;
}

.document-preview.template-arabic .rich-text-block .align-right {
  text-align: right;
}

.document-preview.template-arabic .rich-text-block .align-justify {
  text-align: justify;
}

.document-preview.template-arabic .arabic-skills-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  color: #1f2937;
  font-size: 13.2px;
  line-height: 1.6;
}

.document-preview.template-arabic .arabic-skills-list > span {
  display: inline-flex !important;
  align-items: baseline;
  gap: 6px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  unicode-bidi: isolate;
}

.document-preview.template-arabic .arabic-skills-list > .ltr-token,
.document-preview.template-arabic .arabic-skills-list .ltr-token {
  display: inline-flex !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.document-preview.template-arabic .arabic-skills-list .skill-separator {
  display: none;
}

.document-preview.template-arabic .arabic-skills-list > span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.56;
  flex: 0 0 auto;
  transform: translateY(-1px);
}

.document-preview.template-arabic .arabic-skills-list > span + span::before {
  content: "";
}

.template-executive .resume-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  margin: -46px -50px 0;
  padding: 28px 40px 22px;
}

.document-preview.template-executive .resume-header h1,
.template-executive .resume-header p,
.template-executive .resume-header .meta-line {
  color: white;
}

.document-preview.template-executive .resume-preview {
  padding-bottom: 0;
  color: #1c1c1c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
}

.document-preview.template-executive .resume-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  max-width: 18ch;
  font-size: clamp(24px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}

.document-preview.template-executive .resume-header p {
  margin: 3px 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.document-preview.template-executive .meta-line {
  gap: 4px 20px;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  line-height: 1.35;
}

.document-preview.template-executive .meta-line > * {
  white-space: nowrap;
}

.document-preview.template-executive .meta-line a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.document-preview.template-executive .meta-line a:hover,
.document-preview.template-executive .meta-line a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.resume-header h1,
.letter-header h1 { margin: 0; font-size: clamp(2rem, 3.1vw, 2.2rem); }
.document-preview .resume-header h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.document-preview.template-classic .resume-header h1,
.document-preview.template-academic .resume-header h1,
.document-preview.template-legal .resume-header h1 {
  font-family: Georgia, "Times New Roman", serif;
}

.document-preview.template-classic .resume-header h1 {
  color: var(--accent);
  font-size: 30.6px;
  font-variant: small-caps;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 7px;
}

.document-preview.template-classic .resume-header p {
  margin: 0 0 12px;
  color: #444;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}
.resume-header p,
.letter-header p { margin: 10px 0 0; }
.document-preview .resume-header p {
  font-size: 15px;
  line-height: 1.32;
}

.template-modern .preview-section h3 { color: var(--accent); }
.template-classic .resume-header h1,
.template-classic .preview-section h3 { color: var(--accent); }
.template-bold .resume-header h1,
.template-bold .resume-header p,
.template-bold .resume-header .meta-line { color: white; }
.template-bold .preview-section h3,
.template-bold .letter-header h1,
.template-bold .letter-header p { color: #111827; }

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.6px;
  line-height: 1.35;
}

.preview-empty-guide {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px dashed rgba(var(--accent-rgb), 0.28);
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.06);
  color: #24415f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.preview-section { margin-top: 20px; }
.preview-section h3 {
  margin: 0 0 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.document-preview .preview-section h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.4px;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.document-preview.template-classic .preview-section h3,
.document-preview.template-academic .preview-section h3,
.document-preview.template-legal .preview-section h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.document-preview.template-classic .preview-section {
  margin-top: 15px;
  page-break-inside: auto;
}

.document-preview.template-classic .preview-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 11px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--accent);
  font-size: 11.4px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.document-preview.template-classic .preview-section h3::before,
.document-preview.template-classic .preview-section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.45);
}

.document-preview.template-classic #previewSummarySection .rich-text-block p {
  color: #2e2e2e;
  font-style: italic;
}

.document-preview.template-classic .preview-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.document-preview.template-classic .preview-item {
  padding: 9px 0;
  page-break-inside: auto;
}

.document-preview.template-classic .preview-item + .preview-item {
  border-top: 1px solid #e4e4e4;
}

.document-preview.template-classic .preview-item:first-child {
  padding-top: 0;
}

.document-preview.template-classic .item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.document-preview.template-classic .preview-item > strong,
.document-preview.template-classic .item-header strong {
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.document-preview.template-classic .item-date {
  flex-shrink: 0;
  color: #666;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.7px;
  line-height: 1.35;
  white-space: nowrap;
}

.document-preview.template-classic .item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 2px 0 5px;
  color: #555;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11.3px;
  line-height: 1.4;
}

.document-preview.template-classic .item-meta .meta-sep {
  margin: 0 5px;
  color: #ccc;
  user-select: none;
}

.document-preview.template-classic .item-meta a,
.document-preview.template-classic .project-link-row a {
  color: var(--accent);
  text-decoration: none;
}

.document-preview.template-classic .item-meta a:hover,
.document-preview.template-classic .item-meta a:focus-visible,
.document-preview.template-classic .project-link-row a:hover,
.document-preview.template-classic .project-link-row a:focus-visible {
  text-decoration: underline;
}

.document-preview.template-classic .rich-text-block,
.document-preview.template-classic .body-copy {
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.55;
}

.document-preview.template-classic .rich-text-block * {
  font-family: inherit;
  font-size: inherit;
}

.document-preview.template-classic .rich-text-block p {
  margin: 0 0 5px;
}

.document-preview.template-classic .rich-text-block p:last-child {
  margin-bottom: 0;
}

.document-preview.template-classic .rich-text-block ul,
.document-preview.template-classic .rich-text-block ol {
  margin: 2px 0 5px 24px;
  padding: 0;
}

.document-preview.template-classic .rich-text-block li {
  margin-bottom: 2px;
}

.document-preview.template-tech .preview-section h3,
.document-preview.template-engineering .preview-section h3 {
  font-family: "Courier New", monospace;
}

.document-preview .executive-snapshot strong {
  font-family: Arial, Helvetica, sans-serif;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.75fr);
  gap: 0 24px;
}

.resume-main-column,
.resume-side-column {
  min-width: 0;
}

.resume-side-column .preview-section {
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--template-accent-block);
}

.resume-side-column .preview-section h3 {
  border-bottom-color: rgba(23, 23, 23, 0.06);
}

.document-preview.template-tech .resume-preview {
  display: block;
  padding: 0;
  background: #fff;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.document-preview.template-tech .resume-header {
  margin: 0;
  padding: 18px 36px 0;
  border-top: 3px solid var(--accent);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.document-preview.template-tech .resume-header h1 {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.document-preview.template-tech .resume-header .job-title {
  margin: 3px 0 0;
  color: #6b7280;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.document-preview.template-tech .contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  padding: 5px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 10px;
  line-height: 1.35;
}

.document-preview.template-tech .contact-bar .c-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.document-preview.template-tech .contact-bar .c-sep {
  width: 1px;
  height: 8px;
  margin: 0 8px;
  background: #e5e7eb;
  flex: 0 0 auto;
}

.document-preview.template-tech .contact-bar a {
  color: var(--accent);
  text-decoration: none;
}

.document-preview.template-tech .contact-bar a:hover,
.document-preview.template-tech .contact-bar a:focus-visible {
  text-decoration: underline;
}

.document-preview.template-tech .tech-top-zone {
  display: grid;
  grid-template-columns: minmax(0, 2.18fr) minmax(176px, 0.82fr);
  align-items: start;
  background: rgba(var(--accent-rgb), 0.04);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.document-preview.template-tech .tech-top-zone-single {
  grid-template-columns: minmax(0, 1fr);
}

.document-preview.template-tech .zone-summary {
  padding: 10px 24px 10px 36px;
  border-right: 1px dashed rgba(var(--accent-rgb), 0.18);
}

.document-preview.template-tech .tech-top-zone-single .zone-summary {
  border-right: 0;
  padding-right: 36px;
}

.document-preview.template-tech .zone-tools {
  padding: 10px 36px 10px 18px;
}

.document-preview.template-tech .zone-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--accent);
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 8.3px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.document-preview.template-tech .zone-label::before,
.document-preview.template-tech .preview-section h3::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.document-preview.template-tech .zone-summary-text {
  color: #4b5563;
  font-size: 10.3px;
  line-height: 1.48;
}

.document-preview.template-tech .tech-topzone-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 5px;
}

.document-preview.template-tech .tech-topzone-skills span,
.document-preview.template-tech .tech-additional-skills span {
  display: inline-flex;
  padding: 1px 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-deep);
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 9.2px;
  line-height: 1.36;
  white-space: nowrap;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.document-preview.template-tech .tech-additional-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 5px;
  padding: 6px 0 2px;
  border-left: 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.08);
  background: transparent;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.document-preview.template-tech .tech-additional-skills span {
  font-size: 9.4px;
  background: rgba(var(--accent-rgb), 0.025);
  color: #374151;
}

.document-preview.template-tech .tech-body {
  padding: 0 36px 32px;
}

.document-preview.template-tech .preview-section {
  margin-top: 14px;
  page-break-inside: auto;
}

.document-preview.template-tech .preview-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.document-preview.template-tech #previewExperienceSection h3 {
  break-after: avoid-page;
  page-break-after: avoid;
}

.document-preview.template-tech #previewSkillsSectionAdditional,
.document-preview.template-tech #previewEducationSection,
.document-preview.template-tech #previewCertificationsSection,
.document-preview.template-tech #previewCustomSectionWrap {
  margin-top: 12px;
}

.document-preview.template-tech #previewEducationSection h3,
.document-preview.template-tech #previewCertificationsSection h3,
.document-preview.template-tech #previewCustomSectionWrap h3 {
  break-after: avoid-page;
  page-break-after: avoid;
}

.document-preview.template-tech #previewEducationSection h3 + .preview-stack,
.document-preview.template-tech #previewCertificationsSection h3 + .preview-stack,
.document-preview.template-tech #previewCustomSectionWrap h3 + .preview-stack {
  break-before: avoid-page;
  page-break-before: avoid;
}

.document-preview.template-tech .preview-section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.document-preview.template-tech .preview-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.document-preview.template-tech .tech-item {
  padding: 10px 0 10px 12px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.07);
  border-left: 2px solid transparent;
  page-break-inside: auto;
}

.document-preview.template-tech #previewEducationSection .tech-item,
.document-preview.template-tech #previewCertificationsSection .tech-item,
.document-preview.template-tech #previewCustomSectionWrap .preview-item {
  padding-top: 7px;
  padding-bottom: 7px;
}

.document-preview.template-tech #previewCertificationsList .tech-item:first-child {
  break-inside: avoid-page;
  page-break-inside: avoid;
}

.document-preview.template-tech .tech-item:last-child {
  border-bottom: 0;
}

.document-preview.template-tech .tech-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  break-after: avoid-page;
  page-break-after: avoid;
}

.document-preview.template-tech .tech-item-header strong {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.document-preview.template-tech .tech-item-date {
  color: #6b7280;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
}

.document-preview.template-tech .tech-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 1px 0 0;
  color: #4b5563;
  font-size: 10.5px;
  line-height: 1.45;
  break-after: avoid-page;
  page-break-after: avoid;
}

.document-preview.template-tech .tech-company {
  color: #111827;
  font-weight: 650;
}

.document-preview.template-tech .tech-dot {
  margin: 0 5px;
  color: #d1d5db;
}

.document-preview.template-tech .rich-text-block,
.document-preview.template-tech .body-copy {
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  line-height: 1.68;
}

.document-preview.template-tech .rich-text-block * {
  font-family: inherit;
  font-size: inherit;
}

.document-preview.template-tech .rich-text-block p {
  margin: 6px 0 0;
}

.document-preview.template-tech .rich-text-block ul,
.document-preview.template-tech .rich-text-block ol {
  margin: 6px 0 0 16px;
  padding: 0;
}

.document-preview.template-tech .rich-text-block li {
  margin-bottom: 2px;
}

.document-preview.template-tech .tech-project-link {
  margin-top: 5px;
}

.document-preview.template-tech .tech-project-link a {
  display: inline-flex;
  padding: 2px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 2px;
  color: var(--accent);
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
}

.document-preview.template-tech .tech-project-link a:hover,
.document-preview.template-tech .tech-project-link a:focus-visible {
  background: rgba(var(--accent-rgb), 0.06);
  text-decoration: none;
}

.document-preview.template-elegant .resume-layout {
  grid-template-columns: minmax(0, 1fr) minmax(178px, 0.42fr);
  gap: 0 34px;
  margin-top: 30px;
}

.document-preview.template-elegant .elegant-body {
  margin-top: 30px;
}

.document-preview.template-elegant .elegant-body .preview-section {
  max-width: none;
}

.document-preview.template-elegant .resume-side-column .preview-section {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.document-preview.template-elegant .preview-section {
  margin-top: 0;
  margin-bottom: 25px;
  page-break-inside: auto;
}

.document-preview.template-elegant .preview-section:last-child {
  margin-bottom: 0;
}

.document-preview.template-elegant .preview-stack {
  gap: 20px;
}

.document-preview.template-elegant #previewCertificationsList {
  gap: 9px;
}

.document-preview.template-elegant .resume-side-column .preview-stack {
  gap: 13px;
}

.document-preview.template-elegant .preview-item {
  page-break-inside: auto;
}

.document-preview.template-elegant .preview-item > strong {
  display: block;
  color: #1c1c1c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 2px;
}

.document-preview.template-elegant .elegant-cert-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.document-preview.template-elegant .elegant-cert-row strong {
  color: #1c1c1c;
  font-size: 13.4px;
  font-weight: 700;
  line-height: 1.35;
}

.document-preview.template-elegant .elegant-cert-issuer {
  margin-top: 2px;
  color: #666;
  font-size: 11.5px;
  line-height: 1.35;
}

.document-preview.template-elegant .item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0 0 5px;
  color: #666;
  font-size: 11.4px;
  line-height: 1.45;
}

.document-preview.template-elegant .item-company {
  color: #3a3a3a;
  font-weight: 700;
}

.document-preview.template-elegant .item-meta .sep {
  margin: 0 7px;
  color: rgba(var(--accent-rgb), 0.48);
}

.document-preview.template-elegant .item-date {
  color: #8a8a8a;
  font-style: italic;
}

.document-preview.template-elegant .resume-main-column .item-date {
  margin-left: auto;
}

.document-preview.template-elegant .item-link {
  margin: -1px 0 5px;
  font-size: 11.2px;
  line-height: 1.4;
}

.document-preview.template-elegant .item-link a,
.document-preview.template-elegant .item-meta a {
  color: var(--accent);
  text-decoration: none;
}

.document-preview.template-elegant .item-link a:hover,
.document-preview.template-elegant .item-link a:focus-visible,
.document-preview.template-elegant .item-meta a:hover,
.document-preview.template-elegant .item-meta a:focus-visible {
  text-decoration: underline;
}

.document-preview.template-elegant .rich-text-block,
.document-preview.template-elegant .body-copy {
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3px;
  line-height: 1.62;
}

.document-preview.template-elegant .rich-text-block * {
  font-family: inherit;
  font-size: inherit;
}

.document-preview.template-elegant .rich-text-block p {
  margin: 0 0 4px;
}

.document-preview.template-elegant .rich-text-block p:last-child {
  margin-bottom: 0;
}

.document-preview.template-elegant .rich-text-block ul,
.document-preview.template-elegant .rich-text-block ol {
  margin: 2px 0 4px 18px;
  padding: 0;
}

.document-preview.template-elegant .rich-text-block li {
  margin-bottom: 1px;
}

.document-preview.template-elegant .resume-side-column .preview-item > strong {
  font-size: 12.5px;
}

.document-preview.template-elegant .resume-side-column .item-meta,
.document-preview.template-elegant .resume-side-column .rich-text-block {
  font-size: 11px;
  line-height: 1.45;
}

.document-preview.template-elegant .skill-chip-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 0;
  color: #3a3a3a;
  font-size: 12px;
  line-height: 1.55;
}

.document-preview.template-elegant .skill-chip-preview span {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.document-preview.template-elegant .skill-chip-preview span:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: rgba(var(--accent-rgb), 0.58);
}

.classic-centered {
  text-align: center;
}

.document-preview.template-classic .classic-skills-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 0;
  color: #2a2a2a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11.3px;
  line-height: 1.42;
}

.document-preview.template-classic .classic-skills-list span {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

.document-preview.template-classic .classic-skills-list span:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: rgba(var(--accent-rgb), 0.72);
}

.document-preview.template-classic .skill-chip-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 14px;
}

.document-preview.template-classic .skill-chip-preview span {
  position: relative;
  display: block;
  padding: 0 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2a2a2a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11.3px;
  font-weight: 400;
  line-height: 1.35;
}

.document-preview.template-classic .skill-chip-preview span::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.7);
  color: var(--accent);
}

.document-preview.template-classic .cert-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.document-preview.template-classic .cert-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.document-preview.template-classic .cert-name {
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.document-preview.template-classic .cert-issuer {
  margin-top: 1px;
  color: #666;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.7px;
  font-style: italic;
  line-height: 1.35;
}

.document-preview.template-classic .cert-meta {
  flex-shrink: 0;
  color: #666;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.7px;
  line-height: 1.35;
  white-space: nowrap;
}

.executive-snapshot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 14px;
  margin: 0 -50px;
  padding: 9px 40px 8px;
  border-left: 4px solid var(--accent);
  background: #f4f6fb;
  color: #1c1c1c;
}

.executive-snapshot .snap-label {
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.executive-snapshot .snap-title {
  flex: 1 1 18rem;
  min-width: 12rem;
  color: #1c1c1c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12.6px;
  font-weight: 700;
  line-height: 1.35;
}

.executive-snapshot .snap-skills {
  flex: 999 1 18rem;
  color: #555;
  font-size: 10.8px;
  font-style: italic;
  line-height: 1.35;
}

.document-preview.template-executive .executive-body {
  padding: 24px 40px 36px;
}

.document-preview.template-executive .preview-section {
  margin: 0 0 20px;
}

.document-preview.template-executive .preview-section:last-child {
  margin-bottom: 0;
}

.document-preview.template-executive .preview-section h3 {
  margin: 0 0 11px;
  padding-bottom: 5px;
  border-bottom: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.document-preview.template-executive .preview-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.document-preview.template-executive .preview-item > strong {
  display: block;
  margin-bottom: 2px;
  color: #111;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.document-preview.template-executive .preview-item .item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0 0 5px;
  color: #666;
  font-size: 11.5px;
  line-height: 1.4;
}

.document-preview.template-executive .preview-item .item-meta span {
  white-space: nowrap;
}

.document-preview.template-executive .preview-item .item-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: #bbb;
}

.document-preview.template-executive #previewProjectsSection .project-link-row {
  margin: -1px 0 5px;
}

.document-preview.template-executive #previewProjectsSection .project-link-row a {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.document-preview.template-executive #previewProjectsSection .project-link-row a:hover,
.document-preview.template-executive #previewProjectsSection .project-link-row a:focus-visible {
  text-decoration: underline;
}

.document-preview.template-executive .rich-text-block,
.document-preview.template-executive .body-copy {
  color: #2c2c2c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.56;
}

.document-preview.template-executive .rich-text-block * {
  font-family: inherit;
  font-size: inherit;
}

.document-preview.template-executive .rich-text-block p {
  margin-bottom: 5px;
}

.document-preview.template-executive .rich-text-block p:last-child {
  margin-bottom: 0;
}

.document-preview.template-executive .rich-text-block ul,
.document-preview.template-executive .rich-text-block ol {
  margin: 0 0 5px;
  padding-left: 18px;
}

.document-preview.template-executive .rich-text-block li {
  margin-bottom: 2px;
}

.document-preview.template-executive .skill-chip-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 4px;
  max-width: none;
  color: #374151;
  font-size: 12px;
  line-height: 1.38;
}

.document-preview.template-executive .skill-chip-preview span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: normal;
}

.document-preview.template-executive .skill-chip-preview span::before {
  content: "";
  width: 3px;
  height: 12px;
  flex: 0 0 3px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.42);
}

.document-preview.template-executive .skill-chip-preview span:not(:last-child)::after {
  content: none;
}

.clinical-layout {
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
}

.clinical-sidebar {
  margin-top: 22px;
}

.clinical-sidebar .preview-section,
.contact-panel {
  background: rgba(var(--accent-rgb), 0.08);
}

.academic-layout,
.legal-layout,
.technical-layout,
.executive-layout {
  align-items: start;
}

.legal-rule {
  margin: 14px 0 2px;
  padding: 8px 0;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.22);
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.creative-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  margin-top: 6px;
}

.creative-feature-grid .preview-section {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.055);
}

.technical-header .meta-line,
.medical-header .meta-line,
.academic-header .meta-line,
.legal-header .meta-line {
  justify-content: flex-start;
}

.preview-stack { display: grid; gap: 11px; }
.preview-item strong {
  display: block;
  font-size: 14.2px;
  line-height: 1.3;
}
.preview-item .item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 4px 0 7px;
  color: var(--muted);
  font-size: 12.4px;
  line-height: 1.35;
}

.document-preview .preview-item p,
.document-preview .preview-section .body-copy,
.document-preview .rich-text-block {
  font-size: 14.2px;
  line-height: 1.38;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

.rich-text-block {
  display: grid;
  gap: 3px;
  margin-top: 3px;
  font: inherit;
  color: inherit;
}

.rich-text-block p {
  margin: 0;
  font: inherit;
  line-height: inherit;
}

.rich-text-block .resume-bullets {
  margin: 0;
  padding-inline-start: 1.08rem;
  font: inherit;
  line-height: inherit;
}

.rich-text-block .resume-bullets li {
  margin: 0 0 2px;
  font: inherit;
  line-height: inherit;
}

.rich-text-block ul,
.rich-text-block ol,
.rich-text-editor ul,
.rich-text-editor ol {
  margin: 0 0 5px 1.08rem;
  padding: 0;
  font: inherit;
  line-height: inherit;
}

.rich-text-block li,
.rich-text-editor li {
  margin: 0 0 2px;
  font: inherit;
  line-height: inherit;
}

.rich-text-block strong,
.rich-text-block b,
.rich-text-editor strong,
.rich-text-editor b { font-weight: 700; }

.rich-text-block em,
.rich-text-block i,
.rich-text-editor em,
.rich-text-editor i { font-style: italic; }

.rich-text-block u,
.rich-text-editor u { text-decoration: underline; }

.rich-text-block .align-left,
.rich-text-editor .align-left,
.align-left { text-align: left; }

.rich-text-block .align-center,
.rich-text-editor .align-center,
.align-center { text-align: center; }

.rich-text-block .align-right,
.rich-text-editor .align-right,
.align-right { text-align: right; }

.rich-text-block .align-justify,
.rich-text-editor .align-justify,
.align-justify { text-align: justify; }

.skill-chip-preview span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--template-accent-block);
  font-size: 12px;
  line-height: 1.25;
}

.letter-preview {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.58;
}

.letter-header {
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(var(--accent-rgb), 0.18);
}

.letter-header h1 {
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.letter-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.4;
}

.letter-contact a {
  color: var(--accent);
  text-decoration: none;
}

.letter-contact a:hover,
.letter-contact a:focus-visible {
  text-decoration: underline;
}
.letter-body {
  max-width: 68ch;
  white-space: normal;
  color: #1f2937;
  line-height: 1.58;
}

.letter-body .rich-text-block {
  margin-top: 0;
  font: inherit;
  line-height: inherit;
}

.letter-body .rich-text-block p {
  margin: 0 0 12px;
}

.letter-body .rich-text-block ul,
.letter-body .rich-text-block ol {
  margin-bottom: 12px;
}

.mobile-only { display: none; }
.mobile-tools-panel { display: none; }
.preview-close-mobile { display: none; }

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(11, 31, 58, 0.48);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 34px 90px rgba(11, 31, 58, 0.28);
}

.modal-card h2 {
  margin: 8px 0 10px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.feedback-callout,
.feedback-tool-group {
  padding: 14px;
  border: 1px solid rgba(26, 86, 219, 0.1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(237, 245, 255, 0.8), rgba(255, 255, 255, 0.82));
}

.feedback-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 16px;
}

.feedback-callout p,
.feedback-tool-group p {
  margin: 0;
}

.feedback-callout strong {
  color: var(--marine);
}

.feedback-link-panel {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(26, 86, 219, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.08);
  color: var(--navy);
  font-size: 1.4rem;
}

.modal-close:hover {
  background: rgba(26, 86, 219, 0.12);
}

.modal-close:focus-visible {
  outline-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.14);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.section-visibility,
.resume-library {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(26, 86, 219, 0.1);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.86);
}

.section-visibility h3,
.resume-library h3 {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
}

.resume-library {
  display: grid;
  gap: 12px;
}

.resume-library label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.library-current,
.library-status,
.library-empty-note,
.library-count,
.library-help,
.local-data-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.local-data-note {
  padding: 12px 14px;
  border: 1px solid rgba(26, 86, 219, 0.16);
  border-radius: 16px;
  background: rgba(26, 86, 219, 0.06);
  color: #334155;
}

.library-count {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-deep);
  font-weight: 900;
}

.library-current {
  color: #102033;
  font-weight: 800;
}

.loaded-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #059669;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  vertical-align: middle;
}

.library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-actions button {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: white;
  padding: 9px 12px;
  font-weight: 900;
  color: var(--marine);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.library-actions button:hover,
.export-options button:hover,
.visibility-grid label:hover {
  border-color: rgba(26, 86, 219, 0.24);
  box-shadow: 0 12px 26px rgba(11, 31, 58, 0.08);
  transform: translateY(-1px);
}

.library-status {
  min-height: 1.3em;
  color: var(--accent);
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(26, 86, 219, 0.08);
}

.export-warning {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: #8a4b05;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

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

.visibility-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 16px;
  background: white;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.visibility-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checker-score {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 22px;
  border-radius: 22px;
  background: rgba(26, 86, 219, 0.08);
}

.checker-score span {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
}

.checker-score small {
  color: var(--muted);
}

.ats-job-description {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.ats-job-description span {
  color: var(--ink);
  font-weight: 800;
}

.ats-score-result span {
  font-size: clamp(1.5rem, 5vw, 3rem);
}

.checker-score-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.checker-score-card,
.score-breakdown-item {
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
}

.checker-score-card span,
.score-breakdown-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checker-score-card strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-size: 1.7rem;
}

.checker-score-card p,
.score-breakdown-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.score-breakdown {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.score-breakdown-bar {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.score-breakdown-bar div {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.checker-privacy {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.checker-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.checker-grid h3 {
  margin: 0;
  font-size: 1rem;
}

.keyword-match {
  display: grid;
  gap: 10px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.keyword-row strong {
  color: var(--ink);
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.warning-list li::before {
  background: #f59e0b;
}

@media (max-width: 720px) {
  .checker-score-cards {
    grid-template-columns: 1fr;
  }
}

.export-options {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.export-options button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 20px;
  background: white;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.export-options button strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
}

.export-options button span {
  color: var(--muted);
}

.export-options .danger-option {
  border-color: rgba(185, 28, 28, 0.18);
  background: #fffafa;
}

.export-options .danger-option strong {
  color: #991b1b;
}

.export-note,
.export-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.export-status {
  min-height: 1.4em;
  font-weight: 800;
  color: var(--accent);
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(26, 86, 219, 0.08);
}

.library-status:empty,
.export-status:empty {
  display: none;
}

.welcome-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(26, 86, 219, 0.13), transparent 12rem),
    rgba(255, 255, 255, 0.97);
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.progress-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.progress-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 18px;
  background: white;
}

.progress-item span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 23, 23, 0.07);
  color: var(--muted);
  font-weight: 900;
}

.progress-item strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
}

.progress-item small {
  color: var(--muted);
  font-weight: 800;
}

.progress-item.complete {
  border-color: rgba(5, 150, 105, 0.18);
  background: rgba(5, 150, 105, 0.06);
}

.progress-item.complete span {
  background: #059669;
  color: white;
}

@media (max-width: 1180px) {
  .editor-shell {
    grid-template-columns: 1fr;
    height: auto;
  }
  .preview-pane {
    border-top: 1px solid rgba(26, 86, 219, 0.08);
    max-height: none;
  }
  .mobile-only { display: inline-flex; }
  .preview-pane.hidden-mobile { display: none; }
  .form-pane { overflow: visible; }
}

@media (max-width: 1020px) and (min-width: 841px) {
  .editor-topbar {
    grid-template-columns: auto minmax(120px, 0.26fr) minmax(0, 1fr);
    width: min(100% - 16px, 1000px);
    gap: 6px;
  }

  .topbar-center {
    justify-content: center;
  }

  .topbar-right {
    grid-column: auto;
    justify-content: flex-end;
    gap: 4px;
  }

  .topbar-right .ghost-button,
  .topbar-right .primary-button {
    min-height: 40px;
    padding: 5px 7px;
    font-size: 0.72rem;
  }

  .topbar-right .primary-button {
    min-width: 70px;
    padding-inline: 10px;
  }

  .completion-pill {
    padding: 6px 8px;
  }

  .completion-pill span {
    display: none;
  }

  .completion-track {
    width: clamp(58px, 7vw, 78px);
  }
}

@media (max-width: 840px) {
  .editor-page {
    padding-bottom: 0;
  }

  .editor-topbar {
    top: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    padding: 9px;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.1);
  }

  .topbar-left {
    justify-content: space-between;
  }

  .logo-link {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .logo-copy strong {
    font-size: 0.92rem;
  }

  .logo-copy small {
    font-size: 0.66rem;
  }

  .history-actions {
    gap: 6px;
  }

  .history-actions button {
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .topbar-center {
    justify-content: flex-start;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .completion-pill {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .topbar-right {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .topbar-right .ghost-button,
  .topbar-right .primary-button {
    min-height: 38px;
    min-width: 0;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  #checkerButton {
    grid-column: span 2;
  }

  #printButton {
    grid-column: span 1;
  }

  .pane-inner {
    padding: 16px;
  }

  .form-card {
    padding: 18px;
  }

  .tab-row {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .form-grid, .entry-grid, .finish-grid { grid-template-columns: 1fr; }
  .form-intro, .section-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .form-intro {
    padding: 10px 12px;
    gap: 6px;
  }

  .form-intro h1 {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .preview-toolbar {
    gap: 8px;
    padding: 10px 12px 12px;
  }

  .preview-toolbar-row {
    width: 100%;
    align-items: flex-start;
  }

  .preview-toolbar-top {
    align-items: center;
  }

  .preview-toolbar-top .mini-label {
    display: none;
  }

  .preview-toolbar-main {
    flex-direction: column;
    gap: 8px;
  }

  .preview-switch,
  .preview-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .preview-switch {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
  }

  .preview-actions button {
    flex: 0 0 auto;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .preview-actions .preview-export {
    order: -1;
  }

  .preview-pane {
    position: fixed;
    inset: 8px;
    z-index: 80;
    border: 1px solid rgba(26, 86, 219, 0.12);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(11, 31, 58, 0.28);
  }

  .preview-pane::before {
    display: none;
    content: none;
  }

  .preview-scroll {
    padding: 16px;
  }

  .preview-close-mobile {
    display: inline-flex;
  }

  .resume-preview, .letter-preview { padding: 36px 26px; }
  .document-preview.template-modern .resume-preview,
  .document-preview.template-professional .resume-preview,
  .document-preview.template-tech .resume-preview,
  .document-preview.template-engineering .resume-preview,
  .document-preview.template-finance .resume-preview {
    display: block;
  }
  .resume-layout,
  .clinical-layout,
  .creative-feature-grid {
    grid-template-columns: 1fr;
  }
  .resume-side-column .preview-section,
  .creative-feature-grid .preview-section {
    padding: 0;
    background: transparent;
  }
  .document-preview.template-minimal .resume-preview {
    padding-left: 26px;
    padding-right: 26px;
  }
  .template-bold .resume-header {
    margin: -36px -26px 24px;
    padding: 36px 26px 24px;
  }
  .completion-track { width: 100%; }
  .modal-grid { grid-template-columns: 1fr; }
  .visibility-grid { grid-template-columns: 1fr; }

  .modal-card {
    padding: 26px;
    border-radius: 26px;
  }

  .section-visibility,
  .resume-library {
    padding: 18px;
  }

  .library-actions button {
    flex: 1 1 auto;
    min-height: 42px;
  }

  .progress-item {
    grid-template-columns: 34px 1fr;
  }

  .progress-item small {
    grid-column: 2;
  }

}

@media screen and (max-width: 520px) {
  .editor-topbar {
    gap: 5px;
    padding: 5px 9px 7px;
    background: rgba(248, 251, 255, 0.97);
    box-shadow: 0 8px 22px rgba(11, 31, 58, 0.08);
  }

  .topbar-left {
    justify-content: space-between;
    gap: 7px;
    min-width: 0;
  }

  .logo-link {
    gap: 7px;
    min-width: 0;
  }

  .logo-copy strong {
    font-size: 0.82rem;
  }

  .logo-copy small {
    display: none;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 0.82rem;
  }

  .history-actions {
    gap: 4px;
    margin-left: auto;
  }

  .history-actions button {
    min-width: 0;
    min-height: 28px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.64rem;
    letter-spacing: 0.01em;
  }

  .topbar-center {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 6px;
    width: 100%;
  }

  .completion-pill {
    min-height: 24px;
    padding: 3px 7px;
  }

  .completion-pill span {
    display: none;
  }

  .completion-pill strong {
    font-size: 0.74rem;
  }

  .completion-track {
    height: 6px;
  }

  .topbar-right {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }

  .topbar-right .ghost-button,
  .topbar-right .primary-button {
    display: inline-grid;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 0;
    padding: 0 6px;
    border-radius: 13px;
    font-size: 0.75rem;
    font-weight: 850;
    white-space: normal;
    line-height: 1;
    text-align: center;
  }

  #mobilePreviewToggle {
    order: 1;
    border-color: rgba(26, 86, 219, 0.18);
    background: rgba(26, 86, 219, 0.09);
    color: var(--accent-deep);
  }

  #mobileExportButton {
    order: 2;
    box-shadow: 0 10px 20px rgba(26, 86, 219, 0.2);
  }

  #mobileToolsButton {
    order: 3;
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.72);
  }

	  #checkerButton,
	  #printButton,
	  #settingsButton,
	  .desktop-feedback-link {
	    display: none;
	  }

  #mobileLibraryButton,
  #loadExampleButton {
    display: none;
  }

  #resetButton,
  #progressButton {
    display: none;
  }

  .pane-inner {
    padding: 7px 12px 12px;
  }

  .form-card,
  .finish-card,
  .entry-card {
    padding: 12px;
    border-radius: 17px;
  }

  .form-intro {
    padding: 7px 10px;
    border-radius: 14px;
  }

  .form-intro h1 {
    font-size: clamp(1.16rem, 5.8vw, 1.56rem);
  }

  .form-intro .mini-label {
    font-size: 0.6rem;
  }

  .tab-row {
    gap: 6px;
    margin: 8px -2px 10px;
    padding-bottom: 7px;
    scroll-padding-inline: 8px;
  }

  .preview-switch,
  .preview-actions,
  .rich-text-toolbar,
  .tab-row {
    -webkit-overflow-scrolling: touch;
  }

  .tab-row .tab-button {
    flex: 0 0 auto;
    min-height: 35px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
  }

  input,
  textarea,
  select,
  .rich-text-editor {
    font-size: 16px;
  }

  .date-parts {
    grid-template-columns: 1fr;
  }

  .inline-add {
    flex-direction: column;
  }

  .inline-add button,
  .section-actions button,
  .entry-card-actions button,
  .welcome-actions button {
    min-height: 42px;
  }

  .section-actions button,
  .entry-card-actions button,
  .preview-actions button {
    white-space: normal;
  }

  .section-actions,
  .entry-card-header,
  .entry-card-actions,
  .textarea-tools {
    justify-content: flex-start;
  }

  .entry-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rich-text-toolbar {
    gap: 5px;
    padding: 6px;
  }

  .rich-text-toolbar button {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 0.74rem;
  }

  .template-library-inline {
    max-height: none;
    padding-right: 0;
  }

  .template-button {
    flex-basis: 100%;
    min-height: 58px;
  }

  .swatch {
    width: 44px;
    height: 44px;
  }

  .modal-layer {
    padding: 10px;
    place-items: start center;
    overflow: auto;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 20px;
    border-radius: 22px;
  }

  .modal-card h2 {
    padding-right: 46px;
    font-size: clamp(1.7rem, 10vw, 2.35rem);
  }

  .modal-card p {
    line-height: 1.55;
  }

  .mobile-tools-panel {
    display: block;
    margin: 18px 0;
    padding: 15px;
    border: 1px solid rgba(26, 86, 219, 0.1);
    border-radius: 18px;
    background: rgba(237, 245, 255, 0.58);
  }

  .mobile-tools-panel h3 {
    margin: 0 0 6px;
    font-family: "Outfit", sans-serif;
  }

  .mobile-theme-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 12px 0 14px;
  }

  .mobile-tools-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .mobile-tools-actions button {
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }

  .mobile-tools-actions .danger-option {
    border-color: rgba(185, 28, 28, 0.18);
    color: #991b1b;
  }

  .mobile-tools-sheet {
    align-self: end;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    max-height: min(82dvh, 680px);
    overflow: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-tools-groups {
    display: grid;
    gap: 14px;
    margin-top: 16px;
  }

  .mobile-tool-group {
    display: grid;
    gap: 8px;
  }

  .mobile-tool-group h3 {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
  }

  .mobile-tools-grid button {
    min-height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--marine);
    font-weight: 850;
  }

	  .mobile-tools-grid .danger-tool {
	    border-color: rgba(185, 28, 28, 0.16);
	    color: #991b1b;
	  }

	  .feedback-tool-group {
	    gap: 9px;
	    padding: 13px;
	  }

	  .feedback-tool-group .feedback-link-panel {
	    width: 100%;
	    min-height: 42px;
	  }

	  .feedback-callout {
	    align-items: stretch;
	    flex-direction: column;
	  }

  .modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    margin: -6px -6px 4px 8px;
    width: 42px;
    height: 42px;
  }

  .checker-score {
    padding: 16px;
  }

  .checker-score span {
    font-size: 2rem;
  }

  .ats-card {
    grid-template-columns: 1fr;
  }

  .ats-card .ghost-button {
    width: 100%;
    min-height: 40px;
  }

  .checker-grid,
  .export-options,
  .progress-list {
    gap: 10px;
  }

  .export-options button {
    min-height: 64px;
    padding: 14px;
    border-radius: 16px;
  }

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

  .section-visibility,
  .resume-library {
    padding: 14px;
    border-radius: 18px;
  }

  .preview-pane {
    inset: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .preview-toolbar {
    position: sticky;
    top: 0;
    z-index: 3;
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px;
    background: rgba(248, 251, 255, 0.96);
  }

  .preview-scroll {
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .preview-pane::before {
    display: none;
    content: none;
  }

  .preview-toolbar-row,
  .preview-toolbar-top,
  .preview-toolbar-main {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .preview-toolbar-top .mini-label {
    display: none;
  }

  .preview-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    width: 100%;
    gap: 6px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .preview-switch button {
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 8px 9px;
    border-radius: 14px;
    white-space: normal;
  }

  .preview-close-mobile {
    display: inline-grid;
    place-items: center;
    min-height: 40px;
    padding: 0;
    border-color: rgba(15, 23, 42, 0.14);
    background: #0b1f3a;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
  }

  .preview-toolbar-main h2 {
    font-size: 1.15rem;
  }

  .preview-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 7px;
    overflow: visible;
  }

  .preview-actions button {
    width: 100%;
    min-height: 40px;
    border-radius: 14px;
    text-align: center;
  }

  .document-preview {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .document-preview a,
  .document-preview .meta-line a,
  .letter-contact a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-panel {
    min-width: 0;
  }

  .resume-preview,
  .letter-preview {
    min-height: auto;
    padding: 26px 18px;
  }

  .document-preview.template-classic .resume-preview,
  .document-preview.template-academic .resume-preview,
  .document-preview.template-legal .resume-preview,
  .document-preview.template-minimal .resume-preview {
    padding-left: 18px;
    padding-right: 18px;
  }

  .document-preview.template-professional .resume-layout,
  .document-preview.template-tech .tech-top-zone,
  .document-preview.template-executive .skill-chip-preview,
  .document-preview.template-classic .skill-chip-preview,
  .document-preview.template-bold .resume-layout {
    grid-template-columns: 1fr;
  }
}

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

  @page:first {
    margin: 7mm 0 8mm;
  }

  * {
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  html,
  body {
    width: 210mm !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    overflow: visible !important;
  }

  body:not(.export-document) > *:not(.editor-page) {
    display: none !important;
  }

  .editor-topbar,
  .form-pane,
  .preview-toolbar,
  .ats-card,
  .preview-empty-guide,
  .modal-layer,
  .modal-backdrop,
  button,
  .ghost-button,
  .primary-button,
  .preview-close-mobile {
    display: none !important;
  }

  .editor-page,
  .editor-shell,
  .preview-pane,
  .preview-pane.hidden-mobile,
  .preview-scroll,
  .document-preview,
  .resume-preview {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    inset: auto !important;
    width: 210mm !important;
    max-width: 210mm !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: white !important;
    border: 0 !important;
  }

  .preview-pane::before,
  .letter-preview {
    display: none !important;
  }

  body.export-letter .resume-preview {
    display: none !important;
  }

  body.export-letter .letter-preview {
    display: block !important;
    width: 210mm !important;
    min-height: auto !important;
    padding: 16mm 18mm !important;
    background: white !important;
    color: #111827 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10.8pt !important;
    line-height: 1.5 !important;
  }

  .resume-preview.hidden {
    display: block !important;
  }

  .resume-preview {
    padding: 8mm 13mm 10mm !important;
    color: #111827 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10.6pt !important;
    line-height: 1.34 !important;
  }

  .document-preview.template-classic .resume-preview,
  .document-preview.template-academic .resume-preview,
  .document-preview.template-legal .resume-preview {
    font-family: Georgia, "Times New Roman", serif !important;
  }

  .resume-header h1 {
    font-size: 22pt !important;
    line-height: 1.08 !important;
  }

  .resume-header p {
    font-size: 11pt !important;
    line-height: 1.3 !important;
  }

  .meta-line,
  .preview-item .item-meta,
  .skill-chip-preview span {
    font-size: 9.8pt !important;
    line-height: 1.35 !important;
  }

  .preview-section h3 {
    font-size: 11.8pt !important;
    line-height: 1.25 !important;
  }

  .preview-item p,
  .preview-section .body-copy,
  .rich-text-block {
    font-size: 10.6pt !important;
    line-height: 1.32 !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
  }

  .template-bold .resume-header {
    margin: -10mm -13mm 18px !important;
    padding: 10mm 13mm 17px !important;
  }

  .document-preview.template-executive .resume-header {
    margin: -8mm -13mm 0 !important;
    padding: 8mm 13mm 16px !important;
  }

  .document-preview.template-executive .executive-snapshot {
    margin: 0 -13mm !important;
    padding: 8px 13mm !important;
  }

  .document-preview.template-executive .executive-body {
    padding: 18px 0 0 !important;
  }

  .document-preview.template-minimal .resume-preview {
    padding-left: 18mm !important;
    padding-right: 18mm !important;
  }

  .resume-header,
  .executive-snapshot {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .preview-section {
    margin-top: 10px !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .preview-section h3 {
    break-after: avoid;
    page-break-after: avoid;
    margin-bottom: 6px !important;
  }

  .preview-item {
    margin-top: 6px !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .preview-item strong,
  .preview-item .item-meta {
    break-after: avoid;
    page-break-after: avoid;
  }

  .rich-text-block p {
    margin: 0 0 4px !important;
    font: inherit !important;
    line-height: inherit !important;
  }

  .rich-text-block ul,
  .rich-text-block ol {
    margin: 0 0 5px 16px !important;
    padding: 0 !important;
    font: inherit !important;
    line-height: inherit !important;
  }

  .rich-text-block li {
    margin: 0 0 1px !important;
    font: inherit !important;
    line-height: inherit !important;
  }

  .resume-header {
    padding-bottom: 12px !important;
    margin-bottom: 0 !important;
  }

  .resume-layout,
  .clinical-layout,
  .technical-layout,
  .creative-feature-grid {
    gap: 0 18px !important;
  }

  .document-preview.template-modern .preview-section {
    margin-bottom: 11px !important;
  }

  .document-preview.template-modern .preview-section h3 {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  .document-preview.template-modern .preview-section h3 + * {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  .document-preview.template-modern #previewCertificationsSection,
  .document-preview.template-modern #previewCustomSectionWrap {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  .document-preview.template-minimal .preview-section {
    margin-bottom: 9px !important;
  }

  .document-preview.template-minimal .preview-section h3 {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  .document-preview.template-minimal .preview-section h3 + * {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  .document-preview.template-minimal #previewCertificationsSection,
  .document-preview.template-minimal #previewCustomSectionWrap {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  .document-preview.template-professional .resume-header {
    padding: 10mm 14mm 10px !important;
  }

  .document-preview.template-professional .resume-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(32mm, 0.42fr) !important;
    gap: 0 !important;
    padding: 0 14mm 8px !important;
  }

  .document-preview.template-professional .resume-main-column {
    padding-top: 13px !important;
    padding-right: 14px !important;
    border-right: 0 !important;
    box-shadow: inset -1px 0 0 rgba(226, 230, 234, 0.65) !important;
  }

  .document-preview.template-professional .resume-side-column {
    padding-top: 13px !important;
    padding-left: 11px !important;
  }

  .document-preview.template-professional .resume-preview > #previewSkillsSection {
    padding: 0 14mm 12mm !important;
  }

  .document-preview.template-professional .preview-section h3 {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  .document-preview.template-professional .preview-section h3 + * {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }
}
