/* Template picker and document layouts. These are structural design systems,
   not color/font presets. All CV layouts retain a linear, single-column text flow. */
.editor-heading-actions{display:flex;align-items:center;gap:16px;padding-bottom:5px}.selected-template-strip{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e8edf4;border-radius:10px;padding:11px 14px;margin:-5px 0 17px}.selected-template-strip strong{font-size:10px;color:#34445c}.selected-template-strip span{font-size:9px;color:#8792a4}.template-dialog{width:min(1040px,calc(100% - 28px));max-height:min(90vh,900px);border:0;border-radius:17px;padding:24px;box-shadow:0 24px 80px #17243a30}.template-dialog::backdrop{background:#111c2dcc;backdrop-filter:blur(3px)}.template-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.template-dialog-head h2{font-size:21px;margin:7px 0 5px;color:#1e2d43}.template-dialog-head p{font-size:11px;color:#8490a2;margin:0}.dialog-close{border:0;background:#f1f4f8;border-radius:9px;width:34px;height:34px;font-size:22px;color:#65748a;cursor:pointer}.template-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;overflow:auto;max-height:70vh;padding:2px 3px 8px}.template-option{display:block;text-align:left;border:1px solid #e7ebf2;background:#fff;border-radius:11px;padding:10px;cursor:pointer;transition:.18s;min-width:0}.template-option:hover{border-color:#9aafe9;transform:translateY(-2px);box-shadow:0 7px 20px #23395b12}.template-option.selected{border:2px solid #4169d8;padding:9px;background:#f8faff}.template-thumb{height:205px;background:#edf0f4;display:block;padding:10px;overflow:hidden;border-radius:5px}.thumb-sheet{height:100%;width:100%;display:block;background:#fff;padding:15px 12px;box-shadow:0 2px 8px #17243a16;overflow:hidden;color:#263244}.thumb-header{display:flex;gap:6px;align-items:flex-start;padding-bottom:9px;margin-bottom:10px;border-bottom:2px solid var(--template-color)}.thumb-photo{display:none;width:22px;height:25px;background:#d9e0e8;flex:none}.thumb-identity{display:block;min-width:0;flex:1}.thumb-name,.thumb-role,.thumb-contact,.thumb-heading,.thumb-line{display:block;font-style:normal}.thumb-name{height:7px;width:65%;background:var(--template-color);margin-bottom:5px}.thumb-role{height:3px;width:43%;background:#8995a5;margin-bottom:5px}.thumb-contact{height:3px;width:92%;background:#b9c2ce}.thumb-section{display:block;margin:0 0 10px}.thumb-heading{font-size:4px;letter-spacing:.7px;color:var(--template-color);font-weight:800;margin-bottom:5px}.thumb-line{height:3px;background:#cbd2dc;width:78%;margin:3px 0}.thumb-line.wide{width:96%}.thumb-line.short{width:55%}.template-option-info{display:flex;justify-content:space-between;gap:6px;align-items:center;margin-top:10px}.template-option-info strong{display:block;font-size:10px;color:#2c3b52}.template-option-info small{display:block;color:#8c97a8;font-size:8px;margin-top:3px}.template-option-info i{font-style:normal;color:#4169d8;font-weight:800}.template-description{display:block;font-size:8px;color:#8994a5;line-height:1.5;margin-top:7px;min-height:36px}

/* Shared semantic document base */
.cv-document{--cv-pad-x:48px;--cv-pad-y:42px;font-family:var(--cv-font,Inter),Arial,sans-serif;color:#263244;background:#fff;padding:var(--cv-pad-y) var(--cv-pad-x);line-height:1.45;font-size:10pt;min-height:1050px;position:relative;overflow-wrap:anywhere;box-sizing:border-box}.cv-header{display:flex;gap:16px;align-items:center;margin:0 0 20px;padding:0 0 17px;position:relative}.cv-header-main{min-width:0;flex:1}.cv-identity h1{font-size:24pt;line-height:1.1;margin:0 0 5px;color:var(--cv-accent);letter-spacing:-.5px}.cv-target-role{font-size:11pt;font-weight:650;margin:0 0 6px;color:#39475a}.cv-contact{font-size:8.5pt;color:#657286;display:flex;flex-wrap:wrap;gap:3px 7px;align-items:center;overflow-wrap:anywhere}.cv-contact b{font-weight:400;color:#9aa4b2}.cv-profile-photo{width:78px;height:90px;object-fit:cover;border-radius:2px;flex:none}.cv-section{margin:0 0 16px;break-inside:auto}.cv-section h2{font-size:10.5pt;letter-spacing:.55px;text-transform:uppercase;color:var(--cv-accent);margin:0 0 8px;padding:0 0 5px;border-bottom:1px solid #dce2ea;line-height:1.25}.cv-section p{margin:0 0 6px;white-space:normal}.cv-entry{margin:0 0 9px;break-inside:avoid}.cv-entry-top{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.cv-entry-top strong{font-size:9.5pt}.cv-entry-top span{font-size:8.5pt;color:#687589;white-space:nowrap}.cv-entry-sub{font-size:8.8pt;color:#647187;margin:2px 0 4px}.cv-entry ul{margin:4px 0 0 17px;padding:0}.cv-entry li{padding-left:2px;margin:2px 0}.cv-skills-list{line-height:1.8}
.cv-margin-compact{--cv-pad-y:30px;--cv-pad-x:34px;padding:var(--cv-pad-y) var(--cv-pad-x)!important}.cv-margin-normal{--cv-pad-y:42px;--cv-pad-x:48px;padding:var(--cv-pad-y) var(--cv-pad-x)!important}.cv-margin-wide{--cv-pad-y:55px;--cv-pad-x:62px;padding:var(--cv-pad-y) var(--cv-pad-x)!important}
.cv-density-compact{font-size:9pt;line-height:1.35}.cv-density-compact .cv-section{margin-bottom:10px}.cv-density-compact .cv-entry{margin-bottom:6px}.cv-density-spacious{line-height:1.58}.cv-density-spacious .cv-section{margin-bottom:22px}.cv-density-spacious .cv-entry{margin-bottom:13px}

/* 01 — Classic: conventional ATS-first resume */
.cv-template-classic .cv-header{border-bottom:2px solid var(--cv-accent)}
.cv-template-classic .cv-section h2{border-bottom:1px solid #d5dce5}

/* 02 — Minimalist: editorial whitespace, understated identity */
.cv-template-minimalist{padding-top:58px}.cv-template-minimalist .cv-header{border:0;padding-bottom:25px;margin-bottom:24px}.cv-template-minimalist .cv-identity h1{font-size:29pt;font-weight:600;letter-spacing:-1.2px}.cv-template-minimalist .cv-target-role{font-weight:450;color:#687386}.cv-template-minimalist .cv-contact{font-size:8pt}.cv-template-minimalist .cv-section{margin-bottom:22px}.cv-template-minimalist .cv-section h2{border:0;padding:0;margin-bottom:9px;font-size:9pt;letter-spacing:1.5px}.cv-template-minimalist .cv-section h2:after{content:"";display:block;width:34px;border-bottom:2px solid var(--cv-accent);margin-top:6px}

/* 03 — Corporate Executive: solid identity band */
.cv-template-corporate .cv-header{margin:calc(-1 * var(--cv-pad-y)) calc(-1 * var(--cv-pad-x)) 23px;padding:30px var(--cv-pad-x) 25px;background:var(--cv-accent);color:#fff;min-height:135px;box-sizing:border-box}.cv-template-corporate .cv-identity h1,.cv-template-corporate .cv-target-role,.cv-template-corporate .cv-contact,.cv-template-corporate .cv-contact b{color:#fff}.cv-template-corporate .cv-identity h1{font-size:23pt;letter-spacing:.1px}.cv-template-corporate .cv-target-role{font-weight:500;opacity:.94}.cv-template-corporate .cv-contact{opacity:.88}.cv-template-corporate .cv-profile-photo{border:2px solid #ffffffaa}.cv-template-corporate .cv-section h2{font-size:9.5pt;letter-spacing:1px;border-bottom:2px solid var(--cv-accent);padding-bottom:6px}

/* 04 — Elegant: centered serif masthead and fine rules */
.cv-template-elegant{font-family:Georgia,serif;color:#393330}.cv-template-elegant .cv-header{display:block;text-align:center;border-top:1px solid #b9aaa2;border-bottom:1px solid #b9aaa2;padding:20px 0 17px;margin-bottom:23px}.cv-template-elegant .cv-header-main{display:block}.cv-template-elegant .cv-profile-photo{display:block;margin:0 auto 12px;width:66px;height:76px;border-radius:50%}.cv-template-elegant .cv-identity h1{font-family:Georgia,serif;font-size:27pt;font-weight:400;letter-spacing:.6px;color:var(--cv-accent)}.cv-template-elegant .cv-target-role{font-family:var(--cv-font,Arial),sans-serif;font-size:9pt;letter-spacing:1.4px;text-transform:uppercase;font-weight:500;color:#6e625d}.cv-template-elegant .cv-contact{justify-content:center;font-family:Arial,sans-serif;font-size:8pt}.cv-template-elegant .cv-section h2{text-align:center;font-family:Arial,sans-serif;font-size:9pt;letter-spacing:1.6px;font-weight:600;border:0;padding:0;margin-bottom:10px}.cv-template-elegant .cv-section h2:after{content:"";display:block;width:52px;margin:6px auto 0;border-bottom:1px solid var(--cv-accent)}

/* 05 — Fresh Graduate: education-led panel headings */
.cv-template-fresh .cv-header{align-items:flex-start;border-bottom:3px solid var(--cv-accent);padding-bottom:15px}.cv-template-fresh .cv-identity h1{font-size:25pt}.cv-template-fresh .cv-section-education{order:0}.cv-template-fresh .cv-section h2{background:#edf3f7;border:0;border-left:4px solid var(--cv-accent);padding:7px 9px;margin-bottom:9px;letter-spacing:.35px}.cv-template-fresh .cv-section{margin-bottom:15px}.cv-template-fresh .cv-entry-top strong{font-size:9.7pt}

/* 06 — Analyst: compact information hierarchy with strong section labels */
.cv-template-analyst{font-size:9.5pt}.cv-template-analyst .cv-header{align-items:flex-end;border-bottom:0;padding-bottom:13px}.cv-template-analyst .cv-identity h1{font-size:26pt;font-weight:750}.cv-template-analyst .cv-contact{border-top:1px solid #d8e1e4;padding-top:7px}.cv-template-analyst .cv-section{margin-bottom:14px}.cv-template-analyst .cv-section h2{display:flex;align-items:center;gap:9px;border:0;padding:0;font-size:9pt;letter-spacing:1.1px}.cv-template-analyst .cv-section h2:after{content:"";height:1px;background:var(--cv-accent);flex:1}.cv-template-analyst .cv-entry{margin-bottom:7px}.cv-template-analyst .cv-entry-top strong{font-size:9pt}

/* 07 — Modern Blue: top color rule and inset section markers */
.cv-template-blue{border-top:9px solid var(--cv-accent);padding-top:35px}.cv-template-blue .cv-header{border:0;padding-bottom:16px}.cv-template-blue .cv-identity h1{font-size:27pt;font-weight:700}.cv-template-blue .cv-target-role{color:var(--cv-accent)}.cv-template-blue .cv-section{padding-left:13px;border-left:2px solid #e5ebf8;margin-bottom:17px}.cv-template-blue .cv-section h2{border:0;padding-bottom:5px;font-size:9.5pt}.cv-template-blue .cv-profile-photo{border-radius:8px}

/* 08 — Navy Corporate: persistent vertical rail */
.cv-template-navy{border-left:12px solid var(--cv-accent);padding-left:39px}.cv-template-navy .cv-header{border-bottom:1px solid #aebdca;padding-bottom:20px}.cv-template-navy .cv-identity h1{text-transform:uppercase;font-size:22pt;letter-spacing:1.1px}.cv-template-navy .cv-target-role{font-size:10pt;letter-spacing:.5px}.cv-template-navy .cv-section h2{border-bottom:2px solid var(--cv-accent);font-size:9pt;letter-spacing:1.25px}.cv-template-navy .cv-entry-top{gap:18px}

/* 09 — Compact: intentionally dense, still text-first and linear */
.cv-template-compact{font-size:8.8pt;line-height:1.3}.cv-template-compact .cv-header{display:block;border-bottom:2px solid var(--cv-accent);padding-bottom:10px;margin-bottom:12px}.cv-template-compact .cv-profile-photo{float:right;width:54px;height:62px;margin:0 0 5px 10px}.cv-template-compact .cv-identity h1{font-size:20pt;margin-bottom:3px}.cv-template-compact .cv-target-role{font-size:9pt;margin-bottom:3px}.cv-template-compact .cv-contact{font-size:7.5pt;max-width:100%}.cv-template-compact .cv-section{margin-bottom:9px}.cv-template-compact .cv-section h2{font-size:8.5pt;margin-bottom:5px;padding-bottom:3px}.cv-template-compact .cv-entry{margin-bottom:5px}.cv-template-compact .cv-entry-top strong{font-size:8.7pt}.cv-template-compact .cv-entry-sub,.cv-template-compact .cv-entry-top span{font-size:7.8pt}.cv-template-compact .cv-entry li{margin:1px 0}

/* 10 — Academic: centered institutional masthead and academic section rules */
.cv-template-academic{font-family:Georgia,serif;color:#303b49}.cv-template-academic .cv-header{display:block;text-align:center;border-bottom:3px double #8793a2;padding:0 0 17px;margin-bottom:20px}.cv-template-academic .cv-profile-photo{display:block;margin:0 auto 10px;width:62px;height:72px;border-radius:2px}.cv-template-academic .cv-identity h1{font-family:Georgia,serif;font-size:23pt;font-weight:700;letter-spacing:.2px;color:#26384d}.cv-template-academic .cv-target-role{font-family:Arial,sans-serif;font-size:9pt;font-weight:500}.cv-template-academic .cv-contact{justify-content:center;font-family:Arial,sans-serif;font-size:7.8pt}.cv-template-academic .cv-section h2{font-family:Arial,sans-serif;font-size:9pt;letter-spacing:1px;border-bottom:1px solid #8995a4;color:#26384d}.cv-template-academic .cv-section-publications .cv-entry{padding-left:12px;position:relative}.cv-template-academic .cv-section-publications .cv-entry:before{content:"";position:absolute;left:0;top:6px;width:4px;height:4px;background:#65758a;border-radius:50%}

/* 11 — Modern Green: green left markers and open section rhythm */
.cv-template-green .cv-header{border-bottom:1px solid #cbded7;padding-bottom:18px}.cv-template-green .cv-identity h1{font-size:26pt;font-weight:650}.cv-template-green .cv-target-role{color:var(--cv-accent)}.cv-template-green .cv-section{padding-left:12px;border-left:3px solid var(--cv-accent);margin-bottom:18px}.cv-template-green .cv-section h2{border:0;padding:0 0 7px;font-size:9.5pt;letter-spacing:.7px}.cv-template-green .cv-section h2:after{content:"";display:block;width:26px;border-bottom:1px solid var(--cv-accent);margin-top:5px}

/* 12 — Monochrome: high-contrast, numbered section hierarchy */
.cv-template-mono{color:#171717;counter-reset:mono-section 0}.cv-template-mono .cv-header{border-top:4px solid #171717;border-bottom:1px solid #171717;padding:15px 0 13px}.cv-template-mono .cv-identity h1{font-size:25pt;font-weight:800;letter-spacing:-.8px;text-transform:uppercase;color:#111}.cv-template-mono .cv-target-role{font-size:9pt;letter-spacing:1px;text-transform:uppercase}.cv-template-mono .cv-contact{color:#333}.cv-template-mono .cv-section{counter-increment:mono-section}.cv-template-mono .cv-section h2{color:#111;border:0;border-bottom:2px solid #111;padding-bottom:5px;letter-spacing:1px;font-size:9pt}.cv-template-mono .cv-section h2:before{content:counter(mono-section,decimal-leading-zero) " / ";font-weight:400;color:#777}.cv-template-mono .cv-entry-sub,.cv-template-mono .cv-entry-top span{color:#444}

@media(max-width:800px){.template-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-heading-actions{align-items:flex-end;flex-direction:column;gap:8px}}
@media(max-width:560px){.template-dialog{padding:17px}.template-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.template-thumb{height:174px;padding:8px}.thumb-sheet{padding:12px 9px}.editor-heading{align-items:flex-start;gap:10px}.selected-template-strip{gap:8px}.editor-heading-actions .btn{font-size:9px;padding:9px}}

/* Template library v2: 22 full-document previews and additional layouts */
.template-dialog{width:min(1320px,calc(100% - 28px));max-height:94vh;padding:26px}
.template-dialog-head{position:sticky;top:-26px;z-index:5;background:#fff;padding:4px 0 16px}
.template-dialog-head p{max-width:900px;line-height:1.55}
.template-gallery{display:block;max-height:calc(94vh - 120px);overflow:auto;padding:0 4px 12px}
.template-group{margin:0 0 28px}
.template-group-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 2px 9px;border-bottom:1px solid #e7ecf3}
.template-group-heading h3{margin:0 0 4px;font-size:14px;color:#26364d}
.template-group-heading p{margin:0;font-size:10px;color:#8390a3;line-height:1.45}
.template-group-heading>span{white-space:nowrap;font-size:9px;font-weight:700;color:#526681;background:#f1f4f8;border-radius:20px;padding:5px 9px}
.template-group-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.template-option{padding:10px;min-width:0}
.template-preview-stage{height:274px;width:100%;display:flex;justify-content:center;align-items:flex-start;overflow:hidden;background:linear-gradient(135deg,#eef1f5,#e5eaf0);border-radius:7px;padding:7px;box-sizing:border-box}
.template-preview-scale{width:183px;height:259px;flex:none;position:relative;overflow:hidden;background:#fff;box-shadow:0 3px 12px #17243a22}
.template-preview-scale>.cv-document{width:794px!important;height:1123px!important;min-height:1123px!important;max-height:1123px!important;overflow:hidden!important;transform:scale(.23);transform-origin:top left;box-shadow:none!important;margin:0!important}
.template-preview-scale .cv-section{break-inside:avoid}
.template-option-info{margin-top:10px;align-items:flex-start}
.template-option-info strong{font-size:11px}
.template-option-info small{font-size:8px;line-height:1.4}
.template-description{font-size:9px;min-height:38px;line-height:1.45}

/* Five two-column layouts: explicitly presented as visual / less ATS-reliable. */
/* Two-column templates use a real grid on every physical page.
   CSS multi-column fragmentation can create 3–4 columns across page breaks. */
.cv-layout-two-column{display:block!important;column-count:initial!important;column-rule:0!important}
.cv-layout-two-column>.cv-header{display:flex;width:100%;min-width:0}
.cv-layout-two-column>.cv-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:25px;align-items:start;width:100%;min-width:0}
.cv-layout-two-column .cv-column{display:flex;flex-direction:column;gap:0;min-width:0;height:100%;overflow:hidden}
.cv-layout-two-column .cv-column>.cv-section{display:block;width:100%;min-width:0;vertical-align:top;break-inside:avoid;page-break-inside:avoid}
@media print {
  .cv-layout-two-column{display:block!important;column-count:initial!important}
  .cv-layout-two-column>.cv-columns{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .cv-layout-two-column .cv-column{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  .cv-layout-two-column .cv-column>.cv-section{display:block!important;width:100%!important}
}
.cv-template-split-sidebar{padding-left:54px;padding-right:54px}
.cv-template-split-sidebar .cv-header{background:#243b53;color:#fff;margin: -42px -54px 22px;padding:30px 54px 22px;column-span:all}
.cv-template-split-sidebar .cv-identity h1,.cv-template-split-sidebar .cv-target-role,.cv-template-split-sidebar .cv-contact{color:#fff}
.cv-template-split-sidebar .cv-section:nth-of-type(2n){background:#f1f4f7;padding:10px;border-left:3px solid var(--cv-accent)}
.cv-template-modern-two{column-gap:30px;column-rule:0}
.cv-template-modern-two .cv-header{border-bottom:5px solid var(--cv-accent);padding-bottom:20px}
.cv-template-modern-two .cv-section{border-top:2px solid var(--cv-accent);padding-top:8px}
.cv-template-profile-rail{column-gap:0;column-rule:0}
.cv-template-profile-rail .cv-section:nth-of-type(2n){background:#edf5f4;padding:10px 12px;border-left:4px solid var(--cv-accent)}
.cv-template-photo-sidebar{column-gap:24px;column-rule:2px solid #e7e0f1}
.cv-template-photo-sidebar .cv-header{background:#f3eff9;border-bottom:0;padding:18px;margin:-42px -48px 20px;column-span:all}
.cv-template-photo-sidebar .cv-profile-photo{border-radius:50%;width:88px;height:88px}
.cv-template-photo-sidebar .cv-identity h1{color:#60438e}
.cv-template-executive-two{column-gap:28px;column-rule:0}
.cv-template-executive-two .cv-header{background:#17243a;color:#fff;margin:-42px -48px 22px;padding:26px 48px 22px;column-span:all}
.cv-template-executive-two .cv-identity h1,.cv-template-executive-two .cv-target-role,.cv-template-executive-two .cv-contact{color:#fff}
.cv-template-executive-two .cv-section h2{background:#eef1f5;padding:7px 9px;border:0;border-left:4px solid var(--cv-accent)}

/* Five creative layouts: expressive visual systems, designed for direct sharing. */
.cv-template-creative-bold{padding-top:0}
.cv-template-creative-bold .cv-header{display:block;background:#e4572e;color:#fff;margin:0 -48px 22px;padding:42px 48px 30px;border:0}
.cv-template-creative-bold .cv-identity h1{font-size:36pt;line-height:1;color:#fff;letter-spacing:-1.8px;text-transform:uppercase}
.cv-template-creative-bold .cv-target-role,.cv-template-creative-bold .cv-contact{color:#fff}
.cv-template-creative-bold .cv-section h2{display:inline-block;background:#fff0e9;color:#b83c1d;border:0;padding:6px 10px;letter-spacing:1px}
.cv-template-creative-timeline .cv-header{border-bottom:4px solid var(--cv-accent);padding-bottom:18px}
.cv-template-creative-timeline .cv-identity h1{font-size:29pt}
.cv-template-creative-timeline .cv-section{border-left:2px solid var(--cv-accent);padding:0 0 4px 17px;margin-left:5px;position:relative}
.cv-template-creative-timeline .cv-section:before{content:"";position:absolute;left:-6px;top:2px;width:10px;height:10px;border-radius:50%;background:var(--cv-accent)}
.cv-template-creative-timeline .cv-section h2{border:0;color:var(--cv-accent);letter-spacing:1.3px}
.cv-template-creative-editorial{font-family:Georgia,serif;color:#382e2a}
.cv-template-creative-editorial .cv-header{display:block;border-top:8px solid #a64b2a;border-bottom:1px solid #cbb8ad;padding:22px 0 20px}
.cv-template-creative-editorial .cv-identity h1{font-family:Georgia,serif;font-size:34pt;font-weight:400;letter-spacing:-1px;color:#a64b2a}
.cv-template-creative-editorial .cv-target-role{font-family:Arial,sans-serif;text-transform:uppercase;letter-spacing:2px;font-size:9pt}
.cv-template-creative-editorial .cv-contact{font-family:Arial,sans-serif}
.cv-template-creative-editorial .cv-section h2{font-family:Arial,sans-serif;border:0;border-bottom:1px solid #a64b2a;letter-spacing:1.8px}
.cv-template-creative-colorblock{padding-top:0}
.cv-template-creative-colorblock .cv-header{display:block;background:linear-gradient(120deg,#d9488b 0 68%,#f7d8e7 68%);margin:0 -48px 24px;padding:34px 48px 28px;border:0;min-height:180px}
.cv-template-creative-colorblock .cv-identity h1{font-size:32pt;color:#fff;max-width:470px}
.cv-template-creative-colorblock .cv-target-role,.cv-template-creative-colorblock .cv-contact{color:#fff}
.cv-template-creative-colorblock .cv-section{padding-left:14px;border-left:5px solid #d9488b}
.cv-template-creative-colorblock .cv-section h2{border:0;color:#b52d70;font-size:11pt}
.cv-template-creative-portfolio .cv-header{border-bottom:0;padding-bottom:20px}
.cv-template-creative-portfolio .cv-identity h1{font-size:31pt;color:#0f766e}
.cv-template-creative-portfolio .cv-section-projects{background:#eaf5f3;padding:15px;border-radius:8px;border-top:4px solid #0f766e}
.cv-template-creative-portfolio .cv-section-projects h2{border:0;color:#0f766e}
.cv-template-creative-portfolio .cv-section h2{letter-spacing:1.2px}

@media(max-width:1050px){.template-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.template-dialog{padding:17px}.template-dialog-head{top:-17px}.template-group-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.template-preview-stage{height:240px}.template-preview-scale{transform:scale(.88);transform-origin:top center}.template-preview-scale>.cv-document{transform:scale(.205)}.template-group-heading h3{font-size:12px}.template-group-heading p{font-size:9px}}
@media(max-width:420px){.template-group-grid{grid-template-columns:1fr}.template-preview-stage{height:280px}.template-preview-scale>.cv-document{transform:scale(.23)}}

/* Universal photo frame: template-specific silhouette, crop position and zoom. */
.cv-photo-frame{width:82px;height:100px;flex:none;overflow:hidden;position:relative;background:#e8edf3;border:2px solid #fff;box-shadow:0 2px 8px #17243a20;border-radius:5px}
.cv-profile-photo{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--photo-x,50%) var(--photo-y,50%);transform:scale(var(--photo-zoom,1));transform-origin:var(--photo-x,50%) var(--photo-y,50%)}
.cv-template-elegant .cv-photo-frame,.cv-template-academic .cv-photo-frame{margin:0 auto 12px;width:74px;height:88px;border-radius:50%}
.cv-template-blue .cv-photo-frame{border-radius:12px}
.cv-template-compact .cv-photo-frame{float:right;width:54px;height:62px;margin:0 0 5px 10px}
.cv-template-corporate .cv-photo-frame,.cv-template-executive-two .cv-photo-frame{border:2px solid #ffffffaa}
.cv-template-split-sidebar .cv-photo-frame,.cv-template-photo-sidebar .cv-photo-frame,.cv-template-profile-rail .cv-photo-frame{border-radius:50%;width:92px;height:92px}
.cv-template-creative-bold .cv-photo-frame{float:right;width:104px;height:126px;border-radius:48% 48% 12px 12px;border:4px solid #fff}
.cv-template-creative-colorblock .cv-photo-frame{float:right;width:112px;height:112px;border-radius:50%;border:5px solid #fff}
.cv-template-creative-portfolio .cv-photo-frame{border-radius:16px;width:100px;height:118px}
.cv-template-creative-studio .cv-photo-frame{width:112px;height:112px;border-radius:50%;border:5px solid #fff;box-shadow:0 0 0 5px #f2b84b}
.cv-template-creative-graphic .cv-photo-frame{float:right;width:112px;height:132px;border-radius:14px 14px 42px 14px;border:4px solid #fff}
.cv-template-creative-geometric .cv-photo-frame{width:116px;height:136px;border-radius:58px 58px 12px 12px;border:4px solid #fff}
.cv-template-creative-editorial .cv-photo-frame{float:right;width:96px;height:116px;border-radius:2px;border:0;box-shadow:7px 7px 0 #e7c9b7}
.cv-template-creative-pop .cv-photo-frame{width:108px;height:108px;border-radius:50%;border:5px solid #fff;box-shadow:0 0 0 5px #23b6bd}
.cv-template-creative-orbit .cv-photo-frame{width:116px;height:116px;border-radius:50%;border:5px solid #fff;box-shadow:0 0 0 7px #b9b2ff}
.cv-template-creative-swiss .cv-photo-frame{width:92px;height:116px;border-radius:0;border:3px solid #111;box-shadow:6px 6px 0 var(--cv-accent)}
.cv-template-creative-atelier .cv-photo-frame{width:104px;height:124px;border-radius:52px 52px 8px 8px;border:4px solid #f3c75e}

/* Creative 06 — Studio: colored information rail, portrait medallion and logo mark. */
.cv-template-creative-studio{padding:34px 42px 42px 250px;background:linear-gradient(90deg,#087f78 0 208px,#fff 208px)}
.cv-template-creative-studio:before{content:"STUDIO / CV";position:absolute;left:25px;top:235px;writing-mode:vertical-rl;transform:rotate(180deg);font-size:8pt;font-weight:800;letter-spacing:3px;color:#ffffffb8}
.cv-template-creative-studio .cv-header{display:block;margin:0 0 20px;padding:0 0 18px;border-bottom:3px solid #087f78}
.cv-template-creative-studio .cv-header:before{content:"✦  CREATIVE PROFILE";display:block;color:#087f78;font-size:8pt;font-weight:800;letter-spacing:2px;margin-bottom:12px}
.cv-template-creative-studio .cv-identity h1{font-size:27pt;color:#075e59;letter-spacing:-1px}
.cv-template-creative-studio .cv-target-role{color:#087f78;font-weight:750}
.cv-template-creative-studio .cv-contact{font-size:7.6pt;color:#e9fffb}
.cv-template-creative-studio .cv-photo-frame{position:absolute;left:-205px;top:0}
.cv-template-creative-studio .cv-section{margin:0 0 18px}
.cv-template-creative-studio .cv-section h2{font-size:9pt;color:#087f78;border:0;border-bottom:1px solid #a9d9d3;padding-bottom:6px;letter-spacing:1.3px}
.cv-template-creative-studio .cv-section-skills{position:relative}
.cv-template-creative-studio .cv-section-skills .cv-skills-list{display:flex;flex-wrap:wrap;gap:6px}
.cv-template-creative-studio .cv-section-skills .cv-skills-list{font-size:8pt}

/* Creative 07 — Graphic Designer: coral masthead, pill labels and mini brand seal. */
.cv-template-creative-graphic{padding-top:0}
.cv-template-creative-graphic:before{content:"✦";position:absolute;right:35px;top:165px;font-size:54pt;color:#f4b73f;z-index:0}
.cv-template-creative-graphic .cv-header{display:block;background:#f3a04d;margin:0 -48px 20px;padding:34px 48px 28px;border:0;min-height:190px}
.cv-template-creative-graphic .cv-header:after{content:"DESIGN / IDEAS / IMPACT";display:inline-block;background:#d95e4b;color:white;padding:5px 12px;font-size:8pt;font-weight:800;letter-spacing:1.5px;transform:rotate(-3deg);margin-top:10px}
.cv-template-creative-graphic .cv-identity h1{font-size:31pt;color:#172d3b;text-transform:uppercase;max-width:470px;line-height:1}
.cv-template-creative-graphic .cv-target-role{display:inline-block;background:#d95e4b;color:white;padding:5px 12px;border-radius:2px;letter-spacing:1px;text-transform:uppercase;font-size:8pt}
.cv-template-creative-graphic .cv-contact{color:#173d45;font-weight:650}
.cv-template-creative-graphic .cv-section h2{display:inline-block;background:#e8e2d7;border:1px solid #c8bda9;border-radius:18px;padding:6px 14px;color:#263c43;font-size:9pt}
.cv-template-creative-graphic .cv-section{margin-bottom:14px}
.cv-template-creative-graphic .cv-section-skills .cv-skills-list{color:#d95e4b;font-weight:750}

/* Creative 08 — Neo Geometric: deep blue field and angled color planes. */
.cv-template-creative-geometric{padding:36px 42px 42px 185px;background:#f4f5f6}
.cv-template-creative-geometric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:150px;background:linear-gradient(145deg,#102c4a 0 58%,#315d82 58% 72%,#102c4a 72%)}
.cv-template-creative-geometric:after{content:"";position:absolute;left:0;top:300px;width:150px;height:95px;background:#e4ad54;clip-path:polygon(0 0,100% 0,0 100%);opacity:.95}
.cv-template-creative-geometric .cv-header{display:block;min-height:150px;border:0;padding:0 0 18px}
.cv-template-creative-geometric .cv-photo-frame{position:absolute;left:-155px;top:0;z-index:2}
.cv-template-creative-geometric .cv-identity h1{font-size:28pt;color:#173a5d;letter-spacing:-1px}
.cv-template-creative-geometric .cv-target-role{color:#b77c27;font-weight:750}
.cv-template-creative-geometric .cv-contact{font-size:7.5pt;color:#53677a}
.cv-template-creative-geometric .cv-section{background:#fff;padding:11px 13px;margin:0 0 12px;border-radius:0 10px 0 10px;box-shadow:0 3px 10px #17243a0b}
.cv-template-creative-geometric .cv-section h2{border:0;color:#173a5d;letter-spacing:1.4px}

/* Creative 09 — Editorial Muse: large serif masthead and numbered chapter labels. */
.cv-template-creative-editorial{padding-top:40px}
.cv-template-creative-editorial:before{content:"CREATIVE / CV / 2026";position:absolute;right:48px;top:18px;color:#a45b43;font:700 7pt Arial,sans-serif;letter-spacing:2px}
.cv-template-creative-editorial .cv-header{min-height:150px;padding:28px 0 22px;border-top:2px solid #a45b43}
.cv-template-creative-editorial .cv-identity h1{font-size:39pt;line-height:.98;color:#59392f}
.cv-template-creative-editorial .cv-target-role{font-size:10pt;color:#a45b43;letter-spacing:2px}
.cv-template-creative-editorial .cv-contact{font-size:8pt}
.cv-template-creative-editorial .cv-section{padding-left:48px;position:relative;border-top:1px solid #d9c7bc;padding-top:10px}
.cv-template-creative-editorial .cv-section:before{content:counter(editorial-section,decimal-leading-zero);counter-increment:editorial-section;position:absolute;left:0;top:9px;color:#bd8066;font:italic 17pt Georgia,serif}
.cv-template-creative-editorial{counter-reset:editorial-section}
.cv-template-creative-editorial .cv-section h2{font-size:9pt;color:#59392f;letter-spacing:2px;border:0}

/* Creative 10 — Pop Portfolio: lively chips, cards and playful corner shapes. */
.cv-template-creative-pop{padding-top:0}
.cv-template-creative-pop:before{content:"";position:absolute;left:-50px;top:20px;width:180px;height:38px;background:#27b8c0;border-radius:0 40px 40px 0;z-index:0}
.cv-template-creative-pop:after{content:"";position:absolute;right:-35px;top:0;width:105px;height:105px;background:#ef5c45;border-radius:0 0 0 100%;opacity:.95}
.cv-template-creative-pop .cv-header{padding:34px 0 22px;border-bottom:0;min-height:170px;z-index:1}
.cv-template-creative-pop .cv-identity h1{font-size:30pt;color:#154e50;letter-spacing:1px;text-transform:uppercase}
.cv-template-creative-pop .cv-target-role{color:#e45b3f;font-size:11pt}
.cv-template-creative-pop .cv-section{padding:12px 14px;background:#f5fbfa;border-radius:13px;margin-bottom:12px;border-left:5px solid var(--cv-accent)}
.cv-template-creative-pop .cv-section h2{border:0;color:#15585a}
.cv-template-creative-pop .cv-section-skills .cv-skills-list{display:flex;flex-wrap:wrap;gap:6px}
.cv-template-creative-pop .cv-section-skills .cv-skills-list{background:transparent}

/* Creative 11 — Gradient Orbit: overlapping circles and luminous identity panel. */
.cv-template-creative-orbit{padding-top:0;background:linear-gradient(145deg,#f5f3ff,#fff 45%)}
.cv-template-creative-orbit:before{content:"";position:absolute;right:-85px;top:-95px;width:280px;height:280px;border-radius:50%;background:linear-gradient(135deg,#6558d3,#c5bfff);opacity:.95}
.cv-template-creative-orbit:after{content:"";position:absolute;left:-45px;top:250px;width:115px;height:115px;border:17px solid #b6e8e2;border-radius:50%;opacity:.8}
.cv-template-creative-orbit .cv-header{display:block;padding:42px 0 23px;border:0;min-height:190px;z-index:1}
.cv-template-creative-orbit .cv-photo-frame{position:absolute;right:18px;top:28px;z-index:2}
.cv-template-creative-orbit .cv-identity h1{font-size:31pt;color:#40358f;max-width:470px}
.cv-template-creative-orbit .cv-target-role{color:#6558d3;font-size:11pt}
.cv-template-creative-orbit .cv-contact{color:#555078;max-width:490px}
.cv-template-creative-orbit .cv-section{position:relative;background:#fff;padding:12px 15px;border-radius:14px;margin-bottom:13px;box-shadow:0 4px 16px #5549a012}
.cv-template-creative-orbit .cv-section h2{border:0;color:#5145b4;letter-spacing:1.2px}

/* Creative 12 — Swiss Grid: modular blocks, hard rules and graphic numbering. */
.cv-template-creative-swiss{padding:34px 38px;background:#fff;color:#111}
.cv-template-creative-swiss:before{content:"CV / PROFILE";position:absolute;right:38px;top:18px;background:#d83b32;color:#fff;padding:6px 10px;font-size:8pt;font-weight:800;letter-spacing:1px}
.cv-template-creative-swiss .cv-header{border-top:7px solid #111;border-bottom:2px solid #111;padding:24px 0 17px;min-height:145px}
.cv-template-creative-swiss .cv-identity h1{font-size:32pt;color:#111;font-weight:850;letter-spacing:-1.6px;text-transform:uppercase}
.cv-template-creative-swiss .cv-target-role{color:#d83b32;text-transform:uppercase;font-weight:800;letter-spacing:1.5px}
.cv-template-creative-swiss .cv-section{display:inline-block;vertical-align:top;width:calc(50% - 12px);min-height:105px;margin:0 8px 12px 0;padding:10px;border:1px solid #111;box-sizing:border-box}
.cv-template-creative-swiss .cv-section h2{color:#d83b32;border-bottom:3px solid #111;font-size:8.5pt}
.cv-template-creative-swiss .cv-section:nth-of-type(2n){background:#f5f5f3}

/* Creative 13 — Atelier: dark identity banner, monogram seal and warm accent. */
.cv-template-creative-atelier{padding-top:0;background:#f7f5ef}
.cv-template-creative-atelier:before{content:"A";position:absolute;right:48px;top:26px;width:58px;height:58px;border:2px solid #e3a62f;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#e3a62f;font:700 24pt Georgia,serif;z-index:3}
.cv-template-creative-atelier .cv-header{display:block;background:#172b3c;color:#fff;margin:0 -48px 20px;padding:42px 48px 30px;border:0;min-height:205px}
.cv-template-creative-atelier .cv-photo-frame{float:right;margin:0 0 10px 18px}
.cv-template-creative-atelier .cv-identity h1{font-size:30pt;color:#fff;text-transform:uppercase;letter-spacing:1px}
.cv-template-creative-atelier .cv-target-role{color:#f1c45a;letter-spacing:1.2px}
.cv-template-creative-atelier .cv-contact{color:#e7edf0}
.cv-template-creative-atelier .cv-section{padding:10px 14px;margin-bottom:12px;border-left:4px solid #e3a62f;background:#fff}
.cv-template-creative-atelier .cv-section h2{border:0;color:#172b3c;letter-spacing:1.3px}

/* Photo crop dialog: controls alter the same crop rendered by all template frames. */
.photo-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:9px}
.photo-tools span{font-size:9px;color:#8290a3;line-height:1.4}
.photo-crop-dialog{width:min(680px,calc(100% - 28px));border:0;border-radius:16px;padding:22px;box-shadow:0 24px 80px #17243a35}
.photo-crop-dialog::backdrop{background:#111c2dcc;backdrop-filter:blur(3px)}
.photo-crop-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.photo-crop-head h2{font-size:20px;margin:6px 0;color:#22344b}
.photo-crop-head p{font-size:11px;color:#7d8ba0;line-height:1.5;margin:0;max-width:500px}
.photo-crop-body{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center;padding:22px 0}
.photo-crop-stage{height:260px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#edf1f6,#e2e8f0);border-radius:12px;overflow:hidden}
.photo-crop-stage img{width:156px;height:195px;object-fit:cover;object-position:var(--photo-x,50%) var(--photo-y,50%);transform:scale(var(--photo-zoom,1));transform-origin:var(--photo-x,50%) var(--photo-y,50%);border:5px solid white;box-shadow:0 6px 20px #17243a28;border-radius:10px}
.photo-crop-stage img[data-template^="creative-studio"],.photo-crop-stage img[data-template^="creative-pop"],.photo-crop-stage img[data-template^="creative-orbit"]{border-radius:50%;width:170px;height:170px}
.photo-crop-stage img[data-template="creative-graphic"],.photo-crop-stage img[data-template="creative-geometric"],.photo-crop-stage img[data-template="creative-atelier"]{border-radius:48px 48px 8px 8px}
.photo-crop-controls{display:grid;gap:18px}
.photo-crop-controls label{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:11px;font-weight:700;color:#41536b}
.photo-crop-controls output{color:#4565c5;font-variant-numeric:tabular-nums}
.photo-crop-controls input{grid-column:1/-1;width:100%;accent-color:#4267cf}
.photo-crop-controls p{font-size:9px;color:#8390a3;line-height:1.5;margin:0}
.photo-crop-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e8edf4;padding-top:15px}
.photo-crop-actions span{font-size:9px;color:#8290a3}
@media(max-width:560px){.photo-crop-body{grid-template-columns:1fr;gap:15px}.photo-crop-stage{height:220px}.photo-crop-actions{flex-wrap:wrap}.photo-crop-actions span{display:none}}

/* Creative artwork is a background layer; text and controls always sit above it. */
.cv-document.cv-layout-creative{isolation:isolate;position:relative}
.cv-document.cv-layout-creative::before,
.cv-document.cv-layout-creative::after{z-index:0!important;pointer-events:none!important}
.cv-document.cv-layout-creative>.cv-header,
.cv-document.cv-layout-creative>.cv-section{position:relative;z-index:1}
.cv-document.cv-layout-creative .cv-header::before,
.cv-document.cv-layout-creative .cv-header::after,
.cv-document.cv-layout-creative .cv-section::before,
.cv-document.cv-layout-creative .cv-section::after{pointer-events:none}


/* v1.7 — template gallery: render Two-Column examples as two real columns. */
.template-preview-scale > .gallery-two-column-preview {
  display: block !important;
  width: 794px !important;
  min-width: 794px !important;
  max-width: 794px !important;
  box-sizing: border-box !important;
}
.template-preview-scale > .gallery-two-column-preview > .cv-header {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 18px;
}
.template-preview-scale > .gallery-two-column-preview > .cv-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  column-gap: 28px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  align-items: start !important;
}
.template-preview-scale > .gallery-two-column-preview .cv-column {
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
}
.template-preview-scale > .gallery-two-column-preview .cv-column > .cv-section {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
