/* Read-only account hint: below login panel (outside card), centered on page */
.report-auth-hint-wrap {
  width: 100%;
  max-width: min(100%, var(--researcher-auth-column-max, 42rem));
  margin: 10px auto 72px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.report-auth-readonly-hint {
  margin: 0;
  padding: 0 14px;
  text-align: center;
  width: auto;
  max-width: 100%;
}

/* 版本更新日记：Report 登录页底部（未登录时显示） */
.report-auth-diary {
  width: 100%;
  max-width: min(100%, var(--researcher-auth-column-max, 42rem));
  margin: 14px auto 24px;
  box-sizing: border-box;
}

/* 与登录区 .panel h2（Researcher Sign In）一致：不覆盖字号/字重/颜色 */
.report-auth-diary__title {
  margin: 0 0 12px;
}

.report-auth-diary__entry {
  margin: 0;
  padding: 0;
}

.report-auth-diary__entry + .report-auth-diary__entry {
  margin-top: 4px;
}

.report-auth-diary__entry > .report-auth-diary__rule {
  margin: 0;
  padding-top: 14px;
  border: none;
  border-top: 1px solid #404040;
  height: 0;
}

.report-auth-diary__entry:first-child > .report-auth-diary__rule {
  padding-top: 8px;
}

.report-auth-diary__body {
  padding: 0 0 6px;
}

/* 分割线下方：左侧分类与右侧日期同一行 */
.report-auth-diary__headrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 6px;
}

.report-auth-diary__headrow .report-auth-diary__role {
  flex: 1 1 auto;
  min-width: 0;
}

.report-auth-diary__date {
  margin: 0;
  padding: 0 2px;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  color: #737373;
  text-align: right;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 小标题分类（看反馈 / 所有人 / 提交反馈）：统一字号与颜色 */
.report-auth-diary__role {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: #a3a3a3;
}

.report-auth-diary__body > .report-auth-diary__role {
  margin: 10px 0 4px;
}

.report-auth-diary__entry ul {
  margin: 0 0 6px;
  padding-left: 1.2rem;
  line-height: 1.45;
  font-size: 0.92rem;
  color: var(--fg, #e5e5e5);
}

/* Feedback report: filters + social-style feed */

/* Read-only header pill: `.report-readonly-badge` lives in `admin-shell.css` (shared with admin.html). */

.page.researcher-page .console-root > .panel:has(.report-filters) {
  padding: 10px 12px;
}

.report-filters {
  margin: 0 0 8px;
  padding: 5px 10px 4px;
  border-radius: 10px;
  border: 1px solid #3d3d3d;
  background: var(--surface-2, #2a2a2a);
}

.report-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  margin-bottom: 4px;
}

/* Override `.page.researcher-page .panel h2 { margin-bottom: 12px }` — keeps title + toggle on one baseline */
.page.researcher-page .panel .report-filters__head h2,
.report-filters__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.report-valid-only-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  user-select: none;
  cursor: pointer;
  color: var(--muted, #b0b0b0);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.report-valid-only-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-valid-only-toggle__track {
  flex-shrink: 0;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #5a5a5a;
  background: #3a3a3a;
  position: relative;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.report-valid-only-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f5f5f5;
  transition: transform 0.16s ease;
}

.report-valid-only-toggle input:checked + .report-valid-only-toggle__track {
  background: #3b82f6;
  border-color: #3b82f6;
}

.report-valid-only-toggle input:checked + .report-valid-only-toggle__track::after {
  transform: translateX(14px);
}

.report-valid-only-toggle__label {
  white-space: nowrap;
  line-height: 1;
}

.report-filters__grid--primary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
}

.report-filters__row2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  margin-top: 6px;
}

.report-filters__row2-spacer {
  min-height: 0;
}

.report-filters__row2-reset {
  justify-self: end;
  align-self: end;
}

.report-filters__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 4px;
  color: var(--muted, #a3a3a3);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}

.report-filters__reset:hover {
  color: var(--fg, #f2f2f2);
  text-decoration: underline;
}

.report-filters__reset:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.report-filters__reset-icon {
  display: block;
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .report-filters__grid--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filters__row2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filters__row2-spacer {
    display: none;
  }

  .report-filters__row2-reset {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .report-filters__grid--primary {
    grid-template-columns: 1fr;
  }

  .report-filters__row2 {
    grid-template-columns: 1fr;
  }

  .report-filters__row2-reset {
    grid-column: 1;
    justify-self: start;
  }
}

.report-filters__field {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.report-filters__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted, #a3a3a3);
}

.report-filters__field input,
.report-filters__field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 30px;
  background: var(--surface, #2f2f2f);
  border: 1px solid #4a4a4a;
  color: var(--fg);
  border-radius: 7px;
  padding: 3px 8px;
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
}

.report-filters__field select {
  font-variant-numeric: tabular-nums;
}

.report-hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted, #9a9a9a);
  line-height: 1.3;
}

.report-hint--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.report-hint__sep {
  opacity: 0.45;
}

.report-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-card {
  border: 1px solid #3d3d3d;
  border-radius: 14px;
  background: var(--surface, #2f2f2f);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* One row: participant (left) · rating pill (center) · project/task (right) */
.report-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
}

/* Read-only viewers: no rating column (avoids empty middle gutter). */
.report-console--readonly .report-card__top {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.report-console--readonly .report-card__head-center {
  display: none;
}

/* Defense in depth: never show grade UI for read-only viewers */
.report-console--readonly .report-rating-pill {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.report-card__head-left {
  text-align: left;
}

.report-card__head-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.report-card__head-center:empty {
  min-width: 0;
}

.report-rating-pill {
  appearance: none;
  border: 1px solid #555;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8.75rem;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out,
    background 0.12s ease-out,
    border-color 0.12s ease-out,
    color 0.12s ease-out;
}

.report-rating-pill:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  filter: brightness(1.08);
}

.report-rating-pill:active {
  transform: scale(0.98);
}

.report-rating-pill--ungraded {
  background: #3a3a3a;
  border-color: #5a5a5a;
  color: #c8c8c8;
}

.report-rating-pill--excellent {
  background: #14532d;
  border-color: #22c55e;
  color: #dcfce7;
}

.report-rating-pill--pass {
  background: #713f12;
  border-color: #eab308;
  color: #fef9c3;
}

.report-rating-pill--fail {
  background: #7f1d1d;
  border-color: #ef4444;
  color: #fee2e2;
}

.report-card__head-block {
  min-width: 0;
}

.report-card__head-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}

.report-card__head-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted, #a3a3a3);
  line-height: 1.35;
}

.report-meta-gender {
  font-weight: 600;
}

.report-meta-gender--male {
  color: #60a5fa;
}

.report-meta-gender--female {
  color: #f472b6;
}

.report-card__head-right {
  text-align: right;
}

/* Extra space under Satisfied / Unsatisfied before thumbnails */
.report-card__section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.report-section-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.report-slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

/*
 * Thumbnail frame: align with 260425 `report.css` `.report-slide__img-wrap`
 * (dark fill + subtle border, no white “polaroid”), scaled down for this feed.
 */
.report-feed-thumb {
  flex: 1 1 88px;
  max-width: min(32%, 112px);
  min-width: 72px;
  box-sizing: border-box;
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .report-feed-thumb {
    max-width: calc(33.333% - 6px);
    flex: 1 1 30%;
    min-width: 0;
  }
}

.report-media-wrap {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1 / 1;
}

.report-media-wrap img,
.report-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom-left media badges: video duration and DNG type. */
.report-video-duration,
.report-media-format-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 4;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: 0.02em;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.report-media-format-badge {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-media-missing {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #fecaca;
  background: rgba(40, 12, 12, 0.88);
  pointer-events: none;
}

.report-media-wrap--missing img,
.report-media-wrap--missing video {
  opacity: 0.15;
}

.report-media-missing-panel {
  max-width: min(420px, 92%);
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(28, 28, 28, 0.95);
  border: 1px solid #5a3030;
  text-align: center;
}

.report-media-missing-panel__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fecaca;
}

.report-media-missing-panel__detail {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #e5e5e5;
}

.report-media-missing-panel__file {
  margin: 0;
  font-size: 12px;
  word-break: break-all;
}

.report-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.72) 100%);
}

.report-media-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.report-icon-btn {
  appearance: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.report-icon-btn:hover {
  background: #fff;
}

.report-icon-btn svg {
  width: 18px;
  height: 18px;
}

@keyframes report-download-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Download in progress — user gets immediate feedback while Storage fetch runs. */
.report-icon-btn.report-icon-btn--busy {
  position: relative;
  cursor: wait;
  pointer-events: none;
}

.report-icon-btn.report-icon-btn--busy > svg {
  opacity: 0.35;
}

.report-icon-btn.report-icon-btn--busy::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  border-top-color: rgba(0, 0, 0, 0.82);
  border-radius: 50%;
  animation: report-download-spin 0.65s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .report-icon-btn.report-icon-btn--busy::after {
    animation: none;
    border-color: rgba(0, 0, 0, 0.45);
    border-top-color: rgba(0, 0, 0, 0.45);
  }
}

.report-media-wrap:hover .report-media-overlay,
.report-media-wrap:focus-within .report-media-overlay {
  opacity: 1;
}

.report-text-list {
  margin: 10px 0 0;
  padding: 0 0 0 20px;
  color: var(--muted, #d6d6d6);
  font-size: 15px;
  line-height: 1.5;
  list-style: disc;
}

.report-text-list li {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.35em;
}

.report-text-list li:last-child {
  margin-bottom: 0;
}

.report-card__footer {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--muted, #9a9a9a);
}

.report-card__footer-trail {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}

.report-card__footer-time {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  line-height: 1.35;
}

.report-card__delete-zone {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  min-width: 3.5rem;
}

.report-card__delete-text {
  appearance: none;
  border: none;
  padding: 2px 4px;
  margin: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #ef4444;
  cursor: pointer;
  border-radius: 4px;
}

.report-card__delete-text:hover:not(:disabled) {
  text-decoration: underline;
}

.report-card__delete-text:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .report-card__delete-text {
    opacity: 0;
    transition: opacity 0.12s ease-out;
  }

  .report-card__delete-zone:hover .report-card__delete-text,
  .report-card__delete-zone:focus-within .report-card__delete-text {
    opacity: 1;
  }
}

/* Device: one line each + ellipsis; narrow box so long UA does not span the full card width */
.report-card__device {
  margin: 0;
  padding: 10px 12px 12px;
  border-radius: 10px;
  border: 1px solid #3d3d3d;
  background: var(--surface-2, #2a2a2a);
  max-width: 100%;
  box-sizing: border-box;
}

.report-device-heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted, #a3a3a3);
  text-align: center;
}

.report-device-body {
  min-width: 0;
  max-width: min(100%, 28rem);
  margin: 0 auto;
}

.report-device-line {
  margin: 0;
  padding: 6px 4px;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  color: var(--fg, #f2f2f2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.report-device-line--ua {
  border-bottom: 1px solid #3d3d3d;
  padding-bottom: 10px;
  margin-bottom: 6px;
}

.report-device-line--model {
  padding-top: 2px;
}

.report-card__device .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.report-empty {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed #4a4a4a;
  color: var(--muted);
  text-align: center;
}

/* Lightbox */
.report-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.report-lightbox[hidden] {
  display: none !important;
}

/* Clicks pass through to #reportLightbox except on interactive column (body). */
.report-lightbox__shell {
  pointer-events: none;
  height: 100%;
  max-height: 100dvh;
  max-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
    max(10px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  overflow: hidden;
}

.report-lightbox__body {
  pointer-events: auto;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 0;
  max-height: 100%;
}

/*
 * Square stage with black background; nav + close sit outside the stage via negative offsets on the relative column.
 * --report-lb-size: square edge = min(viewport width budget minus side gutters, viewport height budget for close + stage + exif).
 */
.report-lightbox__column {
  --report-lb-nav-size: 40px;
  --report-lb-nav-gap: 12px;
  --report-lb-toolbar-gap: 10px;
  --report-lb-exif-gap: 10px;
  --report-lb-side-gutter: calc((var(--report-lb-nav-size) + var(--report-lb-nav-gap)) * 2);
  --report-lb-vert-gutter: calc(var(--report-lb-nav-size) + var(--report-lb-toolbar-gap) + var(--report-lb-exif-gap) + 140px);
  --report-lb-size: min(min(calc(94vw - var(--report-lb-side-gutter)), 820px), calc(100dvh - var(--report-lb-vert-gutter)));
  position: relative;
  width: var(--report-lb-size);
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--report-lb-exif-gap);
  flex-shrink: 1;
  min-height: 0;
}

/* Black square container; overflow-hidden clips the gradient + img radius. */
.report-lightbox__stage {
  position: relative;
  flex: 0 0 auto;
  width: var(--report-lb-size);
  height: var(--report-lb-size);
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.report-lightbox__toolbar {
  position: absolute;
  top: calc(-1 * (var(--report-lb-nav-size) + var(--report-lb-toolbar-gap)));
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-lightbox__chrome-btn {
  margin: 0;
  width: var(--report-lb-nav-size);
  height: var(--report-lb-nav-size);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-lightbox__chrome-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.report-lightbox__chrome-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.report-lightbox__chrome-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.report-lightbox__chrome-icon {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.report-lightbox__chrome-btn.report-lightbox__chrome-btn--busy {
  position: relative;
  cursor: wait;
  pointer-events: none;
}

.report-lightbox__chrome-btn.report-lightbox__chrome-btn--busy > .report-lightbox__chrome-icon {
  opacity: 0.35;
}

.report-lightbox__chrome-btn.report-lightbox__chrome-btn--busy::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  animation: report-download-spin 0.65s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .report-lightbox__chrome-btn.report-lightbox__chrome-btn--busy::after {
    animation: none;
    border-color: rgba(255, 255, 255, 0.45);
    border-top-color: rgba(255, 255, 255, 0.45);
  }
}

.report-lightbox__nav {
  position: absolute;
  /* Stage starts at column top; center on stage center, not full column (which includes EXIF). */
  top: calc(var(--report-lb-size) / 2);
  transform: translateY(-50%);
  z-index: 3;
  margin: 0;
  width: var(--report-lb-nav-size);
  height: var(--report-lb-nav-size);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-lightbox__nav-icon {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.report-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.report-lightbox__nav:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.report-lightbox__nav--prev {
  left: calc(-1 * (var(--report-lb-nav-size) + var(--report-lb-nav-gap)));
}

.report-lightbox__nav--next {
  right: calc(-1 * (var(--report-lb-nav-size) + var(--report-lb-nav-gap)));
}

.report-lightbox__counter {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.report-lightbox__share-hint {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  max-width: min(92%, 28rem);
  padding: 0 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: #c4c4c4;
  pointer-events: none;
}

.report-lightbox__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.report-lightbox__media img,
.report-lightbox__media video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  outline: none;
}

.report-lightbox__media img::selection,
.report-lightbox__media video::selection {
  background: transparent;
}

.report-lightbox__media img:focus,
.report-lightbox__media video:focus {
  outline: none;
}

/* OPPO Live Photo — list thumb: icon only, no backing plate */
.report-live-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 5;
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

.report-live-badge img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Lightbox: center a fixed-size frame (still sets px box; video overlays same box) */
.report-live-photo {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  box-sizing: border-box;
}

.report-live-photo__frame {
  position: relative;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Before lock: still in flow so the frame centers in the stage (not top-left). */
.report-live-photo__frame:not(.report-live-photo__frame--locked) .report-live-photo__still {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/*
 * Live Photo — desktop: blur crossfade; touch (--instant): hard cut, video off-DOM when idle.
 */
.report-live-photo__frame--locked {
  --report-live-photo-blur: 12px;
  --report-live-photo-blend-duration: 0.58s;
}

.report-live-photo__frame--locked .report-live-photo__still,
.report-live-photo__frame--locked .report-live-photo__motion {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  outline: none;
}

.report-live-photo__motion {
  pointer-events: none;
}

/* —— Desktop idle: still covers parked video —— */
.report-live-photo--idle:not(.report-live-photo--instant) .report-live-photo__still {
  z-index: 2;
  opacity: 1;
  filter: blur(0);
}

.report-live-photo--idle:not(.report-live-photo--instant) .report-live-photo__motion {
  z-index: 1;
  opacity: 1;
  filter: blur(0);
}

/* —— Touch: disposable motion layer (removed from DOM when idle) —— */
.report-live-photo__motion-host {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  contain: strict;
  pointer-events: none;
}

.report-live-photo__motion-host .report-live-photo__motion {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.report-live-photo--instant.report-live-photo--idle .report-live-photo__still {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.report-live-photo--instant.report-live-photo--idle .report-live-photo__motion-host {
  display: none;
}

/* —— Desktop play start: fade still out with blur —— */
.report-live-photo--playing:not(.report-live-photo--instant) .report-live-photo__still {
  z-index: 2;
  opacity: 0;
  filter: blur(var(--report-live-photo-blur));
  transition:
    opacity var(--report-live-photo-blend-duration) ease-in-out,
    filter var(--report-live-photo-blend-duration) ease-in-out;
}

.report-live-photo--playing:not(.report-live-photo--instant) .report-live-photo__motion {
  z-index: 1;
  opacity: 1;
  filter: blur(0);
}

/* —— Touch play: still underneath, motion layer on top —— */
.report-live-photo--instant.report-live-photo--playing .report-live-photo__still {
  z-index: 0;
  opacity: 1;
  visibility: visible;
  filter: none;
  transition: none;
}

.report-live-photo--instant.report-live-photo--playing .report-live-photo__motion-host {
  z-index: 1;
}

/* —— Desktop play end: fade last frame out with blur —— */
.report-live-photo--blend-to-still:not(.report-live-photo--instant) .report-live-photo__still {
  z-index: 1;
  opacity: 1;
  filter: blur(0);
  transition: none;
}

.report-live-photo--blend-to-still:not(.report-live-photo--instant) .report-live-photo__motion {
  z-index: 2;
  opacity: 0;
  filter: blur(var(--report-live-photo-blur));
  transition:
    opacity var(--report-live-photo-blend-duration) ease-in-out,
    filter var(--report-live-photo-blend-duration) ease-in-out;
}

/* Badge on photo corner (inside __frame) — tappable replay target on touch */
.report-live-photo__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 4;
  display: block;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.9));
}

.report-live-photo__badge img {
  display: block;
  width: 24px;
  height: 24px;
  margin: 4px;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.report-live-photo__preparing {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  color: #e5e5e5;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5;
  pointer-events: none;
}

.report-live-photo__preparing[hidden] {
  display: none !important;
}

/* Bottom 20% hover hot-zone (pointer-events: auto); sibling overlay does the painting (pointer-events: none). */
.report-lightbox__hot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  z-index: 3;
  background: transparent;
  cursor: default;
}

.report-lightbox__hot[hidden] {
  display: none !important;
}

.report-lightbox__feedback-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: clamp(120px, 34%, 280px);
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  box-sizing: border-box;
  padding: 14px 16px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 2;
}

.report-lightbox__feedback-overlay[hidden] {
  display: none !important;
}

.report-lightbox__feedback-text {
  margin: 0;
  width: 100%;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
  display: block;
}

.report-lightbox__hot:hover ~ .report-lightbox__feedback-overlay {
  opacity: 1;
}

.report-lightbox__stage:hover .report-lightbox__feedback-overlay {
  opacity: 1;
}

/* Lightbox video: no native controls bar on the stage */
.report-lightbox__video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}

.report-lightbox__video::-webkit-media-controls {
  display: none !important;
}

.report-lightbox__video-status {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #f5f5f5;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  max-width: min(92%, 420px);
  pointer-events: none;
  z-index: 2;
}

/* Custom controls in the EXIF panel slot (play · seek · time · mute) */
.report-lightbox__exif--video-controls {
  text-align: left;
  max-height: none;
  padding: 10px 12px 12px;
}

.report-lb-video-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.report-lb-video-controls__btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #f2f2f2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-lb-video-controls__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.report-lb-video-controls__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.report-lb-video-controls__btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.report-lb-video-controls__btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.report-lb-video-controls__track-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.report-lb-video-controls__seek {
  width: 100%;
  margin: 0;
  height: 4px;
  accent-color: #e5e5e5;
  cursor: pointer;
}

.report-lb-video-controls__time {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #c4c4c4;
  white-space: nowrap;
}

/* Video feedback (legacy static line; prefer stage hover overlay) */
.report-lightbox__feedback-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg, #f2f2f2);
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

/* EXIF: same width as column; text centered */
.report-lightbox__exif {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  max-height: min(120px, 22vh);
  overflow: auto;
  box-sizing: border-box;
  padding: 6px 10px 8px;
  border-radius: 10px;
  border: 1px solid #4a4a4a;
  background: rgba(28, 28, 28, 0.96);
  color: var(--fg, #f2f2f2);
  text-align: center;
}

/* Two-line EXIF: line 1 = camera / 35mm / ISO; line 2 = taken */
.report-lightbox__exif-line {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg, #f2f2f2);
  word-break: break-word;
  text-align: center;
}

.report-lightbox__exif-line:last-child {
  margin-bottom: 0;
}

.report-lightbox__exif-line--primary {
  font-weight: 500;
}

.report-lightbox__exif-line--secondary {
  color: var(--muted, #a3a3a3);
  font-size: 12px;
}

.report-lightbox__exif-lbl {
  display: inline;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  margin-right: 0.35em;
}

.report-lightbox__exif-part .report-lightbox__exif-lbl {
  margin-right: 0.25em;
}

.report-lightbox__exif-sep {
  color: #6b7280;
  font-weight: 400;
}

.report-lightbox__exif-empty {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted, #a3a3a3);
  text-align: center;
}

@media (max-width: 720px) {
  .report-lightbox__column {
    --report-lb-nav-size: 36px;
    --report-lb-nav-gap: 8px;
    --report-lb-vert-gutter: calc(var(--report-lb-nav-size) + var(--report-lb-toolbar-gap) + var(--report-lb-exif-gap) + 130px);
    --report-lb-size: min(calc(96vw - var(--report-lb-side-gutter)), calc(100dvh - var(--report-lb-vert-gutter)));
    width: var(--report-lb-size);
  }
}
