.phase2-section { display: grid; gap: 20px; }
.phase2-list-section { display: grid; gap: 14px; }
.phase2-list { display: grid; gap: 10px; }
.phase2-app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  background: #fbfcff;
}
.phase2-app-card h4 { margin: 0 0 6px; font-size: 1rem; }
.phase2-filename { margin: 6px 0 0; color: #778196; font-size: 0.82rem; overflow-wrap: anywhere; }
.phase2-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.phase2-success { margin: 0; color: #17633b; font-weight: 700; }
.preview-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #d8deea;
  border-radius: 16px;
  background: #f8faff;
}
.preview-panel iframe {
  width: 100%;
  min-height: 480px;
  border: 1px solid #cfd7e5;
  border-radius: 12px;
  background: #fff;
}
#phase2-teacher .section-heading select { width: min(300px, 100%); }

@media (max-width: 720px) {
  .phase2-app-card { grid-template-columns: 1fr; }
  .phase2-actions { justify-content: flex-start; }
  #phase2-teacher .section-heading select { width: 100%; }
  .preview-panel iframe { min-height: 360px; }
}
