/* The mobile entry opens the same synchronized demo in a landscape viewer. */
.pd-mobile-launch[hidden]{display:none}
.pd-demo-invite{position:relative;isolation:isolate;display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:14px;overflow:hidden;width:100%;min-height:120px;padding:20px 18px;appearance:none;border:2px solid transparent;border-radius:12px;background:radial-gradient(ellipse at 5% 0,rgba(158,108,236,.14),transparent 62%) padding-box,linear-gradient(var(--black),var(--black)) padding-box,linear-gradient(115deg,var(--blue),var(--violet) 35%,var(--coral) 68%,var(--lime)) border-box;color:var(--white);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .25s ease,border-radius .25s ease}
.pd-demo-invite:after{content:"";position:absolute;z-index:1;top:-80%;left:-50%;width:42%;height:260%;background:linear-gradient(90deg,transparent,rgba(244,240,230,.04) 30%,rgba(244,240,230,.18) 50%,rgba(244,240,230,.04) 70%,transparent);pointer-events:none;animation:pd-invite-shine 6s ease-in-out infinite;animation-play-state:paused}
.pd-mobile-launch.is-in-view .pd-demo-invite:after{animation-play-state:running}
.pd-invite-play{position:relative;z-index:2;display:grid;place-items:center;align-self:center;justify-self:center;width:48px;height:48px;border:1px solid transparent;border-radius:50%;background:linear-gradient(#1b1e24,#1b1e24) padding-box,linear-gradient(135deg,var(--blue),var(--violet),var(--coral),var(--lime)) border-box;transition:transform .25s ease}
.pd-invite-play svg{display:block;width:28px;height:28px;margin:0}
.pd-invite-copy{position:relative;z-index:2;display:grid;gap:8px;min-width:0}
.pd-invite-copy strong{font-size:clamp(19px,5vw,22px);font-weight:550;line-height:1.15;letter-spacing:-.025em;text-wrap:balance}
.pd-invite-copy>span{font-size:11px;font-weight:450;line-height:1.5;color:var(--muted)}
.pd-invite-expand{position:relative;z-index:2;align-self:center;width:18px;height:18px;margin:0;color:var(--muted)}
.pd-demo-invite:hover{transform:translateY(-2px)}
.pd-demo-invite:hover .pd-invite-play{transform:scale(1.07)}
.pd-demo-invite:active{transform:translateY(0)}
.pd-demo-invite:focus-visible{outline:2px solid var(--lime);outline-offset:6px}
@keyframes pd-invite-shine{0%{transform:translateX(-110%) skewX(-18deg);opacity:0}5%{opacity:1}28%{transform:translateX(420%) skewX(-18deg);opacity:1}34%,100%{transform:translateX(420%) skewX(-18deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.pd-demo-invite,.pd-demo-invite *,.pd-demo-invite:after,.pd-demo-invite:hover,.pd-demo-invite:hover .pd-invite-play{animation:none;transition:none;transform:none}}
.pd-mobile-launch p{max-width:38ch;margin:16px 0 0;color:var(--muted);font-size:14px;line-height:1.6;text-wrap:pretty}
.prisma-demo .pd-agent-connections-immersive{display:none}
.pd-viewer:not([open]){display:none}
.pd-viewer{position:fixed;inset:0;margin:0;padding:0;border:0;width:100vw;height:100vh;width:100dvw;height:100dvh;max-width:none;max-height:none;overflow:hidden;background:var(--black);color:var(--white);font-family:var(--font-body);overscroll-behavior:none}
.pd-viewer::backdrop{background:#000}
.pd-viewer[open],.pd-viewer[open]::backdrop{animation:pd-viewer-enter .24s ease-out}
@keyframes pd-viewer-enter{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.pd-viewer[open],.pd-viewer[open]::backdrop{animation:none}}
.pd-viewer-frame{position:absolute;left:50%;top:50%;width:100vw;height:100vh;width:100dvw;height:100dvh;transform:translate(-50%,-50%);display:grid;grid-template-rows:auto minmax(0,1fr);padding:8px max(24px,env(safe-area-inset-right)) 12px max(24px,env(safe-area-inset-left));box-sizing:border-box}
.pd-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;border-bottom:1px solid var(--line);padding-bottom:0;margin-bottom:8px}
.pd-viewer-header h4{font-size:12px;font-weight:500;margin:0 0 3px}
.pd-viewer-header p{margin:0;color:var(--muted);font-size:9px;line-height:1.4}
.pd-viewer-close{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;min-width:88px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--white);font:inherit;font-size:12px;cursor:pointer}
.pd-viewer-close svg{width:16px;height:16px;flex:none}
.pd-viewer-close:hover{border-color:var(--muted)}
.pd-viewer-close:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
.pd-viewer-mount{min-width:0;min-height:0;width:100%;max-width:1100px;margin-inline:auto}
.pd-viewer .prisma-demo{height:100%;margin:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px}
.pd-viewer .pd-tabs,.pd-viewer .pd-step-picker{display:none}
.pd-viewer .pd-workspace{min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:24px minmax(0,1fr);gap:0 24px}
.pd-viewer .pd-column-label{font-size:10px;border-top:0}
.pd-viewer .pd-column-label>span:nth-child(2){font-size:9px}
.pd-viewer .pd-state-live{display:none}
.pd-viewer .pd-prism-label{padding:0;justify-content:center}
.pd-viewer .pd-conversation{height:auto;min-height:0;border-radius:12px}
.pd-viewer .pd-contact{min-height:40px;padding:0 12px;gap:8px}
.pd-viewer .pd-avatar{width:24px;height:24px;font-size:16px}
.pd-viewer .pd-contact strong{font-size:11px}
.pd-viewer .pd-contact small{margin-top:2px;font-size:9px}
.pd-viewer .pd-messages{padding:12px;gap:12px}
.pd-viewer .pd-message{font-size:12px;line-height:1.45;padding:8px 9px 5px}
.pd-viewer .pd-message-row{gap:7px}
.pd-viewer .pd-luz-avatar{width:18px;height:18px;font-size:12px}
.pd-viewer .pd-composer{display:none}
.pd-viewer .pd-conversation:after{top:20%;height:60%}
.pd-viewer .pd-prism{height:auto;min-height:0}
.pd-viewer .pd-prism-surface{left:4%;top:9%;width:35%;height:82%;object-fit:fill}
.pd-viewer .pd-chromatic-light{left:-12px;top:calc(50% - 60px);width:calc(29% + 12px);height:120px}
.pd-viewer .pd-agent-connections{display:none}
.pd-viewer .pd-agent-connections-immersive{display:block}
.pd-agent-connections-immersive path{vector-effect:non-scaling-stroke}
.pd-viewer .pd-agent-node{width:36%;height:24%;min-height:48px;left:64%;gap:4px;padding:3px}
.pd-viewer .pd-node-main{left:30%;top:36%;width:26%;height:28%;min-height:52px}
.pd-viewer .pd-node-memory{top:5%}
.pd-viewer .pd-node-catalog{top:38%}
.pd-viewer .pd-node-knowledge{top:71%}
.pd-viewer .pd-node-icon{width:18px;height:18px;border-radius:6px}
.pd-viewer .pd-node-symbol{width:16px;height:16px}
.pd-viewer .pd-agent-node h3{font-size:9.5px;line-height:1.2;letter-spacing:-.01em;text-align:center;overflow-wrap:anywhere}
.pd-viewer .pd-node-knowledge h3{font-size:9px}
.pd-viewer .pd-states{height:auto;min-height:0;padding:0;gap:12px}
.pd-viewer .pd-state{padding:6px 10px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--dark-line) transparent}
.pd-viewer .pd-product{flex:1.15}
.pd-viewer .pd-state-title{padding-right:20px;font-size:9px;line-height:1.35;gap:6px}
.pd-viewer .pd-state-title>span{gap:6px}
.pd-viewer .pd-state h3{font-size:12px;line-height:1.3;letter-spacing:-.02em;margin:4px 0}
.pd-viewer .pd-state p{font-size:10px;line-height:1.45}
.pd-viewer .pd-state-icon{top:8px;right:8px;width:14px;height:14px}
.pd-viewer .pd-state-evidence{position:static;min-height:0;margin-top:7px;padding-top:5px;font-size:9px;line-height:1.35}
.pd-viewer .pd-product-detail{flex-wrap:wrap;gap:3px 8px}
.pd-viewer .pd-product-detail>span{font-size:10px}
.pd-viewer .pd-product-detail strong{font-size:14px}
.pd-viewer .pd-controls{margin:0;padding-top:8px;grid-template-columns:auto minmax(0,1fr) auto;gap:20px}
.pd-viewer .pd-controls button{font-size:10px;padding-inline:10px}
.pd-viewer .pd-playback button:first-child{min-width:84px}
.pd-viewer .pd-navigation button{font-size:17px}
.pd-viewer .pd-journey{max-width:none}
.pd-viewer .pd-progress-heading{font-size:10px}
.pd-viewer .pd-progress{display:flex}
.pd-viewer .pd-progress button{min-height:24px}
.pd-viewer .pd-progress button:after{top:12px}
.pd-viewer .pd-playback{gap:8px}
.pd-viewer .pd-phase-status{position:absolute;width:1px;height:1px;min-height:0;margin:0!important;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(orientation:portrait){
  .pd-viewer-frame{width:100vh;height:100vw;width:100dvh;height:100dvw;transform:translate(-50%,-50%) rotate(90deg);padding-left:max(24px,env(safe-area-inset-top));padding-right:max(24px,env(safe-area-inset-bottom))}
}
@media (orientation:portrait) and (max-width:340px), (orientation:landscape) and (max-height:340px){
  .pd-viewer .pd-agent-node .pd-node-icon{display:none}
  .pd-viewer .pd-agent-node{min-height:32px;gap:2px}
  .pd-viewer .pd-node-main{min-height:36px}
  .pd-viewer .pd-agent-node h3{font-size:9px;letter-spacing:-.02em}
}
