body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background-color:#0c0a09;color:#f5f5f5;line-height:1.6;margin:0;padding:0}#root{display:flex;justify-content:center;padding:2rem;min-height:100vh}.container{width:100%;max-width:900px;display:flex;flex-direction:column;gap:2rem}header{text-align:center;padding:1rem 0;border-bottom:1px solid #3f3f46}header h1{font-size:3rem;font-weight:900;letter-spacing:1px;background:-webkit-linear-gradient(45deg,#ff8a00,#e52e71);-webkit-background-clip:text;-webkit-text-fill-color:transparent}header p{font-size:1.2rem;color:#a1a1aa}.card{background-color:#18181b;border-radius:12px;padding:2rem;border:1px solid #27272a;box-shadow:0 8px 32px #0000005e;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.form-group{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}.card .form-group:last-child{margin-bottom:0}label{font-weight:600;font-size:1.1rem;color:#e5e5e5}.label-group{display:flex;justify-content:space-between;align-items:center}.label-buttons{display:flex;gap:.5rem}.prompt-helper-button{background:none;border:none;color:#ff8a00;cursor:pointer;font-size:.9rem;font-weight:600;text-decoration:underline;padding:.25rem .5rem;border-radius:4px;transition:background-color .2s ease}.prompt-helper-button:hover{background-color:#ff8a001a}textarea,select,input[type=text]{width:100%;padding:1rem;border-radius:8px;border:1px solid #3f3f46;background-color:#0c0a09;color:#f5f5f5;font-family:Fira Code,Roboto Mono,monospace;font-size:1rem;transition:all .3s ease;box-sizing:border-box}textarea{min-height:160px;resize:vertical}#material-params-input,#fourd-params-input,#cfd-params-input{min-height:80px}textarea:disabled{background-color:#1c1917;cursor:not-allowed;color:#52525b}.form-group.sub-group{margin-top:1rem;margin-bottom:0;padding-left:1rem;border-left:2px solid #27272a}.form-group.sub-group label{font-size:1rem;color:#a1a1aa}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;background-size:1em;padding-right:2.5rem}textarea:focus,select:focus,input[type=text]:focus{outline:none;border-color:#ff8a00;box-shadow:0 0 0 3px #ff8a0033}.prompt-preview{margin-top:.75rem;padding:1rem;border-radius:8px;border:1px solid #3f3f46;background-color:#0c0a09;color:#f5f5f5;font-family:Fira Code,Roboto Mono,monospace;font-size:1rem;line-height:1.6}.unit-highlight{background-color:#ff8a0026;color:#ffc966;padding:2px 4px;border-radius:4px;font-weight:600;cursor:help;border-bottom:1px dashed rgba(255,138,0,.5)}.settings-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1.5rem;align-items:end}.settings-row .form-group{margin-bottom:0}.button-group{display:flex;gap:1rem;margin-top:1.5rem;justify-content:flex-end}.generate-button,.clear-button,.download-button{padding:.75rem 1.5rem;font-size:1rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.generate-button{color:#fff;background:linear-gradient(45deg,#ff8a00,#e52e71);box-shadow:0 4px 15px #e52e714d}.generate-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #e52e7166}.generate-button:disabled{background:#3f3f46;cursor:not-allowed;transform:none;box-shadow:none}.clear-button{color:#a1a1aa;background-color:transparent;border:1px solid #3f3f46}.clear-button:hover{border-color:#a1a1aa;color:#f5f5f5;background-color:#27272a}.clear-button:disabled{border-color:#27272a;color:#52525b;cursor:not-allowed}.output-container{margin-top:2rem}.output-container h2{font-size:1.75rem;margin-bottom:1.5rem;border-bottom:1px solid #3f3f46;padding-bottom:.75rem;color:#e5e5e5}.loader{border:4px solid #27272a;border-top:4px solid #ff8a00;border-radius:50%;width:40px;height:40px;animation:spin 1.2s linear infinite;margin:2rem auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.output-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-bottom:2rem}.grid-item img{width:100%;height:auto;border-radius:8px;border:1px solid #27272a;box-shadow:0 4px 12px #0003}.placeholder{width:100%;aspect-ratio:4 / 3;background-color:#0c0a09;border:2px dashed #3f3f46;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#a1a1aa;font-size:1rem;padding:1rem;text-align:center;min-height:200px}.viewer-wrapper{position:relative;width:100%;aspect-ratio:4 / 3}.model-viewer-container{width:100%;height:100%;border-radius:8px;overflow:hidden;border:1px solid #3f3f46;cursor:grab}.model-viewer-container:active{cursor:grabbing}.viewer-controls{position:absolute;bottom:1rem;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:.5rem;background:#18181bcc;padding:.5rem;border-radius:8px;border:1px solid rgba(63,63,70,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10}.control-btn{background:transparent;border:1px solid transparent;color:#a1a1aa;padding:.4rem .6rem;border-radius:4px;cursor:pointer;font-size:1rem;transition:all .2s;display:flex;align-items:center;justify-content:center}.control-btn:hover{color:#f5f5f5;background:#ffffff1a}.control-btn.active{color:#ff8a00;border-color:#ff8a004d;background:#ff8a0026}.opacity-control{display:flex;align-items:center;gap:.5rem;padding:0 .5rem;border-left:1px solid #3f3f46;border-right:1px solid #3f3f46}.opacity-control input[type=range]{width:60px;height:4px;border-radius:2px;background:#3f3f46;outline:none;-webkit-appearance:none;padding:0;border:none}.opacity-control input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#ff8a00;cursor:pointer;border:2px solid #18181b}.lighting-select{background:#09090b;color:#e5e5e5;border:1px solid #3f3f46;border-radius:4px;padding:.25rem .5rem;font-size:.85rem;outline:none;cursor:pointer;width:auto}.separator{width:1px;height:20px;background:#3f3f46;margin:0 .25rem}.dimensions-overlay{position:absolute;top:1rem;left:1rem;background:#18181bd9;padding:.75rem;border-radius:6px;font-size:.85rem;color:#d4d4d8;pointer-events:none;border-left:3px solid #ff8a00;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10;display:flex;flex-direction:column;gap:.25rem;box-shadow:0 4px 12px #0000004d}.dimensions-overlay div{display:flex;align-items:center;gap:.5rem}.dimensions-overlay i{width:16px;text-align:center;color:#a1a1aa}.output-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.output-header h3{font-size:1.25rem;color:#a1a1aa;margin:0}.download-button{background-color:#27272a;color:#e5e5e5;border:1px solid #3f3f46}.download-button:hover{background-color:#3f3f46;border-color:#a1a1aa}.script-container{margin-top:2rem}pre{background-color:#0c0a09;border:1px solid #3f3f46;border-radius:8px;padding:1.5rem;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word;font-size:.95rem}code{font-family:Fira Code,Roboto Mono,monospace;color:#d4d4d8}.error-message{color:#ff8a8a;background-color:#ff6b6b1a;border:1px solid #ff8a8a;border-radius:8px;padding:1rem;text-align:center;margin-bottom:1.5rem}.conversion-log{background-color:#ff8a000d;border:1px solid #3f3f46;border-left:4px solid #ff8a00;padding:.75rem 1.25rem;margin-bottom:1.5rem;border-radius:8px;font-size:.95rem}.conversion-log p{margin:0;color:#d4d4d8}.conversion-log strong{color:#ff8a00}.modal-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.modal-content{background-color:#18181b;border:1px solid #3f3f46;border-radius:12px;width:90%;max-width:700px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 10px 40px #00000080}.modal-header{padding:1rem 1.5rem;border-bottom:1px solid #3f3f46;display:flex;justify-content:space-between;align-items:center}.modal-header h2{margin:0;font-size:1.5rem;color:#e5e5e5}.modal-close-button{background:none;border:none;font-size:2rem;color:#a1a1aa;cursor:pointer;line-height:1;padding:0;transition:color .2s ease}.modal-close-button:hover{color:#f5f5f5}.modal-body{padding:1.5rem;overflow-y:auto}.help-section{margin-bottom:2rem}.help-section:last-child{margin-bottom:0}.help-section h3{font-size:1.2rem;color:#ff8a00;margin-bottom:.5rem;border-bottom:1px solid #27272a;padding-bottom:.5rem}.help-section h5{font-size:1.1rem;color:#e5e5e5;margin-top:1.5rem;margin-bottom:.5rem;font-weight:600}.help-section p,.help-section ul{margin-bottom:1rem;color:#a1a1aa}.help-section ul{padding-left:20px}.help-section strong{color:#e5e5e5;font-weight:600}.example{position:relative;background-color:#0c0a09;border:1px solid #3f3f46;border-radius:8px;padding:1rem;margin-top:.5rem}.example code{white-space:pre-wrap;display:block}.copy-button{position:absolute;top:.5rem;right:.5rem;background-color:#27272a;color:#a1a1aa;border:1px solid #3f3f46;border-radius:6px;padding:.25rem .75rem;font-size:.8rem;cursor:pointer;transition:all .2s ease}.copy-button:hover{background-color:#3f3f46;color:#e5e5e5}.history-actions{display:flex;justify-content:flex-end;margin-bottom:1rem}.clear-history-button{padding:.5rem 1rem;background-color:#52525b;color:#e5e5e5;border:1px solid #3f3f46;border-radius:6px;cursor:pointer;font-weight:600;transition:all .2s ease}.clear-history-button:hover{background-color:#71717a;border-color:#a1a1aa}.history-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}.history-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;background-color:#27272a;border-radius:8px;border:1px solid #3f3f46}.history-item-prompt{margin:0;color:#d4d4d8;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.history-item-actions{flex-shrink:0}.load-button{padding:.5rem 1rem;background-color:#3f3f46;color:#e5e5e5;border:1px solid #52525b;border-radius:6px;cursor:pointer;font-weight:600;transition:all .2s ease}.load-button:hover{background-color:#ff8a00;border-color:#ff8a00;color:#fff}.form-toggle{display:flex;align-items:center;gap:.75rem}.form-toggle input[type=checkbox]{width:20px;height:20px;accent-color:#ff8a00;cursor:pointer}.form-toggle label{font-size:1.1rem;font-weight:600;cursor:pointer;-webkit-user-select:none;user-select:none;color:#e5e5e5}.structured-inputs-container{background-color:#0c0a09;border:1px solid #3f3f46;border-radius:8px;padding:1.5rem;margin-top:1rem;display:flex;flex-direction:column;gap:1.5rem}.structured-inputs-container .form-group{margin-bottom:0}.structured-inputs-container h4{font-size:1.2rem;color:#ff8a00;margin:0;padding-bottom:.75rem;border-bottom:1px solid #27272a}.structured-inputs-container h5{font-size:1.1rem;color:#e5e5e5;margin:0 0 .75rem;font-weight:600}.inputs-grid{display:grid;gap:1.5rem}.inputs-grid.two-col{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.inputs-grid.three-col{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.boundary-condition-section{padding:1rem;background-color:#27272a80;border-radius:6px;border:1px solid #3f3f46}.structured-inputs-container input,.structured-inputs-container select{font-size:.95rem;padding:.75rem}.structured-inputs-container label{font-size:1rem;color:#a1a1aa}.preset-buttons{display:flex;flex-wrap:wrap;gap:.75rem}.preset-buttons button{padding:.5rem 1rem;font-size:.9rem;background-color:#27272a;color:#a1a1aa;border:1px solid #3f3f46;border-radius:6px;cursor:pointer;font-weight:500;transition:all .2s ease}.preset-buttons button:hover{background-color:#3f3f46;color:#e5e5e5;border-color:#a1a1aa}.example-chips{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.75rem}.example-label{font-size:.9rem;color:#a1a1aa;font-weight:600;margin-right:.25rem}.example-chip{background-color:#ff8a001a;color:#ff8a00;border:1px solid rgba(255,138,0,.3);border-radius:16px;padding:.25rem .75rem;font-size:.85rem;cursor:pointer;transition:all .2s ease}.example-chip:hover{background-color:#ff8a0033;transform:translateY(-1px)}@media(max-width:768px){.output-grid{grid-template-columns:1fr}}
