.wall-hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: 3.5rem 1rem 2rem;
  border-bottom: 1px solid var(--line);
}

.wall-hero h1 {
  max-width: none;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.wall-tagline {
  margin: .85rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
}

.wall-intro {
  max-width: 660px;
  margin: .9rem 0 0;
  color: var(--muted);
}

.wall-demo-banner {
  margin-top: 1.4rem;
  padding: .85rem 1rem;
  background: var(--soft);
  border-left: 3px solid var(--ink);
  font-size: .88rem;
}

.wall-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.pub-wall-section {
  background: #f3eee6;
  border-bottom: 1px solid var(--line);
  padding: 3rem 1rem 4rem;
}

.pub-wall-inner {
  max-width: var(--page);
  margin: 0 auto;
}

.pub-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 1.75rem;
  align-items: start;
}

.pinned-photo {
  position: relative;
  margin: 0;
  padding: .75rem .75rem 1.1rem;
  background: #fffdf9;
  border: 1px solid #d9d1c5;
  box-shadow: 0 8px 20px rgba(17, 17, 17, .1);
  transform: rotate(var(--tilt, -0.8deg));
  transition: transform .18s ease, box-shadow .18s ease;
}

.pinned-photo:nth-child(3n+1) { --tilt: -1.1deg; }
.pinned-photo:nth-child(3n+2) { --tilt: 0.9deg; }
.pinned-photo:nth-child(3n) { --tilt: -0.5deg; }

.pinned-photo:hover,
.pinned-photo:focus-within {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 12px 26px rgba(17, 17, 17, .16);
}

.pinned-photo::before {
  content: "";
  position: absolute;
  top: .45rem;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #2b2b2b;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
  z-index: 2;
}

.pinned-photo-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pinned-photo-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.pinned-photo-frame {
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 4 / 3;
}

.pinned-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pinned-note-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #f8f5ef;
  border: 1px dashed #c8bfb2;
  aspect-ratio: 4 / 3;
  color: var(--muted);
  text-align: center;
  font-size: .95rem;
}

.pinned-caption {
  padding-top: .85rem;
}

.handwritten-headline {
  margin: 0;
  font-family: 'Bradley Hand', 'Segoe Print', 'Chalkboard SE', cursive, sans-serif;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink);
}

.pinned-meta {
  margin: .45rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--muted);
}

.sample-tag {
  padding: .15rem .45rem;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}

.wall-form-section,
.moderation-section {
  max-width: var(--page);
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

.wall-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 2.5rem;
  align-items: start;
}

.wall-form {
  display: grid;
  gap: 1.15rem;
}

.wall-field label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 700;
  font-size: .92rem;
}

.wall-field input[type="text"],
.wall-field textarea,
.wall-field input[type="file"] {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.wall-field textarea {
  min-height: 120px;
  resize: vertical;
}

.wall-hint {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.wall-consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .86rem;
}

.wall-consent input {
  margin-top: .25rem;
  flex: 0 0 auto;
}

.wall-form-status {
  margin: 0;
  padding: .85rem 1rem;
  background: #edf5ef;
  border-left: 3px solid #176c3a;
  font-size: .9rem;
}

.wall-form-status[hidden] {
  display: none;
}

.wall-preview-card h3 {
  margin: 0 0 .85rem;
  font-size: 1rem;
}

.review-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.review-dialog::backdrop {
  background: rgba(17, 17, 17, .65);
}

.review-dialog-body {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.review-dialog-media {
  background: var(--soft);
  max-height: 55vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.review-dialog-media img,
.review-dialog-media video {
  width: auto;
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}

.review-dialog-close {
  position: sticky;
  top: .75rem;
  float: right;
  margin: .75rem .75rem 0 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 1.35rem;
  cursor: pointer;
}

.moderation-box {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.moderation-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.moderation-item {
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.moderation-item p {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.moderation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.moderation-buttons button {
  padding: .5rem .85rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-weight: 700;
  font-size: .84rem;
}

.moderation-buttons button.approve-btn {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 900px) {
  .pub-wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wall-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pub-wall-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .pinned-photo {
    transform: none;
  }
}
