.posts-page {
  width: min(640px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.dialog-heading,
.post-card-heading,
.post-actions,
.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.posts-create-button {
  display: block;
  margin: 0 0 0.9rem auto;
}

.posts-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.posts-search input,
.posts-search select {
  min-width: 0;
  border: 1px solid #dfe8e2;
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.65rem 0.75rem;
  color: #26352d;
  font: inherit;
  font-size: 0.84rem;
}

.posts-search input:focus,
.posts-search select:focus {
  border-color: #42a47d;
  outline: 3px solid rgba(11, 123, 91, 0.12);
}

.posts-feed {
  display: grid;
  gap: 1rem;
}

.account-search-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #e6ede8;
  border-radius: 1rem;
  background: #fff;
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 30px rgba(20, 48, 32, 0.055);
}

.account-search-profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.account-search-avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: #e8f3ec;
  object-fit: cover;
}

.account-search-details {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.account-search-details strong {
  overflow: hidden;
  color: #17211d;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-search-details small {
  color: #829088;
  font-size: 0.72rem;
}

.account-search-action {
  flex: none;
  border: 0;
  border-radius: 0.65rem;
  background: #087351;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
}

.account-search-action:disabled {
  background: #eef4f0;
  color: #526158;
  cursor: default;
}

.post-card,
.posts-tip-card {
  overflow: hidden;
  border: 1px solid #e6ede8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 30px rgba(20, 48, 32, 0.055);
}

.post-card {
  min-width: 0;
}

.post-card-heading {
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.post-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.post-author img,
.comment-avatar {
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
  border-radius: 50%;
  background: #e8f3ec;
  object-fit: cover;
}

.post-author-copy {
  min-width: 0;
}

.post-author-name {
  display: block;
  overflow: hidden;
  color: #17211d;
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-meta {
  display: block;
  margin-top: 0.12rem;
  color: #829088;
  font-size: 0.72rem;
}

.post-menu {
  display: flex;
  gap: 0.2rem;
}

.icon-button,
.post-action-button,
.comment-menu-button {
  display: inline-grid;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #607068;
  cursor: pointer;
  font: inherit;
}

.icon-button {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.5rem;
}

.icon-button:hover,
.post-action-button:hover,
.comment-menu-button:hover {
  background: #f0f5f1;
  color: #087351;
}

.icon-button svg,
.post-icon-button svg,
.comment-attach-button svg,
.comment-action-button svg,
.comment-like-button svg,
.comment-send-button svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.post-icon-button {
  width: 2.6rem;
  height: 2.6rem;
  justify-content: center;
  padding: 0;
}

.post-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.post-like-button svg,
.comment-like-button svg {
  transition: transform 160ms ease, fill 160ms ease;
}

.post-like-button.is-liked svg,
.comment-like-button.is-liked svg {
  fill: currentColor;
}

.post-like-button.is-liked {
  color: #e54868;
}

.post-like-button.is-pop svg {
  animation: post-heart-pop 460ms cubic-bezier(.18,.89,.32,1.35);
}

.post-image-wrap {
  position: relative;
  cursor: zoom-in;
}

.post-image-wrap.show-like-burst::after {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff;
  content: "♥";
  font-size: clamp(4rem, 18vw, 8rem);
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) scale(0);
  animation: image-like-burst 750ms ease-out forwards;
}

@keyframes post-heart-pop {
  0% { transform: scale(.72); }
  48% { transform: scale(1.45) rotate(-8deg); }
  75% { transform: scale(.92) rotate(4deg); }
  100% { transform: scale(1); }
}

@keyframes image-like-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.25); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(.96); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.22); }
}

.post-image-wrap {
  overflow: hidden;
  background: #f1f4f2;
}

.post-image {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.post-video {
  display: block;
  width: 100%;
  max-height: 680px;
  background: #101513;
}

.post-caption {
  margin: 0;
  padding: 0.85rem 1rem 0.2rem;
  color: #26352d;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  padding: 0.8rem 1rem 0.35rem;
  color: #78857e;
  font-size: 0.75rem;
}

.post-actions {
  justify-content: flex-start;
  gap: 0.35rem;
  margin: 0 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid #edf1ee;
}

.post-action-button {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 650;
}

.post-action-button.is-liked {
  color: #dc4262;
}

.post-card-footer {
  padding: 0 1rem 0.9rem;
}

.comments-panel {
  position: fixed;
  z-index: 12;
  top: 0;
  right: 0;
  display: flex;
  width: min(420px, 100vw);
  height: 100dvh;
  flex-direction: column;
  border-left: 1px solid #e3ebe5;
  background: #fff;
  box-shadow: -18px 0 50px rgba(20, 48, 32, 0.17);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.comments-panel.is-open {
  transform: translateX(0);
}

.comments-panel-heading {
  display: flex;
  min-height: 4.4rem;
  flex: none;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1ee;
  padding: 0 1.1rem;
}

.comments-panel-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.comments-panel-subtitle {
  margin: 0.18rem 0 0;
  color: #829088;
  font-size: 0.72rem;
}

.comments-close-button {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f6f3;
  color: #56645c;
  cursor: pointer;
}

.comments-close-button svg {
  width: 1.2rem;
  height: 1.2rem;
}

.comments-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  scrollbar-color: #cad8cf transparent;
  scrollbar-width: thin;
}

.comments-content > .comment-form {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: auto;
  border: 1px solid #e6ede8;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  padding: 0.65rem;
  box-shadow: 0 -5px 18px rgba(20, 48, 32, 0.06);
  backdrop-filter: blur(12px);
}

.comments-content > .comments-composer {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto auto;
  align-items: center;
}

.comment-composer-avatar {
  display: block;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e3ebe5;
  border-radius: 50%;
  background: #edf4ef;
  object-fit: cover;
}

.comments-backdrop {
  position: fixed;
  z-index: 11;
  inset: 0;
  border: 0;
  background: rgba(18, 32, 24, 0.24);
  cursor: pointer;
}

.comments-backdrop.hidden {
  display: none;
}

.comment-list {
  display: grid;
  gap: 0.8rem;
}

.comment-thread {
  display: grid;
  gap: 0.4rem;
}

.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.comment-avatar {
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  min-width: 0;
  flex: 1;
  border: 1px solid #edf1ee;
  border-radius: 0.9rem;
  background: #f8faf9;
  padding: 0.6rem 0.7rem;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.comment-author {
  color: #2a3a31;
  font-size: 0.75rem;
  font-weight: 700;
}

.comment-time,
.comment-text {
  color: #69766f;
  font-size: 0.75rem;
}

.comment-text {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment-menu-button {
  width: 1.8rem;
  height: 1.8rem;
  margin-left: auto;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.comment-action-button,
.comment-like-button {
  display: inline-flex;
  min-width: 1.9rem;
  min-height: 1.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #78857e;
  cursor: pointer;
}

.comment-action-button:hover,
.comment-like-button:hover {
  background: #edf4ef;
  color: #087351;
}

.comment-action-button.is-pinned,
.pinned-label {
  color: #a16a12;
}

.comment-like-button.is-liked {
  color: #e54868;
}

.comment-like-count {
  min-width: 0.5rem;
  font-size: 0.68rem;
}

.pinned-label {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 999px;
  background: #fff5d9;
  padding: 0.12rem 0.42rem;
  font-size: 0.62rem;
  font-weight: 700;
}

.comment-thread.is-pinned > .comment-row .comment-body {
  border-color: #f3dfa9;
  background: #fffdf7;
}

.comment-replies {
  display: grid;
  gap: 0.6rem;
  margin: 0.15rem 0 0 2rem;
  padding-left: 0.65rem;
  border-left: 1px solid #e3ebe5;
}

.comment-replies[hidden] {
  display: none;
}

.comment-replies-toggle {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0.15rem 0.4rem;
  color: #087351;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.comment-replies-toggle:hover {
  color: #05583e;
  text-decoration: underline;
}

.comment-image-link {
  display: inline-block;
  width: 6rem;
  height: 6rem;
  margin-top: 0.55rem;
  overflow: hidden;
  border: 1px solid #e3ebe5;
  border-radius: 0.8rem;
  line-height: 0;
}

.comment-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-image-preview {
  position: relative;
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 8rem;
  overflow: hidden;
  border: 1px solid #e3ebe5;
  border-radius: 0.75rem;
  line-height: 0;
}

.comment-image-preview[hidden] {
  display: none;
}

.comment-image-preview > img {
  display: block;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
}

.comment-image-remove {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 30, 24, 0.75);
  color: #fff;
  padding: 0;
  cursor: pointer;
}

.comment-form .comment-image-preview .comment-image-remove {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #26352d;
  padding: 0;
  color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.comment-form .comment-image-preview .comment-image-remove:hover,
.comment-form .comment-image-preview .comment-image-remove:focus-visible {
  background: #b42332;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.comment-image-remove svg {
  width: 0.9rem;
  height: 0.9rem;
}

.comment-attach-button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #087b59;
  cursor: pointer;
}

.comment-form .comment-attach-button {
  border: 0;
  border-radius: 50%;
  background: #f0f5f1;
  padding: 0;
  color: #087351;
}

.comment-form .comment-attach-button:hover,
.comment-form .comment-attach-button:focus-visible {
  background: #dcece2;
  color: #05583e;
  outline: 2px solid rgba(8, 115, 81, 0.2);
  outline-offset: 2px;
}

.comment-form .comment-attach-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.comment-thread.is-reply .comment-avatar {
  width: 1.65rem;
  height: 1.65rem;
}

.comment-thread.is-reply .comment-body {
  border-radius: 0.75rem;
  background: #fbfcfb;
  padding: 0.5rem 0.6rem;
}

.comment-thread.is-reply .comment-replies {
  margin-left: 1.25rem;
  padding-left: 0.55rem;
}

.comment-thread > .reply-form {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) auto auto;
  align-items: center;
  margin-left: 2.4rem;
  border: 1px solid #e6ede8;
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.4rem;
}

.comment-thread.is-reply > .reply-form {
  margin-left: 2rem;
}

.reply-form .comment-composer-avatar {
  width: 1.7rem;
  height: 1.7rem;
}

.comment-form {
  align-items: center;
}

.comment-form .comment-send-button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #087b59;
  color: #fff;
  cursor: pointer;
}

.comment-form .comment-send-button:hover {
  background: #08674c;
}

.comment-form .comment-send-button:disabled {
  opacity: 0.55;
}

.comment-more-button {
  width: 100%;
  min-height: 2.2rem;
  padding: 0.4rem;
  font-size: 0.75rem;
}

.danger-icon:hover,
.comment-action-button.danger-icon:hover {
  background: #fff0f0;
  color: #b42332;
}

@media (prefers-reduced-motion: reduce) {
  .post-like-button.is-pop svg,
  .post-image-wrap.show-like-burst::after {
    animation-duration: 1ms;
  }
}

.comment-form {
  display: flex;
  gap: 0.45rem;
}

.comment-form input,
.post-form textarea,
.post-form select {
  width: 100%;
  border: 1px solid #dfe8e2;
  border-radius: 0.7rem;
  background: #fbfdfb;
  padding: 0.7rem 0.8rem;
  color: #26352d;
  font: inherit;
  font-size: 0.85rem;
}

.comment-form input:focus,
.post-form textarea:focus,
.post-form select:focus {
  border-color: #42a47d;
  outline: 3px solid rgba(11, 123, 91, 0.12);
}

.comment-form button {
  flex: none;
  border: 0;
  border-radius: 0.7rem;
  background: #087b59;
  padding: 0 0.9rem;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

.comments-load-more {
  width: 100%;
  min-height: 2.2rem;
  padding: 0.4rem;
  font-size: 0.75rem;
}

.comments-panel .comments-load-more {
  flex: none;
}

.posts-tip-card {
  padding: 1.2rem;
}

.posts-tip-icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.75rem;
  background: #e9f5ee;
  color: #087b59;
}

.posts-tip-card h2 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1rem;
}

.posts-tip-card p,
.posts-privacy-note {
  color: #718078;
  font-size: 0.8rem;
  line-height: 1.55;
}

.posts-tip-card p {
  margin: 0 0 1rem;
}

.posts-privacy-note {
  margin: 0.9rem 0;
  padding: 0 0.2rem;
}

.primary-button,
.secondary-button {
  min-height: 2.65rem;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}

.primary-button {
  border: 1px solid #087351;
  background: linear-gradient(135deg, #0b8a65, #087351);
  color: #fff;
  box-shadow: 0 5px 14px rgba(11, 123, 91, 0.15);
}

.secondary-button {
  border: 1px solid #dce8e0;
  background: #fff;
  color: #087351;
}

.secondary-button:hover {
  background: #f1f8f4;
}

.posts-tip-card .secondary-button {
  width: 100%;
}

.posts-status {
  padding: 1.5rem;
  color: #77857d;
  text-align: center;
}

.posts-status.is-error,
.form-error {
  color: #b42332;
}

.posts-status:empty,
.form-error:empty {
  display: none;
}

.hidden {
  display: none !important;
}

.post-dialog {
  width: min(32rem, calc(100% - 1.5rem));
  max-height: min(90vh, 52rem);
  overflow: auto;
  border: 1px solid #e4ece6;
  border-radius: 1.15rem;
  background: #fff;
  padding: 0;
  color: #17211d;
  box-shadow: 0 24px 80px rgba(16, 38, 26, 0.25);
}

.post-dialog::backdrop {
  background: rgba(13, 27, 19, 0.48);
  backdrop-filter: blur(3px);
}

.post-form {
  display: grid;
  gap: 0.65rem;
  padding: 1.2rem;
}

.share-post-preview {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  border: 1px solid #e8efea;
  border-radius: 0.85rem;
  background: #f8faf9;
  padding: 0.55rem;
}

.share-post-preview img,
.share-post-preview video {
  width: 3.2rem;
  height: 3.2rem;
  flex: none;
  border-radius: 0.6rem;
  object-fit: cover;
}

.share-post-preview > div {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.share-post-preview strong,
.share-post-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-post-preview strong {
  color: #25352c;
  font-size: 0.82rem;
}

.share-post-preview span {
  color: #748279;
  font-size: 0.75rem;
}

.post-form .share-search {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid #dfe8e2;
  border-radius: 0.8rem;
  background: #fbfdfb;
  padding: 0.65rem 0.8rem;
  color: #26352d;
  font: inherit;
  font-size: 0.85rem;
}

.post-form .share-search:focus {
  border-color: #42a47d;
  outline: 3px solid rgba(11, 123, 91, 0.12);
}

.share-selected {
  display: flex;
  min-height: 1.7rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.share-selection-hint {
  color: #748279;
  font-size: 0.75rem;
}

.share-chip {
  border: 1px solid #cce5d5 !important;
  border-radius: 999px !important;
  background: #e9f5ee !important;
  padding: 0.35rem 0.65rem !important;
  color: #087351 !important;
  font-size: 0.73rem !important;
}

.share-chip:hover {
  background: #dcece2 !important;
}

.share-recipients {
  display: grid;
  max-height: min(40vh, 20rem);
  gap: 0.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.2rem;
}

.share-recipient {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid transparent !important;
  border-radius: 0.8rem !important;
  background: #fff !important;
  padding: 0.55rem !important;
  color: #26352d !important;
  text-align: left;
}

.share-recipient:hover,
.share-recipient.is-selected {
  border-color: #d8eade !important;
  background: #f4faf6 !important;
}

.share-recipient-avatar {
  width: 2.65rem;
  height: 2.65rem;
  flex: none;
  border: 1px solid #e5ece7;
  border-radius: 50%;
  background: #edf4ef;
  object-fit: cover;
}

.share-recipient-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.15rem;
}

.share-recipient-copy strong,
.share-recipient-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-recipient-copy strong {
  font-size: 0.83rem;
  font-weight: 650;
}

.share-recipient-copy small {
  color: #78857e;
  font-size: 0.7rem;
}

.share-recipient-check {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  place-items: center;
  border: 1px solid #cbd8cf;
  border-radius: 50%;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.share-recipient.is-selected .share-recipient-check {
  border-color: #087b59;
  background: #087b59;
}

.share-empty {
  margin: 0;
  padding: 1rem 0.5rem;
  color: #78857e;
  font-size: 0.8rem;
  text-align: center;
}

.dialog-heading {
  margin-bottom: 0.4rem;
}

.dialog-heading h2 {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
}

.image-picker {
  display: grid;
  min-height: 12rem;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #b5cdbd;
  border-radius: 0.9rem;
  background: #f7fbf8;
  color: #087351;
  cursor: pointer;
  text-align: center;
}

.image-picker span {
  display: grid;
  gap: 0.35rem;
}

.image-picker small {
  color: #748279;
}

.image-picker img,
.image-picker video {
  width: 100%;
  max-height: 19rem;
  object-fit: contain;
}

@media (max-width: 460px) {
  .posts-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .posts-search button {
    grid-column: 1 / -1;
  }
}

.field-label {
  margin-top: 0.35rem;
  color: #34443b;
  font-size: 0.8rem;
  font-weight: 700;
}

.post-form textarea {
  resize: vertical;
}

.caption-meta {
  display: flex;
  justify-content: space-between;
  color: #85928a;
  font-size: 0.7rem;
}

.form-error {
  margin: 0;
  font-size: 0.8rem;
}

.wide-button {
  width: 100%;
  margin-top: 0.35rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 760px) {
  .posts-layout {
    display: block;
  }

  .posts-column {
    width: 100%;
  }

  .posts-sidebar {
    display: none;
  }

  .posts-page {
    width: min(100% - 1rem, 620px);
    padding-top: 1.2rem;
  }

  .posts-heading {
    align-items: flex-start;
    gap: 0.6rem;
  }

  .posts-heading .primary-button {
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
  }

  .comments-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(82dvh, 720px);
    border-top: 1px solid #e3ebe5;
    border-left: 0;
    border-radius: 1.1rem 1.1rem 0 0;
    transform: translateY(105%);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .comments-panel.is-open {
    transform: translateY(0);
  }

  .comments-content {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .comment-replies {
    margin-left: 1.35rem;
    padding-left: 0.45rem;
  }

  .comment-thread.is-reply .comment-replies {
    margin-left: 0.8rem;
    padding-left: 0.4rem;
  }
}
