#modalBackdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, .35);
  display: none;
  z-index: 900;
}

#findReplaceModal {
  position: fixed;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  max-width: 92%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  padding: 24px 28px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}

.fr-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fr-row input[type=text] {
  flex: 1;
  padding: 8px 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.fr-row .clear-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}

.fr-row select {
  padding: 6px 24px 6px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23666" height="14" viewBox="0 0 20 20" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M5.516 7.548l4.483 4.483 4.485-4.483 1.212 1.212-5.697 5.697-5.695-5.697z"/></svg>') no-repeat right 8px center / 10px;
}

.fr-checks {
  display: flex;
  gap: 24px;
  font-size: 14px;
  margin-top: 6px;
}

.fr-checks label {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.fr-results-container {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 6px;
}

.fr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fr-table thead { background: #fafafa; }

.fr-table th,
.fr-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f3f3;
  vertical-align: top;
}

.fr-table th {
  font-weight: 600;
  color: #555;
  font-size: 13px;
}

.fr-table td span.check {
  color: #3c9cff;
  font-size: 16px;
}

.fr-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.fr-footer .total {
  font-size: 14px;
  color: #666;
}

#replaceAllBtnBig {
  padding: 10px 32px;
  font-size: 15px;
  border: none;
  border-radius: 24px;
  background: #6366ff;
  color: #fff;
  cursor: pointer;
}

/* Timeline modal styles → css/timeline.css */
