/* STASTUC v1.8 — scientific figure editor */
.plot-wrap{position:relative}.st-figure-edit-button{position:absolute;z-index:6;top:8px;right:8px;display:inline-flex;align-items:center;gap:6px;border:1.4px solid #7895ad;border-radius:5px;background:rgba(255,255,255,.95);color:#12395a;padding:6px 9px;font:700 10px Arial,sans-serif;cursor:pointer;box-shadow:0 2px 8px rgba(11,78,120,.08)}.st-figure-edit-button:hover{background:#eaf4fa;border-color:#126da1}.st-figure-edit-button.is-saved:after{content:'';width:6px;height:6px;border-radius:50%;background:#126da1}.st-figure-edit-button+svg{margin-top:2px}
.st-figure-modal[hidden]{display:none!important}.st-figure-modal{position:fixed;inset:0;z-index:220000;display:grid;place-items:center;padding:12px;font-family:Arial,sans-serif}.st-figure-backdrop{position:absolute;inset:0;background:rgba(4,12,22,.76);backdrop-filter:blur(3px)}.st-figure-dialog{position:relative;width:min(1480px,98vw);height:min(900px,96vh);display:grid;grid-template-rows:44px minmax(0,1fr) 38px;background:#e8eef4;color:#14293c;border:1.5px solid #6f899f;border-radius:9px;box-shadow:0 30px 90px rgba(0,0,0,.42);overflow:hidden}.st-figure-titlebar{display:flex;align-items:center;justify-content:space-between;background:#f9fbfd;border-bottom:1.5px solid #9eb1c2;padding:0 9px 0 12px}.st-figure-title{display:flex;align-items:center;gap:9px;min-width:0;font-size:12px}.st-figure-title strong{color:#0b4e78}.st-figure-title #stFigureName{color:#61778a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.st-figure-appmark{display:grid;place-items:center;width:27px;height:27px;border-radius:5px;background:#0b5f98;color:#fff;font-size:9px;font-weight:800}.st-window-button{width:35px;height:31px;border:0;border-radius:4px;background:transparent;color:#42596d;font:400 22px/1 Arial;cursor:pointer}.st-window-button:hover{background:#e4edf4;color:#111}
.st-figure-main{display:grid;grid-template-columns:52px 285px minmax(0,1fr);min-height:0;overflow:hidden}.st-figure-leftbar{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 6px;background:#f8fafc;border-right:1.5px solid #9fb2c2}.st-side-tool{width:39px;height:39px;border:1.3px solid transparent;border-radius:5px;background:transparent;color:#27465e;font:700 16px Arial,sans-serif;cursor:pointer}.st-side-tool:hover,.st-side-tool.active{background:#dfeef7;border-color:#8ca9bf;color:#07598e}.st-side-spacer{flex:1}.st-figure-properties{background:#f7fafc;border-right:1.5px solid #9fb2c2;overflow:auto;padding:12px}.st-property-panel{display:none}.st-property-panel.active{display:block}.st-property-panel h3{font-size:12px;margin:0 0 12px;color:#0b4e78;border-bottom:1px solid #ccd9e3;padding-bottom:8px}.st-property-panel>label,.st-pair>label{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:center;gap:8px;margin-bottom:9px;font-size:10px;color:#50677a}.st-property-panel input,.st-property-panel select{width:100%;min-width:0;height:32px;border:1.25px solid #9fb2c2;border-radius:4px;background:#fff;color:#152a3c;padding:0 7px;font:11px Arial,sans-serif}.st-property-panel input[type=color]{padding:3px}.st-property-panel input[type=range]{padding:0}.st-pair{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:6px}.st-pair>label:first-child{grid-template-columns:86px minmax(0,1fr)}.st-check{display:flex!important;align-items:center!important;justify-content:center!important;grid-template-columns:1fr!important;height:32px;border:1.25px solid #9fb2c2;border-radius:4px;background:#fff}.st-check input{width:14px;height:14px}.st-check span{font-weight:800}.st-toggle{display:flex!important;grid-template-columns:18px 1fr!important;gap:7px!important;border:1px solid #c3d0da;border-radius:4px;background:#fff;padding:7px 8px}.st-toggle input{width:14px;height:14px}.st-export-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.st-export-grid button{height:35px;border:1.25px solid #829db3;border-radius:4px;background:#fff;color:#0b4e78;font:700 10px Arial;cursor:pointer}.st-export-grid button:hover{background:#e8f3f9}.st-export-grid button:last-child{grid-column:1/-1}.st-export-note{font-size:9px;line-height:1.5;color:#667c8e;margin-top:10px}
.st-figure-workspace{min-width:0;min-height:0;overflow:auto;background:#cbd5de;padding:18px}.st-preview-viewport{min-width:760px;min-height:100%;display:flex;align-items:flex-start;justify-content:center}.st-preview-stage{width:min(1120px,100%);min-height:540px;background:#fff;border:1.5px solid #8ea4b6;box-shadow:0 8px 28px rgba(18,45,67,.16);padding:24px}.st-preview-stage>svg{display:block;width:100%;height:auto;background:#fff}.st-figure-statusbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 8px 0 12px;background:#f8fafc;border-top:1.5px solid #9eb1c2;color:#61778a;font-size:10px}.st-figure-statusbar>div{display:flex;gap:4px}.st-status-btn{width:31px;height:28px;border:1.2px solid #91a7b9;border-radius:4px;background:#fff;color:#294a63;font:700 15px Arial;cursor:pointer}.st-status-btn.primary{background:#0b5f98;border-color:#0b5f98;color:#fff}.st-figure-modal-open{overflow:hidden!important}
@media(max-width:950px){.st-figure-main{grid-template-columns:48px 235px minmax(0,1fr)}.st-preview-stage{padding:15px}}@media(max-width:720px){.st-figure-modal{padding:3px}.st-figure-dialog{width:99vw;height:98vh}.st-figure-main{grid-template-columns:44px minmax(0,1fr)}.st-figure-properties{position:absolute;left:44px;top:44px;bottom:38px;width:245px;z-index:8;box-shadow:8px 0 22px rgba(0,0,0,.16)}.st-figure-workspace{grid-column:2;padding:8px}.st-preview-viewport{min-width:680px}.st-figure-title #stFigureName{display:none}}
@media print{.st-figure-edit-button,.st-figure-modal{display:none!important}}
