:root{--header-height:86px;--green:#a5ff1b;--bg:#080b0b;--panel:#101715;--line:#34413a;--muted:#a5b4ad}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f1fff1;font:14px system-ui,Arial}button,input,select{font:inherit}button{background:#1b2922;color:#e8ffe9;border:1px solid #3c5441;border-radius:6px;padding:10px 12px;cursor:pointer}button:hover{border-color:var(--green);color:var(--green)}button:disabled{opacity:.45;cursor:not-allowed}.green,.upload{background:var(--green);color:#081007;border:0;font-weight:900}.upload{display:inline-flex;align-items:center;cursor:pointer;padding:10px 14px;border-radius:6px}header{position:sticky;top:0;z-index:5;height:var(--header-height);background:linear-gradient(90deg,#080d0a,#152118);display:flex;align-items:center;gap:14px;padding:0 16px 0 13px}header img{width:285px;max-height:65px;object-fit:contain}header>span{font-weight:900;letter-spacing:2px;color:var(--green)}header small{display:block;font-size:10px;letter-spacing:1px;color:#e8ffe9;margin-top:5px}.righthead{margin-left:auto;display:flex;align-items:center;gap:10px}.righthead span{font-size:11px;color:#b7c9bb}.shell{display:grid;grid-template-columns:190px minmax(400px,1fr) 320px;height:calc(100vh - var(--header-height));min-height:620px}nav{background:#101713;border-right:1px solid var(--line);padding:15px 10px;overflow:auto}nav button{width:100%;text-align:left;margin-bottom:8px;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.4px}nav button.active{background:var(--green);color:#061006;border-color:var(--green)}main{min-width:0;display:flex;flex-direction:column;background:#070c0a}.topline{padding:13px 15px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.tag{color:var(--green);font-size:10px;letter-spacing:1px;font-weight:900}.topline #fileStatus{flex:1;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stage{position:relative;flex:1;min-height:330px;background:linear-gradient(0deg,rgba(0,0,0,.72),rgba(0,0,0,.18)),url('assets/garage.png') center/cover no-repeat;overflow:hidden}.stage canvas{display:block;width:100%;height:100%}.empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;pointer-events:none}.empty strong{font-size:20px;letter-spacing:2px}.empty span{max-width:430px;color:#d0e0d3;font-size:12px}.stageBadge{position:absolute;left:20px;top:18px;color:var(--green);font-size:16px;font-weight:1000;letter-spacing:2px;text-shadow:0 2px 5px #000;pointer-events:none}.stageBadge small{display:block;color:#e4f3e5;font-size:10px;letter-spacing:1px}.stageTools{position:absolute;bottom:16px;left:18px;display:flex;gap:8px}.stageTools button{background:#111d19dd}.bottom{height:190px;background:#0c1410;border-top:1px solid var(--line);overflow:auto;padding:12px 15px}.bottom>div:first-child{display:flex;justify-content:space-between}.bottom b{color:var(--green);font-size:12px}.bottom span{color:var(--muted);font-size:12px}.files{display:flex;gap:6px;flex-wrap:wrap;padding-top:12px;color:#9eafa2}.files button{font-size:11px;padding:6px 8px}aside{background:var(--panel);border-left:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.asideTitle{padding:22px 18px;border-bottom:1px solid var(--line)}.asideTitle span{display:block;color:var(--green);font-size:19px;font-weight:900}.asideTitle small{color:var(--muted)}#panel{padding:20px 18px;overflow:auto;flex:1}.field{margin-bottom:20px}.field label{display:flex;justify-content:space-between;margin-bottom:8px;font-size:12px;font-weight:700}.field label output{color:var(--green)}.field input[type=range]{width:100%;accent-color:var(--green)}.field input[type=color]{width:100%;height:45px;border:1px solid var(--line);background:transparent}.field input[type=text],.field select,.field textarea{width:100%;background:#07100b;color:#e9fbea;border:1px solid #435e49;border-radius:5px;padding:10px}.field textarea{min-height:100px;resize:vertical}.section{color:var(--green);font-size:12px;letter-spacing:1px;margin:16px 0 12px}.help{font-size:12px;line-height:1.6;color:#b8c8bd}.status{border-top:1px solid var(--line);padding:14px;color:#a7b9aa;font-size:11px;line-height:1.5}#toast{position:fixed;bottom:22px;right:22px;z-index:10;background:#a5ff1b;color:#081008;font-weight:750;padding:12px 16px;border-radius:8px;display:none;max-width:380px}@media(max-width:1000px){.shell{grid-template-columns:150px minmax(280px,1fr) 270px}header img{width:180px}.righthead span{display:none}}@media(max-width:700px){header{height:auto;flex-wrap:wrap;padding-block:10px}header img{width:170px}.righthead{width:100%;justify-content:flex-end}.shell{display:flex;flex-direction:column;height:auto}nav{display:flex;overflow:auto;gap:8px}nav button{min-width:125px}.stage{height:440px;flex:none}aside{min-height:380px}.bottom{height:140px}}

#viewer{position:absolute;inset:0}.empty[hidden]{display:none}.empty strong,.empty span{margin-inline:24px;text-shadow:0 2px 5px #000}

/* Full-width Part 9 banner with the browser's project actions below it. */
:root{--header-height:calc(clamp(62px,9.03vw,151px) + 54px)}
header{display:flex;flex-direction:column;align-items:stretch;height:var(--header-height);gap:0;padding:0;background:#080909}
header img{display:block;width:100%;height:clamp(62px,9.03vw,151px);max-height:none;object-fit:fill;clip-path:polygon(0 0,93% 0,93% 22%,100% 22%,100% 100%,0 100%)}
.header-actions{display:flex;align-items:center;justify-content:flex-end;min-height:54px;padding:0 16px;border-bottom:1px solid var(--line)}
.header-actions .righthead{width:auto;margin:0}
.surface-preview{display:block;width:100%;max-height:138px;object-fit:contain;margin-bottom:12px;background:#080b0a}
.field select{width:100%;background:#07100b;color:#e9fbea;border:1px solid #435e49;border-radius:5px;padding:8px}
