/* Styles for the optional 3D apparatus panel. */
#telescope-inquiry{width:min(1460px,97vw);height:min(960px,95vh);max-width:none;max-height:none;padding:0;border:1px solid #bdcfd8;border-radius:14px;overflow:hidden;color:#315360;background:#f2f6f7;box-shadow:0 20px 80px #18374855}
#telescope-inquiry *{box-sizing:border-box}
#telescope-inquiry .tb-shell{height:100%;display:flex;flex-direction:column}
#telescope-inquiry .tb-shell:fullscreen{width:100vw;height:100vh;background:#f2f6f7}
#telescope-inquiry .tb-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;background:#fff;border-bottom:1px solid #d7e3e8;flex-wrap:wrap;flex:none}
#telescope-inquiry h2{font-size:21px;margin:0;color:#294f60}
#telescope-inquiry .tb-heading p{font-size:12px;color:#7c929d;margin:5px 0 0}
#telescope-inquiry .tb-actions{display:flex;gap:7px;flex-wrap:wrap}
#telescope-inquiry button{font:inherit;font-size:12px;padding:8px 10px;min-height:33px;border:1px solid #bfd2dc;border-radius:7px;color:#355f70;background:#fff;cursor:pointer;line-height:1.4}
#telescope-inquiry button.active{background:#dceef4;border-color:#74aabd;color:#24576c}
#telescope-inquiry button:hover{background:#eaf3f6}
#telescope-inquiry button:disabled{cursor:default;opacity:.5}
#telescope-inquiry .tb-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:9px 16px;background:#eaf1f4;flex:none}
#telescope-inquiry .tb-steps button{text-align:left}
#telescope-inquiry .tb-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:12px;padding:12px 16px}
#telescope-inquiry .tb-main{display:flex;flex-direction:column;min-width:0;min-height:0;gap:10px;overflow:auto}
#telescope-inquiry .tb-plot{position:relative;flex:1;min-height:260px;border:1px solid #d3e2e7;border-radius:11px;overflow:hidden;background:#f7f9f8}
#telescope-plot{display:block;width:100%;height:100%;min-height:260px;touch-action:none}
#telescope-inquiry .tb-edge{position:absolute;right:10px;z-index:2;background:#fffffff2;font-size:11px;padding:6px 8px}
#telescope-toggle-controls{top:9px}
#telescope-toggle-results{bottom:8px}
#telescope-inquiry .tb-results{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:none;min-width:0}
#telescope-inquiry .tb-view{border:1px solid #d3e1e7;border-radius:9px;overflow:hidden;background:#fff;min-width:0}
#telescope-inquiry .tb-view h3{font-size:12px;font-weight:500;color:#527383;margin:0;padding:7px 10px}
#telescope-inquiry .tb-view canvas{display:block;width:100%;height:140px;background:#102530}
#telescope-inquiry .tb-view p{font-size:10px;color:#81959f;margin:5px 9px;line-height:1.5}
#telescope-inquiry .tb-controls{min-height:0;overflow:auto;padding-right:3px;scrollbar-width:thin}
#telescope-inquiry .tb-box{border:1px solid #d3e0e7;border-radius:9px;background:#fff;padding:11px 12px;margin-bottom:10px}
#telescope-inquiry h3{font-size:13px;font-weight:500;color:#3a687a;margin:0 0 10px}
#telescope-inquiry .tb-two{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#telescope-inquiry .tb-two button{padding:7px 4px}
#telescope-inquiry label{display:block;font-size:12px;color:#557783;margin:12px 0;line-height:1.5}
#telescope-inquiry output{float:right;color:#27728e;font-size:11px;font-variant-numeric:tabular-nums}
#telescope-inquiry select{width:100%;font-size:12px;margin-top:6px;border-color:#bfced9}
#telescope-inquiry input[type=range]{width:100%;margin-top:9px;accent-color:#4b91aa}
#telescope-inquiry .tb-check{display:flex;gap:7px;align-items:flex-start}
#telescope-inquiry .tb-check input{margin-top:3px;accent-color:#4b91aa}
#telescope-inquiry .tb-note{font-size:11px;line-height:1.7;color:#82959f;margin:8px 0}
#telescope-inquiry #telescope-guide{padding:10px 12px;background:#e6f0f4;border-radius:8px;color:#537585;font-size:12px;line-height:1.75;margin:0 0 10px}
#telescope-inquiry #telescope-result{display:block;color:#287d7e;font-size:13px;line-height:1.6}
#telescope-inquiry #telescope-mag{font-size:15px;color:#385f72;margin:7px 0}
#telescope-inquiry details{border:1px solid #d3e0e7;border-radius:8px;padding:10px 12px;background:#fff;margin:10px 0}
#telescope-inquiry summary{font-size:12px;color:#537787;cursor:pointer}
#telescope-inquiry .tb-middle canvas{width:100%;height:110px;display:block;margin-top:9px;border-radius:5px}
#telescope-inquiry .tb-scope{font-size:10px;line-height:1.7;color:#82959f;margin:10px 2px}
#telescope-inquiry.tb-controls-collapsed .tb-body{grid-template-columns:minmax(0,1fr)}
#telescope-inquiry.tb-results-collapsed .tb-main{overflow:hidden}
#telescope-inquiry.tb-results-collapsed .tb-plot{min-height:0}
#telescope-inquiry.tb-results-collapsed #telescope-plot{min-height:0}
@media(max-width:1020px){
 #telescope-inquiry .tb-body{grid-template-columns:minmax(0,1fr) 258px;padding:9px;gap:9px}
 #telescope-inquiry .tb-heading{padding:10px 14px}
 #telescope-inquiry .tb-view canvas{height:110px}
}
@media(max-width:720px){
 #telescope-inquiry{width:98vw;height:97vh;border-radius:9px}
 #telescope-inquiry h2{font-size:17px}
 #telescope-inquiry .tb-heading p{display:none}
 #telescope-inquiry .tb-heading{padding:9px 11px;gap:8px}
 #telescope-inquiry .tb-actions{gap:5px}
 #telescope-inquiry .tb-actions button{font-size:11px;padding:6px 7px}
 #telescope-inquiry .tb-steps{padding:7px;gap:5px}
 #telescope-inquiry .tb-body{display:flex;flex-direction:column;overflow:auto}
 #telescope-inquiry .tb-main{flex:none;min-height:440px;overflow:visible}
 #telescope-inquiry .tb-plot,#telescope-plot{min-height:270px}
 #telescope-inquiry .tb-results{gap:7px}
 #telescope-inquiry .tb-view canvas{height:110px}
 #telescope-inquiry .tb-controls{flex:none;overflow:visible}
 #telescope-inquiry.tb-results-collapsed .tb-main{min-height:300px}
 #telescope-inquiry.tb-controls-collapsed .tb-main{flex:1;min-height:0;overflow:auto}
 #telescope-inquiry.tb-controls-collapsed.tb-results-collapsed .tb-main{overflow:hidden}
}

/* Separate WebGL canvas and transparent annotation layer; no main-scene changes. */
#telescope-inquiry .tb-plot{isolation:isolate;background:#e3e7e7}
#telescope-model{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0;touch-action:none;cursor:grab}
#telescope-model:active{cursor:grabbing}
#telescope-plot{position:relative;z-index:1;background:transparent;pointer-events:none}
#telescope-inquiry .tb-edge{z-index:3}
#telescope-inquiry .tb-steps button{font-size:13px;letter-spacing:.02em}

/* Candidate telescope projection selector. */
#telescope-inquiry .tb-projection{display:inline-flex;gap:4px;align-items:center;padding-right:5px;border-right:1px solid #d7e3e8}
#telescope-inquiry #telescope-projection[hidden]{display:none}
