.stem-layout{display:grid;grid-template-columns:5.25rem minmax(0,1fr);padding:.75rem;color:var(--ink)}.stem-column-labels,.stem-row-labels{display:grid;margin:0;padding:0;list-style:none;text-align:center;font-size:clamp(.75rem,1.8vw,1rem);font-weight:650;line-height:1.2}.stem-column-labels{grid-area:1/2;grid-template-columns:1fr minmax(0,432fr) 44fr minmax(0,432fr) 43fr minmax(0,432fr);align-items:end;padding-bottom:.625rem;overflow-wrap:anywhere}.stem-column-labels>li:first-child{grid-column:2}.stem-column-labels>li:nth-child(2){grid-column:4}.stem-column-labels>li:nth-child(3){grid-column:6}.stem-row-labels{grid-area:2/1;grid-template-rows:432fr 46fr 432fr;align-items:center;justify-items:center}.stem-row-labels>li:nth-child(2){grid-row:3}.stem-image{grid-area:2/2;position:relative;background:#000}.stem-image img{display:block;width:100%;height:auto}.stem-scales{position:absolute;inset:0;pointer-events:none}.stem-scale{position:absolute;height:2px;background:#fff;box-shadow:0 0 0 1px #000}.stem-scale>span{position:absolute;right:0;bottom:4px;padding:1px 3px;background:#000;color:#fff;font-size:clamp(.625rem,1.35vw,.875rem);font-weight:650;line-height:1.2;white-space:nowrap}@media (max-width:640px){.stem-layout{grid-template-columns:1.5rem minmax(0,1fr);padding:.5rem}.stem-row-labels span{display:block;writing-mode:vertical-rl;transform:rotate(180deg)}}.stem-toolbar{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:.75rem 1.5rem;padding:.875rem 1rem 0}.stem-zoom-controls{display:inline-flex;align-items:center;gap:.25rem}.stem-toolbar button,.stem-toolbar select{min-height:2.75rem;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:.25rem;padding:.375rem .625rem;font-size:.875rem;font-weight:600}.stem-toolbar button{min-width:2.75rem;cursor:pointer}.stem-toolbar button:enabled:hover{color:var(--accent-strong);border-color:var(--accent)}.stem-toolbar button:disabled{opacity:.5;cursor:default}.stem-zoom-value{min-width:3.5rem;color:var(--ink);text-align:center;font-size:.875rem;font-weight:600;font-variant-numeric:tabular-nums}.stem-jump-control{display:grid;gap:.25rem;flex:0 1 20rem;min-width:0;color:var(--muted);font-size:.75rem;font-weight:600}.stem-jump-control select{width:100%;min-width:0}.stem-instructions{margin:0;padding:.5rem 1rem .75rem;color:var(--muted);font-size:.8125rem}.stem-viewport{overflow:auto;overflow-anchor:none;scroll-behavior:auto}.stem-viewport[data-enlarged=true]{max-height:min(70vh,44rem);border-block:1px solid var(--line)}.stem-viewport:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.stem-layout{width:var(--stem-zoom,100%)}@media print{.stem-instructions,.stem-toolbar{display:none}.stem-viewport[data-enlarged=true]{max-height:none;overflow:visible}.stem-layout{width:100%}}