.cv-builder{--cv-accent:#1f5f8b;--cv-accent-soft:#eaf4fb;--cv-ink:#1f2937;--cv-muted:#667085}
.cv-builder-shell{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);gap:1.5rem;align-items:start}
.cv-editor .card{border:1px solid var(--border-color,#e6e8ee);overflow:hidden}
.cv-editor .card-body{position:relative}
.cv-setup-card{background:linear-gradient(145deg,rgba(31,95,139,.08),rgba(255,255,255,0));border-color:rgba(31,95,139,.2)!important}
.cv-section-title{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}
.cv-section-heading{display:flex;align-items:center;gap:.7rem}
.cv-section-icon{width:36px;height:36px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:var(--cv-accent-soft);color:var(--cv-accent);font-size:1rem;flex:0 0 auto}
.cv-repeat-item{border:1px solid rgba(127,127,127,.22);border-radius:16px;padding:1rem;margin-bottom:1rem;background:rgba(127,127,127,.035);box-shadow:0 1px 0 rgba(0,0,0,.02)}
.cv-repeat-item:last-child{margin-bottom:0}
.cv-repeat-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.8rem}
.cv-repeat-title{display:flex;align-items:center;gap:.55rem;font-weight:700}
.cv-repeat-index{width:26px;height:26px;border-radius:50%;background:var(--cv-accent-soft);color:var(--cv-accent);font-size:.8rem;display:inline-flex;align-items:center;justify-content:center}
.cv-builder .field{margin-bottom:0}
.cv-builder .field label,.cv-builder .form-label{font-size:.86rem;font-weight:700;margin-bottom:.42rem}
.cv-builder input:not([type=checkbox]):not([type=file]),.cv-builder textarea,.cv-builder select{width:100%;padding:.72rem .82rem;border:1px solid var(--border,#d9dee8);border-radius:10px;background:var(--bg,#fff);color:var(--text,#111827);font:inherit;min-height:44px}
.cv-builder textarea{min-height:92px;line-height:1.5;resize:vertical}
.cv-builder input:focus,.cv-builder textarea:focus,.cv-builder select:focus{outline:none;border-color:var(--cv-accent);box-shadow:0 0 0 .2rem rgba(31,95,139,.12)}
.cv-current-row{display:flex;align-items:center;gap:.55rem;min-height:44px;padding:.55rem .7rem;border:1px solid var(--border,#d9dee8);border-radius:10px;background:rgba(127,127,127,.035);margin-top:1.78rem;white-space:nowrap}
.cv-current-row input[type=checkbox]{width:18px;height:18px;margin:0;flex:0 0 auto}
.cv-current-row label{margin:0!important;font-size:.84rem!important;font-weight:600!important;cursor:pointer}
.cv-current-row.is-checked{border-color:rgba(31,95,139,.35);background:var(--cv-accent-soft)}
.cv-date-field.is-disabled{opacity:.58}
.cv-date-field.is-disabled input{cursor:not-allowed}
.cv-template-label{font-size:.86rem;font-weight:700;margin-bottom:.55rem;display:block}
.cv-template-select{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;clip-path:inset(50%)!important}
.cv-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
.cv-template-option{appearance:none;border:1px solid var(--border,#d9dee8);background:var(--surface,#fff);color:var(--text,#111827);border-radius:13px;padding:.65rem;display:flex;align-items:center;gap:.65rem;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;min-width:0}
.cv-template-option:hover{transform:translateY(-1px);border-color:rgba(31,95,139,.5);box-shadow:0 6px 18px rgba(31,95,139,.08)}
.cv-template-option.active{border-color:var(--cv-accent);box-shadow:0 0 0 2px rgba(31,95,139,.12);background:var(--cv-accent-soft)}
.cv-template-thumb{width:42px;height:54px;border:1px solid rgba(127,127,127,.24);border-radius:5px;background:#fff;position:relative;overflow:hidden;flex:0 0 auto;box-shadow:0 2px 6px rgba(0,0,0,.05)}
.cv-template-thumb:before,.cv-template-thumb:after{content:"";position:absolute;left:7px;right:7px;height:3px;background:#cfd6df;border-radius:2px;box-shadow:0 7px #e1e5ea,0 14px #e1e5ea,0 21px #e1e5ea}
.cv-template-thumb:before{top:10px;background:#344054;right:15px}.cv-template-thumb:after{top:31px;height:2px;box-shadow:0 5px #e1e5ea,0 10px #e1e5ea}
.cv-template-option[data-template=modern] .cv-template-thumb{border-top:6px solid #2563eb}
.cv-template-option[data-template=minimal] .cv-template-thumb:before{background:#667085;right:21px}
.cv-template-option[data-template=executive] .cv-template-thumb{border-top:6px solid #111827}
.cv-template-option[data-template=compact] .cv-template-thumb:after{box-shadow:0 4px #d4d9e1,0 8px #d4d9e1,0 12px #d4d9e1,0 16px #d4d9e1}
.cv-template-option[data-template=accent] .cv-template-thumb{border-left:7px solid #0f766e}
.cv-template-name{font-size:.82rem;font-weight:700;line-height:1.15;display:block}.cv-template-desc{display:block;font-size:.7rem;color:var(--bs-secondary-color,#667085);line-height:1.2;margin-top:.18rem}
.cv-country-note{font-size:.9rem;margin-top:.75rem;padding:.7rem .8rem;border-radius:10px;background:rgba(127,127,127,.06)}
.cv-privacy-note{font-size:.9rem;background:rgba(25,135,84,.08);border:1px solid rgba(25,135,84,.2);padding:.8rem 1rem;border-radius:12px}
.cv-mini-note{font-size:.82rem;color:var(--bs-secondary-color,#6c757d)}
.cv-hidden{display:none!important}
.cv-builder-actions{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;margin-bottom:1.4rem;padding:.8rem;border:1px solid var(--border,#d9dee8);border-radius:14px;background:rgba(127,127,127,.035)}
.cv-builder-actions .btn{min-height:40px}
.cv-preview-wrap{position:sticky;top:88px}
.cv-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap}
.cv-preview-status{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.cv-progress-wrap{display:flex;align-items:center;gap:.45rem;font-size:.78rem;color:var(--bs-secondary-color,#667085)}
.cv-progress{width:92px;height:7px;background:#e8ecf1;border-radius:99px;overflow:hidden}.cv-progress>span{display:block;height:100%;width:0;background:var(--cv-accent);border-radius:inherit;transition:width .2s ease}
.cv-preview{background:#fff;color:#20242a;min-height:1123px;border-radius:9px;box-shadow:0 12px 35px rgba(22,28,45,.12);padding:42px;font-family:Arial,Helvetica,sans-serif;line-height:1.45;overflow:hidden;border:1px solid #e8ebf0}
.cv-preview h1,.cv-preview h2,.cv-preview h3,.cv-preview p{color:inherit}.cv-preview h1{font-size:2rem;line-height:1.1;margin:0 0 5px}.cv-preview .cv-role{font-size:1.05rem;font-weight:700;margin-bottom:8px}.cv-preview .cv-contact{font-size:.83rem;display:flex;flex-wrap:wrap;gap:5px 14px;color:#4d5662;margin-bottom:18px}.cv-preview .cv-photo{width:86px;height:86px;border-radius:10px;object-fit:cover;float:right;margin-left:18px;margin-bottom:12px}.cv-preview section{margin-top:18px}.cv-preview section h2{font-size:.9rem;text-transform:uppercase;letter-spacing:.08em;border-bottom:1.5px solid #273142;padding-bottom:5px;margin:0 0 10px}.cv-preview .cv-entry{margin-bottom:12px;break-inside:avoid}.cv-preview .cv-entry-head{display:flex;justify-content:space-between;gap:14px;font-weight:700}.cv-preview .cv-entry-head>span:last-child{white-space:nowrap}.cv-preview .cv-entry-sub{font-size:.9rem;color:#59616b;margin:2px 0 5px}.cv-preview ul{padding-left:18px;margin:5px 0 0}.cv-preview li{margin:2px 0}.cv-preview .cv-tags{display:flex;flex-wrap:wrap;gap:6px}.cv-preview .cv-tag{font-size:.82rem;border:1px solid #d7dce3;border-radius:999px;padding:3px 8px}
.cv-template-modern{border-top:9px solid #2563eb;padding-top:33px}.cv-template-modern h1{color:#174ea6}.cv-template-modern section h2{color:#1d4ed8;border-color:#93b4ef}.cv-template-modern .cv-tag{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.cv-template-minimal{font-family:Georgia,'Times New Roman',serif;padding:46px}.cv-template-minimal header{text-align:center}.cv-template-minimal .cv-contact{justify-content:center}.cv-template-minimal .cv-role{font-weight:400;font-style:italic}.cv-template-minimal section h2{font-family:Arial,Helvetica,sans-serif;font-size:.78rem;letter-spacing:.16em;text-align:center;border:0;border-top:1px solid #9ca3af;border-bottom:1px solid #9ca3af;padding:6px 0}
.cv-template-executive{padding:0 42px 42px}.cv-template-executive header{background:#111827;color:#fff;margin:0 -42px 24px;padding:35px 42px 28px}.cv-template-executive header h1,.cv-template-executive header .cv-role{color:#fff}.cv-template-executive header .cv-contact{color:#e5e7eb}.cv-template-executive section h2{border-bottom:2px solid #111827;color:#111827}
.cv-template-compact{padding:32px;font-size:.9rem;line-height:1.32}.cv-template-compact h1{font-size:1.7rem}.cv-template-compact section{margin-top:12px}.cv-template-compact section h2{margin-bottom:7px}.cv-template-compact .cv-entry{margin-bottom:7px}.cv-template-compact .cv-contact{margin-bottom:10px}
.cv-template-accent{border-left:12px solid #0f766e;padding-left:34px}.cv-template-accent h1{color:#0f766e}.cv-template-accent .cv-role{color:#115e59}.cv-template-accent section h2{color:#0f766e;border-color:#99d5cf}.cv-template-accent .cv-tag{background:#f0fdfa;border-color:#99f6e4;color:#115e59}
.cv-field-tip{font-size:.76rem;color:var(--bs-secondary-color,#667085);margin-top:.35rem}
@media(max-width:1199.98px){.cv-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:991.98px){.cv-builder-shell{grid-template-columns:1fr}.cv-preview-wrap{position:static}.cv-preview{min-height:auto}.cv-current-row{margin-top:0}}
@media(max-width:575.98px){.cv-template-grid{grid-template-columns:1fr}.cv-preview{padding:28px 22px}.cv-preview .cv-entry-head{display:block}.cv-preview .cv-entry-head>span:last-child{display:block;margin-top:2px;font-weight:500;color:#59616b}.cv-section-title{align-items:flex-start}.cv-builder-actions .btn{flex:1 1 auto}.cv-current-row{white-space:normal}}
@media print{
  @page{size:A4;margin:10mm}
  body *{visibility:hidden!important}
  #cvPreview,#cvPreview *{visibility:visible!important}
  #cvPreview{position:absolute;left:0;top:0;width:100%;min-height:0;box-shadow:none;border-radius:0;padding:0!important;margin:0;background:#fff!important;color:#111!important;font-size:10.5pt;border:0!important}
  #cvPreview.cv-template-executive header{margin:0 0 20px;padding:24px 26px}
  #cvPreview.cv-template-accent{border-left:8px solid #0f766e!important;padding-left:18px!important}
  #cvPreview .cv-photo{max-width:24mm;max-height:24mm}
  .cv-preview section{break-inside:auto}.cv-preview .cv-entry{break-inside:avoid}
}

/* Country-specific template gallery + expanded layout system */
.cv-country-picker{max-width:360px}
.cv-template-picker{width:100%}
.cv-template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.8rem;width:100%}
.cv-template-option{min-height:86px;padding:.8rem .85rem;align-items:center;overflow:hidden}
.cv-template-copy{min-width:0;display:block}
.cv-template-name{font-size:.9rem;line-height:1.15;overflow-wrap:anywhere}
.cv-template-desc{font-size:.74rem;line-height:1.28;margin-top:.28rem;white-space:normal;overflow-wrap:anywhere}
.cv-template-thumb{width:48px;height:62px;flex:0 0 48px;border-radius:6px}
.cv-template-thumb:before{background:var(--tpl-accent,#344054)!important}
.cv-template-option.active{border-color:var(--tpl-accent,var(--cv-accent));box-shadow:0 0 0 2px color-mix(in srgb,var(--tpl-accent,var(--cv-accent)) 16%,transparent);background:color-mix(in srgb,var(--tpl-accent,var(--cv-accent)) 7%,var(--surface,#fff))}
.cv-template-option:hover{border-color:var(--tpl-accent,var(--cv-accent))}
.cv-template-option[data-layout="modern"] .cv-template-thumb,.cv-template-option[data-layout="headerband"] .cv-template-thumb,.cv-template-option[data-layout="executive"] .cv-template-thumb,.cv-template-option[data-layout="luxury"] .cv-template-thumb{border-top:7px solid var(--tpl-accent)}
.cv-template-option[data-layout="border"] .cv-template-thumb,.cv-template-option[data-layout="corporate"] .cv-template-thumb{border-left:7px solid var(--tpl-accent)}
.cv-template-option[data-layout="sidebar"] .cv-template-thumb{background:linear-gradient(90deg,var(--tpl-accent) 0 30%,#fff 30%)}
.cv-template-option[data-layout="sidebar"] .cv-template-thumb:before,.cv-template-option[data-layout="sidebar"] .cv-template-thumb:after{left:19px}
.cv-template-option[data-layout="centered"] .cv-template-thumb:before{left:12px;right:12px}
.cv-template-option[data-layout="split"] .cv-template-thumb{background:linear-gradient(180deg,var(--tpl-accent) 0 24%,#fff 24%)}
.cv-template-option[data-layout="timeline"] .cv-template-thumb:after{left:14px;border-left:2px solid var(--tpl-accent);height:25px;background:transparent;box-shadow:none}
.cv-template-option[data-layout="graduate"] .cv-template-thumb{border-bottom:7px solid var(--tpl-accent)}
.cv-template-option[data-layout="academic"] .cv-template-thumb{font-family:Georgia,serif;border:1px solid color-mix(in srgb,var(--tpl-accent) 50%,#d1d5db)}
.cv-template-option[data-layout="compact"] .cv-template-thumb:after{box-shadow:0 4px #d4d9e1,0 8px #d4d9e1,0 12px #d4d9e1,0 16px #d4d9e1}

.cv-preview{--cv-accent:#1f5f8b;transition:box-shadow .18s ease,border-color .18s ease}
.cv-preview section h2{border-color:color-mix(in srgb,var(--cv-accent) 55%,#d1d5db);color:var(--cv-accent)}
.cv-preview .cv-tag{border-color:color-mix(in srgb,var(--cv-accent) 24%,#d7dce3);background:color-mix(in srgb,var(--cv-accent) 6%,#fff)}

.cv-layout-classic{border-top:5px solid var(--cv-accent)}
.cv-layout-classic h1{color:#172033}.cv-layout-classic .cv-role{color:var(--cv-accent)}

.cv-layout-modern{border-top:10px solid var(--cv-accent);padding-top:32px}.cv-layout-modern h1{color:var(--cv-accent);font-size:2.15rem}.cv-layout-modern section h2{border-bottom-width:2px}.cv-layout-modern .cv-tag{border-radius:7px}

.cv-layout-minimal{font-family:Georgia,'Times New Roman',serif;padding:48px}.cv-layout-minimal header{text-align:center}.cv-layout-minimal .cv-contact{justify-content:center}.cv-layout-minimal .cv-role{font-weight:400;font-style:italic;color:#475467}.cv-layout-minimal section h2{font-family:Arial,Helvetica,sans-serif;font-size:.78rem;letter-spacing:.17em;text-align:center;border:0;border-top:1px solid #9ca3af;border-bottom:1px solid #9ca3af;padding:6px 0;color:#374151}.cv-layout-minimal .cv-tag{border-radius:2px;background:#fff}

.cv-layout-headerband{padding:0 42px 42px}.cv-layout-headerband header{background:var(--cv-accent);color:#fff;margin:0 -42px 24px;padding:35px 42px 28px}.cv-layout-headerband header h1,.cv-layout-headerband header .cv-role{color:#fff}.cv-layout-headerband header .cv-contact{color:rgba(255,255,255,.88)}.cv-layout-headerband section h2{border-bottom:2px solid var(--cv-accent)}

.cv-layout-compact{padding:31px;font-size:.9rem;line-height:1.32}.cv-layout-compact h1{font-size:1.72rem}.cv-layout-compact section{margin-top:12px}.cv-layout-compact section h2{margin-bottom:7px}.cv-layout-compact .cv-entry{margin-bottom:7px}.cv-layout-compact .cv-contact{margin-bottom:10px}.cv-layout-compact .cv-tag{font-size:.76rem;padding:2px 6px}

.cv-layout-border{border-left:12px solid var(--cv-accent);padding-left:34px}.cv-layout-border h1,.cv-layout-border .cv-role{color:var(--cv-accent)}.cv-layout-border section h2{border-color:color-mix(in srgb,var(--cv-accent) 55%,#d1d5db)}

.cv-layout-sidebar{display:grid;grid-template-columns:minmax(150px,31%) 1fr;column-gap:28px;align-content:start;padding:0 36px 38px}.cv-layout-sidebar header{grid-column:1/-1;margin:0 -36px 22px;padding:30px 36px 24px;border-bottom:6px solid var(--cv-accent)}.cv-layout-sidebar .cv-sec-summary,.cv-layout-sidebar .cv-sec-experience,.cv-layout-sidebar .cv-sec-education{grid-column:2}.cv-layout-sidebar .cv-sec-skills,.cv-layout-sidebar .cv-sec-languages,.cv-layout-sidebar .cv-sec-certifications{grid-column:1;background:color-mix(in srgb,var(--cv-accent) 6%,#fff);padding:12px;border-radius:8px;align-self:start}.cv-layout-sidebar .cv-sec-skills h2,.cv-layout-sidebar .cv-sec-languages h2,.cv-layout-sidebar .cv-sec-certifications h2{font-size:.74rem}.cv-layout-sidebar .cv-tags{display:block}.cv-layout-sidebar .cv-tag{display:block;margin:0 0 5px;border:0;background:transparent;padding:1px 0}.cv-layout-sidebar .cv-photo{float:none;position:absolute;right:36px;top:24px}

.cv-layout-timeline .cv-sec-experience .cv-entry{position:relative;padding-left:20px;border-left:2px solid color-mix(in srgb,var(--cv-accent) 45%,#e5e7eb)}.cv-layout-timeline .cv-sec-experience .cv-entry:before{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:var(--cv-accent);left:-5.5px;top:5px}.cv-layout-timeline h1{color:var(--cv-accent)}.cv-layout-timeline section h2{border-bottom:0;border-left:5px solid var(--cv-accent);padding:4px 0 4px 9px;background:color-mix(in srgb,var(--cv-accent) 5%,#fff)}

.cv-layout-corporate{border:1px solid color-mix(in srgb,var(--cv-accent) 28%,#e5e7eb);border-left:9px solid var(--cv-accent)}.cv-layout-corporate header{padding-bottom:15px;border-bottom:1px solid color-mix(in srgb,var(--cv-accent) 30%,#e5e7eb)}.cv-layout-corporate h1{color:#172033}.cv-layout-corporate .cv-role{color:var(--cv-accent)}.cv-layout-corporate section h2{font-size:.82rem;letter-spacing:.11em}

.cv-layout-graduate header{text-align:center}.cv-layout-graduate .cv-contact{justify-content:center}.cv-layout-graduate .cv-role{color:var(--cv-accent)}.cv-layout-graduate .cv-sec-education{order:1}.cv-layout-graduate section h2{background:color-mix(in srgb,var(--cv-accent) 7%,#fff);padding:7px 9px;border:0;border-left:4px solid var(--cv-accent)}

.cv-layout-academic{font-family:Georgia,'Times New Roman',serif}.cv-layout-academic h1{font-size:2.05rem}.cv-layout-academic .cv-role{font-style:italic;font-weight:400}.cv-layout-academic section h2{font-family:Arial,Helvetica,sans-serif;border-bottom:1px solid #6b7280;color:#374151;letter-spacing:.12em;font-size:.78rem}.cv-layout-academic .cv-entry-head{font-family:Arial,Helvetica,sans-serif}

.cv-layout-executive{padding:38px 44px}.cv-layout-executive header{border-bottom:4px double var(--cv-accent);padding-bottom:18px}.cv-layout-executive h1{font-size:2.25rem;letter-spacing:.01em}.cv-layout-executive .cv-role{color:var(--cv-accent);text-transform:uppercase;letter-spacing:.08em;font-size:.92rem}.cv-layout-executive section h2{border:0;border-bottom:2px solid var(--cv-accent);font-size:.83rem}

.cv-layout-luxury{font-family:Georgia,'Times New Roman',serif;border-top:11px solid var(--cv-accent);padding:46px}.cv-layout-luxury header{text-align:center}.cv-layout-luxury h1{font-size:2.25rem;letter-spacing:.045em}.cv-layout-luxury .cv-role{color:var(--cv-accent);font-weight:400;letter-spacing:.08em;text-transform:uppercase}.cv-layout-luxury .cv-contact{justify-content:center}.cv-layout-luxury section h2{font-family:Arial,Helvetica,sans-serif;text-align:center;border:0;color:var(--cv-accent);letter-spacing:.18em;font-size:.75rem}.cv-layout-luxury section h2:after{content:"";display:block;width:44px;height:1px;background:var(--cv-accent);margin:7px auto 0}

.cv-layout-centered header{text-align:center;padding-bottom:18px;border-bottom:2px solid var(--cv-accent)}.cv-layout-centered .cv-contact{justify-content:center}.cv-layout-centered h1{color:var(--cv-accent)}.cv-layout-centered section h2{text-align:center;border:0;color:#374151}.cv-layout-centered section h2:before,.cv-layout-centered section h2:after{content:" — ";color:var(--cv-accent)}

.cv-layout-split{padding:0 42px 42px}.cv-layout-split header{background:linear-gradient(135deg,var(--cv-accent),color-mix(in srgb,var(--cv-accent) 70%,#111827));color:#fff;margin:0 -42px 24px;padding:32px 42px}.cv-layout-split header h1,.cv-layout-split header .cv-role{color:#fff}.cv-layout-split header .cv-contact{color:rgba(255,255,255,.9)}.cv-layout-split .cv-sec-skills .cv-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.cv-layout-split .cv-tag{border-radius:4px}

@media(max-width:1199.98px){.cv-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:991.98px){.cv-country-picker{max-width:none}.cv-layout-sidebar{grid-template-columns:1fr;display:block}.cv-layout-sidebar .cv-sec-skills,.cv-layout-sidebar .cv-sec-languages,.cv-layout-sidebar .cv-sec-certifications{background:transparent;padding:0}.cv-layout-sidebar .cv-tags{display:flex}.cv-layout-sidebar .cv-tag{display:inline-block;border:1px solid #d7dce3;padding:3px 8px}.cv-layout-sidebar .cv-photo{position:static;float:right}}
@media(max-width:575.98px){.cv-template-grid{grid-template-columns:1fr}.cv-template-option{min-height:78px}.cv-template-thumb{width:44px;height:56px;flex-basis:44px}}

@media print{
  #cvPreview.cv-layout-headerband header,#cvPreview.cv-layout-split header{margin:0 0 18px;padding:22px 24px}
  #cvPreview.cv-layout-border{border-left:7px solid var(--cv-accent)!important;padding-left:16px!important}
  #cvPreview.cv-layout-sidebar{display:grid!important;grid-template-columns:31% 1fr!important;column-gap:20px!important;padding:0!important}
  #cvPreview.cv-layout-sidebar header{grid-column:1/-1;margin:0 0 18px;padding:16px 0}
  #cvPreview.cv-layout-luxury{border-top:7px solid var(--cv-accent)!important}
}


/* CV Builder V3: richer gallery, filters and genuinely different layouts */
.cv-template-filters{display:flex;flex-wrap:wrap;gap:.45rem;margin:.2rem 0 .8rem}
.cv-template-filter{border:1px solid var(--border,#d9dee8);background:var(--surface,#fff);color:var(--text,#111827);border-radius:999px;padding:.38rem .72rem;font-size:.76rem;font-weight:700;cursor:pointer;transition:.15s ease}
.cv-template-filter:hover,.cv-template-filter.active{border-color:var(--cv-accent);background:var(--cv-accent-soft);color:var(--cv-accent)}
.cv-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.8rem!important}
.cv-template-option{min-height:104px!important;padding:.75rem!important;align-items:flex-start!important}
.cv-template-option.cv-template-hidden{display:none!important}
.cv-template-copy{min-width:0;display:block;padding-top:.05rem}
.cv-template-type{display:inline-flex;margin-top:.4rem;border:1px solid color-mix(in srgb,var(--tpl-accent) 24%,#d7dce3);border-radius:999px;padding:.12rem .42rem;font-size:.56rem;font-weight:800;letter-spacing:.06em;color:var(--tpl-accent);background:color-mix(in srgb,var(--tpl-accent) 5%,#fff)}
.cv-template-thumb{width:62px!important;height:80px!important;flex-basis:62px!important;background:#fff!important;border:1px solid #d7dce3!important;border-radius:6px!important;position:relative!important;overflow:hidden!important;box-shadow:0 4px 12px rgba(16,24,40,.08)!important}
.cv-template-thumb:before,.cv-template-thumb:after{content:none!important}
.cv-template-thumb i{position:absolute;display:block;border-radius:2px}
.cv-template-thumb .mini-band{display:none}
.cv-template-thumb .mini-name{left:9px;right:19px;top:12px;height:4px;background:#26364a}
.cv-template-thumb .mini-role{left:9px;right:29px;top:20px;height:2px;background:var(--tpl-accent)}
.cv-template-thumb .mini-side{display:none}
.cv-template-thumb .mini-line{left:9px;right:9px;height:2px;background:#d8dee7}
.cv-template-thumb .l1{top:33px}.cv-template-thumb .l2{top:42px}.cv-template-thumb .l3{top:51px}.cv-template-thumb .l4{top:60px}
.cv-template-option[data-layout="modern"] .mini-band,.cv-template-option[data-layout="headerband"] .mini-band,.cv-template-option[data-layout="split"] .mini-band,.cv-template-option[data-layout="luxury"] .mini-band{display:block;left:0;right:0;top:0;height:9px;background:var(--tpl-accent);border-radius:0}
.cv-template-option[data-layout="headerband"] .mini-band,.cv-template-option[data-layout="split"] .mini-band{height:24px}
.cv-template-option[data-layout="headerband"] .mini-name,.cv-template-option[data-layout="split"] .mini-name{top:8px;background:#fff;z-index:2}.cv-template-option[data-layout="headerband"] .mini-role,.cv-template-option[data-layout="split"] .mini-role{top:16px;background:rgba(255,255,255,.75);z-index:2}
.cv-template-option[data-layout="sidebar"] .mini-side,.cv-template-option[data-layout="sidebar-right"] .mini-side{display:block;top:0;bottom:0;width:18px;background:color-mix(in srgb,var(--tpl-accent) 88%,#fff);border-radius:0}
.cv-template-option[data-layout="sidebar"] .mini-side{left:0}.cv-template-option[data-layout="sidebar-right"] .mini-side{right:0}
.cv-template-option[data-layout="sidebar"] .mini-name,.cv-template-option[data-layout="sidebar"] .mini-role,.cv-template-option[data-layout="sidebar"] .mini-line{left:25px}
.cv-template-option[data-layout="sidebar-right"] .mini-name,.cv-template-option[data-layout="sidebar-right"] .mini-role,.cv-template-option[data-layout="sidebar-right"] .mini-line{right:25px}
.cv-template-option[data-layout="border"] .mini-side,.cv-template-option[data-layout="corporate"] .mini-side{display:block;left:0;top:0;bottom:0;width:6px;background:var(--tpl-accent);border-radius:0}
.cv-template-option[data-layout="timeline"] .mini-side{display:block;left:14px;top:30px;bottom:10px;width:2px;background:var(--tpl-accent)}
.cv-template-option[data-layout="timeline"] .mini-line{left:23px}
.cv-template-option[data-layout="centered"] .mini-name,.cv-template-option[data-layout="centered"] .mini-role{left:14px;right:14px}.cv-template-option[data-layout="centered"] .mini-name{top:13px}.cv-template-option[data-layout="centered"] .mini-role{top:22px}
.cv-template-option[data-layout="graduate"] .mini-band{display:block;left:0;right:0;bottom:0;height:7px;background:var(--tpl-accent);border-radius:0}
.cv-template-option[data-layout="academic"] .mini-name{left:12px;right:12px;background:#4b5563}.cv-template-option[data-layout="academic"] .mini-role{background:#9ca3af}.cv-template-option[data-layout="academic"] .mini-line{height:1px;background:#c8cdd5}
.cv-template-option[data-layout="boxed"] .mini-line{border:1px solid #d8dee7;background:transparent;height:8px;left:8px;right:8px}.cv-template-option[data-layout="boxed"] .l1{top:31px}.cv-template-option[data-layout="boxed"] .l2{top:43px}.cv-template-option[data-layout="boxed"] .l3{top:55px}.cv-template-option[data-layout="boxed"] .l4{display:none}
.cv-template-option[data-layout="contactbar"] .mini-band{display:block;left:0;right:0;top:27px;height:6px;background:var(--tpl-accent);border-radius:0}.cv-template-option[data-layout="contactbar"] .l1{top:40px}.cv-template-option[data-layout="contactbar"] .l2{top:49px}.cv-template-option[data-layout="contactbar"] .l3{top:58px}.cv-template-option[data-layout="contactbar"] .l4{top:67px}
.cv-template-option[data-layout="mono"] .mini-name{background:#111;right:9px;height:5px}.cv-template-option[data-layout="mono"] .mini-role{background:#777;right:9px}.cv-template-option[data-layout="mono"] .mini-line{background:#bbb}
.cv-template-option[data-layout="ribbon"] .mini-band{display:block;right:-8px;top:7px;width:33px;height:8px;transform:rotate(35deg);background:var(--tpl-accent)}

.cv-preview-wrap{position:sticky!important;top:82px!important}
.cv-preview{min-height:1050px}
.cv-layout-graduate{display:flex!important;flex-direction:column!important}.cv-layout-graduate header{order:0}.cv-layout-graduate .cv-sec-education{order:1}.cv-layout-graduate .cv-sec-summary{order:2}.cv-layout-graduate .cv-sec-skills{order:3}.cv-layout-graduate .cv-sec-experience{order:4}.cv-layout-graduate .cv-sec-languages{order:5}.cv-layout-graduate .cv-sec-certifications{order:6}
.cv-layout-sidebar-right{display:grid;grid-template-columns:1fr minmax(150px,30%);column-gap:28px;align-content:start;padding:0 36px 38px}.cv-layout-sidebar-right header{grid-column:1/-1;margin:0 -36px 22px;padding:30px 36px 24px;border-bottom:6px solid var(--cv-accent)}.cv-layout-sidebar-right .cv-sec-summary,.cv-layout-sidebar-right .cv-sec-experience,.cv-layout-sidebar-right .cv-sec-education{grid-column:1}.cv-layout-sidebar-right .cv-sec-skills,.cv-layout-sidebar-right .cv-sec-languages,.cv-layout-sidebar-right .cv-sec-certifications{grid-column:2;background:color-mix(in srgb,var(--cv-accent) 6%,#fff);padding:12px;border-radius:8px}.cv-layout-sidebar-right .cv-tags{display:block}.cv-layout-sidebar-right .cv-tag{display:block;border:0;background:transparent;padding:1px 0}.cv-layout-sidebar-right .cv-photo{position:absolute;right:36px;top:24px}
.cv-layout-boxed section{border:1px solid color-mix(in srgb,var(--cv-accent) 18%,#d8dee7);border-radius:9px;padding:13px 15px;margin-top:13px}.cv-layout-boxed section h2{border:0;margin-top:0;padding-bottom:4px}.cv-layout-boxed header{border-bottom:4px solid var(--cv-accent);padding-bottom:15px}.cv-layout-boxed .cv-role{color:var(--cv-accent)}
.cv-layout-contactbar{padding-top:38px}.cv-layout-contactbar header{position:relative;padding-bottom:24px}.cv-layout-contactbar header:after{content:"";position:absolute;left:-42px;right:-42px;bottom:0;height:12px;background:var(--cv-accent)}.cv-layout-contactbar h1{font-size:2.05rem}.cv-layout-contactbar .cv-role{color:var(--cv-accent)}.cv-layout-contactbar section h2{border:0;border-left:5px solid var(--cv-accent);padding-left:9px}
.cv-layout-mono{font-family:Arial,Helvetica,sans-serif;color:#111;border:2px solid #111;padding:36px}.cv-layout-mono h1{font-weight:900;text-transform:uppercase;letter-spacing:.035em}.cv-layout-mono .cv-role{color:#111;font-weight:700}.cv-layout-mono section h2{color:#111;border:0;border-bottom:2px solid #111;font-size:.76rem;letter-spacing:.16em}.cv-layout-mono .cv-tag{border:1px solid #111;background:#fff;color:#111;border-radius:0}
.cv-layout-ribbon{position:relative;overflow:hidden;border-top:0}.cv-layout-ribbon:before{content:"";position:absolute;right:-58px;top:24px;width:180px;height:32px;background:var(--cv-accent);transform:rotate(36deg);opacity:.95}.cv-layout-ribbon header{padding-right:85px}.cv-layout-ribbon h1{color:#172033}.cv-layout-ribbon .cv-role{color:var(--cv-accent)}.cv-layout-ribbon section h2{border:0;background:color-mix(in srgb,var(--cv-accent) 7%,#fff);padding:6px 9px;border-radius:4px}

@media(max-width:991.98px){.cv-preview-wrap{position:static!important}.cv-layout-sidebar-right{display:block!important}.cv-layout-sidebar-right .cv-sec-skills,.cv-layout-sidebar-right .cv-sec-languages,.cv-layout-sidebar-right .cv-sec-certifications{background:transparent;padding:0}.cv-layout-sidebar-right .cv-tags{display:flex}.cv-layout-sidebar-right .cv-tag{display:inline-block;border:1px solid #d7dce3;padding:3px 8px}}
@media(max-width:575.98px){.cv-template-grid{grid-template-columns:1fr!important}.cv-template-option{min-height:94px!important}.cv-template-thumb{width:56px!important;height:72px!important;flex-basis:56px!important}}
@media print{#cvPreview.cv-layout-sidebar-right{display:grid!important;grid-template-columns:1fr 30%!important;column-gap:20px!important;padding:0!important}#cvPreview.cv-layout-sidebar-right header{grid-column:1/-1;margin:0 0 18px;padding:16px 0}#cvPreview.cv-layout-boxed section{break-inside:avoid}#cvPreview.cv-layout-ribbon:before{display:none!important}}
