:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}html,body{margin:0;padding:0;min-width:320px;height:100vh;overflow:hidden}#root{width:100%;height:100%;overflow:hidden}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.app-container{display:flex;height:100vh;width:100%;max-width:1600px;margin:0 auto;overflow:hidden}.app-header{flex-shrink:0;padding:.75rem 1rem;background-color:#1e293b;color:#fff;border-bottom:1px solid #334155}.app-header h1{margin:0;font-size:1.25rem;font-weight:700}.app-header .subtitle{margin:.125rem 0 0;font-size:.75rem;color:#94a3b8;font-weight:400}.form-panel{width:340px;min-width:340px;padding:1rem;background-color:#f8fafc;border-right:1px solid #e2e8f0;overflow:hidden;display:flex;flex-direction:column}.form-panel h2{margin-top:0;margin-bottom:1rem;font-size:1.25rem;color:#1e293b;font-weight:600}.results-panel{flex:1;padding:1rem;display:flex;flex-direction:column;overflow:hidden;position:relative;background-color:#fff;min-height:0}.results-panel h2{margin-top:0;margin-bottom:1rem;font-size:1.25rem;color:#1e293b;font-weight:600}.loading-overlay{position:absolute;inset:0;background-color:#ffffffd9;display:flex;align-items:center;justify-content:center;z-index:100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.loading-state{display:flex;align-items:center;justify-content:center;padding:2rem;color:#64748b}.loading-state p{font-size:1.1rem}.error-message{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:1rem;margin-bottom:1rem}.error-message-content{flex:1}.error-message-content p{margin:0;color:#dc2626;font-size:.9375rem;line-height:1.5}.error-dismiss-btn{flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;border-radius:4px;font-size:1.25rem;line-height:1;color:#dc2626;cursor:pointer;transition:background-color .15s,border-color .15s}.error-dismiss-btn:hover{background-color:#fee2e2;border-color:#fecaca}.error-dismiss-btn:focus{outline:2px solid #dc2626;outline-offset:2px}.results-summary{overflow-y:auto}.results-summary h3{margin:0 0 1rem;color:#16a34a}.results-summary h4{margin:1.5rem 0 .5rem;color:#1e293b}.results-summary ul{margin:0;padding-left:1.5rem}.results-summary li{margin-bottom:.25rem}.parts-list{max-height:300px;overflow-y:auto;font-family:monospace;font-size:.9rem;background-color:#f8fafc;padding:.75rem 1rem;border-radius:4px;border:1px solid #e2e8f0}.placeholder-note{margin-top:1.5rem;padding:1rem;background-color:#fffbeb;border:1px solid #fcd34d;border-radius:8px;color:#92400e;font-style:italic}.placeholder-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#64748b;padding:2rem}.placeholder-icon{width:120px;height:120px;margin-bottom:1.5rem;color:#cbd5e1}.placeholder-text{text-align:center;max-width:300px}.placeholder-text h3{margin:0 0 .5rem;font-size:1.125rem;color:#475569;font-weight:600}.placeholder-text p{margin:0;font-size:.9375rem;color:#64748b;line-height:1.5}@media(min-width:1024px){.form-panel{position:sticky;top:0;height:100vh}}@media(max-width:1023px)and (min-width:769px){.form-panel{width:300px;min-width:300px;padding:.75rem}.results-panel{padding:.75rem}}@media(max-width:768px){html,body,#root{height:auto;overflow:auto}.app-container{flex-direction:column;height:auto;min-height:100vh;overflow:visible}.form-panel{width:100%;min-width:unset;border-right:none;border-bottom:1px solid #e2e8f0;max-height:none;height:auto;padding:1rem}.results-panel{min-height:60vh;padding:1rem}.placeholder-icon{width:80px;height:80px}.app-header h1{font-size:1.25rem}.app-header .subtitle{font-size:.75rem}}@media(max-width:480px){.form-panel,.results-panel{padding:.75rem}.form-panel h2,.results-panel h2{font-size:1.125rem}}.tabs{display:flex;border-bottom:1px solid #ddd;margin-bottom:1rem}.tab{padding:.75rem 1.25rem;border:none;background:none;cursor:pointer;font-size:.9rem;color:#666;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .2s,border-color .2s}.tab:hover{color:#333}.tab-active{color:#2563eb;border-bottom-color:#2563eb;font-weight:500}.spinner-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}.spinner{display:inline-block;position:relative}.spinner-ring{border-style:solid;border-color:#e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}.spinner-small .spinner-ring{width:16px;height:16px;border-width:2px}.spinner-medium .spinner-ring{width:32px;height:32px;border-width:3px}.spinner-large .spinner-ring{width:48px;height:48px;border-width:4px}.spinner-label{font-size:.875rem;color:#6b7280;text-align:center}.spinner-small .spinner-label{font-size:.75rem}.spinner-large .spinner-label{font-size:1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.collapsible-section{background:#fff;border-radius:6px;border:1px solid #e0e0e0}.collapsible-header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:.625rem .75rem;background:#f8fafc;border:none;cursor:pointer;text-align:left;transition:background-color .15s}.collapsible-header:hover{background:#f1f5f9}.collapsible-title{font-size:.875rem;font-weight:600;color:#444;text-transform:uppercase;letter-spacing:.025em}.collapsible-icon{font-size:1rem;font-weight:600;color:#666;width:20px;text-align:center}.collapsible-content{padding:.75rem;border-top:1px solid #e0e0e0}.collapsible-open .collapsible-header{background:#f1f5f9}.cabinet-form{display:flex;flex-direction:column;gap:.5rem;flex:1;min-height:0;overflow-y:auto;padding-bottom:2rem;padding-right:1rem}.form-section{padding:.5rem .625rem;background:#fff;border-radius:6px;border:1px solid #e0e0e0}.form-section h3{margin:0 0 .5rem;font-size:.8rem;font-weight:600;color:#444;text-transform:uppercase;letter-spacing:.025em}.section-hint{margin:0;font-size:.875rem;color:#666;font-style:italic}.section-fields{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem}.unit-toggle-section{padding:.5rem .75rem;background:#e8f4ff;border-radius:6px;border:1px solid #b3d7ff}.text-input input{width:100%;padding:.375rem .5rem;border:1px solid #ccc;border-radius:4px;font-size:.875rem;box-sizing:border-box}.text-input input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff26}.dimension-input,.number-input{display:flex;flex-direction:column;gap:.125rem}.dimension-input label,.number-input label{font-size:.75rem;color:#555}.dimension-input-wrapper,.number-input-wrapper{display:flex;align-items:center;gap:.25rem}.dimension-input input,.number-input input{flex:1;padding:.375rem .5rem;border:1px solid #ccc;border-radius:4px;font-size:.875rem;min-width:0}.dimension-input input:focus,.number-input input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff26}.unit-suffix{font-size:.8125rem;color:#666;min-width:24px}.dimensions-grid{display:flex;flex-direction:column;gap:.5rem}.toggle{display:flex;align-items:center}.toggle-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.8125rem;color:#333}.toggle input[type=checkbox]{width:1rem;height:1rem;cursor:pointer}.toggle-text{-webkit-user-select:none;user-select:none}.shelf-editor .shelf-list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.shelf-editor .shelf-item{display:flex;flex-direction:column;gap:.5rem;padding:.5rem;background:#f9f9f9;border-radius:4px}.shelf-editor .shelf-item .dimension-input{flex:1}.add-btn{padding:.5rem 1rem;background:#f0f0f0;border:1px solid #ccc;border-radius:4px;font-size:.875rem;cursor:pointer;color:#333;transition:background .15s}.add-btn:hover{background:#e0e0e0}.remove-btn{padding:.375rem .75rem;background:#fff0f0;border:1px solid #ffcccc;border-radius:4px;font-size:.8125rem;cursor:pointer;color:#c33;transition:background .15s}.remove-btn:hover{background:#ffe0e0}.generate-btn{margin-top:.25rem;padding:.625rem 1rem;background:#007bff;border:none;border-radius:6px;font-size:.875rem;font-weight:600;color:#fff;cursor:pointer;transition:background .15s}.generate-btn:hover{background:#0056b3}.generate-btn:active{background:#004494}.generate-btn-disabled{background:#9ca3af;cursor:not-allowed}.generate-btn-disabled:hover{background:#9ca3af}.validation-warnings{background-color:#fef3c7;border:1px solid #fcd34d;border-radius:6px;padding:.5rem .625rem}.validation-warning{margin:0;font-size:.75rem;color:#92400e;line-height:1.4}.validation-warning+.validation-warning{margin-top:.25rem}.dimension-input-warning label{color:#dc2626}.dimension-input input.input-warning,.number-input input.input-warning{border-color:#fca5a5;background-color:#fef2f2}.dimension-input input.input-warning:focus,.number-input input.input-warning:focus{border-color:#dc2626;box-shadow:0 0 0 2px #dc262626}.results-panel-container{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.results-header{flex-shrink:0;margin-bottom:.75rem}.results-header h3{margin:0 0 .5rem;font-size:1.25rem;color:#333}.results-summary-stats{display:flex;gap:1.5rem;flex-wrap:wrap}.results-summary-stats .stat{font-size:.9rem;color:#666}.results-summary-stats .stat strong{color:#2563eb}.tab-content{flex:1;min-height:0;overflow:auto;padding:.5rem 0}.parts-list-container{overflow-x:auto}.parts-table{width:100%;border-collapse:collapse;font-size:.9rem}.parts-table th,.parts-table td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid #e5e7eb}.parts-table th{background-color:#f9fafb;font-weight:600;color:#374151;border-bottom:2px solid #e5e7eb;position:sticky;top:0;z-index:1}.parts-table tbody tr:hover{background-color:#f9fafb}.parts-table .features-cell{font-size:.8rem;color:#6b7280}.sheet-layout-view{display:flex;flex-direction:column;height:100%;min-height:0}.sheet-layout-empty{display:flex;align-items:center;justify-content:center;height:200px;color:#6b7280;font-style:italic}.sheet-selector{display:flex;gap:.5rem;margin-bottom:.75rem;flex-wrap:wrap;flex-shrink:0}.sheet-button{padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:4px;background:#fff;cursor:pointer;font-size:.8rem;color:#374151;transition:all .2s}.sheet-button:hover{background-color:#f3f4f6;border-color:#9ca3af}.sheet-button-active{background-color:#2563eb;border-color:#2563eb;color:#fff}.sheet-button-active:hover{background-color:#1d4ed8}.sheet-info{display:flex;gap:1rem;padding:.5rem .75rem;background-color:#f9fafb;border-radius:4px;margin-bottom:.75rem;flex-wrap:wrap;flex-shrink:0}.sheet-info-item{font-size:.8rem;color:#4b5563}.sheet-svg-container{flex:1;min-height:200px;border:1px solid #e5e7eb;border-radius:4px;padding:.75rem;background-color:#fff;display:flex;align-items:center;justify-content:center;overflow:auto}.sheet-svg-container svg{max-width:100%;max-height:100%;height:auto}.three-d-viewer{display:flex;flex-direction:column;flex:1;min-height:300px;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background-color:#f0f0f0;position:relative}.three-d-viewer canvas{flex:1;width:100%!important;height:100%!important;display:block}.three-d-controls-hint{position:absolute;bottom:0;left:0;right:0;padding:.5rem 1rem;background-color:#00000080;color:#fff;font-size:.75rem;text-align:center;pointer-events:none}.three-d-loading{display:flex;align-items:center;justify-content:center;height:100%;color:#6b7280;font-style:italic}.download-section{flex-shrink:0;border-top:1px solid #e5e7eb;padding:.75rem 0 0;margin-top:auto;background-color:#fff}.download-section h4{margin:0 0 .5rem;font-size:.875rem;color:#374151}.download-buttons{display:flex;gap:.5rem;flex-wrap:wrap}.download-button{padding:.5rem 1rem;border:none;border-radius:4px;background-color:#059669;color:#fff;font-size:.8rem;cursor:pointer;transition:background-color .2s}.download-button:hover{background-color:#047857}.download-button:active{background-color:#065f46}
