.public-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
}
.public-pagination a,
.load-more {
  border: 1px solid #d7e3dd;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: #fff;
  color: #153d34;
}
.load-more {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 2rem auto;
  max-width: 360px;
}
.load-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d7e3dd;
  border-top-color: #1d765d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.welcome-modal,
.ai-chat {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.welcome-modal[hidden],
.ai-chat[hidden] {
  display: none;
}
.welcome-backdrop,
.ai-chat-backdrop {
  position: absolute;
  inset: 0;
  background: #071b16b8;
  border: 0;
}
.welcome-modal section,
.ai-chat section {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 25px 80px #0004;
  max-width: 560px;
  width: 100%;
  padding: 2rem;
  overflow: hidden;
}
.welcome-modal section > img {
  width: calc(100% + 4rem);
  height: 210px;
  object-fit: cover;
  margin: -2rem -2rem 1.5rem;
}
.welcome-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
}
.welcome-icon {
  font-size: 2rem;
}
.ai-assistant-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.65rem 0 1.15rem;
  padding: 0.52rem 0.78rem;
  border: 0;
  border-radius: 10px;
  background: #153d34;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(21, 61, 52, 0.18);
  cursor: pointer;
}
.ai-assistant-launch:hover {
  background: #0e2d26;
  transform: translateY(-1px);
}
.ai-assistant-launch span {
  color: #fff;
  font-size: 1rem;
}
.ai-assistant-launch b {
  color: #fff;
  font-size: 0.82rem;
}
.ai-chat section {
  max-width: 620px;
}
.ai-chat header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.ai-chat header div {
  display: grid;
  flex: 1;
}
.ai-chat-messages {
  height: 300px;
  overflow: auto;
  background: #f5f8f7;
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem 0;
}
.ai-chat-messages p {
  max-width: 85%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: #fff;
}
.ai-chat-messages .ai-user {
  margin-left: auto;
  background: #dff4ec;
}
.ai-chat form {
  display: flex;
  gap: 0.5rem;
}
.ai-chat textarea {
  flex: 1;
  min-height: 70px;
}
.ai-chat {
  inset: auto 24px 24px auto;
  display: block;
  width: min(620px, calc(100vw - 32px));
  padding: 0;
  pointer-events: none;
}
.ai-chat section {
  max-width: none;
  padding: 0;
  border-radius: 18px;
  border: 1px solid #d7e3dd;
  pointer-events: auto;
  overflow: hidden;
}
.ai-chat header {
  min-height: 58px;
  padding: 0.7rem 0.85rem;
  color: #fff;
  background: #153d34;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.ai-chat header:active {
  cursor: grabbing;
}
.ai-chat header b,
.ai-chat header small,
.ai-chat .ai-mark {
  color: #fff;
}
.ai-chat header small {
  opacity: 0.78;
}
.ai-chat header .ai-window-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}
.ai-window-actions button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.15rem;
}
.ai-window-actions button:hover {
  background: rgba(255, 255, 255, 0.22);
}
.ai-chat-content {
  padding: 0 1rem 1rem;
}
.ai-chat.is-minimized {
  width: min(330px, calc(100vw - 32px));
}
.ai-chat.is-minimized .ai-chat-content {
  display: none;
}
.ai-chat.is-minimized section {
  border-radius: 14px;
}
.ai-chat.is-minimized header {
  min-height: 50px;
}
.admin-platform-wrap {
  margin: -1rem 2rem 3rem calc(260px + 2rem);
}
@media (max-width: 900px) {
  .admin-platform-wrap {
    margin: 1rem;
  }
  .ai-chat form {
    display: grid;
  }
  .ai-chat {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
  }
  .public-pagination strong {
    font-size: 0.8rem;
  }
}
