/* Touchscreen panel demo on the Work page (7 Oct 2026). Kept once in Claude tooling\shared\css\ and copied by
   sync-shared.ps1; only work.html links it. The section sits in the dark page; the panel inside the bezel is
   light, in the Summit panel standard's tokens (SummitSvgLibrary\STANDARD.md): 1280 x 800, IBM Plex Sans,
   no bold, three status states. panel-demo.js builds the panel and scales it with a transform. */

/* ---------------------------------------------------------------- the section on the page */
.pd-sec{padding-top:clamp(8px,2vw,24px)}
.pd-shell{margin-top:clamp(28px,3.5vw,44px)}
.pd-top{display:flex;align-items:center;margin-bottom:14px}
.pd-tag{display:inline-block;padding:6px 10px;border-radius:var(--radius-sm);background:rgba(18,19,16,.88);border:1px solid var(--line-strong);color:var(--paper-0);font-size:.75rem;font-weight:500;line-height:1.2;letter-spacing:.12em;text-transform:uppercase}
.pd-frame{position:relative;padding:6px;border-radius:6px;background:var(--bezel);border:1px solid var(--line);box-shadow:0 24px 50px -24px rgba(12,12,9,.85)}
.pd-fit{position:relative;overflow:hidden;overflow:clip;border-radius:2px;background:#f2f7fb;aspect-ratio:1280/800}
.pd-shell.is-live .pd-fit{aspect-ratio:auto}
.pd-canvas{position:absolute;left:0;top:0;width:1280px;height:800px;transform-origin:0 0}
.pd-note{margin-top:16px;color:var(--t-soft);font-size:.9375rem;max-width:var(--measure)}
.pd-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.pd-actions .btn{background:transparent;font-family:inherit;font-weight:500;font-size:1rem;line-height:1.2;cursor:pointer}
.pd-actions .btn:hover{background:rgba(250,247,240,.04)}
.pd-actions .btn.is-on{border-color:var(--moss-300)}
.pd-nojs{margin-top:20px;color:var(--t-body)}
.pd-frame,.pd-top,.pd-note,.pd-actions{display:none}
.js .pd-frame,.js .pd-note{display:block}
.js .pd-top,.js .pd-actions{display:flex}
.pd-actions [hidden]{display:none}

/* Full screen: the frame fills the screen and the panel is centred at the largest scale that fits. */
.pd-frame.is-full,.pd-frame:fullscreen{display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;padding:0;border:0;border-radius:0;background:#0d0d0a}
.pd-frame.is-full .pd-fit{flex:none;border-radius:0}

/* ---------------------------------------------------------------- the panel: tokens and reset */
.pd{--p-bg:#f2f7fb;--p-card:#fff;--p-blue:#edf7fd;--p-qs:#f8fbfd;--p-line:#d6e4ee;--p-ink:#222d31;--p-head:#365d77;--p-cap:#547083;--p-mute:#738087;
  --p-teal:#17675d;--p-sel:#e3efea;--p-ok:#21824c;--p-okb:#e6f4ea;--p-off:#738087;--p-offb:#eef2f4;--p-bad:#b72d38;--p-badb:#fbecef;--p-amb:#b4741b;
  background:var(--p-bg);color:var(--p-ink);font-family:var(--font-body);font-size:15px;line-height:22px;letter-spacing:0;-webkit-user-select:none;user-select:none;overflow:hidden}
.pd *{font-weight:400}
.pd p{margin:0}
.pd svg{max-width:none}
.pd button{font:inherit;font-size:15px;line-height:22px;color:var(--p-teal);background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pd button:focus-visible{outline:3px solid var(--p-teal);outline-offset:2px;border-radius:6px}
.pd button:disabled{cursor:default}
.pd-page{position:absolute;inset:0;outline:none}
.pd-page:focus,.pd-page:focus-visible{outline:none}
.pd-page.pd-in{animation:pd-in 160ms ease-out}
@keyframes pd-in{from{opacity:.4}to{opacity:1}}
.pd-ic{display:block;flex:none}

/* ---------------------------------------------------------------- header, body, nav */
.pd-head{position:absolute;left:0;top:0;width:1280px;height:64px;background:var(--p-card);border-bottom:1px solid var(--p-line);display:flex;align-items:center;padding:0 24px}
.pd-brand{display:flex;align-items:center;gap:10px;width:208px;color:var(--p-mute);font-size:14px}
.pd-mark .pm1{fill:#9fc0b9}.pd-mark .pm2{fill:#17675d}.pd-mark .pm3{fill:#0f4a43}
.pd-title{flex:1;min-width:0}
.pd-t1{font-size:28px;line-height:34px;color:var(--p-ink)}
.pd-t2{font-size:15px;line-height:20px;color:var(--p-cap)}
.pd-where{text-align:right;font-size:15px;line-height:22px}
.pd-clock{color:var(--p-cap);font-size:14px;font-variant-numeric:tabular-nums}
.pd-body{position:absolute;left:16px;top:80px;width:1248px;height:624px;display:flex;flex-direction:column;gap:12px}
.pd-nav{position:absolute;left:0;top:712px;width:1280px;height:88px;background:var(--p-blue);border-top:1px solid var(--p-line);display:grid;grid-template-columns:repeat(7,1fr);align-items:center;padding:0 16px}
.pd-slot.pd-slot{justify-self:center;position:relative;width:138px;height:64px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--p-cap);font-size:14px;line-height:18px}
.pd-slot .pd-ic{color:var(--p-cap)}
.pd-slot[aria-current="page"]{background:var(--p-sel);color:var(--p-ink)}
.pd-slot[aria-current="page"] .pd-ic{color:var(--p-teal)}
.pd-slot[aria-current="page"]::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:3px;border-radius:2px;background:var(--p-teal)}

/* ---------------------------------------------------------------- strip, cards, tiles */
.pd-strip{flex:none;display:grid;height:80px;align-items:center;background:var(--p-blue);border:1px solid var(--p-line);border-radius:8px}
.pd-c4{grid-template-columns:repeat(4,1fr)}.pd-c2{grid-template-columns:repeat(2,1fr)}
.pd-cell{padding:0 16px;border-left:1px solid var(--p-line)}
.pd-cell:first-child{border-left:0}
.pd-lbl{color:var(--p-cap);font-size:15px;line-height:20px}
.pd-big{font-size:32px;line-height:40px;color:var(--p-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.pd [data-s="bad"].pd-big,.pd .pd-th[data-s="bad"],.pd .pd-sw [data-s="bad"],.pd .pd-stw[data-s="bad"]{color:var(--p-bad)}
.pd-card{background:var(--p-card);border:1px solid var(--p-line);border-radius:8px;padding:16px;position:relative}
.pd-ct{font-size:17px;line-height:24px;color:var(--p-head)}
.pd-main{flex:none;height:400px}
.pd-g3x2{flex:1;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:12px;min-height:0}
.pd-g3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pd-g4x2{flex:1;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);gap:12px;min-height:0}
.pd-g2x2{flex:none;display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.pd-tile.pd-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:var(--p-card);border:1px solid var(--p-line);border-radius:8px;padding:20px 24px;color:var(--p-ink);min-height:0;overflow:hidden}
.pd-ti{color:var(--p-teal);margin-bottom:14px}
.pd-tk{position:absolute;right:20px;top:20px;color:var(--p-ok)}
.pd-tk[data-s="bad"]{color:var(--p-bad)}
.pd-tt{font-size:20px;line-height:28px;color:var(--p-ink)}
.pd-ts{font-size:15px;line-height:20px;color:var(--p-cap);margin-top:2px}
.pd-th{margin-top:auto;font-size:20px;line-height:28px;color:var(--p-ink);font-variant-numeric:tabular-nums}
.pd-tbig{margin-top:auto;font-size:32px;line-height:40px;color:var(--p-ink);font-variant-numeric:tabular-nums}
.pd-room .pd-th{margin-top:8px;color:var(--p-cap)}
.pd-room .pd-ti{margin-bottom:18px}
.pd-tw{margin-top:4px;font-size:15px;line-height:20px;color:var(--p-cap)}
.pd-sch .pd-ti{margin-bottom:10px}
.pd-tr .pd-th{margin-top:12px}
.pd-tr .pd-spark{order:2}
.pd-spark{display:block;margin-top:auto;width:100%;color:var(--p-teal)}
.pd-tr.pd-tr{padding-bottom:16px}

/* ---------------------------------------------------------------- quick status and chips */
.pd-qs{flex:none;position:relative;height:120px;background:var(--p-qs);border:1px solid var(--p-line);border-radius:8px;padding:10px 16px}
.pd-leg{position:absolute;right:24px;top:10px;display:flex;gap:28px;font-size:14px;line-height:22px;color:var(--p-cap)}
.pd-leg span{display:inline-flex;align-items:center;gap:6px}
.pd-leg [hidden]{display:none}
.pd-leg [data-l="on"] .pd-ic{color:var(--p-ok)}.pd-leg [data-l="off"] .pd-ic{color:var(--p-off)}.pd-leg [data-l="bad"] .pd-ic{color:var(--p-bad)}
.pd-chips{display:grid;grid-auto-flow:column;grid-auto-columns:200px;margin-top:4px}
.pd-ci{display:flex;flex-direction:column;align-items:center;gap:6px;border-left:1px solid var(--p-line)}
.pd-ci:first-child{border-left:0}
.pd-cc{font-size:15px;line-height:20px;color:var(--p-ink)}
.pd-chip{position:relative;display:grid;place-items:center;width:48px;height:48px;border-radius:9px;background:var(--p-okb);color:var(--p-ok);flex:none}
.pd-chip[data-s="off"]{background:var(--p-offb);color:var(--p-off)}
.pd-chip[data-s="bad"]{background:var(--p-badb);color:var(--p-bad)}
.pd-mk{position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--p-card)}
.pd-mk:empty{display:none}

/* ---------------------------------------------------------------- heating schematic */
.pd-draw{position:absolute;left:16px;top:56px;width:1216px;height:336px}
.pd-svg{display:block}
.pd-pipe{fill:none;stroke-width:3;stroke-linejoin:round}
.pd-pipe.pf{stroke:#b5484f}.pd-pipe.pr{stroke:#6f8fa8}.pd-pipe.ps{stroke:#7b8c99;stroke-width:1.5}
.pd-dot.pf{fill:#b5484f}.pd-dot.pr{fill:#6f8fa8}
.pd-chev{fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pd-chev.pf{stroke:#b5484f}.pd-chev.pr{stroke:#6f8fa8}
.pd-end{stroke-width:3}
.pd-tile-s{fill:#fff;stroke:#7b8c99;stroke-width:1.5}
.pd-sym .i-on,.pd-sym .i-off,.pd-sym .i-bad{display:none}
.pd-sym[data-s="on"] .i-on,.pd-sym[data-s="off"] .i-off,.pd-sym[data-s="bad"] .i-bad{display:inline}
.pd-abs{position:absolute;white-space:nowrap;font-size:15px;line-height:20px}
.pd-ar{transform:translateX(-100%)}
.pd-ac{transform:translateX(-50%)}
.pd-cap{color:var(--p-cap)}
.pd-val{color:var(--p-ink);font-variant-numeric:tabular-nums}
.pd-nm{color:var(--p-ink)}
.pd-sw{color:var(--p-cap)}
.pd-bn{display:flex;align-items:center;gap:8px;color:var(--p-ink)}
.pd-lead{display:inline-block;padding:1px 6px;border-radius:3px;background:var(--p-sel);color:var(--p-teal);font-size:13px;line-height:18px}
.pd-pleg{display:flex;align-items:center;gap:8px;color:var(--p-cap);font-size:14px}
.pd-pleg .sw{display:inline-block;width:24px;height:3px;border-radius:2px;margin-left:16px}
.pd-pleg .sw:first-child{margin-left:0}
.pd-pleg .sw.pf{background:#b5484f}.pd-pleg .sw.pr{background:#6f8fa8}.pd-pleg .sw.ps{background:#7b8c99;height:2px}

/* ---------------------------------------------------------------- controls */
.pd-split .pd-cols{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;height:320px}
.pd-col{padding:0 8px 0 0}
.pd-col+.pd-col{border-left:1px solid var(--p-line);padding:0 0 0 32px}
.pd-sub{color:var(--p-cap);font-size:15px;line-height:20px;margin-bottom:12px}
.pd-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;margin-bottom:16px}
.pd-rl{color:var(--p-ink)}
.pd-step{display:flex;align-items:center;width:320px;height:56px;border:1px solid var(--p-line);border-radius:4px;background:var(--p-card);flex:none}
.pd-sb.pd-sb{display:grid;place-items:center;width:48px;height:48px;margin:0 3px;border-radius:4px;color:var(--p-teal)}
.pd-sv{flex:1;text-align:center;font-size:20px;line-height:28px;color:var(--p-ink);font-variant-numeric:tabular-nums}
.pd-step.is-dis .pd-sv{color:var(--p-mute)}
.pd-step.is-dis .pd-sb{color:#b9c6cf}
.pd-seg{display:flex;width:320px;height:56px;border:1px solid var(--p-line);border-radius:4px;background:var(--p-card);padding:3px;gap:3px;flex:none}
.pd-so.pd-so{flex:1;border:1px solid transparent;border-radius:4px;color:var(--p-teal);font-size:15px}
.pd-so[aria-pressed="true"]{background:var(--p-sel);border-color:var(--p-teal)}
.pd-flat{display:grid;place-items:center;width:320px;height:56px;border-radius:4px;background:var(--p-offb);color:var(--p-ink);flex:none}
.pd-rowbtn.pd-rowbtn{display:flex;align-items:center;justify-content:center;gap:12px;width:320px;height:56px;border:1px solid var(--p-line);border-radius:4px;background:var(--p-card);color:var(--p-teal);flex:none}
.pd-wide.pd-wide{width:100%}
.pd-rowbtn.pd-wide{justify-content:space-between;padding:0 16px}

/* ---------------------------------------------------------------- ventilation */
.pd-fan{display:flex;flex-direction:column;gap:14px;padding:20px 24px}
.pd-fh{display:flex;align-items:center;gap:16px}
.pd .pd-fbig{margin-top:14px;font-size:32px;line-height:40px;color:var(--p-ink)}
.pd .pd-fhrs{display:flex;justify-content:space-between;align-items:baseline;color:var(--p-ink);font-variant-numeric:tabular-nums;margin-bottom:auto}

/* ---------------------------------------------------------------- alarms */
.pd-stile.pd-stile{display:flex;align-items:center;gap:16px;height:76px;padding:0 20px;background:var(--p-card);border:1px solid var(--p-line);border-radius:8px;color:var(--p-ink);text-align:left}
.pd-stn{font-size:17px;line-height:24px;color:var(--p-ink)}
.pd-stw{margin-left:auto;font-size:20px;line-height:28px;color:var(--p-ink)}
.pd-list{flex:1;min-height:0}
.pd-evs{margin-top:8px}
.pd-ev{display:grid;grid-template-columns:96px 1fr 160px;align-items:center;height:47px;border-top:1px solid var(--p-line);font-variant-numeric:tabular-nums}
.pd-ev:first-child{border-top:0}
.pd-et{color:var(--p-cap)}
.pd-es{color:var(--p-cap);text-align:right}
.pd-ev.is-bad .pd-en,.pd-ev.is-bad .pd-es,.pd-ev.is-bad .pd-et{color:var(--p-bad)}

/* ---------------------------------------------------------------- bare pages: schedules and charts */
.pd-bare{position:absolute;left:0;top:0;width:1280px;height:64px;background:var(--p-card);border-bottom:1px solid var(--p-line);display:flex;align-items:center;gap:24px;padding:0 16px 0 24px}
.pd-now{display:flex;align-items:baseline;gap:10px;margin-right:16px}
.pd-nv{font-size:28px;line-height:34px;color:var(--p-ink);font-variant-numeric:tabular-nums}
.pd-bb{display:flex;gap:16px}
.pd-btn.pd-btn{display:inline-flex;align-items:center;gap:14px;width:176px;height:48px;padding:0 18px;background:var(--p-card);border:1px solid var(--p-line);border-radius:4px;color:var(--p-teal)}
.pd-bbody{position:absolute;left:16px;top:80px;width:1248px;height:704px}
.pd-week{height:100%;padding:12px 24px}
.pd-wh,.pd-day{display:grid;grid-template-columns:180px 220px 320px 320px;column-gap:48px;align-items:center}
.pd-wh{height:44px;color:var(--p-cap);font-size:15px}
.pd-day{height:90px;border-top:1px solid var(--p-line)}
.pd-day.is-today .pd-dn span:first-child{color:var(--p-teal)}
.pd-dn{display:flex;flex-direction:column}
.pd-dn .pd-ts{margin-top:0}
.pd-onoff.pd-onoff{width:220px}
.pd-chart{height:100%;padding:16px}
.pd-grid{stroke:#e6eef4;stroke-width:1}
.pd-axis{fill:none;stroke:#b9c9d6;stroke-width:1.5}
.pd-tick{stroke:#b9c9d6;stroke-width:1.5}
.pd-ax{fill:#547083;font-family:var(--font-body);font-size:14px}
.pd-line{fill:none;stroke:#17675d;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.pd-sl{stroke-width:2}
.pd-last{fill:#17675d;stroke:#fff;stroke-width:2}

@media (prefers-reduced-motion:reduce){
  .pd-page.pd-in{animation:none}
}
@media (max-width:640px){
  .pd-tag{padding:4px 8px;font-size:.6875rem;letter-spacing:.1em}
  .pd-actions .btn{flex:1 1 auto;justify-content:center}
}
