/* Small project-page shell; simulation appearance and controls are unchanged. */
.demo-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}
.demo-section-heading h2 { margin: 0; }
.demo-open {
  flex-shrink: 0;
  color: #555;
  font-size: 0.82rem;
  text-decoration: none;
  text-underline-offset: 4px;
}
.demo-open:hover { color: #111; text-decoration: underline; }
.demo-preview {
  position: relative;
  height: 700px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f3;
}
.demo-preview > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.demo-launch {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  padding: 15px 24px;
  border: 1px solid #222;
  border-radius: 3px;
  background: #222;
  color: #fff;
  font: 500 0.88rem "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.demo-launch:hover { background: #444; }
.demo-launch:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.demo-note { margin: 14px 0 0; color: #777; font-size: 0.75rem; line-height: 1.6; }
.demo-preview iframe, .demo-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo-page {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f5f5f3;
  color: #222;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.demo-header {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #e4e7e2;
  background: #fcfcfb;
  font-size: 12px;
}
.demo-home { color: #222; text-decoration: none; font-weight: 600; letter-spacing: .08em; }
.demo-home:hover { text-decoration: underline; text-underline-offset: 4px; }
.demo-header > span { color: #777; }
.demo-stage { flex: 1; min-height: 0; }
@media (max-width: 700px) {
  .demo-preview { height: 880px; }
  .demo-preview:not(.is-running) { height: 440px; }
  .demo-section-heading { align-items: center; }
  .demo-section-heading h2 { font-size: 1.35rem; }
  .demo-open { font-size: .75rem; }
  .demo-header { padding: 0 16px; }
}
