:root {
  --bg: #050505;
  --surface: #111821;
  --surface-raised: #151f2a;
  --surface-soft: #0d141c;
  --green: #72f1b8;
  --green-dark: #54dca0;
  --accent: #72f1b8;
  --action: #004fff;
  --action-hover: #2f70ff;
  --ink: #f5f7fa;
  --muted: #8c9bab;
  --paper: #111821;
  --cream: #050505;
  --line: #263241;
  --danger: #ff7f87;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 10% 4%, rgba(37, 211, 102, 0.15), transparent 26rem),
    linear-gradient(180deg, #e8f2ed 0, var(--cream) 34rem, #eee8df 100%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.52);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.posts-app {
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.posts-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  margin: 0 -24px 28px;
  padding: calc(13px + env(safe-area-inset-top)) 24px 13px;
  color: #ffffff;
  background: rgba(7, 94, 84, 0.94);
  box-shadow: 0 8px 24px rgba(6, 72, 63, 0.18);
  backdrop-filter: blur(12px);
}

.back-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  font-size: 27px;
  line-height: 1;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.23);
}

.posts-heading {
  min-width: 0;
}

.posts-heading h1,
.section-heading h2 {
  margin: 0;
}

.posts-heading h1 {
  font-size: clamp(1.35rem, 5vw, 1.72rem);
}

.posts-heading .foreground-timer {
  width: fit-content;
  max-width: min(62vw, 360px);
  margin: 5px 0 0;
  padding: 3px 8px;
  overflow: hidden;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.posts-header .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.page-status {
  min-height: 22px;
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-status.error,
.field-status.error,
.form-footer p.error {
  color: var(--danger);
}

.session-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin: -8px 0 28px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.create-post {
  margin-bottom: 42px;
  padding: 22px;
  border: 1px solid rgba(7, 94, 84, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  color: var(--green-dark);
  font-size: clamp(1.3rem, 4vw, 1.65rem);
}

#postForm {
  display: grid;
  gap: 12px;
}

#postForm > label:not(.image-picker) {
  margin-top: 5px;
  color: #34453f;
  font-size: 0.88rem;
  font-weight: 700;
}

#postForm > label span {
  color: var(--muted);
  font-weight: 400;
}

.media-picker-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.image-picker {
  min-height: 86px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px dashed #aebdb6;
  border-radius: 14px;
  color: var(--green-dark);
  background: #f8fbf9;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.image-picker:hover {
  border-color: var(--accent);
  background: #f0faf4;
}

.image-picker:focus-within {
  outline: 3px solid rgba(37, 211, 102, 0.52);
  outline-offset: 3px;
}

.image-picker-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-size: 1.8rem;
}

.image-picker strong,
.image-picker small {
  display: block;
}

.image-picker strong em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
}

.image-picker small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

#postMedia {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.camera-button {
  width: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px dashed #aebdb6;
  border-radius: 14px;
  color: var(--green-dark);
  background: #f8fbf9;
  cursor: pointer;
  font-size: 1.4rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.camera-button:hover {
  border-color: var(--accent);
  background: #f0faf4;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-preview-tile {
  position: relative;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 12px;
  background: #dce4df;
}

.image-preview-tile img,
.image-preview-tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-preview-badge {
  position: absolute;
  left: 6px;
  bottom: 4px;
  color: #ffffff;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(16, 25, 22, 0.72);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.clear-images {
  justify-self: start;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(7, 94, 84, 0.22);
  border-radius: 999px;
  color: var(--green-dark);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.clear-images:hover {
  border-color: var(--accent);
  background: #f0faf4;
}

.field-status {
  min-height: 17px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

#postDescription {
  width: 100%;
  min-height: 98px;
  padding: 12px 13px;
  resize: vertical;
  border: 1px solid #bfcac5;
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.45;
}

.form-footer {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form-footer p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

#publishButton {
  min-width: 112px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  cursor: pointer;
  font-weight: 800;
}

#publishButton:hover:not(:disabled) {
  background: var(--green-dark);
}

#publishButton:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.posts-section {
  position: relative;
}

.feed-heading {
  margin-bottom: 24px;
}

.posts-feed {
  position: relative;
  display: grid;
  gap: 30px;
  padding-left: 34px;
}

.posts-feed::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 10px;
  left: 9px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(7, 94, 84, 0.16));
}

.post-card {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(7, 94, 84, 0.1);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.post-card::before {
  content: "";
  position: absolute;
  top: 23px;
  left: -32px;
  width: 12px;
  height: 12px;
  border: 4px solid #e9f3ee;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}

.post-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  background:
    linear-gradient(135deg, rgba(7, 94, 84, 0.08), rgba(255, 255, 255, 0.42)),
    #d9e1dd;
}

.post-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.post-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.post-carousel-track::-webkit-scrollbar {
  display: none;
}

.post-carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background:
    linear-gradient(135deg, rgba(7, 94, 84, 0.08), rgba(255, 255, 255, 0.42)),
    #d9e1dd;
}

.post-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(16, 25, 22, 0.5);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transform: translateY(-50%);
}

.post-carousel-nav:hover {
  background: rgba(16, 25, 22, 0.72);
}

.post-carousel-prev {
  left: 10px;
}

.post-carousel-next {
  right: 10px;
}

.post-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.post-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.post-carousel-dot.is-active {
  background: #ffffff;
}

.post-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 680px);
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
  touch-action: manipulation;
  transition: filter 180ms ease;
}

body.post-lightbox-open {
  overflow: hidden;
}

.post-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(5, 8, 12, 0.97);
}

.post-lightbox[hidden] {
  display: none;
}

.post-lightbox-topbar {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  color: #ffffff;
  border-bottom: 1px solid var(--line);
  background: #0d141c;
}

.post-lightbox-topbar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.post-lightbox-topbar a,
.post-lightbox-topbar button {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #dce4eb;
  background: var(--surface-raised);
  text-decoration: none;
  cursor: pointer;
}

.post-lightbox-topbar a {
  padding: 0 13px;
  font-size: 0.78rem;
  font-weight: 750;
}

.post-lightbox-topbar button {
  width: 38px;
  padding: 0;
  font-size: 1.55rem;
  line-height: 1;
}

.post-lightbox-body {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 12px;
  touch-action: pinch-zoom;
}

.post-lightbox-media {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 86px);
  max-height: calc(100dvh - 86px);
  border-radius: 10px;
  object-fit: contain;
  background: #000000;
  touch-action: pinch-zoom;
}

.post-card:hover .post-image {
  filter: brightness(1.025);
}

.post-content {
  padding: 18px 20px 20px;
}

.post-card.text-only .post-content {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 19px;
  background:
    radial-gradient(circle at 88% 16%, rgba(37, 211, 102, 0.2), transparent 9rem),
    linear-gradient(145deg, #fffdf9, #eef7f1);
}

.post-card.text-only .post-description {
  color: #1e3930;
  font-size: clamp(1.15rem, 4vw, 1.42rem);
  font-weight: 650;
  line-height: 1.55;
}

.post-date {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-description {
  margin: 0;
  color: #25342f;
  font-size: clamp(0.98rem, 3vw, 1.08rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post-link {
  color: #0277a8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.post-link:hover,
.post-link:focus-visible {
  color: #005f87;
}

.post-link-preview {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(7, 94, 84, 0.14);
  border-radius: 14px;
  background: #f8fbf9;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.post-link-preview:hover,
.post-link-preview:focus-visible {
  border-color: var(--accent);
  background: #f0faf4;
}

.post-link-preview.is-loading {
  min-height: 54px;
  align-items: center;
  justify-content: center;
}

.post-link-preview.is-loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid rgba(7, 94, 84, 0.25);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: post-link-preview-spin 800ms linear infinite;
}

@keyframes post-link-preview-spin {
  to {
    transform: rotate(360deg);
  }
}

.post-link-preview-image {
  width: 100%;
  max-height: 220px;
  display: block;
  object-fit: cover;
  background: #dce4df;
}

.post-link-preview-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 13px 12px;
}

.post-link-preview-site {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-link-preview-title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.post-link-preview-description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.post-view-status {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

.post-view-status.is-seen {
  color: #1683b5;
}

.post-owner-footer {
  margin-top: 16px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(7, 94, 84, 0.1);
}

.copy-post-link {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--header);
  background: rgba(7, 94, 84, 0.08);
  border: 1px solid rgba(7, 94, 84, 0.15);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
}

.post-card.is-linked-post {
  border-color: rgba(37, 211, 102, 0.88);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2), var(--shadow);
  animation: linked-post-pulse 900ms ease-out 2;
}

@keyframes linked-post-pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(37, 211, 102, 0.08), var(--shadow);
  }
}

.post-card.reveal-pending {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(48px) scale(0.975);
}

.post-card.reveal-pending.is-visible {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1);
  transition:
    opacity 580ms ease,
    transform 700ms cubic-bezier(0.18, 0.72, 0.22, 1),
    filter 500ms ease;
}

.empty-posts {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 32px;
  border: 1px dashed #adbbb5;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-posts span {
  color: var(--green);
  font-size: 2.5rem;
}

.empty-posts p {
  margin: 8px 0 0;
}

.load-more {
  min-height: 44px;
  display: block;
  margin: 28px auto 0;
  padding: 0 18px;
  border: 1px solid rgba(7, 94, 84, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 253, 249, 0.9);
  cursor: pointer;
  font-weight: 800;
}

.load-more:hover:not(:disabled) {
  background: #ffffff;
  border-color: var(--green);
}

.load-more:disabled {
  opacity: 0.58;
  cursor: wait;
}

.live-activity-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(7, 94, 84, 0.94);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.live-activity-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .posts-app {
    padding-right: 14px;
    padding-bottom: 48px;
    padding-left: 14px;
  }

  .posts-header {
    min-height: 76px;
    margin-right: -14px;
    margin-bottom: 22px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .create-post {
    padding: 17px;
    border-radius: 16px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #publishButton {
    width: 100%;
  }

  .posts-feed {
    gap: 24px;
    padding-left: 24px;
  }

  .posts-feed::before {
    left: 5px;
  }

  .post-card::before {
    left: -24px;
  }

  .post-content {
    padding: 15px 16px 17px;
  }

  .post-owner-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .post-card.reveal-pending {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Technical dark interface */

html {
  color-scheme: dark;
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 5%, rgba(0, 79, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 92% 92%, rgba(114, 241, 184, 0.055), transparent 30rem),
    var(--bg);
}

button,
a,
input,
textarea,
.post-card,
.create-post,
.image-picker,
.post-link-preview {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline-color: rgba(114, 241, 184, 0.45);
}

.posts-app {
  width: min(100%, 1480px);
  padding: 0 clamp(16px, 3.5vw, 52px) 88px;
}

.posts-header {
  min-height: 104px;
  margin: 0 calc(clamp(16px, 3.5vw, 52px) * -1) 26px;
  padding: calc(18px + env(safe-area-inset-top)) clamp(16px, 3.5vw, 52px) 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 18, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.back-link {
  width: 46px;
  height: 46px;
  color: #cbd6df;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.back-link:hover,
.back-link:focus-visible {
  color: #ffffff;
  border-color: #3b4c5f;
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.posts-heading {
  flex: 1;
}

.posts-heading h1 {
  color: var(--ink);
  font-size: clamp(1.45rem, 4vw, 2.05rem);
  letter-spacing: -0.04em;
}

.posts-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.eyebrow,
.posts-header .eyebrow {
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
}

.posts-heading .foreground-timer {
  color: var(--accent);
  border: 1px solid rgba(114, 241, 184, 0.15);
  background: rgba(114, 241, 184, 0.07);
}

.page-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  padding: 9px 14px;
  color: #a9b6c3;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17, 24, 33, 0.78);
  font-size: 0.78rem;
}

.page-status:empty {
  display: none;
}

.page-status::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(114, 241, 184, 0.08);
}

.page-status.error,
.field-status.error,
.form-footer p.error {
  color: var(--danger);
}

.page-status.error::before {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 127, 135, 0.08);
}

.session-action {
  color: #ffffff;
  border: 1px solid rgba(0, 79, 255, 0.35);
  background: var(--action);
}

.create-post {
  margin-bottom: 44px;
  padding: clamp(20px, 3vw, 30px);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -0.035em;
}

#postForm > label:not(.image-picker) {
  color: #c2cdd7;
}

.image-picker,
.camera-button {
  color: #d6dfe7;
  border: 1px dashed #39495b;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.image-picker:hover,
.camera-button:hover {
  color: #ffffff;
  border-color: var(--action);
  background: #111b27;
  transform: translateY(-2px);
}

.image-picker:focus-within {
  outline-color: rgba(114, 241, 184, 0.4);
}

.image-picker-icon {
  color: #ffffff;
  border-radius: 14px;
  background: var(--action);
}

.image-preview-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.clear-images {
  color: #b9c6d1;
  border-color: var(--line);
  background: transparent;
}

.clear-images:hover {
  color: #ffffff;
  border-color: #42556a;
  background: var(--surface-raised);
}

.field-status,
.form-footer p {
  color: var(--muted);
}

#postDescription {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0b1118;
  box-shadow: none;
}

#postDescription:focus {
  color: var(--ink);
  border-color: var(--action);
  background: #0d141c;
  box-shadow: 0 0 0 4px rgba(0, 79, 255, 0.13);
}

#postDescription::placeholder {
  color: #657484;
}

#publishButton {
  min-height: 46px;
  border-radius: var(--radius-sm);
  background: var(--action);
  box-shadow: 0 10px 24px rgba(0, 79, 255, 0.2);
}

#publishButton:hover:not(:disabled) {
  background: var(--action-hover);
  transform: translateY(-2px);
}

#publishButton:disabled {
  color: #7f8b98;
  background: #26313d;
  box-shadow: none;
}

.feed-heading {
  margin-bottom: 22px;
}

.posts-feed {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 22px;
  padding-left: 0;
}

.posts-feed::before,
.post-card::before {
  display: none;
}

.post-card {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.post-card.reveal-pending.is-visible:hover {
  border-color: #3a4b5e;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.38);
  transform: translateY(-3px);
}

.post-image-wrap,
.post-carousel-slide {
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 79, 255, 0.09), transparent 24rem),
    #0b1118;
}

.post-image {
  max-height: 460px;
}

.post-card:hover .post-image {
  filter: brightness(1.035);
}

.post-carousel-nav {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(9, 13, 18, 0.72);
}

.post-carousel-nav:hover {
  background: rgba(21, 31, 42, 0.94);
}

.post-carousel-dot.is-active {
  background: var(--accent);
}

.post-content {
  padding: 18px 19px 20px;
}

.post-card.text-only .post-content {
  min-height: 250px;
  border-radius: 0;
  background:
    radial-gradient(circle at 88% 14%, rgba(0, 79, 255, 0.12), transparent 11rem),
    radial-gradient(circle at 8% 90%, rgba(114, 241, 184, 0.06), transparent 10rem),
    var(--surface);
}

.post-card.text-only .post-description,
.post-description {
  color: #e8edf2;
}

.post-date {
  color: var(--accent);
}

.post-link {
  color: #7ca0ff;
}

.post-link:hover,
.post-link:focus-visible {
  color: #9bb5ff;
}

.post-link-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.post-link-preview:hover,
.post-link-preview:focus-visible {
  border-color: var(--action);
  background: #111b27;
  transform: translateY(-2px);
}

.post-link-preview.is-loading::after {
  border-color: rgba(0, 79, 255, 0.22);
  border-top-color: var(--action);
}

.post-link-preview-image {
  background: var(--surface-soft);
}

.post-link-preview-title {
  color: var(--ink);
}

.post-view-status {
  color: var(--muted);
}

.post-view-status.is-seen {
  color: #7ca0ff;
}

.post-owner-footer {
  border-top-color: var(--line);
}

.copy-post-link {
  color: #a9bcff;
  border: 1px solid rgba(0, 79, 255, 0.24);
  background: rgba(0, 79, 255, 0.08);
}

.copy-post-link:hover {
  color: #ffffff;
  border-color: var(--action);
  background: rgba(0, 79, 255, 0.16);
}

.post-card.is-linked-post {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(114, 241, 184, 0.12), var(--shadow);
}

.empty-posts {
  grid-column: 1 / -1;
  min-height: 260px;
  border: 1px dashed #344457;
  border-radius: var(--radius);
  background: rgba(17, 24, 33, 0.48);
}

.empty-posts span {
  color: var(--accent);
}

.load-more {
  min-height: 46px;
  margin-top: 30px;
  color: #a9bcff;
  border: 1px solid rgba(0, 79, 255, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(0, 79, 255, 0.07);
}

.load-more:hover:not(:disabled) {
  color: #ffffff;
  border-color: var(--action);
  background: rgba(0, 79, 255, 0.14);
  transform: translateY(-2px);
}

.live-activity-toast {
  color: #ffffff;
  border: 1px solid rgba(114, 241, 184, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(17, 31, 28, 0.96);
  box-shadow: var(--shadow);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.post-meta .post-date {
  margin-bottom: 0;
}

.post-hidden-badge {
  padding: 4px 8px;
  border: 1px solid rgba(255, 190, 92, 0.28);
  border-radius: 999px;
  color: #ffd28a;
  background: rgba(145, 91, 8, 0.16);
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.post-card.is-hidden {
  border-style: dashed;
  border-color: rgba(255, 190, 92, 0.32);
}

.post-card.is-hidden::before {
  background: #d59a3a;
  box-shadow: 0 0 0 2px #d59a3a;
}

.post-owner-actions,
.post-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.post-owner-action {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #c8d2dc;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 750;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.post-owner-action:hover:not(:disabled),
.post-owner-action:focus-visible {
  color: #ffffff;
  border-color: rgba(77, 124, 255, 0.58);
  background: rgba(77, 124, 255, 0.12);
}

.post-owner-action.is-primary {
  color: #ffffff;
  border-color: var(--action);
  background: var(--action);
}

.post-owner-action.is-danger {
  color: #ffaaa4;
  border-color: rgba(255, 92, 82, 0.3);
  background: rgba(255, 92, 82, 0.07);
}

.post-owner-action.is-danger:hover:not(:disabled),
.post-owner-action.is-danger:focus-visible {
  color: #ffffff;
  border-color: #ff6258;
  background: rgba(255, 92, 82, 0.18);
}

.post-owner-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

.post-edit-form {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 5, 5, 0.35);
}

.post-edit-form[hidden] {
  display: none;
}

.post-edit-input {
  width: 100%;
  min-height: 96px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid #344457;
  border-radius: 10px;
  color: var(--ink);
  background: #0a1017;
  line-height: 1.45;
}

.post-edit-input:focus {
  outline: 3px solid rgba(77, 124, 255, 0.22);
  border-color: var(--action);
}

.post-edit-status {
  min-height: 18px;
  margin: 7px 0;
  color: #ffaaa4;
  font-size: 0.75rem;
}

@media (min-width: 720px) {
  .posts-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .posts-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .posts-app {
    padding-right: 14px;
    padding-left: 14px;
  }

  .posts-header {
    min-height: 88px;
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .posts-subtitle {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .create-post {
    padding: 18px;
  }

  .media-picker-row {
    gap: 8px;
  }

  .image-picker {
    min-height: 82px;
    padding: 12px;
  }

  .image-picker-icon {
    width: 42px;
    height: 42px;
  }

  .posts-feed {
    gap: 20px;
  }

  .post-owner-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .post-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
