/* Undo & restore to any point in time */

.bbi-rs-rows { padding: 0 14px 14px; }

.bbi-rs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bbi-muted);
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.bbi-rs-row + .bbi-rs-row { margin-top: 3px; }
.bbi-rs-row .bbi-avatar { width: 28px; height: 28px; box-shadow: 0 0 0 2px #fff; }
.bbi-rs-row__text { color: var(--bbi-ink); }
.bbi-rs-row__text b { font-weight: 800; }
.bbi-rs-row__when { margin-left: auto; font-size: 12px; }
.bbi-rs-row__tag { min-width: 76px; justify-content: center; }

.bbi-rs-row.is-undone { background: #fff6f8; }
.bbi-rs-row.is-undone .bbi-rs-row__text { text-decoration: line-through; text-decoration-color: rgba(240, 56, 107, 0.6); text-decoration-thickness: 2px; }

.bbi-rs-line {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 40px;
  height: 6px;
  border-radius: 6px;
  background: var(--bbi-line);
}

.bbi-rs-line__fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--bbi-grad-brand);
}

.bbi-rs-tick {
  position: absolute;
  width: 40px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--bbi-muted);
}

.bbi-rs-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bbi-indigo);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.bbi-rs-dot.is-undone { border-color: var(--bbi-bad); background: var(--bbi-bad-bg); }

.bbi-rs-handle {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 92px;
  height: 32px;
  border-radius: 999px;
  background: var(--bbi-navy-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px -8px rgba(30, 42, 74, 0.6);
}

.bbi-rs-handle span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bbi-rs-handle svg { width: 13px; height: 13px; }
.bbi-rs-handle.is-grabbed { background: var(--bbi-indigo); box-shadow: 0 0 0 5px rgba(94, 114, 228, 0.2), 0 12px 22px -8px rgba(94, 114, 228, 0.7); }

.bbi-rs-terrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 18px 18px; }

.bbi-rs-terr {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bbi-surface-2);
}

.bbi-rs-terr__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--bbi-muted);
}

.bbi-rs-terr__name i { width: 10px; height: 10px; border-radius: 3px; }

.bbi-rs-terr b {
  display: block;
  margin: 4px 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bbi-ink);
  font-variant-numeric: tabular-nums;
}

.bbi-rs-terr .bbi-bar__fill { transition: none; }

.bbi-rs-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.bbi-rs-action__label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bbi-muted); }
.bbi-rs-action__date { margin: 4px 0 14px; font-size: 17px; font-weight: 800; color: var(--bbi-ink); }
.bbi-rs-go { height: 42px; font-size: 14px; }
.bbi-rs-go svg { width: 16px; height: 16px; }
.bbi-rs-action__note { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--bbi-muted); }
