.inspection-form .two-stage-material-row {
  grid-template-columns: minmax(200px, 2fr) minmax(145px, 1fr) minmax(120px, .8fr) 36px;
}
.two-stage-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 25, 52, .72);
}
.two-stage-modal[hidden] { display: none !important; }
.two-stage-modal-card {
  width: min(920px, 96vw);
  max-height: 86vh;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.two-stage-modal-card > header {
  position: sticky;
  top: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  background: #fff;
}
.two-stage-modal-card > header h4 { margin: 0; }
[data-two-stage-future-summary] { max-width: 720px; white-space: normal; overflow-wrap: anywhere; }
body:has(#homeView) .action-card,
body:has(#homeView) .compact-actions .action-card {
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 700px) {
  .inspection-form .two-stage-material-row { grid-template-columns: 1fr; }
  .two-stage-modal { padding: 8px; }
}
