.reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

.lab-shell {
  width: min(1200px, calc(100vw - 3rem));
}

.section-headline {
  margin-bottom: 1rem;
  display: grid;
  gap: 0.35rem;
}

.section h2 {
  margin: 0;
}

.controls {
  display: grid;
  gap: 0.9rem;
}

.lab-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: #addde4;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.btn.small {
  font-size: 0.76rem;
  padding: 0.45rem 0.72rem;
}

.wizard-nav {
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.step-chip {
  border: 1px solid rgba(143, 191, 203, 0.32);
  background: rgba(8, 38, 58, 0.74);
  color: #9fd3da;
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.step-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(84, 244, 216, 0.62);
}

.step-chip.is-active {
  border-color: rgba(84, 244, 216, 0.84);
  color: #052028;
  background: linear-gradient(130deg, var(--aqua), var(--teal));
}

.step-chip.is-complete {
  border-color: rgba(84, 244, 216, 0.52);
  background: rgba(84, 244, 216, 0.2);
  color: #c5f4ee;
}

.wizard-footer {
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  align-items: center;
}

.template-block,
.picker-block,
.tier-block,
.widget-preview-shell {
  border: 1px dashed rgba(143, 191, 203, 0.35);
  border-radius: 14px;
  background: rgba(8, 40, 61, 0.58);
  padding: 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.picker-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #bde8e9;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.template-card {
  border: 1px solid rgba(143, 191, 203, 0.3);
  border-radius: 12px;
  background: rgba(8, 38, 58, 0.72);
  padding: 0.75rem;
  text-align: left;
  display: grid;
  gap: 0.3rem;
  color: #b9e9e8;
  cursor: pointer;
}

.template-card strong {
  font-size: 0.86rem;
}

.template-card span {
  font-size: 0.74rem;
  color: #98ccd2;
}

.template-card:hover {
  border-color: rgba(84, 244, 216, 0.5);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.selection-chip {
  border: 1px solid rgba(84, 244, 216, 0.44);
  border-radius: 999px;
  background: rgba(84, 244, 216, 0.12);
  color: #c9fff4;
  padding: 0.22rem 0.5rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chip-remove {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.picker-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.picker-results {
  display: grid;
  gap: 0.4rem;
  max-height: 220px;
  overflow: auto;
}

.picker-item {
  border: 1px solid rgba(143, 191, 203, 0.26);
  border-radius: 10px;
  background: rgba(6, 34, 52, 0.8);
  padding: 0.55rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.picker-item-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d5ffff;
}

.picker-item-meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #90c6cf;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier-list {
  display: grid;
  gap: 0.45rem;
}

.tier-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1fr auto auto;
  gap: 0.45rem;
  align-items: end;
  border: 1px solid rgba(143, 191, 203, 0.26);
  border-radius: 10px;
  background: rgba(6, 34, 52, 0.8);
  padding: 0.55rem;
}

.tier-row label {
  font-size: 0.72rem;
}

.tier-row input,
.tier-row select {
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
}

.tier-row .tier-default {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
}

.tier-row .tier-default input {
  width: auto;
}

.widget-preview-card {
  margin-top: 0.5rem;
  border: 1px solid rgba(143, 191, 203, 0.34);
  background: rgba(6, 34, 52, 0.84);
  border-radius: 12px;
  padding: 0.85rem;
  display: grid;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.widget-preview-card[data-layout="horizontal"] .widget-tier-chip-row {
  justify-content: space-between;
}

.widget-preview-title {
  margin: 0;
  font-weight: 700;
  color: #e0ffff;
}

.widget-preview-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #95c7cf;
}

.widget-tier-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.widget-tier-chip {
  border: 1px solid;
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.widget-tier-chip.is-default {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.widget-tier-chip.is-active {
  background: rgba(84, 244, 216, 0.16);
}

.preview-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.preview-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.preview-qty-control input[type="range"] {
  width: 120px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.insight-card {
  border: 1px solid rgba(143, 191, 203, 0.28);
  border-radius: 12px;
  background: rgba(8, 38, 58, 0.72);
  padding: 0.75rem;
}

.insight-card h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #bbe9e8;
}

.insight-content {
  margin-top: 0.45rem;
}

.insight-list,
.check-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: #9dccd2;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.check-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  display: inline-block;
}

.check-list .is-ok .check-dot {
  background: #46d7be;
}

.check-list .is-warn .check-dot {
  background: #ff9c7f;
}

.status {
  margin: 0;
  padding: 0.56rem 0.72rem;
  border-radius: 10px;
  background: rgba(8, 38, 58, 0.72);
  border: 1px solid rgba(143, 191, 203, 0.35);
  color: #9dd3d9;
}

.status.ok {
  color: #aef5d3;
  border-color: rgba(67, 199, 151, 0.52);
  background: rgba(8, 58, 44, 0.5);
}

.status.error {
  color: #ffc6b2;
  border-color: rgba(255, 131, 96, 0.52);
  background: rgba(68, 27, 24, 0.6);
}

.offers-list {
  display: grid;
  gap: 0.7rem;
}

.offer-card {
  border: 1px solid rgba(143, 191, 203, 0.3);
  border-radius: 14px;
  padding: 0.76rem;
  background: rgba(7, 35, 54, 0.8);
}

.offer-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #d8ffff;
}

.offer-meta {
  margin: 0.22rem 0 0.48rem;
  color: #93c9d1;
  font-size: 0.82rem;
}

.offer-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-row input {
  width: auto;
}

.muted {
  margin: 0;
  color: #8fbfcb;
}

.json-output {
  margin: 0.9rem 0 0;
  border: 1px solid rgba(143, 191, 203, 0.35);
  border-radius: 12px;
  background: rgba(2, 18, 29, 0.95);
  color: #d8f1ff;
  padding: 0.9rem;
  min-height: 180px;
  overflow: auto;
}

@media (max-width: 980px) {
  .lab-layout {
    grid-template-columns: 1fr;
  }

  .two-up,
  .three-up,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .wizard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .picker-controls {
    grid-template-columns: 1fr;
  }

  .tier-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lab-shell {
    width: min(1200px, calc(100vw - 1.3rem));
  }

  .inline-actions {
    width: 100%;
  }

  .inline-actions .btn {
    width: 100%;
  }

  .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
