.thread-tools-row {
  flex-wrap: wrap;
}

.reply-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--panel-line);
}

.reply-action-btn {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--panel-line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.reply-action-danger,
.mobile-sheet-btn-danger,
.thread-tool-btn-danger {
  color: #991b1b;
}

.thread-tool-btn-danger,
.mobile-sheet-btn-danger,
.reply-action-danger {
  border-color: #991b1b;
}

.thread-tool-btn-danger {
  background: #fff1f2;
}

.mobile-sheet-btn-danger {
  background: #fff1f2;
}

.thread-tool-btn-danger:hover,
.mobile-sheet-btn-danger:hover,
.reply-action-danger:hover {
  background: #991b1b;
  color: #fff;
}

.reply-action-danger {
  background: #fff;
}

.forum-confirm-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  z-index: 120;
}

.forum-confirm-overlay.open {
  display: flex;
}

.forum-confirm-box {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1rem;
  border: 2px solid var(--panel-line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.forum-confirm-box h3,
.forum-confirm-box p {
  margin: 0 0 0.75rem;
}

.forum-confirm-box h3 {
  font-size: 1.1rem;
}

.forum-confirm-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .reply-card-actions {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
  }

  .reply-action-btn {
    width: 100%;
  }

  .forum-confirm-actions {
    flex-direction: column;
  }

  .forum-confirm-actions button {
    width: 100%;
    min-height: 44px;
  }
}
