.report-preview {
  margin-top: 24px;
}
.report-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
}
.report-documents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 12px;
}
.report-open {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  text-align: left;
  font-family: var(--font-ui);
}
.report-open:hover {
  border-color: var(--on-primary);
  background: var(--footer);
}
.report-thumbnail {
  flex: 0 0 42px;
  width: 42px;
  height: 60px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--surface);
}
.report-document-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.report-document-title {
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.report-document-meta {
  color: var(--on-primary);
  font-size: 16px;
  line-height: 1.4;
}
.report-document-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.report-document-action .cta-arrows {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
}
.report-fallback {
  min-width: 0;
}
.report-fallback summary {
  padding-block: 14px;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.report-fallback-pages {
  display: grid;
  gap: 28px;
  margin-top: 18px;
}
.report-fallback-pages figure {
  max-width: 800px;
  margin-inline: auto;
}
.report-fallback-pages img {
  width: 100%;
  border: 1px solid var(--line);
}
.report-fallback-pages figcaption {
  margin-top: 8px;
  font-size: 16px;
}
.report-viewer {
  width: min(980px, calc(100% - 32px));
  max-width: none;
  height: min(940px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--on-surface);
  box-shadow: 0 20px 70px var(--dialog-shadow);
}
.report-viewer::backdrop {
  background: var(--backdrop);
}
.report-viewer-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}
.report-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 12px;
}
.report-viewer-header h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
}
.report-viewer-header p {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.4;
}
.report-viewer button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--surface);
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.report-viewer button:hover:not(:disabled) {
  background: var(--surface-alt);
}
.report-viewer button:disabled {
  border-color: var(--line);
  background: var(--disabled-surface);
  color: var(--disabled-text);
}
.report-viewer button:focus-visible,
.report-viewport:focus-visible {
  outline-color: var(--primary);
  outline-offset: -4px;
}
.report-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-block: 1px solid var(--line);
  background: var(--surface-alt);
  scrollbar-gutter: stable;
}
.report-page-stage {
  min-height: 100%;
  padding: 20px;
}
.report-page-image {
  width: min(100%, 720px);
  max-width: none;
  height: auto;
  margin-inline: auto;
  background: var(--surface);
  box-shadow: 0 3px 14px var(--dialog-shadow);
}
.report-status,
.report-error {
  padding: 24px;
  font-size: 17px;
  line-height: 1.6;
}
.report-error button {
  display: block;
  margin-top: 16px;
}
.report-viewer-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
}
.report-viewer-nav > button:first-child {
  justify-self: start;
}
.report-viewer-nav > button:last-child {
  justify-self: end;
}
.report-viewer-nav p {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
@media (max-width: 480px) {
  .report-viewer {
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  .report-viewer-header {
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px 12px;
  }
  .report-viewer-header h2 {
    font-size: 22px;
  }
  .report-viewer-header > button {
    padding-inline: 10px;
  }
  .report-page-stage {
    padding: 12px;
  }
  .report-viewer-nav {
    gap: 8px;
    padding: 12px;
  }
  .report-viewer-nav > button {
    padding-inline: 10px;
  }
}
