.gen-figure { max-width: 760px; margin: 2rem auto 2.5rem; color: #333; }
.gen-figure [hidden] { display: none !important; }
.gen-figure svg { display: block; width: 100%; height: auto; font: 16px var(--bs-body-font-family, system-ui, sans-serif); }
.gen-fit-figure { max-width: 500px; }
.gen-figure output { font-variant-numeric: tabular-nums; }
.gen-controls { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 .25rem .5rem; }
.gen-controls label { flex: 1; min-width: 130px; display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; align-items: baseline; font-size: .9rem; }
.gen-controls input { grid-column: 1 / -1; width: 100%; min-height: 30px; accent-color: #44AA99; cursor: pointer; }
.gen-controls input[type="range"] { appearance: none; background: transparent; }
.gen-controls input::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: #DDDDDD; }
.gen-controls input::-moz-range-track { height: 4px; border-radius: 3px; background: #DDDDDD; }
.gen-controls input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #44AA99; border: 2px solid white; box-shadow: 0 0 0 1px #44AA99; }
.gen-controls input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #44AA99; border: 2px solid white; box-shadow: 0 0 0 1px #44AA99; }
.gen-controls input:focus-visible { outline: 2px solid #44AA99; outline-offset: 3px; }
.gen-key { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.5rem; font-size: .85rem; margin: .4rem 0; }
.gen-key span { display: inline-flex; align-items: center; gap: .5rem; }
.gen-key i { display: inline-block; flex-shrink: 0; }
.gen-point-key { width: 7px; height: 7px; border-radius: 50%; background: #44AA99; }
.gen-plain-key { width: 10px; height: 10px; }
.gen-plain-key::before { content: "×"; display: block; color: #999; font: normal 16px/10px sans-serif; }
.gen-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.5rem; font-size: .9rem; margin-top: .7rem; }
.gen-stats output { margin-left: .3rem; }
.gen-measured { display: block; width: 100%; max-width: 850px; height: auto; margin: 1.25rem auto; }
.gen-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
