.job-status,
.job-credit-panel {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin: .75rem 0 0;
  color: #4b5563;
  font-size: .82rem;
}
.job-status[data-state="error"] { color: #b42318; }
.job-status[data-state="ready"] { color: #147d4f; }
.job-status[data-state="pending"] { color: #8a5a00; }
.job-status:empty { display: none; }
.job-credit-panel {
  justify-content: space-between;
  padding: .7rem .8rem;
  border: 1px solid rgba(20, 38, 82, .14);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .7);
}
.job-credit-panel strong { color: #142652; }
.job-price-summary { display: grid; gap: .25rem; line-height: 1.45; min-width: 0; }
.job-pack-price:not([hidden]) { display: grid; }
.job-pack-price strong { font-size: 1rem; }
.job-language-note { color: #142652; }

.job-generator-extras {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 760px) {
  .job-generator-extras:has(.job-demo) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-topic { align-content: center; }
}

.job-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 0.6rem;
  background: color-mix(in srgb, currentColor 5%, transparent);
}
.job-demo video {
  display: block;
  width: clamp(7.5rem, 24vw, 11rem);
  height: 7.5rem;
  border-radius: 0.45rem;
  background: #171717;
  object-fit: contain;
}
.job-demo p, .job-topic p { margin: 0; font-size: .82rem; line-height: 1.4; }
.job-demo p { margin-top: .25rem; }
.job-demo-play {
  min-height: 44px;
  margin-top: .25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .87rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.job-topic { display: grid; gap: .45rem; }
.job-topic label { font-weight: 700; }
.job-topic label span { margin-left: .3rem; font-size: .8rem; font-weight: 400; }
.job-topic :is(input, textarea) { width: 100%; min-width: 0; min-height: 44px; padding: .55rem .7rem; border-radius: .45rem; }
.job-topic textarea { resize: vertical; }
.job-shortcuts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.job-shortcuts button {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.job-shortcuts button:is(:hover, :focus-visible, [aria-pressed="true"]) { border-color: currentColor; }
.job-shortcuts button[aria-pressed="true"] {
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-weight: 700;
}
.job-buy-credits {
  margin-left: auto;
  border: 1px solid #142652;
  border-radius: 999px;
  padding: .38rem .7rem;
  background: #142652;
  color: white;
  font: inherit;
  cursor: pointer;
}
.job-buy-credits:disabled { opacity: .45; cursor: not-allowed; }
.job-retry-button {
  width: fit-content;
  padding: .55rem .9rem;
  border: 1px solid currentColor;
  border-radius: .5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.job-mock-notice {
  margin-bottom: 1rem;
  padding: .65rem .85rem;
  border-radius: .5rem;
  background: #e3f2ff;
  color: #143357;
  font-size: .86rem;
}
.job-result-video { display: block; width: min(100%, 28rem); margin-top: 1rem; border-radius: 1rem; }
.job-result-download { display: inline-block; margin-top: .75rem; }
.rap-settings button[hidden] { display: none !important; }

@media (width < 760px) {
  .rap-tool-step > .job-topic {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  }
  .job-credit-panel { align-items: flex-start; }
}
