:root{--aicv-bg:#f8fafc;--aicv-card:#ffffff;--aicv-text:#0f172a;--aicv-muted:#64748b;--aicv-border:#e2e8f0;--aicv-primary:#2563eb;--aicv-primary-dark:#1d4ed8;--aicv-radius:20px;--aicv-shadow:0 20px 45px rgba(2,8,23,.08)}.aicv-builder-wrap,.aicv-public-wrap,.aicv-archive-wrap{max-width:1160px;margin:0 auto;padding:24px}.aicv-builder-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;background:linear-gradient(135deg,#eff6ff,#ffffff);border:1px solid var(--aicv-border);border-radius:28px;padding:28px;box-shadow:var(--aicv-shadow);margin-bottom:24px}.aicv-builder-hero h2{font-size:clamp(28px,4vw,42px);line-height:1.05;margin:10px 0;color:var(--aicv-text)}.aicv-builder-hero p{margin:0;color:var(--aicv-muted);max-width:680px}.aicv-badge{display:inline-flex;padding:8px 14px;border-radius:999px;background:#dbeafe;color:#1e3a8a;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.aicv-existing-cvs{min-width:260px;background:rgba(255,255,255,.85);backdrop-filter:blur(10px);border:1px solid var(--aicv-border);padding:18px;border-radius:18px}.aicv-existing-cvs label{display:block;margin-bottom:8px;font-weight:600}.aicv-existing-cvs select,.aicv-cv-form input,.aicv-cv-form textarea,.aicv-cv-form select{width:100%;border:1px solid var(--aicv-border);border-radius:14px;padding:14px 16px;background:#fff;color:var(--aicv-text);font-size:15px;box-sizing:border-box}.aicv-cv-form textarea{min-height:120px;resize:vertical}.aicv-cv-form input:focus,.aicv-cv-form textarea:focus,.aicv-cv-form select:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(59,130,246,.12)}.aicv-form-section{background:var(--aicv-card);border:1px solid var(--aicv-border);border-radius:24px;padding:24px;margin-bottom:22px;box-shadow:var(--aicv-shadow)}.aicv-section-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.aicv-section-head h3{margin:0;font-size:22px;color:var(--aicv-text)}.aicv-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.aicv-form-grid p{margin:0}.aicv-repeater-item,.aicv-skill-tag{background:#f8fafc;border:1px solid var(--aicv-border);border-radius:18px;padding:18px;margin-bottom:14px}.aicv-repeater-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.aicv-repeater-grid .full{grid-column:1/-1}.aicv-item-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.aicv-item-head h4{margin:0;color:var(--aicv-text)}.aicv-skills-container{display:flex;flex-direction:column;gap:12px}.aicv-skill-tag{display:grid;grid-template-columns:1.5fr 1fr auto;gap:10px;align-items:center}.aicv-inline-actions,.aicv-form-actions{display:flex;gap:10px;flex-wrap:wrap}.aicv-form-actions{justify-content:flex-end}.aicv-template-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.aicv-template-card{position:relative;display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--aicv-border);border-radius:18px;padding:18px;cursor:pointer;transition:.2s ease}.aicv-template-card input{position:absolute;opacity:0;pointer-events:none}.aicv-template-card:has(input:checked){border-color:#60a5fa;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.aicv-template-preview,.aicv-template-thumb{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-size:22px;font-weight:700}.aicv-modal{position:fixed;inset:0;background:rgba(15,23,42,.65);display:grid;place-items:center;padding:24px;z-index:9999}.aicv-modal[hidden]{display:none}.aicv-modal-dialog{background:#fff;width:min(980px,100%);max-height:90vh;overflow:auto;border-radius:24px;padding:24px;position:relative;box-shadow:0 30px 80px rgba(0,0,0,.25)}.aicv-modal-close{position:absolute;right:16px;top:16px;border:none;background:#e2e8f0;width:40px;height:40px;border-radius:999px;font-size:24px;cursor:pointer}.aicv-toast{position:fixed;right:20px;bottom:20px;background:#0f172a;color:#fff;padding:14px 18px;border-radius:14px;z-index:10000;box-shadow:var(--aicv-shadow)}.aicv-toast[hidden]{display:none}.aicv-preview-frame,.aicv-cv-shell{background:#fff;border:1px solid var(--aicv-border);border-radius:24px;padding:32px;box-shadow:var(--aicv-shadow)}.aicv-preview-header,.aicv-cv-header{display:flex;justify-content:space-between;gap:24px;padding-bottom:20px;border-bottom:1px solid var(--aicv-border);margin-bottom:24px}.aicv-preview-header h1,.aicv-cv-header h1{font-size:clamp(32px,4vw,48px);margin:0;color:var(--aicv-text)}.aicv-headline,.aicv-preview-header p{margin:8px 0 0;color:var(--aicv-muted);font-size:18px}.aicv-contact-grid,.aicv-preview-contact{display:flex;flex-direction:column;gap:8px;color:var(--aicv-muted);text-align:right}.aicv-cv-section,.aicv-preview-frame section{margin-bottom:28px}.aicv-cv-section h2,.aicv-preview-frame h2{font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:var(--aicv-primary);margin:0 0 14px}.aicv-row-between{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.aicv-block-item,.aicv-preview-item{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--aicv-border)}.aicv-block-item:last-child,.aicv-preview-item:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.aicv-muted,.aicv-date{color:var(--aicv-muted)}.aicv-rich-text p{margin:0 0 10px;color:var(--aicv-text);line-height:1.7}.aicv-skill-cloud,.aicv-preview-skills{display:flex;flex-wrap:wrap;gap:10px}.aicv-chip,.aicv-preview-skills span{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border-radius:999px;background:#eff6ff;color:#1e3a8a;font-weight:600}.aicv-archive-inner{background:#fff;border:1px solid var(--aicv-border);padding:24px;border-radius:24px;box-shadow:var(--aicv-shadow)}.aicv-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.aicv-archive-card{border:1px solid var(--aicv-border);border-radius:18px;padding:18px}.aicv-templates-grid{display:grid;gap:16px}.aicv-templates-grid.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.aicv-template-item{background:#fff;border:1px solid var(--aicv-border);padding:18px;border-radius:18px;box-shadow:var(--aicv-shadow)}.aicv-login-note,.aicv-error-note{padding:16px 18px;border-radius:14px;background:#fff7ed;border:1px solid #fdba74;color:#9a3412}@media (max-width:900px){.aicv-builder-hero,.aicv-preview-header,.aicv-cv-header,.aicv-section-head{flex-direction:column;align-items:flex-start}.aicv-contact-grid,.aicv-preview-contact{text-align:left}.aicv-template-picker,.aicv-archive-grid,.aicv-templates-grid.columns-3,.aicv-form-grid,.aicv-repeater-grid{grid-template-columns:1fr 1fr}}@media (max-width:640px){.aicv-builder-wrap,.aicv-public-wrap,.aicv-archive-wrap{padding:14px}.aicv-form-grid,.aicv-repeater-grid,.aicv-template-picker,.aicv-archive-grid{grid-template-columns:1fr}.aicv-form-section,.aicv-preview-frame,.aicv-cv-shell{padding:18px}.aicv-skill-tag{grid-template-columns:1fr}.aicv-form-actions{justify-content:stretch}.aicv-form-actions .button{width:100%}}
.aicv-photo-panel{display:flex;align-items:center;gap:20px;margin-top:18px;padding:18px;border:1px dashed var(--aicv-border);border-radius:18px;background:#f8fafc}.aicv-photo-preview-wrap{width:120px;height:120px;border-radius:22px;overflow:hidden;background:#e2e8f0;display:grid;place-items:center;flex:0 0 120px}.aicv-photo-preview-wrap img{width:100%;height:100%;object-fit:cover}.aicv-photo-placeholder{padding:12px;text-align:center;color:var(--aicv-muted);font-size:13px}.aicv-photo-actions{display:flex;gap:10px;flex-wrap:wrap}.aicv-sortable-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.aicv-sort-item{padding:14px 16px;border:1px solid var(--aicv-border);border-radius:14px;background:#f8fafc;cursor:grab;font-weight:600}.aicv-sort-item.is-dragging{opacity:.45}.aicv-order-note{color:var(--aicv-muted);font-size:14px}.aicv-skill-item{background:#f8fafc;border:1px solid var(--aicv-border);border-radius:18px;padding:18px;display:grid;grid-template-columns:1.5fr 1fr auto;gap:10px;align-items:center}.aicv-profile-photo{width:92px;height:92px;border-radius:22px;overflow:hidden;flex:0 0 92px;background:#e2e8f0}.aicv-profile-photo img{width:100%;height:100%;object-fit:cover}.aicv-header-main{display:flex;align-items:center;gap:18px}.aicv-dashboard-wrap{max-width:1160px;margin:0 auto;padding:24px}.aicv-dashboard-table-wrap{background:#fff;border:1px solid var(--aicv-border);border-radius:24px;padding:18px;box-shadow:var(--aicv-shadow);overflow:auto}.aicv-dashboard-table{width:100%;border-collapse:collapse}.aicv-dashboard-table th,.aicv-dashboard-table td{padding:16px;border-bottom:1px solid var(--aicv-border);text-align:left;vertical-align:top}.aicv-dashboard-table tr:last-child td{border-bottom:none}.aicv-dashboard-row-actions{display:flex;gap:8px;flex-wrap:wrap}.aicv-dashboard-subline{margin-top:6px;color:var(--aicv-muted);font-size:14px}.aicv-empty-state{background:#fff;border:1px solid var(--aicv-border);padding:22px;border-radius:24px;box-shadow:var(--aicv-shadow)}
@media (max-width:640px){.aicv-photo-panel{flex-direction:column;align-items:flex-start}.aicv-sortable-sections{grid-template-columns:1fr}.aicv-skill-item{grid-template-columns:1fr}.aicv-header-main{align-items:flex-start}}
.aicv-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.aicv-option-block>label{display:block;font-weight:700;margin-bottom:10px;color:var(--aicv-text)}.aicv-radio-stack{display:grid;gap:12px}.aicv-choice-card{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--aicv-border);border-radius:18px;background:#f8fafc;cursor:pointer}.aicv-choice-card input{width:auto;margin-top:4px}.aicv-choice-card strong{display:block;color:var(--aicv-text)}.aicv-choice-card small{display:block;color:var(--aicv-muted);line-height:1.5;margin-top:4px}.aicv-layout-compact .aicv-preview-header,.aicv-layout-compact .aicv-cv-header{padding-bottom:14px;margin-bottom:16px;gap:16px}.aicv-layout-compact .aicv-preview-header h1,.aicv-layout-compact .aicv-cv-header h1{font-size:34px;line-height:1.05}.aicv-layout-compact .aicv-headline,.aicv-layout-compact .aicv-preview-header p{font-size:15px;margin-top:5px}.aicv-layout-compact .aicv-contact-grid,.aicv-layout-compact .aicv-preview-contact{gap:5px;font-size:13px}.aicv-layout-compact .aicv-cv-section,.aicv-layout-compact .aicv-preview-frame section{margin-bottom:16px}.aicv-layout-compact .aicv-cv-section h2,.aicv-layout-compact .aicv-preview-frame h2{margin-bottom:10px;font-size:11px;letter-spacing:.14em}.aicv-layout-compact .aicv-block-item,.aicv-layout-compact .aicv-preview-item{padding-bottom:10px;margin-bottom:10px}.aicv-layout-compact .aicv-rich-text p,.aicv-layout-compact .aicv-preview-item p{font-size:13px;line-height:1.45;margin-bottom:6px}.aicv-layout-compact .aicv-muted,.aicv-layout-compact .aicv-date{font-size:12px}.aicv-layout-compact .aicv-chip,.aicv-layout-compact .aicv-preview-skills span{padding:7px 10px;font-size:12px}.aicv-layout-compact .aicv-row-between h3,.aicv-layout-compact .aicv-preview-item h3{font-size:16px;margin:0 0 2px}.aicv-layout-compact .aicv-profile-photo{width:92px;height:92px;flex-basis:92px}.aicv-layout-compact.aicv-cv-shell,.aicv-layout-compact.aicv-preview-frame{padding:22px}.aicv-print-shell.aicv-layout-compact{max-width:794px;margin:0 auto}@media (max-width:900px){.aicv-option-grid{grid-template-columns:1fr}}
.aicv-template-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px;padding:16px 18px;border:1px solid var(--aicv-border);border-radius:18px;background:linear-gradient(135deg,#ffffff,#f8fbff)}
.aicv-template-intro p{margin:0;color:var(--aicv-muted);max-width:760px}
.aicv-premium-unlocked-note{display:inline-flex;align-items:center;padding:10px 14px;border-radius:999px;background:#ecfdf5;color:#047857;font-weight:700}
.aicv-template-card{min-height:180px}
.aicv-template-card-premium{background:linear-gradient(180deg,#fff,#f8fbff);border-color:#c7d2fe}
.aicv-template-card.is-locked{opacity:.9;cursor:pointer}
.aicv-template-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.aicv-template-meta{display:flex;flex-direction:column;gap:10px}
.aicv-template-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#0f172a;color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.aicv-template-upgrade{color:#1d4ed8;font-weight:700;text-decoration:none}
.aicv-template-upgrade:hover{text-decoration:underline}
.aicv-premium-dialog{max-width:760px}
.aicv-premium-copy h3{margin:14px 0 10px;font-size:32px;color:var(--aicv-text)}
.aicv-premium-copy p{color:var(--aicv-muted);line-height:1.7}
.aicv-premium-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.aicv-premium-help{font-size:13px;margin-top:14px}
.template-modern-sidebar .aicv-preview-header,.aicv-template-modern-sidebar .aicv-cv-header{background:linear-gradient(135deg,#eff6ff,#ffffff);padding:24px;border:1px solid #dbeafe;border-radius:20px}
.template-modern-sidebar .aicv-preview-frame,.aicv-template-modern-sidebar{background:linear-gradient(180deg,#fff,#f8fbff)}
.template-executive-timeline .aicv-preview-header,.aicv-template-executive-timeline .aicv-cv-header{border-bottom:2px solid #cbd5e1}
.template-executive-timeline .aicv-preview-item,.aicv-template-executive-timeline .aicv-block-item{position:relative;padding-left:24px}
.template-executive-timeline .aicv-preview-item:before,.aicv-template-executive-timeline .aicv-block-item:before{content:'';position:absolute;left:0;top:6px;width:10px;height:10px;border-radius:999px;background:#1d4ed8;box-shadow:0 0 0 6px #dbeafe}
.template-recruiter-onepage .aicv-preview-frame,.aicv-template-recruiter-onepage{max-width:860px;margin:0 auto}
.template-recruiter-onepage .aicv-preview-header h1,.aicv-template-recruiter-onepage .aicv-cv-header h1{font-size:clamp(28px,3vw,40px)}
.template-recruiter-onepage .aicv-preview-contact,.aicv-template-recruiter-onepage .aicv-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;text-align:left}
.template-recruiter-onepage .aicv-preview-item p,.aicv-template-recruiter-onepage .aicv-rich-text p{line-height:1.5}
.template-ats-pro .aicv-preview-frame,.aicv-template-ats-pro{border-radius:8px;border-color:#d1d5db;box-shadow:none;max-width:860px;margin:0 auto}
.template-ats-pro .aicv-preview-header,.aicv-template-ats-pro .aicv-cv-header{border-bottom:2px solid #111827;border-radius:0;padding-bottom:16px;margin-bottom:20px}
.template-ats-pro .aicv-preview-header h1,.aicv-template-ats-pro .aicv-cv-header h1{font-size:34px;letter-spacing:.01em}
.template-ats-pro .aicv-preview-header p,.aicv-template-ats-pro .aicv-headline{color:#111827;font-weight:600;font-size:16px}
.template-ats-pro .aicv-preview-contact,.aicv-template-ats-pro .aicv-contact-grid{gap:4px;font-size:13px;color:#374151}
.template-ats-pro .aicv-preview-frame h2,.aicv-template-ats-pro .aicv-cv-section h2{color:#111827;letter-spacing:.08em;margin-bottom:10px}
.template-ats-pro .aicv-preview-skills span,.aicv-template-ats-pro .aicv-chip{background:#f3f4f6;color:#111827;border-radius:4px}
.template-ats-pro .aicv-profile-photo,.aicv-template-ats-pro .aicv-profile-photo{border-radius:10px}
@media (max-width:900px){.aicv-template-intro{align-items:flex-start}.template-recruiter-onepage .aicv-preview-contact,.aicv-template-recruiter-onepage .aicv-contact-grid{grid-template-columns:1fr}}

/* Theme-integrated importer and stronger template-specific layouts */
.aicv-import-section{border-color:#bfdbfe;background:linear-gradient(135deg,#ffffff,#f8fbff)}
.aicv-import-panel{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px;border:1px dashed var(--aicv-border);border-radius:18px;background:#f8fafc}
.aicv-import-file-name{color:var(--aicv-muted);font-size:14px}
.aicv-import-note{margin:12px 0 0;color:var(--aicv-muted);font-size:13px;line-height:1.6}
#aicv-import-text{margin-top:14px;width:100%;font-family:monospace;font-size:13px;background:#fff}
.aicv-template-modern-sidebar{display:grid;grid-template-columns:280px 1fr;gap:28px}
.aicv-template-modern-sidebar .aicv-cv-header{grid-column:1 / -1}
.aicv-template-modern-sidebar .aicv-skill-cloud{align-items:flex-start}
.aicv-template-executive-timeline{border-top:8px solid #0f172a}
.aicv-template-executive-timeline .aicv-cv-header{display:block;text-align:left}
.aicv-template-creative{background:linear-gradient(135deg,#fff7ed,#ffffff)}
.aicv-template-creative .aicv-cv-header{background:#0f172a;color:#fff;border-radius:20px;padding:26px;border:0}
.aicv-template-creative .aicv-cv-header h1,.aicv-template-creative .aicv-headline,.aicv-template-creative .aicv-contact-grid,.aicv-template-creative .aicv-contact-grid a{color:#fff}
.aicv-template-minimal{box-shadow:none;border-color:#e5e7eb;border-radius:0}
.aicv-template-minimal .aicv-cv-header{border-bottom:1px solid #111827;border-radius:0}
.aicv-template-europass{display:grid;grid-template-columns:250px 1fr;gap:0;padding:0;overflow:hidden;border-radius:10px;border-color:#d1d5db;max-width:900px;margin:0 auto;background:#fff}
.aicv-europass-side{background:#eef3f8;padding:28px 22px;border-right:1px solid #d8e0ea}
.aicv-europass-main{padding:34px}
.aicv-europass-photo{width:132px;height:132px;border-radius:8px;overflow:hidden;background:#dbe2ea;margin-bottom:24px}
.aicv-europass-photo img{width:100%;height:100%;object-fit:cover}
.aicv-europass-side h2{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#1f4e79;border-bottom:1px solid #b8c7d9;padding-bottom:8px;margin:24px 0 12px}
.aicv-europass-contact,.aicv-europass-skills{display:grid;gap:8px;font-size:13px;color:#334155;word-break:break-word}
.aicv-europass-contact a{color:#1f4e79;text-decoration:none}
.aicv-europass-skills span{background:#fff;border:1px solid #d8e0ea;border-radius:5px;padding:7px 8px}
.aicv-europass-header{border-bottom:3px solid #1f4e79;margin-bottom:24px;padding-bottom:20px}
.aicv-europass-label{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#1f4e79;font-weight:700}
.aicv-europass-header h1{margin:8px 0 6px;font-size:38px;color:#0f172a}
.aicv-europass-header p{margin:0;color:#475569;font-weight:600}
.aicv-template-europass .aicv-cv-section h2{color:#1f4e79;border-bottom:1px solid #d8e0ea;padding-bottom:8px;letter-spacing:.08em}
.aicv-europass-row{display:grid;grid-template-columns:130px 1fr;gap:18px;padding:14px 0;border-bottom:1px solid #eef2f7}
.aicv-europass-date{font-size:12px;color:#64748b;font-weight:700}
.aicv-europass-row h3{margin:0 0 4px;color:#0f172a}
.template-europass{display:grid;grid-template-columns:220px 1fr;gap:0;padding:0;overflow:hidden}
.template-europass .aicv-preview-header{grid-column:1 / -1;background:#eef3f8;border-radius:0;padding:22px;border-bottom:3px solid #1f4e79}
.template-europass section{padding:0 24px}
@media (max-width:900px){.aicv-template-europass,.aicv-template-modern-sidebar{grid-template-columns:1fr}.aicv-europass-side{border-right:0;border-bottom:1px solid #d8e0ea}.aicv-europass-row{grid-template-columns:1fr}.template-europass{grid-template-columns:1fr}}
