/* "Building your report" overlay: the estimate page (free preview) and the report page (paid re-run). */
.est-working { position: fixed; inset: 0; z-index: 100; background: rgba(21, 32, 43, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.est-working[hidden] { display: none; }
.est-working-card { width: min(440px, 100%); background: var(--card); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); }
.est-scan { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--paper-2) center / cover no-repeat; }
.est-scan::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 24px 24px;
}
.est-scan-line { position: absolute; left: 0; right: 0; height: 3px; background: var(--accent); box-shadow: 0 0 24px 6px rgba(242, 183, 5, .6); animation: est-scan 2.4s ease-in-out infinite alternate; }
@keyframes est-scan { from { top: 4%; } to { top: 94%; } }
.est-working h2 { font: 500 1.5rem/1.2 var(--font-display); margin-top: 22px; }
.est-stages { list-style: none; padding: 0; margin: 16px 0 0; }
.est-stages li { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--muted); font-size: 15px; }
.est-stages li::before {
  content: ""; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line-strong);
}
.est-stages li.is-active { color: var(--ink); font-weight: 600; }
.est-stages li.is-active::before { border-color: var(--line); border-top-color: var(--ink); animation: est-spin .8s linear infinite; }
.est-stages li.is-done { color: var(--ink-2); }
.est-stages li.is-done::before { content: "✓"; display: grid; place-items: center; border: 0; background: var(--good); color: #fff; font-size: 12px; font-weight: 700; }
@keyframes est-spin { to { transform: rotate(360deg); } }
.est-working-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .est-scan-line, .est-stages li.is-active::before { animation: none; }
}
