:root{font-synthesis:none;font-family:Segoe UI,Inter,-apple-system,BlinkMacSystemFont,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;height:100%;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.43;cursor:not-allowed}:focus-visible{outline:3px solid var(--accent,#80dbd1);outline-offset:2px}.appShell{--bg:#17131c;--surface:#221b29;--panel:#2c2233;--panel2:#362b3e;--line:#54435d;--text:#f6eef7;--muted:#c8b5cd;--accent:#d38da8;--accent-soft:#4e3041;--warning:#eaa9a7;--stage:#172029;background:var(--bg);height:100dvh;min-height:460px;color:var(--text);flex-direction:column;display:flex;overflow:hidden}.appShell[data-theme=violet]{--bg:#171323;--surface:#221a34;--panel:#292141;--panel2:#322a4b;--line:#554b73;--text:#f4effd;--muted:#c6bce0;--accent:#b49aff;--accent-soft:#45366b}.appShell[data-theme=red]{--bg:#201517;--surface:#2b1d20;--panel:#3b2628;--panel2:#462b2f;--line:#765056;--text:#fff1f1;--muted:#dbc2c2;--accent:#ef9190;--accent-soft:#603337}.appShell[data-theme=black]{--bg:#0b0c0f;--surface:#15171b;--panel:#1e2027;--panel2:#292c32;--line:#42454d;--text:#f5f5f6;--muted:#b5b8c0;--accent:#e5e6eb;--accent-soft:#333740}.appShell[data-theme=white]{--bg:#f8f5f7;--surface:#fff;--panel:#f6f0f4;--panel2:#e9e0e8;--line:#d9c9d6;--text:#322832;--muted:#716471;--accent:#9f5179;--accent-soft:#f4e5ec}.appShell[data-theme=blue]{--bg:#0e1929;--surface:#142239;--panel:#1c2d44;--panel2:#263a57;--line:#4a6688;--text:#eff6ff;--muted:#bacce5;--accent:#75b4f8;--accent-soft:#274566}.appShell[data-theme=mint]{--bg:#0e1d20;--surface:#152c2d;--panel:#1c3939;--panel2:#254747;--line:#3c7472;--text:#ebf9f8;--muted:#b3d7d4;--accent:#6ce0cf;--accent-soft:#285550}.appShell[data-theme=green]{--bg:#152018;--surface:#1e3124;--panel:#29412e;--panel2:#344e39;--line:#517e59;--text:#f1faf3;--muted:#bedac1;--accent:#93d4a1;--accent-soft:#335d3c}.appShell[data-theme=gold]{--bg:#201c17;--surface:#30291f;--panel:#3e3426;--panel2:#4c3e2b;--line:#79634a;--text:#fff8e8;--muted:#e1ceb0;--accent:#edc482;--accent-soft:#5b482e}.appShell[data-theme=slate]{--bg:#171b22;--surface:#202733;--panel:#293340;--panel2:#344150;--line:#536477;--text:#f0f4f7;--muted:#b8c5d0;--accent:#a8bed3;--accent-soft:#344b63}.appShell button,.appShell input,.appShell select{font-size:inherit;color:inherit}.appShell button{border:1px solid var(--line);background:var(--panel);border-radius:10px;min-height:36px;padding:7px 10px;transition:background .15s,border-color .15s}.appShell button:hover:not(:disabled),.appShell button.active{border-color:var(--accent);background:var(--accent-soft)}.appShell button:active:not(:disabled){transform:translateY(1px)}.appShell .primaryBtn{background:var(--accent-soft);border-color:var(--accent);font-weight:650}.appShell button:focus-visible,.appShell input:focus-visible,.appShell select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.topbar{background:var(--surface);border-bottom:1px solid var(--line);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;min-height:68px;padding:9px 15px;display:flex}.brandArea{align-items:center;gap:10px;min-width:0;display:flex}.brandMark{width:43px;height:43px;color:var(--accent);border:1px solid var(--accent);background:var(--accent-soft);border-radius:13px;flex-shrink:0;place-items:center;font-family:Georgia,serif;font-size:27px;display:grid}.brandText{flex-direction:column;gap:2px;min-width:0;display:flex}.brandText strong{letter-spacing:.04em;white-space:nowrap;font-family:Georgia,Times New Roman,serif;font-size:17px}.brandText small{color:var(--muted);letter-spacing:.06em;font-size:10px}.headerActions{flex-shrink:0;align-items:center;gap:6px;display:flex}.headerActions .iconBtn{width:37px;height:37px;padding:0;font-size:21px}.themeSelect{border:1px solid var(--line);background:var(--panel);border-radius:10px;align-items:center;gap:5px;min-height:37px;padding:5px 8px;display:flex}.themeSelect select{max-width:100px;color:var(--text);background:0 0;border:0;outline:0;font-size:12px}.themeSelect option{color:#17161c}.quickbar{background:var(--surface);border-bottom:1px solid var(--line);scrollbar-width:thin;flex-shrink:0;gap:7px;padding:8px 11px;display:flex;overflow-x:auto}.quickbar button{white-space:nowrap;flex-shrink:0;justify-content:center;align-items:center;gap:8px;padding:6px 12px;font-size:13px;display:flex}.quickbar button:first-letter{font-size:18px}.workspace{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.workspaceBar{background:var(--bg);flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;min-height:35px;padding:7px 13px;font-size:11px;display:flex}.workspaceTitle{white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:8px;display:flex;overflow:hidden}.workspaceTitle>span:last-child{text-overflow:ellipsis;overflow:hidden}.tag{background:var(--accent-soft);color:var(--accent);letter-spacing:.07em;border-radius:5px;padding:3px 7px;font-size:10px;font-weight:800}.workStatus{color:var(--muted);white-space:nowrap;flex-shrink:0}.statusDot{background:var(--accent);border-radius:50%;width:7px;height:7px;margin-right:2px;display:inline-block}.stageHolder{flex-direction:column;flex:1;gap:6px;min-height:0;padding:0 11px 8px;display:flex;overflow:hidden}.stage{background:var(--stage);border:1px solid var(--line);isolation:isolate;border-radius:13px;flex:1;min-height:0;position:relative;overflow:hidden}.stage svg{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block;position:absolute;inset:0}.stage video{object-fit:contain;background:#06080a;width:100%;height:100%;position:absolute;inset:0}.emptyState{text-align:center;pointer-events:none;color:#d4dce2;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:16px;display:flex;position:absolute;inset:0}.emptyState strong{font-family:Georgia,serif;font-size:19px}.emptyState span{max-width:260px;font-size:12px}.emptyIcon{color:#c9a2ad;font-size:46px}.emptyActions{pointer-events:auto;justify-content:center;gap:8px;margin-top:6px;display:flex}.emptyActions button{color:#f7eef4;background:#302936;border-color:#90758d;font-size:12px}.stageCorner{z-index:2;color:#f3f4f7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#111820d9;border-radius:11px;align-items:center;gap:3px;padding:4px;display:flex;position:absolute}.stageCorner-top{top:10px;right:10px}.stageCorner button{color:#f3f4f7;background:#2c3338;border-color:#565f63;border-radius:8px;min-width:30px;min-height:28px;padding:4px 6px;font-size:16px}.stageCorner span{white-space:nowrap;padding:0 5px;font-size:11px}.padSwitch{z-index:3;background:#0e141bdc;border:1px solid #44515d;border-radius:11px;gap:4px;padding:4px;display:flex;position:absolute;bottom:10px;left:10px}.padSwitch button{color:#eef1f3;background:#23313c;border:1px solid #495865;min-height:32px;padding:4px 10px;font-size:12px}.padSwitch button.active{color:#eafcf9;background:#37514e;border-color:#6dd6c5}.padTray{z-index:3;pointer-events:none;align-items:flex-end;gap:6px;display:flex;position:absolute;bottom:9px;right:9px}.nudgePad{color:#f5f5f5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);pointer-events:auto;background:#111820e8;border:1px solid #53616b;border-radius:12px;min-width:130px;padding:6px 7px;box-shadow:0 6px 28px #0004}.padTitle{color:#f1f2f3;justify-content:space-between;align-items:center;gap:6px;font-size:11px;display:flex}.padTitle span:last-child{color:#c1d0db;text-align:right;white-space:nowrap;text-overflow:ellipsis;max-width:91px;font-size:9px;overflow:hidden}.padGrid{grid-template-rows:repeat(3,30px);grid-template-columns:repeat(3,31px);justify-content:center;gap:3px;margin-top:5px;display:grid}.nudgePad button{color:#f1f5f6;background:#2b3d47;border-color:#5b6b77;border-radius:7px;min-width:30px;min-height:29px;padding:0;font-size:18px}.nudgePad button:disabled{opacity:.38}.cameraBar{z-index:4;color:#fff;background:#101920df;border:1px solid #687884;border-radius:11px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px;font-size:11px;display:flex;position:absolute;bottom:12px;left:12px;right:12px}.cameraBar div{flex-wrap:wrap;gap:5px;display:flex}.cameraBar button{color:#fff;background:#26313a;border:1px solid #6b808a;padding:5px;font-size:11px}.precisionBar{min-height:39px;color:var(--muted);flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;padding:2px 7px;font-size:12px;display:flex}.precisionInfo{white-space:nowrap;align-items:center;gap:6px;display:flex}.precisionInfo strong{color:var(--accent)}.noMm{font-size:10px}.precisionSteps{align-items:center;gap:4px;display:flex}.precisionSteps button{min-height:27px;padding:3px 9px;font-size:12px}.tinyToggle{min-height:28px!important;padding:4px 8px!important;font-size:11px!important}.tinyToggle.on{border-color:var(--accent)!important}.bottomNav{background:var(--surface);border-top:1px solid var(--line);flex-shrink:0;justify-content:center;align-items:center;gap:7px;padding:7px 12px;display:flex}.bottomNav button{justify-content:center;align-items:center;gap:6px;min-width:95px;font-size:13px;display:flex}.messageBar{min-height:27px;color:var(--muted);border-top:1px solid var(--line);background:var(--bg);flex-shrink:0;align-items:center;gap:8px;padding:5px 13px;font-size:11px;display:flex}.messageBar>span:nth-child(2){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.noticeMark{color:var(--accent);font-size:14px}.footCaution{white-space:nowrap;margin-left:auto;font-size:10px}.sheet{z-index:7;background:var(--surface);border:1px solid var(--accent);border-radius:15px;flex-direction:column;width:min(970px,100% - 20px);max-height:min(38dvh,350px);display:flex;position:absolute;bottom:58px;left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 -8px 46px #0007}.sheetHeader{border-bottom:1px solid var(--line);flex-shrink:0;justify-content:space-between;align-items:center;padding:8px 13px;display:flex}.sheetHeader strong{font-size:13px}.sheetHeader button{background:0 0;border:0;min-height:27px;font-size:16px}.sheetBody{overscroll-behavior:contain;min-height:0;padding:10px 13px;font-size:12px;overflow:auto}.sheetBody p{color:var(--muted);margin:5px 0 11px;font-size:12px}.sheetBody button{min-height:32px;padding:6px 10px;font-size:12px}.controlRow{align-items:center;gap:8px;min-width:0;margin-bottom:10px;display:flex}.controlRow.wrap{flex-wrap:wrap}.controlRow>label{min-width:130px;color:var(--muted);flex-direction:column;flex:1;gap:4px;font-size:11px;display:flex}.controlRow>label.smallField{flex:none;min-width:54px}.controlRow input[type=text],.controlRow input:not([type]),.controlRow select{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;width:100%;min-height:34px;padding:7px}.controlRow input[type=range]{width:100%;accent-color:var(--accent)}.controlRow input[type=color]{background:0 0;border:0;width:52px;height:32px;padding:0}.colorSwatch{border:2px solid var(--line)!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important}.lightLabel{color:var(--muted);font-size:11px}.warning{color:var(--warning)!important}.layerList{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:5px;max-height:200px;display:grid;overflow-y:auto}.layerItem{background:var(--panel);border:1px solid var(--line);border-radius:9px;align-items:center;gap:4px;min-width:0;display:flex}.layerItem.selected{border-color:var(--accent)}.layerItem button{background:0 0;border:0;min-height:34px;padding:4px 7px}.layerItem .layerSelect{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;align-items:center;gap:7px;min-width:0;display:flex;overflow:hidden}.layerSelect i,.themeGrid i{border-radius:3px;flex-shrink:0;width:12px;height:12px;display:inline-block}.templateGrid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:7px;display:grid}.templateGrid button{text-align:left;flex-direction:column;gap:6px;padding:11px;display:flex}.templateGrid strong{font-size:12px}.templateGrid span{color:var(--muted);font-size:11px}.themeGrid{flex-wrap:wrap;gap:6px;display:flex}.themeGrid button{align-items:center;gap:5px;font-size:12px;display:flex}.themeGrid i{border:1px solid #8d8b8b;border-radius:50%;width:18px;height:18px}.fileInput{display:none}@media (width<=950px){.padTray .nudgePad.notActive,.footCaution{display:none}}@media (width<=700px){.topbar{min-height:58px;padding:6px 9px}.brandMark{border-radius:10px;width:33px;height:33px;font-size:21px}.brandText strong{letter-spacing:.015em;font-size:12px}.brandText small{letter-spacing:0;font-size:9px}.headerActions{gap:4px}.headerActions .iconBtn{width:32px;height:33px}.themeSelect{min-height:32px;padding:4px 5px}.themeSelect span{display:none}.themeSelect select{max-width:66px;font-size:11px}.quickbar{gap:5px;padding:6px}.quickbar button{min-height:36px;padding:6px 9px;font-size:12px}.workspaceBar{min-height:30px;padding:5px 8px}.workStatus{font-size:10px}.stageHolder{gap:3px;padding:0 5px 5px}.stage{border-radius:9px}.stageCorner-top{top:5px;right:5px}.stageCorner button{min-width:28px}.stageCorner span{font-size:10px}.padSwitch{padding:3px;bottom:6px;left:5px}.padSwitch button{padding:4px 7px;font-size:11px}.padTray{bottom:6px;right:5px}.nudgePad{min-width:114px;padding:5px}.padGrid{grid-template-rows:repeat(3,28px);grid-template-columns:repeat(3,28px);gap:2px}.padGrid button{min-width:27px;min-height:27px}.noMm{display:none}.precisionBar{gap:4px;min-height:34px;padding:2px 4px}.precisionInfo{gap:4px;font-size:10px}.precisionSteps{gap:2px}.precisionSteps button{min-height:28px;padding:2px 6px;font-size:11px}.tinyToggle{padding:4px!important;font-size:10px!important}.bottomNav{justify-content:space-between;gap:4px;padding:5px 4px}.bottomNav button{flex:1;min-width:0;min-height:39px;padding:5px 3px;font-size:16px}.bottomNav span{display:none}.sheet{max-height:min(43dvh,340px);bottom:49px}.sheetHeader{padding:7px 10px}.sheetBody{padding:8px}.messageBar{min-height:24px;padding:4px 7px;font-size:10px}}@media (width<=380px){.brandText strong{font-size:11px}.headerActions .iconBtn{width:29px}.themeSelect select{max-width:57px}.workStatus{display:none}.precisionBar{flex-wrap:nowrap}.precisionInfo span:first-child,.stageCorner span{display:none}}
