.request-story-content {
  grid-template-columns: minmax(280px, 0.82fr) minmax(280px, 1.18fr);
  align-items: start;
}

.panel-preview.story-preview {
  width: min(100%, 300px);
  max-height: none;
  overflow: visible;
  border-radius: 0;
}

.request-story {
  display: grid;
  gap: 10px;
  width: 100%;
}

.story-steps,
.story-heading,
.story-controls {
  display: none;
}

.js .story-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 4px;
}

.story-step {
  --step-progress: 0;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-step::before,
.story-step::after {
  position: absolute;
  right: 3px;
  bottom: 18px;
  left: 3px;
  height: 4px;
  border-radius: 999px;
  content: '';
}

.story-step::before {
  background: rgba(255, 255, 255, 0.18);
}

.story-step::after {
  background: var(--rescue);
  transform: scaleX(var(--step-progress));
  transform-origin: left center;
}

.story-step:hover::before,
.story-step[aria-current='step']::before {
  background: rgba(255, 255, 255, 0.34);
}

.story-step:focus-visible,
.story-controls button:focus-visible {
  outline: 3px solid var(--rescue);
  outline-offset: 2px;
}

.js .story-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}

.story-heading p,
.story-heading span {
  margin: 0;
}

.story-heading p {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
}

.story-heading span {
  color: var(--muted);
  font-size: 0.67rem;
  text-align: right;
}

.story-frames {
  display: grid;
}

.story-frame {
  display: grid;
  gap: 12px;
  grid-area: 1 / 1;
  margin: 0;
}

.story-frame[hidden] {
  display: none;
}

.story-frame .phone-frame {
  width: min(100%, 230px);
  margin: 0 auto;
}

.story-frame figcaption {
  display: grid;
  gap: 3px;
  min-height: 58px;
  text-align: center;
}

@media (max-width: 759px) {
  .request-story-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-story-content > * {
    min-width: 0;
  }

  .panel-preview.story-preview {
    width: min(100%, 280px);
  }
}

.story-frame figcaption strong {
  color: var(--text);
  font-size: 0.84rem;
}

.story-frame figcaption span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.js .story-controls {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 6px;
}

.story-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.story-controls button:hover {
  border-color: rgba(246, 101, 16, 0.72);
  background: rgba(246, 101, 16, 0.12);
}

.story-controls [data-story-action='toggle'] {
  background: var(--rescue);
  color: var(--forest-950);
}

@media (max-width: 359px) {
  .js .story-steps {
    grid-template-columns: repeat(3, minmax(44px, 1fr));
  }
}
