:root {
  --report-page-background: linear-gradient(
    135deg,
    #f9f5e8 0%,
    #f8f0e3 52%,
    #f7f3ea 100%
  );
  --report-surface-text: #1d1d1f;
  --report-muted-text: #6e6e73;
  --report-row-border: rgba(53, 35, 82, 0.12);
  --report-heading-icon-background: rgba(125, 75, 255, 0.1);
  --report-heading-icon-border: rgba(125, 75, 255, 0.18);
  --report-heading-icon-color: #806dac;
  --report-control-background: rgba(255, 255, 255, 0.72);
  --report-control-border: rgba(53, 35, 82, 0.18);
  --report-control-text: #1d1d1f;
  --report-control-focus: #9a48cb;
  --report-preview-spotlight-color: rgba(137, 92, 255, 0.22);
  --report-card-secondary-spotlight-color: rgba(52, 199, 89, 0.18);
  --report-outlook-color: #2563eb;
}

:root[data-theme="dark"] {
  --report-page-background:
    radial-gradient(
      circle at 20% 13%,
      rgba(178, 27, 7, 0.19),
      transparent 10rem
    ),
    radial-gradient(
      circle at 82% 88%,
      rgba(255, 154, 170, 0.18),
      transparent 28rem
    ),
    #0b1625;
  --report-surface-text: #f5f5f7;
  --report-muted-text: rgba(245, 245, 247, 0.62);
  --report-row-border: rgba(255, 255, 255, 0.1);
  --report-heading-icon-background: rgba(125, 75, 255, 0.12);
  --report-heading-icon-border: rgba(184, 104, 255, 0.22);
  --report-heading-icon-color: #b79cf6;
  --report-control-background: rgba(7, 12, 20, 0.36);
  --report-control-border: rgba(255, 255, 255, 0.14);
  --report-control-text: #f5f5f7;
  --report-control-focus: #fc9775;
  --report-preview-spotlight-color: rgba(156, 82, 255, 0.32);
  --report-card-secondary-spotlight-color: rgba(52, 199, 89, 0.24);
  --report-outlook-color: #8bb9ff;
}

html {
  min-height: 100%;
  background: var(--report-page-background);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: var(--report-page-background);
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  pointer-events: none;
}

.report-page {
  box-sizing: border-box;
  max-width: 760px;
  padding: calc(var(--page-chrome-top, var(--globalnav-height, 44px)) + 24px)
    max(16px, env(safe-area-inset-right)) 44px
    max(16px, env(safe-area-inset-left));
  margin-inline: auto;
  overflow: visible;
}

.report-welcome {
  padding: 8px 4px 18px;
  color: var(--report-surface-text);
}

.report-kicker {
  margin: 0 0 6px;
  color: var(--report-muted-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-welcome h1 {
  margin: 0;
  color: var(--report-surface-text);
  font-size: 2rem;
  font-weight: 780;
  line-height: 1.08;
}

.report-welcome p:last-child {
  margin-top: 8px;
  color: var(--report-muted-text);
  font-size: 1rem;
  line-height: 1.35;
}

.report-card + .report-card {
  margin-top: 20px;
}

.report-card::before {
  position: absolute;
  z-index: 0;
  top: var(--report-card-spotlight-top, auto);
  right: var(--report-card-spotlight-right, auto);
  bottom: var(--report-card-spotlight-bottom, auto);
  left: var(--report-card-spotlight-left, auto);
  width: 1px;
  height: 1px;
  border-radius: 999px;
  background: var(--report-card-spotlight-color);
  box-shadow: 0 0 var(--report-card-spotlight-blur, 170px)
    var(--report-card-spotlight-spread, 116px)
    var(--report-card-spotlight-color);
  content: "";
  pointer-events: none;
}

.report-card-controls {
  --report-card-spotlight-color: var(--report-card-secondary-spotlight-color);
  --report-card-spotlight-top: 48px;
  --report-card-spotlight-left: 74px;
  --report-card-spotlight-blur: 170px;
  --report-card-spotlight-spread: 116px;
}

.report-card-preview {
  --report-card-spotlight-color: var(--report-preview-spotlight-color);
  --report-card-spotlight-right: 46px;
  --report-card-spotlight-bottom: 42px;
  --report-card-spotlight-blur: 170px;
  --report-card-spotlight-spread: 120px;
}

.report-card-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.report-card-heading-split {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.report-card-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--report-surface-text);
  font-size: 1.35rem;
  font-weight: 750;
}

.report-heading-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--report-heading-icon-border);
  border-radius: 12px;
  background: var(--report-heading-icon-background);
  color: var(--report-heading-icon-color);
}

.report-heading-svg,
.report-action-svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.report-date-control {
  display: grid;
  gap: 8px;
}

.report-date-label {
  color: var(--report-muted-text);
  font-size: 0.875rem;
  font-weight: 650;
}

.report-date-input {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--report-control-border);
  border-radius: 9px;
  background: var(--report-control-background);
  color: var(--report-control-text);
  font: inherit;
  font-size: 1rem;
  padding: 0 14px;
}

.report-date-input:focus {
  outline: 2px solid var(--report-control-focus);
  outline-offset: 3px;
}

.report-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.report-action-button {
  display: inline-flex;
  min-height: 38px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #9a48cb;
  border-radius: 999px;
  background: transparent;
  color: #9a48cb;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
}

.report-mail-button-outlook {
  border-color: var(--report-outlook-color);
  color: var(--report-outlook-color);
}

.report-action-icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.report-copy-status:empty {
  display: none;
}

.report-action-button:disabled {
  border-color: var(--report-control-border);
  color: var(--report-muted-text);
  cursor: default;
  opacity: 0.62;
}

.report-action-button:focus-visible {
  outline: 2px solid var(--report-control-focus);
  outline-offset: 3px;
}

.report-info-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  margin: -10px 0 0;
  border-block: 1px solid var(--report-row-border);
}

.report-info-strip > span {
  display: grid;
  gap: 4px;
}

.report-info-strip > span:last-child {
  text-align: right;
}

.report-info-label {
  color: var(--report-muted-text);
  font-size: 0.8125rem;
  font-weight: 650;
}

.report-info-value {
  color: var(--report-surface-text);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.report-copy-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--report-muted-text);
  font-size: 0.875rem;
}

@media (max-width: 833px) {
  .report-page {
    padding-inline-start: max(8px, env(safe-area-inset-left));
    padding-inline-end: max(8px, env(safe-area-inset-right));
  }

  .report-card {
    padding: 24px 16px;
  }

  .report-card-heading {
    gap: 12px;
  }

  .report-card-heading-split {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .report-card-actions {
    gap: 6px;
  }

  .report-action-button {
    width: 38px;
    padding: 0;
  }

  .report-action-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

}
