body.report-page {
  --report-bg: #080d18;
  --report-bg-soft: #0d1423;
  --report-panel: rgba(18, 28, 47, 0.94);
  --report-panel-strong: #121d31;
  --report-line: rgba(148, 163, 184, 0.18);
  --report-line-strong: rgba(148, 163, 184, 0.3);
  --report-text: #e8eef8;
  --report-muted: #8d9bb2;
  --report-accent: #75a8ff;
  --report-accent-soft: rgba(117, 168, 255, 0.13);
  --report-good: #5fe0b0;
  background: var(--report-bg);
  color: var(--report-text);
}

body.report-page > main.report-main {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 12% -8%, rgba(68, 110, 183, 0.18), transparent 36rem),
    radial-gradient(circle at 88% 100%, rgba(36, 87, 137, 0.12), transparent 32rem),
    var(--report-bg);
}

body.report-page .report-app {
  display: grid;
  grid-template-columns: minmax(260px, 302px) minmax(0, 1fr);
  gap: 16px;
  width: min(1640px, 100%);
  height: calc(100vh - 48px);
  min-height: 610px;
  margin: 0 auto;
}

body.report-page .report-sidebar,
body.report-page .report-viewer {
  min-width: 0;
  border: 1px solid var(--report-line);
  border-radius: 18px;
  background: var(--report-panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

body.report-page .report-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.report-page .report-sidebar-header {
  padding: 17px 20px 15px;
  border-bottom: 1px solid var(--report-line);
}

body.report-page .report-eyebrow {
  color: #7184a1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.5;
}

body.report-page .report-sidebar-title-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
}

body.report-page .report-sidebar h1,
body.report-page .report-heading h2 {
  margin: 0;
  color: var(--report-text);
  letter-spacing: -0.03em;
}

body.report-page .report-sidebar h1 {
  font-size: 25px;
  font-weight: 700;
}

body.report-page .report-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

body.report-page .report-list::-webkit-scrollbar {
  width: 5px;
}

body.report-page .report-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

body.report-page .report-item {
  display: block;
  width: 100%;
  margin: 3px 0;
  padding: 14px 13px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--report-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.report-page .report-item:hover {
  border-color: rgba(117, 168, 255, 0.28);
  background: rgba(117, 168, 255, 0.07);
  transform: translateX(2px);
}

body.report-page .report-item.is-active {
  border-color: rgba(117, 168, 255, 0.36);
  background: linear-gradient(135deg, rgba(117, 168, 255, 0.17), rgba(117, 168, 255, 0.05));
  box-shadow: inset 3px 0 0 var(--report-accent);
}

body.report-page .report-item-title,
body.report-page .report-item-date {
  display: block;
}

body.report-page .report-item-title {
  overflow-wrap: anywhere;
  color: #dce7f7;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

body.report-page .report-item-date {
  margin-top: 6px;
  color: #7788a3;
  font-size: 11px;
  line-height: 1.4;
}

body.report-page .report-sidebar-empty {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--report-line);
  color: var(--report-muted);
  font-size: 12px;
  line-height: 1.7;
}

body.report-page .report-sidebar-empty p {
  margin: 0;
}

body.report-page .report-sidebar-empty code {
  color: #b6c9e8;
  font-size: 11px;
}

body.report-page .report-empty-dot {
  display: block;
  width: 7px;
  height: 7px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--report-accent);
  box-shadow: 0 0 0 5px var(--report-accent-soft);
}

body.report-page .report-viewer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.report-page .report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 10px 18px 10px 22px;
  border-bottom: 1px solid var(--report-line);
}

body.report-page .report-heading {
  min-width: 0;
}

body.report-page .report-heading h2 {
  overflow: hidden;
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.report-page .report-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

body.report-page .report-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 35px;
  padding: 7px 12px;
  border: 1px solid var(--report-line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #c6d4e8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.report-page .report-action svg {
  width: 15px;
  height: 15px;
}

body.report-page .report-action:hover:not(.is-disabled),
body.report-page .report-action:focus-visible:not(.is-disabled) {
  border-color: rgba(117, 168, 255, 0.7);
  background: var(--report-accent-soft);
  color: #eaf2ff;
  outline: none;
}

body.report-page .report-action.is-disabled,
body.report-page .report-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

body.report-page .report-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(148, 163, 184, 0.055), transparent 40%),
    #0a111e;
}

body.report-page .report-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

body.report-page .report-loading,
body.report-page .report-empty {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
}

body.report-page .report-loading {
  z-index: 2;
  gap: 12px;
  background: rgba(10, 17, 30, 0.93);
  color: var(--report-muted);
  font-size: 13px;
}

body.report-page .report-spinner {
  width: 23px;
  height: 23px;
  border: 2px solid rgba(117, 168, 255, 0.22);
  border-top-color: var(--report-accent);
  border-radius: 50%;
  animation: report-spin 0.8s linear infinite;
}

body.report-page .report-empty {
  gap: 5px;
  padding: 24px;
  background: rgba(13, 20, 35, 0.96);
  text-align: center;
}

body.report-page .report-empty-icon {
  margin-bottom: 6px;
  color: var(--report-accent);
  font-family: Georgia, serif;
  font-size: 46px;
  line-height: 1;
}

body.report-page .report-empty h2 {
  margin: 0;
  color: var(--report-text);
  font-size: 18px;
}

body.report-page .report-empty p {
  max-width: 380px;
  margin: 3px 0 0;
  color: var(--report-muted);
  font-size: 13px;
}

body.report-page .report-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  max-width: min(360px, calc(100vw - 48px));
  padding: 11px 15px;
  border: 1px solid rgba(95, 224, 176, 0.35);
  border-radius: 10px;
  background: #132c2a;
  color: #baf5dc;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.report-page .report-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.report-page .report-toast.is-error {
  border-color: rgba(248, 113, 113, 0.36);
  background: #321b25;
  color: #fecaca;
}

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

@media (max-width: 900px) {
  body.report-page > main.report-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  body.report-page .report-app {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 12px;
  }

  body.report-page .report-toolbar {
    gap: 12px;
  }
}

@media (max-width: 680px) {
  body.report-page > main.report-main {
    padding: 10px;
  }

  body.report-page .report-app {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 20px);
  }

  body.report-page .report-sidebar {
    flex: none;
    max-height: 250px;
  }

  body.report-page .report-sidebar-header {
    padding: 13px 17px 11px;
  }

  body.report-page .report-sidebar h1 {
    font-size: 21px;
  }

  body.report-page .report-list {
    max-height: 154px;
  }

  body.report-page .report-item {
    padding: 10px 11px 9px;
  }

  body.report-page .report-viewer {
    min-height: calc(100vh - 345px);
  }

  body.report-page .report-toolbar {
    min-height: 54px;
    padding: 9px 12px;
  }

  body.report-page .report-heading h2 {
    white-space: normal;
  }

  body.report-page .report-frame-wrap {
    min-height: 65vh;
    padding: 9px;
  }

  body.report-page .report-loading,
  body.report-page .report-empty {
    inset: 9px;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.report-page .report-item,
  body.report-page .report-action,
  body.report-page .report-toast {
    transition: none;
  }

  body.report-page .report-spinner {
    animation: none;
  }
}
