:root {
  color-scheme: light;
  --ink: #182522;
  --muted: #747d77;
  --line: #e3e7e0;
  --canvas: #f4f5f0;
  --paper: #fff;
  --green: #c6f36a;
  --green-dark: #223f32;
  --blue: #b8d5ff;
  --coral: #f1a794;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); }
button, input, textarea { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.topbar { height: 76px; display: grid; grid-template-columns: 248px minmax(220px, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); background: #fbfcf9; padding: 0 28px 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); font: 800 23px/1 "Manrope", sans-serif; text-decoration: none; letter-spacing: 0; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px 9px 9px 2px; background: var(--green); font: 800 21px/1 "Manrope", sans-serif; }
.brand-period { color: #72943d; }
.document-label { display: grid; gap: 3px; padding-left: 29px; border-left: 1px solid var(--line); }
.eyebrow { color: var(--muted); font: 700 9px/1.3 "DM Sans", sans-serif; letter-spacing: .12em; }
.document-label strong { font-size: 13px; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.save-status { color: var(--muted); font-size: 11px; }
.save-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: #71a94e; }
.button { min-height: 39px; padding: 0 15px; border: 0; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, .nav-item:focus-visible, .template-option:focus-visible { outline: 2px solid #527c39; outline-offset: 2px; }
.button-primary { background: var(--green); color: #192319; }
.button-primary:hover { background: #b4e45c; }
.button-dark { background: var(--green-dark); color: #fff; }
.button-dark:hover { background: #2e5743; }
.button-quiet { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--green-dark); padding: 0 4px; }
.button-quiet:hover { background: transparent; color: #557442; }
.workspace { display: grid; grid-template-columns: 248px minmax(335px, 1fr) minmax(430px, 47vw); min-height: calc(100vh - 76px); }
.sidebar { position: sticky; top: 0; display: flex; height: calc(100vh - 76px); min-height: 640px; flex-direction: column; padding: 33px 18px 18px; border-right: 1px solid var(--line); background: #fbfcf9; }
.sidebar-heading, .template-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 9px; }
.completion, .template-count { color: #989f99; font-size: 10px; font-variant-numeric: tabular-nums; }
.section-nav { display: grid; gap: 5px; margin-top: 16px; }
.nav-item { display: grid; grid-template-columns: 29px 1fr 16px; align-items: center; height: 43px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; text-align: left; cursor: pointer; color: #686f69; font-size: 12px; }
.nav-item:hover { background: #f1f4ed; }
.nav-item.is-active { background: #eaf3dc; color: #263c2a; font-weight: 700; }
.nav-number { color: #939b94; font-size: 10px; font-variant-numeric: tabular-nums; }
.nav-arrow { opacity: 0; font-size: 13px; }
.nav-item.is-active .nav-arrow { opacity: 1; }
.sidebar-divider { height: 1px; margin: 24px 8px 21px; background: var(--line); }
.template-list { display: grid; max-height: calc(100vh - 370px); gap: 7px; overflow-y: auto; margin-top: 11px; scrollbar-width: thin; }
.template-option { display: grid; grid-template-columns: 42px 1fr 16px; align-items: center; gap: 10px; min-height: 61px; padding: 7px 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; text-align: left; }
.template-option:hover { background: #f5f7f2; }
.template-option.is-selected { border-color: #c8d8ae; background: #f2f7e8; }
.template-thumb { position: relative; display: block; width: 38px; height: 47px; overflow: hidden; background: #fff; border: 1px solid #e1e6df; box-shadow: 0 2px 6px #2130210d; }
.template-thumb i, .template-thumb b { position: absolute; display: block; height: 2px; background: #cbd2cb; }
.template-thumb i:nth-child(1) { top: 12px; left: 5px; width: 22px; }
.template-thumb i:nth-child(2) { top: 19px; left: 5px; width: 27px; }
.template-thumb i:nth-child(3) { top: 25px; left: 5px; width: 20px; }
.template-thumb b { top: 6px; left: 5px; width: 13px; height: 3px; background: #557e4a; }
.thumb-modern::after { content: ""; position: absolute; top: 15px; right: 5px; width: 6px; height: 22px; background: #eaf1e4; }
.thumb-classic b { left: 9px; width: 20px; background: #3e4b58; }
.thumb-classic i { left: 6px !important; width: 26px !important; }
.thumb-editorial b { height: 5px; width: 5px; background: #e99078; }
.thumb-editorial i:nth-child(1) { width: 19px; }
.thumb-corporate::after, .thumb-executive::after, .thumb-compact::after { content: ""; position: absolute; top: 15px; right: 4px; width: 8px; height: 27px; background: #eaf0f6; }
.thumb-corporate b { background: #315a7d; }
.thumb-minimal b { left: 12px; width: 14px; background: #4e5753; }
.thumb-minimal i { left: 7px !important; width: 23px !important; }
.thumb-executive::after { background: #344657; }
.thumb-executive b { background: #b69657; }
.thumb-creative::after, .thumb-impact::after { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: #d9f0e9; }
.thumb-creative b { background: #14847c; }
.thumb-technical b { background: #2866a0; }
.thumb-technical i { background: repeating-linear-gradient(90deg, #b7c9dc 0 3px, transparent 3px 5px); }
.thumb-academic b { left: 10px; width: 18px; background: #714b50; }
.thumb-academic i { left: 7px !important; width: 23px !important; }
.thumb-compact::after { width: 6px; background: #e9eee8; }
.thumb-compact i { height: 1px; }
.thumb-elegant b { left: 9px; width: 18px; height: 2px; background: #9b6470; }
.thumb-elegant i { left: 8px !important; width: 22px !important; }
.thumb-impact::after { background: #dc724e; }
.thumb-impact b { background: #29322f; }
.thumb-ats b { width: 23px; height: 2px; background: #4b4b4b; }
.thumb-ats i { left: 5px !important; width: 27px !important; }
.template-copy { display: grid; gap: 4px; }
.template-copy strong { font-size: 11px; font-weight: 700; }
.template-copy small { color: var(--muted); font-size: 9px; }
.template-check { color: #4d7338; font-size: 12px; opacity: 0; }
.is-selected .template-check { opacity: 1; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 8px 3px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.5; }
.privacy-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #abc68b; }
.editor-panel { min-width: 0; padding: 45px clamp(24px, 4vw, 58px) 50px; background: var(--canvas); }
.editor-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.editor-header h1 { margin: 6px 0 0; font: 700 25px/1.2 "Manrope", sans-serif; letter-spacing: 0; }
.required-note { padding-bottom: 4px; color: var(--muted); font-size: 10px; }
.editor-section { display: none; animation: appear .24s ease both; }
.editor-section.is-visible { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.field { display: grid; align-content: start; gap: 8px; min-width: 0; color: #404a43; font-size: 11px; font-weight: 600; }
.field > span b { color: #719247; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; border: 1px solid #dce2da; border-radius: 4px; outline: 0; background: #fbfcf9; padding: 11px 12px; color: var(--ink); font-size: 12px; font-weight: 400; transition: border-color .15s ease, background .15s ease; }
.field input { height: 41px; }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #9da69d; }
.field input:focus, .field textarea:focus { border-color: #9bb77a; background: #fff; }
.field-hint { color: #89918b; font-size: 9px; font-weight: 400; line-height: 1.45; }
.section-actions { display: flex; justify-content: flex-end; margin-top: 27px; padding-top: 19px; border-top: 1px solid #e1e5df; }
.section-actions-between { justify-content: space-between; }
.section-intro { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -10px 0 16px; }
.section-intro p { max-width: 240px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.entry-list { display: grid; gap: 12px; }
.entry-card { padding: 15px; border: 1px solid #dfe4dc; border-radius: 5px; background: #fbfcf9; }
.entry-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.entry-card-header strong { font-size: 11px; }
.remove-entry { border: 0; background: transparent; color: #858e87; cursor: pointer; font-size: 10px; }
.remove-entry:hover { color: #b14738; }
.entry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.entry-fields .field { gap: 6px; font-size: 10px; }
.entry-fields .field input, .entry-fields .field textarea { height: 36px; padding: 8px 9px; font-size: 11px; }
.entry-fields .field textarea { height: 66px; }
.skills-field { margin-top: 22px; }
.preview-panel { position: sticky; top: 0; display: flex; height: calc(100vh - 76px); min-height: 640px; flex-direction: column; overflow: hidden; border-left: 1px solid var(--line); background: #e9ece6; }
.preview-toolbar { height: 48px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 23px; border-bottom: 1px solid #dce1d9; background: #f1f3ef; }
.preview-label { display: flex; align-items: center; gap: 8px; color: #657068; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.preview-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #85a95d; box-shadow: 0 0 0 3px #85a95d1a; }
.page-count { color: #7d867e; font-size: 10px; }
.page-count span { color: #b1b8b1; }
.paper-stage { flex: 1 1 auto; display: grid; place-items: start center; overflow: auto; padding: 26px 22px 32px; }
.cv-page { position: relative; width: min(100%, 450px); min-height: 636px; overflow: hidden; padding: 39px 39px 32px; background: var(--paper); box-shadow: 0 10px 34px #26332612; color: #26332d; font-family: "DM Sans", sans-serif; }
.cv-accent { position: absolute; inset: 0 auto 0 0; width: 5px; background: #52794a; }
.cv-header { padding-bottom: 17px; border-bottom: 1px solid #e3e8e1; }
.cv-kicker { margin: 0 0 14px; color: #71806f; font-size: 7px; font-weight: 700; letter-spacing: .14em; }
.cv-kicker span:first-child { color: #bac4b8; }
.cv-header h2 { margin: 0; color: #1d2d25; font: 800 27px/1.1 "Manrope", sans-serif; letter-spacing: 0; overflow-wrap: anywhere; }
.cv-title { margin: 6px 0 0; color: #617063; font-size: 11px; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 5px 14px; padding: 12px 0 2px; color: #788179; font-size: 8px; }
.cv-section { margin-top: 21px; }
.cv-section h3 { margin: 0 0 11px; color: #476347; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.cv-section > p { margin: 0; color: #58635b; font-size: 9px; line-height: 1.6; white-space: pre-line; }
.cv-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(90px, .8fr); gap: 23px; }
.cv-entry { margin-bottom: 14px; }
.cv-entry:last-child { margin-bottom: 0; }
.cv-entry-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cv-entry h4 { margin: 0; color: #28372e; font-size: 9px; font-weight: 700; line-height: 1.4; }
.cv-entry time { flex: 0 0 auto; color: #859087; font-size: 7px; }
.cv-entry .cv-organization { margin: 3px 0 0; color: #68766a; font-size: 8px; font-weight: 600; }
.cv-entry .cv-description { margin: 5px 0 0; color: #69736b; font-size: 8px; line-height: 1.55; white-space: pre-line; }
.cv-skills { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cv-skills li { position: relative; padding-left: 9px; color: #536257; font-size: 8px; line-height: 1.4; }
.cv-skills li::before { content: ""; position: absolute; top: 4px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #9bb278; }
.cv-footer { position: absolute; right: 39px; bottom: 19px; left: 39px; display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid #edf0eb; color: #a1aaa1; font-size: 6px; font-weight: 700; letter-spacing: .12em; }
.preview-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 23px; border-top: 1px solid #dce1d9; background: #f1f3ef; color: #818982; font-size: 9px; }
.preview-footer-mark { color: #4e7050; font: 800 14px/1 "Manrope", sans-serif; }

.cv-page[data-template="classic"] { padding: 43px 42px 32px; font-family: Georgia, "Times New Roman", serif; }
.cv-page[data-template="classic"] .cv-accent { width: 0; }
.cv-page[data-template="classic"] .cv-header { text-align: center; border-bottom: 2px solid #45515b; }
.cv-page[data-template="classic"] .cv-header h2 { color: #263441; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 700; }
.cv-page[data-template="classic"] .cv-kicker, .cv-page[data-template="classic"] .cv-section h3 { color: #566573; }
.cv-page[data-template="classic"] .cv-section h3 { border-bottom: 1px solid #d5dbe0; padding-bottom: 6px; }
.cv-page[data-template="classic"] .cv-columns { grid-template-columns: 1fr; gap: 0; }
.cv-page[data-template="classic"] .cv-skills { grid-template-columns: repeat(2, 1fr); }
.cv-page[data-template="classic"] .cv-skills li::before { border-radius: 0; background: #65717d; }
.cv-page[data-template="editorial"] { padding: 34px 36px 32px; }
.cv-page[data-template="editorial"] .cv-accent { width: 100%; height: 8px; background: #e99880; }
.cv-page[data-template="editorial"] .cv-kicker, .cv-page[data-template="editorial"] .cv-section h3 { color: #bb6752; }
.cv-page[data-template="editorial"] .cv-header h2 { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.cv-page[data-template="editorial"] .cv-columns { grid-template-columns: 1fr; gap: 0; }
.cv-page[data-template="editorial"] .cv-side-column { padding-top: 1px; }
.cv-page[data-template="editorial"] .cv-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-page[data-template="editorial"] .cv-skills li { padding: 4px 7px; border: 1px solid #f0d5cc; border-radius: 3px; color: #835c50; }
.cv-page[data-template="editorial"] .cv-skills li::before { display: none; }

.cv-page[data-template="corporate"] { --cv-accent: #315a7d; }
.cv-page[data-template="corporate"] .cv-accent { background: #315a7d; }
.cv-page[data-template="corporate"] .cv-header { border-bottom: 2px solid #315a7d; }
.cv-page[data-template="corporate"] .cv-header h2 { color: #20364b; }
.cv-page[data-template="corporate"] .cv-section h3 { color: #315a7d; }
.cv-page[data-template="corporate"] .cv-side-column { padding: 12px 10px; background: #eef3f7; }
.cv-page[data-template="corporate"] .cv-columns { grid-template-columns: minmax(0, 1.55fr) minmax(100px, .85fr); gap: 14px; }
.cv-page[data-template="corporate"] .cv-contact { display: grid; gap: 5px; padding: 10px 12px; border-left: 3px solid #315a7d; background: #f4f7fa; }

.cv-page[data-template="minimal"] .cv-accent { width: 0; }
.cv-page[data-template="minimal"] .cv-header { text-align: center; border: 0; }
.cv-page[data-template="minimal"] .cv-header h2 { color: #272b2b; font-weight: 600; }
.cv-page[data-template="minimal"] .cv-contact { justify-content: center; border-block: 1px solid #e7e7e4; }
.cv-page[data-template="minimal"] .cv-section h3 { color: #444b48; border-bottom: 1px solid #d9dcd8; padding-bottom: 6px; }
.cv-page[data-template="minimal"] .cv-columns { grid-template-columns: 1fr; gap: 0; }
.cv-page[data-template="minimal"] .cv-header h2 { font-size: 32px; }
.cv-page[data-template="minimal"] .cv-summary-section { max-width: 310px; margin-inline: auto; text-align: center; }
.cv-page[data-template="minimal"] .cv-entry { display: grid; grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px solid #eff0ed; }
.cv-page[data-template="minimal"] .cv-footer { color: #777; }

.cv-page[data-template="executive"] { --cv-accent: #9b7b42; }
.cv-page[data-template="executive"] .cv-accent { width: 3px; background: #9b7b42; }
.cv-page[data-template="executive"] .cv-header { padding-bottom: 20px; border-bottom: 2px solid #263642; }
.cv-page[data-template="executive"] .cv-header h2 { color: #20313d; font-family: Georgia, "Times New Roman", serif; font-size: 29px; }
.cv-page[data-template="executive"] .cv-kicker, .cv-page[data-template="executive"] .cv-section h3 { color: #8a6b35; }
.cv-page[data-template="executive"] .cv-columns { grid-template-columns: minmax(0, 1.45fr) minmax(105px, .85fr); gap: 15px; }
.cv-page[data-template="executive"] .cv-side-column { padding: 12px 10px; background: #263642; }
.cv-page[data-template="executive"] .cv-side-column h3 { color: #e0c48a; }
.cv-page[data-template="executive"] .cv-side-column li { color: #f1f3f4; }
.cv-page[data-template="executive"] .cv-side-column li::before { background: #d1ad63; }
.cv-page[data-template="executive"] .cv-summary-section { padding: 12px 14px; border-left: 3px solid #9b7b42; background: #f5f2ea; }

.cv-page[data-template="creative"] .cv-accent { width: 100%; height: 6px; background: #14847c; }
.cv-page[data-template="creative"] .cv-header h2 { color: #155c58; }
.cv-page[data-template="creative"] .cv-kicker, .cv-page[data-template="creative"] .cv-section h3 { color: #14847c; }
.cv-page[data-template="creative"] .cv-header { margin: 0 -12px; padding: 15px 12px 17px; border: 0; background: #e8f4f0; }
.cv-page[data-template="creative"] .cv-header h2 { font-size: 30px; }
.cv-page[data-template="creative"] .cv-title { color: #34736d; }
.cv-page[data-template="creative"] .cv-columns { grid-template-columns: minmax(0, 1.5fr) minmax(105px, .9fr); gap: 15px; }
.cv-page[data-template="creative"] .cv-side-column { padding: 10px; background: #f0f7f4; }
.cv-page[data-template="creative"] .cv-contact { padding: 10px 0 2px; color: #34736d; }
.cv-page[data-template="creative"] .cv-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-page[data-template="creative"] .cv-skills li { padding: 4px 6px; border-radius: 3px; background: #e8f4f0; color: #286760; }
.cv-page[data-template="creative"] .cv-skills li::before { display: none; }

.cv-page[data-template="technical"] .cv-accent { background: #2866a0; }
.cv-page[data-template="technical"] .cv-kicker, .cv-page[data-template="technical"] .cv-entry time { font-family: Consolas, monospace; }
.cv-page[data-template="technical"] .cv-kicker, .cv-page[data-template="technical"] .cv-section h3 { color: #2866a0; }
.cv-page[data-template="technical"] .cv-header h2 { color: #183c5d; }
.cv-page[data-template="technical"] .cv-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, .7fr); align-items: end; gap: 5px 12px; padding-bottom: 12px; border-bottom: 2px solid #2866a0; }
.cv-page[data-template="technical"] .cv-kicker { grid-column: 1 / -1; }
.cv-page[data-template="technical"] .cv-header h2 { grid-column: 1; grid-row: 2; font-size: 24px; }
.cv-page[data-template="technical"] .cv-title { grid-column: 2; grid-row: 2; text-align: right; }
.cv-page[data-template="technical"] .cv-contact { padding: 9px 10px; background: #edf4fa; color: #315d82; font-family: Consolas, monospace; font-size: 7px; }
.cv-page[data-template="technical"] .cv-columns { grid-template-columns: 1fr; gap: 0; }
.cv-page[data-template="technical"] .cv-section h3 { padding-bottom: 5px; border-bottom: 1px solid #d9e5ef; }
.cv-page[data-template="technical"] .cv-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-page[data-template="technical"] .cv-skills li { padding: 4px 6px; background: #edf4fa; color: #315d82; font-family: Consolas, monospace; }
.cv-page[data-template="technical"] .cv-skills li::before { display: none; }

.cv-page[data-template="academic"] { font-family: Georgia, "Times New Roman", serif; }
.cv-page[data-template="academic"] .cv-accent { width: 2px; background: #714b50; }
.cv-page[data-template="academic"] .cv-header { text-align: center; border-bottom: 1px solid #a99496; }
.cv-page[data-template="academic"] .cv-header h2 { color: #3f3033; font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.cv-page[data-template="academic"] .cv-kicker, .cv-page[data-template="academic"] .cv-section h3 { color: #714b50; }
.cv-page[data-template="academic"] .cv-contact { justify-content: center; }
.cv-page[data-template="academic"] .cv-columns { grid-template-columns: minmax(0, 1.35fr) minmax(95px, .7fr); gap: 18px; }
.cv-page[data-template="academic"] .cv-side-column { padding: 10px; border-top: 3px solid #714b50; background: #f6f1f1; }
.cv-page[data-template="academic"] .cv-section h3 { border-bottom: 1px solid #e2dadd; padding-bottom: 5px; }
.cv-page[data-template="academic"] .cv-header h2 { font-size: 28px; }
.cv-page[data-template="academic"] .cv-summary-section { padding: 0 18px; text-align: center; font-style: italic; }
.cv-page[data-template="academic"] .cv-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.cv-page[data-template="academic"] .cv-entry .cv-organization, .cv-page[data-template="academic"] .cv-entry .cv-description { grid-column: 1 / -1; }

.cv-page[data-template="compact"] { padding: 30px 34px 28px; }
.cv-page[data-template="compact"] .cv-header { padding-bottom: 11px; }
.cv-page[data-template="compact"] .cv-kicker { margin-bottom: 8px; }
.cv-page[data-template="compact"] .cv-header h2 { font-size: 24px; }
.cv-page[data-template="compact"] .cv-contact { padding-top: 8px; }
.cv-page[data-template="compact"] .cv-section { margin-top: 13px; }
.cv-page[data-template="compact"] .cv-section h3 { margin-bottom: 7px; }
.cv-page[data-template="compact"] .cv-entry { margin-bottom: 9px; }
.cv-page[data-template="compact"] .cv-entry .cv-description { margin-top: 3px; line-height: 1.4; }
.cv-page[data-template="compact"] .cv-columns { grid-template-columns: minmax(0, 1.5fr) minmax(90px, .75fr); gap: 12px; }
.cv-page[data-template="compact"] .cv-side-column { padding: 9px; background: #eff2ed; }
.cv-page[data-template="compact"] .cv-skills { grid-template-columns: 1fr; gap: 5px; }
.cv-page[data-template="compact"] .cv-footer { right: 34px; left: 34px; }

.cv-page[data-template="elegant"] { font-family: Georgia, "Times New Roman", serif; }
.cv-page[data-template="elegant"] .cv-accent { width: 2px; background: #9b6470; }
.cv-page[data-template="elegant"] .cv-header h2 { color: #523943; font: 500 30px/1.1 Georgia, "Times New Roman", serif; }
.cv-page[data-template="elegant"] .cv-kicker, .cv-page[data-template="elegant"] .cv-section h3 { color: #95616c; }
.cv-page[data-template="elegant"] .cv-header { text-align: center; padding: 8px 0 18px; }
.cv-page[data-template="elegant"] .cv-contact { justify-content: center; }
.cv-page[data-template="elegant"] .cv-summary-section { max-width: 305px; margin-inline: auto; text-align: center; font-style: italic; }
.cv-page[data-template="elegant"] .cv-section h3 { font-family: "DM Sans", sans-serif; border-bottom: 1px solid #eadde0; padding-bottom: 5px; }
.cv-page[data-template="elegant"] .cv-columns { grid-template-columns: minmax(0, 1.7fr) minmax(80px, .55fr); gap: 17px; }
.cv-page[data-template="elegant"] .cv-side-column { padding: 2px 0 0 11px; border-left: 1px solid #eadde0; }
.cv-page[data-template="elegant"] .cv-skills { gap: 9px; }

.cv-page[data-template="impact"] .cv-accent { width: 100%; height: 9px; background: #dc724e; }
.cv-page[data-template="impact"] .cv-header { margin: 0 -12px; padding: 16px 12px 19px; border-bottom: 0; background: #262b29; }
.cv-page[data-template="impact"] .cv-header h2 { color: #fff; font: 800 31px/1 "Manrope", sans-serif; }
.cv-page[data-template="impact"] .cv-title, .cv-page[data-template="impact"] .cv-kicker { color: #f2c4a8; }
.cv-page[data-template="impact"] .cv-kicker, .cv-page[data-template="impact"] .cv-section h3 { color: #bf5d3d; }
.cv-page[data-template="impact"] .cv-header .cv-kicker { color: #f2c4a8; }
.cv-page[data-template="impact"] .cv-contact { padding: 9px 10px; background: #f8eee9; color: #754635; }
.cv-page[data-template="impact"] .cv-columns { grid-template-columns: 1fr; gap: 0; }
.cv-page[data-template="impact"] .cv-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-page[data-template="impact"] .cv-skills li { padding: 4px 7px; background: #f9eee8; color: #8a4b35; }
.cv-page[data-template="impact"] .cv-skills li::before { display: none; }

.cv-page[data-template="ats"] { font-family: Arial, sans-serif; color: #222; }
.cv-page[data-template="ats"] .cv-accent { width: 0; }
.cv-page[data-template="ats"] .cv-header { border-bottom: 1px solid #777; }
.cv-page[data-template="ats"] .cv-header h2 { color: #111; font: 700 24px/1.15 Arial, sans-serif; }
.cv-page[data-template="ats"] .cv-kicker, .cv-page[data-template="ats"] .cv-section h3 { color: #333; }
.cv-page[data-template="ats"] .cv-section h3 { border-bottom: 1px solid #aaa; padding-bottom: 4px; }
.cv-page[data-template="ats"] .cv-columns { grid-template-columns: 1fr; gap: 0; }
.cv-page[data-template="ats"] .cv-skills { display: flex; flex-wrap: wrap; gap: 4px 15px; }
.cv-page[data-template="ats"] .cv-skills li { padding-left: 0; color: #333; }
.cv-page[data-template="ats"] .cv-skills li::before { display: none; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 210px minmax(320px, 1fr); }
  .sidebar { grid-row: span 2; }
  .preview-panel { position: relative; grid-column: 2; height: 790px; min-height: 0; border-top: 1px solid var(--line); }
  .editor-panel { padding-inline: clamp(22px, 5vw, 55px); }
}
@media (max-width: 700px) {
  .topbar { height: 66px; grid-template-columns: 1fr auto; padding: 0 15px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 29px; height: 29px; }
  .document-label { display: none; }
  .top-actions { gap: 9px; }
  .save-status { max-width: 83px; font-size: 9px; line-height: 1.25; }
  .save-status::before { margin-right: 5px; }
  .button-primary { min-height: 36px; padding-inline: 11px; font-size: 10px; }
  .workspace { display: flex; flex-direction: column; min-height: calc(100vh - 66px); }
  .sidebar { position: static; display: block; height: auto; min-height: 0; padding: 13px 15px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-heading, .sidebar-divider, .sidebar-footer { display: none; }
  .template-heading { display: flex; padding: 0 3px; margin: 0 0 6px; }
  .template-count { display: none; }
  .template-list { display: flex; max-height: none; gap: 6px; overflow-x: auto; overflow-y: hidden; margin: 0 0 2px; padding: 0 0 3px; }
  .template-option { display: grid; grid-template-columns: 1fr 12px; flex: 0 0 112px; min-height: 39px; gap: 5px; padding: 4px 7px; }
  .template-thumb { display: none; }
  .template-copy { gap: 2px; }
  .template-copy strong { font-size: 10px; }
  .template-copy small { font-size: 8px; }
  .section-nav { display: flex; gap: 5px; margin: 0; }
  .nav-item { flex: 1; grid-template-columns: 22px 1fr; height: 38px; gap: 4px; padding: 0 7px; font-size: 10px; }
  .nav-number { font-size: 9px; }
  .nav-arrow { display: none; }
  .editor-panel { padding: 27px 19px 35px; }
  .editor-header { margin-bottom: 24px; }
  .editor-header h1 { font-size: 23px; }
  .preview-panel { position: static; order: 2; height: 745px; min-height: 0; border-left: 0; }
  .preview-toolbar { padding-inline: 17px; }
  .paper-stage { padding: 20px 14px 27px; }
  .cv-page { width: min(100%, 420px); min-height: 594px; padding: 31px 28px 30px; }
  .cv-header h2 { font-size: 23px; }
  .cv-page[data-template="classic"] { padding-inline: 29px; }
  .cv-page[data-template="editorial"] { padding-inline: 28px; }
  .cv-footer { right: 28px; left: 28px; }
  .preview-footer { padding-inline: 17px; }
}
@media (max-width: 410px) {
  .save-status { max-width: 68px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .entry-fields { grid-template-columns: 1fr; }
  .cv-columns { grid-template-columns: minmax(0, 1.5fr) minmax(75px, .8fr); gap: 13px; }
}
@media screen {
  :root {
    --ink: #182522;
    --muted: #69766f;
    --line: #dce3dc;
    --canvas: #f5f7f3;
    --green: #c8ee75;
    --green-dark: #20392f;
  }
  body { background: #eef1ed; }
  .topbar { position: sticky; z-index: 10; top: 0; height: 78px; grid-template-columns: 240px minmax(220px, 1fr) auto; padding: 0 30px 0 24px; background: #fff; box-shadow: 0 2px 14px #20332908; }
  .brand { gap: 11px; font-size: 25px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px 10px 10px 3px; font-size: 23px; }
  .document-label { gap: 4px; padding-left: 25px; }
  .document-label strong { font-size: 14px; }
  .top-actions { gap: 21px; }
  .save-status { color: #55645b; font-size: 11px; }
  .save-status::before { width: 7px; height: 7px; background: #83ac4a; }
  .button { min-height: 43px; padding-inline: 17px; border-radius: 6px; font-size: 12px; }
  .button-primary { background: #c8ee75; box-shadow: 0 2px 5px #48672b18; }
  .button-primary:hover { background: #b9e35e; }
  .button-dark { background: #20392f; }
  .button-dark:hover { background: #2c5141; }
  .workspace { grid-template-columns: 240px minmax(380px, .96fr) minmax(500px, 1.07fr); min-height: calc(100vh - 78px); }
  .sidebar { z-index: 2; height: calc(100vh - 78px); min-height: 620px; padding: 28px 16px 16px; border: 0; background: #1d3029; color: #f4f7f2; }
  .sidebar-heading, .template-heading { padding-inline: 9px; }
  .sidebar .eyebrow { color: #a8b9ae; font-size: 9px; }
  .completion, .template-count { color: #a8b9ae; }
  .section-nav { gap: 7px; margin-top: 17px; }
  .nav-item { height: 46px; grid-template-columns: 30px 1fr 16px; border-radius: 6px; color: #d0d9d2; font-size: 12px; }
  .nav-item:hover { background: #ffffff0b; }
  .nav-item.is-active { background: #c8ee75; color: #1b3025; }
  .nav-number { color: #a5b5aa; }
  .nav-item.is-active .nav-number { color: #58763a; }
  .sidebar-divider { margin: 21px 8px 18px; background: #ffffff20; }
  .template-list { max-height: calc(100vh - 345px); gap: 5px; margin-top: 10px; padding-right: 4px; scrollbar-color: #64796d transparent; }
  .template-option { min-height: 59px; grid-template-columns: 41px 1fr 15px; gap: 10px; padding: 6px 8px; border-radius: 6px; color: #e9efeb; }
  .template-option:hover { background: #ffffff0b; }
  .template-option.is-selected { border-color: #c8ee75; background: #ffffff12; box-shadow: inset 3px 0 #c8ee75; }
  .template-thumb { border-color: #ffffff30; box-shadow: 0 2px 7px #101b1626; }
  .template-copy { gap: 4px; }
  .template-copy strong { font-size: 11px; }
  .template-copy small { color: #aebbb2; font-size: 9px; }
  .template-check { color: #c8ee75; }
  .sidebar-footer { border-color: #ffffff20; color: #b6c2b9; font-size: 9px; }
  .privacy-dot { background: #c8ee75; }
  .editor-panel { padding: 48px clamp(30px, 4vw, 58px) 55px; background: #f7f8f5; }
  .editor-header { margin-bottom: 31px; }
  .editor-header .eyebrow { color: #6d7c71; font-size: 9px; }
  .editor-header h1 { margin-top: 7px; color: #1a2922; font-size: 29px; }
  .required-note { color: #718078; font-size: 10px; }
  .form-grid { gap: 20px 16px; }
  .field { gap: 8px; color: #35453c; font-size: 11px; }
  .field > span b { color: #729744; }
  .field input, .field textarea { border-color: #d4ddd4; border-radius: 6px; background: #fff; padding: 12px 13px; font-size: 12px; }
  .field input { height: 45px; }
  .field textarea { min-height: 100px; }
  .field input:focus, .field textarea:focus { border-color: #8aa962; box-shadow: 0 0 0 3px #b8d18d33; }
  .field-hint { color: #77847b; font-size: 10px; }
  .section-actions { margin-top: 30px; padding-top: 20px; border-color: #dfe5de; }
  .section-intro { margin: -8px 0 18px; }
  .section-intro p { color: #69776e; font-size: 12px; }
  .entry-list { gap: 14px; }
  .entry-card { padding: 16px; border-color: #dce4dc; border-radius: 7px; background: #fff; box-shadow: 0 3px 12px #21332908; }
  .entry-card-header { margin-bottom: 14px; }
  .entry-card-header strong { color: #273a30; font-size: 12px; }
  .remove-entry { border-radius: 4px; padding: 5px 7px; font-size: 10px; }
  .remove-entry:hover { background: #fbefed; }
  .entry-fields { gap: 13px 11px; }
  .entry-fields .field { color: #536158; font-size: 10px; }
  .entry-fields .field input, .entry-fields .field textarea { height: 39px; border-radius: 5px; padding: 9px 10px; font-size: 11px; }
  .entry-fields .field textarea { height: 74px; }
  .preview-panel { height: calc(100vh - 78px); min-height: 620px; border-left-color: #d5ddd6; background: #e6ebe6; }
  .preview-toolbar { height: 52px; padding-inline: 23px; border-color: #d6ded7; background: #f7f8f6; }
  .preview-label { color: #40534a; font-size: 9px; }
  .preview-live-dot { background: #6f9d4e; }
  .page-count { color: #64736a; font-size: 10px; }
  .paper-stage { padding: 28px 25px 34px; background-color: #e8ece8; background-image: radial-gradient(#bac4bb 0.7px, transparent 0.7px); background-size: 16px 16px; }
  .cv-page { width: min(100%, 480px); min-height: 679px; padding: 43px 43px 36px; box-shadow: 0 16px 42px #26372d20, 0 2px 5px #26372d12; }
  .cv-header { padding-bottom: 19px; }
  .cv-kicker { margin-bottom: 15px; font-size: 8px; }
  .cv-header h2 { font-size: 29px; }
  .cv-title { font-size: 12px; }
  .cv-contact { gap: 6px 15px; padding-top: 13px; font-size: 9px; }
  .cv-section { margin-top: 23px; }
  .cv-section h3 { margin-bottom: 12px; font-size: 9px; }
  .cv-section > p { font-size: 10px; }
  .cv-columns { gap: 25px; }
  .cv-entry { margin-bottom: 15px; }
  .cv-entry h4 { font-size: 10px; }
  .cv-entry time { font-size: 8px; }
  .cv-entry .cv-organization { font-size: 9px; }
  .cv-entry .cv-description { font-size: 9px; }
  .cv-skills { gap: 8px; }
  .cv-skills li { font-size: 9px; }
  .cv-footer { right: 43px; left: 43px; font-size: 7px; }
  .preview-footer { padding: 13px 23px; border-color: #d6ded7; background: #f7f8f6; color: #64736a; }

  @media (max-width: 1120px) {
    .workspace { grid-template-columns: 220px minmax(0, 1fr); }
    .sidebar { grid-row: span 2; }
    .preview-panel { grid-column: 2; height: 790px; }
  }
  @media (max-width: 700px) {
    .topbar { height: 68px; grid-template-columns: 1fr auto; padding-inline: 16px; }
    .brand { font-size: 22px; }
    .brand-mark { width: 31px; height: 31px; font-size: 21px; }
    .top-actions { gap: 9px; }
    .save-status { max-width: 86px; font-size: 9px; }
    .button { min-height: 38px; padding-inline: 12px; font-size: 10px; }
    .workspace { display: flex; flex-direction: column; min-height: calc(100vh - 68px); }
    .sidebar { display: block; height: auto; min-height: 0; padding: 11px 14px 10px; }
    .sidebar-heading, .sidebar-divider, .sidebar-footer { display: none; }
    .template-heading { display: flex; margin-bottom: 6px; padding-inline: 3px; }
    .template-heading .eyebrow { font-size: 8px; }
    .template-count { display: none; }
    .template-list { display: flex; max-height: none; gap: 6px; overflow-x: auto; overflow-y: hidden; margin: 0 0 8px; padding: 0 0 4px; }
    .template-option { display: grid; grid-template-columns: 1fr 12px; flex: 0 0 118px; min-height: 42px; gap: 5px; padding: 5px 7px; }
    .template-thumb { display: none; }
    .template-copy { gap: 2px; }
    .template-copy strong { font-size: 10px; }
    .template-copy small { font-size: 8px; }
    .section-nav { display: flex; gap: 5px; margin: 0; }
    .nav-item { flex: 1; grid-template-columns: 22px 1fr; height: 39px; gap: 4px; padding-inline: 7px; font-size: 10px; }
    .nav-number { font-size: 9px; }
    .nav-arrow { display: none; }
    .editor-panel { padding: 25px 19px 32px; }
    .editor-header { margin-bottom: 23px; }
    .editor-header h1 { font-size: 25px; }
    .form-grid { gap: 17px 12px; }
    .preview-panel { position: static; order: 2; height: 745px; min-height: 0; border-left: 0; }
    .preview-toolbar { padding-inline: 17px; }
    .paper-stage { padding: 20px 14px 27px; }
    .cv-page { width: min(100%, 420px); min-height: 594px; padding: 31px 28px 30px; }
    .cv-header h2 { font-size: 23px; }
    .cv-page[data-template="classic"] { padding-inline: 29px; }
    .cv-page[data-template="editorial"] { padding-inline: 28px; }
    .cv-footer { right: 28px; left: 28px; }
    .preview-footer { padding-inline: 17px; }
  }
  @media (max-width: 410px) {
    .save-status { max-width: 68px; }
    .button { padding-inline: 10px; }
    .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .entry-fields { grid-template-columns: 1fr; }
  }
}
@media print {
  @page { size: A4; margin: 18mm; }
  html, body { width: auto; min-width: 0; min-height: 0; margin: 0; background: #fff; }
  .topbar, .sidebar, .editor-panel, .preview-toolbar, .preview-footer { display: none !important; }
  .app-shell, .workspace { display: block; width: auto; min-height: 0; height: auto; overflow: visible; }
  .preview-panel { position: static; display: block; width: auto; height: auto; min-height: 0; overflow: visible; border: 0; background: #fff; }
  .paper-stage { display: block; width: auto; height: auto; min-height: 0; overflow: visible; padding: 0; }
  .cv-page { display: flex; width: auto; min-height: 261mm; height: auto; flex-direction: column; overflow: visible; padding: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .cv-entry, .cv-section h3 { break-inside: avoid; page-break-inside: avoid; }
  .cv-section h3 { break-after: avoid; page-break-after: avoid; }
  .cv-footer { position: static; right: auto; bottom: auto; left: auto; margin-top: auto; padding-top: 8px; }
}