/* A quarter more travel produces four fifths of the old progress per pixel. */
@media(prefers-reduced-motion:no-preference){
.structure {--old-section:max(215svh,1200px);--pin-size:max(100svh,480px);height:calc(var(--old-section) + (var(--old-section) - var(--pin-size)) * .25);}
}
.model-controls .spread-row {flex-basis:100%;min-height:35px;gap:15px;}
#spread {height:28px;min-width:56px;}
#auto-spread {border:1px solid #798670;border-radius:40px;background:#dfe6be;color:#262d23;padding:6px 14px;min-height:36px;font-size:13px;font-weight:650;}
#auto-spread[aria-pressed=true] {background:#f7dd9b;}
.model-controls {justify-content:flex-start;}
#reset-view {margin-left:auto;}
@media(max-width:680px){
 .part-filters {display:flex; flex-wrap:nowrap; padding:3px 5px; gap:0;}
 .part-filters button {flex:1 1 auto; min-width:0; min-height:44px; padding:4px; font-size:clamp(12px,3.15vw,14px);}
 .model-controls {display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:2px 6px; padding:5px 8px;}
 .model-controls .spread-row {grid-column:1/-1; min-height:40px; gap:8px;}
 #spread {height:40px;}
 #auto-spread,#xray,#reset-view {min-height:44px; font-size:clamp(12px,3vw,14px);}
 #auto-spread,#xray {padding:4px 8px;}
 #xray {justify-self:start; justify-content:center;}
 #xray i {flex:none;}
 .zoom-tools button {min-width:44px; min-height:44px;}
 .zoom-tools output {font-size:12px;}
}
@media(max-width:680px) and (prefers-reduced-motion:no-preference){.structure{--old-section:max(210svh,1150px);--pin-size:max(100svh,455px);}}
@media(max-height:580px) and (min-width:681px) and (prefers-reduced-motion:no-preference){.structure{--pin-size:max(100svh,340px);}}
#parts:focus-visible {outline-offset:-4px;}
@media(max-width:370px) {
 .build-layout {width:calc(100% - 24px); gap:8px; padding-block:12px;}
 .build-copy h2 {font-size:32px;}
 .part-filters button {padding-inline:2px;}
 #auto-spread,#xray {padding-inline:6px;}
 #xray {gap:4px;}
}
@media(min-width:480px) and (max-height:480px) and (orientation:landscape) and (prefers-reduced-motion:no-preference) {
 .structure {--pin-size:100svh;}
 .build-pin {display:block; min-height:0; height:100svh;}
 .build-layout {width:min(94%,1300px); height:100%; padding-block:8px; display:grid; grid-template-columns:minmax(0,.48fr) minmax(0,1fr); grid-template-rows:minmax(0,1fr); gap:16px; align-items:stretch;}
 .build-copy {align-self:center;}
 .build-copy h2 {font-size:clamp(27px,4.2vw,42px); margin:8px 0;}
 .build-copy .section-intro {font-size:14px; line-height:1.4;}
 .build-copy .guide {margin-top:4px;}
 .build-board {display:grid; grid-template-rows:auto minmax(0,1fr) auto;}
 .build-board .canvas-area {height:100%; min-height:0;}
 .model-controls {padding:4px 8px; gap:2px 6px;}
}
#colors .colorshow-photo {position:relative;display:block;overflow:hidden;}
#colors .colorshow-photo img {position:absolute;inset:0;height:100%;width:100%;max-height:100%;max-width:100%;object-fit:contain;pointer-events:none;}
#colors .colorshow-photo [hidden] {display:none;}
.palette-live {display:inline-flex;align-items:center;min-height:42px;color:#51433e;font-size:.9rem;text-underline-offset:4px;}
@media(max-width:760px){.palette-live{grid-row:7;justify-self:center;}}
