.suggestions-page {
  overflow: hidden;
}

.suggestions-page .site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.suggestions-page .site-section-page-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.suggestions-page .suggestions-section.suggestions-page-section {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(8px, 1.2vw, 16px) 0 clamp(16px, 2vw, 24px);
  box-sizing: border-box;
  overflow: hidden;
}

.suggestions-page .suggestions-subtitle {
  flex-shrink: 0;
  margin: 0 0 clamp(12px, 1.6vw, 18px);
  color: rgba(90, 51, 15, 0.58);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.suggestions-page-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.suggestions-feed {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 26px);
  min-height: 0;
  padding: clamp(8px, 1vw, 12px) clamp(4px, 0.6vw, 8px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.suggestions-page-panel .suggestions-feed {
  flex: 1;
}

.suggestions-feed-status {
  flex-shrink: 0;
  padding: 8px 0 4px;
  color: rgba(90, 51, 15, 0.46);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.suggestions-feed-empty {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 180px;
  padding: 24px 16px;
  color: rgba(90, 51, 15, 0.56);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.suggestion-thread {
  display: grid;
  flex-shrink: 0;
  gap: 14px;
  padding-bottom: clamp(18px, 2.2vw, 24px);
  border-bottom: 1px dashed rgba(255, 194, 118, 0.42);
}

.suggestion-thread:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.suggestion-message {
  display: grid;
  max-width: min(100%, 760px);
}

.suggestion-message--user {
  grid-template-columns: minmax(0, 1fr);
  justify-self: start;
}

.suggestion-message--official {
  grid-template-columns: minmax(0, 1fr);
  justify-self: end;
}

.suggestion-message__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.suggestion-message__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  padding: 0;
}

.suggestion-message--user .suggestion-message__head {
  justify-content: flex-start;
}

.suggestion-message--official .suggestion-message__head {
  justify-content: flex-end;
}

.suggestion-message__head .suggestion-name,
.suggestion-message__head .suggestion-date {
  line-height: 1;
}

.suggestion-message__head .suggestion-avatar {
  flex: 0 0 38px;
}

.suggestion-message--user .suggestion-bubble {
  margin-left: calc(38px + 10px);
}

.suggestion-bubble {
  padding: clamp(14px, 1.6vw, 18px) clamp(16px, 1.8vw, 20px);
  border-radius: 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  word-break: break-word;
}

.suggestion-bubble--user {
  background: rgba(255, 248, 240, 0.96);
  border: 1px solid rgba(255, 214, 180, 0.56);
}

.suggestion-bubble--official {
  background: rgba(255, 225, 196, 0.92);
  border: 1px solid rgba(255, 194, 118, 0.48);
}

.suggestion-avatar--official {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 236, 214, 0.92);
  border: 1px solid rgba(255, 194, 118, 0.42);
}

.suggestion-avatar--official img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translateX(1px);
}

.suggestions-page-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding-top: clamp(14px, 1.8vw, 20px);
}

.suggestions-page-footer .suggestions-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.4vw, 16px);
  margin-top: 0;
  padding: clamp(10px, 1.1vw, 12px) clamp(10px, 1.1vw, 12px) clamp(10px, 1.1vw, 12px)
    clamp(20px, 2.2vw, 26px);
  border: 1px solid rgba(255, 214, 180, 0.72);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.96);
}

.suggestions-page-footer .suggestions-compose-field {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: clamp(44px, 4.6vw, 52px);
}

.suggestions-page-footer .suggestions-compose input {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.4;
}

.suggestions-page-footer .suggestions-submit {
  min-height: clamp(44px, 4.6vw, 52px);
  padding: 0 clamp(22px, 2.2vw, 28px);
  font-size: clamp(14px, 1.1vw, 16px);
}

@media (max-width: 720px) {
  .suggestion-message,
  .suggestion-message--official {
    max-width: 100%;
  }

  .suggestion-message__head {
    flex-wrap: nowrap;
  }
}

@media (max-width: 520px) {
  .suggestions-page-footer .suggestions-compose {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .suggestions-page-footer .suggestions-compose-field {
    min-height: 0;
  }

  .suggestions-page-footer .suggestions-submit {
    justify-content: center;
    width: 100%;
  }
}
