:root{color-scheme:light;font-family:Inter,system-ui,-apple-system,sans-serif;background-color:#f5f6fa;color:#1f2933}*{box-sizing:border-box}body{margin:0}.app{max-width:1100px;margin:0 auto;padding:32px 24px 48px;display:flex;flex-direction:column;gap:24px}.header{display:flex;justify-content:space-between;align-items:center}h1{margin:0 0 8px;font-size:28px}h2{margin:0 0 16px;font-size:20px}.panel{background:#fff;border-radius:16px;padding:24px;box-shadow:0 10px 25px #0f172a0f}.panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.panel-header h2{margin:0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px;color:#52606d}input,textarea{padding:10px 12px;border-radius:10px;border:1px solid #d7dce3;font-size:14px;width:100%;font-family:inherit}input:focus,textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}textarea{resize:vertical}input.translating{background:#f0f9ff;border-color:#7dd3fc}.competence-list{display:flex;flex-direction:column;gap:16px}.competence-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.field-group{display:grid;grid-template-columns:1fr 1fr;gap:12px}.row-footer{display:flex;justify-content:space-between;align-items:center;padding-top:8px;border-top:1px solid #e2e8f0}.status{font-size:12px;font-weight:500;padding:4px 8px;border-radius:6px}.status.existing{background:#dcfce7;color:#166534}.status.new{background:#fef3c7;color:#92400e}.autocomplete-wrapper{position:relative}.autocomplete-list{position:absolute;top:100%;left:0;right:0;z-index:100;background:#fff;border:1px solid #d7dce3;border-radius:10px;margin-top:4px;padding:4px;list-style:none;max-height:240px;overflow-y:auto;box-shadow:0 10px 25px #0f172a26}.autocomplete-list li{padding:10px 12px;cursor:pointer;border-radius:8px;display:flex;flex-direction:column;gap:2px}.autocomplete-list li:hover{background:#f1f5f9}.autocomplete-list li strong{font-size:14px;color:#1f2933}.autocomplete-list li .en{font-size:12px;color:#64748b}button{border:none;border-radius:12px;padding:10px 16px;font-weight:600;cursor:pointer;font-family:inherit}button.primary{background:#2563eb;color:#fff}button.primary:hover:not(:disabled){background:#1d4ed8}button.secondary{background:#e0e7ff;color:#1e40af}button.secondary:hover{background:#c7d2fe}button.ghost{background:transparent;color:#e11d48}button.ghost:hover{background:#fef2f2}button:disabled{opacity:.5;cursor:not-allowed}.success{color:#15803d;margin:12px 0 0}.error{color:#b91c1c;margin:12px 0 0}.hint{color:#64748b;margin:12px 0 0}.footer{display:flex;flex-direction:column;gap:8px}.footer button.primary{width:100%}.table{display:flex;flex-direction:column;gap:12px}.table-row{display:grid;grid-template-columns:1.2fr 1.2fr 1.4fr .6fr 1.8fr .8fr;gap:12px;align-items:center}.table-head{font-weight:700;color:#52606d}.checkbox{display:flex;align-items:center;gap:6px;font-weight:500}.translate-warning{background:#fef3c7;border:1px solid #fcd34d;border-radius:10px;padding:12px 16px;color:#92400e;font-weight:500;font-size:14px}.card-status{margin-bottom:4px}.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:6px 10px;border-radius:8px}.badge-existing{background:#dcfce7;color:#166534}.badge-new{background:#fef3c7;color:#92400e}.badge-empty{background:#f1f5f9;color:#64748b}.competence-card.existing{border-color:#86efac;background:#f0fdf4}.competence-card.new{border-color:#fcd34d;background:#fffbeb}.autocomplete-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;cursor:pointer;border-radius:8px}.autocomplete-item:hover{background:#f1f5f9}.autocomplete-item.existing .item-badge{color:#16a34a;font-size:14px;flex-shrink:0;width:20px;text-align:center}.autocomplete-item.add-new{border-top:1px solid #e2e8f0;margin-top:4px;padding-top:12px}.autocomplete-item.add-new .item-badge{color:#d97706;font-size:14px;flex-shrink:0;width:20px;text-align:center}.autocomplete-item.add-new:hover{background:#fffbeb}.autocomplete-item.loading{color:#64748b;font-style:italic}.item-content{display:flex;flex-direction:column;gap:2px;min-width:0}.item-content strong{font-size:14px;color:#1f2933}.item-en{font-size:12px;color:#64748b}.row-info{font-size:12px;color:#64748b;font-style:italic}.field-section{display:flex;flex-direction:column;gap:8px}.field-header{display:flex;align-items:center;gap:12px}.field-label{font-weight:600;font-size:14px;color:#1f2933}button.danger{background:#dc2626;color:#fff}button.danger:hover:not(:disabled){background:#b91c1c}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-dialog{background:#fff;border-radius:16px;padding:28px;max-width:480px;width:90%;box-shadow:0 20px 60px #0003;display:flex;flex-direction:column;gap:16px}.modal-dialog h3{margin:0;font-size:18px}.modal-warning{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:12px 16px;color:#991b1b;font-size:14px;margin:0}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:8px}.xml-preview-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.xml-preview-modal{background:#fff;border-radius:16px;padding:24px;max-width:900px;width:95%;max-height:85vh;display:flex;flex-direction:column;gap:16px;box-shadow:0 20px 60px #0003}.xml-preview-header{display:flex;justify-content:space-between;align-items:center}.xml-preview-header h2{margin:0}.xml-preview-close{background:transparent;font-size:24px;padding:4px 10px;color:#64748b}.xml-preview-close:hover{color:#1f2933}.xml-preview-warnings{background:#fef3c7;border:1px solid #fcd34d;border-radius:10px;padding:12px 16px;color:#92400e;font-size:14px}.xml-preview-warnings p{margin:4px 0}.xml-preview-tabs{display:flex;gap:4px;border-bottom:2px solid #e2e8f0;padding-bottom:0}.xml-preview-tabs button{background:transparent;color:#64748b;padding:8px 16px;border-radius:8px 8px 0 0;font-size:13px}.xml-preview-tabs button.active{background:#f1f5f9;color:#1e40af;font-weight:700}.xml-preview-content{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:16px;overflow:auto;flex:1;font-size:12px;line-height:1.6;max-height:50vh;white-space:pre-wrap;word-break:break-word}.xml-preview-actions{display:flex;justify-content:flex-end;gap:10px}.header-actions{display:flex;gap:8px;align-items:center}.header-btn{background:#e0e7ff;color:#1e40af;font-size:13px;padding:8px 14px;border-radius:10px}.header-btn:hover{background:#c7d2fe}.header-btn-new{background:#2563eb;color:#fff}.header-btn-new:hover{background:#1d4ed8}.header-btn-logout{background:transparent;color:#dc2626;border:1px solid #fecaca}.header-btn-logout:hover{background:#fef2f2;color:#b91c1c}.project-menu{background:#fff;border-radius:16px;padding:20px;box-shadow:0 10px 25px #0f172a1f;border:1px solid #e2e8f0}.project-menu-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.project-menu-header h3{margin:0;font-size:16px}.project-menu-close{background:transparent;font-size:22px;padding:4px 10px;color:#64748b;line-height:1}.project-menu-close:hover{color:#1f2933}.project-menu-empty{color:#94a3b8;font-size:14px;font-style:italic;margin:8px 0}.project-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.project-item{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;transition:background .15s}.project-item:hover{background:#f1f5f9}.project-item.active{background:#eff6ff;border:1px solid #bfdbfe}.project-info{flex:1;cursor:pointer;display:flex;flex-direction:column;gap:2px;min-width:0}.project-name{font-weight:600;font-size:14px;color:#1f2933;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-date{font-size:12px;color:#94a3b8}.project-delete{background:transparent;color:#94a3b8;font-size:18px;padding:4px 8px;line-height:1;flex-shrink:0}.project-delete:hover{color:#e11d48;background:#fef2f2}.wizard-nav{display:flex;gap:8px;background:#fff;border-radius:14px;padding:6px;box-shadow:0 2px 8px #0f172a0f}.wizard-step{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px;background:transparent;border-radius:10px;color:#94a3b8;font-size:14px;transition:all .2s}.wizard-step:hover:not(:disabled){background:#f8fafc;color:#64748b}.wizard-step.active{background:#2563eb;color:#fff;box-shadow:0 2px 8px #2563eb4d}.wizard-step.complete:not(.active){color:#16a34a}.wizard-step:disabled{opacity:.5;cursor:not-allowed}.step-number{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-weight:700;font-size:13px;background:#e2e8f0;color:#64748b;flex-shrink:0}.wizard-step.active .step-number{background:#ffffff40;color:#fff}.wizard-step.complete:not(.active) .step-number{background:#dcfce7;color:#16a34a}.step-label{font-weight:600}.step-check{font-size:14px;color:#16a34a}.wizard-step.active .step-check{color:#fff}.category-groups{display:flex;flex-direction:column;gap:20px}.category-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden}.category-box-header{background:#f1f5f9;padding:14px 16px;border-bottom:1px solid #e2e8f0}.category-box-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.category-box-name{font-weight:700;font-size:15px;color:#1f2933}.category-box-name-en{font-size:14px;color:#64748b;font-weight:400}.category-edit-btn{background:transparent;color:#64748b;font-size:14px;padding:4px 8px;line-height:1}.category-edit-btn:hover{color:#2563eb;background:#eff6ff}.category-delete-btn{background:transparent;color:#94a3b8;font-size:18px;padding:4px 8px;line-height:1}.category-delete-btn:hover{color:#e11d48;background:#fef2f2}.category-delete-btn-input{align-self:center;margin-top:18px}.category-box-input{width:100%}.category-box-input .field-group{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.category-description-fields{padding:12px 16px;border-bottom:1px solid #e2e8f0;background:#fafbfc}.category-box-content{padding:16px;display:flex;flex-direction:column;gap:12px}.competence-item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.competence-item-footer{display:flex;justify-content:space-between;align-items:center;padding-top:8px;border-top:1px solid #f1f5f9}.add-competence-btn{background:transparent;border:1px dashed #cbd5e1;color:#64748b;padding:10px 16px;border-radius:10px;font-size:13px;width:100%;text-align:center}.add-competence-btn:hover{background:#f8fafc;border-color:#94a3b8;color:#1f2933}.add-category-btn{background:transparent;border:2px dashed #cbd5e1;color:#64748b;padding:16px;border-radius:14px;font-size:14px;font-weight:600;width:100%;text-align:center}.add-category-btn:hover{background:#f8fafc;border-color:#2563eb;color:#2563eb}.panel-subtitle{font-size:14px;color:#64748b;font-weight:400}.category-group{margin-bottom:24px}.category-group:last-child{margin-bottom:0}.category-title{font-size:16px;font-weight:700;color:#1f2933;margin:0 0 12px;padding-bottom:8px;border-bottom:2px solid #e2e8f0}.category-title-en{font-weight:400;color:#64748b;font-size:14px}.question-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin-bottom:12px}.question-card:last-child{margin-bottom:0}.question-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.competence-name{margin:0;font-size:15px;font-weight:700;color:#1f2933}.competence-name-en{font-weight:400;font-size:14px;color:#64748b}.question-status{font-size:12px;font-weight:600;padding:4px 10px;border-radius:8px;white-space:nowrap}.question-status-complete{background:#dcfce7;color:#166534}.question-status-partial{background:#fef3c7;color:#92400e}.question-status-empty{background:#f1f5f9;color:#94a3b8}.question-row{display:flex;gap:12px;margin-bottom:12px;align-items:flex-start}.question-row:last-child{margin-bottom:0}.question-label{display:flex;align-items:center;gap:6px;min-width:110px;padding-top:24px;font-weight:600;font-size:13px;color:#52606d;flex-shrink:0}.question-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:12px;font-weight:700;flex-shrink:0}.question-icon-not{background:#fef2f2;color:#dc2626}.question-icon-yes{background:#dcfce7;color:#16a34a}.question-inputs{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.footer-buttons{display:flex;gap:10px;flex-wrap:wrap}.footer-buttons .primary{flex:1}.field-warning{font-size:12px;color:#d97706;font-weight:500;margin-top:2px}.badge-small{font-size:10px;padding:2px 6px;border-radius:6px}input.warning-input{border-color:#f59e0b;background:#fffbeb}input.warning-input:focus{border-color:#d97706;box-shadow:0 0 0 3px #f59e0b26}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eff6ff,#f5f6fa,#eef2ff);padding:24px}.login-box{background:#fff;border-radius:20px;padding:40px;width:100%;max-width:420px;box-shadow:0 20px 60px #0f172a1a}.login-header{text-align:center;margin-bottom:32px}.login-header h1{font-size:24px;color:#1f2933;margin:0 0 8px}.login-notice{font-size:13px;color:#94a3b8;margin:0;font-style:italic}.login-form{display:flex;flex-direction:column;gap:16px}.login-error{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:10px 14px;color:#dc2626;font-size:13px;font-weight:500}.login-btn{background:#2563eb;color:#fff;padding:12px;border-radius:12px;font-size:15px;font-weight:600;margin-top:4px;transition:background .15s}.login-btn:hover:not(:disabled){background:#1d4ed8}.login-btn:disabled{opacity:.6;cursor:not-allowed}.env-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f5f6fa;padding:24px;font-family:Inter,system-ui,-apple-system,sans-serif}.env-content{text-align:center;width:100%;max-width:760px}.env-logo{margin-bottom:48px}.env-logo-icon{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:20px;background:#2563eb;color:#fff;margin-bottom:20px;box-shadow:0 8px 24px #2563eb40}.env-title{font-size:32px;font-weight:700;color:#1f2933;margin:0 0 6px;letter-spacing:-.5px}.env-subtitle{font-size:14px;color:#64748b;margin:0;font-weight:500;letter-spacing:1px;text-transform:uppercase}.env-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:32px}@media (max-width: 600px){.env-cards{grid-template-columns:1fr}}.env-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px 24px;cursor:pointer;transition:all .2s ease;text-decoration:none;color:inherit;font-family:inherit;font-size:inherit;box-shadow:0 2px 8px #0f172a0f}.env-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px #0f172a1a}.env-card-test:hover{border-color:#bfdbfe;box-shadow:0 12px 32px #2563eb1f}.env-card-prod:hover{border-color:#86efac;box-shadow:0 12px 32px #16a34a1f}.env-card-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;margin-bottom:16px}.env-card-test .env-card-icon{background:#eff6ff;color:#2563eb}.env-card-prod .env-card-icon{background:#dcfce7;color:#16a34a}.env-card-content h2{font-size:18px;font-weight:700;color:#1f2933;margin:0 0 8px}.env-card-content p{font-size:13px;color:#64748b;margin:0;line-height:1.6}.env-card-badge{position:absolute;top:16px;right:16px;font-size:10px;font-weight:700;letter-spacing:1.5px;padding:4px 10px;border-radius:8px}.env-badge-test{background:#eff6ff;color:#2563eb}.env-badge-prod{background:#dcfce7;color:#16a34a}.env-card-arrow{position:absolute;bottom:20px;right:20px;font-size:20px;color:#cbd5e1;transition:all .2s ease}.env-card-test:hover .env-card-arrow{color:#2563eb;transform:translate(4px)}.env-card-prod:hover .env-card-arrow{color:#16a34a;transform:translate(4px)}.env-footer{font-size:13px;color:#94a3b8;margin:0}
