/* React UI only: navigation progress bar and the busy label on submitting buttons. */
#root { display: contents; }
.spa-progress { position: fixed; left: 0; top: 0; height: 2px; width: 0; z-index: 9999; background: var(--accent, #c6f432); box-shadow: 0 0 10px rgba(198, 244, 50, 0.7); opacity: 0; transition: width 0.4s ease, opacity 0.3s ease; pointer-events: none; }
.spa-progress.on { opacity: 1; width: 70%; transition: width 6s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.1s; }
.spa-progress.done { opacity: 0; width: 100%; transition: width 0.2s ease, opacity 0.4s ease 0.2s; }
[data-spa-busy] { position: relative; color: transparent !important; }
[data-spa-busy] > * { visibility: hidden; }
[data-spa-busy]::after { content: attr(data-busy); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--busy-color, inherit); visibility: visible; white-space: nowrap; }

/* Creator Scout: compare two creators (web/src/pages/scout/Compare.jsx). Lime = A's strengths and B ahead, orange = gaps. */
.cmp-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.cmp-arrow { align-self: center; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(198, 244, 50, 0.12); color: var(--accent); }
.cmp-slot { padding: 16px; border-radius: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cmp-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); }
.cmp-tag.b { color: #ffb35c; }
.cmp-step { padding: 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cmp-step-h { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.cmp-n { flex: none; width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--accent); color: var(--on-accent); }
.cmp-n.warn { background: #ffb35c; }
.cmp-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.cmp-item { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.cmp-x { font-family: var(--mono, ui-monospace, monospace); font-weight: 700; color: var(--accent); }
.cmp-x.warn, .cmp-warn { color: #ffb35c; }
.cmp-good { color: var(--accent); }
.cmp-gaps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; }
.cmp-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cmp-sev { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 179, 92, 0.14); color: #ffb35c; white-space: nowrap; }
.cmp-sev.Medium, .cmp-sev.Small { background: rgba(255, 255, 255, 0.06); color: var(--text2); }
.cmp-h2h { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.cmp-h2h th, .cmp-h2h td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.cmp-h2h th:first-child, .cmp-h2h td:first-child { text-align: left; width: 38%; }
.cmp-h2h thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.cmp-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-chip { padding: 6px 12px; border-radius: 999px; background: rgba(198, 244, 50, 0.1); border: 1px solid rgba(198, 244, 50, 0.25); color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .cmp-pair { grid-template-columns: minmax(0, 1fr); }
  .cmp-arrow { transform: rotate(90deg); justify-self: center; }
  .cmp-vs { grid-template-columns: minmax(0, 1fr); }
  .cmp-h2h { font-size: 13px; }
}
