/* Product screens: coded recreations of the four products on invented data.
   Each screen is drawn on a fixed 1200x750 canvas and scaled to its frame. */
/* the slot keeps the screen's box before JS mounts it, so nothing shifts */
.scr-slot{display:block;aspect-ratio:1200/750}
.scr-fit{position:relative;aspect-ratio:1200/750;overflow:hidden;border-radius:var(--scr-radius,14px);background:#fff;container-type:inline-size}
.scr{position:absolute;inset:0 auto auto 0;width:1200px;height:750px;transform-origin:0 0;transform:scale(var(--s,.5));
  font:500 13px/1.35 ui-sans-serif,-apple-system,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;color:#0f172a;display:flex;overflow:hidden;text-align:left;letter-spacing:0}
.scr *{box-sizing:border-box;margin:0}
.scr .row{display:flex;gap:14px}.scr .col{display:flex;flex-direction:column;gap:14px}
.scr .f1{flex:1;min-width:0}.scr .f2{flex:2;min-width:0}.scr .f3{flex:3;min-width:0}
.scr .sb{justify-content:space-between}.scr .ac{align-items:center}
.scr .card{background:#fff;border:1px solid #e3e8f0;border-radius:14px;padding:16px}
.scr .k{font-size:11px;font-weight:650;color:#64748b;letter-spacing:.04em;text-transform:uppercase}
.scr .v{font-size:30px;font-weight:750;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums}
.scr .v small{font-size:14px;font-weight:600;color:#64748b;margin-left:3px}
.scr .m{color:#64748b;font-size:12px}
.scr .t4{font:700 15px/1.3 inherit;font-family:inherit;letter-spacing:0;color:inherit;text-shadow:none;max-width:none}
.scr .t3{font:750 20px/1.25 inherit;font-family:inherit;letter-spacing:-.01em;color:inherit;text-shadow:none;max-width:none}
.scr p,.scr b,.scr span{font-family:inherit}
.scr .t3,.scr .t4{margin:0}
.scr .tag{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:99px;font-size:11px;font-weight:700;white-space:nowrap}
.scr .ok{background:#dcfce7;color:#166534}.scr .warn{background:#fef3c7;color:#92400e}.scr .bad{background:#fee2e2;color:#b91c1c}.scr .info{background:#e0e7ff;color:#3730a3}.scr .mute{background:#f1f5f9;color:#475569}
.scr .up{color:#15803d;font-weight:700}.scr .dn{color:#dc2626;font-weight:700}
.scr .bar{height:8px;border-radius:99px;background:#eef2f7;overflow:hidden;flex:1}
.scr .bar i{display:block;height:100%;width:0;border-radius:99px;background:var(--c,#2563eb);transition:width 1.1s cubic-bezier(.2,.8,.2,1) var(--d,0s)}
.scr.live .bar i{width:var(--w)}
.scr table{width:100%;border-collapse:collapse;font-size:12.5px}
.scr th{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:700;text-align:left;padding:7px 8px;border-bottom:1px solid #e3e8f0}
.scr td{padding:9px 8px;border-bottom:1px solid #eef2f7;font-variant-numeric:tabular-nums}
.scr .num{text-align:right}
.scr table.roomy td{padding:15px 8px}
.scr .dot{width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block}
.scr .pulse{animation:scrPulse 1.6s ease-in-out infinite}
@keyframes scrPulse{50%{opacity:.25}}
.scr .in{opacity:0;transform:translateY(8px)}
.scr.live .in{animation:scrIn .5s cubic-bezier(.2,.8,.2,1) var(--d,0s) forwards}
@keyframes scrIn{to{opacity:1;transform:none}}
.scr svg .draw{stroke-dasharray:1;stroke-dashoffset:1}
.scr.live svg .draw{animation:scrDraw 1.8s ease-out var(--d,.1s) forwards}
@keyframes scrDraw{to{stroke-dashoffset:0}}
.scr svg .fade{opacity:0}.scr.live svg .fade{animation:scrFade .9s ease var(--d,.6s) forwards}
@keyframes scrFade{to{opacity:1}}
.scr .col-bars{display:flex;align-items:flex-end;gap:6px;height:100%}
.scr .col-bars i{flex:1;border-radius:4px 4px 0 0;background:var(--c,#2563eb);height:0;transition:height .9s cubic-bezier(.2,.8,.2,1) var(--d,0s)}
.scr.live .col-bars i{height:var(--h)}
.scr .main{flex:1;min-width:0;padding:22px 24px;display:flex;flex-direction:column;gap:14px;background:#f6f8fb}
.scr .side{width:196px;flex:none;padding:18px 12px;display:flex;flex-direction:column;gap:3px;font-size:13px}
.scr .side .brand{display:flex;align-items:center;gap:9px;font-weight:750;font-size:15px;padding:0 8px 16px}
.scr .side .logo{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:14px}
.scr .side .grp{font-size:10px;letter-spacing:.09em;text-transform:uppercase;opacity:.55;padding:12px 8px 4px;font-weight:700}
.scr .side .nav{padding:8px 10px;border-radius:9px;display:flex;justify-content:space-between;color:inherit;text-decoration:none;opacity:.8}
.scr .side .nav.on{opacity:1;font-weight:700}

/* Norven: white rail, cobalt */
.scr.nv .side{background:#fff;border-right:1px solid #e3e8f0}
.scr.nv .logo{background:#1d4ed8}.scr.nv .side .nav.on{background:#e8efff;color:#1d4ed8}
.scr.nv{--c:#1d4ed8}
.scr .wave{display:flex;align-items:center;gap:3px;height:54px}
.scr .wave i{width:4px;border-radius:3px;background:#1d4ed8;height:20%;animation:scrWave 1.1s ease-in-out infinite;animation-delay:calc(var(--i)*-73ms)}
@keyframes scrWave{0%,100%{height:14%}50%{height:var(--p,80%)}}
.scr .bubble{padding:9px 12px;border-radius:12px;background:#f1f5f9;font-size:12.5px;max-width:88%}
.scr .bubble.me{background:#e8efff;align-self:flex-end}
.scr .bubble b{display:block;font-size:10.5px;color:#64748b;font-weight:700;margin-bottom:2px}
.scr .ava{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:750;font-size:14px}
.scr .item{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid #e3e8f0;border-radius:11px;background:#fff}
.scr .item .ic{width:22px;height:22px;border-radius:7px;flex:none;display:grid;place-items:center;font-size:11px;font-weight:800;color:#fff}
.scr .ring{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:15px;background:conic-gradient(var(--rc) calc(var(--p)*1%),#eef2f7 0);position:relative}
.scr .ring::after{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff}
.scr .ring span{position:relative;z-index:1}

/* Connected Enterprise: slate rail, tangerine marks on teal data */
.scr.er .side{background:#0f2a33;color:#d7e6ea}
.scr.er .logo{background:#f97316}.scr.er .side .nav.on{background:rgba(255,255,255,.1);color:#fff}
.scr.er{--c:#0d9488}
.scr .mc{border:1px solid #e3e8f0;background:#fff;border-radius:12px;padding:11px 12px;display:flex;flex-direction:column;gap:5px;position:relative;overflow:hidden}
.scr .mc::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--st)}
.scr .mc b{font-size:13px}.scr .mc .st{font-size:10.5px;font-weight:800;color:var(--st);text-transform:uppercase;letter-spacing:.05em;display:flex;align-items:center;gap:5px}
.scr .chip{padding:6px 11px;border-radius:9px;border:1px solid #cfe8e4;background:#effaf8;font-size:12px;font-weight:650;color:#0f766e}
.scr .chip.off{border-color:#e3e8f0;background:#fff;color:#94a3b8}

/* Command Centre: navy rail, goal colours */
.scr.cc .side{background:#12264a;color:#dbe5f7}
.scr.cc .logo{background:#fff;color:#12264a;border-radius:50%}
.scr.cc .side .nav.on{background:#274a8a;color:#fff}
.scr.cc .side .nav em{font-style:normal;font-size:11px;opacity:.6}
.scr.cc .main{background:#eef2f8}
.scr .lens{display:flex;gap:4px;background:#dfe6f1;border-radius:99px;padding:4px}
.scr .lens span{padding:6px 13px;border-radius:99px;font-size:12px;font-weight:650;color:#475569}
.scr .lens span.on{background:#12264a;color:#fff}
.scr .goal{background:#fff;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px;min-height:112px}
.scr .goal .n{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:13px;background:var(--g)}
.scr .goal b{font-size:13.5px;line-height:1.25}
.scr .hexes{display:grid;grid-template-columns:repeat(9,1fr);gap:5px}
.scr .hexes i{aspect-ratio:1/1.12;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:var(--h);opacity:0;transform:scale(.4)}
.scr .hexes i:nth-child(18n+10),.scr .hexes i:nth-child(18n+11),.scr .hexes i:nth-child(18n+12),.scr .hexes i:nth-child(18n+13),.scr .hexes i:nth-child(18n+14),.scr .hexes i:nth-child(18n+15),.scr .hexes i:nth-child(18n+16),.scr .hexes i:nth-child(18n+17),.scr .hexes i:nth-child(18n+18){translate:50% 0}
.scr.live .hexes i{animation:scrHex .5s cubic-bezier(.2,.9,.3,1.3) calc(var(--i)*22ms) forwards}
@keyframes scrHex{to{opacity:1;transform:none}}
.scr .hexes i.sel{outline:0;filter:drop-shadow(0 0 0 #000);background:#f59e0b!important}

/* Sector View: violet header, no rail */
.scr.sv{flex-direction:column;--c:#6d28d9;background:#f5f4fb}
.scr .svh{background:linear-gradient(100deg,#3b2fd6,#7c3aed 60%,#a855f7);color:#fff;padding:18px 24px;display:flex;justify-content:space-between;align-items:center}
.scr .svt{display:flex;gap:22px;padding:0 24px;background:#fff;border-bottom:1px solid #e6e3f3;font-size:13px;font-weight:600;color:#64748b}
.scr .svt span{padding:12px 0;border-bottom:2px solid transparent}.scr .svt span.on{color:#5b21b6;border-color:#6d28d9}
.scr .svb{flex:1;padding:18px 24px;display:flex;flex-direction:column;gap:14px;min-height:0}
.scr .gc{border-radius:16px;padding:16px;color:#fff;flex:1;background:var(--bg)}
.scr .gc .k{color:rgba(255,255,255,.8)}
.scr .typing::after{content:"";display:inline-block;width:7px;height:14px;background:#6d28d9;margin-left:2px;vertical-align:-2px;animation:scrPulse .8s steps(2) infinite}

@media (prefers-reduced-motion:reduce){
  .scr *,.scr *::after{animation-duration:.01s!important;animation-delay:0s!important;transition-duration:.01s!important}
  .scr .wave i,.scr .pulse,.scr .typing::after{animation:none!important}
}

/* end state without motion: used for reduced motion and for ?still previews */
.scr.still .in,.scr.still .hexes i{opacity:1!important;transform:none!important;animation:none!important}
.scr.still .bar i{width:var(--w)!important;transition:none}
.scr.still .col-bars i{height:var(--h)!important;transition:none}
.scr.still svg .draw{stroke-dashoffset:0!important;animation:none!important}
.scr.still svg .fade{opacity:1!important;animation:none!important}
