#convexLab{max-width:1440px;margin:auto}#convexLab section{overflow:visible}.ct-controls{display:flex;gap:14px;flex-wrap:wrap;align-items:end;margin:22px 0}.ct-controls label{display:grid;gap:6px;flex:1;min-width:160px}.ct-controls select{width:100%;max-width:100%;padding:10px;border:1px solid var(--line,#b7c7ce);border-radius:8px;background:var(--paper,#fff);color:inherit}.ct-controls button{padding:11px 15px}.ct-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:20px 0}.ct-metrics div{border:1px solid var(--line,#bdcbd0);border-radius:12px;padding:16px;background:var(--paper,#fafbf9)}.ct-metrics strong{display:block;font-size:1.85rem}.ct-metrics span{font-size:.82rem}.ct-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:30px}.ct-grid>div,.ct-grid aside{min-width:0}.ct-formula{padding:18px;border-left:3px solid #078b96;font-family:Georgia,serif;background:var(--paper,#f8fbfb)}.ct-dag{overflow-x:auto;border:1px solid var(--line,#bdcbd0);border-radius:12px;background:var(--paper,#fff)}#ctDag{display:block;min-width:650px;width:100%;color:inherit}#ctDag .ct-edge{fill:none;stroke:#a1aeb6;stroke-width:1;opacity:.35}#ctDag .ct-edge.active{stroke:#078b96;stroke-width:4;opacity:1}#ctDag .ct-edge.flow{stroke:#b36b13;stroke-width:3;opacity:.9}#ctDag text{fill:currentColor;font:15px ui-monospace,monospace}#ctDag circle{fill:var(--paper,#fff);stroke:currentColor;stroke-width:1.5}.ct-piece{display:inline-block;border:1px solid #078b96;border-radius:6px;padding:4px 8px;margin:3px;color:inherit;font-family:ui-monospace,monospace}.ct-row{padding:13px 0;border-bottom:1px solid var(--line,#bdcbd0);overflow-wrap:anywhere}.ct-row p{margin:6px 0}.ct-table{max-height:590px;overflow:auto;border:1px solid var(--line,#bdcbd0);border-radius:10px}.ct-table table{width:100%;font-size:.88rem}.ct-table th{position:sticky;top:0;background:var(--paper,#fff)}.ct-table code{white-space:normal;overflow-wrap:anywhere}.ct-table td,.ct-table th{padding:9px 7px;text-align:left}.ct-table input{accent-color:#078b96;width:18px;height:18px}#ctCertificate{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem}#ctManual{min-height:2.6em}#ctStatus{min-height:1.5em}.ct-bound{color:#077c82}.ct-muted{opacity:.72}@media(max-width:900px){.ct-grid{grid-template-columns:1fr}.ct-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:550px){.ct-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-controls label{min-width:100%}.ct-grid{gap:20px}#convexLab section{padding-left:15px;padding-right:15px}.ct-metrics div{padding:11px}.ct-metrics strong{font-size:1.5rem}}
/* Keep the live calculation visible before the reader reaches a second screen. */
#convexLab h1{font-size:clamp(2rem,4vw,3.6rem);line-height:1.1;max-width:28ch;margin:.4em 0}#convexLab>section:first-child{padding-top:34px;padding-bottom:24px}#convexLab>section.ct-grid{padding-top:26px}
html[data-embed="book"] header{display:none}html[data-embed="book"] #convexLab>section:first-child{padding-top:20px}html[data-embed="book"] #convexLab h1{font-size:2rem}html[data-embed="book"] #convexLab section{padding-left:20px;padding-right:20px}
