.gfx-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.gfx-heading h1{margin:5px 0;font-size:26px}.gfx-heading p{max-width:740px;line-height:1.6;margin:4px 0;color:var(--gfx-muted)}.gfx-eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:800;color:var(--gfx-accent)}
.gfx-root,.gfx-dialog{--gfx-bg:#102630;--gfx-panel:#132e3b;--gfx-line:#365260;--gfx-ink:#e9f3f8;--gfx-muted:#abc0cd;--gfx-accent:#63c9ec;color:var(--gfx-ink)}
html[data-theme=light] .gfx-root,html[data-theme=light] .gfx-dialog{--gfx-bg:#fff;--gfx-panel:#f5f8fc;--gfx-line:#cfdae6;--gfx-ink:#142f45;--gfx-muted:#536b80;--gfx-accent:#1762ab}
.gfx-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.gfx-actions button{white-space:nowrap}.gfx-library-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px;background:var(--gfx-bg);border:1px solid var(--gfx-line);border-radius:10px;margin-bottom:22px}.gfx-library-bar input{flex:1;min-width:170px}.gfx-library-bar select{max-width:220px}
.gfx-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:20px}.gfx-card{border:1px solid var(--gfx-line);border-radius:12px;overflow:hidden;background:var(--gfx-bg);box-shadow:0 5px 18px #132d4710;display:flex;flex-direction:column}.gfx-preview{display:block;width:100%;height:190px;object-fit:contain;background:#f2f5f8;border-bottom:1px solid var(--gfx-line)}.gfx-card-body{padding:18px;flex:1;display:flex;flex-wrap:wrap;gap:8px;align-content:flex-start}.gfx-card-body h2{font-size:17px;line-height:1.3;flex-basis:100%;margin:3px 0}.gfx-card-body p{font-size:12px;line-height:1.6;color:var(--gfx-muted);flex-basis:100%;min-height:55px;margin:2px 0 10px}.gfx-card-body button{font-size:12px}.gfx-category{text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:1.2px;color:var(--gfx-accent);flex-basis:100%}.gfx-empty{padding:45px;border:1px dashed var(--gfx-line);border-radius:10px;grid-column:1/-1;color:var(--gfx-muted)}
.gfx-notice{padding:13px 17px;border:1px solid var(--gfx-line);border-radius:8px;margin-bottom:18px;background:var(--gfx-panel);font-size:13px}.gfx-error{color:#d54a40!important}.gfx-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}.gfx-workspace.gfx-editing{grid-template-columns:minmax(0,1fr) 300px}.gfx-drawing{min-width:0}.gfx-stage{position:relative;overflow:hidden;background:#edf2f5;box-shadow:0 4px 22px #0a253916;border-radius:10px;border:1px solid var(--gfx-line);width:100%}.gfx-canvas{position:absolute;top:0;left:0;transform-origin:top left}.gfx-background{position:absolute;width:100%;height:100%;object-fit:fill;pointer-events:auto;user-select:none}
.gfx-widget{position:absolute;box-sizing:border-box;padding:12px 15px;border-radius:8px;overflow:hidden;font-family:system-ui,sans-serif;line-height:1.16;display:flex;flex-direction:column;justify-content:center;gap:5px;font-variant-numeric:tabular-nums}.gfx-widget-label{font-size:.48em;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gfx-widget-value{font-size:1em;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gfx-widget-status{font-size:.37em;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.85}.gfx-widget [hidden]{display:none}.gfx-widget[data-available=false] .gfx-widget-value{opacity:.65}.gfx-editing .gfx-widget{cursor:move;touch-action:none}.gfx-selected{outline:3px solid #2580e2!important;outline-offset:3px}.gfx-resize{position:absolute;right:0;bottom:0;width:23px;height:23px;background:linear-gradient(135deg,transparent 50%,#2580e2 51%);cursor:nwse-resize;touch-action:none}.gfx-linked{cursor:pointer}.gfx-linked:focus-visible{outline:3px solid #2580e2;outline-offset:-3px}
.gfx-inspector{max-height:calc(100vh - 155px);overflow:auto;position:sticky;top:90px;padding:18px;border:1px solid var(--gfx-line);border-radius:10px;background:var(--gfx-bg);display:grid;gap:12px}.gfx-inspector h2{font-size:15px;margin:2px 0 0}.gfx-inspector hr{width:100%;border:0;border-top:1px solid var(--gfx-line)}.gfx-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;font-weight:600;color:var(--gfx-muted)}.gfx-field input,.gfx-field select{width:100%;box-sizing:border-box}.gfx-field:has(input[type=checkbox]){flex-direction:row;align-items:center;justify-content:space-between}.gfx-field input[type=checkbox]{width:auto}.gfx-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.gfx-help{font-size:11px!important;line-height:1.65;color:var(--gfx-muted);margin:12px 0}.gfx-save-state{font-size:11px;color:var(--gfx-muted)}.gfx-more{margin-top:22px}.gfx-danger{color:#d54a40!important}.gfx-form{display:grid;gap:15px;max-width:600px;margin:0 auto;padding:20px}.gfx-dialog{background:var(--gfx-bg);border:1px solid var(--gfx-line);border-radius:16px;padding:26px;width:min(1100px,90vw);max-height:85vh;overflow:auto;box-shadow:0 25px 85px #0005}.gfx-dialog::backdrop{background:#081f30aa;backdrop-filter:blur(3px)}.gfx-dialog>.gfx-preview{height:auto;max-height:60vh;border:1px solid var(--gfx-line);border-radius:9px}.gfx-dialog>.gfx-actions{margin-bottom:20px}.gfx-dialog button{cursor:pointer}.gfx-dialog input,.gfx-dialog select,.gfx-root input,.gfx-root select{background:var(--gfx-panel);color:var(--gfx-ink);border:1px solid var(--gfx-line);border-radius:6px;padding:9px;font:inherit;min-width:0}.gfx-dialog button{border:1px solid var(--gfx-line);border-radius:6px;padding:10px 15px;color:var(--gfx-ink);background:var(--gfx-panel)}.gfx-dialog .primary-button,.gfx-root .primary-button{background:#1769c3;color:white;border:1px solid #1769c3}.gfx-dialog h2{color:var(--gfx-ink)}
@media(min-width:1800px){.gfx-cards{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}.gfx-preview{height:210px}}
@media(max-width:1000px){.gfx-workspace.gfx-editing{grid-template-columns:1fr}.gfx-inspector{position:static;max-height:none;grid-template-columns:1fr 1fr}.gfx-inspector>h2,.gfx-inspector>p,.gfx-inspector>hr{grid-column:1/-1}.gfx-heading{flex-direction:column}.gfx-dialog{padding:16px}}
@media print{.gfx-heading .gfx-actions,.gfx-inspector,.gfx-help{display:none!important}.gfx-workspace.gfx-editing{display:block}.gfx-resize{display:none}.gfx-selected{outline:none!important}}
.gfx-screen-cards{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1400px}.gfx-screen-cards .gfx-preview{height:245px}.gfx-screen-cards .gfx-card-body p{min-height:0}.gfx-editor-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;padding:12px;background:var(--gfx-panel);border:1px solid var(--gfx-line);border-radius:10px}.gfx-editor-bar .gfx-help{margin:0 8px}.gfx-editor-bar [draggable=true]{cursor:grab}.gfx-picture-tray{border:1px solid var(--gfx-line);border-radius:10px;padding:16px;background:var(--gfx-bg);margin-bottom:16px}.gfx-picture-tray[hidden]{display:none}.gfx-picture-tiles{display:flex;gap:12px;overflow-x:auto;padding-bottom:12px}.gfx-picture-tile{flex:0 0 170px;padding:0;border:1px solid var(--gfx-line);border-radius:8px;overflow:hidden;background:var(--gfx-panel);color:var(--gfx-ink);cursor:grab;text-align:left}.gfx-picture-tile:hover{border-color:var(--gfx-accent)}.gfx-picture-tile .gfx-preview{height:108px;pointer-events:none}.gfx-picture-tile span{display:block;padding:10px;font-size:12px}.gfx-drop-active{outline:4px dashed #2580e2;outline-offset:3px}.gfx-advanced{border-top:1px solid var(--gfx-line);padding-top:12px;font-size:12px}.gfx-advanced summary{cursor:pointer;color:var(--gfx-muted);padding:3px 0}.gfx-advanced[open]{display:grid;gap:12px}.gfx-advanced>.gfx-field,.gfx-advanced>.gfx-two,.gfx-advanced>button{margin-top:12px}.gfx-widget[data-type=text] .gfx-widget-label{font-size:.75em;white-space:normal;overflow-wrap:anywhere}.gfx-widget:focus-visible{outline:3px solid #2580e2;outline-offset:3px}.gfx-inspector .gfx-help{margin:0}.gfx-widget-label{user-select:none}.gfx-editing .gfx-widget{user-select:none}.gfx-editing .gfx-stage{min-height:0}
@media(max-width:650px){.gfx-screen-cards{grid-template-columns:1fr}.gfx-inspector{grid-template-columns:1fr}.gfx-heading .gfx-actions{gap:6px}.gfx-heading .gfx-actions button{white-space:normal}.gfx-editor-bar{gap:6px}.gfx-editor-bar .gfx-help{flex-basis:100%}}
@media print{.gfx-editor-bar,.gfx-picture-tray{display:none!important}}
.gfx-drag-source{touch-action:none;user-select:none;cursor:grab}.gfx-drag-ghost{position:fixed;z-index:10000;pointer-events:none;background:#1769c3;color:white;padding:10px 16px;border-radius:8px;box-shadow:0 4px 18px #0004;font:600 13px system-ui}.gfx-picture-tile span{pointer-events:none}
.gfx-widget-label{font-size:.8em}.gfx-widget-status{font-size:.5em}
.gfx-widget{padding:8px 12px;gap:3px}.gfx-widget-label,.gfx-widget-value,.gfx-widget-status{flex-shrink:0}
.gfx-viewport{height:clamp(280px,calc(100dvh - 285px),780px);overflow:auto;display:flex;background:var(--gfx-panel);border:1px solid var(--gfx-line);border-radius:10px;min-width:0}
.gfx-editing .gfx-viewport{height:clamp(280px,calc(100dvh - 390px),740px)}
.gfx-viewport .gfx-stage{flex:none;margin:auto;box-sizing:content-box;border:0;border-radius:6px}
.gfx-editor-bar select[aria-label="Canvas zoom"]{margin-left:auto;width:auto;font-size:12px}
@media(max-width:650px){.gfx-editor-bar select[aria-label="Canvas zoom"]{margin-left:0}.gfx-editing .gfx-viewport{height:330px}}
@media print{.gfx-viewport,.gfx-editing .gfx-viewport{height:650px;overflow:hidden}}
.gfx-scene{position:absolute;top:0;left:0;width:100%;background:#eef2f4;overflow:hidden}
.gfx-summary{position:absolute;left:0;width:100%;display:flex;overflow:hidden;border:1px solid var(--gfx-line);border-radius:6px;background:#111f27;box-sizing:border-box}
.gfx-summary[hidden]{display:none}
.gfx-summary .gfx-widget{position:relative;flex:1;min-width:0;border:0;border-right:1px solid #294a57;border-radius:0;padding:.846154em 1em;gap:.384615em;background:#111f27;color:#fff}
.gfx-summary .gfx-widget:last-child{border-right:0}
.gfx-summary .gfx-widget-label{font-size:.76923em;font-weight:400;color:#83a0ac}
.gfx-summary .gfx-widget-value{font-size:1em;font-weight:700}
.gfx-summary .gfx-widget-status{font-size:9px}
.gfx-summary .gfx-selected{outline-offset:-3px}
.gfx-widget[data-preset=callout]{font-family:inherit;padding:.909091em 1.090909em;gap:.454545em;border-radius:.636364em;border:1px solid #335363!important;background:rgba(7,24,33,.96)!important;color:#eaf5f8!important;box-shadow:0 .727273em 1.818182em #0003;justify-content:center}
.gfx-widget[data-preset=callout] .gfx-widget-label{font-size:1.090909em;font-weight:700}
.gfx-widget[data-preset=callout] .gfx-widget-value{font-size:1em;font-weight:400;color:#8fd6f0}
.gfx-widget[data-preset=callout] .gfx-widget-status{font-size:.85em}
.gfx-widget[data-tone=ok] .gfx-widget-value{color:#16ce8d}
.gfx-widget[data-tone=warning] .gfx-widget-value{color:#ffd95a}
.gfx-editing .gfx-widget[data-hidden=true]{opacity:.4}
.gfx-widget[hidden]{display:none}
html[data-theme=light] .gfx-widget[data-preset=callout]{background:rgba(255,255,255,.95)!important;color:#142f45!important;border-color:#b7cbdc!important}
html[data-theme=light] .gfx-widget[data-preset=callout] .gfx-widget-value{color:#111}
html[data-theme=light] .gfx-summary,html[data-theme=light] .gfx-summary .gfx-widget{background:#f5f8fc;color:#142f45;border-color:#cfdae6}
html[data-theme=light] .gfx-summary .gfx-widget-label{color:#536b80}
html[data-theme=light] .gfx-widget[data-tone=ok] .gfx-widget-value{color:#087747}
html[data-theme=light] .gfx-widget[data-tone=warning] .gfx-widget-value{color:#915700}
.gfx-widget[data-preset=callout][data-accent=true]{border-color:#24bfe6!important;box-shadow:0 0 0 1px #24bfe64d,0 8px 25px #0005}
.gfx-widget[data-preset=callout][data-border=false]{border-color:transparent!important}
.gfx-widget[data-preset=callout][data-background=transparent]{background:transparent!important}
.gfx-summary .gfx-widget[data-preset=custom] .gfx-widget-label{color:inherit}
.gfx-breaker-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.gfx-breaker-list[hidden]{display:none}.gfx-breaker-list .gfx-widget{position:relative;width:170px;min-height:58px}
.gfx-widget[data-type=breaker][data-preset=callout]{padding:.35em .6em;gap:.2em}.gfx-widget[data-type=breaker] .gfx-widget-label{font-size:1em}.gfx-widget[data-type=breaker] .gfx-widget-value{font-size:.9em}
.gfx-breaker-dialog{max-width:650px}.gfx-breaker-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gfx-breaker-readings section{display:grid;gap:8px;padding:16px;border:1px solid var(--gfx-line);border-radius:8px;background:var(--gfx-panel)}.gfx-breaker-readings span,.gfx-breaker-readings small{font-size:12px;color:var(--gfx-muted)}.gfx-breaker-readings strong{font-size:23px;overflow-wrap:anywhere}
@media(max-width:500px){.gfx-breaker-readings{grid-template-columns:1fr}}
/* Breaker faces, not floating value cards, are the read-only click targets. */
.gfx-widget[data-preset=hotspot]{padding:0;border:2px solid transparent!important;background:transparent!important;box-shadow:none;border-radius:6px;overflow:visible;justify-content:flex-start;color:var(--gfx-ink)}
.gfx-widget[data-preset=hotspot] .gfx-widget-label{position:absolute;top:3px;left:3px;max-width:calc(100% - 6px);box-sizing:border-box;padding:5px 8px;border-radius:4px;background:var(--gfx-bg);color:var(--gfx-ink);font:600 var(--gfx-hotspot-font-size,16px)/1.25 system-ui;opacity:0;pointer-events:none}
.gfx-widget[data-preset=hotspot]:hover,.gfx-widget[data-preset=hotspot]:focus-visible{border-color:#36b6ed!important;background:#36b6ed18!important;outline-offset:0}
.gfx-widget[data-preset=hotspot]:hover .gfx-widget-label,.gfx-widget[data-preset=hotspot]:focus-visible .gfx-widget-label,.gfx-editing .gfx-widget[data-preset=hotspot] .gfx-widget-label{opacity:1}
.gfx-editing .gfx-widget[data-preset=hotspot]{border:2px dashed #36b6ed!important;background:#36b6ed0a!important}
.gfx-editing .gfx-widget[data-preset=hotspot].gfx-selected{border-style:solid!important}
.gfx-viewport.gfx-full-size{height:clamp(360px,calc(100dvh - 280px),1400px);max-height:none;min-height:0;overflow:hidden}
.gfx-viewport.gfx-full-size[data-enlarged=true]{height:auto}
/* Summary text is ordinary screen-size UI, never reduced by image zoom. */
.gfx-summary.gfx-summary-detached{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-top:12px;width:100%;min-height:70px;overflow:visible}
.gfx-summary.gfx-summary-detached[hidden]{display:none}
.gfx-summary-detached .gfx-widget{min-height:70px;padding:12px 14px;gap:5px;overflow:visible}
.gfx-summary-detached .gfx-widget-label{font-size:11px;white-space:normal}
.gfx-summary-detached .gfx-widget-value{font-size:1em;white-space:normal;overflow-wrap:anywhere}
.gfx-summary-detached .gfx-widget-status{font-size:11px;white-space:normal}
.gfx-summary-detached .gfx-widget-label,.gfx-summary-detached .gfx-widget-value,.gfx-summary-detached .gfx-widget-status{overflow:visible;text-overflow:clip}
@media print{.gfx-editing .gfx-widget[data-preset=hotspot]{border-color:transparent!important;background:transparent!important}.gfx-widget[data-preset=hotspot] .gfx-widget-label{display:none}}
