.pitch-body {
  background: #0A0A0F;
}

.pitch-heading {
  grid-template-columns: minmax(0, 820px) auto;
}

.pitch-workspace {
  grid-template-columns: minmax(320px, 0.92fr) minmax(560px, 1.3fr);
}

.pitch-form {
  position: sticky;
  top: 84px;
}

.pitch-workflow-card,
.pitch-preset-block,
.pitch-hero-card,
.pitch-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #111118;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.pitch-preset-block {
  background: #161620;
}

.pitch-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pitch-card-header strong {
  color: #EDEDF5;
  font: 800 1rem var(--font-display);
}

.pitch-card-header span {
  color: #8888A0;
  font-size: 0.8rem;
  font-weight: 800;
}

.pitch-steps {
  display: grid;
  gap: 9px;
}

.pitch-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: #161620;
}

.pitch-step > span,
.action-step > span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #2A2A3A;
  color: #B8B8CC;
  font-size: 0.82rem;
  font-weight: 900;
}

.pitch-step strong {
  display: block;
  color: #B8B8CC;
  font-size: 0.9rem;
  line-height: 1.25;
}

.pitch-step em {
  display: block;
  margin-top: 2px;
  color: #8888A0;
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.35;
}

.pitch-step.is-active {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}

.pitch-step.is-active > span {
  background: linear-gradient(135deg, #f59e0b, #10b981);
  color: #ffffff;
}

.pitch-step.is-done > span {
  background: #0f766e;
  color: #ffffff;
}

.pitch-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  background: #111118;
  color: #B8B8CC;
  cursor: pointer;
  font: 800 0.82rem var(--font-sans);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.preset-chip:hover {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.08);
  transform: translateY(-1px);
}

.preset-chip.is-active {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.1);
  color: #0f766e;
}

.pitch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pitch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pitch-actions .action-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.pitch-actions .btn {
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.pitch-output .output-header {
  align-items: flex-start;
}

.pitch-regen-control {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pitch-regen-control select {
  width: min(230px, 100%);
}

.pitch-result {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.pitch-result[hidden] {
  display: none !important;
}

.pitch-hero-card {
  border-color: rgba(16, 185, 129, 0.24);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(245, 158, 11, 0.08)),
    #ffffff;
}

.pitch-hero-card h3 {
  margin: 0;
  color: #EDEDF5;
  font: 900 1.45rem/1.15 var(--font-display);
}

.pitch-one-liner {
  margin: 0;
  color: #EDEDF5;
  font: 800 1.2rem/1.45 var(--font-display);
}

.pitch-logic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pitch-logic-grid > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: #111118;
}

.pitch-logic-grid strong {
  color: #EDEDF5;
  font-size: 0.85rem;
}

.pitch-logic-grid span {
  color: #B8B8CC;
  line-height: 1.48;
}

.pitch-section {
  box-shadow: none;
}

.pitch-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pitch-card-grid.single {
  grid-template-columns: 1fr;
}

.pitch-mini-card,
.pitch-asset-grid > div {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #161620;
}

.pitch-mini-card h3,
.pitch-asset-grid h3 {
  margin: 0;
  color: #EDEDF5;
  font: 900 1rem/1.2 var(--font-display);
}

.pitch-mini-card p {
  margin: 0;
  color: #B8B8CC;
  line-height: 1.52;
}

.pitch-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pitch-tag {
  display: inline-flex;
  max-width: 100%;
  margin: 4px 6px 4px 0;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: #111118;
  color: #B8B8CC;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 52px;
  gap: 8px;
  align-items: center;
  color: #B8B8CC;
  font-size: 0.84rem;
  font-weight: 800;
}

.score-bar {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: #2A2A3A;
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #10b981);
}

.pitch-loader {
  display: grid;
  gap: 16px;
  place-items: center;
  min-height: 420px;
  padding: 34px 16px;
  text-align: center;
}

.pitch-loader-stage {
  position: relative;
  width: min(380px, 100%);
  height: 140px;
}

.pitch-loader-card {
  position: absolute;
  width: 106px;
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  background: #111118;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #EDEDF5;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(255,255,255,0.06);
}

.pitch-loader-card:nth-child(1) {
  left: 0;
  top: 42px;
  animation: pitch-card-float 1.7s ease-in-out infinite;
}

.pitch-loader-card:nth-child(2) {
  left: calc(50% - 53px);
  top: 8px;
  animation: pitch-card-float 1.7s ease-in-out 0.22s infinite;
}

.pitch-loader-card:nth-child(3) {
  right: 0;
  top: 42px;
  animation: pitch-card-float 1.7s ease-in-out 0.44s infinite;
}

.pitch-loader-line {
  position: absolute;
  left: 68px;
  right: 68px;
  top: 68px;
  height: 2px;
  background: linear-gradient(90deg, #0f766e, #f59e0b, #2563eb);
  animation: pitch-line 1.7s ease-in-out infinite;
}

.pitch-loader strong {
  color: #EDEDF5;
  font: 900 1.35rem var(--font-display);
}

.pitch-loader p {
  margin: 4px 0 0;
  color: #8888A0;
  font-weight: 700;
}

@keyframes pitch-card-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes pitch-line {
  0% {
    transform: scaleX(0.2);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.2);
    opacity: 0.45;
  }
}

@media (max-width: 1040px) {
  .pitch-workspace,
  .pitch-heading {
    grid-template-columns: 1fr;
  }

  .pitch-form {
    position: static;
  }
}

@media (max-width: 760px) {
  .pitch-grid,
  .pitch-actions,
  .pitch-logic-grid,
  .pitch-card-grid,
  .pitch-asset-grid {
    grid-template-columns: 1fr;
  }

  .pitch-card-header,
  .pitch-output .output-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pitch-regen-control {
    justify-content: stretch;
    width: 100%;
  }

  .pitch-regen-control select,
  .pitch-regen-control .btn {
    width: 100%;
  }
}
