.demo-workspace { min-width: 0; }
.walkthrough {
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  --demo-inset: clamp(14px, 2vw, 30px);
  border: 1px solid #bfc8b8;
  border-radius: 16px;
  box-shadow: 0 10px 30px -26px #19392c78;
}
.walkthrough-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: var(--demo-inset);
  padding: 8px var(--demo-inset) 0;
}
.walkthrough-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
}
.walkthrough-panel figcaption {
  display: flex;
  align-items: center;
  margin-block: 3px 6px;
}
.walkthrough button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: 600 .9rem/1.2 var(--sans);
}
.walkthrough .scene-heading {
  position: relative;
  gap: 8px;
  padding: 0 10px;
  margin-inline-start: -4px;
  border-radius: 6px;
}
.walkthrough-panel[data-focused="true"] .scene-heading::after {
  content: "";
  position: absolute;
  inset: auto 10px 4px;
  height: 2px;
  background: #677b68;
  border-radius: 1px;
}
.walkthrough .scene-heading .icon { width: 17px; height: 17px; }
.walkthrough-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(264px, 23vw, 312px);
  border-radius: 9px;
  min-width: 0;
}
.walkthrough-stage .demo-win__camera { padding-block-start: clamp(23px, 2vw, 32px); }
.walkthrough-caption {
  margin: 0;
  padding: 13px 2px 18px;
  color: var(--body);
  font-size: .93rem;
  line-height: 1.5;
}
.walkthrough-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-inline: var(--demo-inset);
  padding-block: 2px;
  border-top: 1px solid #d6dace;
}
.walkthrough-options { display: flex; align-items: center; gap: 2px; }
.walkthrough-controls [data-audio-label] { margin-inline-end: 5px; color: var(--muted); font-size: .82rem; }
.walkthrough-options button { width: 44px; padding: 0; border-radius: 6px; }
.walkthrough-options .icon { width: 17px; height: 17px; }
.walkthrough button:hover { background-color: #e7ecdf; }
.walkthrough button:focus-visible { outline: 3px solid #aa4e2a; outline-offset: -3px; }
.walkthrough [data-sound][aria-pressed="false"] .sound-waves,
.walkthrough [data-sound][aria-pressed="true"] .sound-cross,
.walkthrough[data-motion="on"] .motion-off { display: none; }
.walkthrough-fallback { padding: 1.3rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.walkthrough-fallback p { line-height: 1.55; }
.walkthrough-fallback p + p { margin-top: .8rem; }
.walkthrough-fallback strong { display: block; }
.walkthrough-fallback.walkthrough-transcript {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 680px) {
  .walkthrough { --demo-inset: clamp(10px, 3vw, 18px); }
  .walkthrough-pair { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 3px; }
  .walkthrough-panel + .walkthrough-panel { border-top: 1px solid #d6dace; }
  .walkthrough-panel figcaption { margin-block: 2px 3px; }
  .walkthrough-stage { height: 242px; }
  .walkthrough-stage .demo-win__camera { padding-block: 15px; }
  .walkthrough-stage .demo-win__paper { padding-block: 9px; }
  .walkthrough-stage .pl-android__thread { height: 82px; }
  .walkthrough-caption { padding-block: 10px 13px; }
}
@media (forced-colors: active) {
  .walkthrough button { border: 1px solid ButtonText; }
  .walkthrough-panel[data-focused="true"] .scene-heading { border-bottom: 3px solid Highlight; }
}
