/* AR-FlowZ: graphite / warm ivory / vermilion research identity. No external fonts. */
:root {
  --paper: #F4F2ED;
  --ink: #232321;
  --muted: #686862;
  --rule: #D8D5CD;
  --accent: #C44230;
  --accent-deep: #A33628;
  --wash: rgba(196, 66, 48, 0.08);
  --schematic: #202321;
  --schematic-muted: #9A9A8E;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection { background: rgba(196, 66, 48, 0.18); }
p, figure, h1, h2, h3 { margin: 0; }
img, video { max-width: 100%; display: block; }
button { font: inherit; }
strong { font-weight: 600; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 99;
  background: var(--ink);
  color: var(--paper);
  padding: 14px;
}
.skip:focus { top: 15px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 242, 237, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(14px);
}
.site-header-inner {
  max-width: 1360px;
  margin: auto;
  padding: 22px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-weight: 750;
  letter-spacing: -0.055em;
  font-size: 23px;
}
.header-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
}
.header-links a:last-child {
  border-left: 1px solid var(--rule);
  padding-left: 30px;
}

.hero {
  max-width: 1360px;
  margin: auto;
  padding: 36px 44px 0;
}
.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  font: 12px/1.5 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.paper-name {
  display: block;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.07em;
  margin: 18px 0 20px;
}
.z-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.name-period { color: var(--accent); }
.hero-lead {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 28px;
}
.paper-title {
  font: clamp(22px, 2.4vw, 32px) / 1.22 var(--serif);
  letter-spacing: -0.026em;
  max-width: 34em;
}
.one-line {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  margin: 0;
}
.resource-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 8px;
  font-size: 14px;
}
.resource-links a {
  padding-block: 9px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
}
.resource-links a:hover { color: var(--accent-deep); }
.unavailable {
  color: var(--muted);
  font-size: 13px;
}
.author-placeholder {
  font: 12px/1.6 var(--mono);
  color: var(--muted);
  margin: 0;
}

.lead-demo {
  max-width: 1360px;
  margin: 0 auto 8px;
  padding: 0 44px;
}
.lead-figure { margin-top: 0; }

.idea-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}
.idea-schematic {
  margin: 0;
  background: var(--schematic);
}
.idea-schematic img {
  width: 100%;
  height: auto;
}
.idea-schematic figcaption {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0 20px 16px;
  font: 12px/1.5 var(--mono);
  color: var(--schematic-muted);
}

.latent-figure {
  background: var(--schematic);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.latent-figure img,
.latent-stage canvas {
  width: 100%;
  height: auto;
  display: block;
}
.latent-stage {
  position: relative;
  background: var(--schematic);
}
.latent-stage noscript img { width: 100%; height: auto; }
.latent-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 4px 24px 0;
  font: 12px/1.4 var(--mono);
  color: var(--schematic-muted);
}
.latent-controls button {
  appearance: none;
  border: 1px solid #505A53;
  background: transparent;
  color: #F4F2ED;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.latent-controls button:hover {
  border-color: #D6ED91;
  color: #D6ED91;
}
.latent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.latent-toggle input {
  accent-color: #D6ED91;
  width: 14px;
  height: 14px;
  margin: 0;
}
.latent-meta {
  color: var(--schematic-muted);
  letter-spacing: 0.02em;
}
.latent-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 24px 20px;
  font: 12px/1.5 var(--mono);
  color: var(--schematic-muted);
}
.idea-jump {
  margin-top: 22px;
  font: 14px/1.5 var(--sans);
}
.idea-jump a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.section-playground .section-intro { max-width: 52rem; }
.demo-callout {
  margin: 22px 0 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--wash);
  max-width: 52rem;
}
.demo-callout ol {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.demo-callout li { margin: 6px 0; }
.demo-actions { margin: 16px 0 0; }
.demo-open {
  display: inline-block;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper) !important;
  font: 14px/1.2 var(--sans);
  letter-spacing: 0.02em;
}
.demo-open:hover { background: var(--accent-deep); color: var(--paper) !important; }
.demo-controls-legend {
  margin: 0 0 22px;
  max-width: 52rem;
}
.demo-controls-legend dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 10px 0 0;
}
.demo-controls-legend div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
}
.demo-controls-legend dt {
  font: 600 12px/1.2 var(--mono);
  color: var(--accent);
  min-width: 4.5rem;
}
.demo-controls-legend dd {
  margin: 0;
  color: var(--muted);
}
.playground {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(0, 1.05fr);
  gap: 22px;
  margin-top: 12px;
  align-items: stretch;
}
.playground-robot,
.playground-controls,
.playground-sphere {
  background: var(--schematic);
  color: #F4F2ED;
  padding: 18px 18px 16px;
  min-width: 0;
}
.playground .figure-meta {
  color: var(--schematic-muted);
  margin-bottom: 12px;
}
.playground canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #181a19;
}
.sim-frame {
  position: relative;
  border: 1px solid #3a403c;
  background: #121413;
  min-height: 360px;
}
.robot-viewport {
  width: 100%;
  height: 420px;
  display: block;
}
.robot-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.demo-page .robot-viewport { height: 560px; }
.sim-hud {
  position: absolute;
  inset: 10px 12px auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 11px/1.2 var(--mono);
  color: rgba(214, 237, 145, 0.85);
  pointer-events: none;
  letter-spacing: 0.04em;
}
.skill-pad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.skill-pad button {
  appearance: none;
  border: 1px solid #505A53;
  background: transparent;
  color: #F4F2ED;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font: 13px/1.35 var(--sans);
}
.skill-pad button small {
  display: block;
  margin-top: 4px;
  color: var(--schematic-muted);
  font: 11px/1.3 var(--mono);
}
.skill-pad button:hover { border-color: #9A9A8E; }
.skill-pad button.is-active {
  border-color: #D6ED91;
  color: #D6ED91;
  background: rgba(214, 237, 145, 0.06);
}
.playground-status,
.playground-meta,
.playground-note {
  margin-top: 12px;
  font: 12px/1.5 var(--mono);
  color: var(--schematic-muted);
}
.playground-note code,
.section-playground code {
  font-family: var(--mono);
  font-size: 0.92em;
}

@media (max-width: 1100px) {
  .playground { grid-template-columns: 1fr 1fr; }
  .playground-sphere { grid-column: 1 / -1; }
  .demo-controls-legend dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .playground { grid-template-columns: 1fr; }
  .skill-pad { grid-template-columns: 1fr; }
  .demo-controls-legend dl { grid-template-columns: 1fr; }
}

.eval-disclosure {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.eval-disclosure + .eval-disclosure {
  margin-top: 12px;
}
.eval-disclosure summary {
  cursor: pointer;
  font: 14px/1.5 var(--sans);
  color: var(--accent);
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}
.eval-disclosure summary::-webkit-details-marker { display: none; }
.eval-disclosure summary::before {
  content: "▸ ";
  font-family: var(--mono);
  margin-right: 6px;
}
.eval-disclosure[open] summary::before { content: "▾ "; }
.eval-disclosure[open] summary {
  border-bottom-color: var(--rule);
  margin-bottom: 18px;
}
.eval-disclosure .result-caveat { margin-top: 0; }

.article-shell {
  max-width: 1360px;
  margin: auto;
  padding: 0 44px;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 58px;
}
.toc {
  position: sticky;
  top: 115px;
  align-self: start;
  margin-top: 84px;
}
.toc-label {
  font: 12px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 25px;
}
.toc ol,
.toc-mobile ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  color: var(--muted);
  font-size: 13px;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
}
.toc a[aria-current="location"] {
  border-color: var(--accent);
  color: var(--accent);
}
.toc-num {
  font: 12px var(--mono);
  opacity: 0.65;
}
.toc a[aria-current="location"] .toc-num { opacity: 1; }
.toc-mobile { display: none; }
.article-main { min-width: 0; }

.research-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--rule);
}
.section-label {
  font: 12px/1.5 var(--mono);
  color: var(--accent);
  margin-bottom: 26px;
}
.section-title {
  font: clamp(30px, 3.2vw, 46px) / 1.15 var(--serif);
  letter-spacing: -0.035em;
  max-width: 850px;
  margin-bottom: 30px;
}
.title-break { display: none; }
.prose,
.section-intro,
.method-intro,
.cite-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 760px;
}
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--ink); }
.section-intro,
.method-intro { margin-bottom: 32px; }

.research-figure { margin: 32px 0; }
.figure-meta,
.sublabel,
.stills-label {
  font: 12px/1.6 var(--mono);
  color: var(--muted);
  margin-bottom: 13px;
}
.media-placeholder {
  min-height: 120px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: #EBE8E1;
  border: 1px solid var(--rule);
}
.media-symbol {
  font: 32px/1 var(--sans);
  color: var(--muted);
}
.media-status { display: block; font-size: 16px; }
.media-detail {
  display: block;
  font: 12px/1.6 var(--mono);
  margin-top: 7px;
  color: var(--muted);
}
figcaption {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 12px;
  max-width: 850px;
}
.caption-narrow { max-width: 760px; }
.caption-narrow .figure-label { color: var(--ink); }
.media-mount img,
.media-mount video {
  width: 100%;
  height: auto;
  background: #EBE8E1;
}
.media-mount button {
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
  width: 100%;
}
.media-mount button img { transition: opacity 0.2s; }
.media-mount button:hover img { opacity: 0.9; }

.pipeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  margin-top: 38px;
}
.pipeline-pair {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 14px;
  padding: 28px 16px 0 0;
}
.pipeline-pair + .pipeline-pair { padding-left: 14px; }
.pipeline-index {
  font: 12px/1.6 var(--mono);
  color: var(--muted);
}
.pipeline-title {
  font-size: 16px;
  line-height: 1.4;
  margin: 14px 0 12px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.pipeline-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.pipeline-arrow {
  font-size: 21px;
  padding-top: 38px;
  color: var(--muted);
}
.is-focus .pipeline-title { color: var(--accent); }

.method-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 35px;
}
.method-notes article {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.note-number {
  font: 12px var(--mono);
  color: var(--accent);
}
h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-family: var(--serif);
}
.method-notes h3 { margin: 24px 0 14px; }
.method-notes p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.fine-print {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.result-story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  margin-top: 45px;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.result-hero {
  display: block;
  font-size: clamp(58px, 6.7vw, 88px);
  letter-spacing: -0.07em;
  line-height: 1;
  color: var(--accent);
}
.result-label {
  font-size: 13px;
  line-height: 1.6;
  display: block;
  margin-top: 12px;
}
.result-compare {
  font: 12px/1.7 var(--mono);
  margin-top: 18px;
  color: var(--muted);
}
.result-compare strong { color: var(--ink); }
.result-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.result-value {
  font-size: 32px;
  letter-spacing: -0.045em;
  line-height: 1.3;
}
.result-caveat {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 690px;
  color: var(--muted);
}

.table-block { margin-top: 40px; }
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-top: 1px solid var(--ink);
  padding-bottom: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
caption {
  text-align: left;
  caption-side: bottom;
  white-space: normal;
  font-size: 12px;
  line-height: 1.8;
  padding-top: 16px;
  color: var(--muted);
}
th, td {
  text-align: right;
  padding: 13px 12px;
  border-bottom: 1px solid var(--rule);
}
thead th {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  background: #EBE8E1;
}
thead tr:last-child th { border-bottom-color: #B8B4AA; }
th:first-child { text-align: left; }
tbody th { font-weight: 500; }
tbody tr:hover { background: rgba(35, 35, 33, 0.03); }
.ours,
.ours-row { background: var(--wash); }
.ours-row th { color: var(--accent); }
.group-sep { border-top: 2px solid var(--rule); }
.sublabel { margin-top: 45px; }
.ablation-intro .section-intro { margin-bottom: 0; }

.demo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.demo-pair .research-figure { margin-top: 16px; }
.stills-filmstrip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stills-filmstrip .research-figure { margin: 0; }
.stills-strip { margin-top: 30px; }

.limit-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.limit-num {
  font: 12px/1.6 var(--mono);
  color: var(--accent);
}
.limit-item h3 { font-family: var(--serif); }
.limit-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.release-note { border: 0; padding-bottom: 90px; }
.release-note .section-title { font-size: 54px; }
.spaced { margin-top: 24px; }

.site-footer {
  max-width: 1272px;
  margin: auto;
  border-top: 1px solid var(--rule);
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.site-footer .wordmark {
  font-size: 22px;
  color: var(--ink);
}

.lightbox {
  max-width: 95vw;
  max-height: 94vh;
  border: 1px solid var(--rule);
  padding: 45px 18px 18px;
  background: var(--paper);
}
.lightbox::backdrop { background: rgba(32, 35, 33, 0.82); }
.lightbox img {
  max-height: 80vh;
  width: auto;
  margin: auto;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--accent);
}

@media (min-width: 1600px) {
  .hero { padding-top: 48px; }
  .idea-layout { gap: 56px; }
}

@media (max-width: 1100px) {
  .idea-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .article-shell {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 30px;
  }
  .site-footer { margin-inline: 44px; }
  .paper-name { margin-bottom: 16px; }
  .resource-links { gap: 16px; }
  .method-notes { gap: 18px; }
  .result-secondary { grid-template-columns: 1fr; }
  .result-story { grid-template-columns: 1.2fr 1fr; }
  .limit-item { grid-template-columns: 24px 1fr; }
  .limit-item p { grid-column: 2; }
  .hero-eyebrow span:last-child { display: none; }
}

@media (max-width: 800px) {
  .site-header-inner { padding: 20px 24px; }
  .hero { padding: 28px 24px 0; }
  .lead-demo { padding: 0 24px; }
  .paper-name {
    font-size: clamp(40px, 11vw, 64px);
    margin: 14px 0 16px;
  }
  .paper-title {
    font-size: 26px;
    max-width: none;
  }
  .article-shell {
    padding: 0 24px;
    display: block;
  }
  .toc { display: none; }
  .toc-mobile {
    display: block;
    border-bottom: 1px solid var(--rule);
    padding: 20px 0;
    font-size: 14px;
  }
  .toc-mobile summary { cursor: pointer; }
  .toc-mobile ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 25px 0 8px;
  }
  .toc-mobile a {
    display: flex;
    gap: 14px;
  }
  .research-section { padding: 58px 0; }
  .section-title { font-size: 37px; }
  .method-notes { grid-template-columns: 1fr; }
  .method-notes article {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 20px 0 0;
  }
  .method-notes h3 { margin: 0; }
  .method-notes p { grid-column: 2; }
  .site-footer { margin-inline: 24px; }
  .hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.01em;
  }
  .release-note .section-title { font-size: 44px; }
  .latent-figure figcaption,
  .idea-schematic figcaption { font-size: 12px; }
  .prose,
  .section-intro,
  .method-intro { font-size: 16px; }
  .result-hero { font-size: 72px; }
}

@media (max-width: 480px) {
  .site-header-inner { padding: 17px 20px; }
  .header-links {
    gap: 18px;
    font-size: 13px;
  }
  .header-links a:last-child { padding-left: 18px; }
  .hero { padding-inline: 20px; }
  .lead-demo { padding-inline: 20px; }
  .article-shell { padding-inline: 20px; }
  .hero-eyebrow { font-size: 12px; }
  .paper-title { font-size: 24px; }
  .paper-name {
    font-size: 15vw;
    letter-spacing: -0.07em;
  }
  .resource-links { gap: 16px; }
  .section-title { font-size: 32px; }
  .demo-pair,
  .stills-filmstrip { grid-template-columns: 1fr; }
  .result-story { gap: 22px; }
  .result-hero { font-size: 58px; }
  .result-value { font-size: 28px; }
  .result-label { font-size: 12px; }
  .result-compare { font-size: 12px; }
  .media-placeholder { padding: 22px 18px; }
  .media-detail { font-size: 12px; }
  .site-footer {
    margin-inline: 20px;
    flex-wrap: wrap;
    gap: 20px;
  }
  .site-footer p {
    width: 100%;
    order: 3;
  }
  .latent-figure figcaption,
  .idea-schematic figcaption {
    padding: 0 18px 18px;
    font-size: 12px;
  }
  .limit-item { gap: 15px; }
  .toc-mobile ol { gap: 20px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .toc,
  .toc-mobile,
  .resource-links,
  .site-footer { display: none; }
  .article-shell {
    display: block;
    padding: 0;
  }
  .hero,
  .lead-demo { padding: 0; }
  .research-section { padding: 25px 0; }
  .table-scroll { overflow: visible; }
  table {
    font-size: 12px;
    white-space: normal;
  }
  td, th { padding: 5px; }
  .media-figure { break-inside: avoid; }
  .idea-layout { display: block; }
  .paper-name { font-size: 48px; }
  .eval-disclosure { border: 0; }
  .eval-disclosure summary { display: none; }
}

.hero-eyebrow,
.latent-figure figcaption,
.idea-schematic figcaption {
  flex-wrap: wrap;
  gap: 8px;
}
.idea-layout > * { min-width: 0; }

.playground-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: stretch;
  margin: 1.25rem 0 2rem;
}
.playground-stage .live-embed-frame {
  margin: 0;
  height: clamp(520px, 68vh, 860px);
  min-height: 520px;
}
.live-embed-frame {
  border: 1px solid var(--rule, #D8D5CD);
  background: #121413;
  overflow: hidden;
  width: 100%;
  aspect-ratio: auto;
}
.live-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #121413;
}
.section-playground .live-embed-frame {
  max-width: none;
}
.playground-stage .playground-latent-only {
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--rule, #D8D5CD);
  background: #141614;
}
.playground-stage .playground-sphere {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 10px 12px 12px;
  height: 100%;
}
.playground-stage .playground-sphere .figure-meta {
  margin: 0 0 8px;
  flex: 0 0 auto;
}
.playground-stage .playground-sphere canvas {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  max-height: calc(100% - 4.5rem);
  object-fit: contain;
  border-radius: 0;
  background: #141614;
}
.playground-stage .playground-meta,
.playground-stage .playground-note {
  flex: 0 0 auto;
  margin: 8px 0 0;
}
.playground-latent-only {
  grid-template-columns: 1fr;
}
@media (max-width: 1100px) {
  .playground-stage {
    grid-template-columns: 1fr;
  }
  .playground-stage .live-embed-frame {
    height: clamp(440px, 62vh, 680px);
    min-height: 440px;
  }
  .playground-stage .playground-latent-only {
    height: auto;
  }
  .playground-stage .playground-sphere canvas {
    max-height: none;
    aspect-ratio: 1.15;
  }
}
