.card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.2s cubic-bezier(0.215, 0.61, 0.355, 1),
    background 0.2s cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cardSidebar {
  border-radius: 0.375rem;
}

.cardResolved {
  opacity: 0.72;
}

.screenshotCollapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cardCondensed .screenshotCollapse {
  grid-template-rows: 0fr;
}

.screenshotInner {
  min-height: 0;
  overflow: hidden;
}

.screenshot {
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-solid);
  transition: border-color 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cardCondensed .screenshot {
  border-bottom-color: transparent;
}

.body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  padding: 6px 12px 10px;
  flex: 1;
  min-width: 0;
  transition:
    flex-direction 0.28s cubic-bezier(0.215, 0.61, 0.355, 1),
    align-items 0.28s cubic-bezier(0.215, 0.61, 0.355, 1),
    gap 0.28s cubic-bezier(0.215, 0.61, 0.355, 1),
    padding 0.28s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cardCondensed .body {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 56px 6px 10px;
  min-height: 40px;
}

.statusIcon {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 14px;
  color: var(--success);
}

.cardCondensed .statusIcon {
  display: flex;
  margin-right: 8px;
}

.bodyMain {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  transition: gap 0.28s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cardCondensed .bodyMain {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.cardCondensed .authorAvatar {
  display: none;
}

.commentRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.authorAvatar {
  margin-top: 1px;
}

.commentContent {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.commentEditor {
  flex: 1;
  min-width: 0;
}

.comment {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  transition:
    font-size 0.28s cubic-bezier(0.215, 0.61, 0.355, 1),
    line-height 0.28s cubic-bezier(0.215, 0.61, 0.355, 1),
    color 0.2s ease,
    -webkit-line-clamp 0.28s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.commentExpanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: anywhere;
}

.cardCondensed .comment {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-secondary);
  -webkit-line-clamp: 1;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: line-through;
}

.cardCondensed .commentExpanded {
  white-space: normal;
  text-overflow: unset;
  -webkit-line-clamp: unset;
}

.resolvedBadgeCollapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.resolvedBadgeCollapseExpanded {
  grid-template-rows: 1fr;
}

.cardCondensed .resolvedBadgeCollapse {
  grid-template-rows: 0fr;
}

.resolvedBadgeInner {
  min-height: 0;
  overflow: hidden;
}

.threadCollapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cardCondensed .threadCollapse {
  grid-template-rows: 0fr;
}

.threadInner {
  min-height: 0;
  overflow: hidden;
}

.replyCount {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-tertiary);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 0.28s cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cardCondensed .replyCountVisible {
  max-width: 80px;
  opacity: 1;
}

.actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
  transition:
    gap 0.25s cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 0.15s ease;
}

.cardCondensed .actions {
  gap: 3px;
}

.secondaryAction {
  display: flex;
  overflow: hidden;
  max-width: 28px;
  opacity: 1;
  transition:
    max-width 0.25s cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 0.2s cubic-bezier(0.215, 0.61, 0.355, 1),
    margin 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cardCondensed .secondaryAction {
  max-width: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.actionBtnCompact {
  width: 24px !important;
  height: 24px !important;
  border-radius: 5px !important;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .screenshotCollapse,
  .body,
  .statusIcon,
  .comment,
  .resolvedBadgeCollapse,
  .threadCollapse,
  .replyCount,
  .actions,
  .secondaryAction {
    transition: none;
  }
}
