/* Anonymous quick-analyze: hero + upload form, then the one-shot
   scorecard (KPI tiles reuse components.css). */

.qa-hero { max-width: 720px; }
.qa-hero h1 {
  font-size: 24px;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.qa-lead {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.qa-detected { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.qa-note { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-top: 12px; }
.qa-optional { font-weight: 400; color: var(--text-3); }

/* Upload state: form on the left, an at-a-glance "what you'll get / what
   happens to your file" panel on the right that does the informing. */
.qa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 22px;
  align-items: start;
  max-width: 900px;
  /* No margin-top: .app-content is a flex column whose 18px gap already
     supplies this, and flex margins add to the gap rather than collapsing —
     the pair rendered as 36px. */
}
.qa-form-card {
  padding: 22px 24px;
  overflow: visible;
}

/* Roomier, more inviting drop target than the inline app one. */
.qa-drop.qa-drop {
  flex-direction: column;
  gap: 10px;
  padding: 30px 18px;
  font-size: 13px;
}
.qa-drop svg { color: var(--text-3); }
.qa-drop:hover svg,
.qa-drop.is-dragover svg { color: var(--accent-line); }

.qa-operators-group { margin-top: 18px; }
.qa-operators { max-width: 96px; }

/* Info sidebar. */
.qa-info { display: flex; flex-direction: column; gap: 16px; }
.qa-info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.qa-info-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qa-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.qa-info-list li {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.qa-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--border-2); flex: none; }
.qa-dot-crit { background: var(--crit); }
.qa-dot-warn { background: var(--warn); }
.qa-dot-ok { background: var(--ok); }
.qa-dot-accent { background: var(--accent-line); }
.qa-info-title .qa-dot { margin-top: 0; }
.qa-trust { background: var(--surface-2); }
.qa-trust p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }

@media (max-width: 760px) {
  .qa-layout { grid-template-columns: 1fr; }
}

.qa-section-title { font-size: 15px; }

/* Finding cards on the result page. */
.qa-finding {
  border-left: 3px solid var(--text-3);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.qa-finding:last-child { border-bottom: none; }
.qa-finding-critical, .qa-finding-high { border-left-color: var(--crit); }
.qa-finding-medium { border-left-color: var(--warn); }
.qa-finding-low { border-left-color: var(--ok); }
.qa-finding h3 {
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.qa-citation {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
}
.qa-todo { font-size: 12.5px; color: var(--text-2); line-height: 1.45; margin-top: 6px; }
.qa-tags { font-size: 11.5px; color: var(--text-3); margin-top: 6px; overflow-wrap: anywhere; }

.qa-cta {
  text-align: center;
  padding: 26px 22px;
}
.qa-cta h2 { font-size: 17px; margin-bottom: 8px; }
.qa-cta p {
  font-size: 13px;
  color: var(--text-2);
  max-width: 52ch;
  margin: 0 auto 16px;
  line-height: 1.5;
}
.qa-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
