#editor{margin-top:16px;background:#17191bee;padding:16px;min-width:0}#editor:fullscreen{overflow:auto;background:#141618}.calbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}.calbar button{cursor:pointer;background:linear-gradient(#303438,#17191b);border:1px solid #a56840;color:#ffb078;padding:9px 13px;border-radius:7px}.calbar label{display:flex;align-items:center;gap:6px}.calbar input:not([type=file]):not([type=checkbox]){width:110px}.calbar input[type=file]{max-width:230px}#plot{height:clamp(340px,58vh,760px);width:100%;background:#141618}#matrix{overflow:auto;max-height:55vh;margin-top:12px}#matrix table{border-collapse:collapse;width:max-content;min-width:100%;font-variant-numeric:tabular-nums}#matrix td,#matrix th{padding:7px 10px;border:1px solid #555;text-align:right;white-space:nowrap}#matrix td{cursor:cell}#matrix td.sel{outline:2px solid #ffb05c;outline-offset:-2px}#matrix th{background:#292c30;position:sticky;top:0;z-index:1}#status{color:#ffb078;overflow-wrap:anywhere}#editor button:disabled{opacity:.4;cursor:default}#editor input{cursor:text}#editor input[type=file],#editor input[type=checkbox],#editor select{cursor:pointer}

#plot{height:clamp(420px,76vh,900px)}@media(max-width:600px){#plot{height:440px}}

/* v219: dense calibration matrix; preserve exact cell text */
#editor #matrix{max-width:100%;max-height:55vh;overflow:auto;isolation:isolate}
#editor #matrix table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:11px;line-height:1.15;table-layout:auto}
#editor #matrix tr{height:24px}
#editor #matrix td,#editor #matrix th{box-sizing:border-box;height:24px;padding:2px 3px;border:0;border-right:1px solid #ffffff25;border-bottom:1px solid #ffffff25;white-space:nowrap;font-size:11px;line-height:1.15;text-align:right;min-width:0}
#editor #matrix th{position:static;background:#292c30;font-weight:600}
#editor #matrix tr:first-child th{position:sticky;top:0;z-index:3}
#editor #matrix tr th:first-child{position:sticky;left:0;z-index:2;background:#292c30}
#editor #matrix tr:first-child th:first-child{top:0;left:0;z-index:4}
#editor #matrix td{cursor:cell}
#editor #matrix td.sel{outline:2px solid #ffb05c;outline-offset:-2px}
@media(max-width:600px){#editor #matrix td,#editor #matrix th{height:28px;padding:3px 5px}}

#plot.editing,#plot.editing canvas,#plot.editing .drag{cursor:crosshair!important;touch-action:none}#pointinfo{color:#ffb078;font-variant-numeric:tabular-nums}#editor details summary{cursor:pointer}

#plot.grabbing-node,#plot.grabbing-node *{cursor:ns-resize!important}

#plot canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab!important}#plot.editing canvas{cursor:crosshair!important}#plot.grabbing-node canvas{cursor:ns-resize!important}
