.plot-modal{width:min(1120px,96vw);max-width:1120px}.plot-editor{display:grid;grid-template-columns:310px minmax(0,1fr);gap:24px;align-items:start}.plot-sidebar{min-width:0;display:flex;flex-direction:column;gap:12px}.plot-section-title{display:flex;justify-content:space-between;font-weight:700}.plot-section-title span{color:#7c89a1;font:italic 16px Georgia}.plot-function{padding:12px;background:#f6f8fd;border:1px solid #e1e7f3;border-radius:13px;margin-bottom:10px}.plot-function-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}.plot-function-top input[type=checkbox]{width:16px;height:16px;min-height:16px;accent-color:#244bdc}.plot-function-top input[type=color]{width:25px;height:25px;min-height:25px;border:0;padding:0;background:none;cursor:pointer}.plot-function-top span{font:italic 18px Georgia;color:#66748d}.plot-function-top button{margin-left:auto;border:0;background:none;font-size:21px;min-height:24px;color:#7c89a1}.plot-expression{width:100%;font:20px/1.5 'Cambria Math',Georgia,serif!important;border:1px solid #dce3f2!important;border-radius:8px!important;padding:9px 11px!important;background:white}.plot-expression:focus{outline:2px solid #a1b5ff}.plot-expression[aria-invalid=true]{border-color:#d95c56!important}.plot-row-error,.plot-error{font-size:12px;color:#b53f37;line-height:1.5}.plot-error:empty,.plot-row-error:empty{display:none}.formula-keys{display:flex;gap:5px;flex-wrap:wrap}.formula-keys button{min-width:35px;padding:7px;border:1px solid #dfe5f2;border-radius:8px;background:white;font:16px Georgia;color:#244bdc}.formula-keys button:hover{background:#eef2ff}.plot-note{font-size:11px;color:#76839a;line-height:1.7;margin:0}.plot-param{display:grid!important;grid-template-columns:18px 1fr 64px;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #edf0f7}.plot-param input[type=number]{width:64px!important;padding:6px!important;min-width:0}.plot-param input[type=range]{min-width:0;width:100%;accent-color:#244bdc}.plane-details{border-top:1px solid #e1e7f3;padding-top:14px}.plane-details summary{cursor:pointer;font-size:13px;font-weight:700;margin-bottom:13px}.plane-ranges{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.plane-ranges label{font-size:11px;color:#66748c;display:grid;gap:6px}.plane-ranges input,.plane-ranges select{min-width:0;width:100%;border:1px solid #dce3f2;border-radius:8px;padding:8px;background:#fff;font:12px Arial;box-sizing:border-box}.plot-check{display:flex!important;align-items:center;gap:7px;font-size:11px;margin:10px 0}.plot-check input{width:15px!important;min-height:15px!important;accent-color:#244bdc}.plane-toggles{display:flex;gap:12px}.plot-preview{min-width:0;background:#f7f9fe;border:1px solid #e0e6f2;border-radius:16px;padding:12px;position:sticky;top:0}.plot-preview-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;color:#697791;margin-bottom:12px}.plot-preview-head div{display:flex;gap:5px}.plot-preview-head button{border:1px solid #dce3f2;background:white;border-radius:7px;padding:5px 9px;font-size:11px;color:#244bdc}.plot-preview canvas{width:100%;height:auto;display:block;border-radius:7px;touch-action:none;cursor:grab}.plot-preview canvas:active{cursor:grabbing}.plot-preview>.plot-note{margin-top:10px}#plotLegend{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}#plotLegend span{background:white;border:1px solid #e2e7f2;border-radius:7px;padding:7px 9px;font:14px Georgia;overflow-wrap:anywhere;max-width:100%}#scratchEraseToggle{margin-top:6px}#scratchEraseToggle.active{background:#fff4c6;color:#806000}@media(max-width:760px){.plot-editor{grid-template-columns:1fr;gap:15px}.plot-preview{position:static;grid-row:1}.plot-sidebar{max-height:none}.plot-modal{width:96vw}.plot-preview-head{flex-wrap:wrap}.plot-expression{font-size:18px!important}}
@media(min-width:761px){.plot-modal{overflow:hidden}.plot-modal .plot-sidebar{max-height:calc(90dvh - 140px);overflow-y:auto;padding-right:10px;scrollbar-width:thin}.plot-modal .modal-head{margin-bottom:18px}}
.plot-preview canvas.plot-placing-point{cursor:crosshair}
.plot-point-controls{display:flex;flex-wrap:wrap;align-items:end;gap:7px;margin-bottom:8px}
.plot-point-controls label{display:grid;gap:3px;font-size:12px}
.plot-point-controls input{width:76px;min-width:0;min-height:34px}
.plot-point-controls button{min-height:34px}
.plot-point-controls button[aria-pressed=true]{background:#244bdc;color:white}
#plotPoints,#pythonFileList{padding:0;margin:8px 0;list-style:none;max-height:105px;overflow:auto}
#plotPoints li,#pythonFileList li{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:3px 0;font-size:12px;overflow-wrap:anywhere}
#plotPoints button,#pythonFileList button{font-size:12px;min-height:26px;padding:3px 8px}
