:root{--bg: #f6f7fb;--surface: #ffffff;--surface-2: #f1f3f9;--text: #16181d;--muted: #6b7280;--border: #e7eaf2;--primary: #4f46e5;--primary-contrast: #ffffff;--danger: #dc2626;--shadow: 0 10px 30px rgba(16, 24, 40, .06);--radius: 18px}.theme-dark{--bg: #0f1115;--surface: #161a21;--surface-2: #1c212a;--text: #f4f7fb;--muted: #9aa4b2;--border: #28303a;--primary: #7c84ff;--primary-contrast: #0f1115;--danger: #ff6b6b;--shadow: 0 14px 40px rgba(0, 0, 0, .35)}*{box-sizing:border-box}html,body,#root{height:100%;min-height:100%}body{margin:0;overflow:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}a{color:inherit}.app-loading,.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(760px,100%)}.app-shell{height:100dvh;min-height:100dvh;display:grid;grid-template-columns:280px minmax(0,1fr);overflow:hidden}.sidebar{border-right:1px solid var(--border);background:color-mix(in srgb,var(--surface) 80%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:24px 18px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:20px;min-height:0;overflow:hidden}.desktop-sidebar{display:grid;height:100dvh;min-height:100dvh;max-height:100dvh}.brand{font-size:1.15rem;font-weight:800}.sidebar-nav{min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start}.nav{display:grid;gap:6px;align-content:start}.nav-link{width:100%;min-height:44px;height:auto;text-align:left;border:0;cursor:pointer;background:transparent;color:var(--text);padding:12px 14px;border-radius:14px}.nav-link:hover{background:var(--surface-2)}.nav-link.active{background:var(--surface);box-shadow:var(--shadow)}.sidebar-footer{margin-top:auto;display:grid;gap:10px}.content{min-width:0;height:100dvh;overflow-x:hidden;overflow-y:auto;padding:20px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.row{display:flex}.between{justify-content:space-between}.center{align-items:center}.wrap{flex-wrap:wrap}.gap-sm{gap:10px}.mb-lg{margin-bottom:20px}.stack-sm>*+*{margin-top:10px}.stack-md>*+*{margin-top:16px}.stack-lg>*+*{margin-top:22px}.muted,.small-muted{color:var(--muted)}.small-muted{font-size:.9rem}.pre-wrap{white-space:pre-wrap}.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat-card{min-height:120px;display:grid;align-content:center;gap:8px}.stat-label{color:var(--muted);font-weight:600}.stat-value{font-size:2rem;font-weight:800}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.full-span{grid-column:1 / -1}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-sections-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}label{display:grid;gap:8px}input,textarea,select{width:100%;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:14px;padding:12px 14px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--primary)}.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;border-radius:14px;padding:10px 14px;cursor:pointer;background:var(--surface-2);color:var(--text)}.btn-primary{background:var(--primary);color:var(--primary-contrast)}.btn-ghost{background:transparent;border:1px solid var(--border)}.btn-danger{background:color-mix(in srgb,var(--danger) 14%,var(--surface));color:var(--danger)}.error-box{grid-column:1 / -1;border:1px solid color-mix(in srgb,var(--danger) 40%,var(--border));background:color-mix(in srgb,var(--danger) 10%,var(--surface));color:var(--danger);border-radius:14px;padding:12px 14px}.list-button{width:100%;display:grid;gap:4px;text-align:left;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:14px;padding:12px 14px;cursor:pointer}.list-button.active{border-color:var(--primary)}.list-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}.list-row:last-child{border-bottom:0}.badge{display:inline-flex;align-items:center;justify-content:center;background:var(--surface-2);border:1px solid var(--border);border-radius:999px;padding:6px 10px;font-size:.9rem}.letter-preview{background:var(--surface-2);border-radius:14px;padding:18px}.premium-cv{background:#fff;color:#1a1a1a;border:1px solid #e7e7e7;border-radius:18px;overflow:hidden;display:grid;grid-template-columns:72mm 1fr;min-height:760px}.premium-left{background:#9f9287;color:#fff;padding:16mm 10mm}.premium-right{padding:18mm 14mm}.premium-photo{width:40mm;height:40mm;border-radius:999px;border:2mm solid rgba(255,255,255,.35);overflow:hidden;margin:0 auto 10mm;background:#ffffff1f}.premium-photo img{width:100%;height:100%;object-fit:cover}.premium-contact{font-size:10.5pt;line-height:1.45}.premium-block{margin-top:8mm}.premium-block-title{letter-spacing:3px;font-weight:700;font-size:11pt;margin:0 0 4mm}.premium-side-item{margin-top:4mm;font-size:9.5pt;line-height:1.4}.premium-bullets{margin:0;padding-left:4mm}.premium-bullets li{margin:2mm 0}.premium-header{background:#a3968b;color:#fff;padding:10mm 8mm;border-radius:2mm}.premium-header h1{font-family:Georgia,Times New Roman,serif;font-weight:700;font-size:26pt;margin:0;text-align:center;letter-spacing:.8px}.premium-rule{width:72mm;height:1px;background:#ffffff80;margin:5mm auto 0}.premium-section{margin-top:10mm}.premium-section-title{font-weight:800;font-size:10.5pt;letter-spacing:3px;color:#222;margin:0}.premium-section-line{height:1px;background:#ddd;margin:3mm 0 5mm}.premium-summary{font-size:10.5pt;line-height:1.55;color:#333}.premium-exp{display:flex;gap:6mm;margin-bottom:6mm}.premium-exp-dates{width:24mm;font-size:9pt;color:#777;text-align:center}.premium-exp-main{flex:1}.premium-exp-title{font-weight:800;font-size:11pt;margin:0;color:#222}.premium-exp-sub{font-size:10pt;color:#555;margin-top:1mm}.premium-refs{display:flex;flex-wrap:wrap;gap:8mm}.premium-ref{width:45%;font-size:9.5pt;color:#333}.premium-ref-name{font-weight:800}.mobile-topbar{display:none}.mobile-overlay{position:fixed;inset:0;background:#00000073;z-index:40}.mobile-drawer{position:fixed;top:0;left:0;width:min(86vw,340px);height:100dvh;background:var(--surface);border-right:1px solid var(--border);box-shadow:var(--shadow);z-index:50;padding:20px 16px;display:flex;flex-direction:column;gap:16px;overflow:hidden}.mobile-drawer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.mobile-title{font-weight:800;font-size:1rem}.mobile-menu-btn{min-width:44px}.theme-dark .premium-cv{background:#12151b;border-color:#2b3340;color:#f5f7fb}.theme-dark .premium-right{background:#12151b}.theme-dark .premium-summary,.theme-dark .premium-exp-title,.theme-dark .premium-ref,.theme-dark .premium-section-title{color:#f5f7fb}.theme-dark .premium-exp-sub,.theme-dark .premium-exp-dates,.theme-dark .premium-side-item,.theme-dark .muted,.theme-dark .small-muted{color:#a8b2c1}.theme-dark .premium-section-line{background:#2b3340}.theme-dark .letter-preview,.theme-dark .list-button,.theme-dark input,.theme-dark textarea,.theme-dark select{background:#1c212a}.theme-dark .card{background:#161a21}.cv-preview{width:100%;background:#fff;color:#1a1a1a;border:1px solid #e6e6e6;border-radius:18px;overflow:hidden}.cv-preview-premium{display:grid;grid-template-columns:72mm 1fr;min-height:760px}.cv-premium-left{background:#9f9287;color:#fff;padding:16mm 10mm}.cv-premium-right{background:#fff;color:#222}.cv-premium-photo{width:40mm;height:40mm;border-radius:999px;border:2mm solid rgba(255,255,255,.35);overflow:hidden;margin:0 auto 10mm;background:#ffffff1f}.cv-premium-photo img{width:100%;height:100%;object-fit:cover}.cv-premium-contact{font-size:10.5pt;line-height:1.45}.cv-premium-block{margin-top:8mm}.cv-premium-block-title{letter-spacing:3px;font-weight:700;font-size:11pt;margin:0 0 4mm}.cv-premium-side-item{margin-top:4mm;font-size:9.5pt;line-height:1.4}.cv-premium-bullets{margin:0;padding-left:4mm}.cv-premium-bullets li{margin:2mm 0}.cv-premium-header{background:#a3968b;color:#fff;padding:10mm 8mm;border-radius:0;text-align:center;width:100%}.cv-premium-header h1{font-family:Georgia,Times New Roman,serif;font-weight:700;font-size:26pt;margin:0;letter-spacing:.8px}.cv-premium-rule{width:72mm;height:1px;background:#ffffff80;margin:5mm auto 0}.cv-premium-section{padding:0 14mm;margin-top:10mm}.cv-premium-section:first-of-type{margin-top:8mm}.cv-premium-section-title{font-weight:800;font-size:10.5pt;letter-spacing:3px;color:#222;margin:0}.cv-premium-section-line{height:1px;background:#ddd;margin:3mm 0 5mm}.cv-premium-summary{font-size:10.5pt;line-height:1.55;color:#333;white-space:pre-wrap}.cv-premium-exp{display:flex;gap:6mm;margin-bottom:6mm}.cv-premium-exp-dates{width:24mm;font-size:9pt;color:#777;text-align:center;flex-shrink:0}.cv-premium-exp-main{flex:1}.cv-premium-exp-title{font-weight:800;font-size:11pt;margin:0;color:#222}.cv-premium-exp-sub{font-size:10pt;color:#555;margin-top:1mm}.cv-premium-refs{display:flex;flex-wrap:wrap;gap:8mm}.cv-premium-ref{width:45%;font-size:9.5pt;color:#333}.cv-premium-ref-name{font-weight:800}.cv-preview-clean{padding:16mm}.cv-clean-header{border-bottom:2px solid #d1d5db;padding-bottom:5mm;margin-bottom:6mm}.cv-clean-header h1{font-family:Georgia,Times New Roman,serif;font-size:22pt;font-weight:700;margin:0 0 2mm;color:#111827}.cv-clean-meta{color:#4b5563;font-size:9.5pt;line-height:1.5}.cv-clean-summary{margin:0 0 7mm;line-height:1.55;color:#374151;white-space:pre-wrap}.cv-clean-grid{display:grid;grid-template-columns:34% 1fr;gap:8mm}.cv-clean-block{margin-bottom:6mm}.cv-clean-title{font-size:10pt;font-weight:700;letter-spacing:2px;color:#111827;margin:0 0 2mm;text-transform:uppercase}.cv-clean-rule{height:1px;background:#d1d5db;margin:0 0 3mm}.cv-clean-item{margin-bottom:4mm}.cv-clean-item-title{font-weight:700;font-size:10pt;color:#111827;margin:0}.cv-clean-item-meta{color:#6b7280;font-size:9.2pt;line-height:1.4;margin-top:1mm;white-space:pre-wrap}.cv-clean-list{margin:0;padding-left:4.5mm}.cv-clean-list li{margin:1mm 0;line-height:1.45;font-size:9.6pt}.cv-preview-modern{padding:16mm}.cv-modern-top{margin-bottom:6mm}.cv-modern-top h1{font-family:Georgia,Times New Roman,serif;font-size:24pt;margin:0}.cv-modern-photo{width:26mm;height:26mm;border-radius:999px;overflow:hidden;background:#e5e7eb;margin-bottom:3mm}.cv-modern-photo img{width:100%;height:100%;object-fit:cover}.cv-modern-muted{color:#6b7280;line-height:1.45;white-space:pre-wrap}.cv-modern-grid{display:grid;grid-template-columns:30% 1fr;gap:8mm}.cv-modern-card{background:#f5f5f4;border:1px solid #e7e5e4;padding:4mm;border-radius:3mm;margin-bottom:5mm}.cv-modern-title{font-size:9.6pt;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:#57534e;margin:0 0 2.2mm}.cv-modern-sep{height:1px;background:#e5e7eb;margin:0 0 3mm}.cv-modern-item{margin-bottom:3.2mm}.cv-modern-item strong{color:#111827}.cv-modern-list{margin:1.6mm 0 0;padding-left:4.5mm}.cv-modern-list li{margin:.9mm 0;line-height:1.45}.theme-dark .cv-preview{background:#12151b;border-color:#2b3340;color:#f5f7fb}.theme-dark .cv-premium-right,.theme-dark .cv-preview-clean,.theme-dark .cv-preview-modern{background:#12151b;color:#f5f7fb}.theme-dark .cv-premium-section-title,.theme-dark .cv-premium-exp-title,.theme-dark .cv-premium-ref,.theme-dark .cv-clean-title,.theme-dark .cv-clean-item-title,.theme-dark .cv-clean-header h1,.theme-dark .cv-modern-title,.theme-dark .cv-modern-item strong,.theme-dark .cv-modern-top h1{color:#f5f7fb}.theme-dark .cv-premium-summary,.theme-dark .cv-premium-exp-sub,.theme-dark .cv-premium-exp-dates,.theme-dark .cv-premium-side-item,.theme-dark .cv-clean-meta,.theme-dark .cv-clean-summary,.theme-dark .cv-clean-item-meta,.theme-dark .cv-modern-muted{color:#a8b2c1}.theme-dark .cv-premium-section-line,.theme-dark .cv-clean-rule,.theme-dark .cv-modern-sep{background:#2b3340}.theme-dark .cv-modern-card{background:#1b2028;border-color:#2b3340}.cv-page-shell{height:calc(100dvh - 40px);min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:16px;overflow:hidden}.cv-page-top,.cv-toolbar-row{min-height:0}.cv-edit-shell{height:calc(100dvh - 40px);min-height:0;display:grid;grid-template-columns:minmax(320px,520px) minmax(0,1fr);gap:16px;align-items:stretch;overflow:hidden}.cv-form-column{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:4px}.cv-page-shell.stack-md>*+*,.cv-form-column.stack-md>*+*{margin-top:0}.cv-preview-card{min-width:0;min-height:0;height:100%;overflow:hidden;display:flex;flex-direction:column}.cv-preview-card h2{margin-top:0;margin-bottom:12px;flex:0 0 auto}.cv-preview-card--edit,.cv-preview-card--full{height:100%}.cv-preview-inner,.cv-mobile-preview-inner{flex:1 1 auto;min-height:0;overflow:auto}.cv-mobile-overlay{position:fixed;inset:0;z-index:2000;background:#000000a6;padding:12px;display:flex;align-items:stretch;justify-content:center}.cv-mobile-preview-card{width:100%;max-width:100%;height:100%;max-height:100%;overflow:hidden;display:flex;flex-direction:column}@media(max-width:980px){body{overflow:auto}.app-shell{height:auto;min-height:100dvh;grid-template-columns:1fr;overflow:visible}.desktop-sidebar{display:none}.mobile-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:30;padding:14px 18px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.two-col,.stats-grid,.form-grid,.detail-grid,.profile-sections-grid,.cv-preview-premium,.cv-clean-grid,.cv-modern-grid,.cv-edit-shell{grid-template-columns:1fr}.content{height:auto;overflow:visible;padding:18px}.sidebar{border-right:0;border-bottom:1px solid var(--border)}.premium-cv{grid-template-columns:1fr}.premium-left,.premium-right,.cv-premium-left,.cv-premium-section,.cv-preview-clean,.cv-preview-modern{padding:20px}.cv-premium-ref{width:100%}.cv-page-shell,.cv-edit-shell{height:auto;min-height:0;overflow:visible}.cv-form-column{overflow:visible;padding-right:0}}
