:root{color-scheme:light}
.site-demo-back{max-width:1400px;margin:auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;color:#435a51;font-size:12px;line-height:1.5}
.site-demo-back a{color:inherit;text-decoration:none}.site-demo-back a:hover{color:#c94d30}
.site-demo-back a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ed7049;outline-offset:3px}
.is-embedded .site-demo-back{display:none}

/* P1 is a legacy guide with its own light panels and 22-step navigator. */
body:has(#step-text) main{height:auto;min-height:calc(100dvh - 150px);grid-template-columns:minmax(250px,320px) minmax(0,1fr)}
body:has(#step-text) .instruction{color:#17372e}
body:has(#step-text) #step-text{color:#304c40;line-height:1.75}
body:has(#step-text) .note{color:#526a5d;line-height:1.65}
body:has(#step-text) .viewport{min-height:380px}
body:has(#step-text) canvas{touch-action:none}
body:has(#step-text) #steps{max-height:calc(100dvh - 340px);min-height:180px}
@media(max-width:800px){
  .site-demo-back{padding:12px 14px}
  body:has(#step-text) main{display:flex;flex-direction:column;height:auto;min-height:0}
  body:has(#step-text) .right{order:0}
  body:has(#step-text) aside{order:1;display:flex;padding:20px 14px;border-top:1px solid #c9d9ce;border-right:0}
  body:has(#step-text) .viewport{height:clamp(340px,55dvh,520px);min-height:340px;flex:none}
  body:has(#step-text) #steps{max-height:250px;min-height:0}
  body:has(#step-text) .instruction{padding:18px 14px}
  body:has(#step-text) .playbar{flex-wrap:wrap;gap:8px}
  body:has(#step-text) #scrub{flex:1 1 100px}
  body:has(#step-text) #step-text{min-height:0;margin-bottom:16px}
  body:has(#step-text) .hint{left:14px;right:14px;text-align:right}
}
