.length-model,.length-ruler{margin:1.3rem 0;max-width:500px}.length-model svg,.length-ruler svg{display:block;width:100%;height:auto;max-width:420px}.length-model svg text,.length-ruler svg text{font:14px system-ui,sans-serif;fill:#253d34}.length-ruler figcaption{font-weight:700;margin-bottom:.35rem}.ruler-base{fill:#fff5d9;stroke:#96896d}.ruler-marks{stroke:#4d554a;stroke-width:1}.ruler-marks text{stroke:none}.measured-strip{fill:#386b56;stroke:#203f32;stroke-width:1.3}.ruler-guides{fill:none;stroke:#934420;stroke-width:1.5;stroke-dasharray:4 3}.unselected-length{fill:#f6f8f2;stroke:#516f5c;stroke-width:1.3}.length-ruler details,.length-model details{font-size:.9rem;margin-top:.5rem}.length-ruler summary,.length-model summary{padding:.45rem;cursor:pointer}.length-rulers{display:flex;flex-wrap:wrap;gap:1rem}.length-rulers>.length-ruler{flex:1 1 290px;min-width:0}.metre-pieces{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:10px;margin:12px 0}.metre-piece{border:1px solid #476c58;border-radius:5px;background:#e8efe1;padding:15px 10px;text-align:center;font-weight:700}.extra-centimetres{max-width:320px;margin:1rem 0}.length-model figcaption{color:#496051;font-size:.9rem;line-height:1.6}.boundary-shape{fill:#e5edde;stroke:#305844;stroke-width:2.5}.length-grid{stroke:#ccd8ce;stroke-width:1}.length-route{fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.length-route.route-0{stroke:#225944}.length-route.route-1{stroke:#a34620;stroke-dasharray:8 6}.route-end{fill:#263c31;stroke:white;stroke-width:1}.route-legend{display:flex;gap:20px;flex-wrap:wrap}.route-swatch{display:inline-block;width:25px;margin-right:5px;border-top:3px solid #225944;vertical-align:middle}.route-swatch.route-1{border-color:#a34620;border-top-style:dashed}.length-measures{display:flex;gap:1rem;flex-wrap:wrap}.length-measures p{display:flex;flex-direction:column;gap:8px;padding:20px;min-width:100px;border:1px solid #c7d5c9;border-radius:8px;background:#f4f7ee}.length-measures span{font-size:1.2rem}.length-lab label{display:flex;flex-direction:column;gap:10px;font-weight:600;margin:16px 0}.length-lab input[type=range]{width:100%;max-width:400px;min-height:40px;accent-color:#355e47}.length-lab select{box-sizing:border-box;width:100%;max-width:480px;padding:12px;border:1px solid #c5d2c5;border-radius:8px;background:white;color:inherit;font:inherit}.length-actions{display:flex;gap:10px;flex-wrap:wrap;margin:1rem 0}.length-lab [role=status]{font-size:1.12rem;font-weight:650}.length-lab [hidden]{display:none}.length-lab .length-model,.length-lab .length-ruler{margin-inline:auto}@media(max-width:480px){.length-rulers>.length-ruler{flex-basis:100%}.length-actions .button{flex:1 1 130px}.length-lab select{font-size:14px}.length-measures{gap:.6rem}.length-measures p{padding:15px;min-width:80px}.metre-pieces{grid-template-columns:repeat(3,minmax(0,1fr))}.metre-piece{padding:12px 6px}}
