/* Live charts on the RotoSight and PiatIQ pages (live.js).
   Compact dark instrument panels: thin traces, small type, KPI tiles, one height per row. Sample data. */
.lw { position: relative; padding: 14px 16px 14px; border-radius: 18px; background: #0e1a2b; color: #dbe5f0; font-family: inherit; text-align: left; box-shadow: 0 30px 46px -32px rgba(14,26,43,.75), inset 0 0 0 1px rgba(255,255,255,.06); }
.lw * { box-sizing: border-box; }
.lw-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; min-height: 22px; }
.lw-led { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: lw-pulse 1.8s infinite; }
@keyframes lw-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } }
.lw-t { font-size: 13px; font-weight: 700; letter-spacing: -.005em; color: #eef3f9; }
.lw-s { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b8199; }
.lw-rec { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.lw-rec i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; animation: lw-blink .9s ease-in-out infinite; }
.lw-rec i.ok { background: #34d399; animation: none; }
@keyframes lw-blink { 50% { opacity: .25; } }
.lw-body { position: relative; }
.lw-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: Inter, system-ui, sans-serif; }
.lw-svg text { user-select: none; font-variant-numeric: tabular-nums; }
.lw-glow { filter: drop-shadow(0 0 3px rgba(255,154,61,.45)); }
.lw-tip { position: absolute; z-index: 3; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: #1e3048; color: #fff; font-size: 11px; line-height: 1.45; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); }

/* read-outs */
.lw-ft { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 52px; align-content: flex-start; }
.lw-k { flex: 1 1 88px; display: grid; gap: 2px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.lw-k small { display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8fa3b8; white-space: nowrap; }
.lw-k small i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #fff); }
.lw-k b { font-size: 14px; line-height: 1.15; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lw-k.ok b { color: #34d399; } .lw-k.bad b { color: #f87171; } .lw-k.rec b { color: #ff9a3d; }
.lw-st { flex: 2 1 160px; display: flex; align-items: center; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.06); color: #dbe5f0; font-size: 11.5px; font-weight: 700; }
.lw-st.ok { background: rgba(52,211,153,.14); color: #34d399; } .lw-st.bad { background: rgba(248,113,113,.14); color: #f87171; } .lw-st.rec { background: rgba(255,154,61,.14); color: #ff9a3d; }
.lw-sm .lw-k { padding: 5px 8px; } .lw-sm .lw-k b { font-size: 12.5px; } .lw-sm .lw-k small { font-size: 8px; } .lw-sm .lw-ft { gap: 6px; margin-top: 8px; min-height: 92px; } .lw-sm .lw-k { flex-basis: 70px; } .lw-sm .lw-st { padding: 5px 9px; font-size: 10.5px; }
.lw-sm .lw-t { font-size: 12px; } .lw-sm .lw-s { display: none; }

/* Cure is a guess */
.lw-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.lw-tabs button { padding: 5px 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.07); color: #a9bad0; font: 700 11.5px Inter, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.lw-tabs button.on { background: #ff9a3d; color: #1b1206; }
.lw-gs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lw-tile { display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 176px; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); text-align: center; }
.lw-tile small { font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8fa3b8; }
.lw-tile svg { width: 74px; height: 74px; }
.lw-tile b { font-size: 21px; line-height: 1; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.lw-tile em { font-style: normal; font-size: 11.5px; font-weight: 500; color: #8fa3b8; }
.gr-q { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 2px dashed #38506b; font-size: 40px; font-weight: 700; color: #ff9a3d; animation: lw-blink 1.8s ease-in-out infinite; }
.gr-spark { display: none; width: 100%; max-width: 150px; height: 46px; margin: 14px 0 2px; }
.gr-air:not(.meas) .gr-val { color: #6b8199; }
.gr-air.meas .gr-q { display: none; } .gr-air.meas .gr-spark { display: block; }
.lw-sm .lw-tile { min-height: 132px; padding: 8px 4px; } .lw-sm .lw-tile svg { width: 52px; height: 52px; } .lw-sm .gr-q { width: 52px; height: 52px; font-size: 28px; } .lw-sm .lw-tile b { font-size: 16px; } .lw-sm .lw-tile small { font-size: 8px; } .lw-sm .gr-spark { height: 34px; margin-top: 8px; } .lw-sm .lw-tabs button { padding: 4px 9px; font-size: 10px; } .lw-sm .lw-tile em { font-size: 10.5px; }

/* scrap found too late */
.lw-pipe { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding: 18px 0 4px; }
.lw-pipe::before { content: ""; position: absolute; left: 10%; right: 10%; top: 34px; height: 3px; border-radius: 3px; background: #2b4057; }
.lw-node { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.lw-node i { z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #38506b; background: #0e1a2b; transition: background .25s, border-color .25s; }
.lw-node.done i { border-color: #e8eef6; background: #e8eef6; } .lw-node.bad i { border-color: #f87171; background: #f87171; }
.lw-node b { margin-top: 5px; font-size: 11.5px; font-weight: 700; color: #dbe5f0; } .lw-node small { font-size: 9.5px; font-weight: 500; color: #6b8199; }
.lw-tok { position: absolute; z-index: 2; left: 10%; top: 26px; width: 18px; height: 18px; margin-left: -9px; border-radius: 6px; background: #ff9a3d; box-shadow: 0 0 12px rgba(255,154,61,.6); transition: background .25s; }
.lw-tok.bad { background: #f87171; box-shadow: 0 0 12px rgba(248,113,113,.6); }
.lw-log { margin-top: 12px; padding: 8px 11px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 11.5px; line-height: 1.5; color: #a9bad0; font-weight: 500; min-height: 40px; }
.lw-log .bad { color: #f87171; }

/* golden sample feeds every arm, mold and cycle */
.lw-map { max-width: 980px; margin: 48px auto 0; padding: 0; background: none; box-shadow: none; }
.lw-mapg { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: stretch; }
.lw-gcard { display: grid; align-content: center; justify-items: center; gap: 6px; padding: 18px 14px; border-radius: 18px; background: #0e1a2b; box-shadow: 0 30px 46px -32px rgba(14,26,43,.75), inset 0 0 0 1px rgba(255,255,255,.06); text-align: center; color: #dbe5f0; }
.lw-gcard small { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #34d399; }
.lw-gcard svg { width: 100%; max-width: 150px; height: auto; } .lw-gcard b { font-size: 14px; font-weight: 700; color: #fff; } .lw-gcard em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b8199; }
.lw-cards { display: grid; gap: 10px; }
.lw-card { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 11px 16px; border-radius: 16px; background: #0e1a2b; box-shadow: 0 24px 40px -30px rgba(14,26,43,.75), inset 0 0 0 1px rgba(255,255,255,.06); color: #dbe5f0; }
.lw-card h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.lw-card ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 7px; }
.lw-card li { display: grid; justify-items: start; gap: 2px; padding: 6px 9px; border-radius: 9px; background: rgba(255,255,255,.05); font-size: 10px; font-weight: 500; color: #8fa3b8; white-space: nowrap; }
.lw-card li b { font-size: 12.5px; color: #fff; font-weight: 700; }
.lw-card li .lw-st { flex: none; padding: 1px 7px; font-size: 9.5px; border-radius: 6px; }
.gm-cyc { display: flex; gap: 5px; } .gm-cyc i { width: 14px; height: 20px; border-radius: 4px; background: #34d399; animation: lw-pop .4s cubic-bezier(.34,1.56,.64,1); } .gm-cyc i.bad { background: #f87171; }
@keyframes lw-pop { from { transform: scale(.4); opacity: 0; } }
.gm-rate { margin: 6px 0 0; font-size: 11.5px; font-weight: 500; color: #8fa3b8; } .gm-rate b { color: #fff; font-weight: 700; }

/* the old illustration wrappers are plain frames now: the dark panel is the card */
.pd-art, .pc-art, .ra-art { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.pd-art figcaption, .pc-art figcaption, .ra-art figcaption { margin-top: 12px; }
.mc-art { padding: 0; background: none; box-shadow: none; overflow: visible; }
.mc-art::before { display: none; }
.pw-art.lwrap, .sc-art.lwrap { display: block; aspect-ratio: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.pw-art.lwrap::before, .sc-art.lwrap::before { display: none; }
.sc-art.lwrap .lw { display: flex; flex-direction: column; height: 306px; }
.sc-art.lwrap .lw-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.sc-art.lwrap .lw-ft { margin-top: auto; min-height: 0; padding-top: 10px; }
.sc-art.lwrap .lw-gs { flex: 1; }
.sc-art.lwrap .lw-tile { min-height: 0; }
.sc-art.lwrap .lw-log { margin-top: 14px; }
.pw-art.lwrap .lw { min-height: 0; }

/* the step lists follow what the chart is doing */
.pd-steps li::before, .pd-steps li b, .pc-steps li::before, .pc-steps li b, .ra-steps li::before, .ra-steps li b { animation: none !important; transition: opacity .3s, background-color .3s, color .3s, border-color .3s; }
.pd-steps li.lw-on::before, .pc-steps li.lw-on::before, .ra-steps li.lw-on::before { opacity: 1 !important; }
.pd-steps li.lw-on b, .pc-steps li.lw-on b, .ra-steps li.lw-on b { background: #f7861e; border-color: #f7861e; color: #fff; }

@media (max-width: 900px) { .lw-mapg { grid-template-columns: 1fr; } .lw-map { margin-top: 32px; } .lw-gcard { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 4px 16px; } .lw-gcard svg { grid-row: 1 / 4; max-width: 120px; } }
@media (max-width: 560px) {
  .lw { padding: 12px 12px 12px; } .sc-art.lwrap .lw { height: auto; }
  .lw-gs { gap: 8px; } .lw-tile { min-height: 160px; }
  .lw-card { grid-template-columns: 1fr; gap: 8px; padding: 12px; } .lw-card ul { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .lw-hd { flex-wrap: wrap; } .lw-rec { font-size: 10.5px; padding: 3px 9px; }
}
@media (prefers-reduced-motion: reduce) { .lw *, .lw-led { animation: none !important; } }

/* ---------- Solution page: three promises (promise.js) ---------- */
.pr-art.pr-live { display: block; aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; }
.pr-art.pr-live::before { display: none; }
.pm { display: flex; flex-direction: column; height: 292px; }
.pm .pm-n { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #ff9a3d; }
.pm .pm-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pm .lw-ft { min-height: 0; margin-top: 10px; }
/* floor scan */
.pm-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.pm-tile { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: background .3s, box-shadow .3s; }
.pm-tile b { font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.pm-tile span { font-size: 9.5px; font-weight: 600; color: #8fa3b8; white-space: nowrap; }
.pm-tile.vis span { color: #34d399; }
.pm-tile.hid { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.pm-tile.hid b { color: #5f7690; }
.pm-tile.hid.found { background: rgba(255,154,61,.13); box-shadow: inset 0 0 0 1px rgba(255,154,61,.7); }
.pm-tile.hid.found b { color: #fff; } .pm-tile.hid.found span { color: #ffb067; }
.pm-sweep { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; z-index: 2; border-radius: 2px; background: #ff9a3d; box-shadow: 0 0 14px 3px rgba(255,154,61,.55); pointer-events: none; transition: opacity .3s; }
/* connections */
.pm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pm-row { display: grid; grid-template-columns: 1.15fr 1.1fr 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.pm-row b { font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.pm-row em { font-style: normal; font-size: 10px; font-weight: 500; color: #8fa3b8; white-space: nowrap; }
.pm-rd { font-size: 10.5px; font-weight: 600; color: #dbe5f0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-pill { min-width: 78px; padding: 2px 9px; border-radius: 999px; text-align: center; font-style: normal; font-size: 9.5px; font-weight: 700; background: rgba(255,255,255,.07); color: #8fa3b8; }
.pm-row.on .pm-pill { background: rgba(52,211,153,.15); color: #34d399; }
/* gate check */
.pm-read { display: flex; align-items: baseline; gap: 14px; }
.pm-v { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.pm-tag { padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.08); color: #a9bad0; }
.pm-tag.ok { background: rgba(52,211,153,.15); color: #34d399; } .pm-tag.bad { background: rgba(248,113,113,.16); color: #f87171; }
.pm-tol { position: relative; height: 10px; margin: 8px 0 22px; border-radius: 6px; background: rgba(255,255,255,.08); }
.pm-ok { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: rgba(52,211,153,.4); }
.pm-mk { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.7); transition: left .25s; }
.pm-mk.bad { background: #f87171; box-shadow: 0 0 10px rgba(248,113,113,.8); }
.pm-tol small { position: absolute; top: 15px; font-size: 9px; font-weight: 600; color: #6b8199; transform: translateX(-50%); }
.pm-tol small.a { left: 0; transform: none; } .pm-tol small.d { right: 0; left: auto; transform: none; }
.pm-hist { display: flex; gap: 5px; }
.pm-hist i { flex: 1; height: 16px; border-radius: 4px; background: rgba(255,255,255,.06); } .pm-hist i.ok { background: #34d399; } .pm-hist i.bad { background: #f87171; }
@media (max-width: 1000px) { .pm { height: auto; min-height: 292px; } .pm-row { grid-template-columns: 1fr 1fr auto; } .pm-rd { display: none; } }
@media (max-width: 560px) { .pm-grid { grid-template-columns: repeat(3, 1fr); } .pm-tile b { font-size: 11px; } }
.prs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-tile.hid:not(.found) { box-shadow: none; outline: 1.5px dashed rgba(255,255,255,.22); outline-offset: -1.5px; }
.pm-tile.hid:not(.found) span { color: #6b8199; }
@media (max-width: 1000px) { .prs { grid-template-columns: 1fr; } }
