.modular svg { touch-action: none; }
.modular g.module > rect { cursor: move; }
.modular g.module > g rect { pointer-events: all; }
.modular g.module.selected > rect {
    stroke: #fc8c5f;
    stroke-width: 1em;
    stroke-dasharray: 3em 3em;
}
.modular g.module.selected > g rect:nth-of-type(n+5) {
    stroke: #fc8c5f;
    stroke-width: 10em;
    stroke-opacity: 1;
}

/* A full-height native hit target, with a thin visual track. */
.modular-size input.zoomRange[type="range"] {
    height:40px; margin:0; padding:0; border:0; background:none!important;
    appearance:none; -webkit-appearance:none; cursor:ew-resize; touch-action:none;
}
.modular-size input.zoomRange[type="range"]::-webkit-slider-runnable-track {
    height:6px; border:0; border-radius:3px;
    background:linear-gradient(to right,#ff8600 0%,#ff8600 var(--range-progress,0%),#c4c4c4 var(--range-progress,0%),#c4c4c4 100%);
}
.modular-size input.zoomRange[type="range"]::-webkit-slider-thumb {
    appearance:none; -webkit-appearance:none; width:20px; height:28px;
    margin-top:-11px; border:0; border-radius:8px; background:#fa7846; cursor:ew-resize;
}
.modular-size input.zoomRange[type="range"]::-moz-range-track {height:6px;border:0;border-radius:3px;background:#c4c4c4;}
.modular-size input.zoomRange[type="range"]::-moz-range-progress {height:6px;border-radius:3px;background:#ff8600;}
.modular-size input.zoomRange[type="range"]::-moz-range-thumb {width:20px;height:28px;margin:0;border:0;border-radius:8px;background:#fa7846;cursor:ew-resize;}
.modular-size input.zoomRange[type="range"]:focus-visible {outline:2px solid #fa7846;outline-offset:2px;border-radius:5px;}

/* Keep the price below its caption at every amount and viewport width. */
#totalSum.formalization-price {
    display:flex; flex-direction:column; align-items:flex-start; gap:8px;
    margin-top:0; min-height:100px; line-height:1.3;
}
#totalSum.formalization-price > span {
    display:block; flex:none; white-space:nowrap; line-height:60px;
    font-size:48px; font-variant-numeric:tabular-nums;
}
#totalSum.formalization-price > span span {font-size:inherit;line-height:inherit;}
@media(max-width:600px) {
    #totalSum.formalization-price {min-height:96px;gap:8px;}
    #totalSum.formalization-price > span {font-size:40px;line-height:52px;}
}
