/* Studio trial: preserve controls and workflows; screen presentation only. */
@media screen {
 body{font-optical-sizing:auto;-webkit-font-smoothing:antialiased}
 body h1,body h2,body h3{font-family:var(--ui-font);font-weight:600;letter-spacing:-.035em}
 body .logo-text{font-weight:600;letter-spacing:-.045em;font-size:27px}
 body .brand-studio{letter-spacing:.06em;font-size:12px}
 body label{font-weight:500}
 body input,body output,body .cost-tile strong{font-variant-numeric:tabular-nums}
 body .panel,body .sheet{padding:24px}
 body .block-build-preview{padding:26px;background:var(--ui-gradient-surface);border-radius:4px;box-shadow:0 16px 48px #001b1110}
 body #blockBuildView{height:clamp(340px,51vh,600px)}
 body .block-build-heading h3{font-size:22px;font-weight:550}
 body .block-build-heading small{font-weight:550;letter-spacing:.1em}
 body #blockSteps button{min-height:46px;font-weight:500;line-height:1.5}
 body .block-stage-bar{background:var(--ui-gradient-surface);box-shadow:0 8px 32px #001c1112}
 body button{transition:color .18s ease,background-color .2s ease,border-color .2s ease,box-shadow .22s ease!important}
 body button:active{transform:none!important}
 :root[data-theme=light] body::before, :root[data-theme=dark] body::before{content:'';position:fixed;inset:-10%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 15% 30%,#39896619,transparent 55%),radial-gradient(ellipse at 80% 70%,#ecb34c10,transparent 50%)}
 body{isolation:isolate}
}
@media screen and (prefers-reduced-motion:no-preference){
 body::before{animation:studio-atmosphere 23s ease-in-out infinite alternate!important;will-change:transform}
}
@media screen and (max-width:650px){body .panel,body .sheet,body .block-build-preview{padding:16px}body #blockBuildView{height:330px}body .logo-text{font-size:23px}}
@media (prefers-reduced-motion:reduce){body::before{animation:none!important;will-change:auto}body button{transition:none!important}}
@media screen {
 .workspace-header{padding-top:17px;padding-bottom:17px}
 .project-toolbar{margin-top:16px;padding-top:12px;padding-bottom:12px}
 .block-building:not(.block-document-capture) .sheet-top{display:none}
 .block-building .studio-guide-context p{display:none}
}
/* The workspace layout owns structure; technical document styles remain separate. */
@media screen {
 .workspace-header{padding:14px max(24px,calc((100vw - 1552px)/2));min-height:44px}
 .workspace-header .brand-subtitle,.workspace-header .header-context{display:none}
 .liquid-tabs{margin-top:0!important;padding:5px!important;min-height:52px;border-top:0!important}
 .type-tabs .type-tab{padding:12px 9px!important;font-size:12px;font-weight:500;min-width:0}
 .project-toolbar{grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:4px 14px;margin:12px auto 0;padding:12px 16px;background:transparent;border:0;box-shadow:none}
 .project-identity{display:flex;align-items:center;gap:14px;max-width:none;min-width:0}
 .project-identity>label{display:none}
 #projectName{max-width:420px;margin:0;font-size:18px;font-weight:550;min-height:38px;padding:4px 0;border:0!important;box-shadow:none!important;background:transparent!important}
 .project-status{white-space:nowrap;font-size:10px}
 .project-toolbar-actions{gap:8px;align-items:center}
 .project-toolbar-actions .action{padding:9px 12px;font-size:11px;min-height:36px;margin:0}
 .project-local-note{margin:0!important;grid-column:1/3;font-size:10px}
 .project-message{grid-column:1/-1}
 .studio-guide{margin:0;padding:0;max-width:none;grid-column:3;grid-row:1;position:relative}
 .studio-guide-context{border:0;background:none;padding:0}
 .studio-guide-context>div{display:none}
 #studioGuideToggle{margin:0;padding:9px 12px;font-size:11px;min-height:36px}
 .studio-guide>details{position:absolute;right:0;top:100%;width:min(1000px,88vw);z-index:45;box-shadow:var(--ui-shadow);background:var(--ui-surface)}
 .block-stage-bar{margin-top:8px;padding:7px;border:0;border-bottom:1px solid var(--ui-border);box-shadow:none!important;background:transparent!important}
 #blockSteps button{border:0;background:transparent;text-align:center;position:relative;color:var(--ui-muted);box-shadow:none}
 #blockSteps button[aria-current=step]{border:0;box-shadow:inset 0 -2px var(--ui-accent);background:var(--ui-tint);color:var(--ui-text)}
 .app{padding-top:16px;gap:20px;grid-template-columns:310px minmax(0,1fr)}
 .block-building .panel{background:var(--ui-gradient-card)!important;border-color:transparent!important;padding:20px}
 .block-building .sheet{padding:0;border:0!important;box-shadow:none!important;background:transparent!important}
 .block-building .block-build-preview{padding:24px;border:1px solid var(--ui-border);background:var(--ui-gradient-surface);box-shadow:0 18px 60px #001c1114;border-radius:4px}
 .block-building #blockBuildView{height:clamp(380px,56vh,650px)}
 .block-building .block-build-note{display:none}
 .block-building .block-build-heading small{font-size:9px;color:var(--ui-muted)}
 .block-building .block-build-heading h3{font-size:22px;font-weight:550}
 .block-guided .block-workflow>h3{font-size:16px;margin:8px 0}
 .block-quick-actions button{border:0!important;background:transparent!important;box-shadow:none!important;padding:6px 0!important;font-size:11px}
 .studio-live-summary{display:flex;align-items:center;gap:30px;padding:16px 0;border-top:1px solid var(--ui-border)}
 .studio-live-summary div{display:grid;gap:5px}.studio-live-summary small{color:var(--ui-muted);font-size:10px}
 .studio-live-summary strong{font-size:19px;font-weight:550;color:var(--ui-text);font-variant-numeric:tabular-nums}
 .studio-live-summary>span{font-size:10px;color:var(--ui-muted);margin-left:auto}
 .block-build-footer{border:0;padding-top:6px}.block-build-footer p{font-size:11px!important;color:var(--ui-muted)!important}
 .milling-studio{margin-top:14px}.milling-canvas-card{border-radius:4px}
}
@media screen and (max-width:1000px){.app{grid-template-columns:minmax(0,1fr)}.project-toolbar{grid-template-columns:minmax(0,1fr) auto}.project-toolbar-actions{grid-column:1/-1;grid-row:2;flex-wrap:wrap;margin-top:4px}.project-local-note{grid-row:3;grid-column:1/-1}.studio-guide{grid-column:2}.project-status{display:none}.block-building #blockBuildView{height:410px}}
@media screen and (max-width:650px){.project-toolbar{padding:8px 12px;margin-top:8px;gap:5px}#projectName{font-size:16px;max-width:100%}.workspace-header{padding:12px}.type-tabs .type-tab{font-size:11px!important}.project-toolbar-actions .action{padding:8px 10px;min-height:34px}.block-building .block-build-preview{padding:16px}.block-building #blockBuildView{height:330px}.studio-live-summary{gap:18px;flex-wrap:wrap}.studio-live-summary>span{margin:0}.studio-live-summary strong{font-size:17px}.block-build-footer{gap:12px}.studio-guide-options{grid-template-columns:1fr}}
@media print{.studio-live-summary{display:none!important}}
/* Fit the first preview to the viewport; no clipping of the SVG viewBox. */
@media screen {
 body .block-build-preview #blockBuildView{height:var(--preview-height,40vh);min-height:0}
 body.staged-building:not(.block-document-capture) .sheet-top{display:none}
 #creatorCanvas,#transportVehiclePreview{height:var(--first-preview-height,45vh);min-height:0;max-height:none}
 body.expert-active .sheet-top{display:none}
 body.expert-active #expertSection{padding:0;margin:0}
 body.expert-active .expert-head{gap:10px;margin-bottom:8px}
 body.expert-active .expert-head p{display:none}
 body.expert-active .expert-head h3{font-size:11px}
 body.expert-active #expertChooser{padding:7px;margin:0 0 8px}
 body.expert-active #expertChooser>p{display:none}
 body.expert-active .expert-choice-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;max-width:none}
 body.expert-active .expert-choice-grid button{font-size:11px;padding:8px 4px;margin:0;font-weight:500}
 body.expert-active .expert-choice-grid span{display:none}
 body.expert-active #expertStage{height:var(--expert-height,50vh);min-height:160px}
 body.expert-active #expertView{width:100%;height:100%;min-height:0;max-height:none}
 body.expert-active .expert-footer{font-size:10px;line-height:1.3;gap:5px;padding-top:6px}
 body.expert-active .expert-footer>span:last-child{display:none}
 body.expert-active .expert-zoom{padding:6px;gap:5px;right:7px}
 body.expert-active .expert-zoom label{display:none}
 body.expert-active .expert-zoom input{height:90px}
 .milling-heading{margin-bottom:12px;gap:10px}.milling-heading h2{font-size:24px;margin:4px 0}.milling-heading p{font-size:11px}
 .milling-grid-scroll{max-height:calc(100dvh - 410px);min-height:120px}
}
@media screen and (min-width:1001px){
 .app>.panel{max-height:var(--workspace-height,80vh);overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;box-sizing:border-box}
 body.expert-active .sheet{padding:12px}
}
@media screen and (max-width:1000px){
 body:is(.block-building,.staged-building,.expert-active,.creator-active:not(.product-active)) .app>.sheet{order:-1}
 body.expert-active .sheet{padding:10px}
 body.expert-active .expert-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body .block-build-preview{padding:12px!important}
 .block-build-heading h3{font-size:17px!important}.block-build-heading small{font-size:8px!important}
 .studio-live-summary{padding:8px 0;gap:12px}.studio-live-summary strong{font-size:15px}.studio-live-summary>span{display:none}
 .block-build-footer{padding-top:4px}.block-build-footer p{font-size:10px!important}
 .block-build-footer button{padding:9px 12px!important}
}
@media screen and (max-width:1000px){.milling-workspace{grid-row:1}.transport-stage-layout>.transport-canvas{order:-1}}
@media screen and (max-height:650px){.block-build-footer>p{display:none}.block-build-heading small{display:none}.studio-live-summary{padding:6px 0}.block-build-heading h3{margin-top:0!important;font-size:17px!important}}
@media screen and (max-width:650px){
 #blockSteps,#productSteps{display:flex;gap:3px}
 #blockSteps button,#productSteps button{flex:1;min-width:0;font-size:9px!important;line-height:1.25;min-height:42px;padding:5px 3px;overflow-wrap:anywhere}
}
@media screen {#transportVehiclePreview>svg{height:100%;max-height:100%}.milling-grid-scroll{max-height:var(--grid-height,40vh);min-height:80px}}
@media screen {
 body.expert-active .sheet{display:flex;flex-direction:column}
 body.expert-active #expertSection{order:-1;display:flex;flex-direction:column}
 body.expert-active .expert-head{order:0}
 body.expert-active #expertChooser{order:1}
 body.expert-active #expertStage{order:2;flex-shrink:0}
 body.expert-active #expertFooter{order:3}
 body.expert-active #blockExpertTools{order:4}
 body.expert-active #productionToolbar{margin-top:12px}
}
/* Screen atmosphere: green grain, local travelling light, never on documents. */
@media screen {
 .studio-grain-atmosphere{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;background:transparent;overflow:hidden;contain:strict}
 .studio-grain-lines{stroke:#071a11;opacity:.38}.studio-grain-light{stroke:#8ea991;opacity:.3}
 :root[data-theme=light] .studio-grain-lines{stroke:#405e48;opacity:.12}
 :root[data-theme=light] .studio-grain-light{stroke:#729361;opacity:.3}
 .studio-grain-atmosphere[data-paused=true] .studio-grain-light{display:none}
}
@media print{.studio-grain-atmosphere{display:none!important}}
@media(prefers-reduced-motion:reduce){.studio-grain-light{display:none!important}}
/* Shared amber atmosphere: no extra DOM, hit targets or model redraws. */
@media screen {
 body :is(.action-primary,#blockNext,#productNext,#transportNext,#blockBuildNext,.creator-tabs button[aria-selected=true]){position:relative;isolation:isolate}
 body .liquid-indicator{isolation:isolate}
 body :is(.action-primary,#blockNext,#productNext,#transportNext,#blockBuildNext,.creator-tabs button[aria-selected=true],.liquid-indicator)::before{
  content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;z-index:-1;
  background-image:radial-gradient(ellipse at 25% 40%,#fff0be50,transparent 60%),var(--ui-amber-grain);
  background-size:220% 180%,290px 76px;background-position:0% 35%,0 0;opacity:.45;
 }
}
@media screen and (prefers-reduced-motion:no-preference){
 body :is(.action-primary,#blockNext,#productNext,#transportNext,#blockBuildNext,.creator-tabs button[aria-selected=true],.liquid-indicator)::before{animation:amber-grain-drift 19s cubic-bezier(.4,0,.6,1) infinite alternate}
 body[data-atmosphere-paused=true]::before,body[data-atmosphere-paused=true] :is(.action-primary,#blockNext,#productNext,#transportNext,#blockBuildNext,.creator-tabs button[aria-selected=true],.liquid-indicator)::before{animation-play-state:paused!important}
}
@keyframes amber-grain-drift{0%{background-position:0% 35%,0 0;background-size:220% 180%,290px 76px}50%{background-position:65% 70%,18px 3px;background-size:220% 180%,305px 80px}100%{background-position:100% 20%,36px -3px;background-size:220% 180%,290px 76px}}
@media print{body :is(.action-primary,#blockNext,#productNext,#transportNext,#blockBuildNext,.creator-tabs button[aria-selected=true],.liquid-indicator)::before{display:none!important}}
