#ray-diagram {display:block;width:100%;max-width:570px;margin:14px auto 0;background:#f5f9fb;border:1px solid #d5e3eb;border-radius:9px}
.diagram-labels {fill:#294b64;font-size:16px;font-weight:680}
.triangles {fill:#b7d9e9;fill-opacity:.75}
#image-triangle {fill:#ffd3ac}
#base-ray {fill:none;stroke:#527b96;stroke-width:2;stroke-dasharray:5 4}
#tip-ray {fill:none;stroke:#b54c1d;stroke-width:2.4}
.wall {fill:none;stroke:#294b64;stroke-width:5;stroke-linecap:round}
.aperture {fill:#b54c1d}
#screen path {fill:none;stroke:#527b96;stroke-width:1.2}
.projection-arrow {stroke:#a03519;stroke-width:3.2}
.diagram-key {display:flex;align-items:baseline;gap:8px;margin-bottom:0}
.ray-swatch {display:inline-block;flex:0 0 15px;border-bottom:2px solid #b54c1d}
.controls .pinhole-check {display:flex;justify-content:flex-start;align-items:center;gap:7px;min-height:44px;margin:2px 0 0;cursor:pointer}
.pinhole-check input {inline-size:17px;block-size:17px;margin:0;accent-color:#245987}
.pinhole-readout {background:#eaf2fa;border-radius:7px;margin:8px 0 12px;padding:10px 12px}
.pinhole-readout h3 {font-size:14px;margin:0}
#ratio {margin:4px 0;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
.pinhole-readout p:last-child {margin:6px 0 0}
