: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: 3200;
  --stage-h: 1200;
  --ai-dim-blur: 2px;
  --waterfall-height: 40%;
}

* {
  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;
}

.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;
}

.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;
}

.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;
}

.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;
}

/* AI Painting Mode specific styling */
.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 {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000;
  opacity: 0;
  pointer-events: none;
  content: "";
  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;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(100% - var(--waterfall-height, 40%));
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2.1%;
  padding: 1.5% 3%;
  overflow: hidden;
  filter: blur(0px);
  transition: filter 700ms cubic-bezier(0.2, 0.84, 0.28, 1), top 300ms ease;
  will-change: filter, top;
}

.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: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  filter: url(#hand-drawn-filter);
  transform: rotate(var(--card-rotate, 0deg)) scale(var(--card-scale, 1));
  transition: transform 1200ms cubic-bezier(0.2, 0.84, 0.28, 1);
  box-sizing: border-box;
}

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

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

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

.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: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #06161f;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
  filter: url(#hand-drawn-filter);
  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: cover;
}

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

/* Sidebar Inspector */
.inspector {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.inspector-head,
.layer-list {
  display: none !important;
}

.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;
}

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

/* Triple Tap Likes Feature */
.ai-card-like-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 20px;
  background: rgba(13, 32, 40, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  font-size: 12px;
  font-weight: bold;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  opacity: var(--counter-opacity, 0.4);
  transition: opacity 0.3s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-card-like-counter.is-active-liking {
  opacity: 1 !important;
}

.ai-card-like-counter svg {
  width: 14px;
  height: 14px;
  fill: #ff4d6d;
  filter: drop-shadow(0 1px 2px rgba(255, 77, 109, 0.3));
}

.ai-card-like-counter.is-wiggling {
  animation: counterWiggle 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes counterWiggle {
  0% { transform: scale(1); }
  20% { transform: scale(1.3) rotate(-10deg); }
  40% { transform: scale(1.15) rotate(8deg); }
  60% { transform: scale(1.2) rotate(-5deg); }
  80% { transform: scale(1.05) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

.ai-card-interactive-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 80px;
  height: 80px;
  z-index: 23;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.36));
}

.ai-card-interactive-heart.is-tapped {
  animation: heartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.3) forwards;
}

.ai-card-interactive-heart.is-falling {
  animation: heartFallDown 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heartBounce {
  0% { transform: translate(-50%, -50%) scale(1); }
  35% { transform: translate(-50%, -50%) scale(1.35); }
  60% { transform: translate(-50%, -50%) scale(0.92); }
  85% { transform: translate(-50%, -50%) scale(1.08); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes heartFallDown {
  0% { transform: translate(-50%, -50%) scale(1) translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.8) translateY(120px) rotate(15deg); opacity: 0; }
}

.ai-wave-path {
  fill: #ff4d6d;
  animation: waveHorizontal 1.6s linear infinite;
  transform-origin: left bottom;
}

.ai-wave-path-back {
  fill: #ff85a1;
  opacity: 0.55;
  animation: waveHorizontal 2.4s linear infinite reverse;
  transform-origin: left bottom;
}

@keyframes waveHorizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100px); }
}

.ai-like-particle {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  width: 18px;
  height: 18px;
  fill: #ff4d6d;
  opacity: 0.95;
  will-change: transform, opacity;
  animation: particleFloatUp 0.85s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes particleFloatUp {
  0% {
    transform: translate(-50%, -50%) scale(0.4) translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2) translate(var(--dx, 0px), var(--dy, -70px)) rotate(var(--dr, 0deg));
    opacity: 0;
  }
}

.ai-flying-heart {
  position: absolute;
  z-index: 45;
  width: 24px;
  height: 24px;
  fill: #ff4d6d;
  pointer-events: none;
  animation: heartFlyToCounter 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

@keyframes heartFlyToCounter {
  0% {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 77, 109, 0.6));
  }
  30% {
    transform: translate(-50%, -50%) scale(2.4);
    filter: drop-shadow(0 0 12px rgba(255, 77, 109, 0.8));
  }
  100% {
    left: calc(100% - 25px);
    top: 20px;
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0.1;
  }
}

/* --- Top 60% Fixed Showcase Gallery Style --- */

.ai-gallery-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--waterfall-height, 40%);
  padding: 1.5% 3% 1% 3%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  transition: bottom 300ms ease;
  will-change: bottom;
}

.ai-gallery-title-block {
  text-align: center;
  margin-bottom: 5px;
}

.ai-gallery-main-title {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 30%, #ff8fa3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  filter: drop-shadow(0 2px 10px rgba(255, 143, 163, 0.15));
}

.ai-gallery-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 3px 0 0 0;
  letter-spacing: 1px;
}

.ai-gallery-grid {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: calc(100% - 60px);
}

.ai-gallery-side {
  width: 32%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  align-content: center;
}

.ai-gallery-center {
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-gallery-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(20, 20, 20, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  filter: url(#hand-drawn-filter);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.3s ease, 
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform, opacity;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ai-gallery-slot:hover {
  border-color: rgba(255, 143, 163, 0.6);
  box-shadow: 0 8px 25px rgba(255, 143, 163, 0.15);
  transform: scale(1.03) !important;
}

/* Crooked rotation classes for artistic sketch feel */
.slot-left-1 { transform: rotate(-1.5deg) translate(1px, -2px); }
.slot-left-2 { transform: rotate(2deg) translate(-2px, 2px); }
.slot-left-3 { transform: rotate(1deg) translate(2px, -3px); }
.slot-left-4 { transform: rotate(-2.2deg) translate(-3px, 1px); }

.center-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  transform: rotate(0.6deg);
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.center-slot:hover {
  border-color: rgba(255, 143, 163, 0.8);
  box-shadow: 0 12px 35px rgba(255, 143, 163, 0.25);
}

.slot-right-1 { transform: rotate(1.8deg) translate(-1px, 2px); }
.slot-right-2 { transform: rotate(-1.2deg) translate(2px, -2px); }
.slot-right-3 { transform: rotate(-2deg) translate(-2px, -1px); }
.slot-right-4 { transform: rotate(1.5deg) translate(1px, 2px); }

/* Switch cross-fade animation */
.ai-gallery-slot.is-switching {
  opacity: 0;
  transform: scale(0.95) rotate(0deg) !important;
  transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Inner card styles */
.ai-gallery-card {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ai-gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.ai-gallery-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ff4d6d 0%, #ff8fa3 100%);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 77, 109, 0.4);
  z-index: 2;
  filter: url(#hand-drawn-filter);
}

.center-slot .ai-gallery-badge {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  box-shadow: 0 4px 12px rgba(251, 133, 0, 0.4);
}

.ai-gallery-sticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  padding: 20px 8px 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.center-slot .ai-gallery-sticker {
  padding: 25px 12px 10px 12px;
}

.sticker-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.center-slot .sticker-name {
  font-size: 0.85rem;
}

.sticker-likes {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ff8fa3;
  display: flex;
  align-items: center;
  gap: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.center-slot .sticker-likes {
  font-size: 0.85rem;
  color: #ffb703;
}

/* Placeholder card when slot is empty */
.ai-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-sizing: border-box;
}

.placeholder-icon {
  font-size: 1.4rem;
  filter: opacity(0.35);
  animation: floatIcon 3s ease-in-out infinite alternate;
}

.center-slot .placeholder-icon {
  font-size: 2.2rem;
}

.placeholder-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.5px;
}

.center-slot .placeholder-text {
  font-size: 0.85rem;
}

@keyframes floatIcon {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-4px) rotate(5deg); }
}

/* Responsiveness */
@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;
  }
}
