/* Fade the window shell beneath the UI. Text and focus rings stay sharp. */
.agent-task {
  position: relative;
  isolation: isolate;
  border-color: transparent;
  background: transparent;
}
.agent-task::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid #ffffff19;
  border-radius: inherit;
  pointer-events: none;
  background: #101011;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, #0009 77%, transparent 98%), linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, #0009 77%, transparent 98%), linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.agent-task::after { content: none; }
.agent-task .agent-composer { margin-bottom: 20px; }

.scroll-showcase-panel { transform-origin: center; }
.scroll-showcase-panel:focus-within { transform: none !important; }

@media (max-width: 600px) {
  .agent-task .agent-composer { margin-bottom: 16px; }
}

/* Phone layouts stay still; there is no angle to fight while reading small type. */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .scroll-showcase-panel { transform: none !important; }
}
