main { padding-block: clamp(1.5rem, 4vw, 3rem); }
h1 { max-width: none; margin: .15em 0 .35em; font-size: clamp(2.2rem, 5vw, 3.6rem); }
main > p { max-width: 65ch; }
.bench:not([hidden]) { display: grid; grid-template-columns: minmax(0,1.17fr) minmax(17rem,1fr); gap: clamp(1rem,3vw,2rem); align-items: start; margin-block: 1.5rem; }
.instrument { margin: 0; border-radius: .7rem; overflow: hidden; background: #163b3b; color: #f3faf7; }
.instrument-title { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .85rem 1.1rem; }
#power { color: #ffe0a1; font-weight: 700; font-variant-numeric: tabular-nums; }
.optics { display: grid; place-items: center; padding: clamp(1rem,3vw,2rem); background: radial-gradient(ellipse at 50% 40%,#345759,#102e32); }
.eyepiece { position: relative; width: min(100%, 22rem); aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #f7e7cd; border: 5px solid #142c30; box-shadow: 0 0 0 2px #6e8381, 0 .4rem .8rem #092329; }
.eyepiece::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 1.1rem #52433b66; pointer-events: none; }
canvas { display: block; width: 100%; height: 100%; }
#pointer { position: absolute; left: 25%; top: calc(50% - 1px); width: 25%; height: 2px; transform: rotate(24deg); transform-origin: right center; background: #123636; box-shadow: 0 0 0 1px #fff9; }
#pointer::after { content: ''; position: absolute; right: 0; top: -3px; border-block: 4px solid transparent; border-left: 6px solid #123636; }
figcaption { padding: .8rem 1.1rem; min-height: 3.9rem; }
.controls, #notebook { background: white; border: 1px solid #c8d7d1; border-radius: .65rem; padding: clamp(1rem,2vw,1.5rem); }
.controls h2, #notebook h2 { font-size: clamp(1.4rem,3vw,1.85rem); }
#step { margin: 0 0 .3rem; color: #1b665b; font-weight: 650; }
#instructions { margin: .4rem 0 1rem; }
fieldset { margin: 0; padding: .25rem .7rem; border-color: #bfcfc8; }
fieldset label { display: inline-flex; min-height: 44px; align-items: center; padding: .4rem .6rem .4rem 0; }
input { accent-color: #226858; }
#optics-value, #sharpness { color: #375852; font-size: .95rem; }
#optics-value { margin: .35rem 0; }
form > label, legend { font-weight: 600; }
#focus, select { width: 100%; min-height: 36px; }
select { min-height: 44px; padding: .45rem; font: inherit; color: inherit; background: white; }
#sharpness { display: block; }
button { border-radius: .3rem; }
main button { min-height: 44px; margin-top: .7rem; background: #205f52; }
#feedback:empty { margin: 0; }
#records li { padding-block: .6rem; border-bottom: 1px solid #dbe3df; }
#notebook { margin-block: 1.5rem; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.3rem; margin-top: 1.2rem; }
footer a { padding-block: .4rem; color: #175e52; }
@media(max-width:700px) { .bench:not([hidden]) { grid-template-columns: 1fr; } .eyepiece { max-width: 17rem; } }
@media print { body:has(#notebook:not([hidden])) :is(header, .skip, .bench, footer, button, #notebook > p:last-of-type) { display: none; } main { padding: 0; } #notebook { border: 0; padding: 0; } }
