/* Real-world scale controls and previews. No global layout overrides. */
.scale-system{margin:0 0 28px;border:1px solid #d7ddd8;background:#fff;min-width:0}
.scale-system *{box-sizing:border-box}
.scale-main{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);min-width:0}
.scale-inputs{padding:22px;border-right:1px solid #e0e4df;min-width:0}
.scale-inputs h2{font-size:24px;margin:0 0 14px;font-weight:400}
.scale-system label{display:block;font-size:14px;line-height:1.45;margin:12px 0}
.scale-system input,.scale-system select{width:100%;min-width:0;max-width:100%;font:inherit;font-size:16px;padding:10px;border:1px solid #c7d0c8;background:#fff;min-height:44px;border-radius:0}
.scale-system button{min-height:44px;font-size:14px;line-height:1.35;padding:10px 12px;white-space:normal}
.scale-system button:focus-visible,.scale-system input:focus-visible,.scale-system select:focus-visible{outline:2px solid #55776b;outline-offset:3px}
.scale-system .scale-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.scale-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
.scale-presets button[aria-pressed=true],.scale-view-tabs button[aria-pressed=true]{background:#324e45;color:#fff;border-color:#324e45}
.scale-readout{background:#f0f4f0;padding:12px;margin:12px 0;line-height:1.55;font-size:14px;overflow-wrap:anywhere;min-height:64px}
.scale-note{font-size:13px;line-height:1.55;color:#59615a;margin:12px 0}
.scale-error{font-size:14px;line-height:1.5;color:#8b402f;min-height:21px}
.scale-screen{padding:22px;min-width:0;align-self:start}
.scale-view-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.scale-preview-shell{background:#f4f6f2;border:1px solid #dde3dc;position:relative;min-width:0}
#physical-scale-canvas{display:block;width:100%;height:auto;aspect-ratio:4/3}
.scale-screen figcaption{font-size:14px;line-height:1.5;margin:12px 0}
.scale-screen figure{margin:0}
.scale-room-settings{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:12px}
.scale-export-bar{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.scale-export-bar button{flex:1 1 160px}
.scale-export-options{margin-top:18px;border-top:1px solid #e0e4df;padding-top:14px}
.scale-export-options summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px}
.scale-export-options .scale-check{display:flex;align-items:center;gap:10px}
.scale-check input{width:22px;min-height:22px;height:22px;flex:none}
.scale-system progress{display:block;width:100%;height:10px;margin-top:12px;accent-color:#324e45}
#scale-system-empty{padding:50px 20px;text-align:center}
#scale-system-empty button{margin:8px}
.scale-collection-title{margin:28px 0 14px;font-size:22px;font-weight:400}
@media(max-width:1000px){.scale-main{grid-template-columns:minmax(240px,300px) minmax(0,1fr)}.scale-inputs,.scale-screen{padding:16px}}
@media(max-width:800px){.scale-main{display:flex;flex-direction:column}.scale-inputs{border:0;border-bottom:1px solid #e0e4df;width:100%}.scale-screen{width:100%}.scale-room-settings{grid-template-columns:1fr 1fr}.scale-room-settings>label:first-child{grid-column:1/-1}.scale-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.scale-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.scale-view-tabs button{padding:10px 5px}.scale-system input,.scale-system select{font-size:16px}.scale-screen figcaption{font-size:14px}}
@media(max-width:380px){.scale-inputs,.scale-screen{padding:12px}.scale-system .scale-pair{gap:8px}.scale-export-bar{flex-direction:column}.scale-export-bar button{flex:auto;width:100%}}
/* Version 14 technical dimensions: readable at phone and tablet widths. */
.designer-spec-panel{margin-top:20px;border-top:1px solid #d7ddd8;padding-top:12px;min-width:0}
.designer-spec-panel h3{font-size:18px;font-weight:500;margin:8px 0 14px}
.designer-spec-panel dl{margin:0;font-size:14px;line-height:1.5;display:grid;grid-template-columns:minmax(130px,.65fr) minmax(0,1fr);gap:0 14px}
.designer-spec-panel dt,.designer-spec-panel dd{padding:9px 0;margin:0;border-bottom:1px solid #e5e9e3;overflow-wrap:anywhere}
.designer-spec-panel dt{font-weight:600}
@media(max-width:800px){.designer-spec-panel dl{grid-template-columns:1fr}.designer-spec-panel dt{border:0;padding-bottom:0}.designer-spec-panel dd{padding-top:3px}}
.scale-system .scale-check{min-height:44px}

#physical-caption{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-width:0;text-align:left}.scale-caption-row{margin:6px 0;line-height:1.5}.scale-caption-row strong{font-weight:600}

/* The collection builder is a first-class workflow, separate from specifications. */
.collection-panel{min-width:0}.collection-shortcuts{display:flex;justify-content:flex-end;margin:0 0 14px}.collection-shortcuts button{min-height:44px;white-space:normal}.collection-panel .pb-layout{margin-top:0}.collection-panel .workspace-heading{margin-bottom:14px}.collection-panel .pb-add-actions button{min-height:44px}
@media(max-width:900px){.collection-panel .pb-layout{display:flex;flex-direction:column}.collection-panel .pb-work{order:0;width:100%}.collection-panel .pb-library{order:1;width:100%}.collection-shortcuts{justify-content:stretch}.collection-shortcuts button{width:100%;font-size:14px}.collection-panel .workspace-heading h1{font-size:28px}.collection-panel .workspace-heading>div{width:100%}}

@media(max-width:600px){.workflow-nav .workflow-tab{overflow-wrap:anywhere}}

@media(max-width:900px){.collection-panel .pb-add-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-panel .pb-add-actions #pbupload{grid-column:auto}.collection-panel .workspace-heading>div>p:not(.eyebrow){display:none}.collection-panel .workspace-heading .eyebrow{margin-bottom:4px}.collection-panel .workspace-heading h1{margin-bottom:8px}}

.sample-launch{white-space:normal;min-height:44px}.sample-notice{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:0 30px 22px;padding:16px 20px;background:#f2f5f3;border:1px solid #cfd8d2;min-width:0}.sample-notice strong{font-size:15px}.sample-notice p{font-size:14px;line-height:1.5;margin:5px 0 0;max-width:800px}.sample-notice button{flex-shrink:0;min-height:44px;white-space:normal}@media(max-width:900px){.sample-notice{margin:0 16px 18px;flex-direction:column;align-items:stretch;padding:14px}.sample-notice button{width:100%}.sample-launch{width:100%}}

body.sample-active canvas,body.sample-active .pb-choose img{-webkit-touch-callout:none}body.sample-active .pb-choose img{-webkit-user-drag:none}
