.plot-tool{gap:14px;padding:20px 28px}.plot-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.plot-heading h1{margin:0;font-size:23px}.plot-heading p{color:var(--text-faint);margin:2px 0 0;font-size:12px}.plot-heading a{white-space:nowrap;font-size:12px}.plot-import{flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;display:flex}.plot-import label{margin:0;font-size:12px}.plot-import input[type=file]{max-width:270px;padding:6px;font-size:12px}.plot-import .hint{flex-basis:100%;margin:0}.plot-workbench{border:1px solid var(--border);border-radius:var(--radius);background:var(--panel);flex-direction:column;min-width:0;display:flex;overflow:hidden}.plot-side-controls{min-width:0}.plot-toolbar{border-bottom:1px solid var(--border-soft);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;display:flex}.plot-source{color:var(--text-dim);overflow-wrap:anywhere;min-width:0;font-size:12px}.plot-workbench button{min-height:32px;padding:5px 10px;font-size:11px}.plot-options{border-bottom:1px solid var(--border-soft);padding:8px 14px}.plot-options summary{cursor:pointer;color:var(--text-dim);font-size:12px}.plot-option-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding-top:10px;display:grid}.plot-option-grid .field{gap:4px;min-width:0}.plot-option-grid label{font-size:11px}.plot-option-grid select{min-height:34px;padding:7px 8px;font-size:12px}.plot-options .hint{margin:8px 0 0;font-size:11px}.plot-channels{flex-wrap:wrap;gap:6px 14px;min-height:39px;max-height:100px;padding:8px 14px;display:flex;overflow:auto}.plot-channels label{cursor:pointer;overflow-wrap:anywhere;align-items:center;gap:5px;max-width:100%;font-size:12px;display:flex}.plot-channels input{accent-color:var(--channel-color);width:15px;height:15px;margin:0}.plot-channels .plot-swatch{background:var(--channel-color);flex-shrink:0;width:14px;height:3px}.plot-canvas-wrap{background:var(--code-bg);height:clamp(250px,42dvh,480px);min-height:250px;position:relative}.plot-canvas-wrap canvas{touch-action:none;cursor:crosshair;width:100%;height:100%;display:block}.plot-empty{pointer-events:none;text-align:center;color:var(--text-faint);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:20px;display:flex;position:absolute;inset:0}.plot-empty strong{color:var(--text-dim);font-size:17px;font-weight:500}.plot-empty p{margin:0;font-size:12px}.plot-empty span{font-size:11px}.plot-range{border-top:1px solid var(--border-soft);flex-wrap:wrap;align-items:center;gap:8px;padding:8px 14px;display:flex}.plot-range input{width:88px;min-width:0;min-height:32px;font:12px var(--mono);padding:5px 8px}.plot-range label,.plot-range>span{margin:0;font-size:11px}.plot-range-note{color:var(--text-faint);margin-left:auto!important}.plot-table-wrap{border-top:1px solid var(--border-soft);max-height:228px;overflow:auto}.plot-table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:12px}.plot-table caption{text-align:left;color:var(--text-faint);white-space:normal;padding:7px 14px;font-size:11px}.plot-table th{color:var(--text-faint);background:var(--panel);font-weight:500;position:sticky;top:0}.plot-table th,.plot-table td{text-align:right;border-bottom:1px solid var(--border-soft);font-variant-numeric:tabular-nums;padding:5px 14px}.plot-table th:first-child,.plot-table td:first-child{text-align:left;text-overflow:ellipsis;max-width:210px;overflow:hidden}.plot-status{color:var(--text-faint);overflow-wrap:anywhere;margin:0;padding:8px 14px;font-size:11px}.plot-status[data-error=true]{color:var(--red-text)}.plot-diagnostics{color:var(--yellow-text);padding:0 14px 10px;font-size:11px}.plot-diagnostics summary{cursor:pointer}.plot-diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;margin:8px 0 0;font-size:11px;overflow:auto}.plot-paste-dialog,.serial-plot-dialog{border:1px solid var(--border);border-radius:var(--radius);color:var(--text);background:var(--bg);width:min(1100px,100vw - 32px);max-height:calc(100dvh - 32px);padding:16px;overflow:auto}.plot-paste-dialog::backdrop,.serial-plot-dialog::backdrop{background:#000000a6}.plot-dialog-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.plot-dialog-head h2{margin:0;font-size:17px}.plot-dialog-head .check{font-size:12px}.plot-paste-dialog textarea{width:100%;min-height:220px;font:12px var(--mono);margin-bottom:12px}.serial-plot-dialog .plot-canvas-wrap{height:clamp(230px,37dvh,420px)}.serial-plot-dialog .plot-options{padding-top:6px}.serial-plot-help{color:var(--text-faint);margin:10px 0 0;font-size:11px}#serialPlotOpen[data-active=true]{color:var(--green-text);border-color:var(--green)}@media (width>=921px){body:has(.plot-tool){height:100dvh}.plot-tool{flex:1 1 0;gap:10px;min-height:0;padding:14px 24px}.plot-heading,.plot-import{flex-shrink:0}.plot-import{gap:6px 10px;padding:8px 12px}.plot-import input[type=file]{padding:4px}.plot-import .hint{flex:160px;max-width:350px;margin-left:auto}.plot-tool>.plot-workbench,.serial-plot-dialog .plot-workbench{grid-template-rows:auto minmax(160px,1fr) auto auto auto auto;grid-template-columns:210px minmax(0,1fr);min-height:0;display:grid}.plot-tool>.plot-workbench{flex:1 1 0}.serial-plot-dialog .plot-workbench{height:min(620px,100dvh - 150px)}:is(.plot-tool,.serial-plot-dialog) .plot-side-controls{border-right:1px solid var(--border-soft);grid-area:1/1/7;min-height:0;overflow:auto}:is(.plot-tool,.serial-plot-dialog) .plot-toolbar{grid-area:1/2;padding:7px 10px}:is(.plot-tool,.serial-plot-dialog) .plot-option-grid{grid-template-columns:minmax(0,1fr)}:is(.plot-tool,.serial-plot-dialog) .plot-channels{flex-flow:column;max-height:none}:is(.plot-tool,.serial-plot-dialog) .plot-channels label{min-height:25px}:is(.plot-tool,.serial-plot-dialog) .plot-canvas-wrap{grid-area:2/2;height:auto;min-height:160px}:is(.plot-tool,.serial-plot-dialog) .plot-range{grid-area:3/2;padding:6px 10px}:is(.plot-tool,.serial-plot-dialog) .plot-range-note{display:none}:is(.plot-tool,.serial-plot-dialog) .plot-table-wrap{grid-area:4/2;max-height:144px}:is(.plot-tool,.serial-plot-dialog) .plot-table th,:is(.plot-tool,.serial-plot-dialog) .plot-table td{padding:3px 10px}:is(.plot-tool,.serial-plot-dialog) .plot-status{grid-area:5/2;padding:6px 10px}:is(.plot-tool,.serial-plot-dialog) .plot-diagnostics{grid-area:6/2;max-height:150px;overflow:auto}}@media (width<=760px){.plot-tool{gap:10px;padding:14px}.plot-heading h1{font-size:20px}.plot-heading p{max-width:240px}.plot-import{gap:8px;padding:10px}.plot-import input[type=file]{flex-basis:100%;max-width:100%}.plot-option-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.plot-toolbar,.plot-range{gap:6px;padding:8px 10px}.plot-toolbar .plot-source{flex-basis:100%}.plot-toolbar .spacer{display:none}.plot-channels{padding-inline:10px}.plot-canvas-wrap{height:290px}.plot-range-note{flex-basis:100%;margin-left:0!important}.plot-range input{width:70px}.plot-table th,.plot-table td{padding:6px 9px}.serial-plot-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:10px}.plot-dialog-head{flex-wrap:wrap}.serial-plot-dialog .plot-canvas-wrap{height:250px}}
