.client-evidence-intro {
  max-width: 720px;
  margin: 0 auto 16px;
}

.client-evidence-feed {
  display: grid;
  gap: 22px;
  width: min(100%, 680px);
  margin: 0 auto;
}

.client-evidence-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--ink) 18%);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(5, 21, 25, .11);
}

.client-evidence-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
}

.client-evidence-card-head > div:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.client-evidence-card-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-evidence-card-head time {
  font-size: .8rem;
  opacity: .72;
}

.client-evidence-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent, var(--brand));
  border-radius: 999px;
  color: var(--brand-ink, #fff);
  background: var(--brand);
  font-size: .77rem;
  font-weight: 900;
}

.client-evidence-carousel {
  position: relative;
  overflow: hidden;
  background: #071014;
  -webkit-touch-callout: none;
  user-select: none;
}

.client-evidence-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.client-evidence-track::-webkit-scrollbar { display: none; }

.client-evidence-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: zoom-in;
}

.client-evidence-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.client-evidence-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  font-size: 30px;
  line-height: 1;
}

.client-evidence-arrow.is-previous { left: 10px; }
.client-evidence-arrow.is-next { right: 10px; }
.client-evidence-arrow:disabled { visibility: hidden; }

.client-evidence-counter {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .7);
  font-size: .8rem;
  font-weight: 800;
}

.client-evidence-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 9px 12px 5px;
}

.client-evidence-dots button {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 26%, transparent);
}

.client-evidence-dots button.active {
  width: 22px;
  border-radius: 999px;
  background: var(--brand);
}

.client-evidence-description {
  margin: 0;
  padding: 9px 15px 16px;
  white-space: pre-wrap;
  line-height: 1.48;
}

.client-evidence-empty {
  text-align: center;
}

#clientEvidenceStatus {
  min-height: 20px;
  margin: 10px auto;
  text-align: center;
  font-weight: 750;
}

#clientEvidenceStatus[data-tone="success"] { color: #187a46; }
#clientEvidenceStatus[data-tone="error"] { color: var(--danger, #b44435); }
#clientEvidenceStatus[data-tone="info"] { color: var(--brand); }

.client-evidence-viewer {
  width: min(96vw, 920px);
  max-width: 920px;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 16px;
  color: #fff;
  background: #05090b;
  -webkit-touch-callout: none;
  user-select: none;
}

.client-evidence-viewer::backdrop { background: rgba(0, 8, 12, .88); }

.client-evidence-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: #fff;
  background: #0c1519;
}

.client-evidence-viewer-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.client-evidence-viewer-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-evidence-viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(74dvh, 760px);
  background: #000;
}

.client-evidence-viewer-stage img {
  display: block;
  max-width: 100%;
  max-height: 80dvh;
  object-fit: contain;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.client-evidence-viewer-stage .client-evidence-arrow { position: absolute; }

@media (hover: none), (max-width: 720px) {
  .client-evidence-arrow { width: 38px; height: 38px; font-size: 27px; }
  .client-evidence-card { border-radius: 12px; }
  .client-evidence-slide img { max-height: 66dvh; }
  .client-evidence-viewer { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
  .client-evidence-viewer-stage { min-height: calc(100dvh - 66px); }
}
