.ronbun-bookmark-area {
  margin-top: 24px;
}

.ronbun-post-actions {
  align-items: center;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 32px 0 24px;
  padding-top: 24px;
}

.ronbun-bookmark-toggle,
.ronbun-bookmark-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #0073aa;
  color: #0073aa;
  background: #ffffff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ronbun-bookmark-toggle {
  cursor: pointer;
}

.ronbun-bookmark-toggle:hover,
.ronbun-bookmark-login-link:hover {
  opacity: 0.85;
}

.ronbun-bookmark-toggle.is-active {
  background: #0073aa;
  color: #ffffff;
}

.ronbun-bookmark-toggle.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.ronbun-post-actions .reaction-buttons {
  align-items: stretch;
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  max-width: 520px;
  width: auto;
}

.ronbun-post-actions .reaction-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  color: #1f2933;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 98px;
  opacity: 1;
  padding: 8px;
  text-align: center;
}

.ronbun-post-actions .reaction-btn:hover {
  border-color: #3760d7;
}

.ronbun-post-actions .reaction-btn.is-active {
  background: #f2f6ff;
  border-color: #3760d7;
  color: #c00;
  transform: none;
}

.ronbun-post-actions .reaction-btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.ronbun-post-actions .reaction-btn img {
  height: 42px;
  margin: 0 auto;
  object-fit: contain;
  width: 42px;
}

.ronbun-post-actions .reaction-label {
  color: inherit;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.ronbun-post-actions .reaction-count {
  color: inherit;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.ronbun-my-bookmarks {
  margin-top: 24px;
}

.ronbun-my-bookmarks-title {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.ronbun-my-bookmarks-empty {
  margin: 0;
}

.ronbun-my-bookmarks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.ronbun-my-bookmarks-item {
  padding: 16px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #ffffff;
}

.ronbun-my-bookmarks-link {
  font-weight: 700;
  text-decoration: none;
}

.ronbun-my-bookmarks-meta {
  margin: 6px 0 12px;
  color: #666;
  font-size: 0.9rem;
}

.ronbun-my-bookmarks-pagination ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  gap: 8px;
}

.ronbun-my-bookmarks-pagination a,
.ronbun-my-bookmarks-pagination span {
  display: inline-block;
  min-width: 34px;
  padding: 4px 10px;
  text-align: center;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  text-decoration: none;
}

.ronbun-my-bookmarks-pagination .current {
  background: #0073aa;
  border-color: #0073aa;
  color: #fff;
}

@media screen and (max-width: 767px) {
  .ronbun-post-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ronbun-post-actions .reaction-buttons {
    max-width: none;
    width: 100%;
  }

  .ronbun-bookmark-toggle,
  .ronbun-bookmark-login-link {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .ronbun-post-actions .reaction-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
