.prompt-detail-simple {
  background: #fff;
  color: #172238;
}

.prompt-detail-simple > main.sa-shell {
  width: min(1240px, calc(100% - 48px));
  padding-bottom: 46px;
}

.prompt-detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 0;
  color: #707b91;
  font-size: 12px;
  white-space: nowrap;
}

.prompt-detail-breadcrumbs a,
.prompt-detail-breadcrumbs span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-detail-breadcrumbs svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.prompt-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 34px;
  align-items: start;
}

.prompt-detail-image {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f3f5f8;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
}

.prompt-detail-image > img {
  display: block;
  width: 100%;
  height: min(690px, calc(100vh - 190px));
  min-height: 460px;
  object-fit: contain;
  background: #eef1f5;
}

.prompt-detail-image figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 9px 10px 9px 16px;
  background: #fff;
}

.prompt-detail-image figcaption > span {
  color: #6d778b;
  font-size: 12px;
}

.prompt-detail-image figcaption a,
.prompt-detail-generate a,
.prompt-detail-prompt button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #7049e8;
  border-radius: 5px;
  color: #7049e8;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.prompt-detail-image figcaption svg,
.prompt-detail-generate svg,
.prompt-detail-prompt button svg {
  width: 17px;
  height: 17px;
  margin-right: 7px;
}

.prompt-detail-content {
  min-width: 0;
}

.prompt-detail-content > header {
  padding: 4px 4px 20px;
}

.prompt-lab-eyebrow {
  margin: 0 0 10px;
  color: #7049e8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.prompt-detail-content h1 {
  margin: 0;
  color: #152036;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0;
}

.prompt-detail-content > header > p:last-child {
  margin: 12px 0 0;
  color: #69758a;
  font-size: 14px;
  line-height: 1.8;
}

.prompt-detail-prompt {
  overflow: hidden;
  background: #fafbfe;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
}

.prompt-detail-prompt > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 10px 12px 10px 18px;
  background: #fff;
  border-bottom: 1px solid #e5e9f0;
}

.prompt-detail-prompt h2,
.prompt-detail-generate h2 {
  margin: 0;
  color: #202b40;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0;
}

.prompt-detail-prompt button {
  min-width: 112px;
  color: #fff;
  background: #7049e8;
}

.prompt-detail-prompt button[data-copied="true"] {
  background: #15835d;
  border-color: #15835d;
}

.prompt-detail-prompt pre {
  max-height: 370px;
  margin: 0;
  padding: 19px;
  overflow: auto;
  overflow-wrap: anywhere;
  color: #344158;
  background: #fafbfe;
  white-space: pre-wrap;
  font: 14px/1.9 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.prompt-detail-generate {
  margin-top: 18px;
  padding: 22px;
  background: #f2efff;
  border: 1px solid #d9d0fb;
  border-radius: 7px;
}

.prompt-detail-generate p {
  margin: 8px 0 16px;
  color: #656f85;
  font-size: 13px;
  line-height: 1.7;
}

.prompt-detail-generate a {
  width: 100%;
  min-height: 46px;
  color: #fff;
  background: #7049e8;
}

.prompt-detail-generate small {
  display: block;
  margin-top: 12px;
  color: #747d90;
  font-size: 11px;
  line-height: 1.6;
}

.prompt-detail-simple button:focus-visible,
.prompt-detail-simple a:focus-visible {
  outline: 2px solid #7049e8;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .prompt-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .prompt-detail-image > img {
    height: auto;
    min-height: 0;
    max-height: 720px;
  }
}

@media (max-width: 600px) {
  .prompt-detail-simple > main.sa-shell {
    width: calc(100% - 28px);
    padding-bottom: 32px;
  }

  .prompt-detail-breadcrumbs {
    padding: 14px 0;
  }

  .prompt-detail-layout {
    gap: 20px;
  }

  .prompt-detail-image figcaption {
    align-items: stretch;
    flex-direction: column;
    padding: 11px;
  }

  .prompt-detail-image figcaption a {
    width: 100%;
  }

  .prompt-detail-content > header {
    padding: 0 0 16px;
  }

  .prompt-detail-content h1 {
    font-size: 26px;
  }

  .prompt-detail-content > header > p:last-child {
    font-size: 13px;
  }

  .prompt-detail-prompt > div {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .prompt-detail-prompt button {
    width: 100%;
  }

  .prompt-detail-prompt pre {
    max-height: none;
    padding: 15px;
    font-size: 13px;
  }

  .prompt-detail-generate {
    padding: 17px;
  }
}
