.deseq-app {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border: 1px solid rgba(21, 120, 120, 0.22);
  border-radius: 0.45rem;
  background: #f8fcfc;
}

.deseq-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.deseq-panel {
  padding: 1rem;
  border: 1px solid rgba(21, 120, 120, 0.18);
  border-radius: 0.35rem;
  background: #fff;
}

.deseq-panel h3 {
  margin-top: 0;
}

.deseq-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.deseq-form-row input,
.deseq-form-row select {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(21, 120, 120, 0.32);
  border-radius: 0.25rem;
  font: inherit;
}

.deseq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.is-hidden {
  display: none !important;
}

.deseq-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-left: 4px solid #1e6b6b;
  background: #eef7f7;
}

.deseq-status[data-state="failed"] {
  border-left-color: #b23a48;
  background: #fff4f5;
}

.deseq-results {
  margin-top: 1.5rem;
}

.deseq-artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.deseq-artifact {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(21, 120, 120, 0.18);
  border-radius: 0.35rem;
  background: #fff;
}

.deseq-artifact img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7e6e6;
  border-radius: 0.25rem;
}

.deseq-artifact figcaption {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: #3d5c5c;
}

.deseq-top-genes {
  overflow-x: auto;
}

.deseq-top-genes table {
  min-width: 42rem;
}

.deseq-note {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #b88700;
  background: #fff8e5;
}

.deseq-code {
  white-space: pre-wrap;
}

.deseq-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
}

#live-artifacts {
  margin: 0;
  padding-left: 1.2rem;
}

.deseq-artifact-preview {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(21, 120, 120, 0.18);
}

.deseq-artifact-preview iframe,
.deseq-artifact-preview img {
  display: block;
  width: 100%;
  border: 1px solid #d7e6e6;
  border-radius: 0.25rem;
  background: #fff;
}

.deseq-artifact-preview iframe {
  min-height: 42rem;
}

.deseq-artifact-preview img {
  height: auto;
}
