/* ==========================================================================
   Graphics: animated illustrations (stand-ins for product video & UI)
   Built by src/js/graphics.js. Animations pause while off screen.
   ========================================================================== */

[data-graphic]:not(.in-view) *,
[data-graphic]:not(.in-view) *::before,
[data-graphic]:not(.in-view) *::after { animation-play-state: paused !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink-soft { 50% { opacity: 0.35; } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes pop-in { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.25); } 100% { transform: scale(1); opacity: 1; } }

/* --- Brand rings (hero & CTA backgrounds) ----------------------------- */
.hero-visual { position: relative; padding: 6% 4%; }
.rings, .cta-rings {
    position: absolute;
    inset: -12%;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: -1;
}
.rings span, .cta-rings span {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--c-primary) 22%, transparent);
    animation: ring-breathe 9s var(--ease-in-out) infinite;
}
.rings span:nth-child(1) { width: 46%; }
.rings span:nth-child(2) { width: 68%; border-style: dashed; animation: spin 70s linear infinite; }
.rings span:nth-child(3) { width: 90%; animation-delay: -3s; }
.rings span:nth-child(4) { width: 112%; opacity: 0.6; animation-delay: -6s; }
.rings span:nth-child(2)::after {
    content: "";
    position: absolute;
    top: -6px; left: 50%;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-lime);
    box-shadow: 0 0 0 6px var(--c-lime-soft);
}
@keyframes ring-breathe { 50% { transform: scale(1.03); opacity: 0.7; } }

.cta-rings { inset: 0; }
.cta-rings span { border-color: rgba(255, 255, 255, 0.1); }
.cta-rings span:nth-child(1) { width: 30vmax; }
.cta-rings span:nth-child(2) { width: 50vmax; border-style: dashed; animation: spin 90s linear infinite; }
.cta-rings span:nth-child(3) { width: 72vmax; animation-delay: -4s; }
.cta-rings span:nth-child(4) { width: 96vmax; animation-delay: -7s; }

/* --- UI window chrome -------------------------------------------------- */
.ui-window {
    position: relative;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.ui-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--c-border);
    font-size: var(--fs-xs);
}
.ui-dots { display: flex; gap: 6px; }
.ui-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-strong); }
.ui-title { font-weight: 600; color: var(--c-text-muted); }
.ui-live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45em; font-weight: 650; color: var(--c-lime-text); }

/* --- Hero status panel ------------------------------------------------- */
.status-panel { font-size: var(--fs-small); }
.status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-5) var(--space-4);
}
.status-label { color: var(--c-text-muted); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.status-value { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; }
.status-gauge { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.status-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.status-gauge circle { fill: none; stroke: var(--c-tint); stroke-width: 4; }
.status-gauge .status-gauge-fill {
    stroke: var(--c-lime);
    stroke-linecap: round;
    stroke-dasharray: 120;
    animation: gauge 1.8s 0.4s var(--ease-out) both;
}
@keyframes gauge { from { stroke-dashoffset: 120; } }
.status-gauge span { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; }

.conn-list { display: grid; gap: 2px; padding: 0 var(--space-3); }
.conn-list li {
    display: grid;
    grid-template-columns: 34px 1fr 90px auto;
    align-items: center;
    gap: var(--space-3);
    padding: 0.55rem 0.5rem;
    border-radius: var(--r-sm);
}
.conn-list li:nth-child(odd) { background: var(--c-tint); }
.conn-logo {
    display: grid;
    place-items: center;
    width: 34px; height: 28px;
    border-radius: 8px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 0.65rem;
    font-weight: 800;
}
.conn-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conn-state { color: var(--c-lime-text); font-size: var(--fs-xs); font-weight: 650; font-variant-numeric: tabular-nums; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.spark i { flex: 1; height: var(--h); border-radius: 2px; background: color-mix(in srgb, var(--c-primary) 45%, transparent); transition: height 0.8s var(--ease-out); }
.spark i:last-child { background: var(--c-lime); }
@media (max-width: 420px) {
    .conn-list li { grid-template-columns: 30px 1fr auto; }
    .spark { display: none; }
}

.feed { padding: var(--space-4) var(--space-5) var(--space-5); margin-top: var(--space-3); border-top: 1px solid var(--c-border); }
.feed-title { margin-bottom: var(--space-2); color: var(--c-text-muted); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.feed-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    height: calc(4 * 1.55rem + 3 * 6px);
    overflow: hidden;
    font-size: var(--fs-xs);
}
.feed-list li { display: flex; align-items: baseline; gap: 0.6em; flex-shrink: 0; line-height: 1.55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-list time { color: var(--c-primary); font-family: var(--font-mono); font-weight: 600; }
.feed-list .ok { color: var(--c-lime-text); font-weight: 700; }
.feed-list .is-new { animation: feed-in 0.5s var(--ease-out); }
.feed-list .is-leaving { animation: feed-out 0.45s var(--ease-out) forwards; }
@keyframes feed-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes feed-out { to { opacity: 0; } }

/* --- Diagram engine (flow, boundary, architecture) -------------------- */
.dg { width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.dg-zone rect {
    fill: color-mix(in srgb, var(--c-primary) 4%, transparent);
    stroke: var(--c-primary);
    stroke-opacity: 0.4;
    stroke-width: 1.5;
    stroke-dasharray: 7 7;
}
.dg-zone-label { font-size: 13px; font-weight: 650; fill: var(--c-primary); letter-spacing: 0.02em; }
.dg-zone-icon { color: var(--c-primary); }
.dg-zone--telvar rect { stroke: var(--c-lime); fill: var(--c-lime-soft); stroke-opacity: 0.8; }
.dg-zone--telvar .dg-zone-label { fill: var(--c-lime-text); }
.dg-zone--telvar .dg-zone-icon { color: var(--c-lime-text); }

.dg-node rect { fill: var(--c-surface); stroke: var(--c-border-strong); stroke-width: 1.2; }
.dg-node--box { filter: drop-shadow(0 4px 10px rgba(15, 27, 45, 0.07)); }
.dg-label { font-size: 15px; font-weight: 650; fill: var(--c-text); }
.dg-sub { font-size: 12px; fill: var(--c-text-muted); }
.dg-node--sm .dg-label { font-size: 13px; }
.dg-icon { color: var(--c-primary); }
.dg-dot { fill: var(--c-lime); animation: blink-soft 2s infinite; }

.dg-hub-bg { fill: var(--c-navy); stroke: color-mix(in srgb, var(--c-sky) 50%, transparent); stroke-width: 1.5; }
.dg-hub-orbit { fill: none; stroke: var(--c-sky); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: 0.8; transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.dg-hub-spokes { transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite reverse; }
.dg-hub-spokes line { stroke: var(--c-sky); stroke-width: 2; stroke-linecap: round; }
.dg-hub-spokes circle { fill: var(--c-sky); }
.dg-hub-spokes g:first-child circle { fill: var(--c-lime-bright); }
.dg-hub-core { fill: var(--c-lime-bright); }
.dg-hub-pulse { fill: none; stroke: var(--c-primary); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: hub-pulse 3s var(--ease-out) infinite; }
.dg-hub-pulse--late { animation-delay: 1.5s; }
@keyframes hub-pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2); opacity: 0; } }

.dg-db-body { fill: var(--c-surface); stroke: var(--c-primary); stroke-width: 1.6; }
.dg-db-top { fill: color-mix(in srgb, var(--c-primary) 18%, var(--c-surface)); stroke: var(--c-primary); stroke-width: 1.6; }
.dg-db-line { fill: none; stroke: var(--c-primary); stroke-opacity: 0.45; stroke-width: 1.2; }
.dg-db-led { fill: var(--c-lime); animation: blink-soft 1.4s infinite; }

.dg-edge { fill: none; stroke-width: 2; stroke-linecap: round; }
.dg-edge--data, .dg-edge--out {
    stroke: color-mix(in srgb, var(--c-primary) 45%, transparent);
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.4s var(--ease-out) var(--d);
}
.dg-edge--out { stroke: color-mix(in srgb, var(--c-lime) 70%, transparent); }
.is-drawn .dg-edge--data, .is-drawn .dg-edge--out { stroke-dashoffset: 0; }
.dg-edge--monitor { stroke: var(--c-lime); stroke-dasharray: 5 7; animation: dash-move 0.9s linear infinite; }
.dg-edge--config { stroke: var(--c-text-muted); stroke-opacity: 0.55; stroke-dasharray: 3 6; }
@keyframes dash-move { to { stroke-dashoffset: -12; } }
.dg-edge-label {
    font-size: 12px;
    font-weight: 650;
    fill: var(--c-lime-text);
    paint-order: stroke;
    stroke: var(--c-bg);
    stroke-width: 6px;
    stroke-linejoin: round;
}
.section--tint .dg-edge-label { stroke: var(--c-tint); }
.dg-particles { opacity: 0; transition: opacity 0.6s 0.9s; }
.is-drawn .dg-particles { opacity: 1; }
.dg-particle--data circle { fill: var(--c-sky); filter: drop-shadow(0 0 4px var(--c-sky)); }
.dg-particle--out circle { fill: var(--c-lime); filter: drop-shadow(0 0 4px var(--c-lime)); }
.dg-particle--monitor rect { fill: var(--c-lime); }
.dg-particle--monitor path { fill: none; stroke: #0f1b2d; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.flow { margin-top: var(--space-4); }
.flow--hero { width: 100%; max-width: 1100px; margin-top: var(--space-7); }
.architecture {
    padding: clamp(0.75rem, 2vw, 2rem);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background: var(--c-surface);
}
.architecture .dg-edge-label { stroke: var(--c-surface); }
.g-boundary-lg {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background: var(--c-surface);
    box-shadow: var(--shadow-md);
}
.g-boundary-lg .dg-edge-label { stroke: var(--c-surface); }
.tile-graphic[data-graphic="boundary"] { display: grid; place-items: center; padding: var(--space-5) var(--space-5) 0; }
.tile-graphic[data-graphic="boundary"] .dg-edge-label { stroke: var(--c-tint); }

/* Generic panel for split visuals */
.g-panel {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 5 / 4;
    padding: clamp(1rem, 4%, 2.5rem);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background:
        radial-gradient(70% 60% at 70% 20%, color-mix(in srgb, var(--c-sky) 12%, transparent), transparent 70%),
        var(--c-surface);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Split-panel graphics adapt to their own width (container queries) */
.split-visual { container-type: inline-size; }
@container (max-width: 460px) {
    .g-wh { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
    .g-wh-in, .g-wh-arrow { display: none; }
    .g-grid { gap: 10px; }
    .g-grid-cell { font-size: var(--fs-xs); }
    .g-alerts-toast { right: 0; width: 92%; }
    .stats-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-months span:nth-child(n + 5) { display: none; }
}

/* --- Night bar (home) -------------------------------------------------- */
.night-bar { margin-top: var(--space-4); }
.nb-track {
    position: relative;
    height: 150px;
    border: 1px solid var(--stage-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.nb-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #3a2d62 0%, #0d1c38 16%, #050d1c 45%, #0b2340 74%, #7a5f8e 90%, #f3b27a 100%);
}
.nb-stars i {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    background: #fff;
    animation: twinkle 3s var(--d) infinite;
}
@keyframes twinkle { 50% { opacity: 0.2; } }
.nb-cursor {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    animation: nb-move 16s linear infinite;
}
.nb-cursor::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 2px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.75), transparent);
}
.nb-cursor::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(200, 230, 0, 0.12));
}
.nb-orb {
    position: absolute;
    top: 18px; right: -11px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #f4f1e3;
    box-shadow: 0 0 20px 4px rgba(244, 241, 227, 0.45);
}
@keyframes nb-move { to { transform: translateX(0); } }
.nb-event { position: absolute; left: var(--x); top: 62%; }
.nb-event--fix { left: calc(var(--x) + 3%); top: 38%; }
.nb-event-dot {
    position: absolute;
    left: -6px; top: -6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-sky);
    opacity: 0.35;
    animation: nb-pop 16s linear infinite;
    animation-delay: calc(var(--at) * 16s);
}
.nb-event--fix .nb-event-dot, .nb-event:last-child .nb-event-dot { background: var(--c-lime-bright); }
.nb-event-label {
    position: absolute;
    left: 12px; top: -9px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: rgba(5, 14, 26, 0.7);
    color: #fff;
    font-size: var(--fs-xs);
    white-space: nowrap;
    opacity: 0.35;
    animation: nb-label 16s linear infinite;
    animation-delay: calc(var(--at) * 16s);
}
.nb-event:nth-last-child(2) .nb-event-label { left: auto; right: 12px; } /* last event sits at the right edge */
.nb-event-label b { color: var(--c-lime-bright); font-family: var(--font-mono); }
@keyframes nb-pop {
    0% { opacity: 1; transform: scale(1.8); box-shadow: 0 0 0 0 rgba(200, 230, 0, 0.6); }
    6% { transform: scale(1); box-shadow: 0 0 0 12px transparent; }
    55% { opacity: 1; }
    70%, 100% { opacity: 0.35; transform: scale(1); }
}
@keyframes nb-label { 0%, 55% { opacity: 1; } 70%, 100% { opacity: 0.35; } }
.nb-ticks { position: relative; height: 28px; margin-top: var(--space-2); }
.nb-ticks span {
    position: absolute;
    left: var(--x);
    transform: translateX(-50%);
    color: var(--stage-muted);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
}
.nb-ticks span:first-child { transform: none; }
.nb-ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 699px) {
    .nb-event-label { display: none; }
    .nb-ticks span:nth-child(even) { display: none; }
}

/* --- Tile graphics ----------------------------------------------------- */
/* Monitoring chart */
.g-chart { position: absolute; inset: 0; display: flex; flex-direction: column; padding: var(--space-4) var(--space-4) 0; color: var(--c-primary); }
.g-chart-head { display: flex; align-items: center; gap: 0.5em; color: var(--c-text); font-size: var(--fs-xs); font-weight: 650; }
.g-chart-live { margin-left: auto; padding: 1px 8px; border-radius: var(--r-pill); background: var(--c-lime-soft); color: var(--c-lime-text); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.g-chart svg { flex: 1; width: 100%; min-height: 90px; margin-top: var(--space-2); }
.g-chart-scroll { animation: chart-scroll 14s linear infinite; }
@keyframes chart-scroll { to { transform: translateX(-400px); } }
.g-chart-line { fill: none; stroke: currentColor; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.g-chart-scan {
    position: absolute;
    top: 44px; bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--c-lime-soft));
    border-right: 2px solid var(--c-lime);
    animation: scan 5s linear infinite;
}
@keyframes scan { from { left: -60px; } to { left: 100%; } }

/* Field fix */
.g-fix { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-4); }
.g-fix-card {
    width: min(100%, 270px);
    padding: var(--space-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    box-shadow: var(--shadow-md);
    animation: fix-card 7s infinite;
}
@keyframes fix-card { 12%, 44% { border-color: var(--c-warn); } 56%, 92% { border-color: var(--c-lime); } }
.g-fix-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); font-size: var(--fs-xs); }
.g-fix-sys { font-weight: 750; }
.g-fix-state { display: grid; font-weight: 650; }
.g-fix-state > span { grid-area: 1 / 1; opacity: 0; text-align: right; }
.g-fix-warn { color: #b27700; animation: fix-warn 7s infinite; }
.g-fix-ok { color: var(--c-lime-text); animation: fix-ok 7s infinite; }
@keyframes fix-warn { 12%, 44% { opacity: 1; } 0%, 8%, 50%, 100% { opacity: 0; } }
@keyframes fix-ok { 0%, 52% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }
.g-fix-row { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); }
.g-fix-row code { padding: 3px 8px; border-radius: 6px; background: var(--c-tint); font-family: var(--font-mono); font-size: 0.8rem; }
.g-fix-old { animation: fix-old 7s infinite; }
.g-fix-arrow, .g-fix-new { opacity: 0; animation: fix-new 7s infinite; }
@keyframes fix-old { 0%, 44% { text-decoration: none; opacity: 1; } 50%, 94% { text-decoration: line-through; opacity: 0.5; } }
@keyframes fix-new { 0%, 46% { opacity: 0; transform: translateX(-6px); } 54%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.g-fix-new { background: var(--c-lime-soft) !important; color: var(--c-lime-text); }
.g-fix-bar { height: 4px; margin-top: var(--space-3); border-radius: 4px; background: var(--c-tint); overflow: hidden; }
.g-fix-bar i { display: block; height: 100%; background: var(--c-lime); transform-origin: left; animation: fix-bar 7s infinite; }
@keyframes fix-bar { 0%, 48% { transform: scaleX(0); } 62%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* Connect */
.g-connect {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr auto;
    align-items: center;
    column-gap: var(--space-2);
    padding: var(--space-5) var(--space-5) var(--space-3);
}
.g-connect-node {
    display: grid;
    place-items: center;
    height: 44px;
    padding: 0 var(--space-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    background: var(--c-surface);
    font-size: var(--fs-xs);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.g-connect-node--telvar { width: 44px; padding: 0; border-radius: 50%; background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.g-connect-node--telvar > span { grid-area: 1 / 1; }
.g-connect-spin { width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--c-lime-bright); border-radius: 50%; animation: spin 0.9s linear infinite, connect-busy 6s infinite; }
.g-connect-check { color: var(--c-lime-bright); font-weight: 800; font-size: 1.1rem; animation: connect-done 6s infinite; }
.g-connect-line { position: relative; height: 2px; border-top: 2px dashed var(--c-border-strong); }
.g-connect-line i { position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--c-lime); transform-origin: left; animation: connect-line 6s infinite; }
.g-connect-label { grid-column: 1 / -1; display: grid; justify-items: center; font-size: var(--fs-xs); font-weight: 650; }
.g-connect-label > span { grid-area: 1 / 1; }
.g-connect-busy { color: var(--c-text-muted); animation: connect-busy 6s infinite; }
.g-connect-done { color: var(--c-lime-text); animation: connect-done 6s infinite; }
@keyframes connect-line { 0%, 10% { transform: scaleX(0); } 50%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes connect-busy { 0%, 50% { opacity: 1; } 55%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes connect-done { 0%, 52% { opacity: 0; transform: scale(0.6); } 58%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Unlock */
.g-unlock { position: absolute; inset: 0; display: grid; place-items: center; }
.g-unlock svg { width: 110px; height: 110px; overflow: visible; }
.g-unlock-shackle {
    fill: none;
    stroke: var(--c-text-muted);
    stroke-width: 9;
    stroke-linecap: round;
    transform-box: fill-box;
    transform-origin: 100% 100%;
    animation: shackle 5s var(--ease-in-out) infinite;
}
.g-unlock-body { fill: var(--c-primary); }
.g-unlock-hole { fill: #fff; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
@keyframes shackle { 0%, 25% { transform: none; } 40%, 80% { transform: translateY(-12px) rotate(28deg); } 95%, 100% { transform: none; } }
.g-unlock-tag {
    position: absolute;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--c-lime-soft);
    color: var(--c-lime-text);
    font-size: var(--fs-xs);
    font-weight: 700;
    opacity: 0;
    animation: unlock-tag 5s var(--ease-out) infinite;
}
.g-unlock-tag--a { left: 6%; top: 14%; }
.g-unlock-tag--b { right: 6%; bottom: 10%; animation-delay: 0.2s; }
@keyframes unlock-tag { 0%, 38% { opacity: 0; transform: translateY(8px); } 48%, 82% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* Chips drifting */
.g-chips { position: absolute; inset: 0; display: grid; align-content: center; gap: var(--space-3); }
.g-chips-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.g-chips-row > div { display: flex; gap: var(--space-2); width: max-content; animation: chips 26s linear infinite; }
.g-chips-row--rev > div { animation-direction: reverse; animation-duration: 32s; }
@keyframes chips { to { transform: translateX(-50%); } }
.g-chips span {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: var(--c-surface);
    font-size: var(--fs-small);
    font-weight: 650;
    white-space: nowrap;
}
.g-chips span:nth-child(3n) { border-color: color-mix(in srgb, var(--c-lime) 60%, transparent); background: var(--c-lime-soft); }

/* --- Connect grid (product step 1) ------------------------------------ */
.g-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: min(100%, 400px);
    aspect-ratio: 1;
}
.g-grid-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.g-grid-lines line {
    stroke: var(--c-primary);
    stroke-opacity: 0.35;
    stroke-width: 1.5;
    stroke-dasharray: 4 6;
    vector-effect: non-scaling-stroke;
    animation: dash-move 1s linear infinite, grid-line 9s infinite;
    animation-delay: 0s, calc(var(--i) * 0.9s);
}
@keyframes grid-line { 0% { stroke: var(--c-lime); stroke-opacity: 1; } 55% { stroke: var(--c-lime); stroke-opacity: 0.9; } 70%, 100% { stroke: var(--c-primary); stroke-opacity: 0.35; } }
.g-grid-cell {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    font-size: var(--fs-small);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    animation: grid-cell 9s infinite;
    animation-delay: calc(var(--i) * 0.9s);
}
.g-grid-cell b {
    position: absolute;
    top: -8px; right: -8px;
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--c-lime);
    color: var(--c-navy);
    font-size: 0.75rem;
    opacity: 0;
    animation: grid-check 9s infinite;
    animation-delay: calc(var(--i) * 0.9s);
}
@keyframes grid-cell { 0% { border-color: var(--c-lime); transform: scale(1.06); } 8%, 55% { border-color: var(--c-lime); transform: none; } 70%, 100% { border-color: var(--c-border); } }
@keyframes grid-check { 0% { opacity: 0; transform: scale(0); } 6% { opacity: 1; transform: scale(1.2); } 10%, 58% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; } }
.g-grid-cell--hub { background: var(--c-navy); border-color: var(--c-navy); animation: none; box-shadow: 0 0 0 8px var(--c-primary-soft), var(--shadow-md); }
.g-grid-cell--hub img { width: 62%; height: auto; animation: spin 40s linear infinite; }

/* --- Warehouse (product step 2) --------------------------------------- */
.g-wh { display: grid; grid-template-columns: 50px 1fr auto 1.1fr; align-items: center; gap: var(--space-3); width: 100%; }
.g-wh-in { position: relative; height: 140px; }
.g-wh-in i {
    position: absolute;
    left: 0;
    top: calc(var(--i) * 22px);
    width: 26px; height: 8px;
    border-radius: 4px;
    background: var(--c-sky);
    opacity: 0;
    animation: wh-in 2.4s linear infinite;
    animation-delay: calc(var(--i) * 0.4s);
}
@keyframes wh-in { 0% { opacity: 0; transform: translateX(-10px); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(46px); } }
.g-wh-db { display: grid; justify-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: 650; color: var(--c-text-muted); }
.g-wh-db svg { width: min(100%, 130px); overflow: visible; }
.g-wh-body { fill: var(--c-surface); stroke: var(--c-primary); stroke-width: 2; }
.g-wh-top { fill: color-mix(in srgb, var(--c-primary) 18%, var(--c-surface)); stroke: var(--c-primary); stroke-width: 2; }
.g-wh-liquid { fill: color-mix(in srgb, var(--c-sky) 55%, transparent); animation: wave 3s linear infinite, level 8s var(--ease-in-out) infinite; }
@keyframes wave { to { transform: translateX(-60px); } }
@keyframes level { 0%, 100% { translate: 0 8px; } 50% { translate: 0 -14px; } }
.g-wh-arrow { color: var(--c-lime-text); font-size: 1.6rem; font-weight: 700; animation: nudge 1.6s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.g-wh-report { padding: var(--space-4); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); box-shadow: var(--shadow-md); }
.g-wh-report p { display: grid; font-size: var(--fs-xs); }
.g-wh-report p span { color: var(--c-lime-text); font-weight: 600; }
.g-wh-bars { display: flex; align-items: flex-end; gap: 5px; height: 80px; margin-top: var(--space-3); }
.g-wh-bars i { flex: 1; height: var(--v); border-radius: 4px 4px 0 0; background: linear-gradient(var(--c-sky), var(--c-primary)); transform-origin: bottom; animation: bars-loop 6s var(--ease-out) infinite; animation-delay: calc(var(--i) * 0.12s); }
.g-wh-bars i:last-child { background: var(--c-lime); }
@keyframes bars-loop { 0% { transform: scaleY(0.1); } 25%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0.1); } }

/* --- Alerts (product step 3) ------------------------------------------ */
.g-alerts { position: relative; width: min(100%, 360px); padding-bottom: 60px; }
.g-alerts-card { padding: var(--space-5); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); box-shadow: var(--shadow-md); }
.g-alerts-title { margin-bottom: var(--space-3); color: var(--c-text-muted); font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; }
.g-alerts-card ul { display: grid; gap: var(--space-2); }
.g-alerts-card li { display: flex; justify-content: space-between; padding: 0.55rem 0.75rem; border-radius: var(--r-sm); background: var(--c-tint); font-size: var(--fs-small); font-weight: 600; }
.g-alerts-card b {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--c-lime);
    color: var(--c-navy);
    font-size: 0.75rem;
    animation: check-seq 8s infinite;
    animation-delay: calc(var(--i) * 0.5s);
}
@keyframes check-seq { 0% { transform: scale(0); opacity: 0; } 5% { transform: scale(1.25); opacity: 1; } 9%, 88% { transform: none; opacity: 1; } 96%, 100% { transform: scale(0); opacity: 0; } }
.g-alerts-toast {
    position: absolute;
    right: -6%; bottom: 0;
    display: flex;
    gap: var(--space-3);
    width: 290px;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-lime);
    border-radius: var(--r-md);
    background: var(--c-surface);
    box-shadow: var(--shadow-lg);
    font-size: var(--fs-xs);
    animation: toast 8s var(--ease-out) infinite;
}
.g-alerts-toast .icon { color: var(--c-lime-text); width: 22px; height: 22px; }
.g-alerts-toast b { display: block; font-size: var(--fs-small); }
.g-alerts-toast span { color: var(--c-text-muted); }
@keyframes toast { 0%, 45% { opacity: 0; transform: translateY(20px); } 52%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(10px); } }
@media (max-width: 499px) { .g-alerts-toast { right: 0; width: 88%; } }

/* --- Orbit (connectors hero) ------------------------------------------ */
.orbit { width: 100%; }
.g-orbit { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.g-orbit-ring { position: absolute; border: 1px dashed var(--c-border-strong); border-radius: 50%; animation: spin 90s linear infinite; }
.g-orbit-ring--outer { inset: 4%; }
.g-orbit-ring--inner { inset: 24%; animation-duration: 60s; animation-direction: reverse; }
.g-orbit-item { position: absolute; inset: 0; transform: rotate(var(--a)); }
.g-orbit-chip {
    position: absolute;
    top: 0; left: 50%;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: var(--c-surface);
    box-shadow: var(--shadow-md);
    font-size: var(--fs-xs);
    font-weight: 700;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
    animation: orbit-counter 90s linear infinite;
}
.g-orbit-ring--inner .g-orbit-chip { animation-duration: 60s; animation-direction: reverse; border-color: color-mix(in srgb, var(--c-lime) 60%, transparent); }
@keyframes orbit-counter {
    from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); }
    to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); }
}
.g-orbit-core {
    position: absolute;
    inset: 38%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-navy);
    box-shadow: 0 0 0 10px var(--c-primary-soft), 0 0 0 22px color-mix(in srgb, var(--c-primary) 5%, transparent), var(--shadow-lg);
}
.g-orbit-core img { width: 80%; height: auto; }

/* --- Vault (IT page) --------------------------------------------------- */
.g-vault { display: grid; gap: var(--space-3); width: min(100%, 360px); font-size: var(--fs-small); }
.g-vault-input, .g-vault-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
}
.g-vault-input code { font-family: var(--font-mono); font-size: 0.8rem; transition: opacity 0.3s; }
.g-vault-input code.is-dim { opacity: 0.25; }
.g-vault-arrow { justify-self: center; color: var(--c-primary); font-size: var(--fs-xs); font-weight: 650; }
.g-vault-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-5);
    border-radius: var(--r-md);
    background: var(--c-navy);
    color: #fff;
    box-shadow: 0 0 0 6px var(--c-primary-soft), var(--shadow-md);
}
.g-vault-box .icon { width: 30px; height: 30px; color: var(--c-lime-bright); }
.g-vault-box span { display: block; color: #a9b8cc; font-size: var(--fs-xs); }
.g-vault-cipher { grid-column: 1 / -1; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--c-lime-bright); font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em; }
.g-vault-block { border-style: dashed; color: var(--c-text-muted); }
.g-vault-block b { color: var(--c-danger); font-size: var(--fs-xs); }

/* --- Dashboard (always dark) ------------------------------------------ */
.dashboard { max-width: 1120px; margin-inline: auto; }
.dash {
    --d-border: rgba(255, 255, 255, 0.09);
    --d-card: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-lg);
    background: #0c1a2d;
    color: #e8eef6;
    box-shadow: 0 40px 120px -30px rgba(26, 158, 207, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: left;
    font-size: var(--fs-small);
}
.dash .ui-bar { border-bottom-color: var(--d-border); }
.dash .ui-dots i { background: rgba(255, 255, 255, 0.18); }
.dash .ui-title { color: #a9b8cc; }
.dash .ui-live { color: var(--c-lime-bright); }
.dash .status-dot { --c-lime: #c8e600; }
.dash-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 470px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-right: 1px solid var(--d-border); background: rgba(255, 255, 255, 0.02); }
.dash-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #a9b8cc;
    font-weight: 550;
    text-align: left;
    white-space: nowrap;
    transition: background var(--dur-fast), color var(--dur-fast);
}
.dash-nav button:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.dash-nav button[aria-selected="true"] { background: rgba(26, 158, 207, 0.18); color: #fff; }
.dash-nav button .icon { color: #1a9ecf; }
.dash-nav button:focus-visible { outline-color: var(--c-lime-bright); }
.dash-main { padding: clamp(14px, 2.5vw, 26px); min-width: 0; }
.dash-panel { animation: panel-in 0.5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.d-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.d-head h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); letter-spacing: -0.02em; }
.d-kicker { color: #8fa1b8; font-size: var(--fs-xs); }
.d-pill { display: inline-flex; align-items: center; gap: 0.5em; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(200, 230, 0, 0.1); color: #c8e600; font-size: var(--fs-xs); font-weight: 650; }
.d-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.d-kpi, .d-card { padding: 14px 16px; border: 1px solid var(--d-border); border-radius: 12px; background: var(--d-card); }
.d-kpi { display: grid; gap: 2px; }
.d-kpi span { color: #8fa1b8; font-size: var(--fs-xs); }
.d-kpi b { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.d-kpi em { color: #c8e600; font-size: var(--fs-xs); font-style: normal; }
.d-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.d-card-title { margin-bottom: 12px; color: #8fa1b8; font-size: 0.72rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; }
.d-bars { display: flex; align-items: flex-end; gap: 5px; height: 150px; }
.d-bars i { flex: 1; height: var(--v); border-radius: 4px 4px 0 0; background: linear-gradient(#35b6e6, #0d6a9e); transform-origin: bottom; animation: grow-y 0.9s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
.d-bars i:last-child { background: linear-gradient(#e0ff3a, #8aaa00); }
.d-activity { display: grid; gap: 10px; }
.d-activity li { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.d-activity time { color: #35b6e6; font-family: var(--font-mono); font-size: var(--fs-xs); white-space: nowrap; }
.d-table-wrap { overflow-x: auto; }
.d-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.d-table th { padding: 8px 10px; color: #8fa1b8; font-size: 0.72rem; font-weight: 650; text-align: left; text-transform: uppercase; letter-spacing: 0.08em; }
.d-table td { padding: 11px 10px; border-top: 1px solid var(--d-border); white-space: nowrap; }
.d-table tbody tr { animation: panel-in 0.5s var(--ease-out) both; }
.d-table tbody tr:nth-child(2) { animation-delay: 60ms; } .d-table tbody tr:nth-child(3) { animation-delay: 120ms; }
.d-table tbody tr:nth-child(4) { animation-delay: 180ms; } .d-table tbody tr:nth-child(5) { animation-delay: 240ms; } .d-table tbody tr:nth-child(6) { animation-delay: 300ms; }
.d-logo { display: inline-grid; place-items: center; width: 26px; height: 22px; margin-right: 10px; border-radius: 6px; background: rgba(26, 158, 207, 0.18); color: #7fd0f0; font-size: 0.6rem; font-weight: 800; vertical-align: middle; }
.d-state { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 650; }
.d-state--ok, .d-state--done { background: rgba(200, 230, 0, 0.1); color: #c8e600; }
.d-state--fixed { background: rgba(26, 158, 207, 0.16); color: #7fd0f0; }
.d-state--bad { background: rgba(224, 163, 26, 0.16); color: var(--c-warn); }
.d-state--busy { background: rgba(255, 255, 255, 0.06); color: #cfd9e6; }
.d-state--busy i { width: 11px; height: 11px; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #c8e600; border-radius: 50%; animation: spin 0.8s linear infinite; }
.d-quality { display: grid; gap: 14px; }
.d-q { display: grid; grid-template-columns: 120px 1fr 60px; align-items: center; gap: 12px; }
.d-q-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.d-q-bar i { display: block; width: var(--v); height: 100%; border-radius: 10px; background: linear-gradient(90deg, #8aaa00, #c8e600); transform-origin: left; animation: grow-x 1.1s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.d-q b { text-align: right; font-variant-numeric: tabular-nums; }
.d-note { margin-top: 16px; color: #8fa1b8; font-size: var(--fs-xs); }
.d-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 10px; margin-bottom: 12px; text-align: center; }
.d-empty p { color: #8fa1b8; }
.d-empty-icon {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #c8e600;
    color: #0d2a4a;
    font-size: 1.6rem;
    font-weight: 800;
    animation: empty-pulse 2.6s infinite;
}
@keyframes empty-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 230, 0, 0.45); } 70%, 100% { box-shadow: 0 0 0 22px rgba(200, 230, 0, 0); } }
.d-empty-icon--warn { background: var(--c-warn); animation-name: empty-pulse-warn; }
@keyframes empty-pulse-warn { 0% { box-shadow: 0 0 0 0 rgba(224, 163, 26, 0.45); } 70%, 100% { box-shadow: 0 0 0 22px rgba(224, 163, 26, 0); } }
@media (max-width: 759px) {
    .dash-body { grid-template-columns: 1fr; }
    .dash-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--d-border); }
    .d-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .d-row { grid-template-columns: 1fr; }
    .d-q { grid-template-columns: 90px 1fr 52px; }
}

/* --- Statistics page preview (maandrapport split-visual) --------------- */
.g-stats { max-width: 560px; margin-inline: auto; }
.g-stats .dash { font-size: var(--fs-xs); }
.stats-body { padding: clamp(14px, 2.5vw, 22px); }
.stats-months { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.stats-months span { flex: none; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.05); color: #8fa1b8; font-size: 0.66rem; font-weight: 650; letter-spacing: 0.04em; }
.stats-months span.is-active { background: #c8e600; color: #0d2a4a; }
.stats-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; }
.stats-kpis .d-kpi { padding: 10px; gap: 1px; }
.stats-kpis .d-kpi b { font-size: clamp(0.95rem, 0.8rem + 0.4vw, 1.2rem); }
.d-kpi em.stats-sla { color: #8fa1b8; font-size: 0.62rem; }
.stats-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.stats-card-head .d-card-title { margin-bottom: 0; }
.stats-toggle { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.04); }
.stats-toggle b { padding: 3px 10px; border-radius: var(--r-pill); color: #8fa1b8; font-size: 0.62rem; font-weight: 650; }
.stats-toggle b.is-active { background: rgba(26, 158, 207, 0.22); color: #fff; }
.stats-success { color: #c8e600; font-weight: 650; }

/* --- Before / after slider -------------------------------------------- */
.compare { max-width: 1120px; margin-inline: auto; }
.cmp {
    position: relative;
    min-height: 440px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    user-select: none;
    touch-action: pan-y;
}
.cmp-panel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(1rem, 3vw, 2rem); }
.cmp-panel--calm { background: linear-gradient(160deg, var(--c-lime-soft), var(--c-primary-soft)), var(--c-surface); }
.cmp-panel--chaos {
    background: linear-gradient(160deg, rgba(214, 69, 69, 0.13), rgba(224, 163, 26, 0.1)), var(--c-surface);
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.cmp-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.cmp-panel--calm .cmp-top { flex-direction: row-reverse; }
.cmp-title { font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); font-weight: 750; letter-spacing: -0.02em; }
.cmp-hours { color: var(--c-text-muted); font-size: var(--fs-small); }
.cmp-hours b { font-size: 1.6rem; color: var(--c-text); margin-right: 0.15em; }
.cmp-panel--chaos .cmp-hours b { color: var(--c-danger); }
.cmp-panel--calm .cmp-hours b { color: var(--c-lime-text); }
.cmp-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cmp-day { display: flex; flex-direction: column; gap: 8px; min-height: 230px; padding: 10px; border: 1px solid var(--c-border); border-radius: 14px; background: color-mix(in srgb, var(--c-surface) 70%, transparent); }
.cmp-day-name { color: var(--c-text-muted); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.cmp-item { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 9px; font-size: 0.78rem; font-weight: 650; line-height: 1.25; }
.cmp-item .icon { width: 14px; height: 14px; }
.cmp-item--bad { background: rgba(214, 69, 69, 0.14); color: #a42f2f; transform: rotate(var(--r)); animation: shake 3.4s infinite; animation-delay: calc(var(--j) * 0.37s); }
.cmp-item--warn { background: rgba(224, 163, 26, 0.18); color: #8a5a00; transform: rotate(var(--r)); }
.cmp-item--ok { background: var(--c-lime-soft); color: var(--c-lime-text); }
@media (prefers-color-scheme: dark) {
    .cmp-item--bad { color: #ff9e9e; }
    .cmp-item--warn { color: #f2c35a; }
}
@keyframes shake {
    0%, 86%, 100% { transform: rotate(var(--r)); }
    89% { transform: rotate(var(--r)) translateX(-3px); }
    92% { transform: rotate(var(--r)) translateX(3px); }
    95% { transform: rotate(var(--r)) translateX(-2px); }
}
.cmp-caption { margin-top: auto; font-size: var(--fs-small); font-weight: 600; color: var(--c-text-muted); }
.cmp-panel--calm .cmp-caption { text-align: right; }
.cmp-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: var(--pos);
    width: 3px;
    margin-left: -1.5px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 27, 45, 0.15), 0 0 24px rgba(15, 27, 45, 0.2);
    pointer-events: none;
}
.cmp-handle span {
    position: absolute;
    top: 50%; left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-navy);
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, -50%);
}
.cmp-handle .icon { width: 18px; height: 18px; }
.cmp-handle .icon:first-child { transform: rotate(90deg); }
.cmp-handle .icon:last-child { transform: rotate(-90deg); }
.cmp:has(.cmp-range:focus-visible) .cmp-handle span { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
@media (max-width: 699px) {
    .cmp-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cmp-day:nth-child(n + 4) { display: none; }
}

/* --- De nacht van Telvar (scrollytelling) ----------------------------- */
.night-story {
    padding-block: var(--section);
    background: linear-gradient(180deg, #050d19 0%, #0a1f38 100%);
    color: var(--stage-text);
}
.night-story .eyebrow { color: var(--c-lime-bright); }
.night-story .h2 { color: #fff; }
.night-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.night-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.night-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); opacity: 0.3; transition: opacity 0.5s; }
.night-step:last-child { min-height: 60vh; }
.night-step.is-active { opacity: 1; }
.night-step time { color: var(--c-lime-bright); font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; }
.night-step .h3 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.15; }
.night-step p { color: var(--stage-muted); font-size: var(--fs-lead); }
.night-step strong { color: #fff; }
@media (max-width: 899px) {
    .night-layout { grid-template-columns: 1fr; gap: 0; }
    .night-sticky { top: calc(var(--header-h) + 0.5rem); z-index: 2; }
    .night-step { min-height: 85vh; justify-content: flex-end; padding-bottom: 12vh; }
    .night-step:first-child { margin-top: -30vh; }
}

.ns {
    position: relative;
    aspect-ratio: 4 / 4.1;
    max-height: calc(100vh - var(--header-h) - 3rem);
    width: 100%;
    border: 1px solid var(--stage-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: 0 30px 90px -30px rgba(26, 158, 207, 0.5);
    isolation: isolate;
}
@media (max-width: 899px) { .ns { aspect-ratio: 4 / 3.3; max-height: 50vh; } }
.ns-sky { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.ns-sky--dusk { background: linear-gradient(180deg, #2a2555 0%, #6b3f6e 50%, #e0875a 100%); }
.ns-sky--night { background: linear-gradient(180deg, #02060f 0%, #071a33 60%, #0d2a4a 100%); }
.ns-sky--dawn { background: linear-gradient(180deg, #1c2b55 0%, #7a6b9a 50%, #f3b27a 100%); }
.ns-sky--day { background: linear-gradient(180deg, #6fbde6 0%, #c9e7f5 60%, #fdf3dc 100%); }
.ns[data-step="0"] .ns-sky--dusk,
.ns[data-step="1"] .ns-sky--night, .ns[data-step="2"] .ns-sky--night, .ns[data-step="3"] .ns-sky--night,
.ns[data-step="4"] .ns-sky--dawn,
.ns[data-step="5"] .ns-sky--day { opacity: 1; }

.ns-stars { position: absolute; inset: 0; opacity: 0.3; transition: opacity 1.2s; }
.ns-stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; animation: twinkle 3s var(--d) infinite; }
.ns[data-step="1"] .ns-stars, .ns[data-step="2"] .ns-stars, .ns[data-step="3"] .ns-stars { opacity: 1; }
.ns[data-step="4"] .ns-stars { opacity: 0.15; }
.ns[data-step="5"] .ns-stars { opacity: 0; }

.ns-orb { position: absolute; width: 54px; height: 54px; border-radius: 50%; transition: left 1.4s var(--ease-out), top 1.4s var(--ease-out), opacity 1.2s; }
.ns-orb--moon { left: 72%; top: 34%; background: radial-gradient(circle at 35% 35%, #fffdf3, #e9e4cc); box-shadow: 0 0 40px 8px rgba(255, 253, 240, 0.35); }
.ns[data-step="1"] .ns-orb--moon, .ns[data-step="2"] .ns-orb--moon, .ns[data-step="3"] .ns-orb--moon { left: 62%; top: 9%; }
.ns[data-step="4"] .ns-orb--moon { left: 84%; top: 40%; opacity: 0.5; }
.ns[data-step="5"] .ns-orb--moon { left: 90%; top: 60%; opacity: 0; }
.ns-orb--sun { left: 14%; top: 70%; opacity: 0; background: radial-gradient(circle, #fff6c9, #ffc56b); box-shadow: 0 0 60px 20px rgba(255, 197, 107, 0.55); }
.ns[data-step="4"] .ns-orb--sun { opacity: 0.8; top: 52%; }
.ns[data-step="5"] .ns-orb--sun { opacity: 1; top: 9%; left: 74%; }

.ns-city { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; }
.ns-bld { position: absolute; bottom: 0; background: #0a1526; transition: background 1.2s; }
.ns[data-step="5"] .ns-bld { background: #35557a; }
.ns[data-step="4"] .ns-bld { background: #1f2d4d; }
.ns-bld--1 { left: 4%; width: 22%; height: 58%; border-radius: 6px 6px 0 0; }
.ns-bld--2 { left: 30%; width: 38%; height: 88%; border-radius: 8px 8px 0 0; }
.ns-bld--3 { right: 4%; width: 26%; height: 46%; border-radius: 6px 6px 0 0; }
.ns-windows { position: absolute; inset: 8% 10% 40%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7%; }
.ns-windows i { position: relative; border-radius: 2px; background: #15253c; }
.ns-windows i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: #ffd67a;
    box-shadow: 0 0 10px rgba(255, 214, 122, 0.6);
    opacity: 0;
    transition: opacity 0.6s calc(var(--i) * 25ms);
}
.ns[data-step="0"] .ns-windows i::after { opacity: calc(var(--on) * 0.9); }
.ns[data-step="5"] .ns-windows i::after { opacity: calc(var(--on) * 0.55); }
.ns-server {
    position: absolute;
    left: 14%; bottom: 44%;
    width: 11%; height: 6%;
    border-radius: 2px;
    background: #15253c;
    transition: background 0.6s;
}
.ns[data-step="1"] .ns-server, .ns[data-step="2"] .ns-server, .ns[data-step="3"] .ns-server, .ns[data-step="4"] .ns-server {
    background: #1a9ecf;
    box-shadow: 0 0 18px 4px rgba(26, 158, 207, 0.7);
    animation: server 1.2s steps(2) infinite;
}
.ns[data-step="2"] .ns-server { background: #e0a31a; box-shadow: 0 0 18px 4px rgba(224, 163, 26, 0.7); }
@keyframes server { 50% { opacity: 0.6; } }

.ns-clock { position: absolute; top: 22px; left: 24px; display: grid; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35); }
.ns-time { font-family: var(--font-mono); font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ns-caption { margin-top: 6px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.ns[data-step="5"] .ns-clock { color: #0d2a4a; text-shadow: none; }

.ns-card {
    position: absolute;
    left: 18px; right: 18px; bottom: 18px;
    display: grid;
    min-height: 150px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(6, 16, 30, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #e8eef6;
    font-size: var(--fs-small);
}
@media (max-width: 899px) { .ns-card { min-height: 0; padding: 12px 14px; left: 10px; right: 10px; bottom: 10px; font-size: var(--fs-xs); } }
.ns-pane { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s var(--ease-out); pointer-events: none; }
.ns[data-step="0"] [data-pane="0"], .ns[data-step="1"] [data-pane="1"], .ns[data-step="2"] [data-pane="2"],
.ns[data-step="3"] [data-pane="3"], .ns[data-step="4"] [data-pane="4"], .ns[data-step="5"] [data-pane="5"] { opacity: 1; transform: none; }
.ns-pane-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; }
.ns-led { width: 8px; height: 8px; border-radius: 50%; background: #1a9ecf; animation: blink-soft 1s infinite; }
.ns-led--idle { background: #8fa1b8; animation: none; }
.ns-led--warn { background: #e0a31a; }
.ns-list { display: grid; gap: 6px; }
.ns-list li { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; }
.ns-list em { grid-column: 2 / -1; color: #8fa1b8; font-style: normal; font-size: var(--fs-xs); }
.ns-progress { grid-column: 2 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ns-progress i { display: block; height: 100%; background: linear-gradient(90deg, #1a9ecf, #c8e600); transform-origin: left; animation: progress 3.2s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * 0.35s); }
@keyframes progress { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.ns-list--checks b { grid-column: 3; color: #c8e600; animation: check-seq 6s infinite; animation-delay: calc(var(--i) * 0.4s); }
.ns-fix { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ns-fix code { padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-family: var(--font-mono); }
.ns-fix-old { animation: fix-old 5s infinite; }
.ns-fix-new { color: #c8e600; animation: fix-new 5s infinite; }
.ns-fix-ok { color: #c8e600; font-weight: 650; }
.ns-summary { display: flex; align-items: center; gap: 14px; }
.ns-summary b { display: block; font-size: 1.3rem; }
.ns-summary span { color: #a9b8cc; }
.ns-summary-check { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #c8e600; color: #0d2a4a; font-size: 1.4rem; font-weight: 800; animation: empty-pulse 2.4s infinite; }
.ns-report { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-bottom: 8px; }
.ns-report i { flex: 1; height: var(--v); border-radius: 4px 4px 0 0; background: linear-gradient(#35b6e6, #0d6a9e); transform-origin: bottom; animation: bars-loop 5s var(--ease-out) infinite; animation-delay: calc(var(--i) * 0.1s); }
.ns-report i:last-child { background: #c8e600; }

/* --- Calculator -------------------------------------------------------- */
.calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
    max-width: 1040px;
    margin-inline: auto;
    padding: clamp(1.25rem, 1rem + 2vw, 2.75rem);
    border: 1px solid var(--stage-border);
    border-radius: var(--r-xl);
    background: var(--stage-surface);
    text-align: left;
}
@media (max-width: 799px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { display: grid; gap: var(--space-6); align-content: start; }
.calc-field { display: grid; gap: var(--space-2); }
.calc-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); font-weight: 600; }
.calc-field-head output { white-space: nowrap; color: var(--c-lime-bright); font-size: 1.25rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.calc-field small { color: var(--stage-muted); font-size: var(--fs-xs); }
.calc input[type="range"] { width: 100%; accent-color: #c8e600; height: 28px; cursor: pointer; }
.calc-result { display: grid; gap: var(--space-4); align-content: start; padding: clamp(1rem, 2vw, 1.75rem); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stage-border); }
.calc-label { color: var(--stage-muted); font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; }
.calc-big { font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-big small { font-size: 0.4em; font-weight: 600; letter-spacing: 0; color: var(--stage-muted); }
.calc-euro { color: var(--c-lime-bright); font-size: 1.35rem; font-weight: 700; }
.calc-bars { display: grid; gap: var(--space-3); margin-block: var(--space-2); }
.calc-bar { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: var(--space-3); font-size: var(--fs-small); }
.calc-bar-track { height: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.calc-bar-track i { display: block; height: 100%; width: var(--w); border-radius: 12px; background: #d64545; transition: width 0.6s var(--ease-out); }
.calc-bar--after .calc-bar-track i { background: #c8e600; }
.calc-bar b { font-variant-numeric: tabular-nums; min-width: 5ch; text-align: right; }
.calc-note { color: var(--stage-muted); font-size: var(--fs-xs); }

/* --- Video placeholder dialog ----------------------------------------- */
.video-dialog { width: min(1040px, 94vw); max-width: none; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.video-dialog::backdrop { background: rgba(3, 9, 18, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-dialog[open] { animation: pop 0.45s var(--ease-out); }
.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: radial-gradient(60% 70% at 50% 40%, #0f3357, #050d19);
    color: #fff;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.vs { position: absolute; inset: 0; }
.vs-systems span {
    position: absolute;
    left: var(--x); top: var(--y);
    padding: 0.4em 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.08);
    font-size: clamp(0.65rem, 0.5rem + 0.6vw, 0.95rem);
    font-weight: 700;
    white-space: nowrap;
    translate: -50% -50%;
    transition: left 1.1s var(--ease-out), top 1.1s var(--ease-out), opacity 0.8s, border-color 0.6s, background 0.6s;
    transition-delay: calc(var(--i) * 40ms);
    animation: float 5s var(--ease-in-out) infinite;
    animation-delay: calc(var(--i) * -0.6s);
}
.vs[data-scene="connect"] .vs-systems span { left: var(--cx); top: var(--cy); border-color: rgba(200, 230, 0, 0.6); background: rgba(200, 230, 0, 0.12); }
.vs[data-scene="fill"] .vs-systems span, .vs[data-scene="watch"] .vs-systems span { left: var(--cx); top: var(--cy); opacity: 0.25; }
.vs[data-scene="report"] .vs-systems span, .vs[data-scene="end"] .vs-systems span { opacity: 0; }
.vs-hub, .vs-db, .vs-moon, .vs-report, .vs-end { position: absolute; transition: opacity 0.8s, transform 0.9s var(--ease-out), left 0.9s var(--ease-out); }
.vs-hub { left: 50%; top: 46%; width: 15%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #0d2a4a; box-shadow: 0 0 0 12px rgba(26, 158, 207, 0.12), 0 0 60px rgba(26, 158, 207, 0.5); opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
.vs-hub img { width: 80%; height: auto; animation: spin 24s linear infinite; }
.vs[data-scene="connect"] .vs-hub, .vs[data-scene="watch"] .vs-hub { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vs[data-scene="fill"] .vs-hub { opacity: 1; left: 36%; transform: translate(-50%, -50%) scale(0.85); }
.vs-db { left: 64%; top: 46%; width: 11%; aspect-ratio: 0.8; opacity: 0; transform: translate(-50%, -50%) scale(0.7); border: 2px solid #1a9ecf; border-radius: 50% / 14%; overflow: hidden; background: rgba(26, 158, 207, 0.08); }
.vs-db span { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(#35b6e6, #0d6a9e); transition: height 3s var(--ease-out); }
.vs[data-scene="fill"] .vs-db { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vs[data-scene="fill"] .vs-db span { height: 78%; }
.vs-moon { right: 12%; top: 12%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffdf3, #e0dbc1); box-shadow: 0 0 40px rgba(255, 253, 240, 0.4); opacity: 0; transform: translateY(20px); }
.vs[data-scene="watch"] .vs-moon { opacity: 1; transform: none; }
.vs-report { left: 50%; top: 44%; width: 34%; height: 38%; display: flex; align-items: flex-end; gap: 4%; padding: 3%; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
.vs-report i { flex: 1; height: var(--v); border-radius: 4px 4px 0 0; background: linear-gradient(#35b6e6, #0d6a9e); transform-origin: bottom; transform: scaleY(0); transition: transform 0.9s var(--ease-out) calc(var(--i) * 0.1s); }
.vs-report i:nth-last-child(2) { background: #c8e600; }
.vs-report b { position: absolute; top: -18%; right: -6%; display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #c8e600; color: #0d2a4a; font-size: clamp(1rem, 2vw, 1.8rem); opacity: 0; transform: scale(0); transition: opacity 0.4s 0.8s, transform 0.5s var(--ease-out) 0.8s; }
.vs[data-scene="report"] .vs-report { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vs[data-scene="report"] .vs-report i { transform: none; }
.vs[data-scene="report"] .vs-report b { opacity: 1; transform: none; }
.vs-end { left: 50%; top: 42%; width: 36%; opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
.vs[data-scene="end"] .vs-end { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vs-caption {
    position: absolute;
    left: 6%; right: 6%; bottom: 11%;
    text-align: center;
    font-size: clamp(1rem, 0.6rem + 2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.vs-caption.is-in { animation: cap-in 0.7s var(--ease-out); }
@keyframes cap-in { from { opacity: 0; transform: translateY(12px); } }
.video-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.12); }
.video-progress i { display: block; height: 100%; width: var(--p, 0%); background: #c8e600; transition: width 3.6s linear; }
.video-badge { position: absolute; top: 14px; left: 14px; }
.video-close {
    position: absolute;
    top: 12px; right: 12px;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}
.video-close:hover { background: rgba(255, 255, 255, 0.15); }

/* --- Reduced motion: show each story in its finished, calm state ------- */
@media (prefers-reduced-motion: reduce) {
    .nb-event-dot, .nb-event-label { opacity: 1; }
    .g-fix-card { border-color: var(--c-lime); }
    .g-fix-warn, .g-connect-busy, .g-connect-spin { display: none; }
    .g-fix-ok, .g-fix-arrow, .g-fix-new, .g-connect-done, .g-connect-check, .g-unlock-tag, .g-grid-cell b { opacity: 1; }
    .g-fix-old { text-decoration: line-through; opacity: 0.5; }
    .g-unlock-shackle { transform: translateY(-12px) rotate(28deg); }
    .ns-fix-old { text-decoration: line-through; opacity: 0.5; }
    .ns-fix-new { opacity: 1; }
    .g-alerts-toast { opacity: 1; }
}

.cmp-item--muted { background: transparent; color: var(--c-text-muted); font-weight: 550; }
.cmp-spark { display: flex; align-items: flex-end; gap: 3px; height: 38px; margin-top: auto; padding: 4px 2px 0; }
.cmp-spark i { flex: 1; height: var(--h); border-radius: 2px; background: color-mix(in srgb, var(--c-lime) 55%, transparent); }
.cmp-badge { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: 0.4em; padding: 0 0.4em; border-radius: var(--r-pill); background: var(--c-danger); color: #fff; font-size: 0.8rem; vertical-align: middle; animation: blink-soft 1.6s infinite; }

/* --- Reserved space: graphics are built lazily, so hold their box to avoid layout shift */
.flow:empty { aspect-ratio: 1050 / 440; }
.architecture:empty { aspect-ratio: 1100 / 520; }
.g-boundary-lg:empty { aspect-ratio: 530 / 280; }
.dashboard:empty { min-height: 520px; }
.night-scene:empty { aspect-ratio: 4 / 4.1; }
.compare:empty { min-height: 440px; }
.report:empty { min-height: 480px; }
.night-bar:empty { min-height: 190px; }
.orbit:empty { aspect-ratio: 1; max-width: 440px; margin-inline: auto; }
@media (max-width: 660px) {
    .flow:empty { aspect-ratio: 360 / 740; }
    .architecture:empty { aspect-ratio: 400 / 920; }
    .dashboard:empty { min-height: 760px; }
}
