/* Open reading layout with linked scientific panels. */
.hr-lab{margin:20px 0 26px}.hr-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.hr-lab figure{margin:0 0 14px;min-width:0}.hr-lab figure h3{margin:0 0 8px}.hr-lab svg{display:block;width:100%;height:auto}.hr-lab figcaption{margin:8px 0;text-align:left}.hr-controls{margin:15px 0}.hr-controls label{display:grid;grid-template-columns:7em minmax(0,1fr) 3em;gap:12px;align-items:center;max-width:540px;margin:10px 0}.hr-controls input{min-width:0;width:100%;margin:0;accent-color:#397aa8}.hr-controls output{text-align:right;font-variant-numeric:tabular-nums}.hr-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:10px 0}.hr-tools span{color:var(--muted);font-size:var(--small)}
#hyperplane-recurrence button,.hr-dialog button{font:inherit;cursor:pointer;padding:5px 9px;background:white;color:inherit;border:1px solid #cbd5dd;border-radius:4px}#hyperplane-recurrence button[aria-pressed=true]{background:#edf4fb}#hyperplane-recurrence button.term{padding:0;border:0;border-bottom:1px dotted currentColor;border-radius:0;color:var(--accent-ink)}#hyperplane-recurrence button:disabled{opacity:.5;cursor:default}
.hr-lab svg text,.hr-dialog svg text{font-family:inherit;font-size:var(--body)}.hr-label{paint-order:stroke;stroke:white;stroke-width:4px;stroke-linejoin:round}.hr-input-sign{font-weight:600;fill:#276c9f}.hr-lab svg:focus-visible,.hr-lab svg [role=button]:focus-visible,#hyperplane-recurrence button:focus-visible,#hyperplane-recurrence input:focus-visible,.hr-dialog button:focus-visible{outline:2px solid #276c9f;outline-offset:3px}
[data-hr-sphere],[data-dual-weight]{touch-action:none;cursor:grab}[data-hr-sphere]:active,[data-dual-weight]:active{cursor:grabbing}[data-slice-index]{cursor:pointer}.hr-scroll{overflow-x:auto;padding:4px 3px 10px}.hr-pascal-row{display:flex;gap:4px;width:max-content;margin:4px 0}.hr-pascal-row button{min-width:40px;font-variant-numeric:tabular-nums;white-space:nowrap}#hyperplane-recurrence [data-retained=true]{background:#deedf8}#hyperplane-recurrence [data-retained=false]{background:#f0f1f2;color:#626b72}#hyperplane-recurrence [data-parent=true]{border:2px solid #ad791b}#hyperplane-recurrence [data-selected=true]{outline:2px solid #276c9f;outline-offset:1px}.hr-targets{display:flex;flex-wrap:wrap;gap:7px}.hr-targets button{font-family:monospace!important;letter-spacing:.12em}#hyperplane-recurrence [data-feasible=true]{background:#deedf8}#hyperplane-recurrence [data-feasible=false]{background:#f0f1f2;color:#626b72}
.hr-dialog{box-sizing:border-box;width:94vw;max-width:1000px;max-height:94vh;padding:16px;border:1px solid var(--rule);border-radius:6px;background:white;color:var(--ink);font:inherit;overflow:auto}.hr-dialog::backdrop{background:rgba(20,30,40,.35)}.hr-dialog>button{display:block;margin:0 0 8px auto}.hr-dialog figure{margin:0}.hr-dialog svg{width:100%;height:65vh;display:block;touch-action:none}.hr-dialog [data-hr-view-tools] button:nth-child(3){display:none}.hr-dialog figcaption{font-size:var(--small);color:var(--muted)}
@media(max-width:600px){.hr-pair{grid-template-columns:1fr;gap:12px}.hr-pair svg{max-width:350px;margin:auto}.hr-controls label{gap:7px;grid-template-columns:6em minmax(0,1fr) 2.5em}.hr-dialog{width:100vw;max-width:100vw;padding:8px}.hr-dialog svg{height:58vh}}

.hr-input-sign[data-sign="−"]{fill:#ad5d70}.hr-input-sign[data-sign="0"]{fill:#65717a}
