#interactive .edit-scan:not(.adjust-edges) .edit-scan-bar {
  height: auto;
  min-height: 64px;
  padding: 16px 12px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  column-gap: 12px;
  background: #fff;
}

#interactive .edit-scan:not(.adjust-edges) .edit-scan-bar h1 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

#interactive .edit-scan:not(.adjust-edges) .edit-scan-bar button:first-child {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 4px;
  border-radius: 0 !important;
}

#interactive .edit-scan:not(.adjust-edges) .edit-scan-bar [data-act=next] {
  width: auto;
  min-width: 56px;
  height: 32px;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px !important;
  background: #1570ef !important;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  box-shadow: inset 0 -1px 2px rgba(16, 42, 86, .35);
}

#interactive .edit-scan:not(.adjust-edges) main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 80px;
  gap: 22px;
  padding: 48px 20px 16px;
}

#interactive .edit-scan:not(.adjust-edges) .scan-paper {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #dcefff;
  box-shadow: inset 0 0 18px rgba(36, 120, 242, .22);
}

#interactive .edit-scan:not(.adjust-edges) .scan-paper article {
  width: min(72%, 280px);
  aspect-ratio: 3 / 4;
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 42, 86, .16);
}

#interactive .edit-scan:not(.adjust-edges) .scan-paper h2 {
  margin: 0 0 14px;
  color: #9ca3af;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
}

#interactive .edit-scan:not(.adjust-edges) .scan-paper p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 21px;
}

#interactive .edit-scan:not(.adjust-edges) .scan-paper > [data-act=delete] {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 8px;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: inset 0 -1px 2px rgba(16, 42, 86, .18), 0 8px 18px rgba(16, 42, 86, .14);
}

#interactive .edit-scan:not(.adjust-edges) .scan-paper > [data-act=delete] img {
  width: 24px;
  height: 24px;
}

#interactive .edit-scan:not(.adjust-edges) .scan-thumbs {
  min-height: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: auto;
  padding-left: 0;
}

#interactive .edit-scan:not(.adjust-edges) .scan-thumb {
  position: relative;
  min-width: 56px;
  width: 56px;
  height: 64px;
  min-height: 64px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px !important;
  background: #fff;
}

#interactive .edit-scan:not(.adjust-edges) .scan-thumb.on {
  border: 1.5px solid #1570ef;
  background: #fff;
}

#interactive .edit-scan:not(.adjust-edges) .scan-thumb span {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, #fdfdfd, #edf7ff);
}

#interactive .edit-scan:not(.adjust-edges) .scan-thumb em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  min-height: 18px;
  padding: 2px;
  border-radius: 0 0 8px 8px;
  background: rgba(16, 42, 86, .70);
  color: #f5faff;
  font-style: normal;
  font-size: 12px;
  line-height: 14px;
}

#interactive .edit-scan:not(.adjust-edges) .scan-thumb.on em {
  background: #1570ef;
}

#interactive .edit-scan:not(.adjust-edges) .add-page {
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  margin-left: auto;
  border-radius: 16px !important;
  background: #dcefff !important;
  box-shadow: inset 0 -1px 2px rgba(16, 42, 86, .18);
}

#interactive .edit-scan:not(.adjust-edges) .add-page img {
  width: 24px;
  height: 24px;
}

#interactive .edit-scan:not(.adjust-edges) .edit-tools {
  min-height: 85px;
  padding: 16px 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  overflow: visible;
}

#interactive .edit-scan:not(.adjust-edges) .edit-tools button {
  min-height: 45px;
  padding: 0;
  border-radius: 0 !important;
  color: #1570ef;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 400;
}

#interactive .edit-scan:not(.adjust-edges) .edit-tools img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#interactive .edit-scan:not(.adjust-edges) .edit-tools svg,
#interactive .edit-scan:not(.adjust-edges) .scan-paper > [data-act=delete] svg {
  display: none;
}
