.flat-shapes-model{margin:20px 0;padding:18px;background:#f1f5ed;border:1px solid #d1ddcb;border-radius:14px}
.shape-cards{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.shape-card{flex:0 1 150px;min-width:0;position:relative;background:#fffdf7;border:1px solid #b3c6b4;border-radius:10px;padding:10px}
.shape-card svg{display:block;width:100%;height:auto;fill:none;stroke:#215849;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.shape-label{display:block;text-align:center;font-weight:700;color:#284a3d;font-size:.95rem;min-height:1.2em}
.shape-pattern{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.shape-pattern .shape-card{padding:5px;min-width:0}
.shape-gap{display:grid;place-items:center;aspect-ratio:1;font-size:2rem;color:#53674d}
.flat-shapes-model figcaption{margin-top:12px;text-align:center;font-size:.8rem;color:#465e50}
.shape-description{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.shape-lab-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}
.shape-lab-controls label{display:flex;flex-direction:column;gap:8px}
.shape-lab select{font:inherit;padding:10px;max-width:100%;border:1px solid #9eafa2;border-radius:8px;background:white}
.shape-lab input{width:100%;accent-color:#285e4c;min-height:44px}
.shape-lab .shape-card{flex-basis:190px}
.shape-lab :focus-visible{outline:3px solid #265fbc;outline-offset:3px}
@media(max-width:600px){.flat-shapes-model{padding:10px}.shape-cards{gap:8px}.shape-card{flex-basis:calc(33.333% - 8px);padding:5px}.shape-cards:not(.shape-pattern) .shape-card:only-child{flex-basis:170px}.shape-pattern{grid-template-columns:repeat(4,minmax(0,1fr))}.shape-pattern .shape-card{padding:3px}.shape-lab-controls{grid-template-columns:1fr}.shape-lab .shape-card{flex-basis:170px}}
