@font-face{font-family:Nunito;src:url('assets/Nunito-Regular.ttf')}@font-face{font-family:Nunito;src:url('assets/Nunito-Bold.ttf');font-weight:700}
.microscope-host{width:100%;height:100%;min-height:0}.html5-microscope{box-sizing:border-box;width:100%;height:100%;display:flex;flex-direction:column;gap:8px;padding:16px;border:3px solid white;border-radius:23px;background:linear-gradient(140deg,#edf9fa,#fff9e6);color:#315d6d;overflow:auto}.scope-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.scope-heading small{font-size:10px;letter-spacing:1px}.scope-heading h3{font-size:23px;margin:3px 0}.scope-heading label{font-size:11px;display:grid;gap:3px}.scope-picker{font:inherit;font-size:13px;padding:7px;max-width:190px;border:1px solid #abcbd0;border-radius:9px;background:white;color:#315d6d}.scope-visual{flex:1;min-height:150px;display:grid;place-items:center}.scope-instrument{height:100%;width:100%;display:flex;flex-direction:column;align-items:center}.scope-instrument svg{width:100%;height:100%;min-height:0;max-height:310px;flex:1}.scope-instrument p{font-size:13px;margin:2px 0;text-align:center}.scope-magnified{display:flex;align-items:center;justify-content:center;gap:22px;width:100%;height:100%;animation:scope-enter .3s ease-out}.scope-magnified img{width:min(49%,260px);max-height:100%;aspect-ratio:1;object-fit:contain;border:8px solid #395e72;border-radius:50%;box-shadow:0 0 0 5px #d8e9ed;box-sizing:border-box;background:#fff}.scope-magnified p{max-width:280px;font-size:17px;line-height:1.5}.scope-actions{display:flex;justify-content:center;gap:10px;flex:none}.scope-actions button{min-height:40px;min-width:85px;padding:7px 14px}.scope-credit{font-size:10px!important;line-height:1.4;text-align:center;margin:0!important;color:#6c8586}.scope-heading,.scope-credit{flex:none}
@keyframes scope-enter{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.scope-magnified{animation:none}}
@media(max-width:550px){.scope-heading{align-items:flex-start;gap:7px}.scope-heading h3{font-size:19px}.scope-picker{max-width:140px}.html5-microscope{padding:12px}.scope-magnified{flex-direction:column;gap:12px}.scope-magnified img{width:min(65%,210px);max-height:none}.scope-magnified p{font-size:14px;margin:0}.scope-actions{gap:6px}.scope-actions button{min-width:0;padding:7px 10px}}
body.standalone{margin:0;min-height:100vh;background:linear-gradient(145deg,#e1f2e4,#d4edf2);color:#31576b;font:16px Nunito,Arial,sans-serif;box-sizing:border-box;padding:20px}.standalone *{box-sizing:border-box}.standalone button{font:inherit;cursor:pointer;background:white;color:#315d6d;border:1px solid #9dbfc6;border-radius:10px;padding:9px 14px;min-height:42px}.standalone button:disabled{opacity:.4;cursor:default}.standalone button.primary,.standalone button[aria-pressed=true]{background:#158b3d;color:white;border-color:#158b3d}.standalone button:focus-visible,.standalone [tabindex]:focus-visible,.standalone select:focus-visible{outline:3px solid #a373bb;outline-offset:3px}.standalone .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.converted-page{max-width:1100px;margin:auto}.converted-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.converted-header img{width:125px;height:auto}.converted-header h1{font-size:27px;margin:0}.converted-header a{color:#315d6d}.converted-cell{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr);gap:18px;align-items:start}.converted-board{position:relative;border:3px solid white;border-radius:22px;background:#f5fbf4;overflow:hidden}.converted-board svg{display:block;width:100%;height:auto}.converted-info{padding:18px;background:#fffdf4;border:2px solid white;border-radius:20px}.converted-info h2{margin-top:0;font-size:23px}.converted-info p{line-height:1.6}.converted-parts{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}.converted-parts button{font-size:12px;padding:7px 9px}.converted-switch{display:flex;gap:10px;margin-bottom:14px}.native-cell-part{cursor:pointer}.native-cell-part:hover{filter:drop-shadow(0 0 3px white)}.standalone-scope{height:min(660px,calc(100dvh - 115px));min-height:480px}.converted-pin{position:absolute;width:24px;height:24px;transform:translate(-50%,-50%);border:3px solid white;border-radius:50%;background:#a56caf;box-shadow:0 0 0 2px #a56caf;color:white;display:grid;place-items:center;font-size:12px;font-weight:bold;pointer-events:none}.converted-note{font-size:12px;color:#638188;text-align:center}
@media(max-width:700px){body.standalone{padding:12px}.converted-cell{grid-template-columns:1fr}.converted-header h1{font-size:21px}.converted-header img{width:100px}.converted-header a{font-size:12px}.standalone-scope{height:620px}}

.scope-visual{position:relative;overflow:hidden}.scope-instrument{position:absolute;inset:0;height:auto}.scope-instrument svg{height:0;flex:1}.scope-instrument p{flex:none;margin:6px 0}.scope-magnified{position:absolute;inset:0}.scope-actions{position:relative;margin-top:3px}

/* Larger, detailed microscope drawing with legible part callouts. */
.scope-instrument svg{max-height:420px}
.scope-instrument .scope-instrument-image{display:block;flex:1;width:100%;height:0;min-height:0;object-fit:contain;filter:drop-shadow(0 8px 7px #34534e20)}
.scope-camera{position:relative;flex:1;min-height:0;aspect-ratio:2/3;max-width:100%;transform-origin:55% 56%}
.scope-camera .scope-instrument-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.scope-glass-slide{position:absolute;left:35%;top:55.6%;width:37%;height:2.7%;border:1px solid #95d2d9;background:#ddffffa8;transform:rotate(-10deg) skewX(-25deg);box-shadow:0 1px 2px #164c5433}
.scope-glass-slide span{position:absolute;left:43%;top:12%;width:20%;height:70%;border-radius:50%;background:#71a984aa;border:1px solid #638774}
[data-phase=loading] .scope-glass-slide{animation:scope-load-slide .55s ease-out both}
[data-phase=zooming] .scope-camera{animation:scope-zoom-in .65s ease-in forwards}
[data-phase=zooming] .scope-instrument p{position:relative;background:#fffdf4e8;border-radius:8px;padding:4px 12px}
.scope-observation small{font-size:11px;font-weight:700;letter-spacing:1px;color:#397d76}.scope-observation p{margin-top:9px}
.scope-visual{container-type:size}
.scope-magnified img{width:min(56cqw,92cqh,340px);height:min(56cqw,92cqh,340px);max-height:none;flex:none;object-fit:cover;background:#213d47;border:9px solid #213d47;box-shadow:0 0 0 4px #89a9ad,0 9px 22px #23444326}
@keyframes scope-load-slide{from{opacity:0;transform:translateX(150%) rotate(-10deg) skewX(-25deg)}to{opacity:1;transform:translateX(0) rotate(-10deg) skewX(-25deg)}}
@keyframes scope-zoom-in{from{transform:scale(1);opacity:1}to{transform:scale(3.6);opacity:0}}
@media(prefers-reduced-motion:reduce){[data-phase=loading] .scope-glass-slide,[data-phase=zooming] .scope-camera{animation:none}}
@media(max-width:550px){.scope-magnified img{width:min(65cqw,68cqh,240px);height:min(65cqw,68cqh,240px);max-height:none}.scope-observation p{font-size:13px;margin-top:3px}}
