:root{--slate-50: #f8fafc;--slate-200: #e2e8f0;--slate-300: #cbd5e1;--slate-400: #94a3b8;--slate-500: #64748b;--slate-600: #475569;--slate-700: #334155;--slate-800: #1e293b;--slate-900: #0f172a;--blue-50: #eff6ff;--blue-400: #60a5fa;--blue-500: #3b82f6;--blue-600: #2563eb;--blue-700: #1d4ed8;--indigo-50: #eef2ff;--indigo-200: #c7d2fe;--indigo-400: #818cf8;--indigo-500: #6366f1;--indigo-600: #4f46e5;--indigo-700: #4338ca;--gray-50: #f9fafb;--gray-200: #e5e7eb;--gray-300: #d1d5db;--gray-500: #6b7280;--gray-600: #4b5563;--gray-700: #374151;--gray-800: #1f2937;--red-500: #ef4444}:root{--background: 0 0% 100%;--foreground: 24 10% 10%;--card: 0 0% 100%;--card-foreground: 24 10% 10%;--popover: 0 0% 100%;--popover-foreground: 24 10% 10%;--border: 30 8% 86%;--input: 30 8% 86%;--primary: 24 10% 10%;--primary-foreground: 0 0% 100%;--secondary: 20 10% 94%;--secondary-foreground: 27 9% 23%;--muted: 20 10% 94%;--muted-foreground: 24 10% 55%;--accent: 20 10% 94%;--accent-foreground: 27 9% 23%;--ring: 25 10% 66%;--destructive: 0 72% 51%;--destructive-foreground: 0 0% 100%;--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-pixel: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 10px;--radius-xl: 14px;--radius-2xl: 16px;--radius-full: 9999px;--radius: var(--radius-md);--shadow-sm: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;background-color:#fafafa;background-image:linear-gradient(rgba(0,61,165,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(0,61,165,.07) 1px,transparent 1px);background-size:24px 24px;color:hsl(var(--foreground));font-size:.875rem;line-height:1.5;padding:1.25rem;display:flex;justify-content:center;align-items:flex-start;min-height:100vh}.app-container{width:100%;max-width:80rem;margin:0 auto;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius-2xl);box-shadow:var(--shadow-sm);padding:2rem}.header{text-align:left;margin-bottom:2rem;display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.header-actions{display:flex;align-items:center;gap:.125rem;flex-shrink:0}.header-actions .btn-icon-btn{width:2rem;height:2rem;border:none;background:transparent;box-shadow:none}.header-actions .btn-icon-btn:hover:not(:disabled){background:hsl(var(--muted-foreground) / .08)}.header-actions .btn-icon-btn:disabled{opacity:.35}.header h1{font-family:var(--font-pixel);font-size:2.25rem;font-weight:400;line-height:1.11;margin-bottom:.5rem}.header p{color:hsl(var(--muted-foreground))}.main-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem}.col-form,.col-preview{min-width:0}@media(min-width:768px){.main-grid{grid-template-columns:repeat(12,1fr)}.col-form{grid-column:span 5}.col-preview{grid-column:span 7}}.card{background:hsl(var(--muted));padding:1.25rem;border-radius:var(--radius-xl);box-shadow:var(--shadow-sm);border:1px solid hsl(var(--border));margin-bottom:1.5rem}.card-title{font-family:var(--font-sans);font-size:.875rem;font-weight:600;color:hsl(var(--foreground));margin-bottom:.75rem;display:flex;align-items:center;gap:.5rem}.card-header-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.75rem}.card-header-row .card-title{margin-bottom:0}.form-grid{display:grid;grid-template-columns:1fr;gap:1rem}@media(min-width:768px){.form-grid{grid-template-columns:repeat(2,1fr)}}.input-group{margin-bottom:1rem}.input-label{display:block;font-size:.688rem;font-weight:500;letter-spacing:.275px;color:hsl(var(--muted-foreground));margin-bottom:.375rem}.input-field{width:100%;padding:.5rem .75rem;border:1px solid hsl(var(--input));border-radius:var(--radius-md);font-family:inherit;font-size:.875rem;color:hsl(var(--foreground));background:hsl(var(--card));transition:all .2s}input.input-field,select.input-field{height:2.5rem}.input-field:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 2px hsl(var(--ring) / .25)}textarea.input-field{resize:vertical}.btn-add{color:hsl(var(--primary));font-size:.875rem;background:none;border:none;cursor:pointer;padding:0;font-family:inherit}.btn-add:hover{text-decoration:underline}.dynamic-field-item{position:relative;margin-bottom:1rem}.dynamic-field-item:last-child{margin-bottom:0}.dynamic-field-item+.dynamic-field-item{border-top:1px solid hsl(var(--border));margin-top:1rem;padding-top:1rem}.dynamic-field-item .input-field{margin-bottom:.5rem}.dynamic-field-item .input-field:last-child{margin-bottom:0}.input-bold{font-weight:700}.input-sm{font-size:.875rem}.btn-remove{position:absolute;right:.5rem;top:.5rem;background:hsl(var(--destructive));color:#fff;width:1.5rem;height:1.5rem;border-radius:50%;border:none;font-size:1rem;cursor:pointer;opacity:0;transition:opacity .2s;display:flex;align-items:center;justify-content:center;line-height:1;z-index:1}.dynamic-field-item .input-bold{padding-right:2.25rem}.dynamic-field-item:hover .btn-remove{opacity:1}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:hsl(var(--border));border-radius:var(--radius-md);padding:3px}.tab-trigger{display:inline-flex;align-items:center;justify-content:center;padding:.5rem .75rem;border:none;border-radius:var(--radius-sm);background:transparent;color:hsl(var(--muted-foreground));font-family:inherit;font-size:.875rem;font-weight:500;white-space:nowrap;cursor:pointer;transition:all .2s}.tab-trigger:hover{color:hsl(var(--foreground))}.tab-trigger:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:-1px}.tab-trigger.active{background:hsl(var(--card));color:hsl(var(--foreground));box-shadow:var(--shadow-sm)}.btn-primary{background:hsl(var(--card));color:hsl(var(--primary));padding:.625rem 1rem;border-radius:var(--radius-md);font-weight:600;font-size:.875rem;border:1px solid hsl(var(--border));cursor:pointer;width:100%;display:flex;justify-content:flex-start;align-items:center;gap:.5rem;box-shadow:var(--shadow-sm);transition:background .2s;font-family:inherit}.btn-primary:hover{background:hsl(var(--muted))}.btn-secondary{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));padding:.625rem 1rem;border-radius:var(--radius-md);font-weight:600;font-size:.875rem;border:1px solid hsl(var(--border));cursor:pointer;width:100%;display:flex;justify-content:center;align-items:center;gap:.5rem;transition:background .2s;font-family:inherit}.btn-secondary:hover{background:hsl(var(--secondary) / .8)}.btn{display:inline-flex;align-items:center;justify-content:flex-start;border-radius:var(--radius-md);font-size:.875rem;font-weight:500;height:2.5rem;padding:0 1rem;cursor:pointer;border:none;font-family:inherit;transition:background-color .15s ease,opacity .15s ease}.btn:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}.btn:disabled{pointer-events:none;opacity:.5}.btn-outline{background:hsl(var(--card));color:hsl(var(--foreground));border:1px solid hsl(var(--border));width:100%;gap:.5rem}.btn-outline:hover{background:hsl(var(--muted))}.btn-icon{display:inline-flex;align-items:center;justify-content:center}.card-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:.5rem;padding:0;border:none}.card-actions .btn-primary,.card-actions .btn-outline{flex:0 1 auto;min-width:0;width:auto;white-space:nowrap}.btn-icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.5rem;height:2.5rem;border-radius:var(--radius-md);border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--foreground));cursor:pointer;font-family:inherit;box-shadow:var(--shadow-sm);transition:background-color .15s ease,opacity .15s ease}.btn-icon-btn:hover:not(:disabled){background:hsl(var(--muted))}.btn-icon-btn:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}.btn-icon-btn:disabled{pointer-events:none;opacity:.4}.form-toolbar{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:0}.preview-sticky{position:sticky;top:2rem}.cv-preview-scale{width:100%;overflow:hidden}.cv-preview-container{background:#fff;min-height:29.7cm;width:21cm;margin:0;border:1px solid hsl(var(--border));border-radius:var(--radius-xl);box-shadow:var(--shadow-sm);overflow:hidden;transform-origin:top left}@media(max-width:640px){body{padding:.75rem}.app-container{padding:1.75rem 1rem;border-radius:1rem}.header h1{font-size:1.75rem}.card{padding:1.25rem;border-radius:.75rem}.input-field{padding:.625rem .75rem}.btn-add{padding:.5rem}.btn-remove{opacity:1}.tabs{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab-trigger{flex:1 1 0;font-size:.8125rem;padding:.5rem .25rem}.col-form{display:contents}.col-form>.card{min-width:0;margin-bottom:1rem}.col-form>.card-personal{order:1}.col-form>.card-experience{order:2}.col-form>.card-education{order:3}.col-form>.card-skills{order:4}.col-form>.card-template{order:5}.col-form>.card-actions{order:7}.col-preview{order:6}}.template-modern{display:grid;grid-template-columns:1fr 2fr;min-height:29.7cm}.template-modern .sidebar{background:var(--slate-800);color:#fff;padding:32px 24px}.template-modern .main-content{padding:32px 36px;color:var(--slate-700)}.mod-name{font-size:1.5rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.25rem}.mod-title{color:var(--blue-400);font-weight:500;margin-bottom:1.25rem}.mod-section-title{font-size:.75rem;font-weight:700;text-transform:uppercase;color:var(--slate-400);margin-bottom:.75rem;border-bottom:1px solid var(--slate-700);padding-bottom:.25rem}.mod-contact-list{list-style:none;font-size:.875rem;opacity:.9}.mod-contact-list li{margin-bottom:.5rem}.mod-skills{display:flex;flex-wrap:wrap;gap:.5rem}.mod-skill-badge{background:var(--slate-700);font-size:.75rem;padding:.25rem .5rem;border-radius:.25rem}.mod-main-title{font-size:1.25rem;font-weight:700;color:var(--slate-800);margin-bottom:.9rem;border-bottom:2px solid var(--blue-500);display:inline-block}.mod-section{margin-bottom:1.25rem}.mod-text{font-size:.875rem;line-height:1.55}.mod-item{margin-bottom:1rem}.mod-item-title{font-weight:700;color:var(--slate-800)}.mod-item-subtitle{color:var(--blue-600);font-size:.875rem;margin-bottom:.5rem}.template-professional{padding:50px;color:#1a1a1a}.prof-header{border-bottom:2px solid #1a1a1a;margin-bottom:30px;padding-bottom:20px;text-align:center}.prof-name{font-size:2.25rem;font-weight:700}.prof-title{font-size:1.25rem;color:var(--gray-600);text-transform:uppercase;letter-spacing:.1em;margin-top:.25rem}.prof-contact{display:flex;justify-content:center;gap:1rem;font-size:.875rem;margin-top:1rem;color:var(--gray-500)}.prof-section-title{font-size:1.125rem;font-weight:700;color:var(--gray-800);border-bottom:1px solid var(--slate-200);padding-bottom:.25rem;margin-bottom:.75rem;margin-top:1.5rem}.prof-text{font-size:.875rem;text-align:justify}.prof-item{margin-bottom:1rem}.prof-item-header{display:flex;justify-content:space-between;font-weight:700}.prof-item-subtitle{color:var(--gray-500);font-weight:400;font-size:.875rem}.prof-item-desc{font-size:.875rem;margin-top:.25rem}.prof-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.template-creative{padding:0}.cre-top-bar{background:linear-gradient(135deg,var(--indigo-500) 0%,#a855f7 100%);height:150px;display:flex;align-items:flex-end;padding:30px 50px;color:#fff}.cre-name{font-size:3rem;font-weight:900;font-style:italic;letter-spacing:-.05em;line-height:1}.cre-title{font-size:1.125rem;font-weight:300;opacity:.9;margin-top:.25rem}.cre-content-wrapper{padding:40px 50px;display:flex;gap:40px}.cre-sidebar{width:33.333%}.cre-main{width:66.666%}.cre-section-title{color:var(--indigo-600);font-weight:900;text-transform:uppercase;font-size:.75rem;letter-spacing:.1em;margin-bottom:1rem}.cre-contact-list{font-size:.875rem;display:flex;flex-direction:column;gap:.75rem;margin-bottom:2rem}.cre-skills{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem}.cre-skill-badge{border:1px solid var(--indigo-200);color:var(--indigo-700);padding:.25rem .5rem;font-size:.75rem;border-radius:9999px;font-weight:500}.cre-edu-item{margin-bottom:.75rem}.cre-edu-title{font-weight:700;font-size:.875rem;line-height:1.2}.cre-edu-school{font-size:.75rem;color:var(--gray-500)}.cre-text{color:var(--gray-700);line-height:1.625;margin-bottom:2rem}.cre-timeline{border-left:2px solid var(--indigo-50);margin-left:.5rem;padding-left:1.5rem;position:relative}.cre-timeline-item{position:relative;margin-bottom:1.5rem}.cre-timeline-dot{position:absolute;left:-1.9rem;top:.25rem;width:1rem;height:1rem;background:var(--indigo-500);border-radius:50%;border:4px solid white}.cre-item-title{font-weight:700;color:var(--gray-800)}.cre-item-subtitle{color:var(--indigo-500);font-size:.75rem;font-weight:700;margin-bottom:.5rem}.cre-item-desc{font-size:.875rem;color:var(--gray-600)}.mod-text p,.mod-text ul,.mod-text ol,.prof-item-desc p,.prof-item-desc ul,.prof-item-desc ol,.cre-item-desc p,.cre-item-desc ul,.cre-item-desc ol,.prof-text p,.prof-text ul,.prof-text ol,.cre-text p,.cre-text ul,.cre-text ol{margin:0 0 .35rem}.mod-text p:last-child,.prof-item-desc p:last-child,.cre-item-desc p:last-child,.prof-text p:last-child,.cre-text p:last-child{margin-bottom:0}.mod-text ul,.prof-item-desc ul,.cre-item-desc ul,.prof-text ul,.cre-text ul{list-style:disc;padding-left:1.25rem;margin:.25rem 0 .5rem}.mod-text ol,.prof-item-desc ol,.cre-item-desc ol,.prof-text ol,.cre-text ol{list-style:decimal;padding-left:1.25rem;margin:.25rem 0 .5rem}.mod-text li,.prof-item-desc li,.cre-item-desc li,.prof-text li,.cre-text li{margin-bottom:.2rem}.photo-row{display:flex;align-items:center;gap:.75rem}.photo-btn{width:auto;padding:.5rem 1rem;font-size:.875rem}#photo-thumb{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid var(--blue-500)}.actions-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.25rem;margin-top:.75rem}.btn-sm{padding:.5rem 1rem;font-size:.875rem}.btn-link{background:none;border:none;color:var(--blue-600);font-size:.85rem;cursor:pointer;padding:.25rem .35rem;font-family:inherit}.btn-link:hover{text-decoration:underline}.tips-info-btn{flex-shrink:0;background:none;border:none;cursor:pointer;color:hsl(var(--muted-foreground));display:inline-flex;align-items:center;justify-content:center;padding:6px;border-radius:var(--radius-md);transition:color .2s ease,background .15s ease}.tips-info-btn svg{width:1.15rem;height:1.15rem}@media(hover:hover){.tips-info-btn:hover{color:hsl(var(--foreground));background:hsl(var(--muted-foreground) / .08)}}.tips-dialog{padding:0;margin:auto;border:1px solid hsl(var(--border));border-radius:var(--radius-lg);background:hsl(var(--card));box-shadow:0 25px 50px -12px #00000040;max-width:26rem;width:calc(100vw - 2rem);font-family:inherit;overflow:visible}.tips-dialog::backdrop{background:#0006;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.tips-dialog__inner{padding:1.5rem}.tips-dialog__header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.85rem}.tips-dialog__title{margin:0;display:flex;align-items:center;gap:.5rem;font-size:.9375rem;font-weight:600;color:hsl(var(--foreground))}.tips-dialog__icon{flex-shrink:0;width:1.15rem;height:1.15rem;color:hsl(var(--foreground))}.tips-dialog__close{flex-shrink:0;background:transparent;border:none;padding:4px;border-radius:8px;cursor:pointer;color:hsl(var(--muted-foreground));display:inline-flex}.tips-dialog__close:hover{background:hsl(var(--muted-foreground) / .1);color:hsl(var(--foreground))}.tips-dialog[open]{animation:tips-dialog-in .15s ease-out}@keyframes tips-dialog-in{0%{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}.tips-list{margin:0;padding-left:1.25rem;font-size:.875rem;line-height:1.5;color:hsl(var(--foreground));display:flex;flex-direction:column;gap:.55rem}.mod-photo{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid var(--blue-400);margin-bottom:1.25rem}.cre-avatar-wrap{margin-left:auto}.cre-photo{width:84px;height:84px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.85)}#cv-format-bar{position:fixed;z-index:9999;display:flex;align-items:center;gap:2px;padding:4px;background:var(--slate-900);border-radius:.5rem;box-shadow:0 10px 30px #0f172a59;opacity:0;pointer-events:none;transform:translateY(4px) scale(.97);transition:opacity .12s ease,transform .12s ease}#cv-format-bar.visible{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}#cv-format-bar button{min-width:30px;height:30px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:.35rem;color:#fff;font-size:.9rem;font-family:inherit;cursor:pointer;transition:background .12s}#cv-format-bar button:hover{background:#ffffff29}#cv-toast{position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%) translateY(12px);z-index:10000;background:var(--slate-900);color:#fff;font-size:.85rem;padding:.6rem 1.1rem;border-radius:999px;box-shadow:0 10px 30px #0f172a59;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;max-width:calc(100vw - 2rem);text-align:center}#cv-toast.show{opacity:1;transform:translate(-50%) translateY(0)}@media print{body{background:#fff;padding:0;margin:0}.header,.col-form,#cv-format-bar,#cv-toast{display:none!important}.main-grid{display:block}.col-preview{position:absolute;top:0;left:0;width:100%;margin:0;padding:0}.cv-preview-scale{height:auto!important;overflow:visible!important}.cv-preview-container{width:21cm!important;min-height:0!important;margin:0!important;box-shadow:none!important;border:none!important;border-radius:0!important;overflow:visible!important;transform:scale(1)!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.template-modern{min-height:29.6cm}.mod-item,.prof-item,.cre-item,.prof-header{break-inside:avoid}.mod-main-title,.mod-section-title,.prof-section-title,.cre-section-title{break-after:avoid}@page{size:A4 portrait;margin:0}}
