/* WORKSPACE1: compact native-feeling workspace without changing tool semantics. */
body.studio-shell-enabled{--studio-line:color-mix(in srgb,var(--text) 13%,transparent);--studio-chrome:color-mix(in srgb,var(--surface) 93%,transparent);margin:0;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;-webkit-text-size-adjust:100%;}
.studio-shell-enabled .studio-legacy-header,.studio-shell-enabled .studio-legacy-main,.studio-shell-enabled .studio-legacy-nav{display:none!important}
#studio-shell{position:fixed;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100vh;height:var(--studio-viewport-height,100dvh);background:var(--bg);color:var(--text);overflow:hidden;isolation:isolate;padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);}
#studio-shell *{box-sizing:border-box}
#studio-shell [hidden]{display:none!important}
.studio-topbar{height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 18px;border-bottom:1px solid var(--studio-line);background:var(--studio-chrome);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);z-index:12;}
.studio-identity{display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.studio-identity>div{display:grid;gap:0;white-space:nowrap}.studio-identity strong{font-size:15px;font-weight:650;letter-spacing:-.02em}.studio-identity small{font-size:10px;color:var(--muted);letter-spacing:.025em}
.studio-shell-enabled .studio-shell-logo{width:76px;max-height:32px;object-fit:contain;margin:0;opacity:1;flex:none}
.studio-toolbar{display:flex;align-items:center;gap:5px;min-width:0}
#studio-shell button.studio-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;min-width:40px;width:auto;margin:0;padding:8px 11px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text);box-shadow:none;outline-offset:2px;line-height:1.15;font-size:12px;font-weight:550;white-space:nowrap;cursor:pointer;touch-action:manipulation;}
#studio-shell button.studio-action:hover{background:var(--surface2);border-color:var(--studio-line)}
#studio-shell button.studio-action:active{transform:translateY(1px)}
#studio-shell button.studio-action:disabled{opacity:.32;cursor:default;transform:none}
#studio-shell button.studio-action:focus-visible,#studio-shell select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#studio-shell .studio-action svg{display:block;flex:none;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#studio-shell .studio-action.studio-icon-only>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#studio-shell button.studio-save{border-color:var(--studio-line);background:var(--surface2)}
#studio-shell button.studio-ask{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 24%,transparent);margin-left:5px}
#studio-shell .studio-theme{min-height:40px;min-width:40px;margin:0;padding:8px 10px;font-size:11px;border-radius:9px;border-color:transparent;background:transparent;color:var(--muted);font-weight:500;white-space:nowrap}
.studio-workarea{display:grid;grid-template-columns:68px minmax(0,1fr);min-height:0;overflow:hidden;position:relative}
.studio-shell-enabled.studio-panel-open .studio-workarea{grid-template-columns:68px minmax(0,1fr) clamp(310px,28vw,410px)}
.studio-rail{display:flex;flex-direction:column;gap:8px;align-items:center;padding:14px 6px;border-right:1px solid var(--studio-line);background:var(--studio-chrome);z-index:7}
#studio-shell button.studio-rail-button{display:flex;flex-direction:column;gap:5px;min-width:54px;min-height:55px;width:54px;padding:8px 3px;font-size:10px;color:var(--muted);border-radius:10px}
#studio-shell .studio-rail-button svg{width:20px;height:20px}
#studio-shell button.studio-rail-button.is-active{background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);border-color:color-mix(in srgb,var(--accent) 16%,transparent)}
.studio-viewport{min-width:0;min-height:0;overflow:hidden;position:relative;background:#101a24}
#studio-shell #fit-workspace,#studio-shell #fit-workspace.fit-model-only,#studio-shell #fit-workspace.fit-tools-only{display:flex!important;flex-direction:column;position:relative!important;inset:auto!important;min-height:0!important;max-height:none!important;height:100%!important;width:100%;gap:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:hidden!important}
#studio-shell #model-review.workspace{display:flex!important;flex-direction:column;flex:1;min-width:0;min-height:0;gap:0!important;margin:0!important;padding:0!important;max-width:none;overflow:hidden}
#studio-shell #model-review>.review-sidebar{display:none!important}
#studio-shell .viewer-card,#studio-shell .viewer-card.product-scan-active{display:flex!important;flex-direction:column;position:relative;flex:1;inset:auto;min-width:0;min-height:0;height:100%;width:100%;border:0;border-radius:0;margin:0;padding:0;box-shadow:none;overflow:hidden}
#studio-shell .viewer-card>.viewer-head,#studio-shell .viewer-card>.caption,#studio-shell .viewer-card>#mobile-view-dock{display:none!important}
#studio-shell .viewer-card>.canvas-wrap{display:block;position:relative!important;flex:1;inset:auto!important;width:100%;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;overflow:hidden;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 40%,#1c2b36 0,#101b25 70%)}
#studio-shell .viewer-card canvas#model{display:block;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;touch-action:none}
#studio-shell .viewer-card .canvas-wrap>#fallback{height:100%;padding:15px;min-height:0;background:radial-gradient(ellipse at center,#1a2b37,#101a24)}
#studio-shell #fallback img{height:calc(100% - 40px);width:100%;max-width:100%;object-fit:contain}
#studio-shell #fallback p{font-size:11px;line-height:1.45;margin:0 auto;color:#bbcad6;max-width:580px;padding:0 14px;text-align:center}
#studio-shell .viewer-card .view-help{font-size:10px;top:12px;left:14px;max-width:calc(100% - 120px);color:#a9becb;line-height:1.4}
#studio-shell .viewer-card .watermark{font-size:11px;left:15px;bottom:14px;color:#b0c1cb99}
#studio-shell .viewer-card .watermark span{font-size:8px}
#studio-shell .viewer-card .recovery{right:12px;bottom:12px;gap:4px}
#studio-shell .viewer-card .recovery button{min-width:36px;min-height:36px;padding:6px 9px;font-size:11px;border:1px solid #50606b55;background:#142431e6;backdrop-filter:blur(10px);border-radius:8px}
#studio-shell .viewer-card .axis-widget{transform:scale(.72);transform-origin:right top;right:10px;top:10px;bottom:auto}
#studio-shell.studio-camera-hidden .viewer-card .axis-widget,#studio-shell.studio-camera-hidden .viewer-card .recovery,#studio-shell.studio-camera-hidden #mobile-view-dock{display:none!important}
.studio-modelbar{height:49px;flex:none;display:flex;align-items:center;gap:10px;padding:4px 14px;background:var(--surface);border-bottom:1px solid var(--studio-line);z-index:3}
.studio-region-label{font-size:11px!important;font-weight:500!important;color:var(--muted);margin:0!important;white-space:nowrap}
#studio-shell #studio-region{width:clamp(130px,22vw,235px);min-width:0;min-height:36px;font-size:12px;font-weight:600;border:0;border-radius:7px;background:var(--surface2);color:var(--text);padding:7px 26px 7px 10px;margin:0}
.studio-model-actions{display:flex;gap:3px;margin-left:auto;flex:none}
.studio-inspector{display:flex;flex-direction:column;min-height:0;min-width:0;border-left:1px solid var(--studio-line);background:var(--surface);z-index:9;overflow:hidden}
.studio-inspector-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:49px;padding:4px 10px 4px 17px;border-bottom:1px solid var(--studio-line)}
.studio-inspector-head h2{font-size:14px;letter-spacing:-.015em;font-weight:650;margin:0}
.studio-panel-tabs{display:flex;gap:4px;overflow-x:auto;flex:none;padding:7px 10px;border-bottom:1px solid var(--studio-line);scrollbar-width:none}
.studio-panel-tabs::-webkit-scrollbar{display:none}
#studio-shell button.studio-panel-tab{font-size:11px;min-width:auto;min-height:32px;padding:6px 9px;color:var(--muted)}
#studio-shell button.studio-panel-tab.is-active{color:var(--text);background:var(--surface2)}
.studio-inspector-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--line) transparent;scroll-padding-top:14px}
.studio-pane{min-width:0;padding:16px 16px 28px;overflow-wrap:anywhere}
#studio-shell .studio-pane .card,#studio-shell .studio-pane .control-card,#studio-shell .studio-pane #design-workbench,#studio-shell .studio-pane #selection-export,#studio-shell .studio-pane .project-command{display:block;position:static!important;min-width:0;max-width:none;width:100%;margin:0 0 18px!important;padding:0 0 18px!important;border:0!important;border-bottom:1px solid var(--studio-line)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible}
#studio-shell .studio-pane #design-workbench>summary,#studio-shell .studio-pane .revision-heading>.revision-tag{display:none!important}
#studio-shell .studio-pane .workbench-body{padding:0!important;display:block!important}
#studio-shell .studio-pane :is(h2,h3){font-size:14px;line-height:1.3;letter-spacing:-.015em;margin:0 0 10px;font-weight:650}
#studio-shell .studio-pane h4{font-size:12px;line-height:1.35}
#studio-shell .studio-pane p,#studio-shell .studio-pane .small,#studio-shell .studio-pane small{font-size:11px;line-height:1.55;margin:6px 0 12px;color:var(--muted)}
#studio-shell .studio-pane .eyebrow{font-size:9px;letter-spacing:.1em;margin:0 0 7px;color:var(--muted)}
#studio-shell .studio-pane label{font-size:11px;font-weight:600;margin:12px 0 5px;color:var(--text)}
#studio-shell .studio-pane :is(input,select,textarea){font-size:13px;min-height:38px;width:100%;min-width:0;max-width:100%;padding:8px 10px;border:1px solid var(--studio-line);border-radius:8px;background:var(--bg);color:var(--text);box-shadow:none}
#studio-shell .studio-pane :is(input[type=checkbox],input[type=radio]){width:17px;height:17px;min-height:17px;flex:none;vertical-align:middle;margin:0 7px 0 0;accent-color:var(--accent)}
#studio-shell .studio-pane input[type=range]{min-height:30px;padding:0;border:0;background:transparent}
#studio-shell .studio-pane button,#studio-shell .studio-pane a.button,#studio-shell .studio-pane label.button{font-size:11px;min-height:36px;line-height:1.35;padding:8px 10px;border-radius:8px;font-weight:600;white-space:normal;box-shadow:none;max-width:100%;touch-action:manipulation}
#studio-shell .studio-pane button:not(.quiet):not(.secondary){background:var(--accent);color:var(--ink)}
#studio-shell .studio-pane .quiet{background:transparent;border-color:var(--studio-line);color:var(--text)}
#studio-shell .studio-pane .secondary{background:var(--surface2);border-color:var(--studio-line);color:var(--text)}
#studio-shell .studio-pane .full{margin-top:10px}
#studio-shell .studio-pane details{padding-top:10px;margin-top:13px;border-top:1px solid var(--studio-line)}
#studio-shell .studio-pane summary{font-size:12px;min-height:36px;padding:8px 0;line-height:1.5;color:var(--text)}
#studio-shell .studio-pane .button-row,#studio-shell .studio-pane .section-actions,#studio-shell .studio-pane .revision-actions,#studio-shell .studio-pane .export-actions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
#studio-shell .studio-pane .button-row>*,#studio-shell .studio-pane .section-actions>*,#studio-shell .studio-pane .export-actions>*{flex:1 1 115px;min-width:0}
#studio-shell .studio-pane .field-row,#studio-shell .studio-pane .frame-inputs,#studio-shell .studio-pane .revision-test-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#studio-shell .studio-pane .frame-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}
#studio-shell .studio-pane .workbench-tabs{position:sticky;top:-16px;background:var(--surface);z-index:6;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px;padding:8px 0;margin:10px 0}
#studio-shell .studio-pane .workbench-tabs button{font-size:11px;min-height:38px;padding:7px}
#studio-shell .studio-pane .workbench-tabs [aria-pressed=true]{outline:0;border-color:var(--accent);background:color-mix(in srgb,var(--accent) 11%,var(--surface));color:var(--accent)}
#studio-shell .studio-pane .fit-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#studio-shell .studio-pane .fit-card img{height:90px;object-fit:contain}
#studio-shell .studio-pane .fit-description{margin:0 0 12px;padding:8px 0}
#studio-shell .studio-pane .fit-description p{font-size:11px;margin:0}
#studio-shell .studio-pane .fit-description button{min-width:32px}
#studio-shell .studio-pane .fit-options,#studio-shell .studio-pane .export-fields,#studio-shell .studio-pane .package-grid,#studio-shell .studio-pane .download-list,#studio-shell .studio-pane .finish-visuals{display:grid;grid-template-columns:1fr;gap:10px}
#studio-shell .studio-pane .part-grid{padding:5px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#studio-shell .studio-pane .part-grid small{display:none}
#studio-shell .studio-pane .view-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;border:0;gap:6px}
#studio-shell .studio-pane .viewer-tools{padding:0;display:block;border:0}
#studio-shell .studio-pane .source-card,#studio-shell .studio-pane .page-heading{display:block;padding:0;margin:14px 0;max-width:none}
#studio-shell .studio-pane .page-heading h1{font-size:22px;margin:0 0 10px}
#studio-shell .studio-pane .page-heading .source-card{border:0}
#studio-shell .studio-pane .top-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px}
#studio-shell .studio-pane .top-actions>a,#studio-shell .studio-pane .fit-site-links a{padding:10px 0;min-height:40px;font-size:12px}
#studio-shell .studio-pane .fit-site-links{position:static!important;display:block!important;width:100%;padding:0;margin:0;border:0}
#studio-shell .studio-pane .fit-site-links>div{position:static!important;width:auto!important;min-width:0!important;max-width:none!important;border:0!important;box-shadow:none!important;display:flex;flex-direction:column;gap:8px;padding:10px 0}
#studio-shell .studio-pane .fit-site-links:not([open])>div{display:none!important}
#studio-shell .studio-pane .first-use-actions{display:grid;grid-template-columns:1fr;gap:8px}
#studio-shell .studio-pane .first-use-actions button{text-align:left;display:block}
#studio-shell .studio-pane .first-use-actions span{font-size:11px}
#studio-shell .studio-pane .notice{padding:8px 10px;margin:9px 0;border-radius:6px;font-size:11px}
#studio-shell .studio-pane .project-command .command-entry{display:flex;flex-wrap:wrap;gap:5px}
#studio-shell .studio-pane .project-command .command-entry input{flex:1 0 100%;margin:0}
#studio-shell .studio-pane .project-command .command-entry button{flex:1}
.studio-statusbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:27px;margin:0;max-width:none;padding:5px 17px calc(5px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--studio-line);font-size:9px;line-height:1.3;color:var(--muted)}
.studio-statusbar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-source-state{flex:1}.studio-source-state:before{content:'';display:inline-block;width:5px;height:5px;border-radius:100%;margin-right:6px;background:var(--accent);vertical-align:middle}.studio-source-state.is-error:before{background:#cf654f}.studio-save-state{max-width:55%}
.studio-shell-enabled .studio-guidance{right:calc(clamp(310px,28vw,410px) + 16px);bottom:44px;width:310px;max-height:38dvh;border:1px solid var(--studio-line);border-radius:13px;background:var(--studio-chrome);box-shadow:0 12px 38px #0003;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);font-size:12px;z-index:80}
.studio-shell-enabled:not(.studio-panel-open) .studio-guidance{right:16px}
.studio-shell-enabled .studio-guidance header{padding:5px 9px;min-height:42px;border-bottom-color:var(--studio-line)}
.studio-shell-enabled .studio-guidance header strong{font-size:12px;font-weight:600}
.studio-shell-enabled .studio-guidance .trainer-body,.studio-shell-enabled .studio-guidance .beer-design-tour-body{padding:10px 12px}
.studio-shell-enabled .studio-guidance :is(p,h3){font-size:12px;line-height:1.4}
.studio-shell-enabled .studio-guidance :is(button,a.button){font-size:11px;min-height:36px;padding:6px 9px;border-radius:7px}
.studio-shell-enabled .studio-guidance h2{font-size:15px}.studio-shell-enabled .studio-guidance video{max-height:140px}
.studio-shell-enabled dialog{max-width:min(650px,calc(100vw - 30px));max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);border:1px solid var(--studio-line);border-radius:15px;padding:20px;background:var(--surface);color:var(--text);box-shadow:0 20px 80px #0005;overflow:auto}
.studio-shell-enabled dialog::backdrop{background:#07131c70;backdrop-filter:blur(3px)}
.studio-shell-enabled .viewer-card.fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;z-index:1000;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)!important}
.studio-shell-enabled .viewer-card.fullscreen .studio-modelbar{display:flex!important}.studio-shell-enabled .viewer-card.fullscreen .viewer-head{display:flex!important;position:absolute;right:8px;top:calc(env(safe-area-inset-top) + 5px);z-index:30;padding:0;background:var(--surface)}
.studio-shell-enabled .viewer-card.fullscreen .viewer-head>div:first-child,.studio-shell-enabled .viewer-card.fullscreen .viewer-head-actions>*:not(#expand){display:none!important}
.studio-shell-enabled .viewer-card.fullscreen .studio-model-actions{padding-right:66px}
.studio-shell-enabled .viewer-card.fullscreen #expand{min-height:40px;font-size:12px;padding:8px 12px}
@media(min-width:1700px){.studio-shell-enabled.studio-panel-open .studio-workarea{grid-template-columns:76px minmax(0,1fr) 410px}.studio-rail{padding-top:20px;gap:12px}.studio-pane{padding:22px}.studio-inspector-head{padding-left:22px}.studio-topbar{height:66px}.studio-shell-enabled .studio-guidance{right:426px}}
@media(max-width:1179px) and (min-width:901px){.studio-shell-enabled.studio-panel-open .studio-workarea{grid-template-columns:62px minmax(0,1fr) 330px}.studio-workarea{grid-template-columns:62px minmax(0,1fr)}.studio-topbar{padding:6px 12px}.studio-shell-enabled .studio-guidance{right:346px}}
@media(max-width:900px){
  .studio-topbar{height:57px;padding:4px 10px;gap:6px}.studio-identity{gap:9px}.studio-shell-enabled .studio-shell-logo{width:52px;max-height:27px}.studio-identity strong{font-size:13px}.studio-identity small{font-size:9px}.studio-toolbar{gap:2px}
  #studio-shell button.studio-action{min-width:40px;min-height:40px;padding:8px}.studio-toolbar .studio-ask>span,.studio-toolbar .studio-save>span{display:none}.studio-toolbar .studio-theme{font-size:10px;padding:6px}.studio-toolbar>.studio-icon-only:nth-child(5){display:none}
  .studio-workarea,.studio-shell-enabled.studio-panel-open .studio-workarea{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 61px}
  .studio-rail{grid-column:1;grid-row:2;flex-direction:row;justify-content:space-around;gap:2px;padding:4px 5px;border-top:1px solid var(--studio-line);border-right:0;background:var(--studio-chrome);z-index:11}
  #studio-shell button.studio-rail-button{width:calc(100% / 7 - 3px);min-width:39px;max-width:75px;min-height:49px;padding:5px 2px;gap:3px;font-size:9px}
  #studio-shell .studio-rail-button svg{width:19px;height:19px}
  .studio-viewport{grid-row:1;grid-column:1}
  .studio-inspector{position:absolute;left:0;right:0;bottom:61px;top:auto;height:54%;max-height:calc(100% - 150px);border-left:0;border-top:1px solid var(--studio-line);border-radius:18px 18px 0 0;box-shadow:0 -6px 32px #0002}
  .studio-inspector:before{content:'';width:34px;height:4px;border-radius:4px;background:var(--line);position:absolute;left:calc(50% - 17px);top:6px;z-index:3}
  .studio-inspector-head{padding-top:9px;min-height:51px;padding-left:17px}
  .studio-panel-tabs{display:none}.studio-pane{padding:13px 16px 25px}
  #studio-shell .studio-pane .workbench-tabs{top:-13px;grid-template-columns:repeat(4,minmax(0,1fr))!important}
  #studio-shell .studio-pane :is(button,a.button,label.button,summary){min-height:44px}
  #studio-shell .studio-pane :is(input,select,textarea){font-size:16px;min-height:44px}
  #studio-shell .studio-pane .workbench-tabs button{font-size:10px;min-height:44px}
  #studio-shell .studio-pane .part-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .studio-modelbar{padding:3px 10px;gap:7px;height:48px}.studio-region-label{display:none}.studio-model-actions{gap:1px}
  #studio-shell #studio-region{font-size:13px;min-height:40px;max-width:58%;width:180px}
  .studio-statusbar{min-height:22px;font-size:8px;padding:4px 10px calc(4px + env(safe-area-inset-bottom));gap:8px}.studio-save-state{max-width:47%}
  .studio-shell-enabled .studio-guidance,.studio-shell-enabled:not(.studio-panel-open) .studio-guidance{right:8px;bottom:calc(100px + env(safe-area-inset-bottom));width:calc(100% - 16px);max-height:31dvh}
  .studio-shell-enabled.studio-panel-open .studio-guidance{right:8px;bottom:calc(100px + env(safe-area-inset-bottom));max-height:31dvh}
  .studio-shell-enabled .studio-guidance header button{min-height:44px;min-width:44px;padding:5px}.studio-shell-enabled .studio-guidance .trainer-actions button,.studio-shell-enabled .studio-guidance button{min-height:44px;font-size:12px}
  .studio-shell-enabled .studio-guidance .trainer-body,.studio-shell-enabled .studio-guidance .beer-design-tour-body{padding:8px 12px}.studio-shell-enabled .studio-guidance p{font-size:12px;margin:5px 0}
}
@media(max-width:440px){.studio-identity small{display:none}.studio-shell-enabled .studio-shell-logo{width:46px}.studio-identity{gap:7px}.studio-toolbar .studio-theme{display:none}.studio-topbar{padding:4px 8px}.studio-toolbar{gap:0}#studio-shell button.studio-action{min-width:38px;padding:7px}.studio-toolbar .studio-ask{margin-left:0}.studio-modelbar{height:47px}#studio-shell .studio-model-actions .studio-action{min-width:42px}.studio-inspector{height:56%}.studio-statusbar .studio-save-state{display:none}.studio-source-state{max-width:100%}}
@media(max-width:900px){.studio-keyboard-open .studio-inspector{height:100%;max-height:100%;border-radius:0}.studio-keyboard-open .studio-rail{display:none}.studio-keyboard-open .studio-workarea{grid-template-rows:minmax(0,1fr)}.studio-keyboard-open .studio-inspector{bottom:0}.studio-keyboard-open .studio-statusbar{display:none}}
@media(orientation:landscape) and (max-height:600px){
  .studio-topbar{height:47px;padding-top:2px;padding-bottom:2px}.studio-identity small{display:none}.studio-workarea,.studio-shell-enabled.studio-panel-open .studio-workarea{grid-template-columns:58px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .studio-rail{grid-row:1;grid-column:1;flex-direction:column;justify-content:flex-start;padding:5px 3px;gap:2px;overflow:auto;border-top:0;border-right:1px solid var(--studio-line)}
  #studio-shell button.studio-rail-button{flex:none;width:49px;min-height:44px;max-height:48px;padding:3px 2px;gap:1px;font-size:8px}
  #studio-shell .studio-rail-button svg{width:17px;height:17px}.studio-viewport{grid-row:1;grid-column:2}
  .studio-shell-enabled.studio-panel-open .studio-workarea{grid-template-columns:58px minmax(0,1fr) min(330px,43vw)}
  .studio-inspector{position:relative;grid-column:3;grid-row:1;inset:auto;height:100%;max-height:none;border-radius:0;border-top:0;border-left:1px solid var(--studio-line);box-shadow:none}
  .studio-inspector:before{display:none}.studio-inspector-head{min-height:43px;padding:0 6px 0 12px}.studio-pane{padding:10px 12px 20px}
  .studio-modelbar{height:44px}.studio-statusbar{min-height:19px;padding:2px 10px calc(2px + env(safe-area-inset-bottom))}.studio-shell-enabled .studio-guidance,.studio-shell-enabled:not(.studio-panel-open) .studio-guidance{right:10px;bottom:30px;width:310px;max-height:60dvh}
  .studio-shell-enabled.studio-panel-open .studio-guidance{right:calc(min(330px,43vw) + 10px);bottom:30px;width:min(300px,calc(57vw - 78px));max-height:60dvh}
  #studio-shell .studio-pane .workbench-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;top:-10px}
}
@media(pointer:coarse){#studio-shell button.studio-action,#studio-shell .studio-theme,#studio-shell #studio-region{min-height:44px;min-width:44px}#studio-shell .viewer-card .recovery button{min-height:44px;min-width:44px}#studio-shell .studio-pane button,#studio-shell .studio-pane a.button,#studio-shell .studio-pane summary{min-height:44px}.studio-shell-enabled dialog button{min-height:44px}}
@media(prefers-reduced-motion:reduce){#studio-shell *,body.studio-shell-enabled .studio-guidance{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{#studio-shell{position:static;height:auto;display:block;overflow:visible}.studio-rail,.studio-topbar,.studio-inspector,.studio-statusbar{display:none!important}.studio-workarea,.studio-viewport,#studio-shell #fit-workspace{display:block!important;height:auto!important}.studio-legacy-main{display:block!important}}

/* Keep the original cut controls available in Design without a second floating dock. */
#studio-shell .studio-pane #section-tools{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:8px 0!important;z-index:auto!important;box-shadow:none!important}
#studio-shell .studio-pane #section-tools[open]{max-height:none!important;overflow:visible!important}
/* SETTINGS1: preferences affect presentation, never source geometry. */
#workspace-settings fieldset{margin:16px 0;padding:12px;border:1px solid var(--studio-line);border-radius:10px;min-width:0}
#workspace-settings legend{font-weight:700;padding:0 5px}
#workspace-settings label{display:block;margin:9px 0}
#workspace-settings select,#workspace-settings input[type=range]{width:100%;max-width:100%}
#workspace-settings input[type=color]{width:100%;height:42px;padding:3px}
#workspace-settings .settings-actions,#workspace-settings .settings-tool-map{display:grid;gap:9px}
#workspace-settings .settings-tool-map p{font-size:12px;margin:0 0 12px}
#workspace-settings button{white-space:normal;text-align:left;min-height:44px}
html[data-workspace-text=large] #studio-shell .studio-pane{font-size:17px}
html[data-workspace-text=large] #studio-shell .studio-pane :is(p,label,input,select,textarea,button){font-size:15px}
html[data-workspace-motion=reduced] #studio-shell *,html[data-workspace-motion=reduced] #studio-shell *:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.studio-save-state.is-error{color:var(--danger,#b33a25);font-weight:700;white-space:normal;overflow-wrap:anywhere}
@media(max-width:440px){.studio-statusbar.has-history-error{flex-wrap:wrap}.studio-statusbar.has-history-error .studio-save-state{display:block;max-width:100%;width:100%;font-size:11px;white-space:normal}.studio-statusbar.has-history-error .studio-source-state{max-width:100%}}

@media(max-width:440px){#studio-shell .studio-toolbar .studio-focus{display:none}}
#studio-shell{grid-template-columns:minmax(0,1fr)}
#studio-shell>*,#workspace-settings{min-width:0}
@media(max-width:440px){.studio-shell-enabled .studio-shell-logo{width:36px}.studio-identity{gap:4px}.studio-identity>div{min-width:0;overflow:hidden}.studio-identity strong{overflow:hidden;text-overflow:ellipsis}}

/* GUIDE1: scroll the visible tools, keep guidance controls reachable. */
.studio-inspector-scroll{touch-action:pan-y;scroll-padding:76px 10px 20px}
.studio-shell-enabled .studio-guidance{overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.studio-shell-enabled .studio-guidance>header{position:sticky;top:0;z-index:3;background:var(--surface);flex:none}
.studio-shell-enabled .studio-guidance.is-target-visible{overflow:hidden;max-height:none}
.studio-shell-enabled .studio-guidance.is-target-visible>:not(header){display:none!important}
.studio-shell-enabled .studio-guidance.is-target-visible [data-tour=minimize]{display:none!important}
.studio-shell-enabled .studio-guidance .studio-guide-return{width:auto;min-width:110px;flex:none;font-size:12px;letter-spacing:0;padding:8px 10px}
.studio-shell-enabled .studio-guidance [data-guide-return][hidden]{display:none!important}
#studio-shell .studio-pane :is(.beer-design-tour-target,.beer-man-journey-target,.trainer-target,.tour-highlight){scroll-margin:80px 10px 18px;outline:3px solid var(--accent)!important;outline-offset:3px}
.studio-display-menu{position:absolute;right:10px;top:54px;z-index:31;width:min(310px,calc(100% - 20px));max-height:calc(100% - 70px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;background:var(--surface);color:var(--text);padding:15px;border:1px solid var(--studio-line);border-radius:12px;box-shadow:0 10px 35px #0004}
.studio-display-menu>strong{display:block;font-size:14px;margin-bottom:10px}.studio-display-menu label{display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;line-height:1.4}.studio-display-menu input{width:18px;height:18px;flex:none;accent-color:var(--accent)}
.studio-display-menu p{font-size:12px;line-height:1.45;color:var(--muted);margin:12px 0 0}.studio-display-menu>button{min-height:44px;margin-top:10px;width:100%;border-radius:8px}
.studio-wake-tools{position:fixed;top:calc(10px + env(safe-area-inset-top));left:calc(10px + env(safe-area-inset-left));display:flex;gap:7px;z-index:3001;max-width:calc(100% - 20px)}
.studio-wake-tools[hidden],.studio-wake-tools [hidden]{display:none!important}
.studio-wake-tools button.studio-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;width:auto;margin:0;padding:9px 12px;border-radius:9px;background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:0 4px 15px #0003;font:600 12px/1.2 system-ui,sans-serif;white-space:normal;touch-action:manipulation;cursor:pointer}
.studio-wake-tools .studio-action svg{display:block;flex:none;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.studio-wake-tools button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
body.studio-shell-enabled:not(.studio-tools-hidden) .studio-wake-tools{top:calc(120px + env(safe-area-inset-top));bottom:auto;left:80px}
body.studio-tools-hidden #studio-shell{grid-template-rows:minmax(0,1fr)}
body.studio-tools-hidden :is(.studio-topbar,.studio-rail,.studio-modelbar,.studio-statusbar,.studio-inspector){display:none!important}
body.studio-tools-hidden .studio-workarea{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
body.studio-tools-hidden .studio-viewport{grid-column:1!important;grid-row:1!important}
body.studio-tools-hidden .studio-display-menu{top:64px}
.studio-camera-joysticks{position:absolute;left:12px;bottom:48px;display:flex;align-items:end;gap:10px;z-index:18;padding:8px;border-radius:15px;background:color-mix(in srgb,var(--surface) 88%,transparent);border:1px solid var(--studio-line);color:var(--text);touch-action:auto;max-width:calc(100% - 24px)}
.studio-camera-joysticks>div{display:grid;justify-items:center;gap:5px}.studio-camera-joysticks>div>span{font-size:10px;line-height:1.3;font-weight:650}
#studio-shell .studio-camera-joysticks button[data-camera-pad]{display:grid;place-items:center;width:78px;height:78px;min-width:78px;padding:0;border-radius:50%;border:1px solid var(--line);background:radial-gradient(circle,var(--surface2) 30%,var(--surface) 31%);color:var(--text);touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.studio-camera-joysticks [data-camera-pad]>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-size:25px;background:var(--accent);color:var(--ink);transform:translate(var(--stick-x,0),var(--stick-y,0));pointer-events:none}
.studio-camera-joysticks button[data-camera-zoom]{min-height:44px;min-width:44px;padding:4px;font-size:24px;touch-action:none;border:1px solid var(--line);border-radius:9px;background:var(--surface2);color:var(--text)}
.studio-camera-joysticks button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:900px){body.studio-shell-enabled:not(.studio-tools-hidden) .studio-wake-tools{left:8px}.studio-camera-joysticks{bottom:55px;left:8px;gap:8px}.studio-display-menu{top:51px}.studio-shell-enabled .studio-guidance.is-target-visible{width:calc(100% - 16px);bottom:calc(90px + env(safe-area-inset-bottom))}}
@media(max-width:900px) and (min-height:601px){.studio-shell-enabled .studio-guidance:not(.is-target-visible),.studio-shell-enabled.studio-panel-open .studio-guidance:not(.is-target-visible){max-height:min(46dvh,calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}}
@media(orientation:landscape) and (max-height:600px){.studio-camera-joysticks{bottom:8px;gap:7px}#studio-shell .studio-camera-joysticks button[data-camera-pad]{width:62px;height:62px;min-width:62px}.studio-shell-enabled .studio-guidance.is-target-visible{width:min(310px,calc(57vw - 70px));bottom:28px}}
@media(orientation:landscape) and (max-height:600px){body.studio-shell-enabled:not(.studio-tools-hidden) .studio-wake-tools{top:calc(52px + env(safe-area-inset-top));left:65px}.studio-shell-enabled .studio-guidance>header{min-height:44px;padding-top:3px;padding-bottom:3px}}

.studio-maker-links{display:grid;gap:10px;padding:16px;border:1px solid var(--line,#cbd5de);border-radius:12px;margin:0 0 16px}.studio-maker-links h3,.studio-maker-links p{margin:0}.studio-maker-links p{font-size:13px;line-height:1.5}.studio-maker-links a,.studio-maker-links button{min-height:44px;display:flex;align-items:center;text-align:left}

/* TOUCH1: translucent controls leave the product visible; every target stays reachable. */
#studio-shell #model-review.workspace{width:100%!important;align-self:stretch!important;align-items:stretch!important}
body.studio-shell-enabled #go3d-buddy-launcher{display:none!important}
.studio-camera-joysticks{background:color-mix(in srgb,var(--surface) 56%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);bottom:12px}
.studio-camera-joysticks>small{font-size:10px;max-width:85px;align-self:center}
#studio-shell .studio-camera-joysticks button[data-camera-pad]{background:color-mix(in srgb,var(--surface) 65%,transparent)}
#studio-shell .studio-camera-wake{position:absolute;left:10px;bottom:12px;z-index:19;min-height:44px;border:1px solid #81929b88;background:#142b38b8;color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.studio-context-menu{position:absolute;z-index:45;width:240px;max-width:calc(100% - 16px);max-height:calc(100% - 16px);overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:8px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 30px #0006;overscroll-behavior:contain;touch-action:pan-y}
#studio-shell .studio-context-menu button{min-width:0;min-height:44px;white-space:normal;text-align:left;justify-content:flex-start;font-size:13px}
@media(max-width:440px){
 .studio-topbar{height:52px}.studio-identity strong{max-width:76px}.studio-toolbar{flex:none}
 #studio-shell .studio-toolbar button.studio-action{min-width:44px;min-height:44px;padding:9px}
 .studio-modelbar{padding:2px 7px;gap:4px}#studio-shell #studio-region{width:auto;flex:1;min-width:80px;max-width:none;font-size:12px}
 #studio-shell .studio-model-actions .studio-action{min-height:44px;padding:7px;font-size:12px}
 .studio-camera-joysticks{left:8px;bottom:8px;gap:7px;padding:6px}
 #studio-shell .studio-camera-joysticks button[data-camera-pad]{width:62px;height:62px;min-width:62px}
 .studio-camera-joysticks [data-camera-pad]>span{width:30px;height:30px;font-size:21px}
}
@media(orientation:landscape) and (max-height:600px){
 .studio-topbar{height:44px}.studio-modelbar{height:44px}.studio-statusbar{display:none}
 .studio-camera-joysticks{left:8px;bottom:8px;padding:5px}
 #studio-shell .studio-camera-wake{bottom:8px}
 #studio-shell .studio-pane .workbench-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:4px 0}
 #studio-shell .studio-pane .workbench-tabs button{min-height:44px;padding:6px 3px;font-size:10px}
 .studio-inspector-scroll{scroll-padding-top:102px}
}
