:root {
  color-scheme: dark;
  --bg: #07151c;
  --panel: #0d2028;
  --panel-2: #102933;
  --text: #edf8f3;
  --muted: #9fc0b5;
  --line: rgba(183, 229, 209, 0.18);
  --accent: #f2c65d;
  --stage-w: 1672;
  --stage-h: 941;
  --ai-dim-blur: 2px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 20% 10%, #143644 0, #07151c 46%, #041015 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 18px;
}

.stage-panel,
.inspector {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(13, 32, 40, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.stage-panel {
  position: relative;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto;
}

.stage-toolbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 720;
}

h2 {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 680;
}

p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented-control {
  display: flex;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.segment-button {
  min-width: 72px;
  border: 0;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.segment-button.is-active {
  color: #07151c;
  background: var(--accent);
  font-weight: 700;
}

.icon-button,
.text-button {
  height: 38px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.icon-button {
  width: 38px;
  display: grid;
  place-items: center;
}

.text-button {
  padding: 0 14px;
}

.ai-settings-panel {
  position: absolute;
  right: 18px;
  top: 86px;
  z-index: 60;
  width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 21, 28, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  padding: 14px;
}

.range-control {
  display: grid;
  grid-template-columns: 72px 1fr 32px;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 13px;
}

.range-control input {
  width: 100%;
  accent-color: var(--accent);
}

.range-control strong {
  color: var(--accent);
  font-size: 13px;
  text-align: right;
}

.icon-button:hover,
.text-button:hover {
  border-color: rgba(242, 198, 93, 0.58);
  background: rgba(242, 198, 93, 0.12);
}

.pause-icon,
.pause-icon::after {
  display: block;
  width: 4px;
  height: 15px;
  background: currentColor;
  content: "";
}

.pause-icon {
  position: relative;
  margin-right: 8px;
}

.pause-icon::after {
  position: absolute;
  left: 8px;
  top: 0;
}

.stage-wrap {
  min-height: 0;
  display: grid;
  place-items: start center;
  padding: 18px;
  overflow: hidden;
}

.stage {
  position: relative;
  width: min(100%, calc((100vh - 136px) * var(--stage-w) / var(--stage-h)));
  aspect-ratio: var(--stage-w) / var(--stage-h);
  overflow: hidden;
  background: #06161f;
  isolation: isolate;
}

.stage.inspect-checker {
  background-color: #d9e0dd;
  background-image:
    linear-gradient(45deg, rgba(40, 54, 52, 0.16) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(40, 54, 52, 0.16) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(40, 54, 52, 0.16) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(40, 54, 52, 0.16) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.layer {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--r, 0deg)) scaleX(var(--sx, 1));
  transform-origin: 50% 50%;
  pointer-events: none;
  user-select: none;
  opacity: var(--opacity, 1);
  will-change: transform;
}

.layer:not(.cover) {
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22));
}

.stage.inspect-checker .layer:not(.cover) {
  filter: none;
}

.layer.cover {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer.bg {
  z-index: 0;
}

.layer.bg-drift {
  animation: bgDrift 28s ease-in-out infinite alternate;
}

.layer.tree {
  z-index: 4;
}

.layer.planet {
  z-index: 5;
}

.layer.animal {
  z-index: 8;
}

.layer.plant {
  z-index: 12;
}

.stage::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 241, 165, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px);
  background-size: 78px 78px, 121px 121px;
  background-position: 12px 22px, 54px 18px;
  opacity: 0;
  animation: twinkle 3.6s ease-in-out infinite alternate;
}

.stage[data-scene="main"]::after,
.stage[data-scene="universe"]::after {
  opacity: 0.38;
}

.stage[data-scene="aiPaint"] {
  background:
    radial-gradient(circle at 20% 12%, rgba(242, 198, 93, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(92, 217, 232, 0.16), transparent 26%),
    #06161f;
}

.stage[data-scene="aiPaint"]::after {
  z-index: 20;
  background: #000;
  background-image: none;
  opacity: 0;
  animation: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.84, 0.28, 1),
    backdrop-filter 700ms cubic-bezier(0.2, 0.84, 0.28, 1),
    -webkit-backdrop-filter 700ms cubic-bezier(0.2, 0.84, 0.28, 1);
}

.stage[data-scene="aiPaint"].ai-focus-dim::after {
  opacity: 0.5;
  backdrop-filter: blur(var(--ai-dim-blur));
  -webkit-backdrop-filter: blur(var(--ai-dim-blur));
}

.stage[data-scene="aiPaint"].ai-insert-release::after {
  opacity: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition-duration: 1200ms, 1200ms, 1200ms;
}

.ai-waterfall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 2.1%;
  padding: 3%;
  overflow: hidden;
  filter: blur(0px);
  transition: filter 700ms cubic-bezier(0.2, 0.84, 0.28, 1);
  will-change: filter;
}

.stage[data-scene="aiPaint"].ai-focus-dim .ai-waterfall {
  filter: blur(var(--ai-dim-blur));
}

.stage[data-scene="aiPaint"].ai-insert-release .ai-waterfall {
  filter: blur(0px);
  transition-duration: 1200ms;
}

.ai-row {
  min-width: 0;
  overflow: hidden;
}

.ai-track {
  display: flex;
  width: max-content;
  height: 100%;
  gap: 18px;
  transform: translateX(0);
  transition: gap 520ms ease;
  will-change: transform;
}

.ai-row.reverse .ai-track {
  direction: ltr;
}

.ai-video-card {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: var(--video-aspect, 16 / 9);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transition: transform 1200ms cubic-bezier(0.2, 0.84, 0.28, 1);
}

.ai-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-track.is-making-room .ai-video-card[data-room-side="left"] {
  transform: translateX(calc(var(--room-shift, 0px) * -1));
}

.ai-track.is-making-room .ai-video-card[data-room-side="right"] {
  transform: translateX(var(--room-shift, 0px));
}

.ai-track.is-aligning .ai-video-card {
  transition: none;
}

.ai-landing-slot {
  position: absolute;
  left: var(--landing-x, 50%);
  top: var(--landing-y, 50%);
  z-index: 24;
  width: var(--landing-w, 28%);
  height: var(--landing-h, 27%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(242, 198, 93, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 18px 44px rgba(0, 0, 0, 0.28);
  transform: scaleX(0.08);
  transform-origin: 50% 50%;
  opacity: 0.3;
  transition:
    transform 1200ms cubic-bezier(0.2, 0.84, 0.28, 1),
    opacity 1200ms ease,
    filter 260ms ease;
}

.ai-landing-slot.is-open {
  transform: scaleX(1);
  opacity: 1;
}

.ai-landing-slot.is-filled {
  filter: brightness(1.18);
}

.ai-landing-slot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.42;
}

.ai-new-work {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 30;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: #06161f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 34px 90px rgba(0, 0, 0, 0.46);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.04);
  transition:
    left 700ms cubic-bezier(0.2, 0.84, 0.28, 1),
    top 700ms cubic-bezier(0.2, 0.84, 0.28, 1),
    width 700ms cubic-bezier(0.2, 0.84, 0.28, 1),
    height 700ms cubic-bezier(0.2, 0.84, 0.28, 1),
    opacity 360ms ease,
    transform 700ms cubic-bezier(0.2, 0.84, 0.28, 1),
    border-color 420ms ease;
}

.ai-new-work.is-focus {
  width: 70%;
  height: 70%;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ai-new-work.is-inserting {
  left: var(--slot-x);
  top: var(--slot-y);
  width: var(--slot-w);
  height: var(--slot-h);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translate(0, 0) scale(1);
  transition-duration: 1200ms, 1200ms, 1200ms, 1200ms, 360ms, 1200ms, 420ms;
}

.ai-new-work.is-merged {
  opacity: 0;
}

.ai-new-work video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0;
}

.is-animated .float-a {
  animation: floatA 5.4s ease-in-out infinite;
  animation-delay: var(--motion-delay, 0s);
}

.is-animated .float-b {
  animation: floatB 6.5s ease-in-out infinite;
  animation-delay: var(--motion-delay, 0s);
}

.is-animated .float-c {
  animation: floatC 7.2s ease-in-out infinite;
  animation-delay: var(--motion-delay, 0s);
}

.is-animated .sway {
  animation: sway 5.8s ease-in-out infinite;
  animation-delay: var(--motion-delay, 0s);
}

.is-animated .forest-turtle-path {
  animation: forestTurtlePath 28s linear infinite;
  animation-delay: -6s;
}

.is-animated .forest-peacock-path {
  animation: forestPeacockPath 32s linear infinite;
  animation-delay: -9s;
}

.is-animated .forest-deer-path {
  animation: forestDeerPath 18s ease-in-out infinite;
  animation-delay: -3s;
}

.is-animated .forest-rabbit-path {
  animation: forestRabbitPath 22s ease-in-out infinite;
  animation-delay: -7s;
}

.is-animated .ocean-crab-path {
  animation: oceanCrabPath 30s ease-in-out infinite;
  animation-delay: -8s;
}

.is-animated .universe-rocket-launch-a {
  animation: universeRocketLaunchA 29s cubic-bezier(0.24, 0.72, 0.22, 1) infinite;
  animation-delay: -7s;
}

.is-animated .universe-rocket-launch-b {
  animation: universeRocketLaunchB 34s cubic-bezier(0.24, 0.72, 0.22, 1) infinite;
  animation-delay: -16s;
}

.is-animated .universe-ship-drift-a {
  animation: universeShipDriftA 22s ease-in-out infinite;
  animation-delay: -4s;
}

.is-animated .universe-ship-drift-b {
  animation: universeShipDriftB 24s ease-in-out infinite;
  animation-delay: -9s;
}

.ocean-fish-source,
.ocean-school-source {
  opacity: 0;
}

.ocean-roaming-fish {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.18));
  will-change: left, top, transform;
}

.ocean-boid-school {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.ocean-boid {
  position: absolute;
  display: block;
  border-radius: 72% 999px 999px 72%;
  background: var(--fish-color);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 2px 5px rgba(0, 29, 54, 0.2);
  opacity: 0.92;
  transform-origin: 50% 50%;
  transition: opacity 180ms ease;
  will-change: left, top, transform;
}

.ocean-boid.is-bursting {
  opacity: 1;
  filter: saturate(1.2) brightness(1.12);
}

.ocean-boid::before {
  position: absolute;
  right: 14%;
  top: 28%;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: rgba(3, 24, 36, 0.72);
  content: "";
}

.ocean-boid::after {
  position: absolute;
  left: -28%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 0.28em solid transparent;
  border-right: 0.42em solid var(--fish-color);
  border-bottom: 0.28em solid transparent;
  content: "";
  transform: translateY(-50%);
}

.universe-particle-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
}

.universe-rocket-particle {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: radial-gradient(circle, #fff4a8 0 18%, #ff9f2f 36%, rgba(255, 89, 38, 0.72) 58%, transparent 76%);
  mix-blend-mode: screen;
  filter: blur(0.4px);
  will-change: transform, opacity;
}

.inspector {
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  min-height: 0;
}

.inspector-head {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

#layerCount {
  color: var(--muted);
  font-size: 12px;
}

.layer-list {
  overflow: auto;
  padding: 10px;
}

.layer-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 9px;
  border-bottom: 1px solid rgba(183, 229, 209, 0.1);
}

.layer-row:last-child {
  border-bottom: 0;
}

.layer-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.layer-name {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
}

.layer-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-name span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.layer-chip {
  color: #0a1619;
  background: var(--accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  padding: 5px 7px;
}

.asset-readout {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
}

.asset-readout pre {
  max-height: 176px;
  overflow: auto;
  margin: 10px 0 0;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
  line-height: 1.5;
}

@keyframes bgDrift {
  from {
    transform: scale(1.035) translate3d(-0.8%, -0.5%, 0);
  }
  to {
    transform: scale(1.055) translate3d(0.8%, 0.5%, 0);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.24;
  }
  to {
    opacity: 0.5;
  }
}

@keyframes floatA {
  0%,
  100% {
    transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(-0.6deg) scaleX(var(--sx, 1));
  }
  50% {
    transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 16px)) rotate(1.2deg) scaleX(var(--sx, 1));
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(-1.6deg) scaleX(var(--sx, 1));
  }
  50% {
    transform: translate(calc(var(--tx, 0px) + 14px), calc(var(--ty, 0px) - 13px)) rotate(2.4deg) scaleX(var(--sx, 1));
  }
}

@keyframes floatC {
  0%,
  100% {
    transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(1.4deg) scaleX(var(--sx, 1));
  }
  50% {
    transform: translate(calc(var(--tx, 0px) - 12px), calc(var(--ty, 0px) - 15px)) rotate(-2.6deg) scaleX(var(--sx, 1));
  }
}

@keyframes sway {
  0%,
  100% {
    transform: translate(calc(var(--tx, 0px) - 3px), var(--ty, 0px)) rotate(-2.8deg) scaleX(var(--sx, 1));
  }
  50% {
    transform: translate(calc(var(--tx, 0px) + 3px), calc(var(--ty, 0px) - 8px)) rotate(2.8deg) scaleX(var(--sx, 1));
  }
}

@keyframes forestTurtlePath {
  0% {
    transform: translate(-270%, 0) rotate(0deg) scaleX(1);
  }
  100% {
    transform: translate(340%, -2%) rotate(0deg) scaleX(1);
  }
}

@keyframes forestPeacockPath {
  0% {
    transform: translate(135%, 0) rotate(0deg) scaleX(1);
  }
  100% {
    transform: translate(-640%, 1%) rotate(0deg) scaleX(1);
  }
}

@keyframes forestDeerPath {
  0%,
  8% {
    transform: translate(-14%, 0) rotate(0deg) scaleX(1);
  }
  22% {
    transform: translate(60%, -3%) rotate(0.6deg) scaleX(1);
  }
  34%,
  42% {
    transform: translate(82%, 1%) rotate(0deg) scaleX(1);
  }
  50% {
    transform: translate(82%, 1%) rotate(0deg) scaleX(-1);
  }
  66% {
    transform: translate(18%, -2%) rotate(-0.5deg) scaleX(-1);
  }
  80%,
  88% {
    transform: translate(-34%, 2%) rotate(0deg) scaleX(-1);
  }
  96% {
    transform: translate(-34%, 2%) rotate(0deg) scaleX(1);
  }
  100% {
    transform: translate(-14%, 0) rotate(0deg) scaleX(1);
  }
}

@keyframes forestRabbitPath {
  0%,
  6% {
    transform: translate(-120%, 2%) rotate(0deg) scaleX(1);
  }
  18% {
    transform: translate(-48%, -3%) rotate(0.8deg) scaleX(1);
  }
  30%,
  38% {
    transform: translate(56%, 1%) rotate(0deg) scaleX(1);
  }
  48% {
    transform: translate(142%, -2%) rotate(-0.5deg) scaleX(1);
  }
  56% {
    transform: translate(142%, -2%) rotate(0deg) scaleX(-1);
  }
  70% {
    transform: translate(34%, 2%) rotate(0.5deg) scaleX(-1);
  }
  84%,
  92% {
    transform: translate(-156%, -1%) rotate(0deg) scaleX(-1);
  }
  98% {
    transform: translate(-156%, -1%) rotate(0deg) scaleX(1);
  }
  100% {
    transform: translate(-120%, 2%) rotate(0deg) scaleX(1);
  }
}

@keyframes oceanCrabPath {
  0%,
  7% {
    transform: translate(-270%, 0) rotate(0deg) scaleX(1);
  }
  46% {
    transform: translate(490%, -2%) rotate(0.4deg) scaleX(1);
  }
  52% {
    transform: translate(490%, -2%) rotate(0deg) scaleX(-1);
  }
  94%,
  100% {
    transform: translate(-270%, 1%) rotate(-0.3deg) scaleX(-1);
  }
}

@keyframes universeRocketLaunchA {
  0% {
    opacity: 0;
    transform: translate(240%, 230%) rotate(-4deg) scaleX(var(--sx, 1));
  }
  8% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate(-260%, -250%) rotate(-8deg) scaleX(var(--sx, 1));
  }
  73%,
  100% {
    opacity: 0;
    transform: translate(-260%, -250%) rotate(-8deg) scaleX(var(--sx, 1));
  }
}

@keyframes universeRocketLaunchB {
  0% {
    opacity: 0.65;
    transform: translate(36%, 54%) rotate(8deg) scaleX(var(--sx, 1));
  }
  9% {
    opacity: 1;
  }
  82% {
    opacity: 1;
    transform: translate(-92%, -96%) rotate(2deg) scaleX(var(--sx, 1));
  }
  92%,
  100% {
    opacity: 0;
    transform: translate(-108%, -112%) rotate(2deg) scaleX(var(--sx, 1));
  }
}

@keyframes universeShipDriftA {
  0%,
  100% {
    transform: translate(-58%, 18%) rotate(-4deg) scaleX(var(--sx, 1));
  }
  24% {
    transform: translate(86%, 54%) rotate(5deg) scaleX(var(--sx, 1));
  }
  52% {
    transform: translate(168%, -8%) rotate(-2deg) scaleX(var(--sx, 1));
  }
  76% {
    transform: translate(24%, -42%) rotate(7deg) scaleX(var(--sx, 1));
  }
}

@keyframes universeShipDriftB {
  0%,
  100% {
    transform: translate(34%, 12%) rotate(4deg) scaleX(var(--sx, 1));
  }
  22% {
    transform: translate(-118%, -72%) rotate(-7deg) scaleX(var(--sx, 1));
  }
  48% {
    transform: translate(-250%, 18%) rotate(5deg) scaleX(var(--sx, 1));
  }
  74% {
    transform: translate(-96%, 74%) rotate(-5deg) scaleX(var(--sx, 1));
  }
}

.motion-off .layer,
.motion-off.stage::after,
.motion-off .ai-new-work {
  animation: none !important;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .stage-toolbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .toolbar-actions {
    flex-wrap: wrap;
  }

  .stage {
    width: 100%;
  }

  .ai-waterfall {
    gap: 10px;
    padding: 12px;
  }

  .ai-track {
    gap: 10px;
  }

  .inspector {
    min-height: 420px;
  }
}
