/* Reports tab */
.report-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.report-for { display: flex; align-items: center; gap: 10px; min-width: 0; }
.report-for-label { font-size: 13px; color: var(--text-muted); }
.report-account { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.report-account:empty { display: none; }
.report-account-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 800; background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.report-account-avatar.fb { background: #1877f2; }
.report-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.report-account-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.report-account-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-account-text small { font-size: 11.5px; color: var(--text-muted); }
.report-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.report-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #090c14; border: 1px solid var(--border-subtle); }
.report-seg-btn { padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.report-seg-btn:hover { color: var(--text-main); }
.report-seg-btn.active { background: rgba(99, 102, 241, 0.22); color: #c7d2fe; }

.report-body { display: grid; gap: 18px; transition: opacity 0.2s; }
.report-body.loading { opacity: 0.6; }
.report-hero { text-align: center; padding: 8px 0 4px; }
.report-headline {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.report-number {
  background: linear-gradient(120deg, #a5b4fc, #c4b5fd 40%, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.report-sub { margin: 8px 0 0; font-size: 13.5px; color: var(--text-muted); }
.report-sub:empty { display: none; }
.report-stats { margin-bottom: 0; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }

.report-section-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint, #8a93a6); margin-bottom: 8px; }
.report-card-title { margin: 0; font-size: 18px; font-weight: 700; }
.report-note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* Best post */
.report-best { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; margin: 0; }
.report-best[hidden] { display: none; }
.report-best-thumb { width: 120px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #0b0e15; }
.report-best-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.report-best-caption { margin: 0 0 10px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.report-metrics { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--text-muted); }
.report-metrics b { color: var(--text-main); }
.report-date { color: var(--text-faint, #8a93a6); }
.report-link { display: inline-block; margin-top: 10px; font-size: 13px; color: #c4b5fd; text-decoration: none; }
.report-link:hover { text-decoration: underline; }
.report-thumb-text { padding: 10px; font-size: 11.5px; line-height: 1.45; color: var(--text-muted); overflow: hidden; height: 100%; overflow-wrap: anywhere; }

/* Posts strip */
.report-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.report-post { flex: 0 0 132px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: var(--bg-card-elevated); border: 1px solid var(--border-subtle); color: inherit; text-decoration: none; }
.report-post:hover, .report-post:focus-visible { border-color: rgba(99, 102, 241, 0.55); }
.report-post-thumb { position: relative; aspect-ratio: 4 / 5; background: #0b0e15; }
.report-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.report-post-type { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 10.5px; font-weight: 600; }
.report-post-meta { display: flex; flex-direction: column; padding: 8px 10px; font-size: 12px; color: var(--text-muted); }
.report-post-meta b { color: var(--text-main); }
.report-post-meta small { font-size: 11px; color: var(--text-faint, #8a93a6); }

/* AI review */
.report-audit, .report-angles, .report-cta { margin: 0; }
.report-audit[hidden], .report-for-label[hidden], .report-angles[hidden], .report-cta[hidden], #reportPostsWrap[hidden], #reportPlanWrap[hidden] { display: none; }
.report-audit-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 16px; }
.report-col { padding: 16px; border-radius: 14px; background: var(--bg-card-elevated); border: 1px solid var(--border-subtle); }
.report-col-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.report-col.good .report-col-title::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(12, 163, 12, 0.18); color: #4ade80; font-size: 12px; }
.report-col.fix .report-col-title::before { content: "!"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(250, 178, 25, 0.16); color: #fbbf24; font-size: 12px; font-weight: 800; }
.report-point + .report-point { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.report-point b { display: block; font-size: 13.5px; color: var(--text-main); }
.report-point p { margin: 3px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

/* Angles */
.report-angle-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.report-angle { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.report-angle:hover { background: rgba(255, 255, 255, 0.03); }
.report-angle input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; accent-color: #8b5cf6; }

/* 2-week plan */
.report-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.report-week { margin: 0; }
.report-week-num { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #c4b5fd; }
.report-week-theme { margin: 6px 0 10px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.report-week ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* Call to action */
.report-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: radial-gradient(120% 140% at 0% 0%, rgba(99, 102, 241, 0.16), transparent 60%), var(--bg-card); }
.report-cta > div { flex: 1 1 320px; min-width: 0; }

@media (max-width: 560px) {
  .report-best { grid-template-columns: 1fr; }
  .report-best-thumb { width: 100%; max-width: 220px; }
}
.report-angle-list li { margin: 0; }
.report-angle { margin: 0; }
