body[data-view='report'] {
  --report-space-xs: 8px;
  --report-space-sm: 16px;
  --report-space-md: 24px;
  --report-space-lg: 32px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  min-width: 320px;
  overflow: hidden;
  color: var(--ui-text);
  background: var(--color-background);
}

body[data-view='report'] #app > header,
body[data-view='report'] #app > footer {
  display: none;
}

body[data-view='report'] #app,
body[data-view='report'] .page {
  width: 100%;
  max-width: none;
  height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.report-deck {
  height: 100svh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.report-deck::-webkit-scrollbar {
  display: none;
}

.report-screen,
.report-finish {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  height: 100svh;
  min-height: 0;
  margin: 0 auto;
  padding: max(56px, env(safe-area-inset-top)) 36px max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background:
    radial-gradient(ellipse at 108% -4%, rgb(126 86 72 / 0.35), transparent 38%),
    radial-gradient(ellipse at -18% 96%, rgb(106 70 58 / 0.22), transparent 38%),
    var(--color-background);
}

.report-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.report-atmosphere::before,
.report-finish::before {
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  right: -292px;
  bottom: -126px;
  content: '';
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 9% 12%, rgb(151 92 76 / 0.16), transparent 36%),
    url('/surface-grain.svg'), #100c0c;
  box-shadow:
    -3px -4px 8px rgb(201 116 96 / 0.22),
    -16px -12px 48px rgb(106 70 58 / 0.12),
    inset 12px 8px 34px rgb(126 76 64 / 0.1);
  opacity: 0.62;
  pointer-events: none;
}

.report-nav {
  flex-shrink: 0;
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
}

.report-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: var(--ui-body);
  background: transparent;
  font-size: 13px;
}

.report-back span {
  color: var(--ui-accent);
  font-size: 27px;
  font-weight: 250;
  line-height: 0;
}

.report-nav b {
  color: var(--ui-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.report-progress {
  flex-shrink: 0;
  display: flex;
  height: 3px;
  gap: 6px;
  margin-top: var(--report-space-sm);
}

.report-progress span {
  flex: 1;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.13);
}

.report-progress .done {
  background: var(--ui-accent);
}

.report-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  margin-top: var(--report-space-lg);
  padding-bottom: var(--report-space-md);
}

.report-summary-screen .report-nav {
  padding-right: 0;
}

.report-summary-screen .report-progress {
  position: absolute;
  top: 76px;
  right: 88px;
  width: 56px;
  margin: 0;
  gap: 0;
}

.report-summary-screen .report-content {
  display: flex;
  align-items: center;
  margin-top: 0;
}

.report-verdict {
  width: 100%;
  margin: auto 0;
  padding: var(--report-space-lg) 0;
}

.report-product,
.report-kicker {
  color: var(--ui-accent);
  font-size: 12px;
}

.report-product {
  margin: 0 0 22px;
}

.report-summary-screen h1 {
  margin: 0 0 var(--report-space-sm);
  color: var(--ui-text);
  font-family: 'PingFang SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: clamp(36px, 11.5vw, 48px);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.report-stop {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.04em;
  fill: none;
  stroke: var(--ui-accent);
  stroke-width: 5;
}

.report-summary-screen em {
  color: var(--ui-accent);
  font-style: normal;
}

.report-summary-screen .report-accent-line {
  width: 32px;
  height: 2px;
  margin: var(--report-space-lg) 0 var(--report-space-sm);
}

.report-reason {
  margin: 0;
  color: var(--ui-text);
  font-size: clamp(28px, 8.7vw, 36px);
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.report-summary {
  margin: 0;
  color: var(--ui-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
}

.report-summary-note {
  margin: var(--report-space-lg) 0 0;
  color: var(--ui-body);
  font-size: 15px;
  line-height: 1.75;
}

.report-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: var(--report-space-sm);
}

.report-kicker svg {
  width: 20px;
  height: 20px;
}

.report-module-screen h2 {
  max-width: 335px;
  margin: 0;
  color: var(--ui-text);
  font-size: clamp(28px, 8vw, 33px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.report-module-screen h2 span {
  color: var(--ui-accent);
}

.report-accent-line {
  width: 26px;
  height: 1px;
  margin: var(--report-space-sm) 0 var(--report-space-md);
  background: var(--ui-accent);
}

.report-main-metric {
  margin-top: var(--report-space-md);
  color: var(--ui-accent);
  font-size: clamp(54px, 18vw, 76px);
  font-weight: 660;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.report-fact {
  margin: var(--report-space-sm) 0 0;
  color: var(--ui-body);
  font-size: 15px;
  line-height: 1.75;
}

.report-lead {
  margin: 0;
  color: var(--ui-body);
  font-size: 14px;
  line-height: 1.75;
}

.report-lead strong {
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 560;
}

.report-divider {
  height: 1px;
  margin: var(--report-space-md) 0;
  background: rgb(255 255 255 / 0.12);
}

.lifestyle-title {
  display: grid;
  gap: 3px;
  color: var(--ui-accent);
}

.lifestyle-title strong {
  font-size: 13px;
  font-weight: 560;
}

.lifestyle-title small {
  color: var(--ui-muted);
  font-size: 10px;
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--report-space-md);
}

.lifestyle-grid > div {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 8px;
  border-left: 1px solid rgb(255 255 255 / 0.1);
  text-align: center;
}

.lifestyle-grid > div:first-child {
  border-left: 0;
}

.lifestyle-grid svg {
  width: 28px;
  height: 28px;
  color: var(--ui-accent);
}

.lifestyle-grid strong {
  color: var(--ui-accent);
  font-size: 14px;
  font-weight: 600;
}

.lifestyle-grid small {
  color: var(--ui-muted);
  font-size: 9px;
  white-space: nowrap;
}

.income-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.income-progress progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  appearance: none;
}

.income-progress progress::-webkit-progress-bar {
  background: rgb(255 255 255 / 0.18);
}

.income-progress progress::-webkit-progress-value {
  border-radius: 3px;
  background: var(--ui-accent);
}

.income-progress progress::-moz-progress-bar {
  border-radius: 3px;
  background: var(--ui-accent);
}

.income-progress b {
  color: var(--ui-accent);
  font-size: 13px;
}

.report-main-metric.usage {
  margin-top: var(--report-space-lg);
}

.report-main-metric.usage small {
  display: block;
  margin-top: 8px;
  padding-left: 82px;
  color: var(--ui-accent);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--report-space-lg);
}

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

.report-metric {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid rgb(255 255 255 / 0.12);
}

.report-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.metric-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--ui-accent);
}

.metric-icon svg {
  width: 100%;
  height: 100%;
}

.report-metric small {
  display: block;
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.5;
}

.report-metric strong {
  display: block;
  margin: 0 0 8px;
  color: var(--ui-accent);
  font-size: 24px;
  font-weight: 620;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.report-closing {
  margin: var(--report-space-lg) 0 0;
  color: var(--ui-body);
  font-size: 14px;
  line-height: 1.8;
}

.report-closing.mid {
  margin-top: var(--report-space-lg);
}

.report-conclusion {
  margin: 0 0 22px;
  color: var(--color-accent, #df6466);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.report-subheading {
  margin: 24px 0 12px;
  color: #f4f2f0;
  font-size: 18px;
  line-height: 1.35;
}

.report-items {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: report-item;
}

.report-items li {
  counter-increment: report-item;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  color: #d1cdca;
  font-size: 15px;
  line-height: 1.45;
}

.report-items li::before {
  content: counter(report-item, decimal-leading-zero);
  color: var(--color-accent, #df6466);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.report-next {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  margin: 0 auto;
  display: grid;
  min-width: 148px;
  min-height: 56px;
  gap: 8px;
  justify-items: center;
  padding: 8px 16px;
  color: var(--ui-body);
  background: transparent;
  font-size: 12px;
}

.report-next span {
  position: relative;
  width: 22px;
  height: 20px;
  color: var(--ui-accent);
}

.report-next span::before,
.report-next span::after {
  position: absolute;
  top: 5px;
  width: 12px;
  height: 2px;
  content: '';
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.report-screen button:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 4px;
}

.report-next span::before {
  left: 1px;
  transform: rotate(-43deg);
}

.report-next span::after {
  right: 1px;
  transform: rotate(43deg);
}

@media (max-height: 720px) {
  .report-screen,
  .report-finish {
    padding-top: max(34px, env(safe-area-inset-top));
  }
  .report-content {
    margin-top: var(--report-space-md);
  }
  .report-kicker {
    margin-bottom: var(--report-space-sm);
  }
  .report-module-screen h2 {
    font-size: 27px;
  }
  .report-main-metric {
    margin-top: var(--report-space-md);
    font-size: 54px;
  }
  .report-summary-screen .report-progress {
    top: 54px;
  }
  .report-summary-screen .report-summary {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-deck {
    scroll-behavior: auto;
  }
}
