.glx{--glx-bg:#071222;--glx-panel:#0d2035;--glx-edge:#253b54;--glx-text:#e7f4ff;--glx-muted:#93aec5;--glx-cyan:#60e2f1;--glx-pink:#f76aa9;--glx-violet:#a893ff;box-sizing:border-box;max-width:1240px;margin:1.25rem auto;padding:clamp(13px,2.5vw,28px);background:var(--glx-bg);color:var(--glx-text);border-radius:20px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.55;color-scheme:dark}
.glx *, .glx *::before,.glx *::after{box-sizing:border-box}.glx h2,.glx h3,.glx p{margin:0}.glx button,.glx input{font:inherit}.glx button{cursor:pointer}.glx-header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;margin:2px 0 24px}.glx-eyebrow{font-size:10px;letter-spacing:.19em;font-weight:750;color:#72dce4;margin-bottom:8px}.glx-header h2{font-size:clamp(24px,3.5vw,34px);font-weight:750;letter-spacing:-.035em;line-height:1.12;color:#fff}.glx-header p{color:var(--glx-muted);font-size:13px;margin-top:8px;max-width:590px}.glx-model-tag{color:#91d9e7;font-size:11px;font-weight:600;background:#143347;border:1px solid #285366;border-radius:100px;padding:7px 12px;white-space:nowrap}.glx-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.glx-stat{background:#112338;border:1px solid var(--glx-edge);border-radius:11px;padding:12px 15px}.glx-stat span{display:block;color:var(--glx-muted);font-size:11px;line-height:1.2}.glx-stat strong{display:block;margin-top:5px;font-size:clamp(17px,2vw,23px);font-weight:730;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}.glx-stat-accent{border-color:#217b88;background:#0e303f}.glx-stat-accent strong{color:var(--glx-cyan)}.glx-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.glx-view,.glx-panel{background:#0b1b2e;border:1px solid var(--glx-edge);border-radius:15px;min-width:0}.glx-view{padding:13px}.glx-view-header{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:1px 2px 11px}.glx-view-header h3{font-size:11px;line-height:1.3;letter-spacing:.14em;color:#e8f5fe;font-weight:800}.glx-view-header span{font-size:11px;color:var(--glx-muted)}.glx-key{white-space:nowrap;display:flex;align-items:center;gap:6px;font-size:10px;color:#c2d9e9}.glx-key i{display:inline-block;width:16px;height:0;border-top:3px solid var(--glx-cyan);border-radius:2px}.glx-key i.glx-key-caustic{border-top-color:var(--glx-pink)}.glx-canvas-box{position:relative;overflow:hidden;border:1px solid #263e58;border-radius:11px;background:#060f1e}.glx-canvas-box canvas{width:100%;height:auto;display:block;aspect-ratio:1/1}.glx-draggable canvas{cursor:crosshair;touch-action:none}.glx-canvas-corner{position:absolute;bottom:8px;right:10px;pointer-events:none;font-size:10px;color:#829bb5;letter-spacing:.03em}.glx-drag-badge{position:absolute;top:10px;left:10px;padding:3px 7px;background:#2d225d99;color:#d5c8ff;border:1px solid #6752a6;border-radius:6px;font-size:10px;pointer-events:none}.glx-view-note{margin:10px 2px 1px!important;color:var(--glx-muted);font-size:11.5px;min-height:37px}.glx-lower{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px}.glx-panel{padding:18px}.glx-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.glx-panel h3{font-size:16px;font-weight:740;color:#ecf8ff;letter-spacing:-.015em}.glx-reset{background:transparent;border:1px solid #344b61;color:#b6cce0;padding:5px 10px;border-radius:7px;font-size:11px}.glx-reset:hover,.glx-presets button:hover{background:#1e3e57;color:#fff}.glx-control{margin-top:18px}.glx-control-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:5px}.glx-control-label label{color:#d7e6f3}.glx-control-label output{font-variant-numeric:tabular-nums;color:#83e5ed;font-weight:690;white-space:nowrap}.glx input[type=range]{display:block;appearance:none;-webkit-appearance:none;width:100%;height:6px;border-radius:999px;background:#34516a;outline:0;accent-color:#6de0eb;margin:10px 0 6px}.glx input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:100%;background:#81eff4;border:2px solid #063446;box-shadow:0 0 0 2px #82d8e544}.glx input[type=range]::-moz-range-thumb{height:13px;width:13px;border-radius:100%;background:#81eff4;border:2px solid #063446}.glx input:focus-visible,.glx button:focus-visible,.glx canvas:focus-visible{outline:2px solid #a0effa;outline-offset:4px}.glx-ends{display:flex;justify-content:space-between;font-size:10px;color:#698ca6}.glx-distance{display:flex;align-items:center;gap:10px;margin-top:12px}.glx-distance>span{font-size:10px;text-align:center;line-height:1.25;color:#aec6d9}.glx-distance>span b{color:#d6e4ee;font-weight:550}.glx-distance-line{height:2px;background:linear-gradient(90deg,#3ec4e2,#d09cff);flex:1;position:relative}.glx-distance-line i{position:absolute;top:50%;left:25%;transform:translate(-50%,-50%);width:12px;height:12px;background:#8fecf4;box-shadow:0 0 0 4px #47c1d134;border:2px solid #002e43;border-radius:100%}.glx-guide-intro{font-size:12px;color:var(--glx-muted);margin-top:8px!important}.glx-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0 20px}.glx-presets button{padding:8px 9px;background:#122e46;border:1px solid #35506b;border-radius:8px;color:#d9ebf9;font-size:11px}.glx-presets button:active{transform:translateY(1px)}.glx-note{padding:12px 0;border-top:1px solid #24405a}.glx-note strong{font-size:12px;color:#f0f8ff}.glx-note p{font-size:12px;color:#9ab4c9;margin-top:4px!important}.glx-note em{font-style:normal;color:#d1ebfc}.glx-highlight strong{color:#aadbf3}.glx-disclaimer{margin-top:17px!important;color:#7896b0;font-size:10.5px;line-height:1.65}
@media(max-width:760px){.glx{border-radius:12px}.glx-lower{grid-template-columns:1fr}.glx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.glx-views{gap:9px}.glx-view{padding:8px}.glx-view-header{display:block}.glx-key{margin-top:5px}.glx-view-note{font-size:10px;min-height:0}.glx-model-tag{font-size:10px}}
@media(max-width:500px){.glx-views{grid-template-columns:1fr}.glx-view{padding:12px}.glx-view-header{display:flex}.glx-view-note{font-size:11.5px}.glx-header{margin-bottom:15px}.glx-panel{padding:14px}.glx-stat{padding:10px}}
@media(prefers-reduced-motion:reduce){.glx *{transition:none!important;animation:none!important}}

/* v1.1 — Desktop full-width workbench: paired viewers left, sticky controls right.
   This section intentionally overrides legacy .glx-lower rules for older templates. */
.glx{max-width:1660px;width:100%;--glx-sticky-top:18px}
.admin-bar .glx{--glx-sticky-top:52px}
.glx-workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,26vw,370px);gap:16px;align-items:start}
.glx-stage{min-width:0;display:flex;flex-direction:column;gap:16px}
.glx-workspace .glx-views{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.glx-workspace .glx-guide{min-width:0}
.glx-side{min-width:0;position:sticky;top:var(--glx-sticky-top);align-self:start;max-height:calc(100vh - var(--glx-sticky-top) - 16px);max-height:calc(100dvh - var(--glx-sticky-top) - 16px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#476780 transparent;border-radius:15px}
.glx-side .glx-panel{padding:18px}
.glx-side .glx-control{margin-top:16px}
.glx-quick-presets{margin-top:16px;padding-bottom:4px;border-bottom:1px solid #24405a}
.glx-preset-label{display:block;color:var(--glx-muted);text-transform:uppercase;letter-spacing:.10em;font-weight:700;font-size:10px}
.glx-side .glx-presets{margin:9px 0 13px}
.glx-workspace .glx-guide{padding:20px}
@media(max-width:1200px) and (min-width:861px){
  .glx-workspace .glx-views{grid-template-columns:1fr}
  .glx-workspace .glx-view{max-width:720px}
}
@media(max-width:860px){
  .glx-workspace{grid-template-columns:1fr}
  .glx-workspace .glx-views{grid-template-columns:repeat(2,minmax(0,1fr))}
  .glx-side{position:static;max-height:none;overflow:visible}
  .glx-workspace .glx-guide{order:2}
  .glx-stage{display:contents}
  .glx-side{grid-row:2}
}
@media(max-width:560px){
  .glx-workspace .glx-views{grid-template-columns:1fr}
  .glx-workspace .glx-guide{padding:15px}
}
