:root{color-scheme:light;--ink:#162f3b;--muted:#4a6472;--blue:#087080;--line:#d1e3e8;--paper:#fff}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;font:16px/1.55 system-ui,"Microsoft YaHei",sans-serif;color:var(--ink);background:radial-gradient(ellipse at 18% 0%,#e2f0f5 0%,#eff5f6 45%,#f5f7f7 100%)}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #007e99;outline-offset:3px}
.tc-width{width:min(1450px,calc(100% - 64px));margin-inline:auto}
.tc-top{background:#fafdfe;border-bottom:1px solid var(--line)}
.tc-top-inner{display:flex;align-items:center;min-height:60px;gap:17px;font-size:14px}
.tc-top-inner>span{margin-left:auto;color:var(--muted)}
.tc-home{display:inline-flex;align-items:center;min-height:40px;font-size:14px;font-weight:650;text-decoration:none;color:#14576c}
.tc-workspace{padding:24px 0 30px}
.tc-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:17px}
.tc-heading h1{font-size:clamp(30px,3vw,49px);letter-spacing:.01em;line-height:1.14;margin:2px 0 8px}
.tc-heading p:not(.tc-kicker){margin:0;color:var(--muted)}
.tc-kicker{margin:0;color:#226472;font-size:12px;font-weight:740;letter-spacing:.13em}
.tc-mode{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:14px;background:#f8fbfc}
.tc-mode button,.tc-actions button,.tc-steps button{cursor:pointer;color:var(--ink);border:1px solid var(--line);background:var(--paper);border-radius:9px;min-height:44px;padding:6px 13px}
.tc-mode button{border-color:transparent;background:transparent;white-space:nowrap;font-size:14px}
.tc-mode button[aria-pressed=true],.tc-actions #tc-next:not(:disabled){color:#fff;background:#15596b;border-color:#15596b}
.tc-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.tc-steps button{display:flex;align-items:center;gap:10px;min-width:0;text-align:left;font-weight:650}
.tc-steps b{display:grid;place-items:center;font-size:12px;font-variant-numeric:tabular-nums;background:#eaf3f5;color:#285f73;border-radius:7px;width:29px;height:28px;flex:0 0 auto}
.tc-steps button[aria-current]{border-color:#508d9a;background:#e2f1f3;color:#144f61}
.tc-steps button[aria-current] b{background:#206779;color:white}
.tc-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,330px);gap:12px}
.tc-card{border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:0 6px 25px #204c6909;min-width:0}
.tc-card-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:13px 16px;border-bottom:1px solid #e5edf0;font-size:15px;font-weight:700}
.tc-card-head small{font-size:12px;font-weight:500;color:var(--muted)}
.tc-diagram{container-type:inline-size}
#tc-svg{display:block;width:100%;aspect-ratio:800/312;max-height:373px;background:linear-gradient(180deg,#f3f9fa,#edf5f7)}
@container (width < 560px){#tc-svg{aspect-ratio:400/270}}
#tc-svg polyline,#tc-svg line,#tc-svg path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#tc-svg .tc-lens{fill:#dbf1fa;stroke:#51839a;stroke-width:1.15}
#tc-svg .tc-axis{stroke:#a6b9c1;stroke-width:1}
#tc-svg .tc-focus-plane{stroke:#c5ad75;stroke-width:1;stroke-dasharray:3 5}
#tc-svg .tc-guide-label{stroke:#907747;stroke-width:1;stroke-dasharray:2 3}
#tc-svg .tc-ruler{stroke:#7995a2;stroke-width:1}
#tc-svg .tc-ray,#tc-svg .tc-arrow{stroke:#096e7b;stroke-width:2.4}
#tc-svg .tc-ray.lower,#tc-svg .tc-arrow.lower{stroke:#ab481f}
#tc-svg .tc-counterfactual{stroke:#90631f;stroke-width:1.5;stroke-dasharray:5 4}
#tc-svg .tc-image-point{fill:#096e7b;stroke:#fff;stroke-width:1}
#tc-svg .tc-image-point.lower{fill:#ab481f}
#tc-svg .tc-counter-point{fill:#fff7e3;stroke:#926720;stroke-width:1.4}
#tc-svg text{font-family:inherit;paint-order:stroke;stroke:#f3f9fa;stroke-width:3px;stroke-linejoin:round}
#tc-svg .tc-label{font-size:15px;font-weight:700;fill:#204c5c}
#tc-svg .tc-sub,#tc-svg .tc-focus-caption{font-size:12px;fill:#4f6e79}
#tc-svg .tc-focus-caption{font-weight:700;fill:#79551a}
.tc-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px}
.tc-actions button{font-size:14px;font-weight:650}
.tc-actions button:disabled{color:#5c727d;cursor:default;opacity:.66}
.tc-actions .tc-check{flex:auto;display:flex;align-items:center;justify-content:end;gap:7px;min-height:36px;font-size:14px;color:var(--muted)}
.tc-check input{width:17px;height:17px;accent-color:#0c6879}
.tc-lesson{padding:18px 19px}
.tc-lesson h2{margin:7px 0 8px;line-height:1.35;font-size:clamp(20px,1.7vw,27px)}
.tc-lesson p:not(.tc-kicker){margin:9px 0;color:#385360}
.tc-lesson .tc-key{border-left:3px solid #47959b;padding:9px 10px;background:#edf6f7;border-radius:0 7px 7px 0;font-size:14px}
.tc-legend{display:flex;flex-wrap:wrap;gap:7px 13px;color:var(--muted);font-size:13px;margin-top:13px}
.tc-legend span{display:inline-flex;align-items:center;gap:7px}
.tc-legend i{width:22px;border-top:2px solid #096e7b}
.tc-legend i.tc-dashed{border-top:2px dashed #90631f}
.tc-lesson details{margin-top:14px}
.tc-lesson summary{font-size:14px;color:#15596b;cursor:pointer}
.tc-lesson canvas{display:block;width:100%;max-width:320px;margin-top:6px;border-radius:8px}
.tc-comparison{margin-top:12px}
.tc-field{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 15px 0}
.tc-field h3{font-size:14px;font-weight:700;margin:0 0 4px}
.tc-field canvas,.tc-empty{display:block;width:100%;aspect-ratio:320/106;max-height:172px;min-width:0;border-radius:9px;object-fit:contain;background:#eaf2f5}
.tc-empty{display:grid;place-items:center;margin:0;padding:9px;color:var(--muted);text-align:center;font-size:13px;line-height:1.35}
.tc-caption{margin:8px 15px 11px;color:var(--muted);font-size:13px}
.tc-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* The preserved instrument viewer is an independent panel, not a modal in another lab. */
body #telescope-inquiry{width:100%;height:clamp(720px,81vh,1000px);box-shadow:0 6px 25px #204c6909}
body #telescope-inquiry .wide{width:100%}
body #telescope-inquiry .tb-view h3{margin:0}
@media(max-width:900px){.tc-width{width:calc(100% - 30px)}.tc-stage{grid-template-columns:minmax(0,1fr) minmax(240px,31%)}.tc-lesson{padding:14px}}
@media(max-width:700px){
 .tc-width{width:calc(100% - 20px)}
 .tc-top-inner{min-height:48px;gap:10px}
 .tc-workspace{padding-top:13px}
 .tc-top-inner>span{display:none}
 .tc-heading{display:grid;gap:8px;margin-bottom:8px}
 .tc-heading h1{margin-bottom:3px}
 .tc-heading p:not(.tc-kicker){font-size:13px}
 .tc-mode{width:100%}
 .tc-mode button{flex:1;min-height:40px}
 .tc-stage{grid-template-columns:1fr}
 .tc-steps{gap:5px;margin-bottom:7px}
 .tc-steps button{padding:4px 5px;gap:4px;font-size:12px}
 .tc-steps b{width:22px;height:23px;font-size:10px}
 .tc-card-head{padding:9px 9px}
 .tc-card-head small{font-size:11px}
 .tc-actions{padding:7px;gap:5px}
 .tc-actions button{flex:1;white-space:nowrap;font-size:13px;padding-inline:4px}
 .tc-actions .tc-check{flex-basis:100%;justify-content:start;font-size:13px;min-height:28px}
 .tc-lesson{font-size:14px}
 .tc-field{gap:6px;padding-inline:9px}
 .tc-field h3{font-size:12px}
 .tc-caption{margin-inline:9px}
 body #telescope-inquiry{height:auto;min-height:590px;overflow:visible}
 body #telescope-inquiry .tb-heading{gap:6px}
 body #telescope-inquiry .tb-actions button:not([hidden]){min-height:38px}
 body #telescope-inquiry .tb-body{overflow:visible}
 body #telescope-inquiry:not(.tb-results-collapsed) .tb-main{min-height:0}
}
