/* Phos Editor v0.27 · Diffused plan (see plan-light.js) */

/* the light layer sits between the grid and the drawing */
.canvas .plan-light { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }

/* light comes from the lights now, not from a fixed corner glow */
.canvas::before { background: var(--surface) !important; }
/* the base grid stays, quieter, so you can still measure in the dark; the lit grid is drawn in the light */
.plan-lit .canvas-grid { --grid-line: rgba(255,255,255,0.022); }

/* slate replaces the scale bar: scene, camera, key, number of lights, scale */
.scalebar { display: none !important; }
.plan-slate {
  position: absolute; left: 16px; bottom: 64px; z-index: 3; pointer-events: none;
  display: flex; align-items: center; gap: 10px; height: 24px; padding: 0 2px; background: none; text-shadow: 0 1px 6px rgba(10,10,11,0.9);
  font: 500 10px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.08em; color: rgba(255,255,255,0.62);
  white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden;
}
.plan-slate .ps-i { display: inline-flex; align-items: center; gap: 6px; }
.plan-slate .ps-strong { color: #fff; }
.plan-slate .ps-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.14); flex: none; }
.plan-slate .ps-sw { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.plan-slate .ps-scale b { display: block; height: 6px; border: solid rgba(255,255,255,0.7); border-width: 0 1px 1px; min-width: 12px; }
.canvas:has(.inspector) .plan-slate { opacity: 0; }
.plan-slate .ps-g { display: inline-flex; align-items: center; gap: 10px; }
@media (width <= 900px) { .plan-slate .ps-g:not(.ps-keep):not(.ps-mid) { display: none; } }
@media (width <= 640px) { .plan-slate { bottom: 72px; left: 12px; } .plan-slate .ps-g.ps-mid { display: none; } }

/* ── Loader v0.27: brand reveal, rising light with the grid only inside it, scene contents as status ── */
.ph-ld-rise { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ph-ld-rise i { position: absolute; left: 50%; bottom: -38vh; width: min(1100px, 120vw); height: 76vh; transform: translateX(-50%); opacity: 0;
  animation: ldRise 1100ms cubic-bezier(0.23, 1, 0.32, 1) 120ms forwards; }
.ph-ld-rise-glow { background: radial-gradient(closest-side, rgba(255,110,50,0.42), rgba(255,90,31,0.17) 45%, rgba(226,53,28,0.05) 70%, rgba(255,90,31,0) 100%); }
.ph-ld-rise-grid {
  background-image: linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center bottom;
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 85%); mask: radial-gradient(closest-side, #000 20%, transparent 85%);
}
@keyframes ldRise { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ph-ld.v27 { gap: 26px; }
.ph-ld-mark27 { width: 88px; height: 88px; }
.ph-ld-mark27 svg { display: block; overflow: visible; }
.ph-ld-bar27 { width: 180px; height: 1px; background: rgba(255,255,255,0.12); overflow: hidden; }
.ph-ld-bar27 i { display: block; height: 100%; width: 100%; background: rgba(255,255,255,0.78); transform: scaleX(0); transform-origin: left center; }
.ph-ld.v27 .ph-ld-k { letter-spacing: 0.08em; text-transform: uppercase; }
.ph-loader.out .ph-ld-rise i { transition: opacity 260ms ease; }
@media (prefers-reduced-motion: reduce) {
  .ph-ld-rise i { animation: none; opacity: 1; transform: translateX(-50%); }
  .ld-light, .ld-line, .ld-ring { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important; }
}
