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

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

.ideation-workspace {
  grid-template-columns: minmax(340px, 0.95fr) minmax(500px, 1.25fr);
}

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

.workflow-card {
  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 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

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

.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(37, 99, 235, 0.38);
  background: rgba(37, 99, 235, 0.07);
}

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

.workflow-step.is-active strong {
  color: #EDEDF5;
}

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

.preset-block {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #161620;
}

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

.preset-header strong {
  color: #EDEDF5;
  font: 800 0.95rem var(--font-display);
}

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

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

.preset-chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  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(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.07);
  color: #EDEDF5;
  transform: translateY(-1px);
}

.preset-chip.is-active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

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

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

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

.action-step:has(.btn:disabled) > span {
  opacity: 0.55;
}

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

.lab-result[hidden],
.lab-section[hidden] {
  display: none !important;
}

.lab-section {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #111118;
  padding: 16px;
}

.lab-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.lab-section-header h3 {
  margin: 4px 0 0;
  color: #EDEDF5;
  font: 800 1.18rem var(--font-display);
}

.select-all,
.score-note {
  color: #8888A0;
  font-size: 0.86rem;
  font-weight: 700;
}

.select-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ideas-list {
  display: grid;
  gap: 10px;
}

.idea-card {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #f8fbff;
}

.idea-card input {
  margin-top: 4px;
}

.idea-card strong {
  display: block;
  color: #EDEDF5;
  line-height: 1.45;
}

.score-table-wrap {
  overflow-x: auto;
}

.score-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: #B8B8CC;
  font-size: 0.9rem;
}

.score-table th,
.score-table td {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.score-table th {
  background: #161620;
  color: #EDEDF5;
  font-weight: 800;
  cursor: pointer;
}

.score-table td:nth-child(3),
.score-table td:nth-child(4),
.score-table td:nth-child(5),
.score-table td:nth-child(6) {
  text-align: center;
  font-weight: 800;
}

.score-table td:nth-child(6) {
  color: #0f766e;
}

.score-summary {
  margin: 12px 0 0;
  color: #8888A0;
  font-size: 0.92rem;
  font-weight: 700;
}

.lab-brief {
  padding-top: 4px;
}

.lab-loader {
  min-height: 460px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 26px 8px 10px;
  text-align: center;
}

.lab-loader-orbit {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 0 42%, transparent 43%),
    conic-gradient(from 180deg, #7c3aed, #2563eb, #0f766e, #f59e0b, #7c3aed);
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.22);
  animation: lab-spin 2.4s linear infinite;
}

.lab-loader-orbit::before {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #111118;
}

.lab-loader-orbit span {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #111118;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.lab-loader-orbit span:nth-child(1) {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.lab-loader-orbit span:nth-child(2) {
  right: 10px;
  bottom: 20px;
}

.lab-loader-orbit span:nth-child(3) {
  left: 10px;
  bottom: 20px;
}

.lab-loader-copy {
  max-width: 520px;
}

.lab-loader-copy strong {
  display: block;
  margin-top: 6px;
  color: #EDEDF5;
  font: 800 1.35rem var(--font-display);
}

.lab-loader-copy p {
  margin: 7px 0 0;
  color: #B8B8CC;
  font-weight: 700;
}

.lab-loader-steps {
  width: min(100%, 560px);
  display: grid;
  gap: 8px;
}

.lab-loader-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #161620;
  color: #8888A0;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lab-loader-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: 800;
}

.lab-loader-step em {
  font-style: normal;
  font-weight: 800;
}

.lab-loader-step.is-active {
  border-color: rgba(124, 58, 237, 0.42);
  background: rgba(124, 58, 237, 0.08);
  color: #EDEDF5;
  transform: translateY(-1px);
}

.lab-loader-step.is-active span {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #ffffff;
}

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

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

@media (max-width: 1080px) {
  .ideation-workspace {
    grid-template-columns: 1fr;
  }

  .ideation-form {
    position: static;
  }
}

@media (max-width: 620px) {
  .ideation-actions,
  .ideation-form .brief-controls {
    grid-template-columns: 1fr;
  }

  .lab-section-header {
    flex-direction: column;
  }
}
