:root{--ink:#163552;--navy:#071d36;--muted:#6b7e90;--cyan:#5ae5ed;--line:#dde5eb;--white:#fff;--font:'Zen Maru Gothic',sans-serif;--latin:'Manrope',sans-serif}*{box-sizing:border-box}body{margin:0;background:#f6f8fa;color:var(--ink);font:14px/1.7 var(--font)}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:white;border-radius:8px;min-height:40px;padding:8px 14px;font-weight:700;transition:background .15s,border-color .15s}button:hover:enabled{background:#eaf8fa;border-color:#78c8d0}button:disabled{cursor:wait;opacity:.45}button.primary{background:var(--cyan);border-color:var(--cyan);color:#08364e}.primary:hover:enabled{background:#7debf1}button.secondary{background:#edf4f8}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:4px}:focus-visible{outline:3px solid #00a5bd;outline-offset:3px}[hidden]{display:none!important}.sr-only,.skip{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.skip:focus{clip-path:none;width:auto;height:auto;z-index:1000;background:white;padding:16px}.studio-header{height:76px;background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:22px}.brand{display:flex;align-items:center;gap:10px;font:800 20px/1 var(--latin);letter-spacing:-.8px}.brand img{border-radius:9px}.brand span span{display:block;font-size:8px;letter-spacing:2px;margin-top:7px;color:#c3d6e8}.studio-title{display:flex;gap:12px;align-items:center}.studio-title h1{font-size:17px;font-weight:700;letter-spacing:.06em;margin:0}.beta{border:1px solid #5ae5ed70;color:#8aeff4;border-radius:50px;padding:2px 10px;font-size:10px;white-space:nowrap}.home-link{font-size:12px;color:#c8dce9;white-space:nowrap}.home-link span{margin-left:20px;color:var(--cyan)}.project-bar{padding:15px 28px;display:flex;gap:20px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:white}.project-name{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.project-name label{font-size:10px;color:var(--muted)}#character-name{width:230px;border:0;border-bottom:1px solid transparent;padding:5px 0;color:var(--ink);font-size:15px;font-weight:700;background:transparent}#character-name:focus{outline:0;border-bottom-color:#28afb9}#save-state{font-size:10px;color:var(--muted)}.project-actions{display:flex;gap:8px;flex-shrink:0}.project-actions button{font-size:12px}.project-actions .primary span{margin-left:24px}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:700px;height:calc(100dvh - 194px);max-height:1100px}.settings{background:white;border-right:1px solid var(--line);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.panel-intro{padding:26px 24px 22px}.eyebrow{font:800 9px/1.5 var(--latin);letter-spacing:1.6px;color:#168197}.panel-intro h2{font-size:19px;margin:12px 0 9px}.panel-intro p{font-size:11px;line-height:1.9;color:var(--muted);margin:0}.tabs{display:flex;padding:0 20px;gap:14px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 2px;font-size:12px;flex:1;background:white}.tabs button[aria-selected=true]{color:#087a91;border-bottom-color:#1699ad}.tabs button:hover:enabled{background:white;color:#087a91}fieldset{border:0;padding:0;margin:0;min-width:0}details{border-bottom:1px solid var(--line)}summary{list-style:none;cursor:pointer;display:flex;gap:12px;align-items:center;min-height:61px;padding:15px 24px;font-size:13px;font-weight:700}summary::-webkit-details-marker{display:none}summary>span:first-child{font:700 9px var(--latin);color:#8c9dab}.plus{font-size:16px;font-weight:400;color:#8196a7;margin-left:auto}details[open]>summary .plus{transform:rotate(45deg)}.control-body{padding:0 24px 24px;display:grid;gap:17px}.field{font-size:11px;display:grid;gap:7px;color:#50697d}.field input,.field select{height:38px;max-width:100%;min-width:0;background:#f6f8fa;border:1px solid var(--line);border-radius:6px;padding:0 9px;color:var(--ink);font-size:12px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.color-field{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#50697d}input[type=color]{width:53px;height:29px;padding:3px;border:1px solid var(--line);border-radius:6px;background:white;cursor:pointer}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:0;border-radius:3px}.slider{display:grid;grid-template-columns:1fr auto;font-size:11px;color:#50697d;gap:6px}.slider output{font:600 10px var(--latin);color:#74899a;align-self:center}.slider input{grid-column:1/-1;width:100%;margin:0;accent-color:#1397ac;height:24px;cursor:pointer}.check{display:flex;align-items:center;gap:9px;font-size:11px;color:#50697d}.check input{accent-color:#1397ac;width:15px;height:15px;margin:0}.development-note{font-size:9px;color:#8496a4;padding:22px 24px;margin:0;line-height:1.9}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#26b5bf;margin-right:7px;vertical-align:middle}.preview{position:relative;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#eef2f5}.preview-top{position:absolute;top:23px;left:26px;right:26px;display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none;z-index:1}#model-label{font-size:10px;color:#677e91;border:1px solid #bccbd666;background:#ffffff99;padding:4px 12px;border-radius:30px;max-width:55%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.live-label{font:700 8px var(--latin);letter-spacing:1.5px;color:#6a8193;display:flex;align-items:center;gap:6px}.live-label i{width:5px;height:5px;background:#2da4ac;border-radius:50%}#viewport{width:100%;flex:1;position:relative;min-height:350px;overflow:hidden}canvas{width:100%;height:100%;display:block;touch-action:none}.loading,.render-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px;background:#eef2f5;z-index:2}.loading strong{font-size:13px}.loading p,.render-error p{font-size:11px;color:var(--muted);max-width:400px}.loader{width:27px;height:27px;border:2px solid #d0dce5;border-top-color:#1498a6;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}@keyframes spin{to{transform:rotate(360deg)}}.render-error h2{font-size:17px}.render-error button{margin-top:14px}.preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 26px 0}.view-buttons{display:flex;gap:3px;border:1px solid #ccd8e0;border-radius:9px;padding:4px;background:#ffffffb3}.view-buttons button{font-size:10px;min-height:32px;padding:5px 17px;border:0;background:none;border-radius:5px}.view-buttons button[aria-pressed=true]{background:var(--navy);color:white}.view-buttons button:hover{background:#dce8ee}.view-buttons button[aria-pressed=true]:hover{background:var(--navy)}.snapshot{font-size:11px;background:#fff9;border-color:#ccd8e0;padding:7px 16px;white-space:nowrap}.snapshot span{margin-left:12px}.preview-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 26px 20px;color:#8495a3;font-size:9px}.preview-caption label{display:flex;align-items:center;gap:5px}.preview-caption input{accent-color:#1699ad;margin:0}.studio-footer{min-height:54px;padding:15px 28px;display:flex;justify-content:space-between;align-items:flex-start;gap:22px;background:white;border-top:1px solid var(--line)}.studio-footer>span{font:700 8px/2.5 var(--latin);letter-spacing:1px;white-space:nowrap;color:#8396a7}.studio-footer b{color:#17a8b6;padding:0 7px}.studio-footer details{border:0;max-width:600px}.studio-footer summary{padding:0;min-height:22px;font-size:10px;color:#668092;justify-content:flex-end}.studio-footer summary:after{content:'＋';font-size:13px}.studio-footer details[open] summary:after{content:'−'}.studio-footer p{font-size:11px;line-height:1.9;color:#6d8192}.import-intro,.parts-section{padding:22px 24px;border-bottom:1px solid var(--line)}h3{font-size:13px;margin:0 0 10px}.import-intro p,.parts-section>p,.model-guide p{font-size:11px;color:var(--muted);line-height:1.9}.upload-button{display:flex;justify-content:space-between;gap:15px;font-size:10px;width:100%;border:1px dashed #a6bdcc;padding:11px 12px;background:#f5f9fb}.upload-button span{font-size:16px;color:#148a9b}.hint{font-size:9px!important;color:#8c9eac!important;margin:8px 0}.text-button{padding:3px 0;min-height:30px;font-size:10px;border:0;background:none!important;text-decoration:underline;text-underline-offset:3px}.danger{color:#b45d63}#mesh-section{padding:22px 24px;border-bottom:1px solid var(--line)}.mesh-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f3;padding:7px 0;gap:9px}.mesh-row label{font-size:10px;display:flex;gap:8px;align-items:center;min-width:0}.mesh-row label span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:145px}.mesh-row input[type=checkbox]{accent-color:#1699ad}.mesh-row input[type=color]{flex-shrink:0;width:34px;height:25px}.parts-list-empty{font-size:10px;color:#8396a6}.part-row{display:flex;gap:8px;margin-top:8px}.part-row button{width:100%;font-size:11px;display:flex;justify-content:space-between;gap:8px;text-align:left;overflow:hidden}.part-row button.active{border-color:#2ca3b6;background:#edfafd}.part-row span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#part-transform{padding-top:18px}.transform-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin:8px 0 17px}.transform-title{font-size:10px;color:#6a8193;margin:14px 0 0}.transform-row label{font:500 9px var(--latin);color:#8092a2;display:grid;gap:5px}.transform-row input{max-width:100%;width:100%;font-size:11px;padding:6px 7px;border:1px solid var(--line);border-radius:5px;color:var(--ink);background:#f7f9fa}.model-guide summary{font-size:11px;padding:18px 24px}.model-guide p,.model-guide a{display:block;margin:0;padding:0 24px 18px}.model-guide a{font-size:10px;color:#09869b;text-decoration:underline}.note{padding:15px 24px;font-size:11px;line-height:1.9;color:#387b8c;background:#f0fbfc;margin:0}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:13px 23px;border-radius:10px;background:#08243dee;color:white;font-size:12px;z-index:20;box-shadow:0 8px 35px #1234;transition:opacity .2s,transform .2s;max-width:calc(100vw - 32px);text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.noscript{padding:30px;background:white}
@media(min-width:1550px){.workspace{grid-template-columns:340px minmax(0,1fr)}.panel-intro{padding-left:32px}.control-body,summary{padding-left:32px;padding-right:32px}}
@media(max-width:1000px){.studio-header{padding:0 22px}.project-name label,#save-state{display:none}.project-bar{padding:12px 20px}.workspace{grid-template-columns:280px minmax(0,1fr)}.project-actions button{padding:8px 11px}.project-actions .primary span{margin-left:8px}.preview-bottom{padding-left:16px;padding-right:16px}.view-buttons button{padding:5px 12px}.preview-caption{padding-left:16px;padding-right:16px}.preview-caption>span{max-width:180px;font-size:8px}}
@media(max-width:720px){.studio-header{height:65px;padding:0 16px;gap:12px}.brand{font-size:17px;gap:8px}.brand img{width:30px;height:30px}.brand span span{font-size:7px}.studio-title{gap:7px}.studio-title h1{font-size:12px;letter-spacing:0}.beta{font-size:8px;padding:1px 7px}.home-link{display:none}.project-bar{padding:12px 15px;display:block}.project-name{margin-bottom:10px}#character-name{font-size:14px;width:100%}.project-actions{gap:6px}.project-actions button{font-size:11px;min-height:40px;padding:7px 12px}.project-actions .primary{margin-left:auto}.workspace{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0}.preview{order:-1;height:530px;min-height:0;border-bottom:1px solid var(--line)}.preview-top{top:15px;left:17px;right:17px}#viewport{min-height:300px}.preview-bottom{padding:8px 15px 0}.preview-caption{padding:10px 15px 16px;font-size:8px}.preview-caption>span{max-width:none;font-size:8px}.preview-caption label{white-space:nowrap}.snapshot{min-height:40px;font-size:10px;padding:5px 10px}.view-buttons button{min-height:34px;font-size:10px;padding:4px 13px}.settings{overflow:visible;border-right:0}.panel-intro{padding:24px 22px 18px}.panel-intro h2{font-size:19px}.panel-intro p br{display:none}.panel-intro p{font-size:12px}.tabs{padding:0 22px;top:0;border-top:1px solid #eef2f5}.tabs button{font-size:13px;min-height:50px}.control-body{padding:0 24px 26px;gap:20px}.field,.slider,.color-field,.check{font-size:13px}.field select,.field input{height:43px;font-size:13px}.slider input{height:30px}.slider output{font-size:11px}summary{font-size:14px;min-height:64px}details .control-body{max-width:600px}.development-note{font-size:10px}.studio-footer{padding:18px 20px;flex-direction:column;gap:9px}.studio-footer summary{justify-content:flex-start}.import-intro p,.parts-section>p,.model-guide p{font-size:12px}.upload-button{font-size:12px;min-height:48px}.mesh-row label{font-size:12px}.mesh-row label span{max-width:60vw}.part-row button{font-size:12px;min-height:44px}.transform-row input{font-size:13px;min-height:42px}.transform-title{font-size:12px}.model-guide a{font-size:12px}.import-intro h3,.parts-section h3{font-size:14px}}
@media(max-width:380px){.brand{font-size:15px}.studio-title h1{font-size:11px}.studio-header{gap:8px;padding:0 12px}.preview{height:475px}.preview-caption{font-size:7px;gap:5px}.preview-caption>span{font-size:7px}.view-buttons button{padding:4px 10px}.snapshot span{margin-left:4px}.project-actions button{font-size:10px;padding:7px 10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}.loader{animation:none;border-color:#1498a6}}
/* Keep the character visible while adjusting controls on a phone. */
@media(max-width:720px){.preview{position:sticky;top:0;z-index:3;height:380px;box-shadow:0 2px 8px #1635520a}#viewport{min-height:240px}.tabs{top:380px;z-index:4}}
@media(max-width:380px){.preview{height:340px}.tabs{top:340px}#viewport{min-height:210px}}
/* Curated starting points, reversible adjustments and an honest model preview. */
.workspace{grid-template-columns:340px minmax(0,1fr)}
.panel-intro{padding:23px 24px 19px}.panel-intro h2{margin:10px 0 7px}
.starter-body{padding:0 20px 24px}.starter-hint{font-size:11px;line-height:1.8;color:var(--muted);margin:0 4px 16px}
.preset-grid,.palette-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.preset{padding:0 0 12px;text-align:left;overflow:hidden;border-radius:10px;font-size:11px;line-height:1.5;min-width:0}
.preset img{display:block;width:100%;height:auto;aspect-ratio:256/216;object-fit:cover;background:#edf2f5;border-bottom:1px solid #e5ebf0;margin-bottom:10px}
.preset strong,.preset small{display:block;margin:0 10px}.preset strong{font-size:11px}.preset small{font-size:9px;line-height:1.6;color:var(--muted);font-weight:400;margin-top:4px}
.preset[aria-pressed=true],.palette[aria-pressed=true]{border-color:#1496aa;box-shadow:0 0 0 1px #1496aa;background:#f0fcfd}
.palette-heading{margin:23px 4px 12px;font-size:11px}.palette{padding:9px 10px;font-size:10px;font-weight:500;display:grid;gap:7px;justify-items:start;line-height:1.5}
.palette-dots{display:flex;gap:4px}.palette-dots i{display:block;width:18px;height:18px;border-radius:50%;border:1px solid #17355212}
.range-hints{display:flex;justify-content:space-between;grid-column:1/-1;font-size:9px;color:#7c8e9e;margin-top:-5px}
.edit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 20px;background:#f7f9fbbb;border-bottom:1px solid #dce5eb;z-index:1;flex-shrink:0}
.history-buttons,.compare-buttons{display:flex;gap:6px}.edit-toolbar button{font-size:10px;min-height:36px;padding:7px 11px;background:#fff9}.edit-toolbar button:disabled{cursor:default}.edit-toolbar button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}
.preview-top{top:84px}.comparison-note{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);padding:8px 15px;border-radius:20px;background:#183650eb;color:white;font-size:11px;text-align:center;white-space:nowrap;z-index:1;pointer-events:none}
@media(min-width:1550px){.workspace{grid-template-columns:360px minmax(0,1fr)}}
@media(max-width:1000px){.workspace{grid-template-columns:300px minmax(0,1fr)}.edit-toolbar{padding:10px 12px;gap:5px}.edit-toolbar button{font-size:9px;padding:6px 8px}.history-buttons,.compare-buttons{gap:4px}.preview-top{top:76px}.view-buttons button{padding:5px 10px}}
@media(max-width:800px) and (min-width:721px){.edit-toolbar{flex-wrap:wrap}.edit-toolbar>div{flex:1;justify-content:center}.preview-top{top:120px}}
@media(max-width:720px){.workspace{display:flex}.preview{height:420px}#viewport{min-height:0}.tabs{top:420px}.edit-toolbar{padding:9px 12px;gap:6px}.edit-toolbar button{font-size:9px;min-height:36px;padding:6px 8px}.preview-top{top:67px}.live-label{font-size:7px}.view-buttons button{padding:4px 10px}.preview-bottom{gap:6px}.preview-caption{padding-bottom:10px}.preset img{max-height:185px;object-fit:cover}.preset strong{font-size:13px}.preset small{font-size:11px}.starter-body{padding:0 24px 26px}.starter-hint{font-size:12px}.palette-heading{font-size:12px}.palette{font-size:12px;padding:12px}.palette-dots i{width:22px;height:22px}.range-hints{font-size:11px}.comparison-note{font-size:9px;padding:6px 12px;bottom:9px}}
@media(max-width:380px){.preview{height:375px}.tabs{top:375px}.edit-toolbar{padding:8px;gap:4px}.edit-toolbar button{padding:5px 6px;font-size:8px}.view-buttons button{padding:4px 8px}.preview-top{top:65px}.comparison-note{font-size:8px}.snapshot{font-size:9px;padding:5px 8px}}
@media(max-width:720px) and (max-height:680px){.preview{height:320px}.tabs{top:320px}.preview-caption{display:none}.preview-top{top:63px}}
.morph-section{padding:22px 24px;border-bottom:1px solid var(--line)}.morph-section>p{font-size:11px;color:var(--muted);line-height:1.9}.morph-empty{background:#f1f6f8;padding:12px;border-radius:8px}.morph-section details{border:0;border-top:1px solid var(--line);margin-top:12px}.morph-section summary{padding:12px 0;min-height:45px;font-size:11px;overflow-wrap:anywhere}.morph-controls{display:grid;gap:17px;padding:0 0 10px}.morph-controls .slider>span{overflow-wrap:anywhere;min-width:0}
#toast{width:max-content;max-width:min(520px,calc(100vw - 32px))}
@media(max-width:720px){.edit-toolbar button{min-height:44px}.preview-top{top:75px}}
