/* ============================================================================
   ecosy-lab.css — SANDBOX OVERLAY, loaded ONLY on /ecosy-preview/ (post 536).
   Never on /ecosy/. Loaded after ecosy.css, so everything here is an override.

   This is deliberately an overlay and NOT a forked copy of ecosy.css: a fork
   would drift within a day and every fix would then have to be made twice.
   Keep it small. When an experiment is settled, move it into ecosy.css and
   delete it from here.

   Open with ?glow=a / ?glow=b / ?glow=c to switch variants. Default is a.
   ============================================================================ */


/* ---- diagnostic readout ----------------------------------------------------
   Populated by #lab-hud in the template. Fixed, bottom-left, above the
   configurator FAB. Sandbox only — it must never reach /ecosy/. */
/* bottom:78px, NOT 10px — the dark/light switch lives at left:16px bottom:18px and the
   HUD was sitting straight on top of it, so Victor could not reach it. */
#lab-hud{position:fixed;left:10px;bottom:78px;z-index:9999;
  max-width:min(92vw,420px);padding:10px 12px;border-radius:10px;
  background:rgba(12,14,20,.90);color:#d8e0ea;
  font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  white-space:pre-wrap;pointer-events:none;
  box-shadow:0 8px 26px rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.14)}
#lab-hud b{color:#4ddb00;font-weight:700}
#lab-hud .bad{color:#ff7a59;font-weight:700}


/* ---- live control panel (sandbox only) -------------------------------------
   Every number I kept getting wrong by hand is a slider. Top-right so it does
   not collide with the HUD bottom-left. */
#glow-ctl{position:fixed;right:10px;top:64px;z-index:9999;width:250px;
  padding:12px 13px;border-radius:12px;background:rgba(12,14,20,.94);color:#d8e0ea;
  font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  box-shadow:0 10px 30px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.16)}
#glow-ctl b{color:#4ddb00;display:block;margin-bottom:8px;font-size:12px}
#glow-ctl label{display:grid;grid-template-columns:58px 1fr 34px;align-items:center;
  gap:7px;margin:7px 0}
#glow-ctl input[type=range]{width:100%;accent-color:#4ddb00;margin:0}
#glow-ctl i{font-style:normal;text-align:right;color:#9fb0c4}
#glow-ctl .hint{margin-top:8px;color:#7e8ea3;min-height:2.6em}
#glow-ctl .out{margin-top:6px;padding-top:8px;border-top:1px solid rgba(255,255,255,.14);
  color:#4ddb00;word-break:break-all;-webkit-user-select:all;user-select:all}
#glow-ctl .modes{margin-top:9px;color:#7e8ea3}
#glow-ctl .modes a{color:#9fb0c4}


/* ---- accent colour A/B (sandbox only) --------------------------------------
   Left side on purpose: #glow-ctl owns the top-right, .tuner-fab and #lab-hud own the
   bottom-left, so top-left is the only free corner. Click the title to collapse it —
   two open panels cover too much of the very page you are trying to judge. */
#hue-ctl{position:fixed;left:10px;top:64px;z-index:9999;width:232px;
  padding:12px 13px;border-radius:12px;background:rgba(12,14,20,.94);color:#d8e0ea;
  font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  box-shadow:0 10px 30px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.16)}
#hue-ctl b{color:#4ddb00;display:block;font-size:12px;cursor:pointer;-webkit-user-select:none;user-select:none}
#hue-ctl .body{margin-top:8px}
#hue-ctl.min .body{display:none}
#hue-ctl .row{display:grid;grid-template-columns:16px 36px 1fr;align-items:center;gap:8px;
  margin:6px 0;padding:5px 6px;border-radius:8px;cursor:pointer;
  border:1px solid transparent;background:rgba(255,255,255,.05)}
#hue-ctl .row.on{border-color:#4ddb00;background:rgba(77,219,0,.10)}
#hue-ctl .row .tag{color:#7e8ea3;font-weight:700}
#hue-ctl .row.on .tag{color:#4ddb00}
#hue-ctl input[type=color]{width:36px;height:24px;padding:0;border:0;background:none;cursor:pointer}
#hue-ctl input[type=text]{width:100%;padding:3px 5px;border-radius:6px;font:inherit;
  text-transform:uppercase;color:#d8e0ea;
  background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.14)}
#hue-ctl .hint{margin-top:8px;color:#7e8ea3}
#hue-ctl .out{margin-top:6px;padding-top:8px;border-top:1px solid rgba(255,255,255,.14);
  color:#4ddb00;word-break:break-all;-webkit-user-select:all;user-select:all}
#hue-ctl .modes{margin-top:9px;color:#7e8ea3}
#hue-ctl .modes a{color:#9fb0c4}


/* The canvas carries border-radius:8% + overflow:clip from the base rule. With a blur that
   rounded clip got blurred away; with the painted glow the ALPHA feather defines the shape,
   so the clip can only fight it at the corners. Remove it for f. */


/* ---- mobile prominence -----------------------------------------------------
   Production still lifts the glow ×1.5 under 760px — a compensation from the BLUR era, when a
   52px blur spread the light so thin on a small screen that it needed the help. The painted glow
   does not lose anything at small sizes (reach is a clamped % of the element, so it is
   proportionally identical), so the multiplier is now pure over-brightness: 0.30 becomes 0.45
   dark, 0.38 becomes 0.57 light. That is exactly "on mobile the glow is more prominent".
   Neutralised here so Victor can compare on the phone before it changes for everyone. */
@media(max-width:760px){
  :root[data-lab][data-theme="dark"] .ambient-glow,
  :root[data-lab]:not([data-theme="dark"]) .ambient-glow{opacity:var(--ambient-op,.3)}
}
