.xhp-snapshot-action-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(191, 219, 254, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.xhp-app-header > .xhp-snapshot-action-box {
  margin-left: auto;
}

.xhp-snapshot-header-btn {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(191, 219, 254, 0.25);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.xhp-snapshot-header-btn:hover {
  background: rgba(14, 165, 233, 0.24);
  border-color: rgba(125, 211, 252, 0.58);
  color: #fff;
}

.xhp-snapshot-header-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.xhp-snapshot-modal .xhp-modal-box input {
  width: 100%;
  margin-top: 12px;
}

.xhp-snapshot-list,
.xhp-snapshot-forward-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.xhp-snapshot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  align-items: stretch;
  border-bottom: 1px solid #eef2f7;
}

.xhp-snapshot-row:last-child {
  border-bottom: none;
}

.xhp-snapshot-load-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  gap: 4px;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  color: #102033;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.xhp-snapshot-load-item:hover {
  background: #f8fafc;
}

.xhp-snapshot-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.xhp-snapshot-meta {
  color: #64748b;
  font-size: 12px;
}

.xhp-snapshot-icon-btn {
  border: 0;
  border-left: 1px solid #eef2f7;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.xhp-snapshot-icon-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.xhp-snapshot-delete-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

.xhp-snapshot-empty {
  padding: 12px;
  color: #64748b;
  font-size: 13px;
}

.xhp-snapshot-empty.danger {
  color: #c0392b;
}

.xhp-snapshot-forward-list {
  max-height: min(46vh, 340px);
  overflow: auto;
}

.xhp-snapshot-forward-user {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  color: #102033;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.xhp-snapshot-forward-user:hover,
.xhp-snapshot-forward-user.selected {
  background: #eff6ff;
}

.xhp-snapshot-forward-user span {
  font-size: 14px;
  font-weight: 700;
}

.xhp-snapshot-forward-user small {
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 720px) {
  .xhp-snapshot-row {
    grid-template-columns: minmax(0, 1fr) 38px 38px;
  }
}
