/* ────────────────────────────────────────────────────────────────
 * Re-analyse matter — floating progress widget
 * ────────────────────────────────────────────────────────────────
 * Bottom-right floating card. One row per in-flight matter
 * re-analysis. Stays visible while the lawyer navigates between
 * modules so they can always see progress + cancel.
 */

.reanalyse-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 18rem;
  max-width: 22rem;
}
.reanalyse-widget.hidden { display: none; }

.reanalyse-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  padding: 0.65rem 0.75rem 0.7rem;
}

.reanalyse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.reanalyse-title {
  font-family: var(--font-serif, 'EB Garamond', serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reanalyse-cancel {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}
.reanalyse-cancel:hover { color: var(--text); }

.reanalyse-bar {
  height: 6px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.reanalyse-bar > span {
  display: block;
  height: 100%;
  background: var(--gold, #d9a541);
  transition: width 0.25s ease;
}
.reanalyse-detail {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
