:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*{box-sizing:border-box;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}body{color:#0f172a;background:linear-gradient(135deg,#e0f2fe 0%,#f0f9ff 50%,#dbeafe 100%);min-height:100vh;margin:0;padding:0}.app-root{color:#0f172a;background:linear-gradient(135deg,#e0f2fe 0%,#f0f9ff 50%,#dbeafe 100%);min-height:100vh}.container{max-width:1350px;margin:0 auto;padding:20px}.page-header-bar{background:#fff;border-bottom:2px solid #38bdf8;justify-content:space-between;align-items:center;padding:14px 28px;display:flex;box-shadow:0 4px 20px #0284c71f}.back-home-btn{color:#0284c7;cursor:pointer;background:#f0f9ff;border:1px solid #0284c7;border-radius:6px;padding:8px 18px;font-weight:700;transition:all .2s}.back-home-btn:hover{color:#fff;background:#0284c7;box-shadow:0 0 12px #0284c74d}.route-tag{color:#fff;letter-spacing:.5px;background:linear-gradient(90deg,#0052d4,#0072ff);border-radius:20px;padding:6px 16px;font-size:13px;font-weight:700;box-shadow:0 2px 10px #0072ff40}.header{border-bottom:2px solid #bae6fd;justify-content:space-between;align-items:center;margin-bottom:25px;padding-bottom:15px;display:flex}.header h1{color:#0369a1;margin:0}.ws-badge{letter-spacing:.5px;border-radius:20px;padding:6px 16px;font-size:13px;font-weight:700}.ws-badge.connected{color:#fff;background-color:#10b981;box-shadow:0 0 10px #10b9814d}.ws-badge.disconnected{color:#fff;background-color:#ef4444;box-shadow:0 0 10px #ef44444d}.welcome-container{justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.welcome-card{text-align:center;background:#fff;border:1px solid #7dd3fc;border-radius:20px;width:100%;max-width:820px;padding:45px 40px;box-shadow:0 20px 50px #0284c726}.logo-badge{color:#0284c7;letter-spacing:1px;background:#e0f2fe;border:1px solid #0284c7;border-radius:20px;margin-bottom:20px;padding:6px 20px;font-size:13px;font-weight:700;display:inline-block}.welcome-card h1{color:#0369a1;margin:0 0 12px;font-size:34px}.welcome-card p{color:#475569;margin-bottom:35px;font-size:15px}.mode-options{grid-template-columns:1fr 1fr;gap:24px;display:grid}.option-card{text-align:left;cursor:pointer;background:#f8fafc;border:2px solid #bae6fd;border-radius:16px;flex-direction:column;justify-content:space-between;padding:28px;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex}.option-card:hover{background:#f0f9ff;border-color:#0284c7;transform:translateY(-6px);box-shadow:0 12px 30px #0284c733}.option-icon{margin-bottom:15px;font-size:40px}.option-info h2{color:#0284c7;margin:0 0 10px;font-size:20px}.option-info p{color:#475569;margin:0 0 24px;font-size:13px;line-height:1.6}.select-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0052d4,#0072ff);border:none;border-radius:8px;width:100%;padding:12px;font-size:14px;font-weight:700;transition:all .2s;box-shadow:0 4px 15px #0072ff4d}.select-btn:hover{background:linear-gradient(135deg,#06f,#00d4ff);box-shadow:0 6px 20px #00d4ff66}.otomatis-container{text-align:center;max-width:920px;margin:30px auto;padding:0 20px}.ws-badge-container{justify-content:flex-end;margin-bottom:20px;display:flex}.auto-step-card{background:#fff;border:1px solid #7dd3fc;border-radius:20px;padding:60px 30px;box-shadow:0 15px 35px #0284c71a}.auto-step-card h2{color:#0369a1}.auto-step-card p{color:#475569}.auto-icon{margin-bottom:20px;font-size:72px}.primary-btn-large{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0284c7,#00c6ff);border:none;border-radius:30px;margin-top:25px;padding:16px 42px;font-size:18px;font-weight:700;transition:all .2s;box-shadow:0 6px 20px #00c6ff59}.primary-btn-large:hover{transform:scale(1.05);box-shadow:0 8px 25px #00c6ff80}.camera-stage{flex-direction:column;align-items:center;gap:24px;display:flex}.camera-frame-wrapper{aspect-ratio:4/3;background:#000;border:4px solid #0284c7;border-radius:20px;width:100%;max-width:680px;position:relative;overflow:hidden;box-shadow:0 20px 40px #0284c740}.webcam-video{object-fit:cover;width:100%;height:100%;transform:scaleX(-1)}.face-scanner-overlay{pointer-events:none;flex-direction:column;justify-content:space-between;align-items:center;width:100%;height:100%;padding:24px;display:flex;position:absolute;top:0;left:0}.scanner-header{color:#0284c7;background:#ffffffe6;border:1px solid #0284c7;border-radius:20px;align-items:center;gap:10px;padding:8px 20px;font-size:13px;font-weight:700;display:flex;box-shadow:0 4px 15px #0000001a}.scan-status-dot{background:#00c6ff;border-radius:50%;width:10px;height:10px;animation:1s infinite alternate pulse}@keyframes pulse{0%{opacity:.3;transform:scale(.8)}to{opacity:1;transform:scale(1.2)}}.red-target-box{border:3px dashed #0284c7;border-radius:24px;justify-content:center;align-items:flex-end;width:60%;height:65%;padding-bottom:12px;display:flex;position:relative;box-shadow:0 0 0 9999px #ffffff40}.target-hint-text{color:#fff;background:linear-gradient(90deg,#0052d4,#0072ff);border-radius:16px;padding:6px 16px;font-size:12px;font-weight:700;box-shadow:0 2px 10px #0072ff4d}.scanner-footer{color:#0369a1;background:#ffffffd9;border-radius:10px;padding:4px 12px;font-size:12px;font-weight:700}.camera-controls{gap:16px;display:flex}.capture-btn-huge{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0052d4,#00c6ff);border:none;border-radius:30px;padding:16px 36px;font-size:16px;font-weight:700;box-shadow:0 6px 20px #00c6ff59}.capture-btn-huge:hover{background:linear-gradient(135deg,#06f,#00d4ff)}.generating-card{background:#fff;border:1px solid #7dd3fc;border-radius:20px;flex-direction:column;align-items:center;padding:60px 30px;display:flex;box-shadow:0 15px 35px #0284c71a}.generating-card h2{color:#0369a1}.generating-card p{color:#475569}.spinner{border:6px solid #e0f2fe;border-top-color:#0284c7;border-radius:50%;width:60px;height:60px;margin-bottom:24px;animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.progress-bar-bg{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:7px;width:100%;max-width:420px;height:14px;margin-top:25px;overflow:hidden}.progress-bar-fill{background:linear-gradient(90deg,#0052d4,#00c6ff);height:100%;transition:width .2s}.progress-text{color:#0284c7;margin-top:8px;font-size:13px;font-weight:700}.preview-stage h2{color:#0369a1}.preview-stage p{color:#475569}.card-preview-wrapper{justify-content:center;margin:25px 0;display:flex}.final-card-img{border:2px solid #0284c7;border-radius:16px;width:620px;max-width:100%;box-shadow:0 20px 40px #0284c740}.preview-actions{justify-content:center;gap:18px;margin-top:25px;display:flex}.print-btn-large{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0052d4,#0072ff);border:none;border-radius:10px;padding:16px 36px;font-size:16px;font-weight:700;box-shadow:0 6px 20px #0072ff59}.print-btn-large:hover:not(:disabled){background:linear-gradient(135deg,#06f,#00c6ff)}.print-btn-large:disabled{color:#64748b;cursor:not-allowed;box-shadow:none;background:#cbd5e1}.retake-btn{color:#0284c7;cursor:pointer;background:#fff;border:1px solid #0284c7;border-radius:10px;padding:16px 28px;font-weight:700}.retake-btn:hover{background:#e0f2fe}.workspace{grid-template-columns:380px 1fr;gap:30px;display:grid}.controls{background-color:#fff;border:1px solid #bae6fd;border-radius:16px;padding:20px;box-shadow:0 10px 30px #0284c714}.controls h3{color:#0284c7;text-transform:uppercase;letter-spacing:.5px;margin-top:18px;margin-bottom:10px;font-size:14px}.button-group,.add-components{gap:10px;display:flex}.button-group button,.tab-group button{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;flex:1;padding:10px;font-weight:700;transition:all .2s}.button-group button.active,.tab-group button.active{color:#fff;background:linear-gradient(135deg,#0052d4,#0072ff);border-color:#0284c7;box-shadow:0 2px 10px #0072ff4d}.add-btn{color:#0f172a;cursor:pointer;text-align:center;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;flex:1;padding:12px;font-size:13px;font-weight:700;transition:all .2s}.add-btn:hover{background:#e2e8f0;border-color:#0284c7}.add-components-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.add-components-grid .add-btn{color:#0f172a;cursor:pointer;text-align:center;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;padding:10px 6px;font-size:12px;font-weight:700}.add-components-grid .add-btn:hover{background:#e0f2fe;border-color:#0284c7}.property-panel{background:#f8fafc;border:1px solid #0284c7;border-radius:12px;margin-top:20px;padding:16px;box-shadow:0 4px 15px #0284c714}.prop-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.prop-header h4{color:#0284c7;margin:0;font-size:14px}.delete-btn{color:#fff;cursor:pointer;background:#ef4444;border:none;border-radius:6px;padding:5px 12px;font-size:12px;font-weight:700}.delete-btn:hover{background:#dc2626}.property-panel label{color:#475569;margin-top:10px;margin-bottom:4px;font-size:12px;font-weight:600;display:block}.property-panel input[type=text]{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:6px;width:100%;padding:8px 12px}.property-panel input[type=range]{accent-color:#0284c7;width:100%}.property-panel input[type=color]{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;width:100%;height:38px}.checkbox-label{cursor:pointer;color:#334155;align-items:center;gap:10px;margin:20px 0;font-size:14px;display:flex}.print-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0052d4,#0072ff);border:none;border-radius:10px;width:100%;padding:15px;font-size:16px;font-weight:700;transition:all .2s;box-shadow:0 6px 20px #0072ff4d}.print-btn:hover:not(:disabled){background:linear-gradient(135deg,#06f,#00c6ff)}.print-btn:disabled{color:#64748b;cursor:not-allowed;box-shadow:none;background:#cbd5e1}.preview-panel{background:#fff;border:1px solid #bae6fd;border-radius:16px;padding:24px;box-shadow:0 10px 30px #0284c714}.preview-header{justify-content:space-between;align-items:center;display:flex}.preview-header h3{color:#0369a1;margin:0}.canvas-hint{color:#64748b;margin-top:6px;font-size:13px}.canvas-wrapper{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:12px;justify-content:center;align-items:center;min-height:520px;margin-top:15px;padding:24px;display:flex}canvas{touch-action:none;border-radius:10px;max-width:100%;height:auto;box-shadow:0 12px 30px #00000026}.history-controls{gap:10px;margin-bottom:15px;display:flex}.history-btn{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;flex:1;padding:8px 12px;font-size:13px;font-weight:700;transition:all .2s}.history-btn:hover:not(:disabled){color:#fff;background:#0284c7;border-color:#0284c7}.history-btn:disabled{opacity:.4;cursor:not-allowed}.crop-section{background:#fff;border:1px dashed #0284c7;border-radius:8px;margin-top:12px;padding:12px}.crop-section h4{color:#0284c7;margin:0 0 10px;font-size:13px}.reset-crop-btn{color:#0284c7;cursor:pointer;background:#f0f9ff;border:1px solid #0284c7;border-radius:6px;width:100%;margin-top:12px;padding:8px;font-size:12px;font-weight:700}.reset-crop-btn:hover{color:#fff;background:#0284c7}.image-adjust-section{background:#fff;border:1px solid #cbd5e1;border-radius:8px;margin-top:12px;margin-bottom:12px;padding:12px}.image-adjust-section h4{color:#0284c7;margin:0 0 8px;font-size:13px}.image-adjust-section label{color:#64748b;margin-top:6px;margin-bottom:2px;font-size:11px;display:block}.image-adjust-section input[type=range]{width:100%}.layer-actions{border-bottom:1px solid #cbd5e1;align-items:center;gap:8px;margin-top:10px;margin-bottom:12px;padding-bottom:10px;display:flex}.layer-label{color:#64748b;font-size:12px}.layer-btn{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;flex:1;padding:8px;font-size:11px;font-weight:700}.layer-btn:hover{color:#fff;background:#0284c7;border-color:#0284c7}.layer-actions-grid{grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px;display:grid}.layer-manager{background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;margin-top:20px;padding:14px}.layer-manager h3{color:#0284c7;margin:0 0 12px;font-size:14px}.layer-list{flex-direction:column;gap:6px;max-height:220px;display:flex;overflow-y:auto}.layer-item{cursor:grab;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:8px;justify-content:space-between;align-items:center;padding:8px 12px;font-size:12px;transition:all .15s;display:flex}.layer-item.active{background:#e0f2fe;border-color:#0284c7;box-shadow:0 0 10px #0284c733}.layer-item.dragging{opacity:.4;background:#f0f9ff;border-style:dashed;border-color:#0284c7}.layer-drag-handle{cursor:grab;color:#0284c7;-webkit-user-select:none;user-select:none;padding-right:6px;font-size:14px;font-weight:700}.layer-item-actions{align-items:center;gap:6px;display:flex}.layer-quick-btn{color:#0284c7;cursor:pointer;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:4px;padding:3px 8px;font-size:11px}.layer-quick-btn:hover{color:#fff;background:#0284c7;border-color:#0284c7}.layer-item-lock{cursor:pointer;background:0 0;border:none;padding:2px;font-size:14px}.layer-item-delete{cursor:pointer;background:0 0;border:none;font-size:14px}.lock-toggle-btn{color:#0f172a;cursor:pointer;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;width:100%;margin-bottom:12px;padding:10px 12px;font-size:12px;font-weight:700;transition:all .2s}.lock-toggle-btn:hover{background:#e2e8f0}.lock-toggle-btn.is-locked{color:#fff;background:#d97706;border-color:#f59e0b}.lock-toggle-btn.is-locked:hover{background:#b45309}.add-btn.camera-btn-accent{color:#fff!important;background:linear-gradient(135deg,#10b981,#059669)!important;border-color:#10b981!important}.add-btn.camera-btn-accent:hover{background:linear-gradient(135deg,#059669,#047857)!important}.modal-overlay{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:9999;background:#0f172a99;justify-content:center;align-items:center;width:100vw;height:100vh;display:flex;position:fixed;top:0;left:0}.modal-content{background:#fff;border:1px solid #0284c7;border-radius:16px;width:90%;max-width:660px;padding:24px;box-shadow:0 25px 50px #0003}.modal-header{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}.modal-header h3{color:#0284c7;margin:0;font-size:18px}.modal-close-icon{color:#64748b;cursor:pointer;background:0 0;border:none;font-size:20px}.modal-close-icon:hover{color:#0f172a}.camera-toolbar{gap:10px;margin-bottom:12px;display:flex}.cam-action-btn{color:#0f172a;cursor:pointer;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;flex:1;padding:10px;font-size:12px;font-weight:700}.cam-action-btn:hover{color:#fff;background:#0284c7;border-color:#0284c7}.exposure-control{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;margin-bottom:15px;padding:10px 14px}.exposure-control label{color:#0284c7;margin-bottom:6px;font-size:13px;font-weight:700;display:block}.exposure-control input[type=range]{cursor:pointer;accent-color:#0284c7;width:100%}.video-container{aspect-ratio:16/9;background:#000;border:2px solid #0284c7;border-radius:12px;justify-content:center;align-items:center;width:100%;display:flex;overflow:hidden}.video-container video{object-fit:cover;width:100%;height:100%}.modal-footer{gap:12px;margin-top:18px;display:flex}.capture-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0052d4,#0072ff);border:none;border-radius:8px;flex:2;padding:14px;font-size:14px;font-weight:700;box-shadow:0 4px 15px #0072ff4d}.capture-btn:hover{background:linear-gradient(135deg,#06f,#00c6ff)}.cancel-btn{color:#334155;cursor:pointer;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;padding:14px 24px;font-size:14px;font-weight:700}.cancel-btn:hover{background:#e2e8f0}.status-box{border-radius:8px;margin-top:18px;padding:14px;font-size:13px;font-weight:700}.status-box.sending,.status-box.processing{color:#0369a1;background:#e0f2fe;border:1px solid #0284c7}.status-box.printing{color:#a16207;background:#fef9c3;border:1px solid #ca8a04}.status-box.success{color:#047857;background:#d1fae5;border:1px solid #10b981}.status-box.error{color:#b91c1c;background:#fee2e2;border:1px solid #ef4444}
