.glb-stage{position:relative;height:510px;min-height:160px;background:#0b1628;touch-action:none;overflow:hidden}.glb-stage.is-dragging{outline:3px solid #94c9ff;outline-offset:-5px}.glb-stage canvas{display:block;width:100%;height:100%}
.glb-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#eaf1ff;pointer-events:none;padding:20px}.glb-empty[hidden]{display:none}.glb-empty svg{width:76px;height:76px;fill:none;stroke:#94c9ff;stroke-width:1.5;margin-bottom:22px}.glb-empty h2{font-size:23px;color:#eaf1ff;margin:10px 0}.glb-empty p{color:#b4c5df;font-size:12px;line-height:1.8}.glb-empty>span{font-size:10px;color:#8ba4c8;margin-top:12px}.glb-empty .glb-empty-eyebrow{font-size:9px;letter-spacing:2px;color:#9db4d5;margin:0}
.glb-model-details{padding:8px 2px 20px;overflow-wrap:anywhere}.glb-model-details strong{font-size:11px;font-weight:600;color:#315582}.glb-model-details p{font-size:10px;line-height:1.8;color:#657997;margin-top:9px}.glb-views{gap:12px}.glb-views .gerber-face-buttons{flex-wrap:wrap}.glb-editor button:disabled{opacity:.45;cursor:default}.glb-toolbar #glb-fullscreen{background:#eaf2ff;border:1px solid #cddcf2;color:#315e9e;font-weight:650;padding:7px 11px;gap:7px}.glb-toolbar #glb-fullscreen:hover{background:#d8e5f7;border-color:#85a5d2}.glb-toolbar #glb-fullscreen[aria-pressed=true]{background:#315e9e;border-color:#315e9e;color:#fff}.glb-editor .gerber-statusbar{flex-wrap:wrap;gap:8px;overflow-wrap:anywhere}
.glb-editor:fullscreen,.glb-editor.is-fullscreen{width:100%;height:100%;border:0;border-radius:0;background:#f5f8fe;display:flex;flex-direction:column}.glb-editor.is-fullscreen{position:fixed;inset:0;z-index:10000;width:100vw;height:100dvh}.glb-editor:fullscreen .gerber-workspace,.glb-editor.is-fullscreen .gerber-workspace{flex:1;min-height:0}.glb-editor:fullscreen .gerber-main,.glb-editor.is-fullscreen .gerber-main{display:flex;flex-direction:column;min-height:0}.glb-editor:fullscreen .glb-stage,.glb-editor.is-fullscreen .glb-stage{flex:1;height:auto;min-height:160px}.glb-editor:fullscreen .gerber-sidebar,.glb-editor.is-fullscreen .gerber-sidebar{min-height:0;overflow:auto}.glb-editor:fullscreen .gerber-titlebar,.glb-editor.is-fullscreen .gerber-titlebar,.glb-editor:fullscreen .gerber-message,.glb-editor.is-fullscreen .gerber-message{flex:none}
@media(max-width:720px){.glb-stage{height:400px}.glb-empty h2{font-size:19px}.glb-empty svg{width:60px;height:60px;margin-bottom:16px}.glb-model-details{padding:0}.glb-model-details p{display:none}.glb-views{gap:8px;padding:8px 10px}.glb-views .gerber-appearance-title{font-size:9px}.glb-views .gerber-face-buttons{gap:0}.glb-views .gerber-face-buttons button{padding:5px 7px}.glb-toolbar .gerber-tool-group{padding-right:4px;gap:2px}.glb-toolbar #glb-fullscreen{padding:7px}.glb-toolbar{gap:4px}.glb-editor:fullscreen .gerber-workspace,.glb-editor.is-fullscreen .gerber-workspace{display:flex;flex-direction:column}.glb-editor:fullscreen .gerber-sidebar,.glb-editor.is-fullscreen .gerber-sidebar{max-height:28vh;flex:none}.glb-editor:fullscreen .gerber-main,.glb-editor.is-fullscreen .gerber-main{flex:1}}

.glb-export-option{display:inline-flex;align-items:center;gap:6px;min-height:34px;margin:0;color:#536c90;font-size:10px;white-space:nowrap;cursor:pointer}.glb-export-option input{width:14px;height:14px;margin:0;accent-color:#2359d9}.glb-export-option input:focus-visible{outline:2px solid #779de6;outline-offset:2px}.glb-toolbar .gerber-display-tools{gap:5px}@media(max-width:720px){.glb-toolbar .gerber-display-tools{width:auto;justify-content:flex-end}.glb-export-option{margin-right:auto}}

.glb-resolution-option{display:inline-flex;align-items:center;gap:6px;margin:0;color:#536c90;font-size:10px;white-space:nowrap}.glb-resolution-option select{width:auto;min-width:110px;padding:6px 24px 6px 8px;border:1px solid #cddcf2;border-radius:5px;background:#fff;color:#315582;font-size:10px}.glb-resolution-option select:focus-visible{outline:2px solid #779de6;outline-offset:2px}.glb-toolbar .gerber-display-tools{max-width:100%}@media(max-width:720px){.glb-resolution-option{margin-right:auto}.glb-resolution-option>span{font-size:9px}.glb-export-option{margin-right:0}}

.glb-views .glb-background-option{display:inline-flex;align-items:center;gap:8px;margin:0 0 0 auto;color:#536c90;font-size:11px;white-space:nowrap}.glb-background-option input[type=color]{width:32px;height:28px;padding:2px;border:1px solid #cddcf2;border-radius:5px;background:#fff;cursor:pointer}.glb-background-option input:focus-visible{outline:2px solid #779de6;outline-offset:2px}@media(max-width:720px){.glb-views .glb-background-option{font-size:10px;margin-left:0}}

.glb-background-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-left:auto;max-width:100%}.glb-views .glb-background-controls .glb-background-option{margin:0}.glb-background-presets{display:flex;gap:4px}.glb-background-presets button{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #cddcf2;border-radius:5px;background:#fff;color:#536c90;font-size:10px;cursor:pointer}.glb-background-presets button[aria-pressed=true]{background:#edf4ff;border-color:#789aca;color:#315e9e}.glb-background-presets button:focus-visible{outline:2px solid #779de6;outline-offset:2px}.glb-swatch{width:11px;height:11px;border:1px solid #b8c8df;border-radius:3px}.glb-swatch-white{background:#fff}.glb-swatch-black{background:#000}.glb-swatch-gray{background:#808080}@media(max-width:720px){.glb-background-controls{margin-left:0;gap:8px}}

.glb-axes{position:absolute;bottom:12px;left:12px;width:100px;height:100px;z-index:2;pointer-events:none;border:1px solid #ffffff20;border-radius:12px;background:#0b1628dc}.glb-axes[hidden]{display:none}.glb-axes svg{display:block;width:100%;height:100%}.glb-axes line{stroke:currentColor;stroke-width:2}.glb-axes g>circle{stroke:currentColor;stroke-width:1.5}.glb-axes text{fill:currentColor;font:700 11px Arial,sans-serif;text-anchor:middle;dominant-baseline:middle}.glb-axis-x{color:#ef6363}.glb-axis-y{color:#63c58d}.glb-axis-z{color:#70a8ff}@media(max-width:720px){.glb-axes{width:80px;height:80px;left:8px;bottom:8px}}

.glb-axes{pointer-events:auto}.glb-axes g[role=button]{cursor:pointer;outline:none}.glb-axes .glb-axis-hit{fill:transparent;stroke:none;pointer-events:all}.glb-axes g[role=button]:hover .glb-axis-hit,.glb-axes g[role=button]:focus-visible .glb-axis-hit{fill:currentColor;fill-opacity:.18;stroke:currentColor;stroke-width:1}.glb-axes g[aria-pressed=true] text{font-weight:900;text-decoration:underline}

.glb-exportbar{gap:10px 14px;background:#f8faff}.glb-exportbar .glb-export-option,.glb-exportbar .glb-resolution-option{margin:0}.glb-exportbar #glb-export-png{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:7px 10px;border:1px solid #cddcf2;border-radius:5px;background:#eaf2ff;color:#315e9e;font-size:11px;font-weight:650}.glb-exportbar #glb-export-png:hover:not(:disabled){background:#d8e5f7;border-color:#85a5d2}.glb-exportbar #glb-export-png:focus-visible{outline:2px solid #779de6;outline-offset:2px}.glb-exportbar .gerber-icon{width:17px;height:17px}@media(max-width:720px){.glb-exportbar{gap:8px 12px;padding:10px}.glb-exportbar #glb-export-png{font-size:10px}.glb-toolbar{flex-wrap:wrap}.glb-toolbar .gerber-display-tools{margin-left:auto}}
.glb-page .gerber-heading{background:linear-gradient(110deg,var(--brand-soft),var(--canvas));border-color:var(--line)}
.glb-page .gerber-heading h1,.glb-page .gerber-titlebar strong{color:var(--ink)}
.glb-page .gerber-heading h1 span,.glb-page .gerber-titlebar .gerber-icon{color:var(--brand)}
.glb-page .gerber-banner-icon{color:var(--brand);background:var(--brand-soft);border-color:var(--line)}
.glb-page .gerber-heading p,.glb-page .gerber-local{color:var(--muted);border-color:var(--line)}
.glb-page .gerber-editor{background:var(--canvas);border-color:var(--line);box-shadow:0 12px 40px #1324420b}
.glb-page .gerber-titlebar,.glb-page .gerber-toolbar{background:var(--paper);border-color:var(--line)}
.glb-page .gerber-version,.glb-page .gerber-ready{color:var(--muted);border-color:var(--line)}
.glb-page .gerber-ready i{background:var(--brand)}
.glb-page .gerber-sidebar{background:var(--canvas);border-color:var(--line)}
.glb-page .gerber-panel-label,.glb-page .gerber-panel-label>span:last-child,.glb-page .gerber-file-limit,.glb-page .gerber-sidebar-note,.glb-page .gerber-sidebar-note small{color:var(--muted)}
.glb-page .gerber-layer-title{border-color:var(--line)}
.glb-page .gerber-upload{color:var(--brand-dark);background:var(--brand-soft);border-color:#b9cceb}
.glb-page .gerber-upload:hover,.glb-page .gerber-upload:focus-within{outline-color:var(--brand)}
.glb-page .gerber-tool-group{border-color:var(--line)}
.glb-page .gerber-toolbar button{color:var(--muted)}
.glb-page .gerber-toolbar button:hover:not(:disabled){background:var(--brand-soft);border-color:var(--line);color:var(--brand-dark)}
.glb-page .gerber-toolbar button[aria-pressed=true]{background:var(--brand-soft);color:var(--brand-dark);border-color:#b9cceb}
.glb-page .gerber-toolbar button:focus-visible{outline-color:var(--brand)}
.glb-page .gerber-appearance{background:var(--canvas);border-color:var(--line)}
.glb-page .gerber-appearance-title,.glb-page .gerber-unit{color:var(--muted)}
.glb-page .gerber-face-buttons{background:#e9eef8;border-color:var(--line)}
.glb-page .gerber-face-buttons button{color:var(--muted)}
.glb-page .gerber-face-buttons button:hover{background:var(--paper);color:var(--brand-dark)}
.glb-page .gerber-face-buttons button[aria-pressed=true]{color:var(--brand);background:var(--paper);border-color:#b9cceb;box-shadow:0 1px 3px #13244210}
.glb-page .gerber-face-buttons button:focus-visible{outline-color:var(--brand)}
.glb-page .gerber-statusbar{background:var(--canvas);border-color:var(--line);color:var(--muted)}
.glb-page .gerber-message{background:var(--paper);border-color:var(--line);color:var(--muted)}
.glb-page .gerber-help,.glb-page .gerber-help b{color:var(--muted)}
.glb-page .gerber-support{background:var(--canvas);border-color:var(--line)}
.glb-page .gerber-support summary{color:var(--ink)}
.glb-page .gerber-support p{color:var(--muted)}
.glb-page .glb-toolbar #glb-fullscreen{background:var(--brand-soft);border-color:#b9cceb;color:var(--brand-dark)}
.glb-page .glb-toolbar #glb-fullscreen:hover{background:#dce7ff;border-color:#8eafe8}
.glb-page .glb-toolbar #glb-fullscreen[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}

/* A single toolbar; advanced controls open over the viewport. */
.glb-page .glb-compact-toolbar{position:relative;flex-wrap:nowrap;gap:6px;min-height:48px;padding:7px 10px;z-index:4}
.glb-compact-toolbar .gerber-tool-group{flex:none;gap:2px;padding-right:6px}.glb-page .glb-compact-toolbar button{width:31px;height:31px;min-height:31px;padding:6px;flex:none;justify-content:center}.glb-compact-toolbar .gerber-icon{width:17px;height:17px}
.glb-compact-actions{display:flex;align-items:center;gap:3px;margin-left:auto;flex:none}.glb-page .glb-compact-toolbar #glb-fullscreen{padding:6px;gap:0}.glb-compact-toolbar #glb-fullscreen-label{display:none}
.glb-tool-menu{position:static;margin:0;padding:0;border:0;border-radius:0;background:transparent}.glb-tool-menu>summary{display:flex;align-items:center;gap:5px;min-height:31px;padding:6px;border:1px solid transparent;border-radius:5px;list-style:none;font-size:10px;color:var(--muted);cursor:pointer;white-space:nowrap}.glb-tool-menu>summary::-webkit-details-marker{display:none}.glb-tool-menu>summary::after{display:none}.glb-tool-menu[open]>summary,.glb-tool-menu>summary:hover{background:var(--brand-soft);border-color:var(--line);color:var(--brand-dark)}.glb-tool-menu>summary:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.glb-tool-panel{position:absolute;right:8px;top:calc(100% - 1px);display:flex;flex-direction:column;align-items:stretch;gap:14px;width:255px;max-width:calc(100% - 16px);padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--paper);box-shadow:0 12px 30px #13244224;z-index:5}.glb-tool-panel .glb-background-option,.glb-tool-panel .glb-resolution-option{margin:0;justify-content:space-between;font-size:11px}.glb-tool-panel .glb-export-option{margin:0;font-size:11px;min-height:24px}.glb-tool-panel .glb-background-presets button{width:auto;height:30px;padding:5px 8px;font-size:10px}.glb-tool-panel .glb-background-presets{justify-content:space-between}
@media(max-width:720px){.glb-page .glb-compact-toolbar{padding:6px;gap:3px;flex-wrap:wrap}.glb-page .glb-compact-toolbar button{width:29px;height:29px;min-height:29px;padding:5px}.glb-compact-toolbar .gerber-tool-group{gap:1px;padding-right:3px}.glb-compact-actions{gap:1px}.glb-tool-menu>summary{padding:5px;gap:3px}.glb-tool-panel{right:5px;max-width:calc(100% - 10px)}.glb-tool-panel .glb-background-presets button{width:auto}.glb-compact-toolbar .glb-direction-tools{border-right:0}}

@media(max-width:600px){.glb-page .glb-compact-toolbar{flex-wrap:wrap}.glb-compact-toolbar .glb-direction-tools{order:3;flex:0 0 100%;justify-content:center;border:0;padding:0}.glb-compact-actions{order:2}}@media(max-width:480px){.glb-tool-menu>summary>span{display:none}.glb-tool-menu>summary{justify-content:center;width:29px;height:29px;min-height:29px;padding:5px}.glb-compact-actions{gap:3px}}

.glb-loading{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:16px;background:#0b1628ba;backdrop-filter:blur(3px);cursor:progress}.glb-loading[hidden]{display:none}.glb-loading-card{width:100%;max-width:390px;padding:24px;border:1px solid #b9cceb;border-radius:12px;background:var(--paper);box-shadow:0 16px 50px #06102445;color:var(--ink)}.glb-loading-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px;font-size:13px}.glb-loading-heading>span{font:12px Consolas,monospace;color:var(--brand)}.glb-loading progress{display:block;width:100%;height:7px;border:0;border-radius:5px;overflow:hidden;accent-color:var(--brand);background:var(--brand-soft)}.glb-loading progress::-webkit-progress-bar{background:var(--brand-soft)}.glb-loading progress::-webkit-progress-value{background:var(--brand);transition:width .15s}.glb-loading-card p{font:11px/1.7 Consolas,monospace;overflow-wrap:anywhere;color:var(--muted);min-height:36px;margin:16px 0 10px}.glb-loading-card small{font-size:10px;color:var(--muted)}@media(max-width:480px){.glb-loading-card{padding:18px}.glb-loading-heading{font-size:12px}}

.glb-tool-menu>summary>span,.glb-tool-menu[open]>summary>span,.glb-tool-menu>summary>.gerber-icon,.glb-tool-menu[open]>summary>.gerber-icon{transform:none}.glb-menu-chevron{width:12px;height:12px;flex:none;transition:transform .15s}.glb-tool-menu[open]>summary>.glb-menu-chevron{transform:rotate(180deg)}@media(max-width:480px){.glb-tool-menu>summary{width:38px;gap:2px;padding:4px}.glb-menu-chevron{width:10px;height:10px}}
