:root{font-family:Segoe UI,Arial,sans-serif;color:#e8e7e2;background:#171816;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto;font-weight:400;--surface: #1d1e1b;--surface-raised: #242521;--surface-soft: #292a26;--line: #343531;--line-soft: #2b2c28;--text: #e8e7e2;--muted: #8c8d85;--dim: #61625c;--accent: #c8d19b;--accent-dark: #a6b27a;--mono: Consolas, "Courier New", monospace}*{box-sizing:border-box}html,body,#root{width:100%;min-width:760px;min-height:100%;margin:0}body{min-height:100vh;overflow:hidden}button,input{font:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.app-shell{display:grid;width:100%;height:100vh;min-height:640px;grid-template-rows:64px minmax(0,1fr) 32px;background:#171816}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 24px;border-bottom:1px solid var(--line-soft);background:#1b1c19}.brand,.topbar-actions,.brand-copy,.save-status,.button,.viewport-toolbar,.model-label,.model-presets,.camera-presets,.section-heading,.section-heading>div,.light-card-heading,.range-row,.field-heading,.color-picker-row,.color-picker,.swatch-list,.panel-note,.statusbar,.statusbar-left,.statusbar-right{display:flex;align-items:center}.brand{min-width:0;gap:12px}.brand-mark,.panel-icon{display:grid;flex:0 0 auto;place-items:center;color:var(--accent);background:#2a2c25}.brand-mark{width:34px;height:34px;border:1px solid #414438;border-radius:9px}.brand-copy{align-items:flex-start;flex-direction:column;gap:1px}.brand-name{font-size:13px;font-weight:700;letter-spacing:.13em;line-height:1}.brand-subtitle{color:#a2a39b;font-family:var(--mono);font-size:9px;letter-spacing:.12em;line-height:1.3}.topbar-divider,.statusbar-divider{width:1px;height:20px;margin:0 8px;background:var(--line)}.workspace-label,.eyebrow,.section-unit,.model-index,.model-status,.viewport-hint,.model-count,.range-scale,.field-heading>span,.statusbar,.attribution{font-family:var(--mono);letter-spacing:.08em}.workspace-label{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.topbar-actions{gap:8px;font-size:7px}.language-switch{display:flex;flex:0 0 auto;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:7px;background:#171816}.language-switch button{min-height:26px;padding:0 7px;border:0;border-radius:4px;background:transparent;color:#a3a49c;cursor:pointer;font-size:9px;font-weight:700}.language-switch button[aria-pressed=true]{background:#34372d;color:#d7dfa9}.save-status{gap:7px;margin-right:10px;color:#a3a49c;font-size:11px;white-space:nowrap}.save-indicator{display:grid;width:17px;height:17px;place-items:center;border:1px solid #4b5940;border-radius:50%;color:var(--accent)}.save-status-saving .save-indicator{border-color:#786949}.save-status-error .save-indicator{border-color:#87534d}.button{justify-content:center;gap:8px;min-height:34px;padding:0 12px;border:1px solid transparent;border-radius:6px;cursor:pointer;font-size:11px;font-weight:600;transition:background .14s ease,border-color .14s ease,color .14s ease}.button-quiet{border-color:var(--line);background:transparent;color:#c2c2bb}.button-quiet:hover{border-color:#565750;background:#262722;color:#fff}.button-primary{border-color:#c8d19b;background:var(--accent);color:#20221a}.button-primary:hover:not(:disabled){border-color:#d7dfa9;background:#d7dfa9}.button-primary:disabled{cursor:wait;opacity:.55}.workspace{display:grid;min-height:0;grid-template-columns:minmax(0,1fr) 342px;gap:0}.viewport-panel{display:grid;min-width:0;min-height:0;grid-template-rows:54px minmax(0,1fr);border-right:1px solid var(--line-soft);background:#20211e}.viewport-toolbar{justify-content:space-between;gap:16px;padding:0 22px;border-bottom:1px solid var(--line-soft);background:#1d1e1b}.model-label{min-width:0;gap:11px}.model-index{color:var(--accent);font-size:10px}.model-name{color:#e0dfd9;font-size:11px;font-weight:700;letter-spacing:.12em}.model-status{display:flex;align-items:center;gap:6px;margin-left:4px;color:#898a81;font-size:8px;white-space:nowrap}.model-status>span,.status-dot{width:6px;height:6px;border-radius:50%;background:#9faf75;box-shadow:0 0 8px #9faf7550}.model-presets,.camera-presets{display:flex;gap:3px;padding:3px;border:1px solid #33342f;border-radius:7px;background:#181916}.model-presets button,.camera-presets button{min-width:53px;padding:6px 9px;border:0;border-radius:4px;background:transparent;color:#85867e;cursor:pointer;font-size:10px;transition:background .14s ease,color .14s ease}.model-presets button:hover,.camera-presets button:hover{color:#d9d9d2}.model-presets button.active,.camera-presets button.active{background:#33352d;color:var(--accent)}.canvas-wrap{position:relative;min-width:0;min-height:0;overflow:hidden;background:#252522}.canvas-wrap>div:first-child{position:absolute!important;top:0;right:0;bottom:0;left:0}.canvas-wrap canvas{cursor:grab;touch-action:none}.viewport-hint,.model-count{position:absolute;bottom:18px;z-index:1;color:#aaa99f;font-size:8px;pointer-events:none}.viewport-hint{left:21px;display:flex;align-items:center;gap:10px}.hint-separator{width:3px;height:3px;border-radius:50%;background:#aeb687}.model-count{right:21px;color:#a2a197}.control-panel{display:flex;min-width:0;min-height:0;flex-direction:column;overflow-y:auto;padding:22px 20px 16px;background:var(--surface);scrollbar-color:#454640 transparent;scrollbar-width:thin}.mobile-controls-trigger,.mobile-zoom-controls,.drawer-backdrop,.drawer-handle,.drawer-close,.panel-attribution{display:none}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:20px}.eyebrow{display:block;margin-bottom:8px;color:#8d8e85;font-size:9px}.panel-heading h1{margin:0;color:#e8e7e1;font-size:17px;font-weight:600;letter-spacing:-.035em}.panel-icon{width:32px;height:32px;border:1px solid #3a3c33;border-radius:7px}.control-section{padding:17px 0 19px;border-top:1px solid var(--line)}.section-heading{justify-content:space-between;gap:12px;margin-bottom:13px}.section-heading>div{gap:8px}.section-number{color:#a7b283;font-family:var(--mono);font-size:9px}.section-heading h2{margin:0;color:#deddd7;font-size:12px;font-weight:600}.section-unit{color:#777870;font-size:8px}.light-list{display:grid;gap:7px}.light-card{padding:10px 10px 8px;border:1px solid #363731;border-radius:7px;background:#22231f;transition:border-color .14s ease,opacity .14s ease}.light-selected{border-color:#687251}.light-card:hover{border-color:#4a4b43}.light-disabled{opacity:.57}.light-card-heading{gap:9px;margin-bottom:8px}.light-select{display:flex;min-width:0;flex:1;align-items:center;gap:9px;padding:0;border:0;background:transparent;cursor:pointer;text-align:left}.light-swatch{width:8px;height:8px;flex:0 0 auto;border-radius:50%;box-shadow:0 0 8px currentColor}.light-color-picker{position:relative;width:18px;height:18px;flex:0 0 auto;overflow:hidden;border:1px solid #ffffff3b;border-radius:50%;cursor:pointer}.light-color-picker input[type=color]{position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;width:28px;height:28px;padding:0;border:0;opacity:0;cursor:pointer}.light-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.light-copy strong{color:#d7d6cf;font-size:10px;font-weight:600}.light-copy span{color:#7d7e76;font-size:9px}.light-direction-hint{margin:9px 1px 0;color:#85867e;font-size:9px;line-height:1.5}.toggle{position:relative;width:28px;height:16px;flex:0 0 auto;padding:2px;border:1px solid #4a4b45;border-radius:10px;background:#343530;cursor:pointer;transition:background .14s ease,border-color .14s ease}.toggle>span{display:block;width:10px;height:10px;border-radius:50%;background:#989991;transition:transform .14s ease,background .14s ease}.toggle-on{border-color:#aebb84;background:#aebb84}.toggle-on>span{transform:translate(12px);background:#292b23}.skin-simulation-control{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:10px;border:1px solid #363731;border-radius:7px;background:#22231f}.skin-simulation-active{border-color:#687251}.skin-simulation-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.skin-simulation-copy strong{color:#d7d6cf;font-size:10px;font-weight:600}.skin-simulation-copy span,.skin-simulation-note{color:#85867e;font-size:9px;line-height:1.5}.skin-scattering-range{margin:0 0 8px}.skin-scatter-color{margin:12px 0 16px}.skin-simulation-note{margin:0 0 16px}.range-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px}.range-name,.field-heading label{color:#a8a9a0;font-size:10px}.range-value{color:#cecec5;font-family:var(--mono);font-size:9px}.range-row input[type=range]{width:100%;height:3px;grid-column:1 / -1;margin:1px 0 0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:4px;background:linear-gradient(to right,#aebb84 0%,#aebb84 var(--range-progress, 50%),#484943 var(--range-progress, 50%),#484943 100%);cursor:pointer}.range-row input[type=range]::-webkit-slider-thumb{width:11px;height:11px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #d5ddbb;border-radius:50%;background:#aebb84}.range-row input[type=range]::-moz-range-thumb{width:8px;height:8px;border:2px solid #d5ddbb;border-radius:50%;background:#aebb84}.range-row input[type=range]:disabled{cursor:not-allowed;opacity:.55}.field-heading{justify-content:space-between;gap:8px;margin-bottom:8px}.field-heading>span{color:#777870;font-size:8px}.color-control{margin-bottom:17px}.color-picker-row{gap:10px}.color-picker{position:relative;min-width:0;height:34px;flex:1;gap:8px;padding:0 8px;border:1px solid #3b3c36;border-radius:5px;background:#232420;cursor:pointer}.color-preview{width:17px;height:17px;flex:0 0 auto;border:1px solid #ffffff25;border-radius:4px}.color-value{color:#c6c6bd;font-family:var(--mono);font-size:9px}.color-picker input[type=color]{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.swatch-list{gap:5px}.swatch-button{width:20px;height:20px;padding:0;border:1px solid #ffffff1a;border-radius:50%;cursor:pointer;transition:outline-color .14s ease,transform .14s ease}.swatch-button:hover{transform:scale(1.1)}.swatch-button[aria-pressed=true]{outline:1px solid #d4ddb5;outline-offset:2px}.material-range{padding-top:1px}.range-scale{display:flex;justify-content:space-between;grid-column:1 / -1;margin-top:-1px;color:#6f7069;font-size:8px}.environment-section{padding-bottom:17px}.environment-section .color-picker-row{margin-top:2px}.background-swatch{border-radius:5px}.panel-note{align-items:flex-start;gap:8px;margin-top:auto;padding:12px 0 0;border-top:1px solid var(--line);color:#85867e}.panel-note svg{flex:0 0 auto;margin-top:1px;color:#a4af80}.panel-note p{margin:0;font-size:9px;line-height:1.5}.statusbar{justify-content:space-between;gap:16px;padding:0 17px;border-top:1px solid var(--line-soft);background:#1b1c19;color:#8d8e85;font-size:8px}.statusbar-left,.statusbar-right{min-width:0;gap:9px}.status-dot{width:5px;height:5px}.statusbar-divider{height:13px;margin:0 2px}.attribution{color:#a9aa9f;font-size:8px;text-decoration:none;white-space:nowrap}.attribution:hover{color:var(--accent)}.notice{display:flex;align-items:center;gap:6px;overflow:hidden;color:#d3ca9b;font-family:Segoe UI,Arial,sans-serif;font-size:10px;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap}.notice button{padding:0 2px;border:0;background:transparent;color:inherit;cursor:pointer;font-size:14px;line-height:1}.model-loading,.model-error{display:flex;align-items:center;flex-direction:column;gap:9px;min-width:210px;padding:16px 18px;border:1px solid #ffffff20;border-radius:8px;background:#1b1c19e8;color:#dad9d2;font-family:Segoe UI,Arial,sans-serif;font-size:11px;text-align:center}.viewer-fallback{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#a7a89d;font-size:12px}.model-error{max-width:330px;color:#eee2d8}.model-error strong{font-size:12px}.model-error span{color:#c0b9b1;line-height:1.5;overflow-wrap:anywhere}.model-error button{margin-top:3px;padding:7px 10px;border:1px solid #69754f;border-radius:5px;background:#33382a;color:#d8e1b2;cursor:pointer;font-size:10px}.loading-spinner{width:18px;height:18px;border:2px solid #ffffff30;border-top-color:var(--accent);border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1040px){.workspace{grid-template-columns:minmax(0,1fr) 310px}.control-panel{padding-right:15px;padding-left:15px}.save-status{display:none}}@media(max-width:760px){html,body,#root{width:100%;min-width:320px;height:100%;min-height:0}body{height:100vh;height:100dvh;overflow:hidden}.app-shell{height:100vh;height:100dvh;min-height:0;grid-template-rows:52px minmax(0,1fr) 30px}.topbar{gap:8px;padding:0 12px}.topbar-divider,.workspace-label,.save-status{display:none}.topbar-actions{flex:0 0 auto;gap:6px}.button{min-height:34px;gap:6px;padding:0 9px;font-size:10px}.workspace{position:relative;overflow:hidden;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.viewport-panel{grid-template-rows:52px minmax(0,1fr);border-right:0;border-bottom:0}.viewport-toolbar{min-height:0;justify-content:flex-start;gap:6px;overflow-x:auto;padding:0 8px;scrollbar-width:none}.viewport-toolbar::-webkit-scrollbar{display:none}.model-label{display:none}.model-presets,.camera-presets{flex:0 0 auto;gap:1px;padding:2px}.model-presets button,.camera-presets button{min-width:0;min-height:40px;padding:6px 8px;font-size:10px;white-space:nowrap}.camera-presets button{min-width:38px}.canvas-wrap{min-height:0}.viewport-hint,.model-count{display:none}.mobile-controls-trigger{position:absolute;right:14px;bottom:max(14px,env(safe-area-inset-bottom));z-index:2;display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:8px;padding:0 15px;border:1px solid #d5dda9;border-radius:999px;background:var(--accent);box-shadow:0 5px 18px #0007;color:#20221a;cursor:pointer;font-size:11px;font-weight:600}.mobile-zoom-controls{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:14px;z-index:2;display:flex;gap:7px}.mobile-zoom-controls button{display:grid;width:44px;height:44px;place-items:center;border:1px solid #ffffff30;border-radius:50%;background:#1d1e1be8;box-shadow:0 4px 14px #0007;color:#e8e7e2;cursor:pointer;touch-action:manipulation}.mobile-zoom-controls button:active{background:#3a3b34;color:var(--accent)}.control-panel{display:none}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:block;width:100%;height:100%;padding:0;border:0;background:#0c0d0bbf;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);cursor:pointer}.control-panel.mobile-controls-open{position:fixed;inset:auto 0 0;z-index:31;display:flex;width:100%;height:min(82dvh,700px);max-height:calc(100dvh - 52px);min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px 18px max(16px,env(safe-area-inset-bottom));border:1px solid #44453c;border-bottom:0;border-radius:18px 18px 0 0;background:var(--surface);box-shadow:0 -12px 42px #000b;touch-action:pan-y}.drawer-handle{display:block;width:36px;height:4px;flex:0 0 auto;align-self:center;margin-bottom:12px;border-radius:999px;background:#696a61}.panel-heading{position:sticky;top:-8px;z-index:1;flex:0 0 auto;align-items:center;margin:0;padding:8px 0 16px;background:var(--surface)}.panel-heading .eyebrow{margin-bottom:5px}.panel-heading h1{font-size:16px}.panel-icon{display:none}.drawer-close{display:grid;width:40px;height:40px;flex:0 0 auto;place-items:center;border:1px solid #45463f;border-radius:50%;background:#292a26;color:#e8e7e2;cursor:pointer}.control-section{padding:15px 0 16px}.section-heading{margin-bottom:10px}.light-list{gap:6px}.light-card{padding:9px 10px 8px}.light-card-heading{margin-bottom:7px}.light-select{min-height:40px}.light-color-picker{width:36px;height:36px;border-radius:9px}.light-color-picker input[type=color]{top:0;right:0;bottom:0;left:0;width:100%;height:100%}.toggle{width:40px;height:24px;padding:3px}.toggle>span{width:16px;height:16px}.toggle-on>span{transform:translate(18px)}.light-direction-hint{margin-top:8px}.range-row input[type=range]{height:28px;margin:-5px 0;background-position:center;background-repeat:no-repeat;background-size:100% 3px}.range-row input[type=range]::-webkit-slider-thumb{width:16px;height:16px}.range-row input[type=range]::-moz-range-thumb{width:14px;height:14px}.color-control{margin-bottom:14px}.swatch-button{width:30px;height:30px}.panel-note{align-items:flex-start;margin-top:12px;padding:12px 0 0}.panel-attribution{display:block;margin-top:6px;color:#a9aa9f;font-family:var(--mono);font-size:8px;letter-spacing:.08em;line-height:1.5;text-decoration:none}.panel-attribution:hover{color:var(--accent)}.statusbar{justify-content:flex-end;gap:8px;padding:0 12px;font-size:7px}.statusbar-left,.attribution{display:none}.statusbar-right{width:100%;justify-content:flex-end}.notice{max-width:100%;font-size:9px}.notice button{min-width:28px;min-height:28px}}@media(max-width:430px){.button-quiet span,.button-primary span{display:none}.button-primary{width:36px;padding:0}}@media(min-width:761px)and (max-height:760px){.control-panel{padding-top:15px}.panel-heading{padding-bottom:13px}.control-section{padding-top:12px;padding-bottom:13px}.light-list{gap:5px}.light-card{padding-top:8px;padding-bottom:7px}}
