*{margin:0;padding:0;box-sizing:border-box}:root{--primary: #e08a2b;--primary-hover: #c9781f;--accent: #cdd2d8;--danger: #cf5048;--danger-hover: #b8413a;--success: #3ec46d;--bg: #17191c;--surface: #202327;--surface-2: #2a2e33;--border: #383d43;--text: #eceef0;--text-muted: #9298a0;--radius: 8px;--font-mono: ui-monospace, "SF Mono", "Roboto Mono", "Consolas", monospace}body{font-family:Segoe UI,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}#app{max-width:1200px;margin:0 auto;padding:16px 16px 100px}.header{text-align:center;padding:24px 0 12px;display:flex;flex-direction:column;align-items:center;gap:6px}.header-logo{height:46px;width:auto;filter:brightness(0) invert(.86);opacity:.95}.header-divider{width:52px;height:1px;background:var(--border);margin:3px 0}.header h1{font-size:22px;font-weight:500;letter-spacing:7px;color:var(--accent);font-family:var(--font-mono);margin:0}.subtitle{color:var(--text-muted);font-size:12px;letter-spacing:2px;text-transform:uppercase}.tabs{display:flex;gap:2px;margin:16px 0;background:var(--surface);border-radius:var(--radius);padding:3px;border:1px solid var(--border)}.tab{flex:1;padding:10px 16px;border:none;background:transparent;color:var(--text-muted);font-size:13px;font-weight:500;cursor:pointer;border-radius:6px;transition:all .2s;letter-spacing:.5px}.tab:hover{color:var(--text);background:#ffffff0a}.tab.active{background:var(--surface-2);color:var(--text);box-shadow:inset 0 -2px 0 var(--primary)}.tab-content{display:none}.tab-content.active{display:block}.panel{background:var(--surface);border-radius:var(--radius);padding:20px;border:1px solid var(--border)}.panel h3{font-size:16px;margin-bottom:16px;color:var(--text)}.upload-area{border:2px dashed var(--border);border-radius:var(--radius);padding:40px 20px;text-align:center;cursor:pointer;transition:all .3s}.upload-area:hover,.upload-area.dragover{border-color:var(--primary);background:#e08a2b12}.upload-icon{font-size:48px;color:var(--primary);margin-bottom:8px}.upload-area p{color:var(--text-muted);font-size:14px}.upload-hint{font-size:12px!important;margin-top:4px}.parts-toolbar{display:flex;gap:8px;margin:12px 0}.parts-list{display:flex;flex-direction:column;gap:8px}.part-item{display:flex;align-items:center;gap:12px;background:var(--surface-2);border-radius:var(--radius);padding:10px 14px;border:1px solid transparent;transition:border-color .2s,box-shadow .2s}.part-item:hover{border-color:var(--border);background:#2e3239}.part-preview{width:120px;height:120px;background:var(--bg);border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.part-preview svg{max-width:120px;max-height:120px}.part-info{flex:1;min-width:0}.part-name{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.part-dims{font-size:12px;color:var(--text-muted);margin-top:2px}.part-controls{display:flex;align-items:center;gap:8px}.qty-stepper{display:flex;align-items:center;border:1px solid var(--border);border-radius:4px;overflow:hidden}.qty-btn{width:28px;height:30px;border:none;background:var(--surface);color:var(--text);cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;transition:background .15s}.qty-btn:hover{background:var(--primary);color:#fff}.part-qty{width:48px;padding:4px;background:var(--bg);border:none;border-left:1px solid var(--border);border-right:1px solid var(--border);color:var(--text);text-align:center;font-size:14px;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.part-qty::-webkit-outer-spin-button,.part-qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.part-remove{width:28px;height:28px;border:none;background:var(--danger);color:#fff;border-radius:4px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-bottom:16px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-size:13px;color:var(--text-muted)}.form-group input[type=number],.form-group select{padding:8px 12px;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:14px}.form-group input:focus,.form-group select:focus{outline:none;border-color:var(--primary)}.checkbox-group{flex-direction:row;align-items:center}.checkbox-group label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;color:var(--text)}.sheet-preview{margin-top:16px;text-align:center}.sheet-preview canvas{background:var(--bg);border:1px solid var(--border);border-radius:4px;max-width:100%}.run-layout{display:flex;gap:12px;min-height:500px}.run-sidebar{width:240px;flex-shrink:0;display:flex;flex-direction:column;gap:10px}.run-main{flex:1;min-width:0}.run-stats-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px}.run-stats-panel h3{font-size:13px;margin-bottom:10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px}.run-stat{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:13px}.run-stat:last-child{border-bottom:none}.run-stat-label{color:var(--text-muted)}.run-stat-value{color:var(--text);font-weight:500;font-family:var(--font-mono)}.run-export-panel{display:flex;flex-direction:column;gap:6px}.run-export-panel .btn-block{flex:0 0 auto;width:100%}.btn-block{flex:1;text-align:center}.run-log-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px;flex:1;min-height:150px;display:flex;flex-direction:column}.run-log-panel h4{font-size:12px;color:var(--text-muted);margin-bottom:8px;text-transform:uppercase;letter-spacing:1px}.run-log{flex:1;overflow-y:auto;font-family:monospace;font-size:11px;color:var(--text-muted);max-height:250px}.run-log .log-entry{padding:2px 0;border-bottom:1px solid rgba(71,85,105,.15)}.run-log .log-entry.improved{color:var(--success)}.run-log .log-entry.error{color:var(--danger)}.run-log .log-entry.info{color:var(--accent)}.run-canvas-area{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-height:400px;display:flex;align-items:center;justify-content:center;overflow:auto;padding:8px}.run-canvas-area canvas{max-width:100%;border-radius:4px}.run-placeholder{color:var(--text-muted);font-size:14px}#toast-container{position:fixed;top:20px;right:20px;z-index:300;display:flex;flex-direction:column;gap:8px}.toast{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 16px;font-size:13px;color:var(--text);box-shadow:0 4px 12px #0000004d;animation:toastIn .3s ease;max-width:300px}.toast.success{border-left:3px solid var(--success)}.toast.error{border-left:3px solid var(--danger)}.toast.info{border-left:3px solid var(--primary)}@keyframes toastIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.results-stats .stat{display:inline-block;margin-right:16px}.results-stats .stat-value{font-weight:600;color:var(--text)}.sheet-result-canvas{background:var(--bg);border:1px solid var(--border);border-radius:4px;width:100%}.btn{padding:8px 16px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:#1a1c1f;font-weight:600}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover:not(:disabled){background:var(--border)}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){background:var(--danger-hover)}.btn-large{padding:12px 32px;font-size:15px}.action-bar{position:fixed;bottom:0;left:0;right:0;background:#1a1c1feb;border-top:1px solid var(--border);padding:14px 24px;display:flex;justify-content:space-between;align-items:center;z-index:100;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.progress-info{flex:1;margin-right:16px}#progress-text{font-size:13px;color:var(--text-muted)}.progress-bar{height:6px;background:var(--bg);border-radius:3px;margin-top:6px;overflow:hidden;position:relative;border:1px solid var(--border)}.progress-fill{height:100%;background:var(--primary);border-radius:3px;transition:width .3s ease;width:0%;position:relative}.progress-fill.active{opacity:.95}.progress-percent{font-size:12px;color:var(--primary);font-weight:600;font-family:var(--font-mono);margin-left:8px}.progress-stage{font-size:11px;color:var(--text-muted);margin-top:4px;display:flex;gap:16px}.progress-stage .stage{display:flex;align-items:center;gap:4px;opacity:.4;transition:opacity .3s,color .3s}.progress-stage .stage.active{opacity:1;color:var(--primary)}.progress-stage .stage.done{opacity:1;color:var(--success)}.progress-stage .stage-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.progress-stage .stage.active .stage-dot{animation:stagePulse 1s ease-in-out infinite}@keyframes stagePulse{0%,to{transform:scale(1)}50%{transform:scale(1.5)}}.action-buttons{display:flex;gap:8px}.popup-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;z-index:200}.popup-content{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--surface);border:1px solid var(--border);border-radius:12px;z-index:201;max-width:90vw;max-height:90vh;overflow:auto}.popup-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--border)}.popup-title{font-size:15px;font-weight:600;color:var(--text)}.popup-close{width:30px;height:30px;border:none;background:var(--surface-2);color:var(--text);border-radius:6px;cursor:pointer;font-size:14px;font-weight:600}.popup-close:hover{background:var(--danger);color:#fff}.popup-body{padding:16px;display:flex;justify-content:center;background:var(--bg);border-radius:0 0 12px 12px}.popup-body svg{max-width:100%;height:auto}@media (max-width: 640px){.form-grid{grid-template-columns:1fr}.action-bar{flex-direction:column;gap:8px}.progress-info{margin-right:0;text-align:center}}.user-chip{position:fixed;top:10px;right:12px;display:flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:5px 10px;z-index:900;flex-wrap:wrap;max-width:calc(100vw - 24px)}.user-chip-name{font-size:13px;font-weight:600;padding-right:4px;color:var(--text)}.chip-btn{border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:14px;padding:3px 10px;font-size:12px;cursor:pointer;transition:background .15s}.chip-btn:hover{background:var(--primary);border-color:var(--primary);color:#fff}.chip-btn-danger:hover{background:var(--danger);border-color:var(--danger)}.auth-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#020617eb;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}.auth-box{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:28px}.auth-brand{text-align:center;margin-bottom:18px}.auth-logo{height:44px;filter:brightness(0) invert(1);opacity:.92}.auth-brand h2{letter-spacing:5px;font-size:20px;margin-top:8px}.auth-brand p{color:var(--text-muted);font-size:12px;letter-spacing:2px}.beta-badge{font-size:10px;letter-spacing:1px;vertical-align:middle;background:var(--primary);color:#fff;border-radius:8px;padding:2px 7px;margin-left:4px}.auth-tabs{display:flex;gap:6px;margin-bottom:16px}.auth-tab{flex:1;padding:8px;border:1px solid var(--border);background:var(--bg);color:var(--text-muted);border-radius:6px;cursor:pointer;font-size:14px}.auth-tab.active{background:var(--primary);border-color:var(--primary);color:#fff}.auth-form{display:flex;flex-direction:column;gap:10px}.auth-form input[type=text],.auth-form input[type=email],.auth-form input[type=tel],.auth-form input[type=password]{padding:10px 12px;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:14px}.auth-form input:focus{outline:none;border-color:var(--primary)}.kvkk-row{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--text-muted)}.kvkk-row input{margin-top:2px}.kvkk-row a{color:var(--primary)}.auth-error{color:#f87171;font-size:13px;min-height:16px}.auth-note{margin-top:14px;text-align:center;font-size:11px;color:var(--text-muted)}.shell-modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#020617cc;z-index:950;display:flex;align-items:center;justify-content:center;padding:16px}.shell-modal-box{width:100%;max-width:640px;max-height:88vh;background:var(--surface);border:1px solid var(--border);border-radius:12px;display:flex;flex-direction:column;overflow:hidden}.shell-modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--border);font-weight:600}.shell-modal-body{padding:18px;overflow-y:auto}.shell-modal-body textarea{width:100%;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);padding:10px;font-size:14px;font-family:inherit;resize:vertical}.kvkk-body{font-size:13px;line-height:1.6;color:var(--text)}.kvkk-body h3{margin-bottom:10px;font-size:15px}.kvkk-body p{margin-bottom:8px}.kvkk-body ul{margin:0 0 8px 18px}.kvkk-body a{color:var(--primary)}.shell-table{width:100%;border-collapse:collapse;font-size:12.5px}.shell-table th,.shell-table td{border:1px solid var(--border);padding:6px 8px;text-align:left;vertical-align:middle}.shell-table th{background:var(--surface-2);font-weight:600;white-space:nowrap}.shell-table td{word-break:break-word}.shell-actions{white-space:nowrap}.shell-actions .chip-btn{margin-right:4px}.role-admin{color:#fbbf24;font-weight:600}.admin-tabs{display:flex;gap:6px;padding:12px 18px 0}.admin-tab{padding:7px 14px;border:1px solid var(--border);background:var(--bg);color:var(--text-muted);border-radius:6px 6px 0 0;cursor:pointer;font-size:13px}.admin-tab.active{background:var(--primary);border-color:var(--primary);color:#fff}.admin-newuser{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:12px;margin-bottom:14px;font-size:13px}.admin-newuser-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:8px}.admin-newuser-grid input,.admin-newuser-grid select{padding:7px 9px;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px}.temp-pass-box{margin-top:10px;background:#22c55e1f;border:1px solid var(--success);border-radius:6px;padding:10px;font-size:13px}.temp-pass-box code{background:var(--bg);padding:2px 8px;border-radius:4px;font-size:14px;letter-spacing:1px}.event-summary{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.event-pill{background:var(--bg);border:1px solid var(--border);border-radius:14px;padding:4px 10px;font-size:12px}.event-data{color:var(--text-muted);font-family:monospace;font-size:11px}.fb-card{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:12px;margin-bottom:10px}.fb-card-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12.5px;margin-bottom:8px;color:var(--text-muted)}.fb-card-head select{margin-left:auto;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:6px;padding:3px 8px;font-size:12px}.fb-type{font-weight:700;font-size:11px;padding:2px 8px;border-radius:4px}.fb-type-bug{background:#dc262633;color:#f87171}.fb-type-feature{background:#e08a2b2e;color:var(--primary)}.fb-date{font-size:11px}.fb-card-body{font-size:13.5px;white-space:pre-wrap}.lang-switch{position:fixed;top:10px;left:12px;z-index:1001}.lang-switch select{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:5px 8px;font-size:12.5px;font-family:inherit;cursor:pointer;opacity:.85}.lang-switch select:hover{opacity:1}
