:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html,body,#app{height:100%;margin:0}:where(button,a[href],input,select,textarea,summary,[tabindex]):focus-visible{outline-offset:2px;outline:2px solid #7cc4ff}.segmented button:focus-visible{outline-offset:-3px}body{color:#e8eaed;background:#14161a;font-family:system-ui,sans-serif}.app-shell{flex-direction:column;height:100%;display:flex}.app-header,.app-footer{background:#1b1e24;flex:none;padding:.4rem .9rem}.app-header{border-bottom:1px solid #262a31;align-items:center;gap:1rem;display:flex}.app-header h1{white-space:nowrap;margin:0;font-size:1.1rem;font-weight:600}.app-footer{color:#9aa3af;border-top:1px solid #262a31;justify-content:space-between;gap:1rem;font-size:.8rem;display:flex}.status-error{color:#ff8a80}.footer-right{gap:1rem;display:flex}.save-state{color:#7d8691}.save-error{color:#ffb4ab}.storage-banner{color:#ffd9d6;background:#5c1d1d;border-bottom:1px solid #8a2c2c;flex:none;justify-content:space-between;align-items:center;gap:1rem;padding:.45rem .9rem;font-size:.85rem;font-weight:600;display:flex}.header-meta{gap:.3rem;margin-left:auto;display:flex}.icon-button{padding:.3rem .4rem}.header-spacer{flex:1}.settings-section{margin:0 0 1rem}.settings-section h3{margin:0 0 .35rem;font-size:.85rem}.settings-toggle{align-items:center;gap:.5rem;font-weight:600;display:flex}.settings-help{color:#9aa3af;margin:.3rem 0 0;font-size:.82rem;line-height:1.45}.settings-snap{border:0;gap:.9rem;margin:0;padding:0;display:flex}.settings-snap legend{margin-bottom:.35rem;font-weight:600}.about-dialog{width:min(36rem,100vw - 2rem);max-height:calc(100vh - 2rem)}.diagnostics{box-sizing:border-box;color:#c3c9d2;resize:vertical;background:#15181d;border:1px solid #333944;border-radius:4px;width:100%;margin-bottom:.4rem;padding:.4rem;font:.75rem ui-monospace,monospace}.licenses{max-height:14rem;margin:0;padding:0;font-size:.8rem;list-style:none;overflow-y:auto}.licenses summary{cursor:pointer;padding:.15rem 0}.licenses pre{white-space:pre-wrap;color:#8a93a0;font-size:.7rem}.project-title{min-width:0;font:inherit;color:#c3c9d2;background:0 0;border:1px solid #0000;border-radius:4px;padding:.25rem .4rem;font-size:.9rem}.project-title:hover,.project-title:focus{color:#e8eaed;background:#15181d;border-color:#3a404a;outline:none}.gallery{flex:auto;min-height:0;padding:1.5rem clamp(1rem,4vw,3rem);overflow-y:auto}.gallery-head{justify-content:space-between;align-items:center;max-width:72rem;margin:0 auto 1.25rem;display:flex}.gallery-head h2{margin:0;font-size:1.25rem}.gallery-actions{gap:.5rem;display:flex}.gallery-error{color:#ffb4ab;max-width:72rem;margin:0 auto 1rem}.gallery-empty{color:#9aa3af;text-align:center;max-width:72rem;margin:3rem auto}.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:1rem;max-width:72rem;margin:0 auto;padding:0;list-style:none;display:grid}.project-card{background:#1b1e24;border:1px solid #2a2f37;border-radius:10px;flex-direction:column;display:flex;overflow:hidden}.project-open{cursor:pointer;background:0 0;border:0;padding:0;display:block}.project-thumb{aspect-ratio:4/3;color:#4a5563;background:radial-gradient(circle at 50% 40%,#232833,#15181d);place-items:center;display:grid}.project-thumb img{object-fit:contain;width:100%;height:100%}.project-open:hover .project-thumb,.project-open:focus-visible .project-thumb{color:#7cc4ff}.project-open:focus-visible{outline-offset:-2px;outline:2px solid #5b9bd5}.project-meta{gap:.15rem;padding:.6rem .75rem .3rem;display:grid}.project-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.project-rename{font:inherit;color:inherit;background:#15181d;border:1px solid #4a88c2;border-radius:4px;outline:none;padding:.1rem .3rem;font-weight:600}.project-date{color:#8a93a0;font-size:.78rem}.project-actions{gap:.25rem;padding:.3rem .6rem .65rem;display:flex}.project-actions button{font:inherit;color:#aab2bd;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;padding:.2rem .45rem;font-size:.78rem}.project-actions button:hover{color:#e8eaed;border-color:#3a404a}.project-actions button.danger{color:#ffd9d6;background:#5c1d1d;border-color:#8a2c2c}.toolbar{flex:1;justify-content:space-between;align-items:center;gap:.75rem;min-width:0;display:flex}.toolbar-group{align-items:center;gap:.3rem;display:flex}.toolbar{flex-wrap:wrap;row-gap:.35rem}.toolbar>*{flex-shrink:0}@media (width<=1400px){.shape-button{padding:.3rem .45rem}.shape-button .shape-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}.tool-button{font:inherit;color:#e8eaed;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;background:#252a32;border:1px solid #353b45;border-radius:6px;align-items:center;gap:.35rem;padding:.3rem .55rem;font-size:.82rem;display:inline-flex}.tool-button[draggable=true]{cursor:grab}.tool-button:hover:not(:disabled){background:#2f3540;border-color:#454c57}.tool-button:active:not(:disabled){background:#363d49}.tool-button:disabled{color:#6b7380;cursor:default}.tool-button:focus-visible{outline-offset:1px;outline:2px solid #5b9bd5}.tool-button-primary{background:#2b5f8f;border-color:#3a76ad;font-weight:600}.tool-button-primary:hover:not(:disabled){background:#336ea5;border-color:#4a88c2}.tool-button-primary:disabled{background:#252a32;border-color:#353b45}.inspector{background:#1b1e24f0;border:1px solid #2f343c;border-radius:8px;width:16.5rem;max-height:calc(100% - 1.5rem);padding:.7rem .8rem;font-size:.82rem;position:absolute;top:.75rem;right:.75rem;overflow-y:auto;box-shadow:0 8px 24px #00000059}.inspector-header{align-items:center;gap:.5rem;margin-bottom:.4rem;display:flex}.inspector-header h2{margin:0;font-size:.9rem}.inspector-name{min-width:0;font:inherit;color:inherit;background:0 0;border:1px solid #0000;border-radius:4px;flex:1;padding:.25rem .4rem;font-weight:600}.inspector-name:hover,.inspector-name:focus{background:#15181d;border-color:#3a404a;outline:none}.segmented{border:1px solid #3a404a;border-radius:5px;display:inline-flex;overflow:hidden}.segmented button{font:inherit;color:#c3c9d2;cursor:pointer;background:#20242b;border:0;padding:.2rem .5rem;font-size:.78rem}.segmented button[aria-pressed=true]{color:#fff;background:#2b5f8f}.inspector-section{margin-top:.6rem}.inspector-section h3,.inspector-advanced summary{text-transform:uppercase;letter-spacing:.05em;color:#8a93a0;margin:0 0 .3rem;font-size:.72rem;font-weight:600}.inspector-advanced{margin-top:.7rem}.inspector-advanced summary{cursor:pointer}.inspector-note{color:#8a93a0;margin:.3rem 0 0;font-size:.75rem}.field{grid-template-columns:5.2rem 1fr;align-items:center;gap:.4rem;margin-bottom:.25rem;display:grid}.field-row{grid-template-columns:repeat(3,1fr);gap:.3rem;display:grid}.field-row .field{grid-template-columns:.9rem 1fr;gap:.25rem}.field-label{color:#aab2bd;cursor:ew-resize;-webkit-user-select:none;user-select:none;touch-action:none}.field-input{background:#15181d;border:1px solid #333944;border-radius:4px;align-items:center;min-width:0;display:flex}.field-input:focus-within{border-color:#4a88c2}.field-input input{width:100%;min-width:0;font:inherit;font-variant-numeric:tabular-nums;color:#e8eaed;background:0 0;border:0;outline:none;padding:.22rem .35rem}.field-unit{color:#8f98a5;padding-right:.35rem;font-size:.75rem}.export-dialog{color:#e8eaed;background:#1b1e24;border:1px solid #353b45;border-radius:10px;width:min(30rem,100vw - 2rem);padding:1.1rem 1.25rem;box-shadow:0 18px 48px #00000080}.export-dialog::backdrop{background:#08090c99}.export-dialog h2{margin:0 0 .9rem;font-size:1.05rem}.export-formats{border:0;gap:.4rem;margin:0 0 1rem;padding:0;display:grid}.export-formats legend{color:#9aa3af;margin-bottom:.35rem;font-size:.8rem}.export-format{cursor:pointer;border:1px solid #2f343c;border-radius:6px;grid-template-columns:auto auto 1fr;align-items:baseline;gap:.5rem;padding:.45rem .6rem;display:grid}.export-format:has(input:checked){background:#3a76ad1f;border-color:#3a76ad}.export-format-label{font-weight:600}.export-format-hint{color:#9aa3af;font-size:.8rem}.export-result{min-height:7.5rem}.export-working{color:#c3c9d2}.watertight-badge{color:#8fe0b6;background:#52b78826;border:1px solid #52b78880;border-radius:999px;margin:0 0 .6rem;padding:.15rem .55rem;font-size:.85rem;font-weight:600;display:inline-block}.export-stats{grid-template-columns:auto 1fr;gap:.3rem 1rem;margin:0;font-size:.9rem;display:grid}.export-stats dt{color:#9aa3af}.export-stats dd{font-variant-numeric:tabular-nums;margin:0}.export-blocked{color:#ffb4ab}.export-reasons{color:#ff8a80;font-family:ui-monospace,monospace;font-size:.8rem}.export-project{margin-right:auto}.export-actions{justify-content:flex-end;gap:.5rem;margin-top:1rem;display:flex}.toolbar-modes button{padding:.3rem .6rem;font-size:.82rem}.toolbar-status{color:#9aa3af;margin-left:.4rem;font-size:.8rem}.viewport-alerts{pointer-events:none;justify-items:center;gap:.4rem;max-width:min(36rem,100% - 22rem);display:grid;position:absolute;top:.75rem;left:50%;transform:translate(-50%)}.viewport-pill{color:#c3c9d2;text-align:center;background:#1b1e24eb;border:1px solid #2f343c;border-radius:999px;margin:0;padding:.35rem .8rem;font-size:.82rem}.pill-action{font:inherit;color:#e8eaed;cursor:pointer;pointer-events:auto;background:#2f3540;border:1px solid #454c57;border-radius:999px;margin-left:.6rem;padding:.1rem .5rem;font-size:.78rem}.viewport-pill-warning{color:#f6e3b4;background:#3a2f12f0;border-color:#6b5a2a;border-radius:10px}.viewport-notice{color:#f6e3b4;white-space:nowrap;pointer-events:none;background:#3a2f12eb;border:1px solid #6b5a2a;border-radius:999px;margin:0;padding:.45rem .9rem;font-size:.85rem;position:absolute;bottom:1.25rem;left:50%;transform:translate(-50%)}.empty-hint{color:#c3c9d2;white-space:nowrap;pointer-events:none;background:#1b1e24d9;border:1px solid #2f343c;border-radius:999px;margin:0;padding:.45rem .9rem;font-size:.85rem;position:absolute;bottom:1.25rem;left:50%;transform:translate(-50%)}.app-viewport{flex:auto;min-height:0;position:relative}.app-viewport.is-dragging:after{content:"Drop STL to view";color:#cfe3f6;pointer-events:none;background:#5b9bd514;border:2px dashed #5b9bd5;border-radius:8px;place-items:center;font-size:1rem;display:grid;position:absolute;inset:.75rem}.dev-panel{background:#1b1e24e0;border:1px solid #2f343c;border-radius:6px;flex-wrap:wrap;align-items:center;gap:.5rem;max-width:calc(100% - 1.5rem);padding:.4rem .6rem;font-size:.8rem;display:flex;position:absolute;top:.75rem;left:.75rem}.dev-badge{color:#f0c36a;text-transform:uppercase;letter-spacing:.04em;background:#3a2f12;border-radius:4px;padding:.05rem .4rem;font-weight:600}.dev-panel button{font:inherit;color:inherit;cursor:pointer;background:#2a2f37;border:1px solid #3a404a;border-radius:4px;padding:.2rem .6rem}.dev-panel button:hover{background:#333944}.dev-panel button:focus-visible{outline-offset:1px;outline:2px solid #5b9bd5}.dev-info{color:#c3c9d2}.dev-error{color:#ff8a80;flex-basis:100%}.interstitial{box-sizing:border-box;place-items:center;min-height:100%;padding:1.5rem;display:grid}.interstitial-card{background:#1b1e24;border:1px solid #2f343c;border-radius:12px;max-width:30rem;padding:1.5rem 1.75rem}.interstitial-card h1{color:#9aa3af;margin:0 0 1rem;font-size:1rem}.interstitial-card h2{margin:0 0 .5rem;font-size:1.25rem}.interstitial-card p{color:#c3c9d2;margin:0 0 1rem;line-height:1.5}.boundary-fallback{text-align:center;color:#c3c9d2;place-content:center;justify-items:center;gap:.75rem;display:grid;position:absolute;inset:0}.bench-table{border-collapse:collapse;width:100%;max-width:72rem;margin:1rem auto;font-size:.88rem}.bench-table th,.bench-table td{text-align:left;font-variant-numeric:tabular-nums;border-bottom:1px solid #2a2f37;padding:.45rem .6rem}.bench-table th{color:#9aa3af;font-weight:600}.bench-copy{width:100%;margin-top:8px;font:12px/1.4 ui-monospace,monospace;display:block}.bench-canvas{aspect-ratio:16/9;border-radius:8px;width:min(960px,100%);display:block}.bench-canvas[hidden]{display:none}
