.work-files{margin-top:18px;padding:16px;border:1px solid #e9e4f5;border-radius:18px;background:#faf8fe;color:#302844}.work-files>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}.work-files h3{display:flex;align-items:center;gap:6px;margin:0;font-size:14px}.work-files button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;cursor:pointer;border:1px solid #e4ddf3;border-radius:10px;padding:7px 10px;background:#fff;color:#7152a1}.work-files button:disabled{opacity:.5;cursor:default}.work-files .work-file-add{background:#ede5fa;border-color:#e2d7f1;color:#644591}.work-file-list{display:flex;flex-direction:column;gap:7px}.work-files .work-file-row{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #e8e3f1;border-radius:12px;padding:8px}.work-files .work-file-row>a{display:flex;align-items:center;gap:9px;min-width:0;flex:1;padding:0;color:inherit;text-decoration:none}.work-files .work-file-row img{width:38px;height:38px;object-fit:cover;border-radius:8px}.work-file-ext{display:grid;place-items:center;flex:0 0 38px;height:38px;background:#f0e9fa;border-radius:8px;color:#7950a6;font-size:9px;font-weight:700}.work-file-name{min-width:0;overflow-wrap:anywhere;font-size:12px}.work-file-name small{display:block;color:#958aab;margin-top:3px}.work-files .work-file-remove{background:transparent;border:0;padding:7px;color:#9b81b6}.work-file-upload{margin-top:8px;background:#fff;border:1px solid #e6dff1;border-radius:12px;padding:9px}.work-file-upload>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px;overflow-wrap:anywhere}.work-file-upload small{color:#8d7da1;font-size:11px}.work-file-upload progress{width:100%;height:5px;margin-top:8px;accent-color:#956cc0}.work-file-actions{display:flex;gap:6px;justify-content:flex-end;margin-top:7px}.work-file-error{color:#b13d5f;font-size:12px}.work-file-hint{margin:10px 0 0;font-size:11px;line-height:1.5;color:#9a8bad}.work-files>small{font-size:12px;color:#a094ae}
.design-handoff,.production-queue{margin:20px 0;padding:16px;border:1px solid #d9e8e8;border-radius:18px;background:#f4f9f8}
.handoff-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.handoff-heading h3{margin:0}.handoff-heading b{overflow-wrap:anywhere}
.design-handoff p,.production-queue p{font-size:13px;line-height:1.5;color:#49616a}.handoff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:12px}
.handoff-card{background:#fff;border:1px solid #d9e8e8;border-radius:14px;padding:14px;margin-top:12px}.handoff-card small{color:#647b83}.handoff-status{font-size:12px;border-radius:20px;padding:5px 9px;background:#dcefed;color:#27625c}.handoff-processing .handoff-status{background:#fff0cb;color:#765500}.handoff-done .handoff-status{background:#d9f2df;color:#226b37}.handoff-superseded{opacity:.75}
.handoff-files{display:grid;gap:6px;margin:12px 0}.handoff-files a{display:flex;align-items:center;gap:8px;border-radius:9px;padding:9px;background:#edf5f4;color:#27625c;font-size:13px;text-decoration:none}.handoff-files a span{flex:1;overflow-wrap:anywhere}.handoff-files a small{white-space:nowrap}
.handoff-upload{padding:14px;margin:12px 0;border-radius:12px;background:white}.handoff-upload label{display:block;font-size:13px;line-height:1.6;margin:12px 0}.handoff-upload input[type=file][hidden]{display:none}.handoff-file-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.handoff-file-button{min-height:48px;padding:12px 22px;font-size:16px;gap:10px}.handoff-file-hint{font-size:13px;color:var(--muted,#526774)}.handoff-upload ul{padding-left:20px;font-size:13px;overflow-wrap:anywhere}.handoff-upload li{margin:6px 0}.handoff-upload li button{margin-left:8px}.handoff-actions,.handoff-confirm{display:flex;gap:8px;flex-wrap:wrap}.handoff-confirm p{width:100%}.production-queue summary{cursor:pointer;margin-top:14px}
.painting-stage{margin-top:14px;padding:12px;border-radius:12px;border:1px solid #d4e5e6;background:#f2f7fb}.painting-stage button{margin-top:8px}.painting-done{background:#eef9ee;border-color:#a7d5b3}.painting-done .handoff-status{background:#d9f2df;color:#226b37}.painting-returned h3{color:#226b37}

.stl-viewer{margin-top:12px;padding:12px;border:1px solid #ded6ed;border-radius:14px;background:#fff;min-width:0}.stl-viewer>header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#4c356f}.stl-file-tabs{display:flex;gap:6px;overflow-x:auto;padding:8px 0 12px}.stl-file-tabs button{min-width:120px;max-width:220px;flex-shrink:0;overflow-wrap:anywhere;text-align:left}.stl-file-tabs small{display:block;margin-top:4px}.stl-file-tabs button[aria-pressed=true],.stl-toolbar button[aria-pressed=true]{background:#ede5fa;border-color:#8d6bc6;color:#59398e}.stl-file-tabs button,.stl-toolbar button,.stl-toolbar a{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;border:1px solid #ded6ed;border-radius:9px;padding:7px 10px;background:#fff;color:#65478e;font-size:12px;cursor:pointer;text-decoration:none}.stl-file-tabs button{display:block}.stl-toolbar button:disabled{opacity:.45;cursor:default}.stl-viewport{position:relative;width:100%;height:340px;background:#f0edf5;border-radius:12px;overflow:hidden}.stl-viewport canvas{display:block;max-width:100%;cursor:grab;touch-action:none}.stl-viewport canvas:active{cursor:grabbing}.stl-viewport canvas:focus-visible{outline:3px solid #7150c8;outline-offset:-3px}.stl-overlay{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;text-align:center;background:#f0edf5e8;color:#655278}.stl-toolbar{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.stl-viewer .stl-help{font-size:12px;color:#786d89;margin-bottom:0}.painting-stage .painting-preview-button{width:100%;margin-top:12px}.stl-viewer>header button{margin:0}@media(max-width:760px){.stl-viewport{height:300px}.stl-viewer{padding:8px}.stl-toolbar button,.stl-toolbar a{min-height:42px}}

.storage-dialog{max-width:860px!important;max-height:90vh;overflow-y:auto}.storage-dialog h2{display:flex;align-items:center;gap:8px}.storage-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.storage-totals>div{display:grid;gap:7px;padding:15px;border:1px solid #e4ddef;border-radius:13px;background:#f8f5fc}.storage-totals span{font-size:12px;color:#80708e}.storage-totals b{font-size:23px;color:#664690}.storage-hint,.storage-empty{font-size:12px;color:#81748d;line-height:1.5}.storage-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.storage-filters input{flex:1;min-width:160px}.storage-filters input,.storage-filters select{border:1px solid #ddd5e9;border-radius:9px;padding:10px;background:#fff;color:#392c49}.storage-filters button{display:flex;align-items:center;gap:5px}.storage-projects{display:grid;gap:10px}.storage-project{border:1px solid #e1d9ec;border-radius:13px;padding:14px;background:#fff}.storage-project header{display:flex;justify-content:space-between;gap:12px;align-items:start}.storage-project header b{overflow-wrap:anywhere}.storage-project small{display:block;font-size:12px;color:#897a96;margin-top:4px}.storage-project header strong{white-space:nowrap;color:#6a4990}.storage-project-info{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#796b88;margin:10px 0}.storage-submitted .storage-project-info>span:first-child{color:#297942}.storage-active .storage-project-info>span:first-child{color:#ae583c}.storage-project details{font-size:13px;margin:8px 0}.storage-project summary,.storage-history summary{cursor:pointer;color:#67458d}.storage-project ul{padding:0;list-style:none}.storage-project li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #f0eaf5;font-size:12px;overflow-wrap:anywhere}.storage-project li>span:last-child{white-space:nowrap}.storage-delete{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff0f3;border:1px solid #e8abbc;color:#a92e53;padding:10px 14px;border-radius:9px;cursor:pointer;font-weight:600;min-height:42px}.storage-delete:disabled{opacity:.5;cursor:wait}.storage-locked{display:flex;align-items:center;gap:6px;font-size:12px;color:#8a7e94}.storage-confirm{padding:16px;border:1px solid #e8abbc;background:#fff5f7;border-radius:13px}.storage-confirm p{font-size:13px;line-height:1.5;color:#815466}.storage-confirm-actions{display:flex;gap:10px}.storage-history p{font-size:12px;color:#786585;line-height:1.5}.storage-result{padding:12px;border-radius:10px;background:#edf8ee;color:#2e7037;font-size:13px}@media(max-width:760px){.storage-dialog{max-width:calc(100vw - 24px)!important;max-height:90dvh}.storage-filters input{width:100%}.storage-project header{flex-wrap:wrap}}

/* Creative CAD scan editor: all surfaces inherit the selected Creative theme. */
.scan-editor{width:min(1280px,calc(100vw - 32px))!important;max-width:none!important;height:min(900px,calc(100vh - 32px));height:min(900px,calc(100dvh - 32px));max-height:calc(100vh - 32px);display:flex!important;flex-direction:column;gap:12px!important;padding:20px!important;border-radius:22px!important;background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-line);overflow:hidden}.scan-editor::-webkit-scrollbar{display:none}.scan-editor{scrollbar-width:none}.scan-editor [data-slot=dialog-header]{flex-shrink:0}.scan-editor [data-slot=dialog-title]{font-size:22px;color:var(--ui-text)}.scan-editor [data-slot=dialog-description]{color:var(--ui-muted)}.scan-editor button,.scan-editor select{border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-hover);color:var(--ui-text);padding:8px 11px;font:inherit;font-size:13px}.scan-editor button{display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;min-height:38px}.scan-editor button:disabled{opacity:.45;cursor:default}.scan-editor button[aria-pressed=true],.scan-editor button.scan-primary{background:var(--ui-accent);color:var(--ui-on-accent,#fff);border-color:var(--ui-accent)}.scan-editor button:focus-visible,.scan-editor select:focus-visible,.scan-editor input:focus-visible{outline:3px solid var(--ui-accent);outline-offset:2px}.scan-topbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex-shrink:0}.scan-topbar label{display:flex;align-items:center;gap:8px;flex:1;min-width:200px;font-size:12px}.scan-topbar select{flex:1;min-width:0;max-width:450px;text-overflow:ellipsis}.scan-topbar .scan-close{margin-left:auto}.scan-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px;min-height:0;flex:1}.scan-tools{overflow-y:auto;min-height:0;padding-right:3px;scrollbar-width:none}.scan-tools::-webkit-scrollbar{display:none}.scan-mode{display:grid;gap:7px}.scan-mode button{justify-content:flex-start}.scan-tool-card{margin-top:12px;border:1px solid var(--ui-line);border-radius:14px;padding:12px;background:var(--ui-hover);display:grid;gap:10px;font-size:12px}.scan-tool-card b{font-size:13px}.scan-tool-card p{margin:0;color:var(--ui-muted);line-height:1.5}.scan-tool-card label{display:grid;gap:6px}.scan-tool-card select{width:100%;background:var(--ui-panel)}.scan-tool-card input[type=range]{width:100%;accent-color:var(--ui-accent)}.scan-tool-card output{font-size:23px;font-weight:700;color:var(--ui-accent-ink);line-height:1.3}.scan-history{display:grid;grid-template-columns:1fr 1fr;gap:6px}.scan-history button{padding:7px 5px;font-size:11px}.scan-stats{display:block;padding:12px 3px;color:var(--ui-muted);font-size:11px}.scan-stage{min-width:0;min-height:0;display:flex;flex-direction:column}.scan-viewport{position:relative;min-height:180px;flex:1;border-radius:16px;background:var(--ui-hover);overflow:hidden}.scan-viewport canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px}.scan-empty,.scan-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:20px;text-align:center;color:var(--ui-muted);background:var(--ui-hover);z-index:1}.scan-empty>b{font-size:20px;color:var(--ui-text)}.scan-empty p{font-size:13px;line-height:1.7;margin:0}.scan-views{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.scan-help{font-size:11px;line-height:1.5;color:var(--ui-muted);margin:8px 0 0}.scan-status{flex-shrink:0;font-size:12px;overflow-wrap:anywhere}.scan-status:empty{display:none}.scan-status p{margin:0}.scan-status>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.scan-status progress{accent-color:var(--ui-accent);height:6px}.scan-error{color:#b72b4f;background:#fff0f3;border:1px solid #efb7c5;padding:10px;border-radius:10px}.scan-error button{margin-left:10px}.scan-editor footer{display:flex;gap:9px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--ui-line);padding-top:12px;flex-shrink:0}.scan-editor footer small{flex:1;min-width:180px;font-size:12px;overflow-wrap:anywhere}.scan-editor footer small span{display:block;margin-top:4px;font-size:11px;color:var(--ui-muted)}html[data-creative-tone=dark] .scan-error{color:#ffd2de;background:#462d37;border-color:#855262}@media(max-width:760px){.scan-editor{width:calc(100vw - 12px)!important;height:calc(100vh - 12px);height:calc(100dvh - 12px);max-height:calc(100vh - 12px);padding:12px!important;gap:9px!important;border-radius:16px!important;overflow-y:auto}.scan-layout{grid-template-columns:1fr;min-height:auto;flex:none}.scan-tools{overflow:visible;padding:0}.scan-mode{grid-template-columns:repeat(3,1fr)}.scan-mode button{justify-content:center;padding:9px 3px;font-size:11px;gap:3px}.scan-tool-card{gap:8px}.scan-stage{height:410px;min-height:410px}.scan-viewport{min-height:260px}.scan-topbar{gap:6px}.scan-topbar label{order:3;flex-basis:100%}.scan-topbar>button{font-size:12px}.scan-editor footer>button{flex:1}.scan-editor footer small{flex-basis:100%}.scan-editor [data-slot=dialog-title]{font-size:18px}.scan-editor [data-slot=dialog-description]{font-size:12px}}

.scan-crop-method{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.scan-crop-method button{padding:8px 4px}.scan-contour-card small{color:var(--ui-muted)}.scan-contour-card .scan-contour-preview{color:var(--ui-text);display:flex;gap:7px;align-items:flex-start}.scan-contour-preview i{background:#f24361;display:block;flex:0 0 11px;width:11px;height:11px;border-radius:50%;margin-top:3px}.scan-contour-card .scan-contour-message{border:1px solid var(--ui-line);border-radius:9px;padding:8px;background:var(--ui-panel);color:var(--ui-text)}.scan-viewport>.scan-overlay{z-index:5}

.scan-computing{position:absolute;left:12px;bottom:12px;z-index:3;display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:calc(100% - 24px);padding:10px 12px;background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-line);border-radius:12px;box-shadow:0 4px 18px #0002;font-size:12px}.scan-computing button{font-size:11px;min-height:30px;padding:5px 8px}

.scan-editor .scan-tool-card input:not([type=range]){width:100%;min-width:0;padding:8px 10px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-panel)!important;color:var(--ui-text)!important;font:inherit;box-sizing:border-box}.scan-mode{grid-template-columns:1fr 1fr}.scan-mode button{padding:8px 5px;font-size:12px}.scan-repair-card p{color:var(--ui-text)}.scan-help strong{display:block;color:var(--ui-text);font-weight:600}.scan-tools output{overflow-wrap:anywhere}@media(max-width:760px){.scan-mode{grid-template-columns:repeat(3,1fr)}}

.scan-placement-card{border-color:var(--ui-accent)}.scan-placement-card output{font-size:13px}.scan-placement-nudges{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.scan-placement-nudges button{font-size:18px;padding:4px}.scan-placement-card p{color:var(--ui-text)}

.scan-placement-bar{position:absolute;left:12px;right:12px;top:12px;z-index:3;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 12px;border-radius:12px;border:1px solid var(--ui-line);background:var(--ui-panel);color:var(--ui-text);box-shadow:0 5px 18px #0002}.scan-placement-bar strong{flex:1;font-size:12px}.scan-placement-bar button{font-size:12px;padding:7px 9px}@media(max-width:760px){.scan-placement-bar{left:8px;right:8px;top:8px;gap:6px;padding:8px}.scan-placement-bar strong{flex-basis:100%}.scan-placement-bar button{flex:1;font-size:11px}}
