*{box-sizing:border-box}body{margin:0;background:#f8f8f1;color:#183746;font:16px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:#286b5b;text-underline-offset:4px}header,main,footer{max-width:1220px;margin:auto;padding:24px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dbe5d6}.brand{display:flex;align-items:center;gap:10px;color:#183746;font-size:23px;font-weight:750;text-decoration:none}.brand img{width:33px}.brand small{font-size:11px;letter-spacing:2px;color:#6a8072}nav{display:flex;gap:23px;font-size:13px}.skip{position:absolute;left:-9999px}.skip:focus{left:20px;top:0;z-index:10;background:white;padding:10px}.eyebrow{color:#6b8272;letter-spacing:2px;font-size:11px;margin:20px 0 12px}h1{font-size:clamp(31px,4.5vw,48px);line-height:1.2;margin:12px 0 20px}h2{font-size:20px;margin:0}.lead{color:#506d65;max-width:830px;font-size:18px}.lab-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;margin-top:30px}.stage-panel,.controls{border:1px solid #d6e2d1;border-radius:14px;background:#fffef8}.stage-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 23px 4px}.badge{font-size:10px;border:1px solid #d4dfce;border-radius:20px;padding:3px 10px;color:#6d826d}#ray-stage{display:block;width:100%;height:auto;touch-action:none}.mirror-line{stroke:#526f78;stroke-width:9;stroke-linecap:round}.normal-line{stroke:#91a99d;stroke-width:2;stroke-dasharray:7 7}.incoming-ray{stroke:#b77e2d;stroke-width:3.5}.outgoing-ray{stroke:#2e8b75;stroke-width:3.5;stroke-dasharray:9 4}.angle-in,.angle-out{fill:none;stroke-width:2.5}.angle-in{stroke:#b77e2d}.angle-out{stroke:#2e8b75}.angle-label{font:16px system-ui;text-anchor:middle}.in-label{fill:#966619}.out-label{fill:#226b5a}.diagram-label{font:14px system-ui;fill:#6d8576}.point{fill:#183746}#source-handle{fill:#e5be71;stroke:#95691e;stroke-width:2;cursor:grab}#mirror-handle{fill:#e4efe0;stroke:#47655d;stroke-width:2;cursor:grab}.legend{display:flex;justify-content:center;gap:23px;flex-wrap:wrap;font-size:12px}.legend span:before{content:'';display:inline-block;width:22px;height:3px;margin-right:7px;vertical-align:middle;background:#b77e2d}.legend .out-key:before{background:#2e8b75}.legend .normal-key:before{background:#91a99d}.stage-hint,.state-note{font-size:12px;color:#6d8271;padding:0 23px}.state-note{min-height:44px;color:#3b705a}.controls{padding:23px}.measurements{display:grid;gap:14px;margin-bottom:25px}.measurements div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e8db;padding-bottom:8px;gap:10px}.measurements span{font-size:12px;color:#647b6b}.measurements output{font-size:24px;font-weight:650;white-space:nowrap}.controls>label:not(.check){font-size:14px;font-weight:650;display:block;margin-top:20px}.control-reading{display:flex;gap:12px;justify-content:space-between;font-size:10px;color:#7a8c78}.control-reading output{font-size:13px;color:#3d7059}input[type=range]{width:100%;height:38px;accent-color:#397b64;margin:4px 0 8px;cursor:pointer}.check{display:flex;gap:9px;align-items:center;font-size:12px;min-height:38px}.check input{accent-color:#397b64;width:17px;height:17px}.presets{display:grid;gap:8px;margin:16px 0}button{font:inherit;cursor:pointer;border:1px solid #c5d7c5;background:#f3f6ee;color:#2d6652;border-radius:6px;min-height:42px;font-size:12px;padding:9px}.reset{width:100%;background:#285e50;color:#fff;border-color:#285e50}.rule{font-size:13px;color:#2b6853;border-top:1px solid #d8e3d2;padding-top:18px;margin-top:23px}.small{font-size:12px;color:#738673;line-height:1.9}.investigation{max-width:900px;margin-top:35px;border-left:3px solid #b8ccab;padding:8px 25px}.investigation>p:not(.small){font-size:15px;color:#506e62}footer{display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#70856f;border-top:1px solid #d8e3d1;margin-top:45px}a:focus-visible,button:focus-visible,input:focus-visible,[role=slider]:focus-visible{outline:3px solid #438d77;outline-offset:5px}#protractor{fill:none;stroke:#dce4d4;stroke-width:1}[hidden]{display:none!important}@media(max-width:850px){.lab-layout{grid-template-columns:1fr}.controls{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.measurements,.presets,.reset,.rule,.small{grid-column:1/-1}.measurements{grid-template-columns:1fr 1fr 1fr;gap:15px}.measurements div{flex-direction:column;align-items:flex-start}.controls>label:not(.check),.control-reading,input[type=range]{grid-column:1/-1}.stage-hint{font-size:11px}}@media(max-width:550px){header,main,footer{padding:18px}.brand small{display:none}header{align-items:flex-start;flex-wrap:wrap}nav{gap:20px}h1{font-size:31px}.lead{font-size:16px}.stage-head{padding:17px 17px 0}.stage-head h2{font-size:17px}.badge{font-size:9px}.controls{padding:18px}.measurements output{font-size:21px}.measurements span{font-size:10px}.legend{gap:14px;font-size:11px}.stage-hint,.state-note{padding-inline:17px}.investigation{padding-inline:18px}.check{font-size:11px}footer{flex-wrap:wrap}}
