#rnv2-records-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
}

.rnv2-records__backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px;
}

.rnv2-records__panel {
  width: 100%;
  max-width: 480px;
  max-height: 72vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: rnv2-modal-in 0.25s ease-out;
}

.rnv2-records__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.rnv2-records__title { margin: 0; font-size: 16px; font-weight: 700; color: #111827; }

.rnv2-records__close {
  width: 32px; height: 32px; border: none; background: none;
  font-size: 20px; color: #9ca3af; cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.rnv2-records__close:hover { background: #f3f4f6; }

.rnv2-records__list {
  overflow-y: auto;
  padding: 8px 12px 16px;
  flex: 1;
}

.rnv2-records__actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 2px 10px;
}

.rnv2-records__clear,
.rnv2-records__delete {
  border: none;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.rnv2-records__clear {
  padding: 6px 10px;
}

.rnv2-records__delete {
  padding: 6px 9px;
  flex: 0 0 auto;
}

.rnv2-records__clear:hover,
.rnv2-records__delete:hover {
  background: #e5e7eb;
}

.rnv2-records__empty {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  padding: 32px 0;
}

.rnv2-records__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  gap: 12px;
}
.rnv2-records__item:hover { background: #f9fafb; }

.rnv2-records__item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rnv2-records__item-title { font-size: 14px; font-weight: 500; color: #374151; }
.rnv2-records__item-time { font-size: 12px; color: #9ca3af; }

.rnv2-records__item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }

.rnv2-records__item-status {
  font-size: 12px; font-weight: 600; padding: 2px 8px;
  border-radius: 6px; background: #f3f4f6; color: #6b7280;
}
.rnv2-records__item-status--done { background: #d1fae5; color: #065f46; }
.rnv2-records__item-status--locked { background: #fef3c7; color: #92400e; }
.rnv2-records__item-status--failed { background: #fee2e2; color: #991b1b; }
.rnv2-records__item-status--pending_payment { background: #ffedd5; color: #9a3412; }
.rnv2-records__item-status--start_locked { background: #e0e7ff; color: #4338ca; }
.rnv2-records__item-status--start_authorized { background: #dbeafe; color: #1d4ed8; }
.rnv2-records__item-status--processing,
.rnv2-records__item-status--authorizing { background: #e0f2fe; color: #0369a1; }
.rnv2-records__item-status--missing_output { background: #fef9c3; color: #854d0e; }
.rnv2-records__item-status--draft,
.rnv2-records__item-status--input,
.rnv2-records__item-status--idle { background: #f3f4f6; color: #6b7280; }
.rnv2-records__item-action {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}
