/* Respond to available content width, including a resized filter sidebar. */
body[data-workshop=mountain-layout] #model-pane,
body[data-workshop=contours] .workshop-layout>section{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,max(440px,calc(50% - 8px))),1fr));
 gap:16px;
 align-items:start;
 min-width:0;
}
body[data-workshop=mountain-layout] #model-pane>.drawing-panel,
body[data-workshop=mountain-layout] #mountain-live-view,
body[data-workshop=contours] .workshop-layout>section>.workshop-panel{
 min-width:0;box-sizing:border-box;margin:0;
}
body[data-workshop=mountain-layout] #generation-result,
body[data-workshop=contours] .workshop-layout>section>.workshop-panel:last-child{
 grid-column:1/-1;
}
body #mountain-live-view,
body #path-live-preview,
body #contour-live-preview{
 padding:18px;background:#263944;border:1px solid #42545e;border-radius:10px;
}
body #mountain-live-view h2,
body #path-live-preview h2,
body #contour-live-preview h2{margin:0 0 16px;font-size:19px}
body #mountain-live-view .live-toolbar,
body #path-live-preview .preview-toolbar,
body #contour-live-preview .preview-toolbar{
 display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px;
}
body #mountain-live-view canvas,
body #path-live-preview #path-canvas,
body #contour-live-preview #contour-live-canvas{
 display:block;width:100%;height:clamp(320px,55vh,620px);max-height:none;
 margin:0;background:#172630;border-radius:6px;touch-action:none;
}
body #mountain-live-view p,
body #path-live-preview p,
body #contour-live-preview p{font-size:13px;line-height:1.6}
body #path-live-preview button[aria-pressed="true"]{background:#ffc06a;color:#172630}
body #path-live-preview [hidden]{display:none!important}
body #path-model-label{display:block;font-size:12px;margin:8px 0}
body #path-model{display:block;max-width:100%;width:100%;margin-top:6px}
body #contour-live-preview button[aria-pressed="true"]{background:#ffc06a;color:#172630}
body #contour-live-preview [hidden]{display:none!important}
body #cliff-model-label{display:block;font-size:12px;margin:8px 0}
body #cliff-model{display:block;max-width:100%;width:100%;margin-top:6px}
