
@media (min-width: 800px) {
  .drafts-dialog {
    max-width: 500px;
  }
}

.drafts-dialog-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.drafts-dialog-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.drafts-dialog-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.drafts-dialog-back {
  position: absolute;
  left: 0;
}

.drafts-dialog-list {
  overflow-y: auto;
  min-height: 120px;
  max-height: 60vh;
}

.drafts-dialog-message {
  display: flex;
  justify-content: center;
  padding: 32px 0;
  color: var(--text-color-muted);
  font-size: 15px;
}

.draft-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: var(--hair) solid var(--post-border-color);
  border-radius: 12px;
  cursor: pointer;
}

.draft-item:not(:first-child) {
  margin-top: 8px;
}

@media (hover: hover) {
  .draft-item:hover {
    background-color: var(--secondary-background-color);
  }
}

.draft-item-main {
  flex: 1;
  min-width: 0;
}

.draft-item-text {
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.draft-item-media {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.draft-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: var(--hair) solid var(--post-border-color);
}

.draft-item-video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-muted);
  background-color: var(--secondary-background-color);
}

.draft-item-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.draft-item-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: var(--secondary-background-color);
  color: var(--text-color-muted);
}

.draft-item-tag-warning {
  background-color: color-mix(in srgb, var(--error-color) 15%, transparent);
  color: var(--error-color);
}

.draft-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  gap: 6px;
}

.draft-item-timestamp {
  font-size: 12px;
  color: var(--text-color-muted);
  margin-bottom: 4px;
}

.draft-item-delete .icon {
  width: 18px;
  height: 18px;
}

