.collision-preview-trigger{border:0;background-color:transparent;cursor:pointer;min-width:44px;min-height:44px;padding:0}
.collision-modal{border:1px solid #d2dbc8;border-radius:24px;padding:18px;background:#fffdf8;color:#29351f;width:min(510px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;box-shadow:0 24px 60px #0002;text-align:center}
.collision-modal::backdrop{background:#30382c66;backdrop-filter:blur(5px)}
.collision-modal header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:12px}.collision-modal h2{font-size:21px;line-height:26px;margin:0}
.collision-stage{position:relative;width:100%;aspect-ratio:1}.collision-stage iframe{width:100%;height:100%;border:0;opacity:0;pointer-events:none}.collision-stage.is-ready iframe{opacity:1}.collision-loading{position:absolute;inset:0;display:grid;place-items:center;color:#68745c}.collision-stage.is-ready .collision-loading{display:none}.collision-modal p{font-size:13px;color:#68745c;margin:10px 0 0}
.collision-stage video{display:block;width:100%;height:100%;object-fit:contain;background:#fffdf8}.collision-loading[hidden]{display:none}

.strand-preview-trigger{border:0;background-color:transparent;cursor:pointer;min-width:44px;min-height:44px;padding:0}

.color-preview-trigger{border:0;background:transparent;cursor:pointer;min-width:44px;min-height:44px;padding:0}
.color-modal{width:min(600px,calc(100vw - 24px),calc((100dvh - 112px)*.756329 + 36px))}
/* Show the complete current recording, including all ten color categories. */
.color-modal .collision-stage{aspect-ratio:239/316;border-radius:16px;overflow:hidden;isolation:isolate}
.color-modal .collision-stage video{width:100%;height:100%;border-radius:inherit}

/* Keep the border continuous where the recorded preview is clipped at each corner. */
.color-modal .collision-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  border: 1px solid #ccd5c0;
  border-radius: inherit;
  pointer-events: none;
}

/* One close treatment for all four home previews, on touch and desktop. */
.gx-app :is(.collision-modal, .report-video-modal) > header > button {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 -10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #4c6331;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  /* Native dialog autofocus must not draw the site's rectangular focus ring. */
  outline: none !important;
}
.gx-app :is(.collision-modal, .report-video-modal) > header > button::before,
.gx-app :is(.collision-modal, .report-video-modal) > header > button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 1.6px;
  border-radius: 1px;
  background: currentColor;
  pointer-events: none;
}
.gx-app :is(.collision-modal, .report-video-modal) > header > button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.gx-app :is(.collision-modal, .report-video-modal) > header > button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
/* Keyboard focus remains visible through the cross itself, without an outer box. */
.gx-app :is(.collision-modal, .report-video-modal) > header > button:focus-visible {
  color: #29351f;
}
.gx-app :is(.collision-modal, .report-video-modal) > header > button:focus-visible::before,
.gx-app :is(.collision-modal, .report-video-modal) > header > button:focus-visible::after {
  height: 2.4px;
}

/* Equal side columns keep the demo label centered in every preview header. */
.gx-app :is(.collision-modal, .report-video-modal) > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  row-gap: 0;
}
.gx-app :is(.collision-modal, .report-video-modal) > header > h2 {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  text-align: left;
}
.gx-app :is(.collision-modal, .report-video-modal) > header > .home-demo-label {
  display: flex;
  align-items: center;
  justify-self: center;
  min-height: 44px;
  color: #4c6331;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  white-space: nowrap;
}
.gx-app :is(.collision-modal, .report-video-modal) > header > button {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.gx-app .report-video-modal > header > p {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: left;
}
@media (max-width: 360px) {
  .gx-app :is(.collision-modal, .report-video-modal) > header > h2 {
    font-size: 18px;
  }
  .gx-app :is(.collision-modal, .report-video-modal) > header > .home-demo-label {
    font-size: 16px;
  }
}
