/* Mixing Recipes contained workspace. Other Mixing modes intentionally retain their existing layout. */
body.mixing-recipes-active{height:100dvh;overflow:hidden}
body.mixing-recipes-active #mixing{height:calc(100dvh - var(--stage1-header-h) - var(--stage1-nav-h));min-height:0;padding:8px 0 0;overflow:hidden}
body.mixing-recipes-active #mixing>.cw-shell{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px}
body.mixing-recipes-active #mixing .cw-head.stage1-module-header{padding:8px 12px}
body.mixing-recipes-active #mixing .cw-tabs[data-nav-level="module"]{min-height:34px}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"].active{display:block;min-height:0;height:100%;overflow:hidden}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid{height:100%;min-height:0;overflow:hidden;grid-template-columns:minmax(285px,.72fr) minmax(0,1.65fr);gap:10px}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid>aside,body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>[class]>.panel,body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid>main{min-width:0;min-height:0}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid>aside{height:100%;max-height:100%;display:flex;flex-direction:column;overflow:hidden;padding:var(--ui-panel-padding,8px)}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid>aside>h2{margin:0 0 8px}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-toolbar{flex:0 0 auto;margin-bottom:8px;display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.7fr);gap:7px}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-toolbar>*{width:100%;min-width:0}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-list{flex:1 1 auto;height:auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;align-content:start;gap:6px;padding-right:3px}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-card{min-width:0;padding:8px 9px;display:grid;gap:2px;align-content:start}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-card .cw-output{display:block;min-width:0;overflow-wrap:anywhere;line-height:1.2}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-card small{min-width:0;overflow-wrap:anywhere;line-height:1.25}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid>main{height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:var(--ui-panel-padding,8px)}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>[class]>main>h2,body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid>main>h2{margin-top:2px}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-flow{--cw-flow-columns:1;position:relative;display:grid;grid-template-columns:repeat(var(--cw-flow-columns),minmax(0,1fr));align-items:stretch;gap:14px;width:100%;max-width:100%;min-width:0;padding:8px 0;overflow:hidden}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-flow-col{position:relative;z-index:1;display:grid;align-content:center;gap:8px;min-width:0;width:auto}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-node{position:relative;z-index:1;min-width:0;width:100%;box-sizing:border-box;padding:7px;background:#08150f;overflow-wrap:anywhere}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-node>b{display:block;line-height:1.2;overflow-wrap:anywhere}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-node small{line-height:1.25;overflow-wrap:anywhere}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-node select{width:100%;max-width:100%;min-width:0;margin-top:3px;font-size:.72rem}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-node-kind{display:block;margin-bottom:3px;font-size:.62rem;line-height:1;letter-spacing:.08em;font-weight:800;color:var(--muted);text-transform:uppercase}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-node.cw-node-input{border-style:solid;border-color:#37664f}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-node.cw-node-intermediate{border-color:#4d8065;background:#0a1a12}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-node.cw-node-output{border-width:2px;border-color:var(--line,#4b9b72);background:#0d2117}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-node.recipe{border-style:dashed;background:#06110c}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-flow-links{position:absolute;inset:0;z-index:0;width:100%;height:100%;pointer-events:none!important;overflow:visible;color:var(--line,#4b9b72)}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-flow-links *{pointer-events:none!important}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-flow-links path{fill:none;stroke:currentColor;stroke-width:1.35;vector-effect:non-scaling-stroke;opacity:.8}
body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-flow-links marker path{fill:currentColor;stroke:none;opacity:1}

/* Compact canonical production tree used by recipe and calculator flows. */
#mixing .cw-tree{gap:8px}
#mixing .cw-tree-root{min-width:0}
#mixing .cw-tree-card{max-width:none;padding:5px 7px;min-height:30px;box-sizing:border-box}
#mixing .cw-tree-card>.cw-tree-legacy{display:none!important}
#mixing .cw-tree-line{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25;font-size:.9rem}
#mixing .cw-tree-role{display:none!important}
#mixing .cw-tree-children{display:grid;gap:5px;margin:5px 0 0 14px;padding-left:0;border-left:0!important}
#mixing .cw-tree-child{position:relative;padding-left:17px;min-width:0}
#mixing .cw-tree-child:before{content:"";position:absolute;left:0;top:-5px;bottom:-5px;border-left:1px solid var(--line,#4b5663)}
#mixing .cw-tree-child:last-child:before{bottom:auto;height:20px}
#mixing .cw-tree-child:after{content:"";position:absolute;left:0;top:19px;width:13px;border-top:1px solid var(--line,#4b5663)}
#mixing .cw-tree-child>.cw-tree-node>.cw-tree-card:before{display:none!important}
#mixing .cw-tree-root+.cw-tree-root{margin-top:9px}

@media(max-width:1050px){body.mixing-recipes-active{height:auto;overflow:auto}body.mixing-recipes-active #mixing{height:auto;overflow:visible}body.mixing-recipes-active #mixing>.cw-shell{height:auto;display:grid}body.mixing-recipes-active #mixing [data-cw-panel="recipes"].active{height:auto;overflow:visible}body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid{height:auto;overflow:visible;grid-template-columns:1fr}body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid>aside{height:auto;max-height:42vh}body.mixing-recipes-active #mixing [data-cw-panel="recipes"] .cw-list{height:auto;flex:1 1 auto}body.mixing-recipes-active #mixing [data-cw-panel="recipes"]>.cw-grid>main{height:auto;max-height:none;overflow:visible}}
@media(max-width:850px){#mixing .cw-tree-line{font-size:.84rem}#mixing .cw-tree-children{margin-left:8px}#mixing .cw-tree-child{padding-left:15px}}
