:root{--ink:#14212b;--muted:#71808c;--line:#d9e2e8;--paper:#fff;--soft:#f5f8fa;--blue:#1677ff}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--paper);color:var(--ink);font-family:Inter,system-ui,sans-serif}button,textarea{font:inherit}button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;cursor:pointer}header{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line);background:#fff}header>div:last-child{display:flex;gap:8px}header button{padding:8px 12px}.brand{display:flex;align-items:center;gap:10px;letter-spacing:.12em}.brand>span{width:34px;height:34px;display:grid;place-items:center;border:1px solid #b8c8d2;border-radius:9px;font-size:10px}.brand b{font-size:14px}.brand small{display:block;font-size:7px;color:var(--muted);margin-top:2px}main{height:calc(100dvh - 58px);display:grid;grid-template-rows:minmax(0,1fr) auto}.stage{position:relative;overflow:hidden;background-color:#fbfcfd;background-image:linear-gradient(#eaf0f3 1px,transparent 1px),linear-gradient(90deg,#eaf0f3 1px,transparent 1px);background-size:24px 24px;touch-action:none}#sketch{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.views{position:absolute;top:12px;left:50%;transform:translateX(-50%);display:flex;padding:3px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 12px #18384d12}.views button{border:0;padding:8px 12px;font-size:10px}.views .active,.tools .active,.mini .active{background:#eaf3ff;color:#075fcc;border-color:#b9d7ff}.hint{position:absolute;top:58px;left:50%;transform:translateX(-50%);font-size:11px;color:var(--muted);background:#ffffffd9;padding:5px 9px;border-radius:8px;white-space:nowrap}.tools{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:3px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 20px #18384d18}.tools button{width:58px;height:50px;border:0;font-size:18px}.tools i{display:block;font-size:9px;font-style:normal;margin-top:3px;color:var(--muted)}.mini{position:absolute;right:12px;top:12px;display:flex;gap:6px}.mini button{padding:7px 9px;font-size:10px}.composer{padding:9px 12px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}.chat{display:grid;grid-template-columns:42px minmax(0,1fr) 46px;gap:7px}.chat button{font-size:20px}.chat #sendBtn{background:var(--blue);color:#fff;border-color:var(--blue)}#prompt{resize:none;min-height:44px;max-height:100px;padding:11px 12px;border:1px solid #cbd7df;border-radius:12px;color:var(--ink);outline:none;background:#fff}.actions{display:flex;align-items:center;gap:7px;margin-top:7px;overflow-x:auto}.actions button{padding:7px 10px;white-space:nowrap;font-size:10px}.actions span{margin-left:auto;color:var(--muted);font-size:10px;white-space:nowrap}.ref{position:absolute;right:12px;bottom:84px;z-index:3}.ref img{width:74px;height:74px;object-fit:cover;border-radius:10px;border:2px solid #fff;box-shadow:0 4px 15px #0002}.ref button{position:absolute;right:-4px;top:-4px;width:24px;height:24px;padding:0;border-radius:50%}.modal{position:fixed;inset:0;background:#1c2b3866;display:grid;place-items:center;padding:16px;z-index:10}.hidden{display:none!important}.card{width:min(620px,100%);max-height:90dvh;overflow:auto;background:#fff;border-radius:16px;padding:14px;box-shadow:0 20px 60px #0003}.card>div:first-child{display:flex;justify-content:space-between;align-items:center}.card img,#sheetBody img{max-width:100%}.card textarea{width:100%;min-height:100px;margin:8px 0;padding:10px;border:1px solid var(--line);border-radius:10px}@media(max-width:600px){header{height:50px;padding:0 10px}header button{padding:7px 9px;font-size:11px}.brand small{display:block;font-size:6px;letter-spacing:.06em;line-height:1.05}main{height:calc(100dvh - 50px)}.views{top:8px}.views button{padding:7px 9px;font-size:9px}.hint{top:49px;max-width:86vw;overflow:hidden;text-overflow:ellipsis}.mini{top:48px;right:8px}.mini button{font-size:9px}.tools{bottom:10px}.tools button{width:50px;height:46px}.composer{padding:8px}.actions span{display:none}}@media(max-width:600px) and (orientation:landscape){header{height:42px}main{height:calc(100dvh - 42px);grid-template-columns:minmax(0,1fr) min(38vw,360px);grid-template-rows:1fr}.composer{border-top:0;border-left:1px solid var(--line);display:flex;flex-direction:column;justify-content:flex-end}.actions{flex-wrap:wrap}.views{left:12px;transform:none}.hint{display:none}.tools{bottom:8px}}
/* v0.3.5 spatial navigation + contextual editing */
.stage{cursor:crosshair}.stage.navmode{cursor:grab}.stage.navmode:active{cursor:grabbing}.nav3d{position:absolute;right:14px;top:70px;display:grid;gap:4px;justify-items:center;background:#ffffffeb;border:1px solid var(--line);border-radius:14px;padding:7px;box-shadow:0 6px 20px #18384d18}.nav3d>div{display:flex;gap:4px}.nav3d button{min-width:36px;padding:6px;font-size:9px}.nav3d #viewCube{font-size:21px}.nav3d #projectionBtn{width:100%;font-size:8px}.context{position:absolute;z-index:8;width:184px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 32px #18384d2b;transform:translate(-50%,-50%)}.context button{padding:9px 5px;font-size:9px}.context button:last-child{grid-column:span 3;background:#eaf3ff;color:#075fcc}.selection-badge{position:absolute;left:12px;top:72px;background:#14212be8;color:#fff;border-radius:10px;padding:7px 9px;font-size:10px;pointer-events:none}.hidden{display:none!important}@media(max-width:600px){.nav3d{right:8px;top:86px}.context{width:170px}.selection-badge{top:86px}.stage{cursor:default}}
/* v0.3.6 magical procedural interaction */
.context button[data-action="forge"]{grid-column:span 3;background:#1677ff;color:#fff;border-color:#1677ff;font-weight:700}.context button[data-action="more"]{grid-column:auto}.stage.navmode{cursor:grab}.stage.navmode:active{cursor:grabbing}
/* v0.4.0 unified master asset POC */
.views button{min-width:82px}.sync-badge{position:absolute;left:12px;top:12px;padding:6px 9px;border-radius:999px;background:#e9fff3;border:1px solid #bde8cf;color:#187044;font-size:9px;pointer-events:none}.statusline{height:24px;display:flex;align-items:end;justify-content:flex-end}.statusline span{font-size:10px;color:var(--muted)}.composer{position:relative}.context button[data-action="forge"]{grid-column:span 3}@media(max-width:600px){.sync-badge{top:84px;left:8px}.views button{min-width:72px}.composer{padding-bottom:max(8px,env(safe-area-inset-bottom))}}

/* v0.4.2 production pipeline gate + solid walls */
.pipeline-badge{position:absolute;left:12px;top:48px;padding:6px 9px;border-radius:999px;background:#fff7df;border:1px solid #ecd795;color:#725711;font-size:9px;pointer-events:none}.pipeline-card{width:min(560px,100%)}.pipeline-help{color:var(--muted);font-size:12px;line-height:1.5}.pipeline-types{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0}.pipeline-types button{padding:10px 5px;font-size:10px}.pipeline-types button.active{background:#eaf3ff;color:#075fcc;border-color:#b9d7ff}.pipeline-summary{padding:10px;border:1px solid var(--line);background:var(--soft);border-radius:10px;color:var(--muted);font-size:11px;line-height:1.45;margin-bottom:10px}.primary{width:100%;padding:11px;background:var(--blue);color:#fff;border-color:var(--blue)}#pipelineState{display:block;margin-top:8px;color:var(--muted)}@media(max-width:600px){.pipeline-types{grid-template-columns:repeat(2,1fr)}.pipeline-badge{top:112px}.pipeline-card{max-height:86dvh}.pipeline-card textarea{min-height:86px}}

/* v0.4.3 semantic construction canvas */
.semantic-palette{position:absolute;left:12px;bottom:14px;display:flex;gap:5px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 20px #18384d18;z-index:4}.semantic-palette button{display:flex;align-items:center;gap:5px;padding:7px 8px;font-size:9px;border:0}.semantic-palette button.active{background:#eef5ff}.semantic-palette span{width:10px;height:10px;border-radius:50%;display:inline-block}.stage:has([data-view="3d"].active) .semantic-palette{display:none}@media(max-width:600px){.semantic-palette{left:8px;bottom:70px;max-width:calc(100vw - 16px);overflow-x:auto}.semantic-palette button{padding:7px;white-space:nowrap}.pipeline-card{position:fixed;left:0;right:0;bottom:0;width:100%;max-height:82dvh;border-radius:20px 20px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom))}.modal{align-items:end;padding:0}.pipeline-types{display:flex;overflow-x:auto}.pipeline-types button{min-width:92px}}

/* v0.4.4 creator-preserving refinement */
.refine-control{margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.refine-control>div{display:flex;justify-content:space-between;align-items:center;font-size:11px}.refine-control input{width:100%;margin:10px 0 6px}.refine-control small{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:9px}.refine-control #refineValue{font-weight:700;color:#1677ff}@media(max-width:600px){.refine-control{padding:9px}.refine-control small{font-size:8px}}

/* v0.4.7 observable AI reconstruction */
.ai-debug{position:absolute;left:12px;top:128px;z-index:7;width:min(390px,calc(100vw - 24px));padding:10px;background:#14212bf2;color:#eaf3f8;border-radius:12px;box-shadow:0 10px 30px #0003}.ai-debug>div{display:flex;justify-content:space-between;align-items:center}.ai-debug b{font-size:10px;letter-spacing:.08em}.ai-debug button{padding:5px 8px;font-size:9px}.ai-debug pre{white-space:pre-wrap;max-height:180px;overflow:auto;font:10px/1.5 ui-monospace,monospace;margin:8px 0;color:#cfe5f3}.ai-debug #debugRefs{display:none!important}.reference-card{width:min(1000px,96vw)}.reference-card p{font-size:10px;color:var(--muted)}.reference-card img{display:block;max-width:100%;max-height:72dvh;margin:auto;object-fit:contain;background:#f4f7f9}@media(max-width:600px){.ai-debug{top:196px;left:8px;width:calc(100vw - 16px);max-height:38dvh}.ai-debug pre{max-height:110px}.reference-card{width:100%;border-radius:16px 16px 0 0}}

/* v0.5.0 multi-view calibration */
.symmetry-control{margin:10px 0;padding:11px 12px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.symmetry-control small{color:#81909b;font-weight:400}.symmetry-control select{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px;color:#20313c}

.sfm-crop-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.sfm-crop-card{border:1px solid var(--line);border-radius:10px;padding:6px;background:#fff}.sfm-crop-card img{width:100%;height:130px;object-fit:contain;background:#f4f7f9}.sfm-crop-card small{display:block;font:9px/1.35 ui-monospace,monospace;color:var(--muted);margin-top:4px}.sfm-crop-card.accepted{border-color:#2e9b63}.sfm-crop-card.rejected{border-color:#e5484d}@media(max-width:700px){.sfm-crop-gallery{grid-template-columns:repeat(2,1fr)}}

.hy3d-viewer{position:absolute;inset:0;width:100%;height:100%;background:#fbfcfd;z-index:1}.hy3d-viewer.hidden{display:none}.stage.hy3d-active #sketch{visibility:hidden}.stage.hy3d-active .hy3d-viewer{display:block}

/* v0.8.1 mobile-first contextual modeling */
.cost-note{display:flex;flex-direction:column;gap:3px;margin:10px 0;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:#f7fafc;font-size:10px}.cost-note span{color:var(--muted);font-size:9px;line-height:1.4}
@media(max-width:700px){
  #drawTools{opacity:.18;transform:scale(.82);transform-origin:left bottom;transition:.15s}
  #drawTools:hover,#drawTools:focus-within{opacity:1}
  .semantic-palette{max-width:42px;overflow:hidden;opacity:.32;transition:.15s}
  .semantic-palette:hover,.semantic-palette:focus-within{max-width:90vw;opacity:1}
  .context{width:min(250px,72vw);grid-template-columns:repeat(3,1fr);border-radius:22px;padding:9px}
  .context button{min-height:46px;border-radius:14px}
  .pipeline-card{width:min(94vw,520px);max-height:88vh;overflow:auto}
}


/* v0.8.8 focused 2D/3D tool workflow */
.header-actions{display:none!important}
main{height:calc(100dvh - 58px)}
.composer{display:none!important}
#drawTools,#edit3dTools{left:50%;bottom:16px;transform:translateX(-50%);gap:6px;padding:7px 8px;z-index:6}
#drawTools button,#edit3dTools button{width:auto;min-width:70px;height:56px;padding:8px 10px;border-radius:14px;border:1px solid transparent;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:18px;line-height:1}
#drawTools button i,#edit3dTools button i{display:block;font-size:10px;font-style:normal;color:#6e7d89;margin-top:5px}
#drawTools .active,#edit3dTools .active,#drawTools button:focus-visible,#edit3dTools button:focus-visible{background:#eaf3ff;border-color:#b9d7ff;color:#075fcc}
#colorBtn .swatch{width:18px;height:18px;border-radius:999px;background:var(--tool-color,#1677ff);display:block;border:1px solid #cbd7df;margin-bottom:4px}
#askForgeQuick{min-width:84px}
.tool-settings{position:absolute;left:50%;bottom:86px;transform:translateX(-50%);min-width:min(92vw,320px);max-width:min(92vw,360px);padding:12px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 28px rgba(24,56,77,.16);z-index:9}
.tool-settings h4{margin:0 0 8px;font-size:13px}.tool-settings .grid{display:grid;gap:8px}.tool-settings label{display:grid;gap:4px;font-size:11px;color:#42525d}.tool-settings input[type=range],.tool-settings select,.tool-settings input[type=color]{width:100%}.tool-settings .row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool-settings .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}.tool-settings .chipset{display:flex;gap:6px;flex-wrap:wrap}.tool-settings .chipset button{padding:7px 9px;font-size:10px;border-radius:10px}.workspace-dot{position:absolute;right:14px;top:14px;z-index:8;width:34px;height:34px;border-radius:999px;border:1px solid var(--line);background:#fff;box-shadow:0 6px 20px rgba(24,56,77,.12);font-size:24px;line-height:0;padding-bottom:6px}.workspace-menu{position:absolute;right:14px;top:56px;z-index:9;display:grid;gap:6px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 28px rgba(24,56,77,.16);min-width:180px}.workspace-menu button{text-align:left;padding:9px 10px;font-size:12px}.semantic-palette,.mini,#nav3d{display:none!important}.hint{top:52px}.ref{bottom:88px}.stage{padding-top:0}
@media(max-width:700px){
  main{height:calc(100dvh - 50px)}
  #drawTools,#edit3dTools{bottom:max(10px,env(safe-area-inset-bottom));padding:6px}
  #drawTools button,#edit3dTools button{min-width:58px;height:52px;padding:7px 8px;font-size:17px}
  #drawTools button i,#edit3dTools button i{font-size:9px}
  #askForgeQuick{min-width:76px}
  .tool-settings{bottom:76px;width:min(94vw,350px)}
  .workspace-dot{right:10px;top:10px}
  .workspace-menu{right:10px;top:48px;min-width:170px}
  .hint{top:48px;max-width:84vw;text-align:center;white-space:normal}
}

.tools{gap:4px}
.tools button{width:56px}
.tool-settings{position:absolute;z-index:9;min-width:260px;max-width:min(300px,calc(100vw - 24px));padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px #18384d2b}
.tool-settings h4{margin:0 0 8px;font-size:14px}.tool-settings .grid{display:grid;gap:6px}.tool-settings label{display:grid;gap:4px;font-size:11px;color:var(--ink)}.tool-settings input[type=range],.tool-settings select,.tool-settings input[type=color]{width:100%}.tool-settings .row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool-settings .actions{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}.tool-settings small{font-size:10px;color:var(--muted)}
.workspace-dot{position:absolute;right:8px;top:12px;z-index:8;width:18px;height:18px;padding:0;border-radius:999px;border:0;background:#111;color:#fff;display:grid;place-items:center;line-height:1;font-size:14px;box-shadow:none}
.workspace-menu{position:absolute;right:12px;top:38px;z-index:8;display:grid;justify-items:end;gap:6px;padding:0;background:transparent;border:0;box-shadow:none}
.workspace-menu button{border:0;background:transparent;padding:0;color:#14212b;font-size:12px;font-weight:500}
.metric-badge{position:absolute;right:32px;top:12px;padding:4px 8px;border-radius:999px;background:#ffffffd9;border:1px solid var(--line);font-size:10px;color:var(--muted);z-index:4}
.mirror-guide{position:absolute;pointer-events:none;z-index:2}
.stage.fill-dragging{cursor:copy}
@media(max-width:600px){.workspace-dot{right:8px;top:10px}.workspace-menu{right:10px;top:34px}.tool-settings{min-width:236px;max-width:min(280px,calc(100vw - 18px));padding:10px}}

/* v0.9.1 compact contextual UX */
.tool-settings{right:auto!important;bottom:auto!important;transform:none!important;min-width:210px!important;width:238px!important;max-width:min(238px,calc(100vw - 20px))!important;height:auto!important;max-height:min(68vh,390px);overflow:auto;padding:8px 9px!important;border-radius:11px!important}
.tool-settings h4{font-size:11px!important;margin:0 0 5px!important}.tool-settings .grid{gap:4px!important}.tool-settings label{font-size:10px!important;gap:3px!important}.tool-settings .actions{margin-top:6px!important}.tool-settings input[type=color]{height:28px}.tool-settings input[type=range]{height:16px}.tool-settings select{height:28px;font-size:10px}.forge-wide{width:100%;display:flex;align-items:center;justify-content:center;gap:6px;background:#1677ff!important;color:#fff!important;border-color:#1677ff!important;font-weight:700;margin-bottom:7px;padding:8px!important}.forge-wide .forge-mark{font-size:14px}
.workspace-dot{right:10px!important;top:15px!important}.metric-badge{right:46px!important;top:11px!important;padding:5px 10px!important;cursor:pointer;user-select:none}.workspace-menu{right:16px!important;top:48px!important;gap:11px!important;min-width:200px!important;align-items:end}.workspace-menu button{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:12px!important;font-weight:600!important;line-height:1.25!important;letter-spacing:.01em!important;padding:2px 0!important}.sync-card{width:min(360px,92vw)}.sync-card p{font-size:12px;color:var(--muted);line-height:1.5}.sync-card>button{display:block;width:100%;margin-top:8px;padding:10px}
@media(max-width:600px){.tool-settings{width:230px!important;max-width:calc(100vw - 16px)!important}.metric-badge{right:42px!important;top:8px!important}.workspace-dot{top:11px!important}.workspace-menu{top:42px!important;right:12px!important;gap:10px!important}}

/* v0.9.3 popup anchor + layered fill + taper */
.tool-settings{position:absolute!important}.tool-settings .forge-wide{margin-bottom:6px!important}.tool-settings .actions button{padding:6px 9px!important;font-size:10px!important}.tool-settings input[type=range]{height:14px!important}
.forge-top-actions{display:grid;gap:6px;margin-bottom:7px}.forge-top-actions .forge-wide{margin-bottom:0!important}.forge-subtle{width:100%;padding:8px 10px!important;border-radius:10px;background:#f5f8fa!important;color:var(--ink)!important;border:1px solid var(--line)!important;font-weight:700}

/* v0.9.5 2D finishing pass */
.edit-done{position:absolute;left:16px;top:72px;z-index:9;background:#1677ff;color:#fff;border-color:#1677ff;padding:9px 14px;border-radius:999px;font-size:11px;font-weight:700;box-shadow:0 8px 22px #1677ff33;white-space:nowrap}
@media(max-width:600px){.edit-done{top:68px}}


/* v0.9.6 mobile polish + compact color intent */
.account-chip{margin-left:auto;display:flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:10px;line-height:1}
.account-chip b{font-size:10px;letter-spacing:.02em}.account-chip span{color:#075fcc;font-weight:700}
.compact-color{display:grid;gap:6px;margin-top:3px}.color-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.color-chip{width:100%;aspect-ratio:1;border-radius:7px!important;border:1px solid #cbd7df!important;background:var(--chip)!important;padding:0!important;min-height:24px}.color-inline{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:6px;align-items:center}.color-preview{width:24px;height:24px;border-radius:7px;border:1px solid #cbd7df;background:var(--preview)}.color-hex{height:28px;min-width:0;border:1px solid var(--line);border-radius:8px;padding:0 7px;font:10px ui-monospace,monospace;color:var(--ink);background:#fff}.pick-canvas{height:28px;padding:0 8px!important;font-size:9px!important;white-space:nowrap}.tool-settings label>.compact-color{margin-top:2px}

@media(max-width:700px){
  header{gap:8px}.brand{min-width:0}.brand b{font-size:13px}.account-chip{padding:5px 8px;gap:5px;flex:0 0 auto}.account-chip b{font-size:9px}.account-chip span{font-size:9px}
  #drawTools,#edit3dTools{left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;transform:none!important;width:auto!important;max-width:none!important;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:5px!important;gap:3px!important;border-radius:13px!important}
  #drawTools::-webkit-scrollbar,#edit3dTools::-webkit-scrollbar{display:none}
  #drawTools button,#edit3dTools button{flex:0 0 54px!important;min-width:54px!important;width:54px!important;height:48px!important;padding:5px 4px!important;scroll-snap-align:start}
  #drawTools button i,#edit3dTools button i{font-size:8px!important;margin-top:2px!important}
  #askForgeQuick{flex-basis:64px!important;min-width:64px!important}
  .views{top:10px;max-width:58vw}.views button{min-width:72px!important}
  .metric-badge{right:43px!important;top:10px!important;font-size:9px!important;padding:5px 8px!important;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .workspace-dot{right:9px!important;top:13px!important}
  .sync-badge{top:82px!important;left:8px!important;font-size:8px!important;padding:5px 8px!important}
  .hint{top:57px!important;font-size:9px!important;max-width:62vw!important;white-space:normal!important;line-height:1.25;text-align:center}
  .tool-settings{width:min(236px,calc(100vw - 18px))!important;max-width:calc(100vw - 18px)!important;max-height:58dvh!important;padding:7px 8px!important;overflow:auto!important}
  .color-swatches{grid-template-columns:repeat(6,1fr);gap:4px}.color-chip{min-height:22px}.color-inline{grid-template-columns:22px minmax(68px,1fr) auto}.color-preview{width:22px;height:22px}.pick-canvas{padding:0 6px!important;font-size:8px!important}
}
@media(max-width:700px) and (orientation:landscape){
  #drawTools,#edit3dTools{left:10px!important;right:10px!important;bottom:6px!important}
  #drawTools button,#edit3dTools button{flex-basis:52px!important;min-width:52px!important;width:52px!important;height:44px!important}
  .tool-settings{max-height:72dvh!important}
  .views{top:6px}.metric-badge{top:7px!important}.workspace-dot{top:10px!important}.hint{top:47px!important}.sync-badge{top:8px!important;left:8px!important}
}


/* v0.9.7 radial color + final 2D polish */
.tool-settings{width:214px!important;min-width:214px!important;max-width:min(214px,calc(100vw - 18px))!important;max-height:60dvh!important;padding:7px 8px!important;overflow:auto!important}
.tool-settings .grid{gap:3px!important}.tool-settings label{font-size:9px!important}.tool-settings h4{font-size:10px!important}.tool-settings input[type=range]{height:13px!important}.tool-settings select{height:26px!important;font-size:9px!important}.tool-settings .actions{margin-top:5px!important}
.color-trigger-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:6px;margin-top:2px}
.radial-color-btn{width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;border-radius:9px!important;border:1px solid #bfcbd4!important;background:var(--preview)!important;box-shadow:inset 0 0 0 1px #fff7}
.color-text{font:9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pick-canvas{height:26px!important;padding:0 7px!important;font-size:8px!important;white-space:nowrap}
.radial-color-popover{position:absolute;z-index:12;width:152px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px #18384d2c;display:grid;gap:7px}
.color-wheel{position:relative;width:136px;height:136px;border-radius:50%;margin:auto;background:radial-gradient(circle at center,#fff 0 5%,rgba(255,255,255,.65) 24%,transparent 66%,rgba(0,0,0,.1) 100%),conic-gradient(from 90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);touch-action:none;box-shadow:inset 0 0 0 1px #0002}
.wheel-knob{position:absolute;width:12px;height:12px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #222,0 1px 3px #0004;transform:translate(-50%,-50%);pointer-events:none}
.value-slider{width:100%;height:14px}.radial-actions{display:flex;gap:6px;justify-content:flex-end}.radial-actions button{padding:6px 8px;font-size:9px}
@media(max-width:700px){.tool-settings{width:204px!important;min-width:204px!important;max-width:min(204px,calc(100vw - 14px))!important;max-height:54dvh!important}.radial-color-popover{width:142px;padding:7px}.color-wheel{width:126px;height:126px}.color-trigger-row{grid-template-columns:28px minmax(0,1fr) auto}.radial-color-btn{width:28px!important;height:28px!important;min-width:28px!important}}

/* v0.9.9 color picker fix + mobile branding */
.color-text{cursor:pointer}
.pick-canvas{display:inline-flex;align-items:center;justify-content:center;gap:4px}
@media(max-width:700px){.brand small{display:block!important;font-size:6px!important;line-height:1.05!important;margin-top:1px!important}}

/* v0.9.9 3D sync polish */
.views{z-index:12}
.hint{z-index:11}
.hy3d-viewer{background:radial-gradient(circle at 50% 38%, #f6f8fb 0%, #edf2f6 58%, #e6ecef 100%)!important;z-index:1}
.hy3d-viewer.shader-shaded{filter:none}
.hy3d-viewer.shader-wireframe{filter:grayscale(1) contrast(1.08) brightness(.96)}
.hy3d-viewer.shader-lit{filter:saturate(1.06) contrast(1.02) brightness(.98)}
.hy3d-viewer.shader-unlit{filter:contrast(.96) brightness(.95) saturate(.86)}
.hy3d-overlay{position:absolute;inset:0;z-index:5;pointer-events:none}
.hy3d-overlay .annot-pin{position:absolute;transform:translate(-50%,-50%);width:28px;height:28px;border-radius:999px;border:2px solid #fff;background:var(--pin,#1677ff);box-shadow:0 8px 24px rgba(20,33,43,.18);color:#fff;font:700 11px/1 Inter,sans-serif;pointer-events:auto;display:grid;place-items:center}
.hy3d-overlay .annot-pin span{pointer-events:none}
.popup-help{margin:0 0 9px;color:var(--muted);font-size:10px;line-height:1.45}
.primary-lite{background:#eef5ff;border-color:#cfe0ff;color:#0d65dd;font-weight:600}
.tool-settings .chipset button.active{background:#eaf3ff;border-color:#b9d7ff;color:#075fcc}
@media(max-width:700px){.hy3d-overlay .annot-pin{width:24px;height:24px;font-size:10px}}

/* v0.9.10 3D grease notes + orbit */
.orbit-chip{position:absolute;left:12px;top:46px;z-index:8;display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid var(--line);box-shadow:0 8px 24px rgba(24,56,77,.12);font-size:10px;color:var(--ink)}
.orbit-chip input{margin:0}.orbit-chip.active{border-color:#b9d7ff;background:#eef5ff}
.hy3d-viewer{background:radial-gradient(circle at 50% 36%, #eef2f5 0%, #e7edf1 40%, #dde5ea 100%)!important}
.hy3d-viewer.shader-shaded{filter:brightness(.93) contrast(1.02) saturate(.9)}
.hy3d-viewer.shader-wireframe{filter:grayscale(1) contrast(1.14) brightness(.86)}
.hy3d-viewer.shader-lit{filter:brightness(.92) contrast(1.04) saturate(1.02)}
.hy3d-viewer.shader-unlit{filter:brightness(.9) contrast(.97) saturate(.84)}
.hy3d-overlay{position:absolute;inset:0;z-index:5;pointer-events:none}
.hy3d-overlay.draw-enabled{pointer-events:auto;cursor:crosshair}
.hy3d-overlay .annot-svg{width:100%;height:100%;overflow:visible}
.hy3d-overlay .annot-path{pointer-events:stroke;filter:drop-shadow(0 2px 6px rgba(8,16,28,.18))}
.hy3d-overlay .annot-path.temp{stroke-dasharray:8 7}
.annot-forge{position:absolute;z-index:10;width:min(262px,calc(100vw - 18px));padding:9px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px rgba(24,56,77,.16)}
.annot-forge .af-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.annot-forge small{display:block;color:var(--muted);font-size:9px;line-height:1.35;margin-bottom:6px}.annot-forge textarea{width:100%;min-height:66px;border:1px solid var(--line);border-radius:10px;padding:8px 9px;resize:vertical;font-size:11px}.annot-forge .af-drop{margin-top:7px;border:1px dashed #b8c7d2;border-radius:10px;padding:8px 9px;text-align:center;font-size:10px;color:var(--muted);background:#f8fbfd;cursor:pointer}.annot-forge .af-drop.drag{background:#eef6ff;border-color:#6ea8ff;color:#0b60d0}.annot-forge .af-row{display:flex;align-items:center;gap:8px;margin-top:7px}.annot-forge .af-attach{padding:6px 9px;border-radius:9px;font-size:10px}.annot-forge .af-meta{font-size:9px;color:var(--muted)}.annot-forge .af-ref-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.annot-forge .af-ref-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 7px;border:1px solid var(--line);border-radius:999px;background:#f8fbfd;font-size:9px;color:var(--ink)}.annot-forge .af-ref-chip button{width:18px;height:18px;padding:0;border-radius:999px;line-height:1}.annot-forge .actions{margin-top:8px}.annot-forge .actions button{width:100%}
@media(max-width:600px){.orbit-chip{left:8px;top:112px;padding:6px 8px;font-size:9px}.annot-forge{width:min(250px,calc(100vw - 14px))}}

/* v0.9.11 unified 2D↔3D + surface/space grease pencil */
.stage.hy3d-active{background:#cfd6dc!important;background-image:none!important}
.hy3d-viewer{background:radial-gradient(circle at 50% 35%,#dce2e6 0%,#cfd7dc 55%,#c3ccd2 100%)!important}
.hy3d-viewer.shader-shaded{filter:brightness(.88) contrast(1.06) saturate(.78)}
.hy3d-viewer.shader-unlit{filter:brightness(.86) contrast(1.01) saturate(.82)}
.ann-hotspot-anchor{width:2px;height:2px;border:0;padding:0;margin:0;border-radius:50%;background:transparent;opacity:0;pointer-events:none}
.hy3d-overlay .annot-path{pointer-events:stroke}
.hy3d-overlay.draw-enabled .annot-path{pointer-events:stroke}
.proxy-grid{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
#proxyMeta{display:block;padding:5px 7px;border-radius:8px;background:#f4f7f9}

/* v0.9.15 simplified 3-mode workflow */
.stage.hy3d-active{background:#bcc5cc!important}
.hy3d-viewer{background:radial-gradient(circle at 50% 34%,#d5dce1 0%,#c7d0d6 48%,#b8c1c8 100%)!important}
.hy3d-viewer.shader-shaded{filter:brightness(.87) contrast(1.04) saturate(.76)}
.hy3d-viewer.shader-lit{filter:brightness(.9) contrast(1.03) saturate(.94)}
.hy3d-viewer.shader-unlit{filter:brightness(.88) contrast(1.01) saturate(.8)}
.mode-dock{position:absolute;left:12px;top:126px;z-index:9;width:min(220px,calc(100vw - 24px));padding:10px 11px;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 36px rgba(24,56,77,.16);display:grid;gap:8px}
.mode-dock .dock-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.mode-dock .dock-head b{font-size:10px;letter-spacing:.08em}.mode-dock .dock-head span{font-size:9px;color:var(--muted)}
.mode-dock label{display:grid;gap:4px;font-size:10px;color:var(--ink)}
.mode-dock input[type=range]{width:100%}.mode-dock small{font-size:9px;line-height:1.45;color:var(--muted)}
.mode-dock .dock-check{display:flex;align-items:center;gap:7px}.mode-dock .dock-check input{margin:0}
#contextMenu button{min-height:38px}
@media(max-width:700px){.mode-dock{left:8px;top:146px;width:min(204px,calc(100vw - 16px));padding:9px 10px}.mode-dock label{font-size:9px}.mode-dock small{font-size:8px}}

/* v0.9.16 functional edit cage + sculpt interaction */
.edit-cage{position:absolute;left:24%;top:17%;width:52%;height:62%;z-index:7;pointer-events:none;border:1px solid rgba(41,72,96,.34);border-radius:16px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.edit-cage::before,.edit-cage::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background-image:linear-gradient(to right,rgba(41,72,96,.24) 1px,transparent 1px),linear-gradient(to bottom,rgba(41,72,96,.24) 1px,transparent 1px);background-size:calc(100% / max(1, calc(var(--cage-n) - 1))) calc(100% / max(1, calc(var(--cage-n) - 1)));opacity:.75}
.cage-point{position:absolute;transform:translate(-50%,-50%);width:13px;height:13px;padding:0;border-radius:50%;border:2px solid #1677ff;background:#fff;box-shadow:0 2px 8px rgba(20,65,100,.18);pointer-events:auto;cursor:grab;z-index:2}
.cage-point:active{cursor:grabbing;background:#dcebff}
.stage.hy3d-active .edit-cage.hidden{display:none!important}
.hy3d-viewer{touch-action:none}
.mode-dock{backdrop-filter:blur(8px)}
@media(max-width:700px){.edit-cage{left:12%;top:20%;width:76%;height:56%}.cage-point{width:15px;height:15px}}
.edit-cage::before,.edit-cage::after{display:none!important}
.cage-line{position:absolute;background:rgba(41,72,96,.28);pointer-events:none;z-index:1}
.cage-v{top:16%;bottom:16%;width:1px}
.cage-h{left:14%;right:14%;height:1px}
.sculpt-cursor{position:absolute;z-index:8;transform:translate(-50%,-50%);border:1.5px solid rgba(20,115,255,.95);border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.75) inset,0 2px 12px rgba(20,80,140,.18);pointer-events:none;background:rgba(22,119,255,.035)}

/* v0.9.17 interaction cleanup */
.mode-only{grid-template-columns:repeat(3,1fr)!important;gap:7px!important}
.mode-only button{display:grid!important;place-items:center;gap:3px;min-height:52px!important;font-size:17px!important}
.mode-only button span{font-size:9px;font-style:normal}
.mode-note{display:block;margin:7px 0 2px;color:var(--muted);font-size:9px}
.mode-dock{width:196px!important;padding:9px!important;gap:7px!important}
.mode-dock .dock-row{display:grid;grid-template-columns:26px 1fr 26px;align-items:end;gap:5px}
.mode-dock .dock-row>button{height:26px;padding:0;border-radius:8px;font-size:16px;line-height:1}
.mode-dock .dock-row label{min-width:0}
.mode-dock .dock-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:2px}
.mode-dock .dock-foot button{padding:5px 8px;font-size:9px;border-radius:9px}
.mode-dock .dock-foot span{font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.sculpt-tool-icon{display:grid!important;place-items:center!important;gap:2px!important;min-width:58px!important;min-height:58px!important;padding:6px!important}
.sculpt-tool-icon span{font-size:22px;line-height:1}
.sculpt-tool-icon i{font-size:8px;font-style:normal;color:var(--muted)}
.cage-v{top:0!important;bottom:0!important}.cage-h{left:0!important;right:0!important}
.edit-cage{border-radius:20px;background:rgba(255,255,255,.025)}
.object-gizmo{position:absolute;z-index:8;width:112px;height:112px;transform:translate(-50%,-50%);pointer-events:none}
.object-gizmo .gizmo-ring{position:absolute;inset:9px;border:3px solid rgba(38,145,255,.78);border-left-color:rgba(40,190,120,.86);border-bottom-color:rgba(240,72,64,.86);border-radius:50%;pointer-events:auto;cursor:grab}
.object-gizmo .gizmo-move{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:30px;height:30px;padding:0;border-radius:8px;background:#1976ff;color:#fff;border-color:#1976ff;font-size:16px;pointer-events:auto;cursor:move}
.object-gizmo .gizmo-scale{position:absolute;right:1px;top:1px;width:25px;height:25px;padding:0;border-radius:7px;background:#fff;border:2px solid #20a967;color:#147847;pointer-events:auto;cursor:nwse-resize}
.object-gizmo .gizmo-x,.object-gizmo .gizmo-y{position:absolute;left:50%;top:50%;background:rgba(22,119,255,.8);transform-origin:left center;pointer-events:none}
.object-gizmo .gizmo-x{width:47px;height:2px}.object-gizmo .gizmo-y{width:47px;height:2px;transform:rotate(-90deg)}
@media(max-width:700px){.mode-dock{width:178px!important}.object-gizmo{width:96px;height:96px}.sculpt-tool-icon{min-width:52px!important;min-height:52px!important}}
.cage-point-soft{opacity:.45;border-style:dashed}.cage-point-hit{opacity:1}

/* v0.10.1 clean annotation checkpoint */
.stage,.stage *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.hy3d-overlay.draw-enabled{touch-action:none}
.hy3d-overlay .annot-svg{touch-action:none}
.annot-path{pointer-events:stroke}
@media(max-width:900px){
  #edit3dTools{max-width:calc(100vw - 20px);overflow-x:auto;scrollbar-width:none}
  #edit3dTools::-webkit-scrollbar{display:none}
}


/* v0.10.2 Clean Annotation Flow checkpoint */
.stage.hy3d-active,
.stage.hy3d-active *{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
.hy3d-overlay{pointer-events:none}
.hy3d-overlay:not(.draw-enabled),
.hy3d-overlay:not(.draw-enabled) *{pointer-events:none!important}
.hy3d-overlay.draw-enabled{pointer-events:auto;touch-action:none}
.hy3d-overlay.draw-enabled .annot-svg{pointer-events:auto}
.hy3d-overlay .annot-path,
.hy3d-overlay .annot-path.temp{
  stroke-dasharray:none!important;
  pointer-events:stroke;
}
.hy3d-viewer{pointer-events:auto}

/* v0.10.3 FORGEX native Three.js viewport + model revision layers */
.hy3d-viewer{overflow:hidden;touch-action:none}
.hy3d-viewer .forge3d-canvas{position:absolute;inset:0;width:100%!important;height:100%!important;outline:none}
.model-layer-panel{position:absolute;left:18px;bottom:86px;z-index:9;width:210px;max-height:min(34vh,290px);padding:9px 9px 7px;border-radius:13px;background:rgba(246,248,249,.72);border:1px solid rgba(65,76,84,.18);box-shadow:0 10px 28px rgba(25,35,43,.10);backdrop-filter:blur(8px);color:#52606a}
.model-layer-head{display:flex;align-items:center;justify-content:space-between;padding:0 5px 5px;font-size:8px;letter-spacing:.12em;color:#7a858d}.model-layer-head small{font-size:8px}
.model-layer-scroll{max-height:240px;overflow:auto;scrollbar-width:thin}
.model-layer-row{display:grid;grid-template-columns:minmax(0,1fr) 26px 24px;align-items:center;gap:3px;min-height:30px;border-radius:8px}
.model-layer-row.active{background:rgba(255,255,255,.58)}
.model-layer-row button{border:0;background:transparent;box-shadow:none;padding:0;color:#65727b;min-height:26px}
.model-layer-row .layer-select{display:grid;grid-template-columns:1fr;gap:2px;min-width:0;text-align:left;cursor:pointer}
.layer-select b{font-size:9px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}
.layer-line{display:block;height:1.5px;width:100%;border-radius:9px;background:#83909a;opacity:.54}.model-layer-row.active .layer-line{height:2px;background:#2a83ff;opacity:.85}
.layer-eye,.layer-delete{font-size:12px;cursor:pointer;border-radius:7px!important}.layer-eye:hover,.layer-delete:hover{background:rgba(255,255,255,.72)}.layer-eye.off{opacity:.38}.layer-delete{font-size:15px;color:#8a6666!important}
@media(max-width:700px){.model-layer-panel{left:8px;bottom:78px;width:164px;max-height:27vh;padding:7px}.model-layer-scroll{max-height:170px}.layer-select b{font-size:8px}.model-layer-row{grid-template-columns:minmax(0,1fr) 24px 22px}}


/* v0.10.4 checkpoint: native material modes, auto-orbit semantics, transform gizmo */
.hy3d-viewer.shader-shaded,.hy3d-viewer.shader-lit,.hy3d-viewer.shader-clay,.hy3d-viewer.shader-unlit{filter:none!important}
.orbit-chip span{white-space:nowrap}
#edit3dTools #gizmo3dBtn.active{background:#eaf3ff;color:#075fcc}
.radial-color-popover{z-index:30!important;touch-action:none}
.value-slider{accent-color:#1677ff;touch-action:pan-x}
@media(max-width:700px){.orbit-chip{max-width:116px}.orbit-chip span{font-size:8px}}

.projection-ui{position:absolute;top:84px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;background:#ffffffde;border:1px solid var(--line);border-radius:12px;padding:7px 10px;box-shadow:0 4px 14px rgba(24,56,77,.08);font-size:11px;color:var(--muted);z-index:11}.projection-ui input[type=range]{width:140px}.projection-ui b{font-size:10px;color:#495864;min-width:34px;text-align:right}@media(max-width:600px){.projection-ui{top:72px;max-width:88vw;padding:6px 8px;gap:6px}.projection-ui input[type=range]{width:96px}.projection-ui span{font-size:10px}}@media(max-width:600px) and (orientation:landscape){.projection-ui{display:none!important}}

.input-chip{position:absolute;left:12px;top:86px;z-index:8;display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid var(--line);box-shadow:0 8px 24px rgba(24,56,77,.12);font-size:10px;color:var(--ink);user-select:none;-webkit-user-select:none}.input-chip input{margin:0}.input-chip.active{border-color:#b9d7ff;background:#eef5ff}.input-chip span{white-space:nowrap}@media(max-width:700px){.input-chip{left:8px;top:112px;padding:6px 8px;font-size:9px;max-width:150px}.input-chip span{font-size:8px}}
#sketch{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}

/* v0.10.4j iPad Pencil input arbitration */
#sketch,.stage{touch-action:none!important;overscroll-behavior:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
.input-chip{max-width:230px}.input-chip span{font-size:9px}
@media(max-width:700px){.input-chip{max-width:210px}.input-chip span{font-size:8px}}

/* v0.10.4k iPad input arbitration: the editor owns long-press; text fields remain selectable. */
html,body,#app,.stage,.stage *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.stage{touch-action:none;overscroll-behavior:none}.stage canvas,.forge3d-canvas,.hy3d-overlay{touch-action:none!important}.tool-settings,.annot-forge{touch-action:manipulation}input,textarea,select,[contenteditable="true"]{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}

.load-progress,.model-layer-loading{position:relative;overflow:hidden;height:6px;border-radius:999px;background:#e6ebf0;margin:10px 0 12px}.load-progress span,.model-layer-loading span{display:block;height:100%;width:42%;border-radius:999px;background:linear-gradient(90deg,#9dbaf6,#2a83ff,#9dbaf6);background-size:200% 100%;animation:forgeLoad 1s linear infinite}.model-layer-loading{height:4px;margin:6px 0 10px}.primary.busy{background:#bfc7d2!important;border-color:#bfc7d2!important;color:#fff!important;cursor:wait;pointer-events:none}.model-layer-head small{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-layer-panel{overflow:hidden}@keyframes forgeLoad{0%{transform:translateX(-110%)}100%{transform:translateX(260%)}}
/* v0.10.4p texture + production export checkpoint */
.shader-choice{display:grid;gap:7px;margin-top:8px}.shader-choice button{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:8px;text-align:left;padding:8px 10px;border-radius:11px}.shader-choice button.active{border-color:#8bbcff;background:#eef6ff}.shader-choice b{font-size:11px}.shader-choice small{grid-column:2;color:var(--muted);font-size:8px;margin-top:-4px}.shader-orb,.mini-material-ball{display:inline-block;border-radius:50%;box-shadow:inset -5px -6px 9px rgba(0,0,0,.12),inset 4px 4px 7px rgba(255,255,255,.7),0 2px 5px rgba(0,0,0,.12)}.shader-orb{width:22px;height:22px}.shader-orb.shaded{background:linear-gradient(135deg,#dce1e5,#88929a)}.shader-orb.lit{background:linear-gradient(135deg,#ffbe35,#ff6b35 48%,#3b82f6)}.shader-orb.clay{background:linear-gradient(135deg,#ead9c3,#b99573)}.shader-orb.notexture{background:linear-gradient(135deg,#f1f4f6,#aeb7bf)}
.compact-production-card{width:min(365px,calc(100vw - 22px));padding:12px!important;border-radius:14px!important}.compact-production-card .modal-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.compact-production-card .compact-help{font-size:10px;line-height:1.4;color:var(--muted);margin:3px 0 9px}.production-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}.production-choice button{display:grid;grid-template-columns:27px 1fr;grid-template-rows:auto auto;align-items:center;text-align:left;padding:8px;border-radius:11px}.production-choice button.active{border-color:#4b96ff;background:#eef6ff}.production-choice b{font-size:11px}.production-choice small{font-size:8px;color:var(--muted)}.mini-material-ball{grid-row:1/3;width:25px;height:25px}.mini-material-ball.standard{background:linear-gradient(135deg,#f5be39,#d58c22)}.mini-material-ball.pbr{background:linear-gradient(135deg,#d8e3ec,#5f6f7c 45%,#b9c8d5)}.compact-production-card textarea{width:100%;min-height:65px;margin-top:9px;padding:8px 9px;border:1px solid var(--line);border-radius:10px;resize:vertical;font-size:11px}.mini-drop{margin-top:7px;border:1px dashed #b6c4cf;background:#f8fbfd;border-radius:9px;padding:8px;text-align:center;font-size:9px;color:var(--muted)}.mini-drop.drag{border-color:#4b96ff;background:#eef6ff;color:#1267d6}.compact-ref-row{display:flex;align-items:center;gap:8px;margin-top:7px}.compact-ref-row button{padding:6px 8px;border-radius:9px;font-size:9px}.compact-ref-row span{font-size:8px;color:var(--muted)}.compact-ref-list{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.compact-ref-list span{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid var(--line);border-radius:999px;background:#f8fbfd;font-size:8px}.compact-ref-list button{width:16px;height:16px;padding:0;border-radius:50%;line-height:1}.compact-cost-note{display:flex;align-items:center;justify-content:space-between;margin-top:9px;padding:7px 9px;border-radius:9px;background:#f5f8fa;font-size:9px}.compact-cost-note b{font-size:11px;color:#0d6bdc}.modal-actions{display:flex;gap:7px;margin-top:9px}.modal-actions button{flex:1}.export-card{width:min(395px,calc(100vw - 22px))}.export-options{display:grid;gap:6px}.export-options button{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:9px 10px;border-radius:10px}.export-options button.active{border-color:#4b96ff;background:#eef6ff}.export-options span{display:grid;gap:2px}.export-options b{font-size:10px}.export-options small{font-size:8px;color:var(--muted)}.export-options strong{font-size:9px;color:#176fd1}.compact-production-card>small:last-child{display:block;margin-top:7px;color:var(--muted);font-size:8px;line-height:1.35}@media(max-width:600px){.compact-production-card{width:min(350px,calc(100vw - 14px));padding:10px!important}.production-choice button{padding:7px}.export-options button{padding:8px}}

.production-progress{height:5px;margin-top:8px;border-radius:999px;background:#e5eaf0;overflow:hidden}.production-progress span{display:block;height:100%;width:36%;border-radius:999px;background:linear-gradient(90deg,#9fc0f8,#2a83ff,#9fc0f8);background-size:200% 100%;animation:forgeProductionLoad 1s linear infinite}.compact-production-card button.busy{background:#bfc7d2!important;border-color:#bfc7d2!important;color:#fff!important;cursor:wait!important;pointer-events:none!important}.compact-production-card.busy .production-choice button,.compact-production-card.busy .export-options button,.compact-production-card.busy textarea,.compact-production-card.busy .mini-drop,.compact-production-card.busy .compact-ref-row button{pointer-events:none;opacity:.72}@keyframes forgeProductionLoad{0%{transform:translateX(-120%)}100%{transform:translateX(300%)}}

/* v0.10.4x · compact generation profiles */
.compact-generate-card{width:min(470px,calc(100vw - 22px));padding:13px!important;border-radius:15px!important;max-height:88vh;overflow:auto}
.compact-generate-card .modal-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.compact-generate-card .pipeline-help{margin:3px 0 8px;font-size:10px;line-height:1.4}.compact-generate-card textarea{min-height:74px;margin-top:7px}.compact-generate-card .pipeline-types{margin:8px 0;gap:5px}.compact-generate-card .pipeline-types button{padding:8px 5px}.compact-generate-card .pipeline-summary{margin:8px 0;padding:8px;font-size:10px}.compact-generate-card .symmetry-control,.compact-generate-card .refine-control{margin-top:8px}.compact-generate-card .cost-note{margin-top:8px}
.generation-profile{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:7px 0}.generation-profile button{display:grid;gap:2px;text-align:left;padding:8px 10px;border-radius:10px}.generation-profile button.active{border-color:#4b96ff;background:#eef6ff}.generation-profile b{font-size:10px}.generation-profile small{font-size:8px;color:var(--muted);line-height:1.25}.generation-profile.compact{margin-bottom:8px}.generation-profile.compact button{padding:7px 9px}
@media(max-width:600px){.compact-generate-card{position:fixed;left:0;right:0;bottom:0;width:100%;max-height:86dvh;border-radius:20px 20px 0 0!important;padding-bottom:max(14px,env(safe-area-inset-bottom))!important}.compact-generate-card .pipeline-types{display:flex;overflow-x:auto}.compact-generate-card .pipeline-types button{min-width:84px}}

/* v0.10.4z Ask Forge texture entry */
.af-actions-stack{display:grid!important;grid-template-columns:1fr;gap:6px}.af-texture{background:#f5f8fa!important;color:var(--ink)!important;border:1px solid var(--line)!important;font-weight:700!important;padding:8px 10px!important;border-radius:10px!important}.af-texture:hover{background:#eef4f9!important}

/* v0.10.6p dynamic FX pricing + compact account/profile */
.account-tools{margin-left:auto;display:flex;align-items:center;gap:7px}.buy-credit-btn{padding:7px 10px!important;font-size:10px!important;font-weight:800;color:#075fcc;border-color:#c7dcf8;background:#f3f8ff}.account-chip{margin-left:0!important;appearance:none;display:flex!important;align-items:center;gap:7px!important;padding:4px 8px 4px 5px!important;border:1px solid var(--line)!important;border-radius:999px!important;background:#fff!important}.avatar,.profile-avatar{display:grid;place-items:center;border-radius:50%;background:#eaf3ff;color:#075fcc;font-weight:900}.avatar{width:27px;height:27px;font-size:10px}.account-copy{display:grid;text-align:left;gap:2px}.account-copy b{font-size:9px}.account-copy>span{font-size:9px;color:#075fcc;font-weight:800}.dynamic-price-line{display:flex;align-items:center;justify-content:space-between;margin:8px 0;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#f8fbfd;font-size:10px}.dynamic-price-line b,.price-inline{color:#075fcc}.dynamic-price-line s,.price-inline s,.purchase-card s{color:#8997a2;font-weight:500;margin-right:5px}.profile-card,.purchase-card{width:min(520px,100%)}.profile-hero{display:flex!important;justify-content:flex-start!important;gap:12px;align-items:center;padding:10px 0 14px}.profile-avatar{width:52px;height:52px;font-size:18px}.profile-hero h3{margin:0 0 3px;font-size:18px}.profile-hero p{margin:0;color:var(--muted);font-size:11px}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.profile-stats>div{padding:10px;border:1px solid var(--line);border-radius:11px;background:#f8fbfd}.profile-stats small{display:block;color:var(--muted);font-size:9px;margin-bottom:5px}.profile-stats b{font-size:13px}.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.profile-actions button:last-child{grid-column:1/-1}.purchase-tabs{display:flex!important;justify-content:flex-start!important;gap:6px;margin:8px 0 12px}.purchase-tabs button.active{background:#eaf3ff;color:#075fcc;border-color:#b9d7ff}.purchase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.purchase-item{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}.purchase-item h4{margin:0 0 5px;font-size:12px}.purchase-item .fx-big{font-size:21px;font-weight:900;margin:8px 0}.purchase-item .money{font-size:11px;margin-bottom:9px}.purchase-item button{width:100%;padding:8px;font-size:10px}.checkout-note{display:block;margin-top:10px;color:var(--muted);line-height:1.45}.fx-original{color:#8997a2;text-decoration:line-through;margin-right:5px}.fx-promo{color:#075fcc;font-weight:900}
@media(max-width:600px){.buy-credit-btn{padding:6px 7px!important;font-size:9px!important}.account-chip{padding:3px 6px 3px 4px!important}.avatar{width:24px;height:24px}.account-copy b,.account-copy>span{font-size:8px}.profile-stats{grid-template-columns:1fr}.profile-actions{grid-template-columns:1fr}.profile-actions button:last-child{grid-column:auto}.purchase-grid{grid-template-columns:1fr}.profile-card,.purchase-card{padding:12px}.brand{gap:7px}.brand>span{width:30px;height:30px}}

/* v0.10.6q — native FORGEX commerce/profile integration */
.account-tools{margin-left:auto;display:flex;align-items:center;gap:8px}.buy-credit-btn{height:31px!important;padding:0 11px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:#fff!important;color:var(--ink)!important;font-size:9px!important;font-weight:750!important;box-shadow:none!important}.buy-credit-btn:hover{background:var(--soft)!important}.account-chip{height:34px!important;padding:3px 8px 3px 4px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#fff!important;gap:7px!important;box-shadow:none!important}.avatar{width:26px;height:26px;border:1px solid #d3dde4;background:#f6f8fa;color:#263640;background-size:cover;background-position:center;font-size:9px}.avatar.has-photo{color:transparent}.account-copy b{font-size:9px;color:var(--ink);font-weight:750}.account-copy>span{font-size:8px;color:var(--muted);font-weight:650}.profile-card{width:min(390px,calc(100vw - 24px));padding:13px}.profile-avatar-edit{width:58px;height:58px;padding:0;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#f6f8fa}.profile-avatar-edit>span,.profile-avatar-edit img{width:100%;height:100%;display:grid;place-items:center;object-fit:cover}.profile-avatar-edit>span{font-size:17px;font-weight:800}.profile-identity{min-width:0;flex:1}.profile-identity input{width:100%;height:32px;border:1px solid var(--line);border-radius:8px;padding:0 9px;font-weight:750;color:var(--ink);background:#fff}.profile-identity p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-save{margin-top:6px;padding:5px 8px;font-size:9px;border-radius:7px;background:var(--soft)}.profile-stats>div{background:#fff;padding:9px}.profile-actions{grid-template-columns:1fr 1fr}.profile-actions button{font-size:10px}.generation-profile button{position:relative;display:flex!important;align-items:center!important;justify-content:space-between!important;text-align:left!important;gap:8px}.generation-profile button>span{display:grid;gap:2px;min-width:0}.generation-profile button>strong{font-size:9px;color:#075fcc;white-space:nowrap}.generation-profile button>strong s,.production-choice strong s,.export-options strong s{color:#8997a2;font-weight:500;margin-right:4px}.production-choice button{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;text-align:left!important;gap:8px!important}.production-choice button>span:not(.mini-material-ball){display:grid;gap:2px}.production-choice button>strong{font-size:9px;color:#075fcc;white-space:nowrap}.export-options strong{min-width:105px;text-align:right}.export-options strong b,.production-choice strong b,.generation-profile strong b{color:#075fcc}.dynamic-price-line b{display:flex;align-items:center;gap:5px}.workspace-menu #menuProfile{font-weight:750!important}.insufficient-fx{font-weight:800;color:#9a4a00}
@media(max-width:600px){.account-tools{gap:5px}.buy-credit-btn{height:29px!important;padding:0 8px!important;font-size:8px!important}.account-chip{height:31px!important;padding-right:6px!important}.avatar{width:23px;height:23px}.account-copy b{max-width:74px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-card{width:calc(100vw - 16px);border-radius:15px}.profile-hero{gap:9px}.profile-avatar-edit{width:50px;height:50px}.profile-actions{grid-template-columns:1fr 1fr}.generation-profile button>strong{font-size:8px}.export-options strong{min-width:84px}}

/* v0.10.6t · compact native account/wallet header */
.account-tools{gap:6px}
.buy-credit-btn{height:30px!important;padding:0 10px!important;border-radius:8px!important;background:var(--soft)!important;border-color:var(--line)!important;color:var(--ink)!important;font-weight:700!important}
.buy-credit-btn:hover{background:#eef3f6!important}
.account-chip{height:32px!important;min-width:0!important;padding:3px 8px 3px 4px!important;border-radius:8px!important;background:#fff!important}
.account-copy{min-width:0}
.account-copy b{max-width:86px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-copy>span{white-space:nowrap}
.profile-card .profile-stats b{word-break:break-word}
@media(max-width:600px){
  .buy-credit-btn{height:28px!important;padding:0 7px!important}
  .account-chip{height:29px!important}
  .account-copy b{max-width:58px}
  .account-copy>span{font-size:7.5px!important}
}

/* v0.10.6w — Profile + FX commerce popup visual alignment with current FORGEX production UI */
#profileModal .profile-card,
#purchaseModal .purchase-card{
  border:1px solid #cfdbe4;
  border-radius:22px!important;
  background:#fff;
  box-shadow:0 24px 70px rgba(30,48,62,.24);
  overflow:auto;
}
#profileModal .profile-card{width:min(500px,calc(100vw - 28px));padding:20px!important}
#purchaseModal .purchase-card{width:min(720px,calc(100vw - 28px));padding:20px!important}
#profileModal .modal-title-row,
#purchaseModal .modal-title-row{margin-bottom:14px!important;display:flex;align-items:center;justify-content:space-between}
#profileModal .modal-title-row>b,
#purchaseModal .modal-title-row>b{font-size:18px;line-height:1.15;letter-spacing:-.015em}
#profileModal .modal-title-row>button,
#purchaseModal .modal-title-row>button{
  width:38px;height:38px;padding:0;border-radius:13px;font-size:21px;line-height:1;
  border-color:#cfdbe4;background:#fff;color:#182832
}
#profileModal .profile-hero{gap:15px!important;padding:2px 0 18px!important;align-items:center!important}
#profileModal .profile-avatar-edit{
  width:70px;height:70px;border-radius:20px;border:1px solid #cfdbe4;background:#f5f8fa;
  box-shadow:0 5px 16px rgba(29,49,65,.08)
}
#profileModal .profile-avatar-edit>span{font-size:21px}
#profileModal .profile-identity input{
  height:42px;border-radius:12px;padding:0 12px;font-size:15px;font-weight:760;border-color:#cfdbe4
}
#profileModal .profile-identity p{font-size:11px!important;line-height:1.35;margin:6px 0 0!important;color:var(--muted)}
#profileModal .profile-save{
  margin-top:9px;padding:7px 11px;border-radius:10px;font-size:10px;background:#fff;border-color:#cfdbe4
}
#profileModal .profile-stats{gap:10px!important}
#profileModal .profile-stats>div{
  min-height:78px;padding:13px 14px!important;border-radius:14px!important;background:#f8fafc!important;border-color:#d5e0e7!important;
  display:flex;flex-direction:column;justify-content:center
}
#profileModal .profile-stats small{font-size:10px!important;margin-bottom:7px!important;color:#748491}
#profileModal .profile-stats b{font-size:15px!important;line-height:1.2}
#profileModal .profile-actions{gap:10px!important;margin-top:14px!important}
#profileModal .profile-actions button{
  min-height:44px;border-radius:13px!important;font-size:11px!important;font-weight:650
}
#profileModal .profile-actions .primary{font-weight:760;background:#1677ff;border-color:#1677ff}
#profileModal .profile-actions button:last-child{min-height:38px;background:#fff}

#purchaseModal .purchase-tabs{
  display:inline-flex!important;gap:6px!important;margin:0 0 16px!important;padding:4px;border:1px solid #d7e1e8;border-radius:13px;background:#f6f9fb
}
#purchaseModal .purchase-tabs button{
  min-height:34px;padding:0 13px;border:0;border-radius:9px;background:transparent;font-size:12px;color:#566673
}
#purchaseModal .purchase-tabs button.active{
  background:#eaf3ff!important;color:#075fcc!important;border:0!important;box-shadow:inset 0 0 0 1px #b9d7ff
}
#purchaseModal .purchase-grid{gap:12px!important}
#purchaseModal .purchase-item{
  min-height:174px;border-radius:16px!important;border-color:#d4dfe7!important;padding:15px!important;background:#fff!important;
  display:flex;flex-direction:column;box-shadow:0 2px 8px rgba(31,52,68,.025)
}
#purchaseModal .purchase-item h4{font-size:13px!important;line-height:1.25;margin:0 0 8px!important}
#purchaseModal .purchase-item .fx-big{
  font-size:23px!important;line-height:1.15;font-weight:850!important;letter-spacing:-.02em;margin:4px 0 8px!important
}
#purchaseModal .purchase-item .money{font-size:11px!important;min-height:20px;margin:0 0 12px!important;color:#455764}
#purchaseModal .purchase-item .money s{color:#8b99a4}
#purchaseModal .purchase-item .money b{font-size:12px;color:#15242e}
#purchaseModal .purchase-item button{
  margin-top:auto;min-height:40px;border-radius:12px!important;font-size:11px!important;font-weight:650;background:#fff
}
#purchaseModal .purchase-item button:hover{background:#f4f8fb;border-color:#b8c9d6}
#purchaseModal .checkout-note{
  margin-top:14px!important;padding:12px 14px;border-radius:13px;background:#f5f8fa;border:1px solid #dbe4ea;
  font-size:11px;line-height:1.5;color:#71808c
}
@media(max-width:700px){
  #profileModal .profile-card,#purchaseModal .purchase-card{width:calc(100vw - 16px);padding:14px!important;border-radius:18px!important}
  #profileModal .modal-title-row>b,#purchaseModal .modal-title-row>b{font-size:16px}
  #profileModal .profile-avatar-edit{width:58px;height:58px;border-radius:16px}
  #profileModal .profile-stats{grid-template-columns:1fr!important}
  #profileModal .profile-stats>div{min-height:62px}
  #profileModal .profile-actions{grid-template-columns:1fr!important}
  #profileModal .profile-actions button:last-child{grid-column:auto!important}
  #purchaseModal .purchase-grid{grid-template-columns:1fr!important}
  #purchaseModal .purchase-item{min-height:150px}
}


/* v0.10.9 architecture canvas workspace */
header{gap:10px}
.header-left{display:flex;align-items:center;gap:16px;min-width:0;flex:1}
.header-actions,.account-tools{display:flex;align-items:center;gap:8px}
.project-title-wrap{min-width:0;flex:1;max-width:420px}
.project-title{width:100%;border:0;border-bottom:1px solid transparent;background:transparent;color:#94a0ab;font:500 14px/1.2 Inter,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;padding:6px 2px;outline:none}
.project-title:hover,.project-title:focus{color:#273541;border-bottom-color:#d7e0e6}
#sketch{z-index:1}
.canvas-image-stage{position:absolute;inset:0;z-index:7;pointer-events:none}
.canvas-image-item{position:absolute;transform-origin:center center;pointer-events:auto;touch-action:none;user-select:none}
.canvas-image-item img{display:block;max-width:none;max-height:none;border-radius:10px;box-shadow:0 10px 28px rgba(20,33,43,.12);border:1px solid rgba(180,194,204,.8)}
.canvas-image-item.active img{box-shadow:0 0 0 2px rgba(22,119,255,.32),0 10px 28px rgba(20,33,43,.16)}
.canvas-image-item .ref-frame{position:absolute;inset:-8px;border:1px dashed rgba(22,119,255,.72);border-radius:14px;pointer-events:none}
.canvas-image-item .ref-handle{position:absolute;width:16px;height:16px;border-radius:999px;border:2px solid #fff;background:#1677ff;box-shadow:0 2px 8px rgba(20,33,43,.22);display:none}
.canvas-image-item.active.transform-on .ref-handle{display:block}
.canvas-image-item .ref-handle.scale{right:-8px;bottom:-8px;cursor:nwse-resize}
.canvas-image-item .ref-handle.rotate{left:50%;top:-18px;transform:translateX(-50%);cursor:grab}
.canvas-workspace-panel,.legend-workspace-panel{position:absolute;z-index:7;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 36px rgba(24,56,77,.12);backdrop-filter:blur(8px)}
.canvas-workspace-panel{left:14px;bottom:80px;width:min(310px,calc(100vw - 28px));padding:10px 10px 12px;display:grid;gap:10px}
.legend-workspace-panel{right:14px;top:146px;width:min(265px,calc(100vw - 28px));padding:10px;display:grid;gap:8px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.panel-head b{font-size:11px;letter-spacing:.08em}
.panel-head small,.panel-sub{font-size:10px;color:var(--muted)}
.panel-actions{display:flex;gap:6px;flex-wrap:wrap}
.panel-actions button,.legend-row button,.layer-row button{padding:6px 8px;font-size:10px;border-radius:10px}
.layer-stack{display:grid;gap:8px;max-height:260px;overflow:auto;padding-right:2px}
.layer-row{border:1px solid #e3eaef;border-radius:12px;padding:8px;background:#fff;display:grid;gap:6px}
.layer-row.active{border-color:#b9d7ff;box-shadow:0 0 0 1px #dceaff inset}
.layer-main{display:flex;align-items:center;gap:6px}
.layer-main .grow{flex:1;min-width:0}
.layer-main b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.layer-main span{display:block;font-size:9px;color:var(--muted)}
.layer-main .badge{font-size:9px;padding:4px 6px;border-radius:999px;background:#eef4f7;color:#51606d}
.layer-slider{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;font-size:10px;color:var(--muted)}
.layer-slider input{width:100%}
.legend-list{display:grid;gap:8px;max-height:46vh;overflow:auto;padding-right:2px}
.legend-row{border:1px solid #e3eaef;border-radius:12px;padding:8px;background:#fff;display:grid;gap:6px}
.legend-row input{width:100%;padding:8px 9px;border:1px solid var(--line);border-radius:10px;font-size:11px}
.legend-row .legend-actions{display:flex;gap:6px;flex-wrap:wrap}
.sticker-stage{position:absolute;inset:0;z-index:6;pointer-events:none}
.sticky-note{position:absolute;min-width:118px;max-width:180px;background:#fffde1;border:1px solid #ebdf8b;border-radius:14px;box-shadow:0 12px 26px rgba(20,33,43,.12);padding:10px 10px 12px;pointer-events:auto;touch-action:none;user-select:none}
.sticky-note.active{box-shadow:0 0 0 2px rgba(22,119,255,.25),0 12px 26px rgba(20,33,43,.14)}
.sticky-note .sticky-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
.sticky-note .sticky-top b{font-size:10px;letter-spacing:.08em;color:#7d6a1a}
.sticky-note .sticky-top .sticky-btns{display:flex;gap:4px}
.sticky-note .sticky-top button{width:22px;height:22px;padding:0;border-radius:999px;font-size:11px;border-color:#e2d47a;background:#fff9c4}
.sticky-note textarea{width:100%;min-height:58px;border:0;background:transparent;resize:none;font:600 12px/1.35 Inter,system-ui,sans-serif;color:#38424a;outline:none}
.sticky-ghost{opacity:.84}
@media(max-width:900px){.project-title-wrap{max-width:280px}.legend-workspace-panel{top:auto;bottom:82px;right:8px;max-height:48vh}.canvas-workspace-panel{left:8px;bottom:82px}}
@media(max-width:700px){header{padding:0 10px}.header-left{gap:10px}.project-title{font-size:12px}.header-actions{display:none}.brand{gap:8px}.canvas-workspace-panel{width:min(286px,calc(100vw - 16px));padding:9px}.legend-workspace-panel{width:min(230px,calc(100vw - 16px));padding:9px;bottom:152px}.sticky-note{min-width:108px;max-width:152px;padding:8px 8px 10px}.sticky-note textarea{font-size:11px}}


/* v0.10.9a compact 2D layers + always-on legends */
.projection-ui{display:none!important}
.canvas-workspace-panel{left:14px;bottom:82px;width:238px!important;padding:8px!important;border-radius:13px!important;gap:6px!important}
.canvas-workspace-panel .panel-head{min-height:24px}.canvas-workspace-panel .panel-head b{font-size:9px;letter-spacing:.1em}.canvas-workspace-panel .panel-head small{font-size:8px}
.canvas-workspace-panel .panel-actions.compact{gap:4px}.canvas-workspace-panel .panel-actions.compact button{width:26px;height:24px;padding:0;font-size:15px;border-radius:8px}
.canvas-workspace-panel .panel-sub{display:none}
.layer-stack.compact-stack{display:grid;gap:4px;max-height:224px;overflow:auto;padding-right:2px;overscroll-behavior:contain}
.canvas-workspace-panel .layer-row{padding:4px 5px;border-radius:9px;gap:0;min-height:34px}
.canvas-workspace-panel .layer-main{gap:5px;min-width:0}
.canvas-workspace-panel .layer-main .grow b{font-size:9px;line-height:1.15}
.canvas-workspace-panel .layer-icon{width:23px;height:23px;min-width:23px;padding:0;border:0;border-radius:7px;font-size:13px;background:transparent}
.canvas-workspace-panel .layer-icon:hover{background:#eef4f8}.canvas-workspace-panel .layer-icon.danger:hover{background:#fff0f0;color:#c73333}
.canvas-workspace-panel .compact-opacity{width:58px;height:16px;margin:0;accent-color:#1677ff}
.canvas-workspace-panel .projection-base{background:#f4f7f9;border-style:dashed}.canvas-workspace-panel .projection-base b{color:#586671}
.canvas-workspace-panel .lock-badge{width:22px;text-align:center;color:#8b98a2;font-size:12px}
.legend-workspace-panel{right:14px;top:148px;width:220px!important;padding:8px!important;border-radius:13px!important;gap:6px!important}
.legend-workspace-panel .panel-sub{display:none}.legend-workspace-panel .panel-head b{font-size:9px;letter-spacing:.1em}.legend-workspace-panel .panel-head small{font-size:8px}
.legend-workspace-panel .panel-actions.compact{display:flex;gap:4px}.legend-workspace-panel .panel-actions.compact button{padding:5px 7px;font-size:9px;border-radius:8px}
.legend-list{gap:4px;max-height:220px}.legend-row{padding:5px;border-radius:9px;gap:4px}.legend-row input{padding:5px 7px;font-size:9px;border-radius:7px}.legend-row .legend-actions{gap:4px}.legend-row .legend-actions button{padding:4px 6px;font-size:8px;border-radius:7px}
@media(max-width:700px){.canvas-workspace-panel{left:8px;bottom:76px;width:218px!important}.layer-stack.compact-stack{max-height:180px}.legend-workspace-panel{right:8px;bottom:145px;top:auto;width:205px!important}.legend-list{max-height:170px}}


/* v0.10.9b semantic notes + original toggle + transform active state */
.projection-ui{display:flex!important;top:84px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;gap:0!important}
.projection-ui.hidden{display:none!important}
.projection-ui>span,.projection-ui>input,.projection-ui>b{display:none!important}
#toggleOriginalLayer{margin:0!important;border:1px solid #d6dde2!important;border-radius:999px!important;padding:5px 11px!important;background:rgba(255,255,255,.94)!important;color:#33414c!important;font:600 10px/1.2 Inter,sans-serif!important;box-shadow:0 4px 12px rgba(24,56,77,.08);white-space:nowrap}
.canvas-workspace-panel .transform-layer-btn.active{background:#1f2a33!important;color:#fff!important;box-shadow:0 0 0 1px #1f2a33 inset}
.canvas-workspace-panel .layer-row.active .transform-layer-btn.active{background:#1677ff!important;box-shadow:0 0 0 1px #0b66dd inset}
.legend-workspace-panel{right:14px!important;top:148px!important;width:auto!important;min-width:92px!important;max-width:132px!important;padding:7px!important;gap:5px!important}
.legend-workspace-panel .panel-head{min-height:20px!important;gap:8px!important}.legend-workspace-panel .panel-head b{font-size:9px!important}.legend-workspace-panel .panel-head small{font-size:8px!important}
.note-spawn-btn{width:100%;min-width:78px;padding:6px 9px!important;border-radius:9px!important;font-size:10px!important;font-weight:650;background:#fff!important}
.note-semantic-hint{display:none!important}
.legend-list,.legend-row{display:none!important}
.sticker-stage{z-index:6}
.sticky-note.semantic-note{min-width:0!important;max-width:none!important;width:max-content!important;padding:5px 6px 6px!important;border-radius:9px!important;background:#fff9c9!important;border-color:#ead878!important;box-shadow:0 6px 16px rgba(20,33,43,.11)!important}
.sticky-note.semantic-note .sticky-top{height:20px;margin:0 0 2px!important;gap:4px!important;cursor:default}
.sticky-note.semantic-note .sticky-drag{width:20px!important;height:20px!important;min-width:20px!important;padding:0!important;border:0!important;background:transparent!important;color:#8b7a2d!important;cursor:grab;font-size:11px!important}
.sticky-note.semantic-note .sticky-drag:active{cursor:grabbing}
.sticky-note.semantic-note .sticky-btns{gap:2px!important;opacity:.55;transition:opacity .12s ease}.sticky-note.semantic-note:hover .sticky-btns,.sticky-note.semantic-note.active .sticky-btns{opacity:1}
.sticky-note.semantic-note .sticky-top button:not(.sticky-drag){width:19px!important;height:19px!important;min-width:19px!important;padding:0!important;font-size:10px!important;border-radius:999px!important}
.sticky-note.semantic-note textarea{display:block!important;min-width:0!important;max-width:230px!important;min-height:0!important;margin:0!important;padding:2px 4px!important;border:0!important;background:transparent!important;resize:none!important;overflow:hidden!important;font:600 11px/1.35 Inter,system-ui,sans-serif!important;color:#3f453f!important;white-space:pre-wrap!important}
@media(max-width:700px){.projection-ui{top:72px!important}.legend-workspace-panel{right:8px!important;top:130px!important;bottom:auto!important;min-width:86px!important;max-width:112px!important}.sticky-note.semantic-note textarea{max-width:180px!important;font-size:10px!important}}


/* v0.10.9c mobile touch polish + compact semantic notes */
.legend-workspace-panel{top:clamp(250px,38vh,360px)!important;bottom:auto!important}
.sticky-note.semantic-note{transform:scale(var(--note-scale,.82));transform-origin:top left;padding:4px 5px 5px!important;border-radius:8px!important}
.sticky-note.semantic-note .sticky-top{height:18px!important;margin:0 0 1px!important}
.sticky-note.semantic-note textarea{max-width:176px!important;font-size:9.5px!important;line-height:1.28!important;padding:1px 3px!important}
.sticky-note.semantic-note .sticky-drag{width:26px!important;height:26px!important;min-width:26px!important;margin:-4px 0 -4px -4px!important;font-size:11px!important}
.sticky-note.semantic-note .sticky-top button:not(.sticky-drag){width:26px!important;height:26px!important;min-width:26px!important;margin:-4px 0 -4px 0!important;font-size:10px!important}
.canvas-workspace-panel .layer-icon{position:relative}
.canvas-workspace-panel .transform-layer-btn.active{outline:2px solid rgba(22,119,255,.18);outline-offset:1px}
@media (pointer:coarse){
  .canvas-workspace-panel .layer-row{min-height:38px!important}
  .canvas-workspace-panel .layer-icon{width:32px!important;height:32px!important;min-width:32px!important;font-size:14px!important}
  .canvas-workspace-panel .compact-opacity{height:26px!important}
  .note-spawn-btn{min-height:36px!important;padding:7px 10px!important}
  .sticky-note.semantic-note .sticky-drag,.sticky-note.semantic-note .sticky-top button:not(.sticky-drag){width:32px!important;height:32px!important;min-width:32px!important;margin:-7px 0 -7px 0!important}
}
@media(max-width:700px){
  .legend-workspace-panel{top:clamp(175px,30vh,245px)!important;right:8px!important;bottom:auto!important}
  .sticky-note.semantic-note textarea{max-width:150px!important;font-size:9px!important}
}

/* v0.10.9f Paint/Image semantic layer core */
.layer-row.paint-row{background:#edf5ff;border-color:#bdd8ff}
.layer-row.paint-row.active{box-shadow:0 0 0 1px #83b8ff inset}
.layer-row.image-row{background:#fff}
.layer-row .grow span{display:block;font-size:9px;color:#82909b}
.layer-add-menu{position:absolute;right:8px;top:38px;z-index:30;width:96px;padding:5px;background:#fff;border:1px solid #dbe4ea;border-radius:10px;box-shadow:0 10px 24px rgba(20,33,43,.16);display:grid;gap:4px}
.layer-add-menu button{width:100%;padding:7px 8px;text-align:left;border-radius:7px;font-size:10px}
.layer-icon{min-width:28px;min-height:28px;padding:4px!important}
.note-active-layer{font-size:10px;font-weight:700;color:#2f6fff;background:#edf5ff;border-radius:999px;padding:4px 8px;width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* v0.10.9i — per-paint-layer editing + mobile/iPad touch polish */
@media (pointer:coarse){
  .canvas-workspace-panel{width:min(300px,calc(100vw - 18px))!important;padding:10px!important}
  .canvas-workspace-panel .layer-row{min-height:50px!important;padding:7px 8px!important;border-radius:11px!important}
  .canvas-workspace-panel .layer-main{gap:7px!important}
  .canvas-workspace-panel .layer-main .grow b{font-size:13px!important;line-height:1.2!important}
  .canvas-workspace-panel .layer-main .grow span{font-size:11px!important;line-height:1.2!important}
  .canvas-workspace-panel .layer-icon{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;font-size:17px!important;border-radius:10px!important}
  .canvas-workspace-panel .compact-opacity{width:76px!important;height:34px!important}
  .canvas-workspace-panel .panel-head b{font-size:12px!important}
  .canvas-workspace-panel .add-layer-btn{width:44px!important;height:44px!important;min-width:44px!important}
  .layer-add-menu{width:170px!important;padding:8px!important;gap:7px!important;border-radius:13px!important}
  .layer-add-menu button{min-height:46px!important;padding:10px 12px!important;font-size:14px!important;border-radius:10px!important}
  .legend-workspace-panel{min-width:150px!important;max-width:190px!important;padding:10px!important}
  .legend-workspace-panel .panel-head b{font-size:12px!important}
  .legend-workspace-panel .panel-head small{font-size:11px!important}
  .note-spawn-btn{min-height:46px!important;font-size:14px!important;padding:10px 14px!important;border-radius:11px!important}
  .sticky-note.semantic-note{padding:7px 8px 8px!important;border-radius:10px!important}
  .sticky-note.semantic-note textarea{min-width:118px!important;max-width:230px!important;min-height:44px!important;font-size:14px!important;line-height:1.35!important;padding:7px 8px!important;pointer-events:auto!important;touch-action:manipulation!important;user-select:text!important;-webkit-user-select:text!important}
  .sticky-note.semantic-note .sticky-drag,
  .sticky-note.semantic-note .sticky-top button:not(.sticky-drag){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:-10px 0 -10px 0!important;font-size:15px!important}
  .canvas-image-item .ref-handle{width:44px!important;height:44px!important;border-width:3px!important;touch-action:none!important}
  .canvas-image-item .ref-handle.scale{right:-22px!important;bottom:-22px!important}
  .canvas-image-item .ref-handle.rotate{top:-46px!important}
  #editDoneBtn{min-height:46px!important;padding:10px 16px!important;font-size:14px!important}
}
@media(max-width:700px){
  .canvas-workspace-panel{width:min(286px,calc(100vw - 16px))!important}
  .legend-workspace-panel{right:8px!important;top:clamp(185px,31vh,260px)!important;min-width:142px!important;max-width:176px!important}
  .sticky-note.semantic-note textarea{min-width:108px!important;max-width:190px!important;font-size:13px!important}
}

/* v0.10.9l — AI reference review gate + production multi-view guide */
.review-toggle-row{display:flex;align-items:flex-start;gap:10px;padding:9px 10px;border:1px solid #dbe5ee;border-radius:12px;background:#fbfdff;cursor:pointer;margin-top:8px}.review-toggle-row input{width:18px;height:18px;margin-top:2px;flex:0 0 auto}.review-toggle-row span{display:flex;flex-direction:column;gap:2px;min-width:0}.review-toggle-row b{font-size:12px}.review-toggle-row small{font-size:10px;color:#728197;line-height:1.35}.review-toggle-row.disabled{opacity:.48;cursor:not-allowed}.texture-options{display:grid;gap:6px;margin-top:8px}.ai-review-card{width:min(470px,calc(100vw - 22px));max-height:90dvh;overflow:auto;padding:12px!important;border-radius:14px!important}.ai-review-card .modal-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.ai-review-card .modal-title-row>b{font-size:14px;line-height:1.15;letter-spacing:-.01em}.ai-review-card .modal-title-row>button{width:30px;height:30px;padding:0;border-radius:10px;font-size:18px}.ai-review-card .compact-help{font-size:10px;line-height:1.4;color:var(--muted);margin:3px 0 9px}.ai-review-preview-wrap{background:#eef3f7;border:1px solid #d8e1e8;border-radius:11px;display:grid;place-items:center;min-height:190px;max-height:48vh;overflow:hidden}.ai-review-preview-wrap img{display:block;width:100%;max-height:46vh;object-fit:contain}.ai-review-meta{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0}.ai-review-meta span{font-size:9px;border:1px solid #d9e3eb;border-radius:999px;padding:4px 7px;background:#fff;color:#5f6d7b}.ai-review-card textarea{width:100%;margin:3px 0 0;min-height:68px;padding:8px 9px;border:1px solid var(--line);border-radius:10px;resize:vertical;font-size:11px}.ai-review-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:9px}.ai-review-actions button{min-height:40px;padding:7px 6px;font-size:10px}.ai-review-actions .primary{background:#1677ff;color:#fff;border-color:#1677ff}.multiview-slice-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:8px}.multiview-slice-strip img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;border:1px solid #d9e3eb;background:#fff}
@media(max-width:760px){.ai-review-card{width:min(390px,calc(100vw - 14px));padding:10px!important}.ai-review-card .modal-title-row>b{font-size:13px}.ai-review-card .compact-help{font-size:10px}.ai-review-preview-wrap{min-height:180px;max-height:45vh}.ai-review-preview-wrap img{max-height:43vh}.ai-review-actions{grid-template-columns:1fr 1fr;gap:7px}.review-toggle-row{padding:8px 9px}.review-toggle-row b{font-size:12px}.review-toggle-row small{font-size:10px}.review-toggle-row input{width:18px;height:18px}.ai-review-actions button{min-height:42px;font-size:11px}}

/* v0.10.9n Direct Generate */
.direct-generate-block{margin:10px 0 12px;padding:10px;border:1px solid #dbe5ef;border-radius:14px;background:#f8fbff}
.direct-generate-row{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(160px,1.2fr);gap:8px;align-items:center}
.direct-generate-row select,.direct-generate-row button{min-height:42px;border-radius:11px;border:1px solid #cfd9e5;background:#fff;font:600 13px/1.2 Inter,system-ui,sans-serif;padding:0 12px}
.direct-generate-row button{background:#111827;color:#fff;border-color:#111827;cursor:pointer}
.direct-generate-row button:disabled,.direct-generate-row select:disabled{opacity:.48;cursor:not-allowed}
#directGenerateHint{display:block;margin-top:7px;color:#6b7785;font-size:11px;line-height:1.35}
@media(max-width:700px){.direct-generate-block{padding:12px}.direct-generate-row{grid-template-columns:1fr 1.15fr;gap:10px}.direct-generate-row select,.direct-generate-row button{min-height:48px;font-size:14px;padding:0 12px}}


/* v0.10.9o — responsive production UI polish */
/* Always-on canvas input: the old Finger Draw toggle is intentionally removed. */
#inputChip{display:none!important}

/* PREPARE 3D: reduce vertical density without shrinking tap targets. */
.compact-generate-card{width:min(520px,calc(100vw - 24px));padding:10px!important}
.compact-generate-card .modal-title-row{margin-bottom:2px}
.compact-generate-card .pipeline-help{margin:2px 0 6px;font-size:9.5px;line-height:1.3}
.compact-generate-card .generation-profile{margin:5px 0;gap:6px}
.compact-generate-card .generation-profile button{min-height:46px;padding:7px 9px!important}
.compact-generate-card .generation-profile b{font-size:10px}
.compact-generate-card .generation-profile small{font-size:8px;line-height:1.2}
.compact-generate-card .direct-generate-block{margin:6px 0 7px;padding:7px 8px;border-radius:11px}
.compact-generate-card .direct-generate-row{grid-template-columns:1fr 1fr;gap:6px}
.compact-generate-card .direct-generate-row select,
.compact-generate-card .direct-generate-row button{min-height:38px;font-size:11px;padding:0 9px}
.compact-generate-card #directGenerateHint{margin-top:4px;font-size:9px;line-height:1.25}
.compact-generate-card .pipeline-types{margin:6px 0;gap:5px}
.compact-generate-card .pipeline-types button{min-height:34px;padding:6px 5px;font-size:9px}
.compact-generate-card textarea{min-height:58px;max-height:94px;margin:5px 0 0;padding:8px 9px;font-size:11px}
.compact-generate-card .mini-drop{margin-top:5px;padding:7px}
.compact-generate-card .compact-ref-row{margin-top:5px}
.compact-generate-card .pipeline-summary{margin:6px 0;padding:7px 8px;font-size:9px;line-height:1.3}
.compact-generate-card .symmetry-control{margin:6px 0;padding:7px 9px;border-radius:10px}
.compact-generate-card .symmetry-control select{padding:6px 8px;min-height:34px}
.compact-generate-card .refine-control{margin:6px 0;padding:7px 9px;border-radius:10px}
.compact-generate-card .refine-control input{margin:6px 0 4px}
.compact-generate-card .refine-control small{font-size:8px}
.compact-generate-card .review-toggle-row{margin-top:6px;padding:7px 8px;gap:7px;border-radius:10px}
.compact-generate-card .review-toggle-row input{width:15px;height:15px;margin-top:1px}
.compact-generate-card .review-toggle-row b{font-size:10px}
.compact-generate-card .review-toggle-row small{font-size:8.5px;line-height:1.25}
.compact-generate-card .cost-note{margin:6px 0;padding:7px 8px}
.compact-generate-card .dynamic-price-line{margin:6px 0;padding:7px 8px}
.compact-generate-card #prepare3dBtn{padding:9px 10px}

/* Texture cards: keep Standard/PBR visually centered and balanced. */
.compact-production-card .production-choice{grid-template-columns:1fr 1fr;align-items:stretch}
.compact-production-card .production-choice button{grid-template-columns:32px minmax(0,1fr) auto!important;grid-template-rows:1fr!important;min-height:70px;padding:8px 9px!important;align-items:center!important}
.compact-production-card .production-choice .mini-material-ball{grid-row:auto!important;width:30px;height:30px}
.compact-production-card .production-choice button>span:not(.mini-material-ball){display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px;min-width:0}
.compact-production-card .production-choice button>strong{align-self:center;text-align:right}
.compact-production-card .texture-options{margin-top:7px;gap:0}
.compact-production-card .review-toggle-row{padding:8px 9px;margin-top:6px}

/* Desktop/tablet semantic panels: readable, still compact. */
.canvas-workspace-panel{width:260px!important;padding:10px!important}
.canvas-workspace-panel .panel-head b{font-size:11px!important}
.canvas-workspace-panel .layer-row{min-height:40px!important;padding:6px 7px!important}
.canvas-workspace-panel .layer-main .grow b{font-size:11px!important}
.canvas-workspace-panel .layer-main .grow span{font-size:9.5px!important}
.canvas-workspace-panel .layer-icon{width:30px!important;height:30px!important;min-width:30px!important;font-size:14px!important}
.legend-workspace-panel{right:14px!important;top:clamp(230px,36vh,340px)!important;bottom:auto!important;min-width:150px!important;max-width:190px!important;width:170px!important;padding:9px!important}
.legend-workspace-panel .panel-head b{font-size:11px!important}
.legend-workspace-panel .panel-head small{font-size:9px!important}
.note-spawn-btn{min-height:34px!important;font-size:11px!important;padding:7px 10px!important}
.sticky-note.semantic-note{transform:scale(var(--note-scale,.94))!important;padding:6px 7px 7px!important}
.sticky-note.semantic-note textarea{min-width:112px!important;max-width:210px!important;font-size:11.5px!important;line-height:1.32!important;padding:4px 5px!important}

@media(max-width:700px){
  /* Floating cards should not collide with the workspace menu on phones. */
  .legend-workspace-panel{right:8px!important;top:auto!important;bottom:104px!important;width:168px!important;min-width:168px!important;max-width:168px!important;padding:9px!important}
  .legend-workspace-panel .panel-head b{font-size:12px!important}
  .legend-workspace-panel .panel-head small{font-size:10px!important}
  .note-spawn-btn{min-height:42px!important;font-size:13px!important}
  .canvas-workspace-panel{left:8px!important;bottom:92px!important;width:min(246px,calc(100vw - 16px))!important;padding:9px!important}
  .canvas-workspace-panel .layer-row{min-height:46px!important;padding:6px 7px!important}
  .canvas-workspace-panel .layer-main .grow b{font-size:12px!important}
  .canvas-workspace-panel .layer-main .grow span{font-size:10px!important}
  .canvas-workspace-panel .layer-icon{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
  .sticky-note.semantic-note{transform:scale(var(--note-scale,.9))!important}
  .sticky-note.semantic-note textarea{min-width:116px!important;max-width:190px!important;min-height:40px!important;font-size:13px!important;line-height:1.35!important;padding:6px 7px!important}

  /* PREPARE 3D becomes a compact inset sheet rather than a full-width wall of controls. */
  .compact-generate-card{left:8px!important;right:8px!important;bottom:8px!important;width:auto!important;max-height:calc(100dvh - 16px)!important;border-radius:16px!important;padding:10px!important}
  .compact-generate-card .generation-profile button{min-height:50px}
  .compact-generate-card .direct-generate-row select,
  .compact-generate-card .direct-generate-row button{min-height:42px;font-size:12px}
  .compact-generate-card .pipeline-types{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible!important}
  .compact-generate-card .pipeline-types button{min-width:0!important;font-size:9px;padding:7px 3px}
  .compact-generate-card .review-toggle-row{padding:7px 8px!important}
  .compact-generate-card .review-toggle-row input{width:16px!important;height:16px!important}
  .compact-generate-card .review-toggle-row b{font-size:10px!important}
  .compact-generate-card .review-toggle-row small{font-size:8.5px!important}

  /* Texture modal: equal geometry for Standard and PBR on narrow screens. */
  .compact-production-card{width:min(390px,calc(100vw - 12px));padding:10px!important}
  .compact-production-card .production-choice button{grid-template-columns:30px minmax(0,1fr)!important;grid-template-rows:auto auto!important;min-height:74px;padding:8px!important}
  .compact-production-card .production-choice button>strong{grid-column:1/-1;justify-self:center;text-align:center;margin-top:2px}
  .compact-production-card .production-choice button>span:not(.mini-material-ball){align-items:center;text-align:center}
}

/* v0.10.9p · Complete Asset default */
.output-choice{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:5px 0 7px}.output-choice button{min-height:42px;padding:7px 9px;border:1px solid #d6e0e8;border-radius:10px;background:#fff;text-align:left;display:flex;align-items:center}.output-choice button.active{border-color:#4b96ff;background:#eef6ff;box-shadow:0 0 0 1px rgba(75,150,255,.08)}.output-choice button>span{display:grid;gap:2px}.output-choice b{font-size:10px;color:#1c2b36}.output-choice small{font-size:8px;line-height:1.2;color:#728197}.output-choice button[data-output-mode="complete"] b:after{content:" · Recommended";font-size:8px;color:#1677ff;font-weight:700}.compact-generate-card .output-choice{margin:5px 0 6px}.compact-generate-card .output-choice button{min-height:38px;padding:6px 8px}.compact-generate-card .output-choice b{font-size:9.5px}.compact-generate-card .output-choice small{font-size:8px}@media(max-width:600px){.output-choice button{min-height:44px}.output-choice b{font-size:11px}.output-choice small{font-size:9px}}


/* v0.10.10a Environment Pack MVP */
.pipeline-types{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.environment-pack-dock{position:absolute;left:50%;top:112px;transform:translateX(-50%);z-index:14;display:flex;align-items:center;gap:8px;max-width:min(560px,calc(100% - 32px));min-height:34px;padding:5px 7px;border:1px solid rgba(205,217,227,.95);border-radius:12px;background:rgba(255,255,255,.91);box-shadow:0 5px 16px rgba(24,56,77,.08);backdrop-filter:blur(10px)}
.env-pack-identity{display:flex;align-items:baseline;gap:5px;padding:0 4px;white-space:nowrap}.environment-pack-dock b{font-size:9px;letter-spacing:.09em;color:#31414d}.environment-pack-dock small{font-size:8px;color:#8a98a4}.env-pack-actions{display:flex;gap:4px;align-items:center}.env-pack-actions button{border:1px solid #d8e1e8;background:#fff;color:#34434e;border-radius:8px;padding:5px 8px;font:600 9px/1 Inter,sans-serif;cursor:pointer;white-space:nowrap}.env-pack-actions button:first-child{background:#f2f7ff;border-color:#bfd8fb;color:#1769c2}
@media(max-width:800px){.pipeline-types{grid-template-columns:repeat(3,minmax(0,1fr))!important}.environment-pack-dock{top:108px;max-width:calc(100% - 20px);gap:5px;padding:5px}.env-pack-identity small{display:none}.env-pack-actions{gap:3px}.env-pack-actions button{padding:5px 6px;font-size:8px}}
/* v0.10.10e EnvironmentPackBindingFix: no layout regressions; component binding/export fixes are JS-only. */

/* v0.10.10h component load resilience */
.model-layer-row.load-error{background:rgba(255,245,245,.82)}.model-layer-row .layer-warning{font-style:normal;font-size:11px;margin-left:5px;color:#b45309}.model-layer-row.load-error .layer-line{opacity:.38!important}

/* v0.10.10j KeepUV + base-material inheritance; no layout change. */

.ai-review-cost{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;border:1px solid #d7e2f0;border-radius:14px;background:#f5f8fc;color:#44566c;font-size:13px;margin-bottom:10px}
.inline-prompt-card{width:min(520px,calc(100vw - 32px))}
.inline-prompt-card textarea{width:100%;min-height:110px;border:1px solid #d7e2f0;border-radius:16px;padding:12px 14px;font:inherit;resize:vertical;background:#fff;color:#21313f}
body.modal-active .environment-pack-dock{z-index:1 !important;pointer-events:none;opacity:.12}
#aiReferenceReviewModal.modal,#inlinePromptModal.modal{z-index:1000}

/* v0.10.10ac · Texture Quality control · matches existing compact control language */
.texture-quality-control{margin:8px 0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}.texture-quality-control>div{display:flex;flex-direction:column;gap:1px;min-width:0}.texture-quality-control b{font-size:10px;color:#20313c}.texture-quality-control small{font-size:8.5px;color:#81909b;font-weight:400;line-height:1.2}.texture-quality-control select{min-width:148px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 9px;min-height:34px;color:#20313c;font-size:10px}.texture-quality-control.compact{margin-top:8px;padding:8px 9px}.compact-production-card .texture-quality-control{margin-bottom:1px}.compact-generate-card .texture-quality-control{margin-top:6px;margin-bottom:6px}@media(max-width:600px){.texture-quality-control{padding:7px 8px;gap:8px}.texture-quality-control select{min-width:132px;padding:6px 8px}.texture-quality-control b{font-size:10px}.texture-quality-control small{font-size:8px}}
\n\n/* v0.10.10aj · Prepare3D compact optimizer + native confirmations */\n.prepare-tuning-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:5px 0}\n.prepare-tuning-grid .symmetry-control,.prepare-tuning-grid .texture-quality-control{margin:0!important;min-height:50px;padding:6px 8px!important}\n.prepare-tuning-grid .symmetry-control select,.prepare-tuning-grid .texture-quality-control select{min-width:0;width:140px;max-width:100%;min-height:32px;padding:5px 7px}\n.prepare-existing-action{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:6px 0;padding:7px 8px;border:1px solid var(--line);border-radius:10px;background:#f7faff}\n.prepare-existing-action>div{display:grid;gap:1px;min-width:0}.prepare-existing-action b{font-size:9.5px;color:#20313c}.prepare-existing-action small{font-size:8px;line-height:1.2;color:#81909b}\n.prepare-existing-action button{min-height:34px;padding:6px 10px;border:1px solid #bfd8fb;border-radius:9px;background:#eef6ff;color:#1769c2;font:700 9.5px/1 Inter,sans-serif;white-space:nowrap;cursor:pointer}\n.prepare-existing-action button:disabled{background:#f4f6f8;border-color:#dde4ea;color:#9aa6af;cursor:not-allowed;opacity:.9}\n.compact-generate-card .pipeline-help{display:none}\n.compact-generate-card .pipeline-summary{padding:5px 7px;margin:4px 0;font-size:8.5px}\n.compact-generate-card .refine-control{padding:6px 8px;margin:5px 0}.compact-generate-card .refine-control input{margin:4px 0 2px}\n.compact-generate-card .cost-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:center;padding:6px 8px;margin:5px 0}.compact-generate-card .cost-note span{font-size:8px;line-height:1.2}\n.compact-generate-card .dynamic-price-line{padding:6px 8px;margin:5px 0}\n.app-confirm-card{width:min(430px,calc(100vw - 28px));padding:16px!important}.app-confirm-message{margin:8px 0 5px;color:#24333f;font-size:13px;font-weight:650;line-height:1.4}.app-confirm-detail{margin:0 0 12px;padding:9px 10px;border:1px solid #dbe4eb;border-radius:10px;background:#f7f9fb;color:#607180;font-size:11px;line-height:1.45}.app-confirm-card .ai-review-actions{margin-top:10px}#appConfirmModal.modal{z-index:1100}\n#appConfirmModal[data-tone="danger"] #appConfirmOk{background:#b42318;border-color:#b42318}\n@media(max-width:700px){.prepare-tuning-grid{grid-template-columns:1fr 1fr;gap:5px}.prepare-tuning-grid .symmetry-control,.prepare-tuning-grid .texture-quality-control{display:grid!important;grid-template-columns:1fr;gap:4px;align-items:start}.prepare-tuning-grid select{width:100%!important}.prepare-existing-action{grid-template-columns:1fr;gap:5px}.prepare-existing-action button{width:100%}}\n

/* v0.10.10al · optimizer flow + modal stacking + compact Prepare 3D */
.modal{z-index:1000!important}
#aiReferenceReviewModal.modal,#inlinePromptModal.modal{z-index:1060!important}
#appConfirmModal.modal{z-index:1100!important}
body.modal-active .views,body.modal-active .hint,body.modal-active #orbitToggle,body.modal-active .workspace-dot,body.modal-active .tools,body.modal-active .environment-pack-dock{pointer-events:none!important;z-index:1!important}
#pipelineModal .compact-generate-card{width:min(560px,calc(100vw - 24px));max-height:min(92dvh,760px);padding:11px!important}
#pipelineModal .generation-profile,#pipelineModal .output-choice{gap:5px}
#pipelineModal .generation-profile button,#pipelineModal .output-choice button{padding:7px 9px;min-height:48px}
#pipelineModal .direct-generate-block{margin-top:5px}
#pipelineModal .pipeline-types{margin:5px 0!important}
#pipelineModal .pipeline-types button{padding:7px 5px!important}
#pipelineModal .compact-generate-card textarea{min-height:62px;margin-top:5px}
#pipelineModal .mini-drop{padding:6px;margin-top:5px}
#pipelineModal .compact-ref-row{margin-top:4px}
#pipelineModal .prepare-tuning-grid{margin:4px 0}
#pipelineModal .prepare-tuning-grid .symmetry-control,#pipelineModal .prepare-tuning-grid .texture-quality-control{min-height:44px;padding:5px 7px!important}
#pipelineModal .prepare-existing-action{grid-template-columns:1fr;margin:5px 0;padding:6px 7px;background:transparent;border:0}
#pipelineModal .prepare-existing-action>div{grid-template-columns:auto 1fr;align-items:baseline;gap:6px}
#pipelineModal .prepare-existing-action b{font-size:10px}
#pipelineModal .prepare-existing-action small{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pipelineModal #prepareLowpolyTextureBtn{width:100%;min-height:40px;padding:9px 12px;border-radius:10px;background:#1677ff;color:#fff;border-color:#1677ff;font-size:12px;font-weight:750;box-shadow:0 4px 12px rgba(22,119,255,.16)}
#pipelineModal #prepareLowpolyTextureBtn:disabled{background:#eef2f6;color:#98a5b1;border-color:#dfe6ec;box-shadow:none}
#pipelineModal .refine-control{margin:4px 0!important;padding:5px 7px!important}
#pipelineModal .refine-control>div{margin-bottom:1px}
#pipelineModal .refine-control input[type=range]{height:12px;margin:2px 0!important}
#pipelineModal .refine-control small{font-size:7.5px;line-height:1.15}
#pipelineModal .review-toggle-row{margin-top:5px;padding:7px 8px}
#pipelineModal .cost-note{margin:4px 0!important;padding:5px 7px!important}
#pipelineModal .dynamic-price-line{margin:4px 0!important;padding:5px 7px!important}
#pipelineModal #prepare3dBtn{min-height:40px}
@media(max-width:700px){#pipelineModal .compact-generate-card{width:min(520px,calc(100vw - 12px));max-height:94dvh;padding:9px!important}#pipelineModal .prepare-existing-action>div{grid-template-columns:1fr}#pipelineModal .prepare-existing-action small{white-space:normal}}


/* v0.10.10al · documented topology / UV gate / exact Production face target */
.production-face-count{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,1.2fr) 48px;align-items:center;gap:8px;margin:4px 0 6px;padding:6px 8px;border:1px solid var(--line);border-radius:10px;background:#f8fbff}
.production-face-count>div{display:grid;gap:1px}.production-face-count b{font-size:9.5px;color:#20313c}.production-face-count small{font-size:8px;color:#7c8b98}.production-face-count input{width:100%;accent-color:#1677ff}.production-face-count output{font:700 10px/1 Inter,sans-serif;color:#1677ff;text-align:right}
.prepare-existing-action{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;border:1px solid var(--line)!important;background:#f8fbff!important;padding:6px 7px!important}
.prepare-existing-action .prepare-existing-copy{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px;align-items:baseline}.prepare-existing-action .prepare-existing-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prepare-topology-select{display:flex;align-items:center;gap:5px;min-width:0}.prepare-topology-select label{font:700 8.5px/1 Inter,sans-serif;color:#617383}.prepare-topology-select select{min-height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:5px 8px;color:#20313c;font-size:9px;max-width:150px}
#pipelineModal .prepare-existing-action>button{min-height:34px!important;padding:7px 10px!important;border:0!important;background:#1677ff!important;color:#fff!important;box-shadow:0 3px 10px rgba(22,119,255,.16)}
#pipelineModal .prepare-existing-action>button:disabled{background:#dfe7ef!important;color:#91a0ad!important;box-shadow:none}
@media(max-width:700px){.production-face-count{grid-template-columns:1fr 42px}.production-face-count>div{grid-column:1/-1}.prepare-existing-action{grid-template-columns:1fr!important}.prepare-existing-action .prepare-existing-copy{grid-template-columns:1fr}.prepare-existing-action .prepare-existing-copy small{white-space:normal}.prepare-topology-select{justify-content:space-between}.prepare-topology-select select{max-width:none;flex:1}}

/* v0.10.10an · compact optimizer alignment + export completion */
.prepare-existing-action{grid-template-columns:minmax(0,1fr) auto!important;gap:7px 10px!important;align-items:center!important}
.prepare-existing-action .prepare-existing-copy{min-width:0!important}
.prepare-existing-action .prepare-existing-copy small{display:block;white-space:normal;line-height:1.25}
.prepare-existing-action .prepare-topology-select{justify-self:end;display:flex;align-items:center;gap:7px}
.prepare-existing-action .prepare-topology-select label{font-size:9px;font-weight:700;color:#617383}
.prepare-existing-action .prepare-topology-select select{width:132px;min-width:132px;max-width:132px;min-height:34px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:6px 30px 6px 10px;font:600 10px/1 Inter,sans-serif;color:#20313c}
.prepare-existing-action>#prepareLowpolyTextureBtn{grid-column:1/-1;width:100%;min-height:40px;border:0!important;border-radius:10px!important;background:#1f7af8!important;color:#fff!important;font-size:12px!important;font-weight:800!important;box-shadow:none!important}
.prepare-existing-action>#prepareLowpolyTextureBtn:disabled{background:#e8edf3!important;color:#9aa6af!important}
.export-success-card{width:min(390px,calc(100vw - 28px));padding:22px!important;text-align:center;display:grid;gap:10px;justify-items:stretch}
.export-success-card>b{font-size:18px;color:#17242f}.export-success-card p{margin:0;color:#617383;font-size:12px;line-height:1.45}.export-success-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;margin:0 auto;background:#eaf4ff;color:#1f7af8;font-size:23px;font-weight:900}.export-success-name{padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#f7f9fb;color:#334552;font:700 11px/1.2 Inter,sans-serif;overflow-wrap:anywhere}.export-success-card .primary{min-height:42px;width:100%;margin-top:2px}#exportSuccessModal.modal{z-index:1300}
@media(max-width:700px){.prepare-existing-action{grid-template-columns:1fr auto!important}.prepare-existing-action .prepare-topology-select{justify-self:end}.prepare-existing-action .prepare-topology-select label{display:none}.prepare-existing-action .prepare-topology-select select{width:118px;min-width:118px;max-width:118px}}

/* v0.10.10ap process safety + commerce/wallet hardening */
body.process-active .views{pointer-events:none!important;opacity:.42!important;filter:saturate(.35)}
body.process-active #hint{pointer-events:none!important;opacity:.48!important}
body.process-active [data-view]{cursor:not-allowed!important}
.provider-disclaimer{margin:8px 0 2px;padding:8px 10px;border:1px solid #d9e3ea;border-radius:10px;background:#f7f9fb;color:#637583;font-size:10.5px;line-height:1.45}.provider-disclaimer b{color:#243441}.export-card .provider-disclaimer,.export-disclaimer{margin-top:10px;padding:10px 11px;border-color:#cfdbe4;background:#f5f8fb;color:#51626f;font-size:11px;line-height:1.48}
#aiReferenceReviewModal.locked-review .ai-review-actions{grid-template-columns:1fr!important}
#aiReferenceReviewModal.locked-review #aiReviewUse{width:100%}

body.process-active .views,body.process-active .hint{z-index:1!important;pointer-events:none!important;user-select:none!important}
body.modal-active .views button,body.process-active .views button{pointer-events:none!important}

/* v0.10.10ap wallet access gate */
body.fx-zero [data-view="3d"], .wallet-locked{opacity:.45;filter:saturate(.65)}
body.fx-zero [data-view="3d"]{cursor:not-allowed}


/* v0.10.10av · Asset History + commerce polish + account modal lock */
#profileModal.modal,#purchaseModal.modal{z-index:2400!important}
body.modal-active #profileModal:not(.hidden),body.modal-active #purchaseModal:not(.hidden){pointer-events:auto!important}
#profileModal .profile-tabs{display:inline-flex;gap:5px;margin:0 0 14px;padding:4px;border:1px solid #d7e1e8;border-radius:12px;background:#f6f9fb}
#profileModal .profile-tabs button{border:0;background:transparent;min-height:32px;padding:0 12px;border-radius:8px;color:#61717d;font-size:10px;font-weight:700}
#profileModal .profile-tabs button.active{background:#fff;color:#075fcc;box-shadow:0 1px 4px rgba(25,47,64,.08),inset 0 0 0 1px #c8ddf8}
#profileModal .profile-tabs span{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:#eaf3ff;color:#075fcc;font-size:8px}
.asset-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 10px}.asset-history-head>div{display:grid;gap:3px}.asset-history-head b{font-size:13px}.asset-history-head small{font-size:9px;color:var(--muted)}.asset-history-head button{min-height:30px;padding:0 10px;font-size:9px}
.asset-history-list{display:grid;gap:7px;max-height:390px;overflow:auto;padding-right:2px}.asset-history-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;border:1px solid #d8e2e8;border-radius:13px;background:#fff}.asset-history-row>img,.asset-thumb-placeholder{width:72px;height:54px;object-fit:cover;border-radius:9px;background:linear-gradient(145deg,#e8f2ff,#edf2f5);border:1px solid #dbe4ea}.asset-thumb-placeholder{display:grid;place-items:center;color:#6f8492;font-size:12px;font-weight:850;letter-spacing:.08em}.asset-history-copy{min-width:0;display:grid;gap:3px}.asset-history-copy>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.asset-history-copy>span{font-size:8.5px;color:#73838e;text-transform:capitalize}.asset-history-copy>small{font-size:8.5px;font-weight:750}.asset-available{color:#188350}.asset-expired{color:#9b5e37}.asset-history-actions{display:grid;gap:5px}.asset-history-actions button{min-width:68px;min-height:28px;padding:0 8px;border-radius:8px;font-size:8.5px}.asset-history-actions .primary{background:#1677ff;border-color:#1677ff;color:#fff}.asset-history-actions button:disabled{opacity:.55;cursor:not-allowed}.asset-history-empty{min-height:110px;display:grid;place-items:center;align-content:center;gap:5px;text-align:center;padding:18px;border:1px dashed #ccd9e1;border-radius:13px;background:#f8fafb;color:#71808c}.asset-history-empty b{font-size:11px;color:#40525e}.asset-history-empty span{font-size:9px;max-width:300px}.asset-history-disclaimer{display:block;margin-top:10px;padding:9px 10px;border:1px solid #dce5eb;border-radius:10px;background:#f7f9fb;color:#7b8b96;font-size:8.5px;line-height:1.45}
#purchaseModal .purchase-card{width:min(690px,calc(100vw - 28px));padding:17px!important}
#purchaseModal .purchase-grid{gap:9px!important}
#purchaseModal .purchase-item{min-height:140px!important;display:grid!important;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:7px;padding:11px!important;background:linear-gradient(180deg,#fff,#fbfdff)!important}
#purchaseModal .pack-visual{grid-row:1/3;width:72px;height:72px;border-radius:16px;display:grid;place-items:center;align-content:center;gap:1px;border:1px solid #d9e4eb;background:linear-gradient(145deg,#eef5ff,#f8fbff);overflow:hidden;position:relative}
#purchaseModal .pack-visual.creator{background:linear-gradient(145deg,#eef9f7,#f7fffd)}#purchaseModal .pack-visual.studio{background:linear-gradient(145deg,#f2efff,#fbfaff)}#purchaseModal .pack-visual svg{width:48px;height:38px;fill:none;stroke:#2479f5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#purchaseModal .pack-visual.creator svg{stroke:#16856f}#purchaseModal .pack-visual.studio svg{stroke:#7057d8}#purchaseModal .pack-visual span{font-size:8px;font-weight:900;letter-spacing:.12em;color:#507086}
#purchaseModal .purchase-copy{min-width:0}#purchaseModal .purchase-item h4{font-size:11px!important;margin:0 0 3px!important}#purchaseModal .purchase-item .fx-big{font-size:20px!important;margin:0 0 5px!important}#purchaseModal .purchase-item .money{margin:0!important;min-height:auto!important;font-size:9.5px!important}
#purchaseModal .purchase-continue{grid-column:2;min-height:32px!important;margin:0!important;background:#1677ff!important;border-color:#1677ff!important;color:#fff!important;font-weight:760!important}#purchaseModal .purchase-continue:hover{background:#0f69e7!important}
#purchaseModal .checkout-note{margin-top:10px!important;padding:9px 11px!important;font-size:9px!important}
@media(max-width:700px){.asset-history-row{grid-template-columns:60px minmax(0,1fr)}.asset-history-row>img,.asset-thumb-placeholder{width:60px;height:48px}.asset-history-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.asset-history-actions button{width:100%}#purchaseModal .purchase-item{grid-template-columns:62px minmax(0,1fr)}#purchaseModal .pack-visual{width:62px;height:62px;border-radius:14px}#purchaseModal .pack-visual svg{width:42px;height:34px}}

/* v0.10.10aw · release frontend polish */
.release-hidden{display:none!important}
.hy3d-viewer.shader-notexture{filter:none!important}


/* v0.10.10ax · mobile release polish */
.tool-settings{z-index:40!important}
.model-layer-panel,.canvas-workspace-panel,.legend-workspace-panel{z-index:7}
.panel-head-actions{display:flex;align-items:center;gap:4px}
.panel-collapse-btn{display:none;width:26px;height:24px;padding:0;border:0;border-radius:8px;background:#f2f6f9;color:#5f6d78;font:700 13px/1 Inter,sans-serif}
.panel-collapsed .panel-collapsible-body{display:none!important}
@media(max-width:600px) and (orientation:portrait){
  .canvas-workspace-panel{left:8px!important;right:auto!important;bottom:88px!important;width:calc(58vw - 10px)!important;max-width:214px!important;padding:7px!important;gap:5px!important}
  .legend-workspace-panel{right:8px!important;left:auto!important;top:auto!important;bottom:88px!important;width:calc(42vw - 10px)!important;min-width:112px!important;max-width:154px!important;padding:7px!important;gap:5px!important}
  .canvas-workspace-panel .layer-row{min-height:38px!important;padding:4px 5px!important}
  .canvas-workspace-panel .layer-main{gap:3px!important}
  .canvas-workspace-panel .layer-main .grow b{font-size:10px!important}.canvas-workspace-panel .layer-main .grow span{font-size:8px!important}
  .canvas-workspace-panel .layer-icon{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;font-size:13px!important}
  .canvas-workspace-panel .compact-opacity{width:46px!important;height:20px!important}
  .canvas-workspace-panel .add-layer-btn{width:28px!important;height:28px!important;min-width:28px!important}
  .canvas-workspace-panel .lock-badge{width:16px!important}
  .legend-workspace-panel .note-spawn-btn{min-height:36px!important;font-size:10px!important;padding:7px!important}
  .legend-workspace-panel .note-active-layer{font-size:9px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .panel-collapse-btn{display:grid;place-items:center}
  .panel-collapsed{width:auto!important;min-width:88px!important;max-width:118px!important;padding:6px 7px!important}
  .panel-collapsed .panel-head{min-height:26px!important}
  .panel-collapsed .add-layer-btn{display:none!important}
}


/* v0.10.10bh · Animation Ready character preparation */
.character-pose-control{margin:7px 0;padding:8px;border:1px solid var(--line);border-radius:11px;background:#f7faff;display:grid;gap:6px}.character-pose-control.hidden{display:none}.character-pose-control>div:first-child{display:grid;gap:2px}.character-pose-control b{font-size:10px;color:#20313c}.character-pose-control small{font-size:8px;line-height:1.3;color:#81909b}.character-pose-options{display:grid;grid-template-columns:1fr 1.35fr;gap:6px}.character-pose-options button{min-height:34px;border:1px solid #d6e0e7;border-radius:9px;background:#fff;color:#52606d;font:700 9px/1.2 Inter,sans-serif;cursor:pointer}.character-pose-options button.active{border-color:#7fb2ff;background:#eaf4ff;color:#1769c2;box-shadow:0 0 0 2px rgba(46,126,246,.08)}@media(max-width:700px){.character-pose-options{grid-template-columns:1fr}}

/* v0.10.10bi pricing clarity */
.prepare-cost-breakdown{display:grid;gap:5px;padding:8px 10px;margin-top:-5px;border:1px solid #dbe6ec;border-radius:10px;background:#f8fbfd;font-size:10px;color:#657985}.prepare-cost-breakdown span{display:flex;align-items:center;justify-content:space-between;gap:12px}.prepare-cost-breakdown i{font-style:normal}.prepare-cost-breakdown b{color:#176fd1}.prepare-cost-breakdown s{color:#93a1aa;margin-right:5px}.prepare-cost-breakdown.hidden{display:none}

.header-workspace-switch{display:flex;align-items:center;margin-left:auto;margin-right:2px}.header-workspace-switch button{height:31px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:9px;font-weight:750}.header-workspace-switch button:hover{background:var(--soft)}@media(max-width:700px){.header-workspace-switch button{height:29px;padding:0 8px;font-size:8px}}

/* v0.10.10ejak · nested confirmation safety
   Confirmation dialogs opened from Profile / Purchase must render above their parent modal. */
#appConfirmModal.modal{z-index:2600!important}




/* v0.10.10ejbv — lazy texture reference/prompt decision */
.texture-reference-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.texture-reference-choice button{padding:12px;border-radius:12px;text-align:left;display:flex;align-items:flex-start}
.texture-reference-choice button span{display:flex;flex-direction:column;gap:4px}
.texture-reference-choice button small{line-height:1.3;opacity:.72}
.texture-reference-choice button.active{border-color:#2478ff;background:rgba(36,120,255,.08)}
.texture-prompt-tools{display:flex;align-items:center;gap:12px;margin:12px 0}
.texture-prompt-tools small{line-height:1.35;opacity:.72}
.texture-source-review #aiReviewPrompt{min-height:240px;resize:vertical;font-size:13px;line-height:1.5}
.texture-source-review .ai-review-preview-wrap{max-height:360px}
.texture-source-review .ai-review-preview-wrap img{object-fit:contain}
@media(max-width:700px){.texture-reference-choice{grid-template-columns:1fr}.texture-prompt-tools{align-items:stretch;flex-direction:column}.texture-prompt-tools button{width:100%}}

/* v0.10.10ejch · scalable workspace switcher */
.workspace-switch-select{height:32px;min-width:164px;padding:0 30px 0 11px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:750 9px/1 Inter,sans-serif;outline:none;cursor:pointer}.workspace-switch-select:focus{border-color:#8ebeff;box-shadow:0 0 0 3px rgba(36,121,245,.08)}@media(max-width:700px){.workspace-switch-select{min-width:128px;max-width:142px;height:30px;font-size:8px;padding-left:8px}}


/* v0.10.10ejdy — provider-variance label + native workspace interaction guard */
.experimental-tag{display:inline-flex;vertical-align:middle;margin-left:5px;padding:2px 5px;border-radius:999px;background:#fff3d8;border:1px solid #efcb77;color:#966300;font-style:normal;font-size:7px;line-height:1;font-weight:800;letter-spacing:.02em}.experimental-inline{display:block;margin-top:2px;font-size:7px;font-weight:650;opacity:.82}.stage,.hy3d-viewer,#captureArea{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}header,nav,.toolkit,.views,.layers{touch-action:manipulation}.modal input,.modal textarea,.modal select,input,textarea,select{user-select:text;-webkit-user-select:text}


/* v0.10.10ejeaw — mobile Modeling header cleanup + FORGEX mark */
.brand .forgex-mark{width:34px;height:34px;min-width:34px;display:grid;place-items:center;border:0;border-radius:8px;overflow:hidden;background:#fff}
.brand .forgex-mark img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
/* Buy Credit lives in Profile; keep the header dedicated to navigation. */
.buy-credit-btn{display:none!important}
/* Prevent the workspace chooser from stealing space from the brand on narrow phones. */
.header-workspace-switch{margin-left:12px!important;margin-right:auto!important;flex:0 1 auto!important}
.account-tools{margin-left:auto!important}
@media(max-width:700px){
  header{justify-content:flex-start!important;gap:8px!important}
  .header-left{flex:0 1 auto!important;min-width:132px!important;gap:8px!important}
  .brand{flex:0 0 auto!important;gap:7px!important}
  .brand .forgex-mark{width:32px;height:32px;min-width:32px}
  .project-title-wrap{display:none!important}
  .header-workspace-switch{margin-left:4px!important;margin-right:0!important;flex:1 1 auto!important;min-width:0!important}
  .workspace-switch-select{width:100%!important;min-width:0!important;max-width:220px!important;height:38px!important;font-size:11px!important;padding-left:12px!important}
  .account-tools{margin-left:auto!important;flex:0 0 auto!important}
  .account-chip{max-width:176px!important}
}
@media(max-width:430px){
  .header-left{min-width:122px!important}
  .brand b{font-size:11px!important}
  .brand small{font-size:6px!important}
  .workspace-switch-select{max-width:170px!important}
  .account-chip{max-width:150px!important}
}


/* 0.10.10ejeax — shared ForgeX mark hardening */
.forgex-mark{overflow:hidden;background:#fff!important}
.forgex-mark img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
