.round3-lab {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.round3-lab > summary {
  font-weight: 700;
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
}
.round3-lab p {
  max-width: 85ch;
  line-height: 1.65;
}
.round3-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.round3-lab .portal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
  min-width: 0;
}
.round3-lab input,
.round3-lab select,
.round3-lab textarea {
  width: 100%;
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  font: inherit;
}
.round3-lab textarea {
  font-family: ui-monospace, Consolas, monospace;
  line-height: 1.5;
  resize: vertical;
  tab-size: 2;
}
.round3-lab :focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 3px;
}
.round3-lab [hidden] {
  display: none !important;
}
.round3-hint {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.round3-output {
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.round3-output textarea {
  max-height: 65vh;
  white-space: pre;
  overflow: auto;
}
.round3-output .portal-actions {
  margin-top: 12px;
}
@media (max-width: 650px) {
  .round3-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .round3-lab .portal-actions {
    align-items: stretch;
  }
  .round3-lab .portal-actions button {
    flex: 1 1 150px;
  }
}
@media print {
  .round3-lab {
    display: none !important;
  }
}
