:root{color-scheme:dark;--background:#141019;--foreground:#f4ebfa;--gold:#edc986;--muted:#c1accd;--border:#6a516f;--primary:#edc986;--primary-foreground:#241b2b;--card:#302537;--popover:#302537;--accent:#624773;--accent-foreground:#fff3dd;--ring:#f5d79f;font-family:'Segoe UI',Arial,sans-serif;font-size:16px}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:radial-gradient(ellipse at 40% 0,#463149,#161019 75%);color:var(--foreground);font:1rem/1.4 'Segoe UI',Arial,sans-serif}button,input,select{font:inherit}button,.button{cursor:pointer;touch-action:manipulation}button,.button,select{font-size:.875rem;color:var(--foreground);background:linear-gradient(#5d4766,#3c2c46);border:1px solid #8b708e;border-bottom-color:#211729;border-radius:8px;min-height:40px;padding:8px 12px;box-shadow:inset 0 1px #e3c7df22,0 2px 0 #1b1421}button:hover,.button:hover{border-color:var(--gold);background:#61456f}button:disabled{opacity:.4;cursor:default}button[aria-pressed=true],button[aria-selected=true]{background:linear-gradient(#f1d79f,#c6a467);border-color:#ffe3a9;color:#271a2c;box-shadow:inset 0 1px #fff4cf,0 2px #19131e}.primary,button.primary{background:var(--gold);color:#261b2c;border-color:var(--gold);font-weight:650}a{color:var(--gold)}.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,.button:focus-within{outline:3px solid #ffe6ac;outline-offset:3px}button svg{width:18px;height:18px;flex-shrink:0}h1,h2,p{margin:0}h1{font-size:1.25rem;font-weight:700;line-height:1.15}h2{font-size:1.25rem;font-weight:650;line-height:1.25}small{font-size:.75rem;letter-spacing:.1em;color:var(--muted)}[hidden]{display:none!important}
.editor-shell{display:flex;flex-direction:column;gap:12px;width:min(1440px,calc(100% - 32px));height:calc(100dvh - 32px);margin:16px auto;padding:18px;border:6px solid #483c50;border-top-color:#a189a0;border-left-color:#79667f;border-radius:30px;background:linear-gradient(130deg,#766176,#46374f 40%,#32263b);box-shadow:inset 0 0 0 2px #201925,inset 0 3px #dccbd34d,0 7px 0 #19121e,0 14px 45px #0008;position:relative}
.editor-shell:before,.editor-shell:after{content:'';position:absolute;top:5px;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,#c8c1b0 42%,#393242 44%,#393242 55%,#a89fa6 57%);box-shadow:1px 2px 3px #0009;pointer-events:none}.editor-shell:before{left:10px}.editor-shell:after{right:10px}
.editor-header{display:flex;align-items:center;gap:16px;min-height:54px;flex:none;padding:0 4px 8px}.editor-brand{font-size:1.3rem;line-height:.9;font-weight:900;letter-spacing:-.08em;text-decoration:none;color:#f3d79b}.editor-brand span{display:block;font-size:.65rem;letter-spacing:.4em;margin-top:5px}.editor-title small{display:block;font-size:.75rem;margin-bottom:5px;color:#e1cddf}.header-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.header-actions button{padding:8px 10px;min-width:40px}.return-link{white-space:nowrap}
.editor-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,430px);gap:14px;flex:1;min-height:0}.preview-bay{display:flex;flex-direction:column;min-width:0;min-height:0;border:3px solid #23192b;border-bottom-color:#a38ba6;border-radius:20px;overflow:hidden;background:radial-gradient(ellipse at 50% 42%,#56365e,#26182f 58%,#130e1c);box-shadow:inset 0 2px 14px #0009,0 1px #d6c4d533;position:relative}.preview-readout{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 16px 0;color:#d6c3e1;font-size:.75rem;flex:none;z-index:1}.live-light{color:#d2eac9;letter-spacing:.09em;white-space:nowrap}.live-light:before{content:'';display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#bce9ac;box-shadow:0 0 8px #bce9ac88}.preview-readout>span:last-child{text-align:right}.preview-stage{flex:1;min-height:0;position:relative;touch-action:none}.hand-viewer-wrap,.hand-canvas{height:100%;width:100%;position:relative}.hand-canvas canvas,#creatureStage canvas{display:block;width:100%;height:100%;touch-action:none}.model-status{position:absolute;top:42%;left:8%;right:8%;text-align:center;color:#ecd9f2}.holo-view:after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 3px,#55eaff12 3px 4px)}
.preview-toolbar{display:flex;flex-direction:column;gap:9px;align-items:center;padding:10px 12px 14px;flex:none;border-top:1px solid #6e507444;background:#2117299c}.view-buttons{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.view-buttons button{min-height:36px;padding:6px 10px;font-size:.875rem}.preview-hint{font-size:.75rem;color:#c2acca}
.design-console{min-height:0;min-width:0;display:flex;flex-direction:column;border:2px solid #241b2b;border-top-color:#a78caa;border-bottom-color:#1c1524;border-radius:17px;background:linear-gradient(155deg,#48354f,#302337 50%);box-shadow:inset 0 1px #e4c8df33,0 4px 0 #221829;overflow:hidden}.console-tabs{flex:1;min-height:0;display:flex;flex-direction:column;gap:0}.menu-tabs{display:flex;flex:none;gap:3px;align-items:stretch;justify-content:stretch;width:100%;height:auto!important;padding:8px;background:#261c2e;border-radius:0;border-bottom:1px solid #785b7e;overflow-x:auto}.menu-tabs>button{flex:1;min-height:42px;height:auto;padding:7px 9px;white-space:nowrap;border-radius:7px;font-size:.875rem;background:#41304a;color:#decee8}.menu-tabs>button[aria-selected=true]{background:linear-gradient(#efd39e,#c7a26b);color:#281c2f;border-color:#f3dba4}.console-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#a58aad #2c2034;padding:14px}.console-scroll>[role=tabpanel]{font-size:1rem;outline:none}.part-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.part-rail button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:.875rem;min-width:0;padding:7px 5px}.part-rail i{width:9px;height:9px;flex-shrink:0;border:1px solid #ffffff66;border-radius:50%}.part-rail svg{width:12px;height:12px}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0 12px}.panel-heading:first-child{margin-top:0}.panel-heading small{display:block;margin-bottom:4px;font-size:.75rem;letter-spacing:.07em}.panel-heading h2{color:#f5e4c6}.lock-part{width:40px;padding:9px}.material-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.material-grid button{padding:4px;border:1px solid #72587b;background:#24172e;border-radius:9px;overflow:hidden;min-width:0;display:flex;flex-direction:column;gap:4px;align-items:stretch;box-shadow:0 2px 0 #150e1e}.material-grid button[aria-pressed=true]{background:#e4c389;color:#241729;border:2px solid #ffe3a8;padding:3px}.material-grid img{width:100%;height:68px;object-fit:cover;border-radius:5px;background:#20112b;display:block}.material-grid button>span{display:flex;align-items:center;justify-content:center;min-height:34px;padding:0 2px 2px;font-size:.875rem;line-height:1.15;overflow-wrap:anywhere}.panel-actions{display:flex;gap:7px;margin-top:14px;flex-wrap:wrap}.panel-actions>button:first-child{flex:1}.help{font-size:.875rem;line-height:1.5;color:#c7b3cf;margin:12px 0 2px}.console-status{flex:none;padding:10px 14px;border-top:1px solid #755b7b;background:#281e30;color:#e9d3a9;font-size:.75rem;line-height:1.4;min-height:38px;overflow-wrap:anywhere}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field-grid>label:first-child{grid-column:1/-1}label{font-size:.875rem;color:#e2d0eb}select{display:block;width:100%;margin-top:7px;min-height:44px;padding:9px 10px;box-shadow:inset 0 2px 4px #160c2077;background:#281c33;border-color:#907397}select option{background:#281c33;color:#f4e8f8}.range-stack{display:grid;gap:18px;margin:20px 0}.range-field{display:block;padding:12px;border:1px solid #705478;border-radius:9px;background:#291d33;box-shadow:inset 0 1px 5px #10091788}.range-field output{float:right;color:#efd097;font-variant-numeric:tabular-nums}.range-field input{display:block;width:100%;margin-top:9px;height:28px;accent-color:var(--gold);cursor:pointer}.range-field input::-webkit-slider-runnable-track{height:8px;background:#17101f;border:1px solid #7f638b;border-radius:5px}.range-field input::-webkit-slider-thumb{margin-top:-5px}.check{display:flex;align-items:center;gap:8px;min-height:44px}.check input{width:18px;height:18px;accent-color:var(--gold)}.gesture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.gesture-grid button{text-align:left}.file-actions{display:grid;gap:10px}.file-actions>*{min-height:44px;justify-content:center}.file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-actions .button{position:relative;overflow:hidden}.coach-panel{display:grid;gap:9px}.coach-panel .panel-kicker,.coach-note{display:none}.coach-panel label{font-size:.875rem;margin-top:6px}.coach-panel select{margin:0}.coach-tone{font-size:.875rem;color:#ccb5d5}.coach-panel blockquote{padding:16px;margin:8px 0;background:#251831;border:1px solid #8e6f94;border-left:3px solid var(--gold);border-radius:8px;color:#f6e3cf;font-size:1rem;line-height:1.55}.coach-panel blockquote small{display:block;margin-bottom:9px;color:var(--gold)}
@media(min-width:1100px) and (min-height:880px){.material-grid img{height:88px}.material-grid{gap:8px}}
@media(max-width:900px){.editor-shell{width:calc(100% - 16px);height:calc(100dvh - 16px);margin:8px auto;padding:12px;gap:8px;border-width:4px;border-radius:23px}.editor-workspace{grid-template-columns:minmax(0,1fr) minmax(320px,380px);gap:9px}.editor-header{gap:12px;min-height:50px;padding-bottom:2px}.header-actions{gap:4px}.editor-title small{font-size:.75rem}.preview-toolbar{padding:8px}.preview-hint{display:none}}
@media(max-width:700px){.editor-shell{padding:9px;gap:7px}.editor-brand{display:none}.editor-header{gap:8px;min-height:48px}.editor-title h1{font-size:1.05rem}.editor-title small{letter-spacing:.05em;font-size:.75rem}.header-actions button{min-width:34px;min-height:38px;padding:7px}.return-link{font-size:.8125rem;padding:6px 8px;min-height:38px}.editor-workspace{grid-template-columns:1fr;grid-template-rows:minmax(160px,35%) minmax(0,1fr);gap:8px}.preview-bay{border-radius:14px}.preview-readout{padding:7px 10px 0;font-size:.75rem}.preview-toolbar{padding:5px 7px}.view-buttons{gap:4px}.view-buttons button{font-size:.8125rem;min-height:32px;padding:4px 9px}.design-console{border-radius:12px}.menu-tabs{padding:5px;gap:3px}.menu-tabs>button{min-height:40px;font-size:.875rem;padding:6px 8px}.console-scroll{padding:10px}.part-rail{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.part-rail button{font-size:.8125rem;padding:6px 2px;gap:3px;min-height:38px}.part-rail i{width:6px;height:6px}.part-rail svg{display:none}.panel-heading{margin:12px 0 9px}.panel-heading h2{font-size:1.125rem}.material-grid{grid-auto-flow:column;grid-template-columns:none;grid-template-rows:repeat(2,102px);grid-auto-columns:78px;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;padding:3px 2px 9px;scrollbar-color:#b59ac0 #261c2e}.material-grid img{height:53px}.material-grid button>span{font-size:.8125rem;min-height:34px}.console-status{padding:7px 10px;min-height:32px}.range-stack{gap:12px;margin-top:14px}.range-field{padding:10px}.panel-actions{margin-top:10px}}
@media(max-height:560px) and (min-width:701px){.editor-shell{margin:4px auto;height:calc(100dvh - 8px);padding:8px}.editor-header{min-height:40px}.editor-title small{display:none}.preview-readout{padding-top:7px}.preview-toolbar{padding:5px}.menu-tabs>button{min-height:36px}.console-status{padding:6px 10px;min-height:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
