/* gasveer-live: mockup 2026-10 */
body{font-family:var(--gd-font);color:var(--gd-text);background:var(--gd-bg)} .lt-wrap *,.lt-wrap *::before,.lt-wrap *::after{box-sizing:border-box}
.lt-variant-b #geolive .swing{stroke:#94a3b8}
.lt-wrap{max-width:var(--gd-wrap);margin:0 auto;padding:1rem}
.lt-tool{display:grid;gap:1.25rem}
.lt-tool>*{min-width:0}
.lt-fields{display:grid;grid-template-columns:1fr 1fr;gap:.75rem .75rem;margin:0}
.lt-field label{display:block;font-weight:600;font-size:.88rem;margin-bottom:.3rem;color:var(--gd-text)}
.lt-field input{width:100%;min-height:44px;padding:.5rem .65rem;font-size:1rem;border:1px solid #94a3b8;border-radius:8px;background:#fff;color:var(--gd-text-strong)}
.lt-field input:focus-visible,.lt-slider input:focus-visible,.lt-presets a:focus-visible{outline:3px solid var(--gd-brand);outline-offset:2px}
.lt-field input[aria-invalid=true]{border-color:#b91c1c;border-width:2px}
.field-err{color:#b91c1c;font-size:.85rem;margin-top:.25rem;font-weight:600}
.lt-field.is-geo-on input{outline:1.5px solid var(--gd-accent);outline-offset:3px;background:var(--gd-ok-bg)}
.lt-fig{margin:0;background:#fff;border:1px solid var(--gd-border);border-radius:var(--gd-radius);padding:.5rem}
.lt-fig svg{display:block;width:100%;height:auto;aspect-ratio:1/1;max-height:70vh;background:#fafbfc;border-radius:8px;touch-action:manipulation}
.lt-fig figcaption{font-size:.85rem;color:var(--gd-muted-strong);margin-top:.4rem}
.lt-msg{margin:.5rem 0 0;padding:.5rem .7rem;border-radius:8px;font-size:.9rem;font-weight:600}
.lt-msg[hidden]{display:none}
.lt-msg.err{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.lt-msg.warn{background:var(--gd-soon-bg);color:var(--gd-soon-text);border:1px solid #fde68a}
.lt-slider{margin-top:.5rem}
.lt-slider label{display:flex;justify-content:space-between;gap:.5rem;font-weight:600;font-size:.9rem;color:var(--gd-text)}
.lt-slider input[type=range]{width:100%;min-height:44px;accent-color:var(--gd-brand);margin:0}
.lt-readout{font-size:.95rem;color:var(--gd-text);margin:.2rem 0 0;font-variant-numeric:tabular-nums}
.lt-readout strong{color:var(--gd-text-strong)}
.lt-presets{display:flex;flex-wrap:wrap;gap:.5rem;margin:.25rem 0 1rem}
.lt-presets a{display:inline-flex;align-items:center;min-height:44px;padding:0 .9rem;border:1px solid var(--gd-brand);border-radius:8px;color:var(--gd-brand-hover);text-decoration:none;font-weight:600;font-size:.9rem}
.lt-presets a[aria-current=true]{background:var(--gd-tint)}
.lt-note{font-size:.8rem;color:var(--gd-muted-strong)}
/* svg */
#geolive text{font:600 13px var(--gd-font);fill:#1e293b}
#geolive .lbl{paint-order:stroke;stroke:#fafbfc;stroke-width:4px;stroke-linejoin:round}
#geolive .frame{stroke:#64748b;stroke-width:1;fill:none;stroke-dasharray:4 3}
#geolive .lid{stroke:#1e3a5f;stroke-width:5;stroke-linecap:round;fill:none}
#geolive .ghost .lid{stroke:#94a3b8}
#geolive .ghost .spr-body{fill:#e2e8f0;stroke:#94a3b8}
#geolive .ghost .spr-rod{stroke:#94a3b8}
#geolive .spr-body{fill:#cbd5e1;stroke:#1e3a5f;stroke-width:1.4}
#geolive .spr-rod{stroke:#1e3a5f;stroke-width:2.4;stroke-linecap:round}
#geolive .swing{stroke:#475569;stroke-width:1.3;fill:none;stroke-dasharray:5 4}
#geolive .ang{stroke:#2563eb;stroke-width:1.6;fill:none}
#geolive .ang-t{fill:#1d4ed8}
#geolive .rperp{stroke:#64748b;stroke-width:1.2;stroke-dasharray:3 3;fill:none}
#geolive .dim{stroke:#64748b;stroke-width:1.1;fill:none}
#geolive .pt{fill:#fff;stroke:#1e3a5f;stroke-width:2}
#geolive .hinge{fill:#1e3a5f}
#geolive .cg{fill:#fde68a;stroke:#1e3a5f;stroke-width:1.5}
#geolive .dead{stroke:#b45309;stroke-width:2.5}
#geolive .dead-t{fill:#92400e}
#geolive .bar{stroke:#1e293b;stroke-width:2}
#geolive .halo{fill:var(--gd-ok-bg);stroke:var(--gd-accent);stroke-width:1.5;opacity:0}
#geolive .geo.is-on .halo{opacity:1}
#geolive .geo.is-on text{fill:var(--gd-ok-text);font-weight:800}
#geolive .geo.is-on .lid,#geolive .geo.is-on .spr-rod,#geolive .geo.is-on .ang{stroke:var(--gd-accent)}
#geolive .geo.is-on .pt{stroke:var(--gd-accent);stroke-width:3}
#geolive.is-stale{filter:grayscale(1);opacity:.45}
@media (prefers-reduced-motion:no-preference){#geolive{transition:opacity .15s}#geolive .halo{transition:opacity .15s}}
@media (min-width:900px){
 .lt-tool{grid-template-columns:minmax(0,1fr) clamp(420px,38vw,500px);align-items:start}
 .lt-side{position:sticky;top:16px}
}
@media (max-width:899px){.lt-side{order:-1}.lt-fig svg{max-height:56vh}}
.lt-msg.info{background:var(--gd-tint);color:#1e3a5f;border:1px solid #bfdbfe;display:flex;gap:.5rem;align-items:flex-start}
.lt-msg.info::before{content:"i";flex:none;width:1.25rem;height:1.25rem;border-radius:50%;background:#1e3a5f;color:#fff;font:700 .8rem/1.25rem Georgia,serif;text-align:center;font-style:italic}
#geolive .ghost-thin line{stroke:#94a3b8;stroke-width:1.2;stroke-dasharray:none}
@media (max-width:599px){#geolive text{font-size:16px}#geolive text tspan{font-size:12px}}
#geolive .dead-long{stroke:#b91c1c;stroke-width:3}
#geolive .dead-long-t{fill:#991b1b}
.lt-msg.stop{background:#fff;color:#991b1b;border:1px solid #fca5a5;border-left:4px solid #b91c1c;display:flex;gap:.5rem;align-items:center}
.lt-msg.stop::before{content:"↻";flex:none;font-size:1.15rem;line-height:1;font-weight:700}

/* calculator page integration (Salo 21-10-2026) */
.gs-live{margin:0 0 1rem}
@media (max-width:899px){.gs-geo-side.gs-live{display:block}}
#geolive .grip{fill:#fff;stroke:#b45309;stroke-width:2.5}
#geolive .geo{cursor:pointer}
#tool .gs-field.is-geo-on{outline:1.5px solid var(--gd-accent);outline-offset:4px;border-radius:6px;background:var(--gd-ok-bg)}
