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

.lab-square {
  aspect-ratio: auto;
  min-width: 0;
  min-height: 0 !important;
  height: 720px !important;
  padding: 30px;
  overflow: hidden;
}

.lab-square h3 {
  font-size: clamp(42px, 3.5vw, 54px);
  margin: 30px 0 18px;
  min-height: 0 !important;
}

.lab-square > p {
  min-height: 108px !important;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
}

.lab-square .build-preview {
  display: block;
  width: 100%;
  height: 285px !important;
  min-height: 285px !important;
  max-height: 285px !important;
  object-fit: fill !important;
  object-position: center !important;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  margin-top: auto;
}

.lab-square.dark .build-preview {
  border: 0;
  padding: 0;
  background: transparent;
  object-fit: contain !important;
  object-position: left center !important;
  clip-path: none;
}

.assistant-preview-frame {
  position: relative;
  width: 100%;
  height: 285px;
  margin-top: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #fff;
  box-shadow: none;
}

.assistant-preview-frame .build-preview {
  width: 100%;
  height: 241px !important;
  min-height: 241px !important;
  max-height: 241px !important;
  margin: 44px 0 0;
  padding: 0;
  background: #fff;
}

.assistant-preview-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 10px;
  border-bottom: 0;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.assistant-preview-caption span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-preview-caption i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62d391;
  box-shadow: 0 0 0 4px rgba(98,211,145,.12);
}

.assistant-preview-caption b {
  color: #fff;
  font-size: 9px;
  font-weight: 400;
}

.lab-square .tag-row {
  min-height: 44px;
  margin-top: 20px;
}

.lab-square .tag {
  padding: 8px 10px;
  font-size: 9px;
}

.square-foot {
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.assessment-placeholder {
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
}

.assessment-placeholder .card-top {
  color: #8ecfff;
}

.assessment-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 245px;
  margin-top: auto;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #fff, #fff 10px, #f1f0eb 10px, #f1f0eb 20px);
}

.assessment-preview {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  grid-template-rows: 1fr auto;
  width: 100%;
  height: 285px;
  margin-top: auto;
  border: 1px solid #444;
  background: #f4f3ee;
  color: var(--ink);
  overflow: hidden;
}

.assessment-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background: var(--blue);
  color: #fff;
}

.assessment-score small,
.assessment-next small {
  font-size: 8px;
  letter-spacing: 1.2px;
}

.assessment-score b {
  font: 56px/.9 Georgia, serif;
  margin-top: 13px;
}

.assessment-score span {
  font-size: 10px;
  opacity: .8;
}

.assessment-score em {
  margin-top: 16px;
  font-size: 9px;
  font-style: normal;
  line-height: 1.3;
}

.assessment-dimensions {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 20px;
}

.assessment-dimensions div {
  display: grid;
  grid-template-columns: 92px 1fr 24px;
  gap: 8px;
  align-items: center;
}

.assessment-dimensions span,
.assessment-dimensions strong {
  font-size: 9px;
}

.assessment-dimensions i {
  height: 5px;
  background: #d7d4ca;
}

.assessment-dimensions i b {
  display: block;
  height: 100%;
  background: var(--blue);
}

.assessment-next {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.assessment-next b {
  font-size: 10px;
}

.assessment-mark span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 30px Georgia, serif;
}

.assessment-placeholder .square-foot {
  color: #aaa;
}

.assessment-placeholder .tag,
.brief-poc-card .tag {
  border-color: currentColor;
}

.assessment-placeholder > p {
  color: #c7c7c3;
}

.brief-poc-card {
  background: var(--blue);
  color: #fff;
}

.brief-poc-card .card-top {
  color: #fff;
}

.brief-poc-card > p {
  color: #e7ebff;
}

.brief-poc-preview {
  display: grid;
  grid-template-columns: 1fr 32px 1.25fr;
  align-items: center;
  height: 285px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: var(--black);
}

.brief-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.brief-sources span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 10px 6px;
  border: 1px solid #444;
  color: #ddd;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}

.brief-sources img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brief-flow-arrow { text-align: center; color: #8ecfff; font-size: 20px; }
.brief-output { padding: 18px; border-left: 5px solid var(--blue); background: #242423; }

.brief-output small {
  color: #8ecfff;
  font-size: 8px;
  letter-spacing: 1.4px;
}

.brief-output b {
  display: block;
  margin: 10px 0 12px;
  font: 22px Georgia, serif;
}

.brief-output ul {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.brief-output li {
  color: #bbb;
  font-size: 8px;
  line-height: 1.2;
}

.brief-output li strong {
  display: block;
  color: #fff;
  font: 18px Georgia, serif;
}

.brief-output em {
  display: block;
  color: #aaa;
  font-size: 8px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

  .lab-square {
    aspect-ratio: auto;
    height: auto !important;
    min-height: 620px !important;
  }

  .lab-square h3 {
    font-size: 46px;
  }

  .lab-square .build-preview {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }

  .assessment-mark,
  .assessment-preview,
  .brief-poc-preview {
    height: 210px;
  }

  .assessment-preview {
    height: auto;
    min-height: 245px;
  }

  .brief-poc-preview {
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
  }

  .brief-flow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 800px) { .assistant-preview-frame { height: 210px; } .assistant-preview-frame .build-preview { height: 166px !important; min-height: 166px !important; max-height: 166px !important; margin-top: 44px; } }

/* Fill the area below the workflow header without letting it cover the diagram. */
.assistant-preview-frame .build-preview{object-fit:cover !important;object-position:center bottom !important}

/* Restore the white workflow capture, enlarge it slightly, and seat it lower below the header. */
.assistant-preview-frame .build-preview{transform:translateY(6px) scale(1.08);transform-origin:center bottom}

/* Compact workflow header and use the reclaimed space for a lower, fuller image. */
.assistant-preview-caption{height:32px;padding-left:10px;padding-right:12px}
.assistant-preview-frame .build-preview{height:253px !important;min-height:253px !important;max-height:253px !important;margin-top:32px;transform:translateY(8px) scale(1.08);transform-origin:center bottom}
@media(max-width:800px){.assistant-preview-caption{height:32px}.assistant-preview-frame .build-preview{height:178px !important;min-height:178px !important;max-height:178px !important;margin-top:32px;transform:translateY(6px) scale(1.08)}}

/* Final workflow fit: no zoom/crop, full area below the compact header. */
.lab-square.dark .assistant-preview-frame .build-preview{width:100% !important;height:253px !important;min-height:253px !important;max-height:253px !important;margin:32px 0 0 !important;object-fit:fill !important;object-position:center !important;transform:none !important}
@media(max-width:800px){.lab-square.dark .assistant-preview-frame .build-preview{height:178px !important;min-height:178px !important;max-height:178px !important;margin-top:32px !important;transform:none !important}}

/* AI Assessment development placeholder. */
.assessment-development{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:245px;height:285px;margin-top:auto;padding:20px;text-align:center;border:1px dashed #647987;background:linear-gradient(135deg,#16212a,#111719);color:#8ecfff}
.assessment-development svg{flex-shrink:0;height:90px;width:144px}
.assessment-development strong{font:28px Georgia,serif;color:#fff}
.assessment-development span{font-size:13px;line-height:1.5;color:#c7c7c3}
.assessment-development small{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:#8ecfff}
