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

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

.porter-workspace {
  grid-template-columns: minmax(340px, 0.9fr) minmax(520px, 1.3fr);
}

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

.workflow-card,
.preset-block {
  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.06);
}

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

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

.preset-header span {
  color: #8888A0;
  font-size: 0.8rem;
  font-weight: 700;
}

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

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

.workflow-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;
}

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

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

.workflow-step.is-active {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.08);
}

.workflow-step.is-active > span {
  background: linear-gradient(135deg, #0ea5e9, #0f766e);
  color: #ffffff;
}

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

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

.preset-chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  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,
.preset-chip.is-active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.porter-note {
  padding: 11px 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.06);
  color: #B8B8CC;
  font-size: 0.87rem;
  font-weight: 700;
}

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

.porter-actions .action-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
}

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

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

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

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

.score-pill {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #111118;
}

.score-pill span {
  display: block;
  margin-bottom: 5px;
  color: #8888A0;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.score-pill strong {
  color: #EDEDF5;
  font: 900 1.45rem var(--font-display);
}

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

.force-card,
.moves-card,
.evidence-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #111118;
}

.force-card h3,
.moves-card h3,
.evidence-card h3 {
  margin: 0 0 10px;
  color: #EDEDF5;
  font: 900 1.08rem var(--font-display);
}

.force-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.intensity {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.intensity.low {
  background: rgba(52,211,153,0.08);
  color: #065f46;
  border: 1px solid #bbf7d0;
}

.intensity.medium {
  background: rgba(251,191,36,0.08);
  color: #7c2d12;
  border: 1px solid #fed7aa;
}

.intensity.high {
  background: rgba(229,77,77,0.08);
  color: #7f1d1d;
  border: 1px solid #fecaca;
}

.factor-list,
.move-list,
.reference-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.factor-list li,
.move-list li,
.reference-list li {
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: #161620;
  color: #B8B8CC;
  font-size: 0.92rem;
  line-height: 1.45;
}

.reference-list strong {
  display: block;
  color: #EDEDF5;
  margin-bottom: 5px;
}

.reference-list em {
  display: block;
  color: #8888A0;
  font-style: normal;
}

.porter-loader {
  display: grid;
  gap: 16px;
  place-items: center;
  min-height: 360px;
  padding: 32px 16px;
  text-align: center;
}

.porter-loader-orbit {
  position: relative;
  width: 96px;
  height: 96px;
}

.porter-loader-orbit span {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: #0ea5e9;
  border-radius: 999px;
  animation: porter-spin 1.1s linear infinite;
}

.porter-loader-orbit span:nth-child(2) {
  inset: 13px;
  border-top-color: #0f766e;
  animation-duration: 1.45s;
  animation-direction: reverse;
}

.porter-loader-orbit span:nth-child(3) {
  inset: 26px;
  border-top-color: #f59e0b;
  animation-duration: 1.8s;
}

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

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

@keyframes porter-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .porter-workspace,
  .porter-shell .brief-heading {
    grid-template-columns: 1fr;
  }

  .porter-form {
    position: static;
  }

  .force-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .porter-actions,
  .porter-summary {
    grid-template-columns: 1fr;
  }
}
