/* Speed-dial gauges (static/gauges.js) */
.g-box{display:flex;flex-direction:column;align-items:center;min-width:0}
.g-svg{width:100%;max-width:240px;height:auto;display:block;overflow:visible}
.g-bg{fill:none;stroke:var(--soft);stroke-width:14;stroke-linecap:round}
.g-val{fill:none;stroke-width:14;stroke-linecap:round;transition:stroke-dasharray .8s ease}
.g-val.warn{stroke:var(--warn)} .g-val.crit{stroke:var(--crit)}
.g-tick{stroke:var(--muted);stroke-width:2}
.g-num{fill:var(--muted);font-size:10px;text-anchor:middle;font-family:var(--mono);direction:ltr}
.g-needle{stroke:var(--fg);stroke-width:4;stroke-linecap:round;transform-origin:100px 100px;transition:transform .8s cubic-bezier(.3,1.4,.5,1)}
.g-hub{fill:var(--fg)}
.g-value{fill:var(--fg);font-size:26px;font-weight:800;text-anchor:middle;font-variant-numeric:tabular-nums;direction:ltr}
.g-unit{fill:var(--muted);font-size:12px;text-anchor:middle}
.g-label{font-weight:700;margin-top:-4px;text-align:center}
.g-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.g-grid .card{padding:10px 8px;gap:0}
.g-nums{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.g-n{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}
.g-n b{font-size:24px;font-variant-numeric:tabular-nums;direction:ltr;text-align:right}
.g-n span{color:var(--muted);font-size:13px}
.g-n.bad b{color:var(--crit)} .g-n.good b{color:var(--ok)}
html[data-theme="sun"] .g-bg{stroke:#d5d9e2}
html[data-theme="sun"] .g-n{border:2px solid var(--line)}
html[data-theme="sun"] .g-val:not(.warn):not(.crit){stroke:#003a9e}
.g-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:860px){.g-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px} .g-grid .card{padding:6px 4px} .g-grid .g-label{font-size:13px} .m-status{padding:12px 10px}}
/* laser mode (NPGauge {laser: true}): the customers' app */
.g-laser .g-bg{stroke:rgba(34,211,238,.10);stroke-width:10}
.g-laser .g-val{stroke-width:10}
.g-laser .g-led{stroke:rgba(147,160,200,.22);stroke-width:2.6;stroke-linecap:round;transition:stroke .4s,filter .4s}
.g-laser .g-led.on{stroke:#22d3ee;filter:drop-shadow(0 0 3px #22d3ee)}
.g-laser .g-led.on:nth-child(n+19){stroke:#8b5cf6;filter:drop-shadow(0 0 3px #8b5cf6)}
.g-laser .g-led.on:nth-child(n+29){stroke:#f472b6;filter:drop-shadow(0 0 3px #f472b6)}
.g-laser .g-beam{stroke-width:3;stroke-linecap:round}
.g-laser .g-tip{fill:#fff;animation:g-pulse 1.4s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.g-laser .g-hub{fill:#0c1230;stroke:#22d3ee;stroke-width:2}
.g-laser .g-hub-in{fill:#22d3ee}
.g-laser .g-value{fill:#e8fbff;font-size:30px}
.g-laser .g-tick{stroke:rgba(147,160,200,.5)}
@keyframes g-pulse{50%{transform:scale(1.6);opacity:.7}}
@media (prefers-reduced-motion: reduce){.g-laser .g-tip{animation:none}}
html[data-theme="sun"] .g-laser .g-value{fill:#000;filter:none}
html[data-theme="sun"] .g-laser .g-hub{fill:#fff;stroke:#003a9e}
html[data-theme="sun"] .g-laser .g-led.on{stroke:#003a9e;filter:none}
/* laser scan (NPGauge scan/flash, Wagih 3/11): turning laser rings, a trail behind the needle, sparks off its tip, a flash at the end */
.g-laser .g-ring{fill:none;stroke-width:2;stroke-linecap:round;opacity:0;transform-origin:100px 100px;transition:opacity .4s}
.g-laser .g-ring.b{stroke-width:1;stroke-dasharray:2 6}
.g-laser .g-ring.c{stroke:#fff;stroke-width:1.5}
.g-laser.scanning .g-ring{opacity:.9}
.g-laser.scanning .g-ring.a{animation:g-spin 1.1s linear infinite}
.g-laser.scanning .g-ring.b{animation:g-spin 2.6s linear infinite reverse;opacity:.6}
.g-laser.scanning .g-ring.c{animation:g-spin .7s linear infinite;opacity:.55}
.g-laser .g-trail{opacity:0;transition:transform 1.3s cubic-bezier(.3,1.2,.5,1),opacity .4s}
.g-laser .g-trail.t2{transition-duration:1.9s}
.g-laser.scanning .g-trail.t1{opacity:.35} .g-laser.scanning .g-trail.t2{opacity:.15}
.g-laser .g-spark{fill:#e8fbff;opacity:0;transform-box:fill-box;transform-origin:center}
.g-laser.scanning .g-spark{animation:g-spark .9s ease-out infinite}
.g-laser .g-spark.s1{animation-delay:.18s!important;fill:#22d3ee} .g-laser .g-spark.s2{animation-delay:.36s!important;fill:#8b5cf6}
.g-laser .g-spark.s3{animation-delay:.54s!important;fill:#f472b6} .g-laser .g-spark.s4{animation-delay:.72s!important}
.g-laser.scanning .g-val{animation:g-throb .6s ease-in-out infinite}
.g-laser .g-burst{fill:none;stroke:#e8fbff;stroke-width:3;opacity:0;transform-origin:100px 100px}
.g-laser.g-flash .g-burst{animation:g-burst 1s ease-out}
.g-laser.g-flash .g-value{animation:g-pop .7s ease-out}
.g-laser.g-flash .g-led.on{animation:g-blink .25s 3}
@keyframes g-spin{to{transform:rotate(360deg)}}
@keyframes g-spark{0%{opacity:1;transform:translate(0,0) scale(1.4)}100%{opacity:0;transform:translate(var(--sx,7px),-12px) scale(.2)}}
.g-laser .g-spark.s1{--sx:-9px} .g-laser .g-spark.s2{--sx:12px} .g-laser .g-spark.s3{--sx:-4px} .g-laser .g-spark.s4{--sx:3px}
@keyframes g-throb{50%{stroke-width:13}}
@keyframes g-burst{0%{opacity:1;transform:scale(.3);stroke-width:14}100%{opacity:0;transform:scale(1.35);stroke-width:1}}
@keyframes g-pop{0%{transform:scale(1)}30%{transform:scale(1.25);fill:#fff}100%{transform:scale(1)}}
.g-laser .g-value{transform-box:fill-box;transform-origin:center}
@keyframes g-blink{50%{stroke:#fff}}
@media (prefers-reduced-motion: reduce){.g-laser.scanning .g-ring,.g-laser.scanning .g-spark,.g-laser.scanning .g-val,.g-laser.g-flash *{animation:none!important}}
html[data-theme="sun"] .g-laser .g-ring.c,html[data-theme="sun"] .g-laser .g-burst{stroke:#003a9e}
