/* Owner Retest Fix 02: keep native image dragging out of the custom cover drag. */
.cover-media,
.cover-media img {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
}

/* Full Image keeps the complete source visible and fills unused cover space with that same image. */
.cover-media { isolation: isolate; }
.cover-media .cover-backdrop,
.cover-media .cover-foreground { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-media .cover-backdrop { display: none; object-fit: cover; transform: scale(1.12); filter: blur(18px); opacity: 0; }
.cover-media .cover-foreground { z-index: 1; }
.cover-media-full { background: #171426; }
.cover-media-full .cover-backdrop { display: block; opacity: .62; }
.cover-media-full .cover-foreground { object-fit: contain !important; }
.cover-media:after { z-index: 2; }

/* Give the customer-facing export action a dedicated, always-visible workspace row. */
.export-report {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(110deg, #251444, #5c278d);
  color: #fff;
  font: inherit;
  font-weight: 750;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(62, 27, 101, .18);
}

.export-report:hover,
.export-report:focus-visible {
  background: linear-gradient(110deg, #351b62, #7433ad);
}

/* Restore the pre-Fix-02 Gate 01 customer-control presentation without touching report pages. */
.controls .cover-actions button,
.controls .segmented button {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: .72rem;
  cursor: pointer;
}

.controls .cover-actions button.active {
  border-color: var(--violet);
  background: #faf6ff;
  box-shadow: inset 2px 0 var(--violet);
}

.controls .segmented {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.controls .segmented button {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.controls .segmented button:last-child { border-right: 0; }

.controls .segmented button.active {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.controls input:not([type=file]),
.controls select,
.controls textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.controls textarea {
  min-height: 104px;
  line-height: 1.45;
  overflow: auto;
  resize: vertical;
}

@media print {
  .export-report { display: none !important; }
}
