/* Layout and type are shared with Map Composer via map-composer.css.
   Only USD-specific diagram artwork and media fitting belong here. */
.usd-reviewer-page .mc-chapter { scroll-margin-top: 4rem; }
.usd-reviewer-page .mc-chapter .container { max-width: 1160px; }
.usd-reviewer-page .usd-review-media { display: flex; align-items: center; background: var(--surface-strong); }
.usd-review-media picture { display: block; width: 100%; }
.usd-reviewer-page .usd-review-media img { width: 100%; height: auto; max-height: 450px; object-fit: contain; border-radius: 20px; }
.usd-reviewer-page .usd-render-media { height: auto; background: var(--background); }
.usd-render-media .usd-art { min-height: 360px; height: 100%; }
.usd-art { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); padding: 24px; }
.usd-art > svg { width: 100%; height: 100%; max-height: 275px; overflow: visible; }
.usd-art-label { font-size: .9rem; line-height: 1.4; color: var(--immersive-studio-muted); text-align: center; margin-top: 20px; }
.usd-art.is-ready .usd-motion-toggle { display: flex; }
.usd-art .usd-motion-toggle[hidden] { display: none; }
.usd-material-demo { padding-bottom: 50px; }
.usd-seat path { transition: fill 600ms ease; }
.usd-swatches { display: flex; justify-content: center; gap: 12px; position: absolute; bottom: 26px; }
.usd-swatches button { width: 22px; height: 22px; border: 3px solid var(--background); border-radius: 50%; background: var(--swatch); cursor: pointer; box-shadow: 0 0 0 1px transparent; }
.usd-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.usd-tool { animation: usd-grab 6s infinite cubic-bezier(.45,0,.25,1); transform-origin: 203px 190px; }
.usd-tool-shadow { animation: usd-grab-shadow 6s infinite cubic-bezier(.45,0,.25,1); transform-origin: 203px 226px; }
.usd-tool-ghost { opacity: 0; animation: usd-grab-ghost 6s infinite ease-in-out; }
.usd-tool-pinch { opacity: 0; animation: usd-grab-pinch 6s infinite ease-in-out; transform-origin: 287px 190px; }
.usd-guided-demo { padding-bottom: 60px; }
.usd-guided-scene { width: 100%; overflow: hidden; }
.usd-guided-scene svg { display: block; width: 100%; overflow: visible; }
.usd-cabin { transform-origin: center; transition: transform 1.4s cubic-bezier(.22,1,.36,1); }
.usd-guided-scene[data-usd-view="1"] .usd-cabin { transform: translate(-45px, 0) scale(1.2); }
.usd-guided-scene[data-usd-view="2"] .usd-cabin { transform: translate(-160px, 42px) scale(1.9); }
.usd-guide-steps { position: absolute; bottom: 24px; display: flex; gap: 12px; }
.usd-guide-steps button { font: inherit; font-size: .8rem; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; color: var(--immersive-studio-muted); background: none; cursor: pointer; }
.usd-guide-steps button[aria-pressed="true"] { color: var(--ink); border-color: var(--immersive-studio-accent); }
.usd-network { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; }
.usd-network > div { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 130px; text-align: center; }
.usd-network > div > i { font-size: 3.5rem; color: var(--immersive-studio-accent-deep); }
.usd-network > div > span { color: var(--immersive-studio-muted); font-size: .9rem; }
.usd-private-network { width: 100%; padding: 22px 16px; }
.usd-private-boundary { display: block; text-align: center; color: var(--immersive-studio-muted); font-size: .9rem; margin-bottom: 28px; }
.usd-private-boundary i { color: var(--immersive-studio-accent-deep); margin-right: 6px; }
.usd-art *, .usd-art *::before, .usd-art *::after { animation-play-state: paused; }
.usd-art.is-playing *, .usd-art.is-playing *::before, .usd-art.is-playing *::after { animation-play-state: running; }
@keyframes usd-grab { 0%, 28%, 86%, 100% { transform: none; } 46% { transform: translate(4px, -62px) rotate(-7deg); } 58% { transform: translate(-2px, -68px) rotate(-3deg); } 70% { transform: translate(4px, -62px) rotate(-7deg); } }
@keyframes usd-grab-shadow { 0%, 28%, 86%, 100% { transform: none; opacity: .12; } 46%, 70% { transform: scale(.72, .8); opacity: .05; } }
@keyframes usd-grab-ghost { 0%, 32%, 82%, 100% { opacity: 0; } 46%, 70% { opacity: .22; } }
@keyframes usd-grab-pinch { 0%, 10% { opacity: 0; transform: scale(1.5); } 20% { opacity: .7; transform: scale(1); } 26%, 72% { opacity: .7; transform: scale(.82); } 80% { opacity: .7; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(1.3); } }
@media (max-width: 760px) {
 .usd-reviewer-page .mc-chapter .container { max-width: calc(100% - 2rem); }
 .usd-render-media .usd-art { min-height: 300px; }
 .usd-network { gap: 12px; }
 .usd-network > div { width: 100px; }
 .usd-network > div > i { font-size: 2.5rem; }
 .usd-private-network { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
 .usd-art *, .usd-art *::before, .usd-art *::after { animation: none !important; transition: none !important; }
}

/* Contain the existing full-bleed hero and compact header on small screens. */
@media (max-width: 760px) {
 .usd-reviewer-page .usd-reviewer-hero-visual { width: 100%; aspect-ratio: 16 / 10; border-radius: 20px; }
 .usd-reviewer-page .site-header .nav-shell { max-width: 100%; }
}
.usd-reviewer-page .immersive-studio-how-card .immersive-studio-creation-rail-copy p { color: var(--immersive-studio-muted); }

/* Portrait inspector captures sit alongside the wide review screenshots. */
.usd-reviewer-page .usd-review-card--portrait { width: min(22rem, 84vw); }
.usd-review-card--portrait .usd-review-media picture { height: 100%; }
.usd-reviewer-page .usd-review-card--portrait .usd-review-media img {
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: right top;
  border-radius: 0;
}

/* Saved viewpoints lead Set the scene using the shared storyboard treatment. */
.usd-pov-showcase { margin-bottom: 56px; }
.usd-pov-media { background: #000; aspect-ratio: 1920 / 1184; }
.usd-pov-media video { display: block; width: 100%; height: auto; }
.usd-reviewer-page #prepare .mc-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .usd-pov-showcase { margin-bottom: 40px; }
  .usd-reviewer-page #prepare .mc-bento-grid { grid-template-columns: 1fr; }
}

/* Fill the comment showcase while keeping the inspector at the right edge. */
.usd-review-media--comments picture { height: 100%; }
.usd-reviewer-page .usd-review-media--comments img {
  display: block;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: right top;
  border-radius: 0;
}

@media (max-width: 760px) {
  .usd-reviewer-page .usd-review-media--comments {
    height: auto;
    aspect-ratio: 1600 / 1119;
  }
}

/* Preserve the complete shared-space capture at every viewport width. */
.usd-reviewer-page #in-your-space .mc-wide-photo img { display: block; width: 100%; height: auto; }

.usd-space-showcase { margin-bottom: 64px; scroll-margin-top: 5rem; }
@media (max-width: 760px) { .usd-space-showcase { margin-bottom: 40px; } }

.usd-render-media > .usd-render-capture { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Local workflows: CloudXR streams frames out and pose back; Relay delivers a file once. */
.usd-link { display: flex; flex-direction: column; align-items: center; flex: 0 1 140px; min-width: 92px; gap: 6px; color: var(--immersive-studio-muted); font-size: .75rem; line-height: 1.3; text-align: center; }
.usd-link svg { display: block; width: 100%; height: auto; overflow: visible; }
.usd-link-track { fill: none; stroke: color-mix(in srgb, var(--immersive-studio-accent) 40%, transparent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.usd-link-track--back { stroke: color-mix(in srgb, var(--ink) 18%, transparent); }
.usd-link-frame { fill: var(--immersive-studio-accent-deep); animation: usd-link-frame 1.8s linear infinite; }
.usd-link-frame:nth-of-type(2) { animation-delay: -.6s; }
.usd-link-frame:nth-of-type(3) { animation-delay: -1.2s; }
.usd-link-pose { fill: var(--immersive-studio-muted); animation: usd-link-pose 1.2s linear infinite; }
.usd-link-pose:nth-of-type(2) { animation-delay: -.4s; }
.usd-link-pose:nth-of-type(3) { animation-delay: -.8s; }
.usd-link-file { fill: var(--background); stroke: var(--immersive-studio-accent-deep); stroke-width: 1.5; stroke-linejoin: round; animation: usd-link-file 5s cubic-bezier(.45,0,.25,1) infinite; }
.usd-local-demo .usd-private-network { position: relative; }
.usd-local-demo { justify-content: flex-start; }
.usd-local-demo .mc-replay { top: 8px; bottom: auto; right: 8px; }
.usd-node-renders > :first-child { animation: usd-node-render 1.8s ease-in-out infinite; }
.usd-node-receives > :first-child { animation: usd-node-receive 5s ease-in-out infinite; }
@media (max-width: 760px) {
  .usd-link { flex-basis: 84px; min-width: 68px; font-size: .7rem; }
}
@keyframes usd-link-frame { 0% { transform: translateX(0); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translateX(94px); opacity: 0; } }
@keyframes usd-link-pose { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(-100px); opacity: 0; } }
@keyframes usd-link-file { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 44% { transform: translateX(94px); opacity: 1; } 52%, 100% { transform: translateX(100px); opacity: 0; } }
@keyframes usd-node-render { 0%, 100% { filter: drop-shadow(0 0 2px color-mix(in srgb, var(--immersive-studio-accent) 25%, transparent)); } 50% { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--immersive-studio-accent) 55%, transparent)); } }
@keyframes usd-node-receive { 0%, 44%, 100% { transform: none; filter: none; } 52% { transform: scale(1.08); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--immersive-studio-accent) 60%, transparent)); } 62%, 88% { transform: none; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--immersive-studio-accent) 45%, transparent)); } }

.usd-local-workflows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.usd-local-workflows .mc-bento-visual { min-height: 300px; height: auto; flex-basis: auto; }
.usd-local-workflows .usd-network { gap: 10px; }
.usd-local-workflows .usd-network > div { flex: 1; min-width: 0; }
.usd-local-workflows .usd-network > div > span { font-size: .8rem; line-height: 1.5; }
@media (max-width: 760px) { .usd-local-workflows { grid-template-columns: 1fr; } }

.usd-history-media { height: auto; flex-basis: auto; padding: 0 16px 16px; }
.usd-history-media picture { display: block; width: 100%; }
.usd-history-media img { display: block; width: 100%; height: auto; border-radius: 20px; }

.usd-vision-symbol { display: inline-block; width: 1.25em; height: 1em; vertical-align: middle; }
.usd-network > div > .usd-vision-symbol { font-size: 3.5rem; color: var(--immersive-studio-accent-deep); }
@media (max-width: 760px) { .usd-network > div > .usd-vision-symbol { font-size: 2.5rem; } }
