/* Ten lengths, kept compact and comfortably selectable on mobile. */
.sheet-lengths{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.sheet-lengths label{min-width:0}
.sheet-lengths label>span{min-width:0;width:100%;height:59px;padding:7px 2px;font-size:18px}
.sheet-lengths small{font-size:9px}
.sheet-photo .photo-zoom{aspect-ratio:4/5}
.sheet-photo .photo-zoom img{height:100%;width:100%;object-fit:contain;object-position:center}
.guide-picker .guide-length-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.guide-length-grid button{min-width:0;min-height:61px;padding:8px 3px;display:flex;flex-direction:column;justify-content:center;gap:4px;font-size:19px}
.guide-length-grid small{font:9px var(--sans);opacity:.8}
.length-figure{position:relative}
.length-figure>img{width:100%;height:auto;aspect-ratio:4/5;object-fit:contain}
.length-photo-badge{position:absolute;top:20px;left:20px;display:flex;flex-direction:column;gap:4px;padding:12px 15px;color:#fff2df;background:#30241de8;border:1px solid #d3b59560;pointer-events:none}
.length-photo-badge strong{font:500 32px/1 var(--sans);letter-spacing:-.06em}
.length-photo-badge span{font-size:10px;color:#dec7ae}
.quiz-lengths{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.quiz-lengths label{min-width:0}
.quiz-lengths label>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;padding:14px 4px;font-size:22px}
.quiz-lengths small{font:10px var(--sans);opacity:.8}
.length-comparison strong{font-size:29px;white-space:nowrap}
#chat-dialog .suggestions[data-length-choices=true]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
#chat-dialog .suggestions[data-length-choices=true] button{min-height:40px;padding:7px 2px!important;font-size:13px!important}
@media(max-width:760px){
  .sheet-lengths{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .sheet-lengths label>span{height:44px;font-size:16px;border-radius:3px}
  .sheet-lengths small{display:none}
  .sheet-copy legend{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
  .sheet-copy legend a{font-size:9px;min-height:30px;display:flex;align-items:center;gap:4px}
  .sheet-copy legend a .icon{width:11px;height:11px}
  .selected-measure{font-size:9px;line-height:1.5}
  .guide-picker .guide-length-grid{gap:6px}
  .guide-length-grid button{min-height:57px;font-size:19px;padding:7px 1px}
  .guide-length-grid small{font-size:8px}
  .length-photo-badge{top:14px;left:14px;padding:11px 13px}
  .length-photo-badge strong{font-size:28px}
  .quiz-lengths{gap:6px}
  .quiz-lengths label>span{min-height:58px;padding:10px 2px;font-size:19px}
  .quiz-lengths small{font-size:8px}
  .length-comparison strong{font-size:25px}
}
@media(max-width:350px){.length-comparison strong{font-size:21px}}
/* Let the photograph and the title breathe; sizes occupy two clear rows. */
#product-selection{grid-column:2;grid-row:2;margin:0;align-self:start}
#product-selection fieldset{padding:0;border:0;min-width:0}
#product-selection legend{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0;margin-bottom:12px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
#product-selection legend a{display:flex;align-items:center;gap:5px;text-transform:none;letter-spacing:0;font-size:11px;color:#795436;min-height:34px;text-decoration:underline;text-underline-offset:3px}
#product-selection legend .icon{width:13px;height:13px}
.product-top{row-gap:0}
.sheet-photo{grid-column:1;grid-row:1/3}
.sheet-copy{grid-column:2;grid-row:1}
@media(max-width:760px){
  .product-top{row-gap:14px}
  .sheet-photo{grid-row:1}
  #product-selection{grid-column:1/-1;grid-row:2}
  .sheet-lengths{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
  .sheet-lengths label>span{height:44px;font-size:17px}
  #product-selection legend{font-size:9px;margin-bottom:5px}
  #product-selection legend a{font-size:10px}
  .selected-measure{font-size:10px;margin-top:8px}
}
