.feature-showcases {
  margin: 22px 0 30px;
  color: #eef1f5;
  min-width: 0;
}
.showcase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.showcase-heading small,
.showcase-editor header small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #b7f45d;
  font-weight: 750;
}
.showcase-heading h2 {
  font-size: clamp(21px, 2.4vw, 30px);
  letter-spacing: -0.8px;
  margin: 9px 0 8px;
  line-height: 1.15;
}
.showcase-heading p {
  font-size: 13px;
  line-height: 1.6;
  color: #98a2b1;
  margin: 0;
}
.showcase-heading-tag {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #b4bdca;
  align-items: center;
  border: 1px solid #ffffff14;
  border-radius: 99px;
  padding: 10px 14px;
}
.showcase-heading-tag b {
  color: #b7f45d;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.showcase-card {
  background: linear-gradient(150deg, #191e29, #10151e);
  border: 1px solid #ffffff12;
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
}
.showcase-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
}
.showcase-card-top span {
  font-size: 13px;
  font-weight: 700;
}
.showcase-card-top small {
  font-size: 9px;
  color: #8c98aa;
  letter-spacing: 1.3px;
}
.showcase-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0 10px;
}
.showcase-pair figure {
  margin: 0;
  min-width: 0;
  background: #080c13;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
}
.showcase-pair video,
.showcase-pair img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.showcase-pair > i {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #b7f45d;
  border: 4px solid #121720;
  border-radius: 50%;
  color: #111b0a;
  font-size: 16px;
  font-style: normal;
  pointer-events: none;
}
.showcase-side-label {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  background: #080c13bd;
  border: 1px solid #ffffff20;
  border-radius: 6px;
  padding: 5px 8px;
  pointer-events: none;
}
.showcase-after {
  color: #b7f45d;
}
.showcase-card-copy {
  padding: 17px 18px 18px;
}
.showcase-card-copy h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.showcase-card-copy p {
  font-size: 12px;
  line-height: 1.65;
  color: #a1aaba;
  margin: 0 0 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.showcase-card-copy button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  padding: 12px 13px;
  color: #f3f5f7;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.showcase-card-copy button:hover {
  border-color: #b7f45d77;
  color: #c4ff73;
}
.showcase-card-copy button span {
  color: #b7f45d;
}
.showcase-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(ellipse at 30% 20%, #7582c21a, transparent 65%),
    linear-gradient(145deg, #1f2531, #10151e);
}
.showcase-placeholder > span {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 1px solid #ffffff12;
  border-radius: 17px;
  font-size: 29px;
  color: #8d98b1;
  transform: rotate(-6deg);
}
figure:last-child .showcase-placeholder {
  background:
    radial-gradient(ellipse at 70% 35%, #b7f45d20, transparent 65%), #131b20;
}
figure:last-child .showcase-placeholder > span {
  color: #b7f45d;
  transform: rotate(6deg);
  border-color: #b7f45d33;
}
.showcase-placeholder small {
  font-size: 11px;
  color: #8e99a9;
}
.showcase-pending {
  display: block;
  margin: -2px 0 15px;
  color: #8e99a9;
  font-size: 10px;
}
.feature-showcases-compact {
  margin: 20px 0 28px;
}
.feature-showcases-compact .showcase-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.feature-showcases-compact .showcase-card {
  flex: 0 0 min(100%, 420px);
  scroll-snap-align: start;
}
.feature-showcases-compact .showcase-pair figure {
  aspect-ratio: 1/1;
}
.feature-showcases-compact .showcase-heading h2 {
  font-size: 22px;
}
.showcase-editor {
  box-sizing: border-box;
  width: min(880px, calc(100vw - 28px));
  max-height: 90dvh;
  overflow: auto;
  background: #111720;
  border: 1px solid #3b4454;
  color: #f0f3f8;
  border-radius: 22px;
  padding: 24px;
}
.showcase-editor::backdrop {
  background: #05080dd9;
  backdrop-filter: blur(8px);
}
.showcase-editor header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.showcase-editor h2 {
  margin: 8px 0;
  font-size: 24px;
}
.showcase-editor > p,
.showcase-editor-empty p {
  font-size: 13px;
  color: #a2adbc;
  line-height: 1.6;
}
.showcase-editor button {
  cursor: pointer;
  background: #242d3b;
  border: 1px solid #ffffff1c;
  color: #e9eef8;
  font: inherit;
  font-size: 12px;
  border-radius: 10px;
  padding: 10px 13px;
}
.showcase-editor header button {
  font-size: 24px;
  padding: 2px 12px;
}
.showcase-editor fieldset {
  border: 1px solid #ffffff16;
  border-radius: 15px;
  margin: 22px 0;
  padding: 18px;
  min-width: 0;
}
.showcase-editor legend {
  color: #b7f45d;
  font-size: 12px;
  padding: 0 8px;
}
.showcase-editor label {
  display: block;
  font-size: 12px;
  color: #b3becd;
  margin-bottom: 12px;
}
.showcase-editor input:not([type="file"]),
.showcase-editor select,
.showcase-editor textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: #e9eef7;
  background: #090f18;
  border: 1px solid #394254;
  border-radius: 9px;
  padding: 11px;
  font: inherit;
  margin-top: 7px;
}
.showcase-editor textarea {
  min-height: 65px;
  resize: vertical;
}
.showcase-field-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.showcase-field-heading > label {
  flex: 1;
}
.showcase-order {
  display: flex;
  gap: 5px;
}
.showcase-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.showcase-upload {
  min-width: 0;
  padding: 13px;
  background: #0c121c;
  border-radius: 12px;
}
.showcase-upload b {
  display: block;
  font-size: 11px;
  margin-bottom: 10px;
}
.showcase-upload img,
.showcase-upload video,
.showcase-upload .showcase-placeholder {
  width: 100%;
  height: 185px;
  object-fit: contain;
  border-radius: 8px;
  background: #080c13;
}
.showcase-upload input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 11px;
  margin-top: 8px;
}
.showcase-file-label {
  margin-top: 12px;
}
.showcase-upload > small {
  color: #8390a2;
  font-size: 10px;
}
.showcase-editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  bottom: -24px;
  padding: 18px 0;
  background: #111720;
  z-index: 3;
}
.showcase-editor [data-showcase-save] {
  background: #b7f45d;
  color: #111b0b;
  font-weight: 800;
}
.showcase-editor [data-showcase-status] {
  color: #c2d3ab;
  font-size: 13px;
  line-height: 1.6;
}
.showcase-editor button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.showcase-editor-empty {
  text-align: center;
  padding: 35px 14px;
  border: 1px dashed #4d586c;
  border-radius: 15px;
  margin: 25px 0;
}
.showcase-editor-empty > span {
  font-size: 32px;
  color: #b7f45d;
}
.similar-face-item {
  position: relative;
  width: 88px;
}
.similar-face-item img {
  display: block;
  width: 88px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}
.similar-face-item > span {
  display: block;
  color: #b7f45d;
  font-size: 10px;
  margin: 5px 0;
}
.similar-face-item > button {
  position: absolute;
  right: 4px;
  top: 4px;
  border: 1px solid #ffffff44;
  background: #0b101be6;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 18px;
  line-height: 18px;
}
.spark-top-actions > [hidden] {
  display: none !important;
}
.feature-showcases button:focus-visible,
.showcase-editor :focus-visible {
  outline: 2px solid #b7f45d;
  outline-offset: 3px;
}
@media (min-width: 1200px) {
  .showcase-pair figure {
    aspect-ratio: 1/1;
  }
  .showcase-card-empty .showcase-pair figure {
    aspect-ratio: 1.25/1;
  }
}
@media (max-width: 600px) {
  .showcase-heading {
    gap: 8px;
  }
  .showcase-heading-tag {
    display: none;
  }
  .showcase-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
  }
  .showcase-card {
    flex: 0 0 92%;
    scroll-snap-align: start;
  }
  .showcase-pair figure {
    aspect-ratio: 4/5;
  }
  .showcase-heading h2 {
    font-size: 23px;
  }
  .showcase-card-top {
    padding: 14px;
  }
  .showcase-editor {
    padding: 17px;
    border-radius: 16px;
  }
  .showcase-editor h2 {
    font-size: 20px;
  }
  .showcase-editor fieldset {
    padding: 12px;
  }
  .showcase-field-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .showcase-field-heading > label {
    width: 100%;
  }
  .showcase-order {
    margin-bottom: 12px;
  }
  .showcase-upload-grid {
    gap: 8px;
  }
  .showcase-upload {
    padding: 8px;
  }
  .showcase-upload img,
  .showcase-upload video,
  .showcase-upload .showcase-placeholder {
    height: 140px;
  }
  .showcase-editor-actions {
    bottom: -17px;
  }
  .spark-top-actions {
    flex-wrap: wrap;
  }
  .spark-top-actions #sparkShowcaseAdmin {
    font-size: 11px;
    padding: 7px 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-grid {
    scroll-behavior: auto;
  }
}

/* One generated diptych is shared by the two panels; no second download. */
.showcase-pair img.showcase-split-image {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.showcase-pair img.showcase-split-after {
  transform: translateX(-50%);
}
