.mounted-proof-gallery {
  display: none;
}

.app-shell.preview-mode.mounted-proof-open .canvas-viewport {
  opacity: .08;
  pointer-events: none;
}

.app-shell.preview-mode .mounted-proof-gallery.open {
  position: fixed;
  z-index: 3910;
  top: 88px;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  width: auto;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(136, 229, 218, .25);
  border-radius: 24px;
  color: #eaf8f7;
  background:
    radial-gradient(circle at 12% 8%, rgba(32, 178, 166, .18), transparent 34%),
    linear-gradient(145deg, rgba(8, 31, 38, .98), rgba(8, 20, 31, .98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .5);
}

.mounted-proof-gallery header {
  display: grid;
  grid-template-columns: minmax(230px, .9fr) minmax(280px, 1.3fr) 38px;
  align-items: center;
  gap: 20px;
}

.mounted-proof-gallery header span {
  display: grid;
  gap: 4px;
}

.mounted-proof-gallery header small {
  color: #65ddd3;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .16em;
}

.mounted-proof-gallery header b {
  overflow: hidden;
  font-size: clamp(17px, 2vw, 26px);
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mounted-proof-gallery header p {
  margin: 0;
  color: #a9c0c4;
  font-size: 11px;
  line-height: 1.45;
}

.mounted-proof-gallery header button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  color: #d9e9eb;
  background: rgba(255, 255, 255, .06);
  font-size: 22px;
}

.mounted-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.mounted-proof-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 16px;
  color: #f3fbfb;
  background: #102630;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  transition: border-color .16s ease, transform .16s ease;
}

.mounted-proof-card:hover {
  transform: translateY(-2px);
}

.mounted-proof-card.selected {
  border-color: #43ddcf;
  box-shadow: 0 0 0 3px rgba(67, 221, 207, .15), 0 16px 34px rgba(0, 0, 0, .3);
}

.mounted-proof-card canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.mounted-proof-card > span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #f4fbfb;
  background: rgba(5, 28, 35, .78);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.mounted-proof-gallery footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.mounted-proof-gallery footer span {
  color: #9fb8bd;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
}

.mounted-proof-gallery footer i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #45ddcf;
  box-shadow: 0 0 10px rgba(69, 221, 207, .7);
}

#mountedProofDownload,
.proof-mounted {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(79, 225, 211, .32);
  border-radius: 10px;
  color: #dff9f6;
  background: rgba(54, 201, 188, .1);
  font-size: 9px;
  font-weight: 900;
}

#mountedProofDownload {
  min-width: 170px;
  color: #052126;
  background: #49dfd1;
}

.proof-mounted[aria-pressed="true"] {
  color: #052126;
  background: #67e6db;
}

@media (max-width: 820px) {
  .app-shell.preview-mode .mounted-proof-gallery.open {
    top: 80px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 14px;
    border-radius: 18px;
  }

  .mounted-proof-gallery header {
    grid-template-columns: 1fr 34px;
    gap: 10px;
  }

  .mounted-proof-gallery header p {
    display: none;
  }

  .mounted-proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-mounted {
    width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .proof-mounted::after {
    content: "VIEW";
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mounted-proof-card {
    transition: none;
  }
}
