/* Utilities & Cost page (/solutions/energy-cost/) — 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 .uc-*. */
.uc-page .pe-tablet .dv-panes>*+*{margin-top:12px}
.uc-page .dk-hbars li{grid-template-columns:minmax(96px,auto) minmax(0,1fr) 84px}

/* ---- hero: four utility sources pipe their readings into a DelphEon Lite tablet. data-phase 0–3 picks the tablet view (live,
   where used, cost per unit, waste) and each source card's line follows it. Above 1100px the sources sit either side of the
   tablet with pipes running in from the sides; below that they form a row above it with pipes running down. ---- */
.uc-viz{max-width:1160px;margin:44px auto 0;font-family:Manrope,Arial,sans-serif}
.pf-page .uc-status{display:grid;justify-content:center;margin:0 auto 22px;font-size:15px;font-weight:700;text-align:center}
.uc-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}
.uc-st3{color:#BF4A33}
.uc-viz[data-phase="0"] .uc-st0,.uc-viz[data-phase="1"] .uc-st1,.uc-viz[data-phase="2"] .uc-st2,.uc-viz[data-phase="3"] .uc-st3{opacity:1}
.uc-plant{--gap:60px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);grid-template-rows:1fr 1fr;gap:20px var(--gap);text-align:left}
.uc-src-e{grid-area:1/1}.uc-src-w{grid-area:2/1}.uc-src-s{grid-area:1/3}.uc-src-g{grid-area:2/3}
.uc-lite{grid-area:1/2/3/3;align-self:center;min-width:0}
/* a source: its picture, its name and one line for the open view */
.uc-src{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:10px 10px 16px;border-radius:24px;background:#fff;box-shadow:0 0 0 1px var(--pf-line),0 24px 40px -36px rgb(24 26 36 / .4);transition:box-shadow .4s}
.uc-art{display:block;width:100%;height:auto;aspect-ratio:160/96;padding:10px 8px 4px;border-radius:16px;background:var(--kb);overflow:visible}
.uc-src-s .uc-art,.uc-src-g .uc-art{transform:scaleX(-1)}
.uc-src-copy{padding:0 6px}
.pf-page .uc-src .dk-card-h{font-size:13px;color:#3F4456}
.pf-page .uc-say{display:grid;margin-top:4px;font-size:13px;font-weight:600;color:#858A9B}
.uc-say>span{grid-area:1/1;opacity:0;transform:translateY(4px);transition:opacity .35s,transform .35s}
.uc-say b{margin-right:4px;font-size:20px;font-weight:800;letter-spacing:-.03em;color:#22252F}
.uc-say3 b{color:#BF4A33}
.uc-src-g .uc-say3 b{color:#1E9E5A}
.uc-viz[data-phase="0"] .uc-say0,.uc-viz[data-phase="1"] .uc-say1,.uc-viz[data-phase="2"] .uc-say2,.uc-viz[data-phase="3"] .uc-say3{opacity:1;transform:none}
.uc-viz[data-phase="3"] .uc-src:not(.uc-src-g){box-shadow:0 0 0 2px #EE8574,0 24px 40px -36px rgb(24 26 36 / .4)}
/* the pipe from a source to the tablet: dashes in the utility's colour run towards the tablet */
.uc-pipe{position:absolute;top:calc(50% - 5px);left:100%;width:var(--gap);height:10px;border-radius:5px;background:#E3E7EF;box-shadow:inset 0 0 0 1px #D3D9E4;overflow:hidden}
.uc-src-s .uc-pipe,.uc-src-g .uc-pipe{left:auto;right:100%;--dx:-1}
.uc-pipe:after{content:"";position:absolute;inset:2px -22px;border-radius:3px;background:repeating-linear-gradient(90deg,var(--k) 0 10px,transparent 10px 22px)}
.uc-src-e .uc-pipe{--sp:.6s;top:calc(50% - 4px);height:8px}
.uc-src-w .uc-pipe{--sp:1.2s}.uc-src-s .uc-pipe{--sp:1.8s}.uc-src-g .uc-pipe{--sp:1s}
/* the line-art */
.uc-art :is(.uc-gnd,.uc-fin,.uc-leg,.uc-wire,.uc-zap,.uc-ink,.uc-pipe-in,.uc-band,.uc-edge){fill:none;stroke-linecap:round;stroke-linejoin:round}
.uc-gnd{stroke:#C7CEE0;stroke-width:2}
.uc-box{fill:#fff;stroke:#96A3C2;stroke-width:2}
.uc-edge,.uc-leg{stroke:#96A3C2;stroke-width:2}
.uc-fin{stroke:#C7CEE0;stroke-width:2}
.uc-ink{stroke:#4F5B78;stroke-width:1.6}
.uc-acc{fill:#E0A800}
.uc-wire{stroke:#96A3C2;stroke-width:1.4}
.uc-zap{stroke:#E0A800;stroke-width:2.6;stroke-dasharray:6 60}
.uc-wave{fill:var(--k);opacity:.6}
.uc-pipe-in{stroke:var(--k);stroke-width:5}
.uc-band{stroke:var(--k);stroke-width:4}
.uc-valve,.uc-dial,.uc-meter{fill:#fff;stroke:#4F5B78;stroke-width:2}
.uc-chim{fill:#C7CEE0}
.uc-puff{fill:#D3D9E4;opacity:0;transform-box:fill-box;transform-origin:center}
.uc-fire{fill:#22252F}
.uc-flame{fill:#FF8A3D;transform-box:fill-box;transform-origin:50% 100%}
/* the tablet: the view's title in the bar, a tab per view, then the open view */
.uc-lt{display:grid;min-width:0}
.uc-lt>span{grid-area:1/1;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .35s}
.uc-viz[data-phase="0"] .uc-lt0,.uc-viz[data-phase="1"] .uc-lt1,.uc-viz[data-phase="2"] .uc-lt2,.uc-viz[data-phase="3"] .uc-lt3{opacity:1}
.uc-ltabs{display:flex;gap:4px;padding:8px 12px;border-bottom:1px solid #E6E8EE;background:#fff;overflow-x:auto;scrollbar-width:none}
.uc-ltabs button{position:relative;flex:none;padding:7px 13px;border:0;border-radius:20px;background:none;font-family:inherit;font-size:12.5px;font-weight:700;color:#5D6273;cursor:pointer;transition:background-color .25s,color .25s}
.uc-ltabs button:hover{background:#F3F4F7}
.uc-ltabs button[aria-pressed=true]{background:#22252F;color:#fff}
.uc-ltabs button:focus-visible{outline:2px solid var(--pf-blue);outline-offset:2px}
/* the open tab's timer: when the orange line fills, the script opens the next view */
.uc-ltabs button:after{content:"";position:absolute;left:13px;right:13px;bottom:3px;height:2px;border-radius:1px;background:var(--pf-orange);transform:scaleX(0);transform-origin:left}
.uc-lps{display:grid;padding:14px}
.uc-lp{grid-area:1/1;min-width:0;opacity:0;visibility:hidden;transition:opacity .35s,visibility 0s .35s}
.uc-viz[data-phase="0"] .uc-lp0,.uc-viz[data-phase="1"] .uc-lp1,.uc-viz[data-phase="2"] .uc-lp2,.uc-viz[data-phase="3"] .uc-lp3{opacity:1;visibility:visible;transition:opacity .35s}
.pf-page .uc-lnote{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:10px;padding:10px 14px;border-radius:14px;background:#fff;font-size:12.5px;font-weight:700;color:#3F4456}
.uc-lnote small{font-weight:600;color:#858A9B}
.uc-lnote b{color:#22252F}
.uc-ok{width:8px;height:8px;border-radius:50%;background:#1E9E5A;box-shadow:0 0 0 3px #DDF3E8}
/* live */
.uc-lcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.uc-lcards .dk-card b{font-size:25px}
.uc-spark{margin-top:8px;padding:10px 14px 8px;border-radius:16px;background:#fff}
.pf-page .uc-spark p{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:#858A9B}
.uc-spark p b{color:#22252F;white-space:nowrap}
.uc-spark p small{font-weight:600;color:#858A9B}
.uc-spark svg{display:block;width:100%;height:46px;margin-top:6px;overflow:visible}
.uc-spark-a{fill:#EBC255;opacity:.18}
.uc-spark-l{fill:none;stroke:#E0A800;stroke-width:2;vector-effect:non-scaling-stroke}
.uc-spark-c{fill:none;stroke:#EE8574;stroke-width:1.2;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
/* where used: one bar per area, split by utility */
.uc-lkey{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0 0 8px;padding:0 2px;list-style:none;font-size:11.5px;font-weight:700;color:#5D6273}
.uc-lkey li:before,.uc-waste li:before{content:"";display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:3px;background:var(--k)}
.uc-stack{display:grid;margin:0;padding:8px 14px;border-radius:16px;background:#fff;list-style:none}
.uc-stack li{display:grid;grid-template-columns:minmax(100px,auto) minmax(0,1fr) 50px;gap:10px;align-items:center;padding:11px 0;font-size:12.5px;font-weight:600;color:#5D6273}
.uc-stack i{display:flex;gap:2px;width:var(--w);height:16px;transform-origin:left}
.uc-stack em{min-width:3px;border-radius:3px;background:linear-gradient(90deg,var(--k),var(--k2))}
.uc-stack b{text-align:right;color:#22252F}
.uc-stack .is-idle :is(span,b){color:#BF4A33}
.uc-stack .is-idle i{border-radius:4px;box-shadow:0 0 0 2px #fff,0 0 0 3.5px #EE8574}
/* cost per unit */
.uc-rates{margin:0;padding:4px 14px;border-radius:16px;background:#fff;list-style:none}
.uc-rates li{display:grid;grid-template-columns:minmax(0,1fr) auto 58px;gap:12px;align-items:center;padding:8px 0;border-top:1px solid #EEF0F4}
.uc-rates .uc-rates-h{padding:6px 0 4px;border-top:0;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9A9FAE}
.uc-rates-h span+span{text-align:right}
.uc-rates span{display:grid}
.uc-rates span b{position:relative;padding-left:16px;font-size:13.5px;color:#22252F}
.uc-rates span b:before{content:"";position:absolute;left:0;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:3px;background:var(--k)}
.uc-rates small{padding-left:16px;font-size:11.5px;font-weight:600;color:#858A9B}
.uc-rates em{justify-self:end;padding:4px 10px;border-radius:12px;background:var(--kb);font-style:normal;font-size:12.5px;font-weight:800;color:var(--kt);white-space:nowrap}
.uc-rates li>b{text-align:right;font-size:14px;color:#22252F}
.uc-per-t{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin-top:10px;padding:12px 16px;border-radius:16px;background:#22252F}
.uc-per-t span{display:grid}
.uc-per-t small{font-size:11.5px;font-weight:700;color:#A3A8B6}
.uc-per-t b{font-size:24px;font-weight:800;letter-spacing:-.03em;color:#fff;line-height:1.2}
/* waste */
.uc-waste{display:grid;justify-items:start;gap:2px;padding:14px 16px;border-radius:16px;background:#FDECE8;box-shadow:inset 0 0 0 1px #F7C9BE}
.uc-waste>small{font-size:12px;font-weight:700;color:#BF4A33}
.uc-waste>b{font-size:30px;font-weight:800;letter-spacing:-.04em;color:#22252F;line-height:1.15}
.uc-waste>span{font-size:12.5px;font-weight:600;color:#5D6273}
.uc-waste ul{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.uc-waste li{padding:5px 10px;border-radius:12px;background:#fff;font-size:12px;font-weight:600;color:#5D6273}
.uc-waste li b{color:#22252F}
.uc-finds{display:grid;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.uc-finds li{display:grid;padding:10px 12px 10px 16px;border-radius:14px;background:#fff;box-shadow:inset 3px 0 0 var(--k)}
.uc-finds b{font-size:13px;color:#22252F}
.uc-finds small{font-size:11.5px;font-weight:600;color:#858A9B}
.pf-page .uc-viz-note{margin-top:14px;text-align:center;font-size:12px;font-weight:600;color:var(--pf-muted)}

/* ---- the challenge ---- */
/* a bill with a total and no answers */
.uc-paper{position:absolute;left:21%;right:21%;top:24px;padding:14px 16px;border-radius:10px;background:#fff;box-shadow:0 12px 26px -18px rgb(24 26 36 / .55);transform:rotate(-3deg)}
.uc-paper small{display:block;font-size:10.5px;font-weight:700;color:#858A9B}
.uc-paper b{display:block;margin:4px 0 8px;font-size:22px;letter-spacing:-.03em;color:#22252F}
.uc-paper i{display:block;height:6px;margin-top:7px;border-radius:3px;background:#EEF0F4}
.uc-paper i:nth-of-type(2){width:75%}.uc-paper i:nth-of-type(3){width:55%}
.uc-ask{position:absolute;padding:5px 10px;border-radius:12px;background:#FDF6DF;color:#866500;font-size:11.5px;font-weight:700;white-space:nowrap;box-shadow:0 8px 18px -14px rgb(24 26 36 / .5)}
.uc-ask1{left:5%;top:18px}
.uc-ask2{right:4%;bottom:44px}
.uc-ask3{left:12%;bottom:14px}
/* a night-time spike nobody saw */
.uc-pic-spike svg{position:absolute;inset:16px 14px 8px;width:calc(100% - 28px);height:calc(100% - 24px)}
.uc-off{fill:#E6E9F0}
.uc-spk-ln{fill:none;stroke:#5B9BD5;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.uc-spk-pt{fill:#fff;stroke:#EE8574;stroke-width:3}
.uc-pic-spike text{font-size:10px;font-weight:600;fill:#858A9B}
.uc-pic-spike .uc-spk-off{font-weight:700;fill:#6D7283}
.pf-page .uc-spk-tip{position:absolute;left:27%;top:26px;margin:0;padding:8px 12px;border-radius:12px;background:#fff;box-shadow:0 10px 26px -16px rgb(24 26 36 / .45)}
.uc-spk-tip:before{content:"";position:absolute;left:-5px;top:16px;width:10px;height:10px;background:#fff;transform:rotate(45deg)}
.uc-spk-tip b{display:block;font-size:13px;color:#BF4A33}
.uc-spk-tip small{display:block;font-size:11.5px;font-weight:600;color:#858A9B}
/* meters, production and tariffs kept apart */
.uc-pic-apart{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:26px 16px 0}
.uc-pic-apart span{position:relative;align-self:start;padding:12px;border-radius:12px;background:#fff;box-shadow:0 12px 26px -18px rgb(24 26 36 / .55)}
.uc-pic-apart b{display:block;font-size:11px;color:#3F4456}
.uc-pic-apart small{display:block;margin:2px 0 6px;font-size:10px;font-weight:600;color:#858A9B}
.uc-pic-apart i{display:block;height:6px;margin-top:7px;border-radius:3px;background:#EEF0F4}
.uc-pic-apart i:nth-of-type(2){width:65%}
.uc-pic-apart span+span:before{content:"";position:absolute;right:100%;top:40px;width:22px;border-top:2px dashed #E9A898}
.uc-pic-apart 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}
.uc-pic-apart 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}

/* ---- how DelphEon helps: who holds the tablet (technician, then energy manager, production manager and plant head) ---- */
.uc-bg,.uc-wear{transition:opacity .4s ease}
.uc-bg1,.uc-bg2,.uc-bg3,.uc-wear-suit{opacity:0}
.pe-how-stage:not([data-step="0"]) :is(.uc-bg0,.uc-wear-op){opacity:0}
.pe-how-stage[data-step="1"] :is(.uc-bg1,.uc-wear-suit),.pe-how-stage[data-step="2"] :is(.uc-bg2,.uc-wear-suit),.pe-how-stage[data-step="3"] :is(.uc-bg3,.uc-wear-suit){opacity:1}
.uc-meters{grid-template-columns:repeat(4,minmax(0,1fr))}
.uc-meters .dk-card b{font-size:22px}
.pe-tablet .uc-meters{grid-template-columns:repeat(2,minmax(0,1fr))}
.pe-tablet .uc-meters .dk-card b{font-size:26px}

/* ---- key capabilities: five layers stacked from meter readings (bottom) to exceptions (top). Each layer is drawn flat and
   tilted with a transform; --i is its place in the stack. The labels beside the stack are the tabs: the open layer lifts and
   the layers above it move up to show it. Above 1000px the stack stays in view while the open capability scrolls beside it. ---- */
.uc-layers{display:grid;grid-template-columns:minmax(0,480px) minmax(0,1fr);gap:48px;align-items:start}
.uc-stk{--b:410px;--sp:72px;--lw:230px;--lh:150px;--lx:36%;position:sticky;top:120px;height:510px}
.uc-ly{position:absolute;left:var(--lx);top:calc(var(--b) - var(--i) * var(--sp));width:var(--lw);height:var(--lh);margin:calc(var(--lh) / -2) 0 0 calc(var(--lw) / -2);padding:14px;border-radius:18px;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line),0 24px 30px -20px rgb(24 26 36 / .4);transform:rotateX(58deg) rotateZ(-40deg);opacity:.82;font-size:11px;font-weight:800;color:var(--pf-ink);transition:translate .45s cubic-bezier(.3,.9,.3,1),opacity .45s,box-shadow .45s}
.uc-ly.is-on{translate:0 -12px;opacity:1;box-shadow:0 0 0 2.5px var(--pf-orange),0 30px 40px -18px rgb(255 95 45 / .45)}
.uc-ly.is-on~.uc-ly{translate:0 -56px}
.uc-ly>small{display:block;margin-bottom:6px;font-size:inherit;color:var(--pf-muted)}
.uc-ly svg{display:block;width:100%;height:84px;border-radius:8px;background:var(--pf-surface)}
.uc-ly-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.uc-ly-tiles span{padding:7px 6px;border-radius:8px;background:var(--pf-surface);box-shadow:inset 4px 0 0 var(--k);white-space:nowrap}
.uc-ly-cols{display:flex;align-items:flex-end;gap:12px;height:84px;padding:0 12px}
.uc-ly-cols span{flex:1;height:var(--h);border-radius:6px 6px 0 0;background:#55C197}
.uc-ly-cols .is-over{background:#EE8574}
.uc-ly-rs{display:block;font-size:40px;letter-spacing:-.03em;line-height:1.1}
.uc-ly>em{font-style:normal;color:var(--pf-text)}
.uc-ly-alerts{display:grid;gap:6px}
.uc-ly-alerts span{display:flex;align-items:center;gap:6px;padding:7px 8px;border-radius:8px;background:#FDF0EC}
.uc-ly-alerts span:before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#EE8574}
/* the tabs: each label sits level with its layer, joined to it by a dashed line */
.uc-lb{position:absolute;left:calc(var(--lx) + var(--lw) / 2 + 30px);top:calc(var(--b) - var(--i) * var(--sp) - 22px);display:flex;align-items:center;gap:10px;max-width:calc(100% - var(--lx) - var(--lw) / 2 - 30px);padding:6px 14px 6px 6px;border:0;border-radius:30px;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line);font-family:inherit;font-size:14px;font-weight:700;line-height:1.25;color:var(--pf-ink);text-align:left;cursor:pointer;transition:background-color .25s,color .25s,box-shadow .25s}
.uc-lb:before{content:"";position:absolute;right:100%;top:50%;width:26px;border-top:1.5px dashed var(--pf-muted)}
.uc-lb span{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--pf-surface);font-size:12px;font-weight:800}
.uc-lb b{font-weight:inherit}
.uc-lb .uc-lb-sh{display:none}
.uc-lb:hover{box-shadow:0 0 0 1.5px var(--pf-orange)}
.uc-lb:focus-visible{outline:2px solid var(--pf-blue);outline-offset:2px}
.uc-lb[aria-selected=true]{background:var(--pf-orange);color:#fff;box-shadow:none}
.uc-lb[aria-selected=true] span{background:rgb(255 255 255 / .25)}
.uc-lb[aria-selected=true]:before{border-color:var(--pf-orange)}
/* the open capability: its copy, then its screen. Without the script all five show one after another */
.uc-caps{min-width:0}
.uc-cap{display:grid;gap:32px;padding:40px;border-radius:32px;background:var(--pf-surface);box-shadow:0 0 0 1px var(--pf-line);scroll-margin-top:96px}
.uc-cap+.uc-cap{margin-top:20px}
.uc-cap[hidden]{display:none}
.uc-cap:focus-visible{outline:2px solid var(--pf-blue);outline-offset:-8px}
.pf-page .uc-cap h3{font-size:clamp(26px,2.4vw,34px);letter-spacing:-.04em;line-height:1.1;margin-bottom:16px}
.uc-cap .dv-panes>*+*{margin-top:12px}
/* electrical parameters under the demand curve */
.uc-params{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.uc-params li{display:grid;gap:2px;padding:10px 12px;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgb(24 26 36 / .05)}
.uc-params small{font-size:11px;font-weight:700;color:#858A9B}
.uc-params b{font-size:17px;letter-spacing:-.02em;color:#22252F}
.uc-params .dk-y{box-shadow:inset 0 3px 0 var(--k),0 1px 2px rgb(24 26 36 / .05)}
.uc-params .dk-y b{color:var(--kt)}
.uc-units{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 0;padding:0;list-style:none}
.uc-units li{display:flex;align-items:baseline;gap:6px;padding:9px 14px;border-radius:14px;background:#fff;box-shadow:0 0 0 1px var(--pf-line);font-size:13px;font-weight:600;color:var(--pf-text)}
.uc-units b{font-size:16px;font-weight:800;color:var(--pf-orange)}
/* the switch: one view of the same month at a time */
.uc-toggle{display:inline-flex;flex-wrap:wrap;gap:4px;margin-bottom:16px;padding:4px;border-radius:30px;background:#fff;box-shadow:0 0 0 1px var(--pf-line)}
.uc-toggle button{padding:9px 16px;border:0;border-radius:26px;background:none;font-family:inherit;font-size:14px;font-weight:700;color:var(--pf-text);cursor:pointer;transition:background-color .25s,color .25s}
.uc-toggle button:hover{background:var(--pf-bg)}
.uc-toggle button[aria-pressed=true]{background:var(--pf-ink);color:#fff}
.uc-toggle button:focus-visible{outline:2px solid var(--pf-blue);outline-offset:2px}
.uc-modes:not([data-mode="total"]) .uc-m-total,.uc-modes:not([data-mode="unit"]) .uc-m-unit,.uc-modes:not([data-mode="util"]) .uc-m-util,
.uc-modes:not([data-mode="area"]) .uc-m-area,.uc-modes:not([data-mode="tod"]) .uc-m-tod{display:none}
.uc-cost-top .dk-card b{font-size:26px}
/* electricity by shift: the bars change height between total kWh (--t) and kWh per tonne (--u); per tonne, the target line
   shows and the shift over it turns coral. Each column keeps 44px for its labels below the plot. */
.uc-bars{--lab:44px;--top:28px;position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;height:270px;margin:6px 0 0;padding:var(--top) 0 0;list-style:none}
.uc-bars li{--k:#5B9BD5;--k2:#A9CBEF;display:grid;grid-template-rows:minmax(0,1fr) 24px 20px;justify-items:center;text-align:center}
.uc-modes[data-mode="unit"] .uc-bars li.is-over{--k:#EE8574;--k2:#F7B6A6}
.uc-bar{--h:var(--u);position:relative;width:56%;max-width:90px;height:100%}
.uc-modes[data-mode="total"] .uc-bar{--h:var(--t)}
.uc-bar i{position:absolute;left:0;right:0;bottom:0;height:calc(var(--h) * 100%);border-radius:10px 10px 4px 4px;background:linear-gradient(var(--k),var(--k2));transition:height .6s cubic-bezier(.3,.9,.3,1),background-color .4s}
.uc-bar em{position:absolute;left:-30px;right:-30px;bottom:calc(var(--h) * 100% + 6px);font-style:normal;font-size:15px;font-weight:800;color:#22252F;transition:bottom .6s cubic-bezier(.3,.9,.3,1)}
.uc-modes[data-mode="unit"] .uc-bars li.is-over em{color:#BF4A33}
.uc-bars b{align-self:end;font-size:13px;color:#22252F}
.uc-bars small{font-size:11.5px;font-weight:600;color:#858A9B}
.uc-bars .uc-bars-target{position:absolute;left:0;right:0;bottom:calc(var(--lab) + (100% - var(--lab) - var(--top)) * var(--target));display:block;border-top:2px dashed #4F5B78;pointer-events:none}
.uc-modes[data-mode="total"] .uc-bars-target{display:none}

/* ---- beyond utility monitoring: one reading in the middle, four contexts round it ---- */
.uc-ctx{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:center}
.uc-board{margin:0;padding:28px 28px 24px;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)}
.pf-page .uc-board-h{margin:0 0 18px;text-align:center;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--pf-muted)}
.uc-board-grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"vis eff" "read read" "dev cost";gap:18px 70px}
.uc-board-lines{position:absolute;inset:0;width:100%;height:100%;z-index:0;fill:none;stroke:#D3D9E4;stroke-width:1.5;stroke-dasharray:4 5;vector-effect:non-scaling-stroke}
.uc-board-lines path{vector-effect:non-scaling-stroke}
.uc-c,.uc-reading{position:relative;z-index:1}
.uc-c{display:grid;justify-items:start;gap:2px;padding:16px 18px;border-radius:20px;background:var(--pf-surface);box-shadow:0 0 0 1px var(--pf-line);transition:opacity .25s,background-color .25s,box-shadow .25s}
.uc-c-vis{grid-area:vis}.uc-c-eff{grid-area:eff}.uc-c-dev{grid-area:dev}.uc-c-cost{grid-area:cost}
.uc-c-ic{display:grid;place-items:center;width:34px;height:34px;margin-bottom:6px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px var(--pf-line)}
.uc-c-ic svg,.uc-q-ic svg{width:19px;height:19px;fill:none;stroke:var(--pf-ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.uc-c small{font-size:12px;font-weight:700;color:var(--pf-muted)}
.uc-c b{font-size:24px;letter-spacing:-.03em;color:var(--pf-ink);line-height:1.2}
.uc-c em{font-style:normal;font-size:13px;font-weight:600;color:var(--pf-text)}
.uc-reading{grid-area:read;justify-self:center;display:grid;justify-items:center;gap:2px;min-width:240px;padding:18px 26px;border-radius:22px;background:#22252F;text-align:center;box-shadow:0 0 0 8px var(--pf-white)}
.uc-reading small{font-size:12px;font-weight:700;color:#A3A8B6}
.uc-reading b{font-size:32px;letter-spacing:-.04em;color:#fff;line-height:1.15}
.uc-reading b i{font-style:normal;font-size:16px;color:#A3A8B6;letter-spacing:0}
.uc-reading span{font-size:12px;font-weight:600;color:#A3A8B6}
.uc-board figcaption{max-width:520px;margin:20px auto 0;text-align:center;font-size:13px;line-height:1.5;color:var(--pf-muted)}
.uc-qs{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.uc-qs li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;padding:18px 20px;border-radius:20px;transition:background-color .25s,box-shadow .25s}
.uc-qs li:hover{background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line)}
.uc-q-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line)}
.pf-page .uc-qs h3{font-size:20px;letter-spacing:-.03em;margin-bottom:6px}
.pf-page .uc-qs p{font-size:15.5px;line-height:1.55}
/* hovering one of the four points lights the context it adds; otherwise each context takes a turn */
.uc-ctx:has(.uc-qs>:is(:hover,.is-on)) .uc-c{opacity:.45;animation:none}
.uc-ctx:has(.uc-q-vis:is(:hover,.is-on)) .uc-c-vis,.uc-ctx:has(.uc-q-eff:is(:hover,.is-on)) .uc-c-eff,.uc-ctx:has(.uc-q-dev:is(:hover,.is-on)) .uc-c-dev,.uc-ctx:has(.uc-q-cost:is(:hover,.is-on)) .uc-c-cost{opacity:1;background:#FFF4EF;box-shadow:0 0 0 2px var(--pf-orange)}

/* ---- motion (paused while off screen via .dk-wait, like the rest of the kit) ---- */
@media(prefers-reduced-motion:no-preference){
 .uc-ask{animation:uc-bob 3.2s ease-in-out infinite}
 .uc-ask2{animation-delay:.5s}.uc-ask3{animation-delay:1s}
 .uc-spk-pt{animation:dk-blink 2.4s ease-in-out infinite}
 .uc-c{animation:uc-turn 12s ease-in-out infinite;animation-delay:calc(var(--i) * 3s)}
 /* hero: flow in the pipes, a spark along the power lines, the tank's water, the boiler's steam and the flames; the open tab's
    timer (until a visitor picks a tab); each view's contents rise in, and the area bars grow */
 .uc-pipe:after{animation:uc-flow var(--sp) linear infinite}
 .uc-zap{animation:uc-zap 1.6s linear infinite}
 .uc-wave{animation:uc-wave 3s linear infinite}
 .uc-puff{animation:uc-puff 3s ease-out infinite}
 .uc-puff:nth-of-type(2){animation-delay:1s}.uc-puff:nth-of-type(3){animation-delay:2s}
 .uc-flame{animation:uc-flick .8s ease-in-out infinite alternate}
 .uc-viz:not(.is-manual) .uc-ltabs button[aria-pressed=true]:after{animation:uc-timer 6.5s linear forwards}
 .uc-viz[data-phase="0"] .uc-lp0>*,.uc-viz[data-phase="1"] .uc-lp1>*,.uc-viz[data-phase="2"] .uc-lp2>*,.uc-viz[data-phase="3"] .uc-lp3>*{animation:pe-rise .45s ease-out both}
 .uc-viz[data-phase="1"] .uc-stack i{animation:uc-grow .9s cubic-bezier(.3,.9,.3,1) both}
 .uc-viz[data-phase="1"] .uc-stack li:nth-child(2) i{animation-delay:.1s}.uc-viz[data-phase="1"] .uc-stack li:nth-child(3) i{animation-delay:.2s}.uc-viz[data-phase="1"] .uc-stack li:nth-child(4) i{animation-delay:.3s}
 .uc-viz.is-off *,.uc-viz.is-off :after{animation-play-state:paused}
 .uc-cap:not([hidden]){animation:pe-rise .45s ease-out both}
 .uc-stk.is-wait .uc-ly{opacity:0}
 .uc-stk.is-in .uc-ly{animation:uc-drop .7s cubic-bezier(.3,.9,.3,1) backwards;animation-delay:calc(var(--i) * .1s)}
}
@keyframes uc-bob{50%{transform:translateY(-4px)}}
@keyframes uc-flow{to{transform:translate(calc(var(--dx,1) * 22px),calc(var(--dy,0) * 22px))}}
@keyframes uc-zap{from{stroke-dashoffset:66}to{stroke-dashoffset:0}}
@keyframes uc-wave{to{transform:translateX(32px)}}
@keyframes uc-puff{0%{opacity:0;transform:scale(.6)}20%{opacity:1}100%{opacity:0;transform:translate(-6px,-12px) scale(1.7)}}
@keyframes uc-flick{to{transform:scale(1.08,1.15)}}
@keyframes uc-timer{to{transform:scaleX(1)}}
@keyframes uc-grow{from{transform:scaleX(0)}}
@keyframes uc-drop{from{opacity:0;translate:0 -60px}}
@keyframes uc-turn{0%,3%,25%,100%{background:var(--pf-surface);box-shadow:0 0 0 1px var(--pf-line)}6%,22%{background:#FFF4EF;box-shadow:0 0 0 2px var(--pf-orange)}}

/* ---- responsive ---- */
@media(max-width:1100px){
 .uc-ctx{grid-template-columns:1fr;gap:36px}
 .uc-board{max-width:720px}
 /* hero: the sources form a row above the tablet and their pipes run down into it */
 .uc-plant{--gap:44px;max-width:800px;margin:0 auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto;gap:var(--gap) 12px}
 .uc-src-e{grid-area:1/1}.uc-src-w{grid-area:1/2}.uc-src-s{grid-area:1/3}.uc-src-g{grid-area:1/4}
 .uc-lite{grid-area:2/1/3/5}
 .uc-src-s .uc-art,.uc-src-g .uc-art{transform:none}
 .uc-plant .uc-pipe{top:100%;right:auto;left:calc(50% - 5px);width:10px;height:var(--gap);--dx:0;--dy:1}
 .uc-plant .uc-src-e .uc-pipe{left:calc(50% - 4px);width:8px}
 .uc-pipe:after{inset:-22px 2px;background:repeating-linear-gradient(180deg,var(--k) 0 10px,transparent 10px 22px)}
}
@media(max-width:1000px){
 .uc-layers{grid-template-columns:minmax(0,1fr);gap:24px}
 .uc-stk{position:relative;top:auto;width:100%;max-width:480px;margin:0 auto}
}
@media(max-width:800px){
 .uc-cap{gap:24px;padding:28px 16px;border-radius:24px}
 .uc-toggle{display:flex}
 .uc-toggle button{flex:1 1 auto;padding:8px 10px;font-size:12.5px}
 .uc-qs li{padding:16px 4px}
 .uc-qs li:hover{background:none;box-shadow:none}
 .pf-page .uc-qs h3{font-size:18px}
}
@media(max-width:800px){
 .uc-viz{margin-top:32px}
 .pf-page .uc-status{font-size:12.5px}
 .uc-st{max-width:100%;white-space:normal}
 .uc-viz .uc-lite.pe-tablet{padding:8px;border-radius:24px}
 .uc-lite .pe-tab-screen{border-radius:17px}
}
/* phones: the source cards shrink to a picture, a name and the one line; the tablet's rows tighten */
@media(max-width:620px){
 .uc-stk{--b:300px;--sp:54px;--lw:170px;--lh:112px;--lx:34%;height:380px}
 .uc-ly{padding:9px;font-size:9px;border-radius:14px}
 .uc-ly svg,.uc-ly-cols{height:56px}
 .uc-ly-tiles span{padding:5px 4px}
 .uc-ly-rs{font-size:28px}
 .uc-lb{left:calc(var(--lx) + var(--lw) / 2 + 16px);max-width:calc(100% - var(--lx) - var(--lw) / 2 - 16px);gap:6px;padding:4px 10px 4px 4px;font-size:12.5px;top:calc(var(--b) - var(--i) * var(--sp) - 16px)}
 .uc-lb:before{width:12px}
 .uc-lb span{width:24px;height:24px;font-size:10.5px}
 .uc-lb b{display:none}.uc-lb .uc-lb-sh{display:inline}
 .uc-plant{--gap:30px;column-gap:6px}
 .uc-src{gap:6px;padding:5px 5px 9px;border-radius:16px;text-align:center}
 .uc-art{padding:5px 3px 2px;border-radius:12px}
 .uc-src-copy{padding:0}
 .pf-page .uc-src .dk-card-h{justify-content:center;font-size:11px}
 .uc-src .dk-card-h svg{display:none}
 .pf-page .uc-say{font-size:10.5px;line-height:1.3;text-align:center}
 .uc-say b{display:block;margin:0;font-size:13.5px}
 .uc-lps{padding:10px}
 .uc-ltabs{padding:7px 8px}
 .uc-ltabs button{padding:6px 10px;font-size:11.5px}
 .uc-ltabs button:after{left:10px;right:10px}
 .uc-lite .pe-tab-bar .dk-live{display:none}
 .uc-lcards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .uc-lcards .dk-card{padding:10px 12px}
 .uc-lcards .dk-card b{font-size:20px}
 .uc-stack{padding:6px 12px}
 .uc-stack li{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:7px 0}
 .uc-stack i{grid-column:1/-1;grid-row:2}
 .uc-rates{padding:4px 12px}
 .uc-rates li{grid-template-columns:minmax(0,1fr) auto 50px;gap:8px}
 .uc-rates em{padding:3px 8px;font-size:11.5px}
 .uc-rates li>b{font-size:13px}
 .uc-waste>b{font-size:26px}
}
@media(max-width:700px){
 .uc-pic-apart{gap:16px;padding-inline:12px}
 .uc-pic-apart span+span:before{width:16px}
 .uc-pic-apart span+span:after{left:-14px}
 .uc-board{padding:20px 14px 18px;border-radius:24px}
 .uc-board-grid{gap:12px}
 .uc-board-lines{display:none}
 .uc-reading{min-width:0;width:100%;padding:14px 16px;box-shadow:none}
 .uc-reading b{font-size:26px}
 .uc-c{padding:12px}
 .uc-c b{font-size:18px}
 .uc-c em{font-size:12px}
}
