/* Quality & Traceability page (/solutions/quality-traceability/) — builds on platform-page.css, the section styles and widget
   kit (.dk-*) in platform-dashboards.css, and the Solutions patterns in solutions-production.css (.pe-*). Page-specific pieces are .qt-*. */
.qt-page .pe-tablet .dv-panes>*+*{margin-top:12px}
.qt-page .pe-cap-viz .dv-panes>.dk-w:first-child{margin-top:0}

/* ---- hero: the quality records of one batch, kept in four places, come together in the DelphEon app on a tablet.
   data-phase 0 scattered with the open question, 1 the tablet connects to them, 2 they line up and link (rows fill in),
   3 they merge into the tablet's record, 4 the answer. The scene is drawn at 1040 × 420 px (zoomed to fit by the script) ---- */
.qt-viz{max-width:1080px;margin:40px auto 0;font-family:Manrope,Arial,sans-serif}
.pf-page .qt-status{display:grid;justify-content:center;margin:0 auto 18px;font-size:15px;font-weight:700;text-align:center}
.qt-st{grid-area:1/1;justify-self:center;align-self:center;padding:8px 16px;border-radius:40px;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line);color:var(--pf-ink);white-space:nowrap;opacity:0;transition:opacity .4s}
.qt-viz[data-phase="0"] .qt-st0,.qt-viz[data-phase="1"] .qt-st1,.qt-viz[data-phase="2"] .qt-st2,.qt-viz[data-phase="3"] .qt-st3,.qt-viz[data-phase="4"] .qt-st4{opacity:1}
.qt-scene{position:relative;width:1040px;height:420px;margin:0 auto;transition:opacity .4s}
.qt-scene.qt-rst{opacity:0}
.qt-nt,.qt-nt *{transition:none!important}
/* dashed links from the records to the tablet, flowing towards it */
.qt-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:var(--pf-orange);stroke-width:2;stroke-dasharray:5 6;pointer-events:none}
.qt-wires path{opacity:0;transition:opacity .5s;animation:qt-flow 1s linear infinite}
.qt-viz[data-phase="1"] .qt-w1,.qt-viz[data-phase="2"] .qt-w2{opacity:1}
@keyframes qt-flow{to{stroke-dashoffset:-22}}
/* the open question, where the tablet will appear */
.qt-ask{position:absolute;left:310px;top:118px;width:420px;display:grid;justify-items:center;gap:6px;text-align:center;transition:opacity .5s}
.qt-ask b{display:grid;place-items:center;width:84px;height:84px;margin-bottom:12px;border-radius:50%;background:var(--pf-bg);font-size:44px;color:#C7CEE0}
.qt-ask strong{font-size:17px;letter-spacing:-.01em;color:var(--pf-ink)}
.qt-ask span{font-size:13px;font-weight:600;color:var(--pf-muted)}
.qt-viz:not([data-phase="0"]) .qt-ask{opacity:0}
/* the four records: scattered and tilted, then lined up beside the tablet, then pulled into it */
.qt-doc{position:absolute;left:0;top:0;z-index:2;display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:12px;width:200px;padding:14px 16px;border-radius:16px;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line),0 18px 34px -24px rgb(24 26 36 / .5);text-align:left;transition:transform .9s cubic-bezier(.6,0,.3,1),opacity .6s,box-shadow .4s}
.qt-doc>i{grid-row:span 2;display:grid;place-items:center;width:34px;height:40px;border-radius:8px;background:var(--kb);color:var(--kt)}
.qt-doc svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qt-doc b{align-self:end;font-size:14px;line-height:1.3;color:var(--pf-ink)}
.qt-doc small{font-size:11.5px;font-weight:600;color:var(--pf-muted)}
.qt-doc span{grid-column:1/-1;font-size:12px;font-weight:600;line-height:1.5;color:#6D7283}
.qt-doc span:nth-of-type(1){margin-top:10px}
.qt-doc em{position:absolute;right:-9px;top:-9px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#55C197;opacity:0;transform:scale(.4);transition:opacity .3s,transform .4s cubic-bezier(.3,1.6,.6,1)}
.qt-doc em svg{width:14px;height:14px;stroke:#fff;stroke-width:2.6}
.qt-doc0{transform:translate(20px,20px) rotate(-8deg)}
.qt-doc1{transform:translate(820px,8px) rotate(7deg)}
.qt-doc2{transform:translate(50px,282px) rotate(5deg)}
.qt-doc3{transform:translate(800px,276px) rotate(-6deg)}
.qt-viz[data-phase="2"] .qt-doc{box-shadow:0 0 0 2px var(--pf-orange),0 18px 34px -24px rgb(255 95 45 / .5)}
.qt-viz[data-phase="2"] .qt-doc em{opacity:1;transform:none}
.qt-viz[data-phase="2"] .qt-doc0{transform:translate(40px,50px)}
.qt-viz[data-phase="2"] .qt-doc1{transform:translate(800px,50px)}
.qt-viz[data-phase="2"] .qt-doc2{transform:translate(40px,250px)}
.qt-viz[data-phase="2"] .qt-doc3{transform:translate(800px,250px)}
.qt-viz:is([data-phase="3"],[data-phase="4"]) .qt-doc{opacity:0;transform:translate(420px,150px) scale(.35)}
/* the tablet with the DelphEon app: navbar, the batch's record and its status chip */
.qt-tab{position:absolute;left:290px;top:20px;z-index:1;text-align:left;width:460px;height:380px;padding:11px;border-radius:30px;background:#1B1E27;box-shadow:0 0 0 1px #2B2F3A,0 44px 70px -44px rgb(24 26 36 / .6);opacity:0;transform:scale(.9);transition:opacity .6s,transform .6s cubic-bezier(.3,1.3,.5,1)}
.qt-tab:before{content:"";position:absolute;top:4px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#3A3F4E}
.qt-viz:not([data-phase="0"]) .qt-tab{opacity:1;transform:none}
.qt-app{height:100%;overflow:hidden;border-radius:20px;background:#F6F7F9}
.qt-app-nav{display:flex;align-items:center;gap:16px;height:44px;padding:0 14px;border-bottom:1px solid var(--pf-line);background:var(--pf-white);font-size:12px;font-weight:700;color:var(--pf-muted)}
.qt-app-nav img{width:74px;height:auto;margin-right:2px}
.qt-app-nav span{position:relative;align-self:stretch;display:flex;align-items:center}
.qt-app-nav .is-on{color:var(--pf-ink)}
.qt-app-nav .is-on:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--pf-orange)}
.qt-app-nav i{font-style:normal}
.qt-app-find{display:flex;align-items:center;gap:5px;margin-left:auto;padding:5px 10px;border-radius:14px;background:var(--pf-bg);color:var(--pf-ink);transition:box-shadow .4s}
.qt-app-find svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.qt-viz[data-phase="4"] .qt-app-find{box-shadow:0 0 0 2px var(--pf-orange)}
.qt-app-me{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--pf-ink);color:#fff;font-size:10px}
.qt-app-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 10px}
.qt-app-head small{display:block;font-size:11px;font-weight:700;color:var(--pf-muted)}
.qt-app-head b{font-size:18px;letter-spacing:-.02em;color:var(--pf-ink)}
.pf-page .qt-chip{display:grid;margin:0;font-size:11.5px;font-weight:700;line-height:1.3}
.qt-chip span{grid-area:1/1;justify-self:end;padding:5px 11px;border-radius:14px;white-space:nowrap;opacity:0;transition:opacity .4s}
.qt-chip1{background:#EEF0F4;color:#6D7283}.qt-chip2{background:#FFF1EB;color:#D2461A}.qt-chip3{background:#E6F6EF;color:#257A55}.qt-chip4{background:var(--pf-orange);color:#fff}
.qt-viz[data-phase="1"] .qt-chip1,.qt-viz[data-phase="2"] .qt-chip2,.qt-viz[data-phase="3"] .qt-chip3,.qt-viz[data-phase="4"] .qt-chip4{opacity:1}
/* the record: placeholder bars while connecting, then each row arrives in time order with the record it came from */
.qt-app-rows{position:relative;display:grid;gap:8px;margin:0;padding:0 16px;list-style:none}
.qt-app-rows:before{content:"";position:absolute;left:81px;top:24px;bottom:24px;width:2px;background:#D5D9E3;transform-origin:top;transform:scaleY(0);transition:transform .8s}
.qt-viz:is([data-phase="3"],[data-phase="4"]) .qt-app-rows:before{transform:none}
.qt-app-rows li{position:relative;display:grid;grid-template-columns:38px 12px minmax(0,1fr) auto;align-items:center;column-gap:10px;height:54px;padding:0 12px;border-radius:12px;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line)}
.qt-app-rows li:before{content:"";position:absolute;left:12px;right:42%;top:50%;height:10px;margin-top:-5px;border-radius:5px;background:linear-gradient(90deg,#EEF0F4,#F8F9FB,#EEF0F4) 0 0/200% 100%;opacity:0;transition:opacity .3s;animation:qt-shim 1.2s linear infinite}
.qt-viz[data-phase="1"] .qt-app-rows li:before{opacity:1}
@keyframes qt-shim{to{background-position:-200% 0}}
.qt-app-rows li>*{opacity:0;transition:opacity .4s}
.qt-viz:not([data-phase="0"]):not([data-phase="1"]) .qt-app-rows li>*{opacity:1}
.qt-viz[data-phase="2"] .qt-app-rows li:nth-child(2)>*{transition-delay:.3s}
.qt-viz[data-phase="2"] .qt-app-rows li:nth-child(3)>*{transition-delay:.6s}
.qt-viz[data-phase="2"] .qt-app-rows li:nth-child(4)>*{transition-delay:.9s}
.qt-app-rows time{font-size:11.5px;font-weight:700;color:var(--pf-muted)}
.qt-app-rows i{position:relative;z-index:1;width:12px;height:12px;border-radius:50%;background:var(--k);box-shadow:0 0 0 3px var(--pf-white)}
.qt-app-rows b,.qt-app-rows span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.qt-app-rows b{font-size:13px;color:var(--pf-ink)}
.qt-app-rows span{font-size:11.5px;font-weight:600;color:#6D7283}
.qt-app-rows em{padding:4px 8px;border-radius:10px;background:var(--kb);color:var(--kt);font-style:normal;font-size:10.5px;font-weight:700;white-space:nowrap}
/* the stage rail under the scene (the .pe-rail look from Production & Execution, with five stages) */
.qt-rail{margin-top:20px}
.qt-rail:before,.qt-rail .pe-rail-fill{left:10%;right:10%}
.qt-rail .pe-rail-fill{transition:transform .6s ease}
.qt-rail ol{grid-template-columns:repeat(5,minmax(0,1fr))}
.qt-rail li{transition:color .3s}
.qt-rail span:after{transition:opacity .3s}
@media(prefers-reduced-motion:reduce){.qt-viz *{transition:none!important;animation:none!important}}

/* ---- the challenge: pictures ---- */
/* records kept in three separate places */
.qt-pic-silo{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:26px 16px 0}
.qt-pic-silo span{position:relative;align-self:start;padding:12px;border-radius:12px;background:#fff;box-shadow:0 12px 26px -18px rgb(24 26 36 / .55)}
.qt-pic-silo b{display:block;margin-bottom:8px;font-size:11px;color:#3F4456}
.qt-pic-silo i{display:block;height:6px;margin-top:7px;border-radius:3px;background:#EEF0F4}
.qt-pic-silo i:nth-of-type(2){width:75%}.qt-pic-silo i:nth-of-type(3){width:55%}
.qt-pic-silo span+span:before{content:"";position:absolute;right:100%;top:40px;width:22px;border-top:2px dashed #E9A898}
.qt-pic-silo span+span:after{content:"×";position:absolute;left:-17px;top:34px;width:12px;height:12px;border-radius:50%;background:#FDECE8;color:#BF4A33;font-size:11px;font-weight:800;line-height:12px;text-align:center}
.qt-pic-silo em,.qt-pic-trace em{position:absolute;right:12px;bottom:12px;padding:4px 10px;border-radius:12px;background:#FDF6DF;color:#866500;font-style:normal;font-size:11px;font-weight:700}
/* the deviation happened long before anyone noticed */
.qt-pic-late{display:flex;align-items:center;padding:0 24px}
.qt-late{position:relative;width:100%;height:120px}
.qt-late:before{content:"";position:absolute;left:0;right:0;top:64px;height:4px;border-radius:2px;background:#E2E4EA}
.qt-late-gap{position:absolute;left:18%;right:22%;top:64px;height:4px;background:repeating-linear-gradient(90deg,#EE8574 0 6px,transparent 6px 10px)}
.qt-late-gap em{position:absolute;left:50%;top:-38px;transform:translateX(-50%);padding:4px 10px;border-radius:12px;background:#FDECE8;color:#BF4A33;font-style:normal;font-size:11px;font-weight:700;white-space:nowrap}
.qt-late>i{position:absolute;top:58px;display:flex;flex-direction:column;align-items:center;transform:translateX(-50%);font-style:normal}
.qt-late>i:before{content:"";width:16px;height:16px;margin-bottom:8px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 4px #EE8574}
.qt-late-a{left:18%}.qt-late-b{left:78%}
.qt-late-b:before{box-shadow:inset 0 0 0 4px #96A3C2!important}
.qt-late b{font-size:12px;color:#22252F}
.qt-late small{font-size:11px;font-weight:600;color:#858A9B}
/* only the product is known; its batch and lot are question marks */
.qt-pic-trace{display:flex;align-items:center;justify-content:center;padding:0 16px 18px}
.qt-tq{flex:0 1 80px;display:grid;gap:4px;min-width:0;padding:10px 8px;border-radius:12px;box-shadow:inset 0 0 0 2px #D3D6DE;text-align:center}
.qt-tq small{font-size:10.5px;font-weight:700;color:#858A9B}
.qt-tq b{font-size:22px;line-height:1;color:#C7CEE0}
.qt-tq.is-known{background:#fff;box-shadow:0 12px 26px -18px rgb(24 26 36 / .55)}
.qt-tq.is-known b{font-size:13px;line-height:22px;color:#22252F}
.qt-pic-trace>i{flex:0 1 26px;border-top:2px dashed #C7CEE0}

/* ---- how DelphEon helps: who holds the tablet (inspector, lab analyst, quality engineer, quality manager) ---- */
.qt-bg,.qt-wear{transition:opacity .4s ease}
.qt-bg1,.qt-bg2,.qt-bg3,.qt-wear-suit,.qt-wear-lab{opacity:0}
.pe-how-stage:not([data-step="0"]) :is(.qt-bg0,.qt-wear-op){opacity:0}
.pe-how-stage[data-step="1"] :is(.qt-bg1,.qt-wear-lab),.pe-how-stage[data-step="2"] :is(.qt-bg2,.qt-wear-suit),.pe-how-stage[data-step="3"] :is(.qt-bg3,.qt-wear-suit){opacity:1}

/* ---- screens: inspection checks and lab results ---- */
.qt-insp,.qt-res{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.qt-insp li,.qt-res li{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.9fr) 56px;gap:10px;align-items:center;padding:9px 10px;border-radius:10px;font-size:12.5px;font-weight:600;color:#5D6273}
.qt-res li{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 22px}
.qt-insp li:nth-child(odd):not(:first-child),.qt-res li:nth-child(odd):not(:first-child){background:#F7F8FA}
.qt-insp b,.qt-res b{font-size:12.5px;color:#22252F}
.qt-insp .qt-insp-h,.qt-res .qt-insp-h{padding-block:0 4px;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#A3A8B6}
.qt-insp .dk-pill{justify-self:start;padding:3px 10px;font-size:11px}
.qt-insp .qt-off{font-weight:800;color:#BF4A33}
.qt-res i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--k)}
.qt-res i svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
/* sample workflow: registered → tested → reviewed → approved */
.qt-lims{display:flex;margin:0;padding:12px 14px;border-radius:14px;background:#fff;list-style:none;font-size:12px;font-weight:700;color:#A3A8B6}
.qt-lims li{flex:1;display:flex;align-items:center;gap:8px;white-space:nowrap}
.qt-lims li:last-child{flex:none}
.qt-lims li:not(:last-child):after{content:"";flex:1;height:2px;margin:0 6px;background:#EEF0F4}
.qt-lims i{flex:none;width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 2px #D3D6DE}
.qt-lims .is-done{color:#5D6273}
.qt-lims .is-done:after{background:#A4E1C6!important}
.qt-lims .is-done i{box-shadow:none;background:#55C197 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5'/%3E%3C/svg%3E") center/18px no-repeat}
.qt-lims .is-now{color:#22252F}
.qt-lims .is-now i{box-shadow:inset 0 0 0 5px #5B9BD5}
/* control chart */
.qt-spc{display:block;width:100%;height:auto;overflow:visible}
.qt-spc-lim{stroke:#EE8574;stroke-width:1.2;stroke-dasharray:4 4}
.qt-spc-cl{stroke:#96A3C2;stroke-width:1}
.qt-spc-t{font:700 9.5px Manrope,Arial,sans-serif;fill:#858A9B;text-anchor:end}
.qt-spc-ln{fill:none;stroke:#5B9BD5;stroke-width:2;stroke-linejoin:round}
.qt-spc-pt{fill:#fff;stroke:#5B9BD5;stroke-width:2}
.qt-spc-out{fill:#EE8574;stroke:#fff;stroke-width:2}
/* deviation record */
.qt-dev{box-shadow:0 0 0 2px #EE8574,0 10px 26px -20px rgb(24 26 36 / .3)}
.qt-dev>b{display:block;font-size:13.5px;color:#22252F}
.qt-dev>small{display:block;margin:2px 0 12px;font-size:11.5px;font-weight:600;color:#858A9B}
/* genealogy chain: product → batch → lots */
.qt-chain{display:flex;align-items:stretch}
.qt-cn{flex:1;display:grid;align-content:center;gap:2px;padding:10px 12px;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgb(24 26 36 / .05),0 10px 26px -20px rgb(24 26 36 / .3)}
.qt-cn small{font-size:10.5px;font-weight:700;color:#858A9B}
.qt-cn b{font-size:13.5px;color:#22252F}
.qt-cn.is-start{box-shadow:0 0 0 2px var(--pf-orange)}
.qt-cn-lots{flex:1.6;grid-template-columns:repeat(3,auto);justify-content:start;column-gap:10px}
.qt-cn-lots small{grid-column:1/-1}
.qt-chain>i{position:relative;flex:none;align-self:center;width:26px;height:2px;background:var(--pf-orange)}
.qt-chain>i:after{content:"";position:absolute;right:-1px;top:-4px;border:5px solid transparent;border-left-color:var(--pf-orange);border-right:0}
/* inspection record header */
.qt-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.qt-meta span{display:grid;gap:2px;padding:9px 12px;border-radius:12px;background:#fff}
.qt-meta small{font-size:10.5px;font-weight:700;color:#858A9B}
.qt-meta b{font-size:13px;color:#22252F}
/* sample list: four-step progress per sample */
.qt-samples{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.qt-samples li{display:grid;grid-template-columns:minmax(0,1fr) 94px 128px;gap:14px;align-items:center;padding:12px 14px;border-radius:14px;background:#fff}
.qt-samples b{display:block;font-size:13.5px;color:#22252F}
.qt-samples small{display:block;overflow:hidden;font-size:11.5px;font-weight:600;color:#858A9B;white-space:nowrap;text-overflow:ellipsis}
.qt-samples .dk-pill{justify-self:start;font-size:11px}
.qt-dots{display:flex;gap:4px}
.qt-dots i{flex:1;height:6px;border-radius:3px;background:#E6E8EE}
.qt-dots i.on{background:var(--k)}
/* batch record: lots in, stages, output */
.qt-gen-cols{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
.qt-lots,.qt-stages{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.qt-lots li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;border-radius:10px;background:#F7F8FA;font-size:12px;font-weight:600;color:#5D6273}
.qt-lots b{font-size:12.5px;color:#22252F}
.qt-lots em{font-style:normal;font-weight:700;color:#22252F}
.qt-stages li{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;padding:2px 0 8px 22px;font-size:12px;font-weight:600;color:#858A9B}
.qt-stages li:before{content:"";position:absolute;left:0;top:3px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px #5B9BD5}
.qt-stages li:not(:last-child):after{content:"";position:absolute;left:4px;top:15px;bottom:-1px;width:2px;background:#E6E8EE}
.qt-stages b{font-size:12.5px;color:#22252F}
.qt-stages span{grid-row:2}
.qt-stages small{grid-row:1/3;grid-column:2;align-self:center;font-size:11px;font-weight:700}
/* genealogy graph: the chosen direction lights its path; the rest fades back */
.qt-graph-svg{display:block;width:100%;height:auto}
.qt-gh{font:800 9.5px Manrope,Arial,sans-serif;letter-spacing:.08em;fill:#A3A8B6}
.qt-gn{transition:opacity .3s}
.qt-gn rect{fill:#fff;stroke:#E2E4EA;stroke-width:1.5;transition:fill .3s,stroke .3s}
.qt-gn-id{font:800 13px Manrope,Arial,sans-serif;fill:#22252F;transition:fill .3s}
.qt-gn-sub{font:600 10.5px Manrope,Arial,sans-serif;fill:#858A9B;transition:fill .3s}
.qt-ge{fill:none;stroke:#D3D6DE;stroke-width:2;transition:stroke .3s,opacity .3s}
.qt-graph[data-mode=back] .qt-gn:not(.qt-in-b),.qt-graph[data-mode=fwd] .qt-gn:not(.qt-in-f){opacity:.4}
.qt-graph[data-mode=back] .qt-ge:not(.qt-in-b),.qt-graph[data-mode=fwd] .qt-ge:not(.qt-in-f){opacity:.35}
.qt-graph[data-mode=back] .qt-gn.qt-in-b rect,.qt-graph[data-mode=fwd] .qt-gn.qt-in-f rect{fill:#FFF6F1;stroke:#F5A47E}
.qt-graph[data-mode=back] .qt-ge.qt-in-b,.qt-graph[data-mode=fwd] .qt-ge.qt-in-f{stroke:var(--pf-orange);stroke-dasharray:6 5}
/* where the trace starts */
.qt-graph[data-mode=back] .qt-gn.qt-o-b rect,.qt-graph[data-mode=fwd] .qt-gn.qt-o-f rect{fill:var(--pf-orange);stroke:var(--pf-orange)}
.qt-graph[data-mode=back] .qt-gn.qt-o-b text,.qt-graph[data-mode=fwd] .qt-gn.qt-o-f text{fill:#fff}
.qt-graph[data-mode=back] .qt-say-fwd,.qt-graph[data-mode=fwd] .qt-say-back{display:none}
.qt-dir{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.qt-dir button{padding:11px 18px;border:0;border-radius:30px;background:var(--pf-bg);font-family:inherit;font-size:14px;font-weight:700;color:var(--pf-ink);cursor:pointer;transition:background-color .25s,color .25s}
.qt-dir button:hover{background:var(--pf-ice)}
.qt-dir button[aria-pressed=true]{background:var(--pf-ink);color:#fff}
.qt-dir button:focus-visible{outline:2px solid var(--pf-blue);outline-offset:3px}

/* ---- from quality checks to complete investigations: a case file whose trail links one record per step ---- */
.qt-case{margin:0;border-radius:32px;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line),0 40px 70px -50px rgb(24 26 36 / .45);overflow:hidden}
.qt-case-top{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:20px;padding:22px 36px;background:var(--pf-ink);color:#fff}
.qt-case-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--pf-orange);font-size:22px;font-weight:800}
.qt-case-top small{display:block;font-size:13px;color:#A9AEC0}
.qt-case-top b{display:block;margin-top:2px;font-size:20px;letter-spacing:-.02em}
.qt-case-top em{padding:7px 14px;border-radius:20px;background:rgb(255 255 255 / .1);font-style:normal;font-size:13px;font-weight:700;white-space:nowrap}
.qt-trail{margin:0;padding:0 36px 8px;list-style:none}
.qt-trail>li{--d:calc(var(--i) * .5s);position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:20px 40px;padding:28px 0}
.qt-trail>li+li{border-top:1px solid var(--pf-line)}
/* the trail: a grey rail from the case header down to the last step, with an orange fill drawn over it */
.qt-trail>li:before,.qt-trail>li:after{content:"";position:absolute;left:23px;top:0;bottom:0;width:2px;background:var(--pf-line)}
.qt-trail>li:after{background:var(--pf-orange);transform-origin:top}
.qt-trail>li:last-child:before,.qt-trail>li:last-child:after{bottom:50%}
.qt-dot{position:relative;z-index:1;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#FFF4EF;box-shadow:0 0 0 2px var(--pf-orange),0 0 0 7px var(--pf-white)}
.qt-dot svg{width:20px;height:20px;fill:none;stroke:#C2441A;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pf-page .qt-s-txt h3{font-size:20px;letter-spacing:-.03em;margin-bottom:6px}
.pf-page .qt-s-txt p{max-width:440px;font-size:15.5px;line-height:1.55}
/* the record each step brings in, drawn like a DelphEon record */
.qt-rec{display:grid;gap:10px;padding:16px 18px;border-radius:18px;background:var(--pf-surface);box-shadow:0 0 0 1px var(--pf-line);transition:box-shadow .25s}
.qt-trail>li:hover .qt-rec{box-shadow:0 0 0 1px #F5A47E,0 18px 30px -24px rgb(194 68 26 / .5)}
.pf-page .qt-rec-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}
.qt-rec-h b{font-size:14.5px;letter-spacing:-.01em;color:var(--pf-ink)}
.qt-rec-h .dk-pill{font-size:11.5px}
.qt-rec>small{font-size:12.5px;color:var(--pf-muted)}
.qt-spark{display:block;width:100%;height:64px;overflow:visible}
.qt-spark rect{fill:#EAF2FB}
.qt-spark-t{stroke:#A9CBEF;stroke-width:1.5;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.qt-spark circle{fill:#5B9BD5;stroke:#fff;stroke-width:2}
.qt-spark circle.is-low{fill:#E5533A}
.qt-log,.qt-todo{display:grid;gap:7px;margin:0;padding:0;list-style:none;font-size:13.5px;color:var(--pf-text)}
.qt-log li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px}
.qt-log time{font-weight:700;font-variant-numeric:tabular-nums;color:var(--pf-muted)}
.qt-log .is-flag{color:#BF4A33;font-weight:700}
.qt-log .is-flag time{color:inherit}
.qt-tree{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);grid-template-rows:auto auto;row-gap:8px;align-items:center}
.qt-tree span{display:grid;padding:7px 11px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--pf-line);font-size:13.5px;font-weight:700;color:var(--pf-ink)}
.qt-tree small{font-size:11.5px;font-weight:600;color:var(--pf-muted)}
.qt-tree .is-src{grid-row:1/3;background:#FEF0E8;box-shadow:0 0 0 1px #F9CDAE}
.qt-tree svg{grid-row:1/3;width:40px;height:100%;overflow:visible}
.qt-tree path{fill:none;stroke:#F5A47E;stroke-width:2;vector-effect:non-scaling-stroke}
.qt-todo li{position:relative;padding:0 0 0 26px}
.qt-todo li:before{content:"";position:absolute;left:0;top:1px;width:16px;height:16px;border-radius:5px;box-shadow:inset 0 0 0 1.5px #C7CEE0}
.qt-todo .is-done{color:var(--pf-muted)}
.qt-todo .is-done:before{background:#2BB673 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%;box-shadow:none}
.pf-page .qt-case-note{max-width:620px;margin:18px auto 0;text-align:center;font-size:13px;line-height:1.5;color:var(--pf-muted)}
/* before it is first seen (.is-pre, set by JS) the trail is unlinked and the records are out of the file */
.qt-case.is-pre .qt-trail>li:after{transform:scaleY(0)}
.qt-case.is-pre .qt-dot{background:var(--pf-white);box-shadow:0 0 0 2px var(--pf-line),0 0 0 7px var(--pf-white)}
.qt-case.is-pre .qt-dot svg{stroke:var(--pf-muted)}
.qt-case.is-pre .qt-rec{opacity:0;transform:translateX(24px)}
@media(prefers-reduced-motion:no-preference){
 /* only the link-up animates; hiding (adding .is-pre) is instant */
 .qt-case:not(.is-pre) .qt-trail>li:after{transition:transform .5s linear var(--d)}
 .qt-case:not(.is-pre) .qt-dot{transition:background-color .3s var(--d),box-shadow .3s var(--d)}
 .qt-case:not(.is-pre) .qt-dot svg{transition:stroke .3s var(--d)}
 .qt-case:not(.is-pre) .qt-rec{transition:opacity .5s ease-out calc(var(--d) + .15s),transform .5s ease-out calc(var(--d) + .15s),box-shadow .25s}
}

/* ---- motion (paused while off screen via .dk-wait, like the rest of the kit) ---- */
@media(prefers-reduced-motion:no-preference){
 .qt-spc-out{animation:qt-out 2.4s ease-in-out infinite}
 .qt-graph .qt-ge.qt-in-b{animation:qt-back 1s linear infinite}
 .qt-graph[data-mode=fwd] .qt-ge.qt-in-f{animation:qt-fwd 1s linear infinite}
 .qt-graph[data-mode=fwd] .qt-ge.qt-in-b:not(.qt-in-f){animation:none}
 .qt-late-gap em{animation:dk-blink 2.4s ease-in-out infinite}
 .qt-pic-trace .qt-tq:not(.is-known) b{animation:pe-ask 3s ease-in-out infinite}
}
@keyframes qt-out{50%{r:5.5}}
@keyframes qt-back{to{stroke-dashoffset:22}}
@keyframes qt-fwd{to{stroke-dashoffset:-20}}

/* ---- responsive ---- */
@media(max-width:1000px){
 .qt-trail>li{grid-template-columns:48px minmax(0,1fr);gap:16px 24px;align-items:start}
 .qt-trail>li:last-child:before,.qt-trail>li:last-child:after{bottom:auto;height:52px}
 .qt-rec{grid-column:2;max-width:460px}
}
@media(max-width:800px){
 .qt-dir button{font-size:13px;padding:10px 14px}
}
/* phones: the records sit in a 2 × 2 grid above the tablet (no zoom); they tilt while scattered, get an orange outline and a
   tick when linked, and dim once they are in the record */
@media(max-width:700px){
 .qt-viz{margin-top:32px}
 .pf-page .qt-status{font-size:12.5px}
 .qt-st{max-width:100%;white-space:normal}
 .qt-scene{display:grid;gap:14px;width:auto;height:auto}
 .qt-wires{display:none}
 .qt-docs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .qt-doc{position:relative;width:auto;padding:10px;grid-template-columns:28px minmax(0,1fr);column-gap:8px}
 .qt-doc>i{width:28px;height:32px}
 .qt-doc svg{width:16px;height:16px}
 .qt-doc b{font-size:12.5px}
 .qt-doc small{font-size:10.5px}
 .qt-doc span{display:none}
 .qt-doc0{transform:rotate(-3deg)}.qt-doc1{transform:rotate(3deg)}.qt-doc2{transform:rotate(2deg)}.qt-doc3{transform:rotate(-2deg)}
 .qt-viz:not([data-phase="0"]) .qt-doc{transform:none}
 .qt-viz:is([data-phase="3"],[data-phase="4"]) .qt-doc{opacity:.45}
 .qt-ask{position:static;grid-area:2/1;align-self:center;width:auto;padding:0 12px}
 .qt-ask b{width:60px;height:60px;margin-bottom:6px;font-size:32px}
 .qt-ask strong{font-size:15px}
 .qt-ask span{font-size:12px}
 .qt-tab{position:relative;left:auto;top:auto;grid-area:2/1;width:auto;height:auto;padding:7px;border-radius:22px}
 .qt-app{border-radius:15px;padding-bottom:10px}
 .qt-app-nav{gap:10px;height:38px;padding:0 10px;font-size:11px}
 .qt-app-nav img{width:60px}
 .qt-app-nav span:not(.is-on){display:none}
 .qt-app-head{padding:10px 12px 8px}
 .qt-app-head b{font-size:15px}
 .pf-page .qt-chip{font-size:10.5px}
 .qt-chip span{padding:4px 9px}
 .qt-app-rows{gap:6px;padding:0 10px}
 .qt-app-rows:before{left:66px}
 .qt-app-rows li{grid-template-columns:34px 10px minmax(0,1fr);column-gap:8px;height:auto;padding:8px 10px}
 .qt-app-rows i{width:10px;height:10px}
 .qt-app-rows b{font-size:12px}
 .qt-app-rows span{font-size:10.5px}
 .qt-app-rows em{display:none}
 .qt-rail{margin-top:16px}
 .qt-case{border-radius:24px}
 .qt-case-top{grid-template-columns:40px minmax(0,1fr);gap:4px 14px;padding:18px}
 .qt-case-ic{width:40px;height:40px;font-size:19px}
 .qt-case-top b{font-size:16.5px}
 .qt-case-top em{grid-column:2;justify-self:start;padding:5px 11px;font-size:12px}
 .qt-trail{padding:0 16px 4px}
 .qt-trail>li{grid-template-columns:40px minmax(0,1fr);gap:12px 14px;align-items:start;padding:22px 0}
 .qt-trail>li:before,.qt-trail>li:after{left:19px}
 .qt-trail>li:last-child:before,.qt-trail>li:last-child:after{bottom:auto;height:42px}
 .qt-dot{width:40px;height:40px}
 .qt-dot svg{width:18px;height:18px}
 .pf-page .qt-s-txt h3{font-size:18px;margin-bottom:4px}
 .pf-page .qt-s-txt p{font-size:14.5px}
 .qt-rec{padding:13px 14px;border-radius:16px}
 .qt-rec-h b{font-size:13.5px}
 .qt-log,.qt-todo,.qt-tree span{font-size:13px}
 .qt-pic-silo{gap:16px;padding-inline:12px}
 .qt-pic-silo span+span:before{width:16px}
 .qt-pic-silo span+span:after{left:-14px}
}

/* ---- key capabilities: a production line of five stations; the open one's panel shows below ---- */
/* the story wrappers (solutions-quality-mobile.css) take no part in the layout above 900px */
.qt-caps-run,.qt-caps-stage{display:contents}
.qt-line{--at:0;position:relative;margin-bottom:8px;padding-top:26px}
/* the track runs between the first and last station icons; it fills and the batch (a crate) slides to the open station */
.qt-line-track{position:absolute;left:10%;right:10%;top:60px;height:4px;border-radius:2px;background:repeating-linear-gradient(90deg,#D3D6DE 0 14px,transparent 14px 22px)}
.qt-line-fill{position:absolute;inset:0;border-radius:2px;background:var(--pf-orange);transform-origin:left;transform:scaleX(calc(var(--at) / 4));transition:transform .6s ease}
.qt-line-batch{position:absolute;top:-56px;left:calc(100% * var(--at) / 4);width:18px;height:14px;margin-left:-9px;border-radius:4px;background:#F1D8B5;box-shadow:inset 0 0 0 2px #D9B98F;transition:left .6s ease}
.qt-line-batch:after{content:"";position:absolute;left:4px;right:4px;top:5px;height:2px;background:#D9B98F}
.qt-stations{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.qt-stn{display:grid;justify-items:center;align-content:start;gap:6px;padding:0 6px 6px;border:0;border-radius:14px;background:none;font-family:inherit;text-align:center;cursor:pointer}
.qt-stn-ic{display:grid;place-items:center;width:68px;height:68px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--pf-line),0 12px 26px -18px rgb(24 26 36 / .5);transition:background-color .25s,transform .25s,box-shadow .25s}
.qt-stn-ic svg{width:26px;height:26px;fill:none;stroke:var(--pf-ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke .25s}
.qt-stn small{margin-top:6px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--pf-muted)}
.qt-stn b{font-size:15px;line-height:1.3;color:var(--pf-text);transition:color .25s}
.qt-stn:hover .qt-stn-ic{transform:translateY(-3px)}
.qt-stn:focus-visible{outline:2px solid var(--pf-blue);outline-offset:4px}
.qt-stn[aria-selected=true] .qt-stn-ic{background:var(--pf-orange);box-shadow:0 0 0 7px rgb(255 95 45 / .16)}
.qt-stn[aria-selected=true] .qt-stn-ic svg{stroke:#fff}
.qt-stn[aria-selected=true] b{color:var(--pf-ink)}
.pf-page .qt-line-band{margin:18px 10% 0;padding:10px 16px;border-radius:14px;background:#FFF4EF;color:#B4612F;font-size:13.5px;font-weight:700;text-align:center}
/* the panels keep the capability row layout, without the alternating sides and dividers */
.qt-panel,.qt-panel:nth-of-type(even){grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);padding:44px 0 0;border-top:0}
.qt-panel:nth-of-type(even) .pe-cap-copy{order:0}
.qt-panel[hidden]{display:none}
.qt-panel:focus-visible{outline:2px solid var(--pf-blue);outline-offset:8px;border-radius:12px}
@media(prefers-reduced-motion:no-preference){
 .qt-panel:not([hidden]){animation:pe-rise .45s ease-out both}
}
/* desktop: the heading sits beside the line and the section fits one window under the header. The script sets every
   panel to the height left over (--ch) and zooms the open screen to fit it (--cz) */
@media(min-width:1101px){
 .dv-card.qt-caps{padding:36px 0;scroll-margin-top:112px}
 .qt-caps-top{display:grid;grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr);gap:0 48px;align-items:center}
 .qt-caps .qt-panel{grid-column:1/-1}
 .qt-caps .dv-head{margin-bottom:0}
 .qt-caps .dv-label{margin-bottom:12px}
 .pf-page .qt-caps h2{font-size:clamp(32px,2.6vw,40px)}
 .qt-caps .qt-line{margin-bottom:0}
 .qt-caps .qt-panel,.qt-caps .qt-panel:nth-of-type(even){min-height:var(--ch,0);padding-top:28px;gap:40px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .pf-page .qt-caps .pe-cap h3{font-size:clamp(26px,2.2vw,32px);margin-bottom:12px}
 .pf-page .qt-caps .pe-cap-copy .pe-cap-lead{font-size:17px}
 .qt-caps .qt-stn b{font-size:14px}
 .pf-page .qt-caps .qt-line-band{margin:14px 0 0;padding:8px 14px}
 .qt-caps .pe-cap-viz>.dv-screen{width:var(--cw,auto);margin-inline:auto;zoom:var(--cz,1)}
}
/* short desktop windows (1366 × 768 laptops): a little less air, so the screen keeps a readable zoom */
@media(min-width:1101px) and (max-height:820px){
 .dv-card.qt-caps{padding:24px 0}
 .qt-caps .dv-label{margin-bottom:8px}
 .pf-page .qt-caps .pe-cap-copy p{font-size:15px}
 .pf-page .qt-caps .pe-cap-copy .pe-cap-lead{font-size:16px}
}
@media(max-width:1100px){
 .qt-panel,.qt-panel:nth-of-type(even){grid-template-columns:1fr;gap:32px}
}
@media(max-width:700px){
 .qt-line-track{top:49px}
 .qt-line-batch{top:-46px}
 .qt-stn{padding-inline:2px}
 .qt-stn-ic{width:46px;height:46px;border-radius:15px}
 .qt-stn-ic svg{width:20px;height:20px}
 .qt-stn small{display:none}
 .qt-stn b{font-size:11px}
 .pf-page .qt-line-band{margin-inline:0;font-size:12.5px}
 .qt-panel{padding-top:32px}
}

/* phones: the investigation trail becomes a row of swipe cards inside the case file (script in _phone-motion.php); the
   dots under it link the records one by one, so the vertical trail line steps aside */
@media(max-width:800px){
 .pf-page .qt-trail.pe-swipe{margin:0;padding:18px 16px 12px;scroll-padding-inline:16px}
 .pf-page .qt-trail.pe-swipe>li{flex-basis:86%;border-top:0;background:var(--pf-surface)}
 .qt-trail.pe-swipe>li:before,.qt-trail.pe-swipe>li:after{display:none}
 .qt-trail.pe-swipe .qt-dot{box-shadow:0 0 0 2px var(--pf-orange)}
 .qt-trail.pe-swipe .qt-rec{margin-top:16px;background:var(--pf-white)}
 .qt-trail.pe-swipe+.pe-dots{margin:0 0 18px}
}
