/* ==========================================================================
   02 Product — tabbed platform showcase (tabs + hairline frame + app mocks)
   ========================================================================== */
#product .pd {
  position: relative; border: 1px solid var(--line); background: var(--bg);
}

/* ---------- tabs ---------- */
#product .pd-tabs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
#product .pd-tab {
  position: relative; display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 20px;
  color: var(--text-2); font-size: 15px; letter-spacing: -0.02em; text-align: left;
  transition: color .3s, background .4s;
}
#product .pd-tab + .pd-tab { box-shadow: inset 1px 0 0 var(--line); }
#product .pd-tab svg { width: 16px; height: 16px; flex: none; color: var(--text-3); transition: color .3s; }
#product .pd-tab:hover svg { color: var(--text-2); }
#product .pd-tab-l { display: inline-block; white-space: nowrap; }
#product .pd-tab-n { order: 3; margin-left: auto; color: var(--text-4); transition: color .3s; }
#product .pd-tab:hover { color: var(--text); }
#product .pd-tab.is-active { color: var(--text); background: rgba(255,255,255,.025); }
#product .pd-tab.is-active svg { color: var(--text); }
#product .pd-tab.is-active .pd-tab-n { color: var(--text-2); }
#product .pd-tab:focus-visible { outline-offset: -4px; }
/* progress hairline (Aeye) — JS drives --p while auto-advancing. The tab row's one red signal. */
#product .pd-tab-bar {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; z-index: 2;
  background: var(--accent);
  transform: scaleX(var(--p, 1)); transform-origin: left center; opacity: 0;
}
#product .pd-tab.is-active .pd-tab-bar { opacity: 1; }
/* static neutral underline so the active tab still reads while progress is paused at 0 */
#product .pd-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; z-index: 1; background: var(--line-3); }

/* ---------- panels: stacked in one grid cell so height never jumps ---------- */
#product .pd-panels { display: grid; }
#product .pd-panel {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  visibility: hidden; opacity: 0;
}
#product .pd-panel.is-active, #product .pd-panel.is-leaving { visibility: visible; opacity: 1; }
#product .pd-panel.is-leaving { z-index: 0; pointer-events: none; }
#product .pd-panel.is-active { z-index: 1; }
#product .pd-panel:focus-visible { outline-offset: -6px; }

#product .pd-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
  padding: clamp(28px, 3.6vw, 56px);
}
#product .pd-copy > .mono { color: var(--text-2); }
#product .pd-copy .h3 { font-size: clamp(24px, 2.3vw, 34px); max-width: 15ch; }
#product .pd-copy > p { max-width: 380px; }
#product .pd-checks { width: 100%; max-width: 380px; margin-top: 4px; }
#product .pd-checks li {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text);
}
#product .pd-checks li:last-child { border-bottom: 1px solid var(--line); }
#product .pd-checks li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: var(--r-xs);
  background: rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ededed' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
#product .pd-copy .link-arrow { margin-top: 4px; }

/* ---------- stage (right column) ---------- */
#product .pd-stage {
  position: relative; display: grid; place-items: center; min-height: 540px; overflow: hidden;
  padding: clamp(20px, 3.2vw, 48px); box-shadow: inset 1px 0 0 var(--line);
  background-color: var(--bg-2);
}
/* neutral dot grid (overrides the shared .dots tint) */
#product .pd-stage.dots { background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); }
#product .pd-stage::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.045), transparent 62%); pointer-events: none;
}
#product .pd-win {
  position: relative; width: 100%; max-width: 600px; border-radius: var(--r); overflow: hidden;
  background: #0a0a0a; color: var(--text-2); font-size: 12.5px; line-height: 1.45;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -36px rgba(0,0,0,.9), 0 0 0 6px rgba(255,255,255,.02);
}
#product .pd-win::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
}
#product .pd-win-top { height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); }
#product .pd-dots { display: inline-flex; gap: 5px; }
#product .pd-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.12); }
#product .pd-win-title { flex: 1; min-width: 0; color: var(--text); font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#product .pd-win-title .faint { font-weight: 400; }
#product .pd-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; display: inline-block; }
#product .pd-reddot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; }
/* error row: neutral tag, the dot carries the red */
#product .pd-tr .tag.red { color: var(--text); background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px var(--line-2); }
#product .pd-mini-btn { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 6px; background: #ededed; color: #0a0a0a; font-weight: 500; font-size: 12px; }
#product .pd-gl {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm);
  font-size: 11px; font-weight: 600; color: var(--text);
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ---------- 01 agent ---------- */
#product .pd-agent-body { display: grid; grid-template-columns: 186px minmax(0, 1fr); }
#product .pd-agent-cfg { padding: 16px 14px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 18px; background: rgba(255,255,255,.012); }
#product .pd-field { display: grid; gap: 8px; }
#product .pd-select { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-size: 12px; white-space: nowrap; }
#product .pd-sw { width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #ededed, #8f8f8f); }
#product .pd-tools { display: grid; gap: 6px; }
#product .pd-tools li { display: flex; align-items: center; gap: 8px; color: var(--text); }
#product .pd-tools li .pd-gl { width: 20px; height: 20px; font-size: 10px; }
#product .pd-tools li .pd-ok { margin-left: auto; }
#product .pd-seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 2px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); }
#product .pd-seg i { font-style: normal; text-align: center; font-size: 10.5px; padding: 5px 0; border-radius: var(--r-xs); color: var(--text-3); }
#product .pd-seg i.on { background: var(--bg-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
#product .pd-chat { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#product .pd-msg-u { align-self: flex-end; max-width: 82%; padding: 10px 12px; border-radius: 12px 12px 3px 12px; background: var(--bg-4); color: var(--text); }
#product .pd-msg-a { display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: rgba(255,255,255,.018); box-shadow: inset 0 0 0 1px var(--line); }
#product .pd-msg-a p { color: var(--text); }
#product .pd-msg-h { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
#product .pd-msg-h .mono { margin-left: auto; }
#product .pd-av { width: 20px; height: 20px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 10px; }
#product .pd-steps { display: grid; gap: 7px; padding: 10px; border-radius: var(--r-sm); background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line); }
#product .pd-steps li { display: flex; align-items: center; gap: 9px; font-size: 12px; }
#product .pd-ck { width: 14px; height: 14px; flex: none; border-radius: 50%; background: rgba(62,224,143,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237cf0b5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.2 2.2L11.5 6'/%3E%3C/svg%3E") center / 10px no-repeat; }
#product .pd-steps li.warn { color: #ffd08a; }
#product .pd-steps li.warn .pd-ck { background: rgba(255,184,77,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffb84d' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 4.5v4.2M8 11.4v.1'/%3E%3C/svg%3E") center / 10px no-repeat; }
#product .pd-actions { display: flex; gap: 6px; }
#product .pd-btn { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 6px; background: #ededed; color: #0a0a0a; font-weight: 500; font-size: 11.5px; }
#product .pd-btn.ghost { background: #0a0a0a; color: #ededed; box-shadow: 0 0 0 1px #2e2e2e; }
#product .pd-input { margin-top: auto; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 0 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); }
#product .pd-send { width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center; background: #ededed; color: #0a0a0a; }
#product .pd-send svg { width: 13px; height: 13px; }

/* ---------- 02 workflow canvas (640×380 coordinate space) ---------- */
#product .pd-flow {
  position: relative; aspect-ratio: 640 / 380; container-type: inline-size;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 16px 16px;
}
#product .pd-flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#product .pd-wire { fill: none; stroke: var(--line-3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
#product .pd-wire.flow { stroke: var(--text); stroke-dasharray: 3 7; animation: pd-flow 1.1s linear infinite; opacity: .9; }
#product .pd-wire.flow.dim { opacity: .3; }
@keyframes pd-flow { to { stroke-dashoffset: -20; } }
#product .pd-node {
  position: absolute; left: calc(var(--x) / 640 * 100%); top: calc(var(--y) / 380 * 100%);
  width: calc(134 / 640 * 100%); height: calc(80 / 380 * 100%);
  display: flex; flex-direction: column; justify-content: center; gap: .2em; padding: 0 1em;
  font-size: max(9px, 1.85cqw); line-height: 1.25; border-radius: .9em;
  background: linear-gradient(180deg, var(--bg-3), #0c0c0e); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 30px -14px rgba(0,0,0,.8);
}
#product .pd-node b { color: var(--text); font-weight: 500; font-size: 1.12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#product .pd-node > .faint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#product .pd-node-k { display: flex; align-items: center; gap: .5em; font-size: max(10px, .8em); letter-spacing: .04em; color: var(--text-2); white-space: nowrap; }
#product .pd-node-k .sq { width: .7em; height: .7em; flex: none; border-radius: 2px; background: var(--text-4); }
#product .pd-node.ai { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 4px rgba(255,255,255,.03), 0 14px 40px -14px rgba(0,0,0,.9); }
#product .pd-node.ai .sq { background: var(--text); }
#product .pd-node.hot .sq { background: var(--red); }
#product .pd-port { position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #0a0a0a; box-shadow: inset 0 0 0 1.5px var(--text-2); }
#product .pd-port.l { left: -3.5px; } #product .pd-port.r { right: -3.5px; }
#product .pd-flow-tools { position: absolute; left: 12px; top: 12px; display: flex; gap: 4px; z-index: 2; }
#product .pd-flow-tools span { height: 22px; min-width: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--r-xs); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 10px; color: var(--text-3); }
#product .pd-flow-mini { position: absolute; left: 12px; bottom: 12px; width: 64px; height: 38px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255,255,255,.02)
  linear-gradient(var(--text-2), var(--text-2)) 8px 17px / 8px 4px no-repeat; }
#product .pd-flow-mini::before { content: ""; position: absolute; left: 20px; top: 17px; width: 20px; height: 4px; background: linear-gradient(90deg, rgba(255,255,255,.22) 8px, transparent 8px 12px, rgba(255,255,255,.22) 12px); }
#product .pd-flow-mini::after { content: ""; position: absolute; left: 44px; top: 9px; width: 8px; height: 20px; background: linear-gradient(rgba(255,255,255,.22) 4px, transparent 4px 16px, rgba(255,255,255,.22) 16px); }
#product .pd-flow-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
#product .pd-flow-foot > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }

/* ---------- 03 data ---------- */
#product .pd-data-sum, #product .pd-ana-kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line);
}
#product .pd-data-sum > div, #product .pd-ana-kpis > div { background: #0a0a0a; padding: 12px 14px; display: grid; grid-template-rows: 1fr auto; gap: 4px; }
#product .pd-data-sum > div > .mono, #product .pd-ana-kpis > div > .mono { align-self: end; color: var(--text-2); }
#product .pd-ana-kpis > div { grid-template-rows: 1fr auto auto; }
#product .pd-data-sum b, #product .pd-ana-kpis b { font-size: 22px; font-weight: 400; letter-spacing: -0.04em; color: var(--text); }
#product .pd-tr { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1fr; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); }
#product .pd-tr.pd-th { border-top: 0; padding-block: 10px 8px; }
#product .pd-tr > :last-child { justify-self: end; }
#product .pd-src { display: flex; align-items: center; gap: 9px; color: var(--text); white-space: nowrap; min-width: 0; }
#product .pd-tr .num { color: var(--text); }
#product .pd-sync { display: inline-flex; align-items: center; gap: 8px; }
#product .pd-sync i { width: 48px; height: 4px; border-radius: var(--r-xs); background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
#product .pd-sync i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--w, .5)); background: var(--text); border-radius: inherit; }
#product .pd-sync b { font-weight: 400; color: var(--text-2); font-size: 10px; }

/* ---------- 04 analytics ---------- */
#product .pd-up { font-size: 11.5px; color: #7cf0b5; }
#product .pd-chart { display: grid; grid-template-columns: 26px 1fr; gap: 10px; height: 230px; padding: 34px 16px 0 14px; }
#product .pd-chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; line-height: 10px; margin: -5px 0; text-align: right; }
#product .pd-bars {
  position: relative; display: flex; align-items: flex-end; gap: clamp(6px, 1.3vw, 14px); padding-inline: 4px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 33.333%;
}
#product .pd-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
#product .pd-col { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; transform-origin: 50% 100%; }
#product .pd-col i { display: block; width: 100%; }
#product .pd-col i.a { height: calc(var(--a) * 100%); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(237,237,237,.42), rgba(237,237,237,.14)); }
#product .pd-col i.m { height: calc(var(--m) * 100%); background: rgba(255,255,255,.07); margin-top: 2px; }
/* the chart's one red signal: the highlighted week */
#product .pd-bar.hot i.a { background: linear-gradient(180deg, var(--accent), rgba(236,63,42,.45)); }
#product .pd-tip {
  position: absolute; left: 50%; bottom: calc((var(--a) + var(--m)) * 100% + 14px); transform: translateX(-50%);
  display: grid; gap: 1px; padding: 6px 9px; border-radius: var(--r-sm); white-space: nowrap; text-align: center;
  background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 20px -8px #000;
}
#product .pd-tip b { color: var(--text); font-weight: 500; font-size: 13px; }
#product .pd-tip .mono { font-size: 10px; color: var(--text-2); }
#product .pd-legend { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 50px; font-size: 11.5px; }
#product .pd-legend span { display: inline-flex; align-items: center; gap: 7px; }
#product .pd-legend i { width: 8px; height: 8px; border-radius: 2px; background: rgba(237,237,237,.42); }
#product .pd-legend i.m { background: rgba(255,255,255,.12); }
#product .pd-legend .mono { margin-left: auto; }

/* ---------- 05 guardrails ---------- */
#product .pd-rules li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); }
#product .pd-rules li:first-child { border-top: 0; }
#product .pd-rule-ic { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--text); background: linear-gradient(180deg, var(--bg-4), var(--bg-3)); box-shadow: inset 0 0 0 1px var(--line-2); }
#product .pd-rule-ic svg { width: 15px; height: 15px; }
#product .pd-rule-t { display: grid; gap: 3px; min-width: 0; }
#product .pd-rule-t b { color: var(--text); font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#product .pd-rule-t .mono { font-size: 10px; color: var(--text-2); }
#product .pd-toggle { width: 34px; height: 20px; border-radius: var(--r-pill); background: rgba(255,255,255,.10); position: relative; transition: background .4s var(--ease-out); }
#product .pd-toggle i { position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8f8f8f; transition: transform .5s var(--ease-out), background .4s; }
#product .pd-toggle.on { background: #ededed; }
#product .pd-toggle.on i { transform: translateX(14px); background: #0a0a0a; }
#product .pd-audit {
  display: flex; align-items: center; gap: 10px; margin: 4px 14px 14px; padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line-2);
}
#product .pd-audit .live-dot { flex: none; }
#product .pd-audit-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#product .pd-audit-t b { color: var(--text); font-weight: 500; margin-right: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  #product .pd-tab { padding: 0 16px; }
  #product .pd-tab-n { display: none; }
}
@media (max-width: 991px) {
  #product .pd-panel { grid-template-columns: 1fr; }
  #product .pd-copy { padding-bottom: 36px; }
  #product .pd-copy > .mono { color: var(--text-2); }
  #product .pd-copy .h3 { max-width: 22ch; }
  #product .pd-panel { grid-template-rows: auto 1fr; }
  #product .pd-stage { min-height: 0; box-shadow: inset 0 1px 0 var(--line); }
  #product .pd-tab { justify-content: center; }
}
/* tablet: single-column panel, so the copy spreads over two columns instead of leaving an empty band */
@media (min-width: 768px) and (max-width: 991px) {
  #product .pd-copy {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(28px, 5vw, 56px); row-gap: 18px; align-items: start;
  }
  #product .pd-copy > * { grid-column: 1; }
  #product .pd-copy > p { max-width: 44ch; }
  #product .pd-copy .pd-checks { grid-column: 2; grid-row: 1 / -1; align-self: center; max-width: none; margin-top: 0; }
  #product .pd-copy .link-arrow { align-self: end; justify-self: start; margin-top: 0; }
}
@media (max-width: 767px) {
  #product .pd-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #product .pd-tab { grid-column: span 2; height: 50px; padding: 0 8px; gap: 8px; font-size: 14px; box-shadow: inset 1px 0 0 var(--line); }
  #product .pd-tab:nth-child(n+4) { grid-column: span 3; box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  #product .pd-tab:nth-child(1), #product .pd-tab:nth-child(4) { box-shadow: none; }
  #product .pd-tab:nth-child(4) { box-shadow: inset 0 1px 0 var(--line); }
  #product .pd-tab svg { width: 14px; height: 14px; }
  #product .pd-copy { padding: 28px 20px 30px; gap: 16px; }
  #product .pd-stage { padding: 16px 12px; }
  #product .pd-agent-body { grid-template-columns: 1fr; }
  #product .pd-agent-cfg { display: none; }
  #product .pd-chat { padding: 12px; }
  #product .pd-tr { grid-template-columns: 1.5fr .8fr 1fr; padding-inline: 12px; }
  #product .pd-tr > :nth-child(3) { display: none; }
  #product .pd-data-sum b, #product .pd-ana-kpis b { font-size: 18px; }
  #product .pd-data-sum > div, #product .pd-ana-kpis > div { padding: 10px 12px; }
  #product .pd-chart { height: 190px; padding-inline: 10px 12px; }
  #product .pd-legend { padding-left: 46px; gap: 12px; }
  #product .pd-legend .mono { display: none; }
  #product .pd-rules li { padding: 12px; gap: 10px; }
  /* workflow canvas becomes a vertical flow */
  #product .pd-flow { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 18px 14px 20px; }
  #product .pd-flow-svg, #product .pd-port { display: none; }
  #product .pd-node { position: relative; left: auto; top: auto; width: auto; height: auto; padding: 10px 12px; font-size: 12px; border-radius: var(--r-sm); }
  #product .pd-node:nth-of-type(-n+3) { grid-column: 1 / -1; width: 74%; justify-self: center; }
  #product .pd-node::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 18px; background: var(--line-3); }
  #product .pd-node:first-of-type::before { display: none; }
  #product .pd-node:nth-of-type(4)::before, #product .pd-node:nth-of-type(5)::before { height: 18px; }
  #product .pd-audit-t b { display: block; }
  #product .pd-win-top .tag { display: none; }
  #product .pd-flow-tools, #product .pd-flow-mini { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #product .pd-wire.flow { animation: none; }
}
