:root {
  --feed-bg: #eef4ee;
  --feed-surface: #ffffff;
  --feed-surface-2: #f4f8f4;
  --feed-ink: #172117;
  --feed-muted: #718071;
  --feed-line: rgba(26, 48, 29, 0.09);
  --feed-green: #276a3c;
  --feed-green-2: #5fa273;
  --feed-danger: #df3158;
  --feed-shadow: 0 18px 55px rgba(29, 57, 35, 0.12);
  --feed-radius: 28px;
}

html.theme-dark {
  --feed-bg: #0e140f;
  --feed-surface: #172019;
  --feed-surface-2: #202b22;
  --feed-ink: #f0f6f1;
  --feed-muted: #94a297;
  --feed-line: rgba(225, 241, 229, 0.09);
  --feed-green: #78bf8a;
  --feed-green-2: #4c8d5f;
  --feed-danger: #ff6b86;
  --feed-shadow: 0 20px 58px rgba(0, 0, 0, 0.32);
}

html,
body {
  overscroll-behavior-y: none;
}

body.feed-page {
  min-height: 100dvh;
  margin: 0;
  padding: 0 0 calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  color: var(--feed-ink);
  background:
    radial-gradient(circle at 4% -8%, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at 96% 8%, rgba(101, 165, 118, 0.22), transparent 35%),
    linear-gradient(180deg, #a9c8aa 0, var(--feed-bg) 280px) !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

html.theme-dark body.feed-page {
  background:
    radial-gradient(circle at 90% -2%, rgba(72, 134, 88, 0.22), transparent 34%),
    linear-gradient(180deg, #162519 0, var(--feed-bg) 260px) !important;
}

body.feed-modal-open {
  overflow: hidden;
  touch-action: none;
}

button,
textarea,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.feed-app {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
}

.feed-top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(169, 200, 170, 0.97), rgba(169, 200, 170, 0.86) 76%, rgba(169, 200, 170, 0));
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
  transform: translateZ(0);
}

html.theme-dark .feed-top {
  background: linear-gradient(180deg, rgba(22, 37, 25, 0.97), rgba(22, 37, 25, 0.86) 76%, rgba(22, 37, 25, 0));
}

.feed-brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 60px;
  padding: 8px 16px 5px;
}

.feed-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #1d5130, #4d9562);
  box-shadow: 0 8px 20px rgba(38, 99, 56, 0.25);
}

.feed-brand-mark svg {
  width: 22px;
  height: 22px;
}

.feed-brand-copy {
  flex: 1;
  min-width: 0;
}

.feed-brand-copy h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.feed-brand-copy p {
  margin: 4px 0 0;
  color: rgba(23, 33, 23, 0.62);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

html.theme-dark .feed-brand-copy p {
  color: rgba(240, 246, 241, 0.58);
}

.feed-icon-btn {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  color: var(--feed-ink);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 7px 18px rgba(43, 76, 49, 0.08);
  cursor: pointer;
}

html.theme-dark .feed-icon-btn {
  border-color: var(--feed-line);
  background: rgba(32, 43, 34, 0.82);
}

.feed-icon-btn svg {
  width: 20px;
  height: 20px;
}

.feed-publish-top {
  color: #fff;
  background: #183e26;
}

html.theme-dark .feed-publish-top {
  color: #132019;
  background: #89c89a;
}

.feed-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 3px 16px 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 10px 26px rgba(37, 73, 44, 0.08);
}

html.theme-dark .feed-tabs {
  border-color: var(--feed-line);
  background: rgba(17, 25, 19, 0.65);
}

.feed-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  color: rgba(23, 33, 23, 0.65);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html.theme-dark .feed-tabs button {
  color: rgba(240, 246, 241, 0.62);
}

.feed-tabs button[aria-selected="true"] {
  color: var(--feed-ink);
  background: var(--feed-surface);
  box-shadow: 0 5px 16px rgba(42, 74, 47, 0.12);
}

.feed-tabs button:active {
  transform: scale(0.97);
}

.feed-topic-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 17px;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-topic-strip::-webkit-scrollbar,
.carousel-track::-webkit-scrollbar,
.composer-media::-webkit-scrollbar {
  display: none;
}

.feed-topic {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: rgba(23, 33, 23, 0.72);
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 170ms ease, background 170ms ease, color 170ms ease;
}

html.theme-dark .feed-topic {
  border-color: var(--feed-line);
  color: var(--feed-muted);
  background: rgba(26, 36, 28, 0.82);
}

.feed-topic.on {
  border-color: #1d5130;
  color: #fff;
  background: #1d5130;
}

html.theme-dark .feed-topic.on {
  border-color: #80c490;
  color: #101912;
  background: #80c490;
}

.feed-topic:active {
  transform: scale(0.96);
}

.feed-content {
  padding: 2px 12px 16px;
}

.feed-compose-teaser {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 13px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 34px rgba(36, 69, 41, 0.09);
  cursor: pointer;
}

html.theme-dark .feed-compose-teaser {
  border-color: var(--feed-line);
  background: rgba(23, 32, 25, 0.94);
}

.feed-compose-teaser[hidden] {
  display: none;
}

.feed-compose-prompt {
  flex: 1;
  color: var(--feed-muted);
  font-size: 13px;
  font-weight: 650;
}

.feed-compose-add {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 12px;
  color: var(--feed-green);
  background: var(--feed-surface-2);
  font-size: 12px;
  font-weight: 850;
}

.feed-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #7bb68a, #286b3c);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-post {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--feed-radius);
  background: var(--feed-surface);
  box-shadow: var(--feed-shadow);
  animation: feedCardIn 430ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

html.theme-dark .feed-post {
  border-color: var(--feed-line);
}

@keyframes feedCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feed-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 67px;
  padding: 12px 12px 10px;
}

.feed-author-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.feed-author-meta {
  min-width: 0;
  flex: 1;
}

.feed-author-name {
  display: block;
  overflow: hidden;
  color: var(--feed-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-author-sub {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--feed-muted);
  font-size: 11px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-follow {
  min-height: 33px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #215d35;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 170ms ease, color 170ms ease, background 170ms ease;
}

.feed-follow.on {
  color: var(--feed-green);
  background: var(--feed-surface-2);
}

.feed-follow:active {
  transform: scale(0.95);
}

.feed-more {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: var(--feed-muted);
  background: transparent;
  cursor: pointer;
}

.feed-more svg {
  width: 21px;
  height: 21px;
}

.feed-carousel {
  position: relative;
  overflow: hidden;
  background: #dbe5dc;
  touch-action: pan-x pan-y;
}

html.theme-dark .feed-carousel {
  background: #101712;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.carousel-slide {
  position: relative;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #dbe5dc;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-count,
.feed-topic-badge,
.feed-expand {
  position: absolute;
  z-index: 4;
  top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(12, 21, 14, 0.62);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.feed-topic-badge {
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.carousel-count {
  right: 51px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.feed-expand {
  display: grid;
  right: 12px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}

.feed-expand svg {
  width: 17px;
  height: 17px;
}

.carousel-dots {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot.on {
  width: 17px;
  border-radius: 999px;
  background: #fff;
}

.feed-like-burst {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.35);
}

.feed-like-burst svg {
  width: 94px;
  height: 94px;
  color: #fff;
  fill: #fff;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.feed-like-burst.pop {
  animation: feedHeart 680ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes feedHeart {
  0% { opacity: 0; transform: scale(0.35) rotate(-8deg); }
  28% { opacity: 1; transform: scale(1.08) rotate(4deg); }
  65% { opacity: 1; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.35); }
}

.feed-post-body {
  padding: 11px 14px 15px;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 36px;
}

.feed-action {
  display: inline-flex;
  min-width: 38px;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0 8px 0 0;
  border: 0;
  color: var(--feed-ink);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease;
}

.feed-action svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.feed-action:active {
  transform: scale(0.9);
}

.feed-action.like.on {
  color: var(--feed-danger);
}

.feed-action.like.on svg,
.feed-action.save.on svg {
  fill: currentColor;
}

.feed-action.save {
  margin-left: auto;
  padding-right: 0;
}

.feed-action.save.on {
  color: var(--feed-green);
}

.feed-post-copy {
  margin-top: 6px;
  color: var(--feed-ink);
  font-size: 14px;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feed-post-copy.collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.feed-post-copy strong {
  font-weight: 900;
}

.feed-more-text {
  display: inline;
  margin-left: 5px;
  padding: 0;
  border: 0;
  color: var(--feed-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.feed-comment-preview {
  margin-top: 9px;
  padding: 0;
  border: 0;
  color: var(--feed-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.feed-edited {
  color: var(--feed-muted);
  font-size: 10px;
  font-weight: 650;
}

.feed-empty {
  margin: 8px 0;
  padding: 45px 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 42px rgba(42, 73, 47, 0.08);
  text-align: center;
}

html.theme-dark .feed-empty {
  border-color: var(--feed-line);
  background: rgba(23, 32, 25, 0.9);
}

.feed-empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 20px;
  color: var(--feed-green);
  background: var(--feed-surface-2);
  font-size: 26px;
}

.feed-empty h2 {
  margin: 0 0 7px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.feed-empty p {
  margin: 0;
  color: var(--feed-muted);
  font-size: 13px;
  line-height: 1.5;
}

.feed-skeleton {
  overflow: hidden;
  height: 510px;
  border-radius: var(--feed-radius);
  background: var(--feed-surface);
  box-shadow: var(--feed-shadow);
}

.skeleton-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 66px;
  padding: 0 13px;
}

.skeleton-circle,
.skeleton-line,
.skeleton-media {
  position: relative;
  overflow: hidden;
  background: var(--feed-surface-2);
}

.skeleton-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.skeleton-copy {
  flex: 1;
}

.skeleton-line {
  width: 62%;
  height: 10px;
  border-radius: 999px;
}

.skeleton-line + .skeleton-line {
  width: 40%;
  margin-top: 8px;
}

.skeleton-media {
  height: 390px;
}

.skeleton-circle::after,
.skeleton-line::after,
.skeleton-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: translateX(-100%);
  animation: skeletonSweep 1.25s infinite;
}

html.theme-dark .skeleton-circle::after,
html.theme-dark .skeleton-line::after,
html.theme-dark .skeleton-media::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
}

@keyframes skeletonSweep {
  to { transform: translateX(100%); }
}

.feed-loader {
  display: none;
  height: 64px;
  align-items: center;
  justify-content: center;
}

.feed-loader.show {
  display: flex;
}

.feed-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid rgba(39, 106, 60, 0.18);
  border-top-color: var(--feed-green);
  border-radius: 50%;
  animation: feedSpin 700ms linear infinite;
}

@keyframes feedSpin {
  to { transform: rotate(360deg); }
}

/* Bottom sheets */
.feed-sheet {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  transition: visibility 260ms;
}

.feed-sheet.open {
  visibility: visible;
}

.feed-sheet-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  border: 0;
  background: rgba(8, 14, 9, 0.44);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity 260ms ease;
}

.feed-sheet.open .feed-sheet-backdrop {
  opacity: 1;
}

.feed-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88dvh, 820px);
  overflow: hidden;
  border: 1px solid var(--feed-line);
  border-radius: 28px 28px 0 0;
  background: var(--feed-surface);
  box-shadow: 0 -20px 60px rgba(8, 18, 10, 0.18);
  transform: translateY(104%);
  transition: transform 300ms cubic-bezier(0.2, 0.78, 0.24, 1);
}

.feed-sheet.open .feed-sheet-panel {
  transform: translateY(0);
}

.feed-sheet-panel.tall {
  height: min(86dvh, 780px);
}

.feed-sheet-grab {
  width: 40px;
  height: 4px;
  margin: 9px auto 1px;
  border-radius: 999px;
  background: var(--feed-line);
}

.feed-sheet-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 8px;
  border-bottom: 1px solid var(--feed-line);
}

.feed-sheet-head h2 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.feed-sheet-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--feed-ink);
  background: var(--feed-surface-2);
  font-size: 19px;
  cursor: pointer;
}

.feed-sheet-scroll {
  overflow-y: auto;
  max-height: calc(88dvh - 72px);
  padding: 15px 16px calc(19px + env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.composer-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 132px;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--feed-line);
  border-radius: 18px;
  outline: none;
  color: var(--feed-ink);
  background: var(--feed-surface-2);
  font-size: 15px;
  line-height: 1.45;
}

.composer-text:focus {
  border-color: rgba(39, 106, 60, 0.45);
  box-shadow: 0 0 0 3px rgba(39, 106, 60, 0.08);
}

.composer-label {
  display: block;
  margin: 15px 1px 8px;
  color: var(--feed-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.composer-topics,
.prefs-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.composer-topic,
.prefs-topic {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--feed-line);
  border-radius: 999px;
  color: var(--feed-muted);
  background: var(--feed-surface-2);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.composer-topic.on,
.prefs-topic.on {
  border-color: var(--feed-green);
  color: #fff;
  background: #276a3c;
}

html.theme-dark .composer-topic.on,
html.theme-dark .prefs-topic.on {
  color: #102015;
  background: #83c794;
}

.composer-media {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 1px 6px;
  scrollbar-width: none;
}

.composer-thumb {
  position: relative;
  width: 108px;
  height: 135px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: var(--feed-surface-2);
}

.composer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-thumb-num {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 17, 11, 0.6);
  font-size: 10px;
  font-weight: 900;
}

.composer-thumb-actions {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.composer-thumb-actions button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: rgba(10, 17, 11, 0.68);
  font-size: 12px;
  cursor: pointer;
}

.composer-upload {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  border: 1px dashed rgba(39, 106, 60, 0.35);
  border-radius: 16px;
  color: var(--feed-green);
  background: rgba(90, 158, 107, 0.06);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.composer-upload[hidden] {
  display: none;
}

.composer-note {
  margin: 8px 2px 0;
  color: var(--feed-muted);
  font-size: 11px;
  line-height: 1.35;
}

.feed-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #1f5b34, #3e8b55);
  box-shadow: 0 10px 25px rgba(39, 106, 60, 0.23);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.feed-primary:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: wait;
}

.comments-panel {
  display: flex;
  flex-direction: column;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
}

.comment-row .feed-avatar {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.comment-copy {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  border-radius: 7px 16px 16px 16px;
  background: var(--feed-surface-2);
}

.comment-name {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 900;
}

.comment-body {
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment-meta {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  color: var(--feed-muted);
  font-size: 9px;
  font-weight: 700;
}

.comment-meta button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: 850;
  cursor: pointer;
}

.comments-empty {
  padding: 55px 18px;
  color: var(--feed-muted);
  text-align: center;
  font-size: 13px;
}

.comments-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--feed-line);
  background: var(--feed-surface);
}

.comments-form input {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid var(--feed-line);
  border-radius: 999px;
  outline: none;
  color: var(--feed-ink);
  background: var(--feed-surface-2);
  font-size: 14px;
}

.comments-form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #276a3c;
  font-weight: 900;
  cursor: pointer;
}

.action-list {
  display: grid;
  gap: 4px;
  padding: 8px 12px calc(13px + env(safe-area-inset-bottom, 0px));
}

.action-item {
  display: flex;
  min-height: 51px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 15px;
  color: var(--feed-ink);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.action-item:hover,
.action-item:active {
  background: var(--feed-surface-2);
}

.action-item.danger {
  color: var(--feed-danger);
}

.action-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--feed-surface-2);
  font-size: 16px;
}

.report-options {
  display: grid;
  gap: 7px;
}

.report-option {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--feed-line);
  border-radius: 14px;
  color: var(--feed-ink);
  background: var(--feed-surface-2);
  text-align: left;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.report-option.on {
  border-color: var(--feed-danger);
  box-shadow: 0 0 0 2px rgba(223, 49, 88, 0.08);
}

.report-details {
  box-sizing: border-box;
  width: 100%;
  min-height: 78px;
  margin-top: 9px;
  padding: 11px;
  resize: vertical;
  border: 1px solid var(--feed-line);
  border-radius: 14px;
  outline: none;
  color: var(--feed-ink);
  background: var(--feed-surface-2);
  font-size: 13px;
}

.prefs-intro {
  margin: 0 0 13px;
  color: var(--feed-muted);
  font-size: 13px;
  line-height: 1.48;
}

.prefs-topic.on::after {
  content: "✓";
}

/* Fullscreen viewer */
.feed-lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: none;
  overflow: hidden;
  color: #fff;
  background: #050706;
}

.feed-lightbox.open {
  display: block;
  animation: lightboxIn 180ms ease both;
}

@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-top {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent);
}

.lightbox-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
  cursor: pointer;
}

.lightbox-count {
  font-size: 12px;
  font-weight: 850;
}

.lightbox-track {
  display: flex;
  overflow-x: auto;
  width: 100%;
  height: 100%;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lightbox-track::-webkit-scrollbar {
  display: none;
}

.lightbox-slide {
  display: grid;
  width: 100%;
  min-width: 100%;
  height: 100%;
  place-items: center;
  scroll-snap-align: start;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.feed-toast-stack {
  position: fixed;
  z-index: 400;
  right: 14px;
  bottom: calc(95px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.feed-toast {
  max-width: 390px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 25, 17, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 750;
  animation: toastIn 220ms ease both;
}

.feed-toast.error {
  background: rgba(139, 27, 50, 0.94);
}

.feed-toast.out {
  animation: toastOut 200ms ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

@media (min-width: 700px) {
  .feed-content {
    padding-inline: 0;
  }
  .feed-post,
  .feed-compose-teaser,
  .feed-empty,
  .feed-skeleton {
    border-radius: 30px;
  }
}

@media (max-width: 370px) {
  .feed-brand-copy p {
    display: none;
  }
  .feed-follow {
    padding-inline: 9px;
  }
  .feed-topic-strip,
  .feed-brand-row {
    padding-inline: 12px;
  }
  .feed-tabs {
    margin-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
