.vs1-db-status {
  position: fixed;
  top: 170px;
  right: 24px;
  z-index: 1000050;
  display: none;
  width: min(400px, calc(100vw - 24px));
  border: 1px solid var(--dm-border, #e3e6f0);
  border-radius: 10px;
  background: var(--dm-surface, #ffffff);
  color: var(--dm-text, #3a3b45);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(58, 59, 69, 0.2);
  overflow: hidden;
}

.vs1-db-status.is-visible {
  display: block;
  animation: vs1DbStatusIn 0.18s ease-out;
}

.vs1-db-status.is-dragging {
  box-shadow: 0 18px 40px rgba(58, 59, 69, 0.3);
  user-select: none;
}

.vs1-db-status-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 8px 12px;
  border-bottom: 1px solid var(--dm-border, #e3e6f0);
  background: var(--dm-surface-2, #f8f9fc);
  cursor: grab;
  touch-action: none;
}

.vs1-db-status.is-dragging .vs1-db-status-head {
  cursor: grabbing;
}

.vs1-db-status-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00a3d3;
  color: #ffffff;
  font-size: 15px;
}

.vs1-db-status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--dm-surface-2, #f8f9fc);
  background: #f6c23e;
}

.vs1-db-status.is-checking .vs1-db-status-dot,
.vs1-db-status-pill.is-checking .vs1-db-status-dot {
  animation: vs1DbStatusPulse 1s ease-in-out infinite;
}

.vs1-db-status.is-restored .vs1-db-status-dot,
.vs1-db-status-pill.is-restored .vs1-db-status-dot {
  background: #1cc88a;
  animation: none;
}

.vs1-db-status-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vs1-db-status-app {
  font-weight: 700;
  color: var(--dm-text, #5a5c69);
}

.vs1-db-status-user {
  font-size: 12px;
  color: var(--dm-text-muted, #858796);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs1-db-status-time {
  font-size: 12px;
  color: var(--dm-text-muted, #858796);
  white-space: nowrap;
}

.vs1-db-status-min,
.vs1-db-status-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dm-text-muted, #858796);
  font-size: 13px;
  cursor: pointer;
}

.vs1-db-status-min:hover,
.vs1-db-status-close:hover,
.vs1-db-status-min:focus-visible,
.vs1-db-status-close:focus-visible {
  background: var(--dm-surface-3, #e8f1f7);
  color: var(--dm-text, #3a3b45);
  outline: none;
}

.vs1-db-status-body {
  padding: 12px 14px 4px;
}

.vs1-db-status-title {
  color: var(--dm-text, #5a5c69);
}

.vs1-db-status-detail {
  color: var(--dm-text-muted, #858796);
}

.vs1-db-status-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 14px 12px;
}

.vs1-db-status-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000050;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--dm-border, #e3e6f0);
  border-radius: 999px;
  background: var(--dm-surface, #ffffff);
  color: var(--dm-text, #5a5c69);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(58, 59, 69, 0.18);
  cursor: pointer;
}

.vs1-db-status-pill.is-visible {
  display: inline-flex;
}

.vs1-db-status-pill .vs1-db-status-dot {
  position: static;
  width: 10px;
  height: 10px;
  border: 0;
}

.vs1-db-status-pill:hover,
.vs1-db-status-pill:focus-visible {
  background: var(--dm-surface-2, #f8f9fc);
  outline: none;
}

@keyframes vs1DbStatusIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes vs1DbStatusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

html.dark-mode .vs1-db-status,
html.dark-mode .vs1-db-status-pill {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  .vs1-db-status {
    right: 12px !important;
    left: 12px !important;
    width: auto;
  }
}
