.memory-wall-shell {
  --wall-bg: #050814;
  --wall-surface: rgba(9, 13, 28, 0.86);
  --wall-surface-strong: rgba(10, 15, 33, 0.94);
  --wall-line: rgba(208, 218, 255, 0.12);
  --wall-text: #f5efff;
  --wall-muted: rgba(233, 226, 255, 0.74);
  --wall-gold: #f0cf8f;
  --wall-blue: #3f8cf8;
  --wall-lavender: #e3d9fc;
  --wall-pink: #d88af2;
  position: relative;
  min-height: 100vh;
  padding: 24px clamp(18px, 2vw, 34px) 120px;
  background:
    linear-gradient(180deg, rgba(6, 9, 20, 0.52), rgba(5, 8, 18, 0.92)),
    radial-gradient(circle at 18% 12%, rgba(63, 140, 248, 0.18), transparent 26%),
    radial-gradient(circle at 74% 18%, rgba(216, 138, 242, 0.16), transparent 28%),
    radial-gradient(circle at 52% 72%, rgba(227, 217, 252, 0.12), transparent 24%),
    var(--memory-wall-hero) center/cover no-repeat,
    #04070f;
  color: var(--wall-text);
  overflow-x: clip;
}

.memory-wall-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(rgba(255, 255, 255, 0.08) 0.8px, transparent 1px),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.03) 48%, transparent 52%);
  background-size: 36px 36px, auto;
  opacity: 0.46;
}

.memory-wall-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.memory-wall-stars span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.44);
  animation: memoryWallTwinkle 6s ease-in-out infinite;
}

.memory-wall-stars span:nth-child(1) { top: 8%; left: 14%; }
.memory-wall-stars span:nth-child(2) { top: 17%; left: 78%; width: 5px; height: 5px; animation-delay: 1.5s; }
.memory-wall-stars span:nth-child(3) { top: 36%; left: 6%; width: 4px; height: 4px; animation-delay: 2.4s; }
.memory-wall-stars span:nth-child(4) { top: 62%; left: 88%; width: 6px; height: 6px; animation-delay: 0.8s; }
.memory-wall-stars span:nth-child(5) { top: 74%; left: 26%; width: 4px; height: 4px; animation-delay: 3.2s; }
.memory-wall-stars span:nth-child(6) { top: 86%; left: 70%; width: 7px; height: 7px; animation-delay: 4s; }

.memory-wall-topbar,
.memory-wall-main {
  position: relative;
  z-index: 1;
}

.memory-wall-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 26px;
  flex-wrap: wrap;
}

.memory-wall-topbar-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}

.memory-wall-topbar-kicker,
.memory-wall-panel-kicker,
.memory-wall-kicker {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(238, 227, 255, 0.68);
}

.memory-wall-topbar-brand strong {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
}

.memory-wall-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.memory-wall-topbar-nav a {
  text-decoration: none;
  color: rgba(245, 239, 255, 0.82);
}

.memory-wall-topbar-nav a:hover,
.memory-wall-topbar-nav a:focus-visible {
  color: #fff3c6;
}

.memory-wall-main {
  display: grid;
  gap: 24px;
}

.memory-wall-hero-copy {
  position: relative;
  padding: clamp(18px, 3vw, 34px) clamp(10px, 2vw, 24px) 8px;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.memory-wall-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.memory-wall-hero-copy h1 {
  margin: 14px 0 12px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(3.2rem, 7vw, 5.9rem);
  font-weight: 400;
  line-height: 0.94;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.08),
    0 0 48px rgba(216, 138, 242, 0.08);
}

.memory-wall-subtitle {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.42rem);
  color: #f0dfff;
}

.memory-wall-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 18px;
  color: #b89cff;
}

.memory-wall-hero-divider span {
  width: min(124px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(208, 180, 255, 0.58), transparent);
}

.memory-wall-hero-divider i {
  font-style: normal;
  font-size: 1rem;
  text-shadow: 0 0 16px rgba(184, 156, 255, 0.55);
}

.memory-wall-lead,
.memory-wall-copy,
.memory-wall-status-text,
.memory-wall-feedback,
.memory-wall-empty p,
.memory-wall-modal-copy,
.memory-wall-field small {
  color: var(--wall-muted);
}

.memory-wall-lead {
  margin: 22px 0 8px;
  font-size: 1.12rem;
  line-height: 1.82;
}

.memory-wall-copy {
  margin: 0;
  line-height: 1.82;
  max-width: 720px;
  margin-inline: auto;
}

.memory-wall-hero-actions,
.memory-wall-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.memory-wall-hero-actions {
  margin-top: 28px;
  justify-content: center;
}

.memory-wall-primary-button,
.memory-wall-secondary-button,
.memory-wall-tertiary-button,
.memory-wall-filter,
.memory-wall-control-button,
.memory-wall-category-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.memory-wall-primary-button {
  border: 1px solid rgba(255, 224, 171, 0.5);
  background:
    linear-gradient(135deg, rgba(53, 109, 255, 0.22), rgba(157, 89, 255, 0.32)),
    rgba(16, 20, 40, 0.86);
  color: #fbf7ff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(216, 138, 242, 0.16) inset,
    0 14px 28px rgba(53, 33, 92, 0.28),
    0 0 26px rgba(120, 104, 255, 0.2);
}

.memory-wall-secondary-button,
.memory-wall-tertiary-button,
.memory-wall-filter,
.memory-wall-category-card {
  border: 1px solid rgba(223, 210, 255, 0.18);
  background: rgba(10, 14, 28, 0.68);
  color: #f0e6ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(6, 8, 18, 0.24);
}

.memory-wall-primary-button:hover,
.memory-wall-primary-button:focus-visible,
.memory-wall-secondary-button:hover,
.memory-wall-secondary-button:focus-visible,
.memory-wall-tertiary-button:hover,
.memory-wall-tertiary-button:focus-visible,
.memory-wall-filter:hover,
.memory-wall-filter:focus-visible,
.memory-wall-category-card:hover,
.memory-wall-category-card:focus-visible {
  transform: translateY(-1px);
}

.memory-wall-button-wide {
  width: 100%;
}

.memory-wall-stage {
  display: grid;
  gap: 22px;
}

.memory-wall-toolbar {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.memory-wall-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.memory-wall-filter {
  min-height: 42px;
  padding: 8px 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 14px;
  position: relative;
  color: rgba(235, 226, 255, 0.72);
}

.memory-wall-filter::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(137, 184, 255, 0.88), rgba(209, 139, 255, 0.88));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.memory-wall-filter-icon {
  font-size: 1rem;
  line-height: 1;
}

.memory-wall-filter.is-active {
  color: #fff4d5;
}

.memory-wall-filter.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.memory-wall-inline-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: rgba(223, 213, 252, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.memory-wall-inline-stats strong {
  color: #fff2c7;
  font-size: 0.94rem;
}

.memory-wall-panel {
  position: relative;
  border-radius: 36px;
  padding: 10px 8px 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.memory-wall-panel-head h2,
.memory-wall-empty h3,
.memory-wall-modal-dialog h2,
.memory-wall-detail-card h2 {
  margin: 8px 0 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

.memory-wall-panel-head h2 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.memory-wall-panel-head {
  display: none;
}

.memory-wall-feedback {
  margin: 0 auto 18px;
  max-width: 720px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(223, 210, 255, 0.12);
  background: rgba(12, 16, 34, 0.54);
  font-size: 0.94rem;
  text-align: center;
}

.memory-wall-grid {
  margin-top: 0;
  columns: 3 280px;
  column-gap: 22px;
}

.memory-wall-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  break-inside: avoid;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transform: translateY(var(--card-shift, 0px)) rotate(var(--card-rotate, 0deg));
  opacity: var(--card-opacity, 1);
  overflow: visible;
  isolation: isolate;
}

.memory-wall-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, var(--card-glow, rgba(63, 140, 248, 0.14)), transparent 44%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
  z-index: -1;
}

.memory-wall-card-surface {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 18px 18px 14px;
  border-radius: 18px;
  border: 1px solid var(--card-border, rgba(214, 215, 255, 0.18));
  background:
    linear-gradient(180deg, rgba(24, 28, 52, 0.96), rgba(10, 12, 24, 0.985)),
    var(--card-paper, rgba(9, 12, 26, 0.96));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.memory-wall-card-surface::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(236, 239, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 30%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 22%);
  pointer-events: none;
}

.memory-wall-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.95), var(--card-accent, rgba(216,138,242,0.82)) 38%, rgba(34, 41, 88, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 18px color-mix(in srgb, var(--card-accent, #d88af2) 50%, transparent);
  opacity: var(--card-pin-opacity, 1);
  z-index: 3;
}

.memory-wall-card:hover,
.memory-wall-card:focus-visible {
  opacity: 1;
  transform: translateY(calc(var(--card-shift, 0px) - 2px)) rotate(var(--card-rotate, 0deg));
}

.memory-wall-card:hover .memory-wall-card-surface,
.memory-wall-card:focus-visible .memory-wall-card-surface {
  border-color: color-mix(in srgb, var(--card-accent, #d88af2) 52%, rgba(255, 255, 255, 0.2));
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.3),
    0 0 28px color-mix(in srgb, var(--card-accent, #d88af2) 22%, transparent);
}

.memory-wall-card[data-accent="memory"] {
  --card-accent: #5aa9ff;
  --card-accent-soft: #cfe7ff;
  --card-glow: rgba(63, 140, 248, 0.2);
  --card-border: rgba(116, 181, 255, 0.3);
  --card-paper: linear-gradient(180deg, rgba(22, 36, 68, 0.98), rgba(8, 12, 26, 0.995));
  --card-meta-border: rgba(116, 181, 255, 0.16);
  --card-tag-bg: rgba(70, 122, 212, 0.12);
  --card-tag-border: rgba(116, 181, 255, 0.16);
  --card-tape: linear-gradient(90deg, rgba(78, 139, 231, 0.82), rgba(92, 170, 255, 0.68));
}

.memory-wall-card[data-accent="words"] {
  --card-accent: #c293ff;
  --card-accent-soft: #f0e4ff;
  --card-glow: rgba(164, 114, 255, 0.2);
  --card-border: rgba(194, 147, 255, 0.28);
  --card-paper: linear-gradient(180deg, rgba(35, 22, 62, 0.98), rgba(12, 10, 25, 0.995));
  --card-meta-border: rgba(194, 147, 255, 0.14);
  --card-tag-bg: rgba(137, 85, 215, 0.12);
  --card-tag-border: rgba(194, 147, 255, 0.16);
  --card-tape: linear-gradient(90deg, rgba(125, 79, 209, 0.86), rgba(183, 126, 255, 0.72));
}

.memory-wall-card[data-accent="feeling"] {
  --card-accent: #ea7ff3;
  --card-accent-soft: #fde0ff;
  --card-glow: rgba(216, 138, 242, 0.22);
  --card-border: rgba(234, 127, 243, 0.3);
  --card-paper: linear-gradient(180deg, rgba(58, 22, 63, 0.98), rgba(14, 10, 24, 0.995));
  --card-meta-border: rgba(234, 127, 243, 0.14);
  --card-tag-bg: rgba(174, 71, 181, 0.14);
  --card-tag-border: rgba(234, 127, 243, 0.18);
  --card-tape: linear-gradient(90deg, rgba(188, 98, 218, 0.84), rgba(241, 135, 218, 0.74));
}

.memory-wall-card[data-accent="wish"] {
  --card-accent: #efc169;
  --card-accent-soft: #fff0cf;
  --card-glow: rgba(240, 207, 143, 0.2);
  --card-border: rgba(241, 198, 117, 0.28);
  --card-paper: linear-gradient(180deg, rgba(46, 31, 29, 0.98), rgba(14, 10, 22, 0.995));
  --card-meta-border: rgba(241, 198, 117, 0.14);
  --card-tag-bg: rgba(166, 125, 51, 0.14);
  --card-tag-border: rgba(241, 198, 117, 0.16);
  --card-tape: linear-gradient(90deg, rgba(205, 153, 63, 0.88), rgba(248, 208, 119, 0.74));
}

.memory-wall-card[data-decoration="tape"]::after,
.memory-wall-card[data-decoration="corner"]::after {
  width: 74px;
  height: 18px;
  top: 10px;
  right: 16px;
  border-radius: 4px;
  background: var(--card-tape, linear-gradient(90deg, rgba(146, 100, 255, 0.46), rgba(103, 79, 215, 0.56)));
  box-shadow: none;
  transform: rotate(7deg);
}

.memory-wall-card[data-decoration="clip"]::after {
  width: 15px;
  height: 15px;
}

.memory-wall-card[data-decoration="none"]::after {
  opacity: 0;
}

.memory-wall-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid var(--card-tag-border, rgba(223, 210, 255, 0.16));
  background: var(--card-tag-bg, rgba(255, 255, 255, 0.04));
  color: var(--card-accent-soft, #fff0c4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  position: relative;
  z-index: 1;
}

.memory-wall-card-kicker strong {
  font-weight: 700;
}

.memory-wall-card-kicker i {
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
}

.memory-wall-card-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 0.72;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(223, 228, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.12), transparent 18%),
    linear-gradient(135deg, rgba(43, 88, 170, 0.24), rgba(11, 17, 38, 0.94));
  display: grid;
  place-items: center;
}

.memory-wall-card-visual::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transform: rotate(-2.4deg);
  pointer-events: none;
  z-index: 1;
}

.memory-wall-card-visual::after {
  content: attr(data-symbol);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--card-accent-soft, #f8f4ff) 88%, white);
  font-size: clamp(2rem, 4vw, 3.1rem);
  text-shadow:
    0 0 18px color-mix(in srgb, var(--card-accent, #8aa9ff) 28%, transparent),
    0 0 26px color-mix(in srgb, var(--card-accent, #d88af2) 24%, transparent);
  pointer-events: none;
}

.memory-wall-card[data-has-visual="true"] .memory-wall-card-visual::after {
  content: "";
}

.memory-wall-card-visual img,
.memory-wall-card-visual video,
.memory-wall-detail-media img {
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  display: block;
  margin: 14px;
  border-radius: 4px;
  border: 2px solid rgba(247, 248, 255, 0.72);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-2.2deg);
  position: relative;
  z-index: 2;
}

.memory-wall-card-visual video {
  background: #060912;
}

.memory-wall-card-video-badge {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(223, 210, 255, 0.18);
  background: rgba(10, 14, 28, 0.58);
  backdrop-filter: blur(10px);
  text-align: center;
  color: #f7f2ff;
  z-index: 2;
  pointer-events: none;
}

.memory-wall-card-video-badge span,
.memory-wall-card-video-play {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(10, 14, 28, 0.72);
  border: 1px solid rgba(223, 210, 255, 0.24);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18),
    0 0 14px color-mix(in srgb, var(--card-accent, #8aa9ff) 16%, transparent);
  font-size: 0.72rem;
}

.memory-wall-card-video-badge strong {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.56rem;
  color: rgba(245, 240, 255, 0.88);
}

.memory-wall-card[data-accent="memory"] .memory-wall-card-visual {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.16), transparent 18%),
    linear-gradient(135deg, rgba(54, 101, 179, 0.38), rgba(10, 16, 35, 0.95));
}

.memory-wall-card[data-accent="words"] .memory-wall-card-visual {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
    radial-gradient(circle at 78% 20%, rgba(170, 92, 255, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(73, 46, 120, 0.18), rgba(11, 14, 28, 0.96));
}

.memory-wall-card[data-accent="feeling"] .memory-wall-card-visual {
  background:
    radial-gradient(circle at center, rgba(216,138,242,0.18), transparent 48%),
    linear-gradient(135deg, rgba(98, 48, 132, 0.24), rgba(9, 12, 25, 0.96));
}

.memory-wall-card[data-accent="wish"] .memory-wall-card-visual {
  background:
    radial-gradient(circle at 22% 80%, rgba(240,207,143,0.14), transparent 22%),
    linear-gradient(135deg, rgba(96, 73, 21, 0.24), rgba(14, 13, 22, 0.96));
}

.memory-wall-card[data-has-visual="false"] .memory-wall-card-visual {
  display: none;
}

.memory-wall-card-body {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 104px;
  z-index: 1;
}

.memory-wall-card[data-variant="media"] .memory-wall-card-body {
  min-height: 86px;
}

.memory-wall-card.is-tall {
  min-height: 430px;
}

.memory-wall-card.is-medium {
  min-height: 350px;
}

.memory-wall-card.is-compact {
  min-height: 300px;
}

.memory-wall-card blockquote {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 1.26rem;
  line-height: 1.46;
  color: rgba(249, 245, 255, 0.96);
  position: relative;
  z-index: 1;
}

.memory-wall-card blockquote[hidden] {
  display: none;
}

.memory-wall-card[data-variant="media"] blockquote {
  font-size: 1.02rem;
  line-height: 1.4;
}

.memory-wall-card[data-accent="words"] blockquote {
  color: #f4ebff;
}

.memory-wall-card[data-accent="feeling"] blockquote {
  color: #ffe6fb;
}

.memory-wall-card[data-accent="wish"] blockquote {
  color: #fff1d8;
}

.memory-wall-card-read {
  display: inline-flex;
  margin-top: 4px;
  color: var(--card-accent-soft, #fff2c6);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.memory-wall-card-meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  color: rgba(237, 229, 255, 0.72);
  font-size: 0.76rem;
  padding-top: 10px;
  border-top: 1px solid var(--card-meta-border, rgba(223, 210, 255, 0.12));
  position: relative;
  z-index: 1;
}

.memory-wall-card-meta span {
  min-width: 0;
  padding-top: 6px;
}

.memory-wall-card-meta span + span {
  padding-left: 12px;
  text-align: right;
  border-left: 1px solid var(--card-meta-border, rgba(223, 210, 255, 0.12));
}

.memory-wall-card-meta span:only-child {
  grid-column: 1 / -1;
  padding-left: 0;
  text-align: left;
  border-left: 0;
}

.memory-wall-empty {
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  padding: 48px 20px 34px;
  border-radius: 26px;
  border: 1px dashed rgba(223, 210, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.memory-wall-empty h3 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.memory-wall-load-more {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.memory-wall-sentinel {
  width: 100%;
  height: 1px;
}

.memory-wall-modal[hidden] {
  display: none;
}

.memory-wall-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
}

.memory-wall-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.8);
  backdrop-filter: blur(10px);
}

.memory-wall-modal-dialog,
.memory-wall-detail-dialog {
  position: relative;
  width: min(760px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  margin: 15px auto;
  border-radius: 30px;
  padding: 26px;
  overflow: auto;
}

.memory-wall-detail-dialog {
  width: min(700px, calc(100% - 30px));
}

.memory-wall-modal-dialog,
.memory-wall-detail-dialog {
  border: 1px solid var(--wall-line);
  background: linear-gradient(180deg, rgba(10, 14, 31, 0.94), rgba(7, 10, 22, 0.98));
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.memory-wall-modal-dialog .memory-wall-panel-kicker,
.memory-wall-detail-dialog .memory-wall-panel-kicker {
  color: rgba(238, 227, 255, 0.82);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.memory-wall-modal-dialog h2,
.memory-wall-detail-dialog h2 {
  margin: 8px 0 12px;
  color: #c7a7ef;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

.memory-wall-modal-dialog .memory-wall-modal-copy,
.memory-wall-detail-dialog .memory-wall-modal-copy {
  color: rgba(241, 234, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.68;
}

.memory-wall-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(223, 210, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--wall-text);
  cursor: pointer;
}

.memory-wall-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.memory-wall-category-card {
  min-height: 0;
  padding: 20px 18px;
  border-radius: 24px;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
}

.memory-wall-category-card strong {
  font-size: 1rem;
  color: #fff6d3;
}

.memory-wall-category-card span {
  color: var(--wall-muted);
  line-height: 1.58;
}

.memory-wall-form {
  margin-top: 18px;
  display: grid;
  gap: 15px;
}

.memory-wall-field {
  display: grid;
  gap: 7px;
}

.memory-wall-field span {
  color: rgb(87 165 223 / 90%);
}

.memory-wall-field input,
.memory-wall-field select,
.memory-wall-field textarea {
  width: 100%;
  border: 1px solid rgba(223, 210, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--wall-text);
  padding: 14px 16px;
  font: inherit;
}

.memory-wall-field select {
  color-scheme: dark;
  background-color: rgba(20, 24, 40, 0.96);
}

.memory-wall-field select option,
.memory-wall-field select optgroup {
  background: #0c1020;
  color: #f3edff;
}

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

.memory-wall-field.is-disabled {
  opacity: 0.58;
}

.memory-wall-field input:disabled {
  cursor: not-allowed;
}

.memory-wall-field-note {
  margin: -4px 0 0;
  color: rgba(233, 226, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}

.memory-wall-feeling-picker {
  display: grid;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(223, 210, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.memory-wall-feeling-picker[hidden],
[data-memory-media-group][hidden] {
  display: none !important;
}

.memory-wall-feeling-picker-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.memory-wall-feeling-picker-head span {
  color: rgba(245, 238, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.memory-wall-feeling-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.memory-wall-feeling-filter-bar {
  display: grid;
  gap: 12px;
}

.memory-wall-feeling-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(223, 210, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 21, 42, 0.92), rgba(10, 12, 24, 0.94));
  color: #f7f1ff;
  font: inherit;
  font-size: 0.94rem;
}

.memory-wall-feeling-search input::placeholder {
  color: rgba(233, 226, 255, 0.5);
}

.memory-wall-feeling-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.memory-wall-feeling-filter {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(223, 210, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(243, 236, 255, 0.72);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.memory-wall-feeling-filter:hover,
.memory-wall-feeling-filter:focus-visible,
.memory-wall-feeling-filter.is-active {
  color: #fff6dc;
  border-color: rgba(255, 219, 153, 0.34);
  box-shadow: 0 0 18px rgba(216, 138, 242, 0.12);
  transform: translateY(-1px);
}

.memory-wall-feeling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 10px;
  max-height: min(22rem, 46vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  align-content: start;
}

.memory-wall-feeling-grid::-webkit-scrollbar {
  width: 8px;
}

.memory-wall-feeling-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.memory-wall-feeling-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(216, 138, 242, 0.78), rgba(63, 140, 248, 0.78));
}

.memory-wall-feeling-grid::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 219, 153, 0.9), rgba(216, 138, 242, 0.9));
}

.memory-wall-feeling-chip {
  position: relative;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(223, 210, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff8ff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.memory-wall-feeling-chip:hover,
.memory-wall-feeling-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 171, 0.34);
  box-shadow: 0 0 18px rgba(216, 138, 242, 0.12);
}

.memory-wall-feeling-chip.is-selected {
  border-color: rgba(255, 222, 167, 0.48);
  background:
    radial-gradient(circle at top, rgba(255, 210, 133, 0.16), transparent 68%),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 229, 182, 0.14),
    0 0 20px rgba(216, 138, 242, 0.18);
}

.memory-wall-feeling-chip[data-selected-count]:not([data-selected-count=""])::after {
  content: attr(data-selected-count);
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 235, 194, 0.92);
  color: #181224;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.memory-wall-feeling-empty {
  margin: 0;
  color: rgba(233, 226, 255, 0.66);
  font-size: 0.84rem;
  line-height: 1.45;
}

.memory-wall-file-clear {
  width: fit-content;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff2c6;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.memory-wall-file-clear:hover,
.memory-wall-file-clear:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.memory-wall-field input:focus,
.memory-wall-field select:focus,
.memory-wall-field textarea:focus {
  outline: none;
  border-color: rgba(255, 224, 171, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 224, 171, 0.18),
    0 0 18px rgba(216, 138, 242, 0.14);
}

.memory-wall-detail-card blockquote {
  margin: 18px 0 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.24;
  color: #f9f4ff;
}

.memory-wall-detail-actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.memory-wall-detail-actions .memory-wall-status-text {
  margin: 0;
  text-align: center;
}

.memory-wall-detail-media {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(223, 210, 255, 0.16);
  background: rgba(8, 12, 24, 0.78);
}

.memory-wall-detail-media video {
  width: 100%;
  max-height: min(60vh, 520px);
  display: block;
  background: #060912;
}

.memory-wall-scroll-cue {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-top: 6px;
  color: rgba(208, 189, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.memory-wall-scroll-cue i {
  font-style: normal;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0;
}

.memory-wall-detail-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(232, 225, 255, 0.72);
}

.memory-wall-sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 60;
  display: none;
  gap: 10px;
}

.memory-wall-status-text[hidden],
.memory-wall-feedback[hidden],
.memory-wall-empty[hidden],
.memory-wall-load-more[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .memory-wall-toolbar {
    justify-items: stretch;
  }
}

@media (max-width: 760px) {
  .memory-wall-shell {
    padding-bottom: 134px;
  }

  .memory-wall-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .memory-wall-grid {
    columns: 3;
    column-gap: 12px;
    display: block;
  }

  .memory-wall-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 12px;
    transform: rotate(var(--card-rotate, 0deg));
  }

  .memory-wall-card::after {
    top: 6px;
    right: 8px;
    width: 13px;
    height: 13px;
  }

  .memory-wall-card[data-decoration="tape"]::after,
  .memory-wall-card[data-decoration="corner"]::after {
    width: 42px;
    height: 12px;
    top: 7px;
    right: 8px;
  }

  .memory-wall-card-surface {
    gap: 9px;
    padding: 10px 10px 9px;
    border-radius: 14px;
  }

  .memory-wall-card-surface::before {
    inset: 6px;
    border-radius: 10px;
  }

  .memory-wall-card-kicker {
    gap: 5px;
    margin-bottom: 0;
    padding: 5px 8px;
    font-size: 0.52rem;
  }

  .memory-wall-card-kicker i {
    font-size: 0.7rem;
  }

  .memory-wall-card-visual {
    aspect-ratio: 1 / 1.06;
    border-radius: 10px;
  }

  .memory-wall-card-visual::before {
    inset: 8px;
    border-radius: 7px;
  }

  .memory-wall-card-visual::after {
    font-size: 1.2rem;
  }

  .memory-wall-card-visual img,
  .memory-wall-card-visual video,
  .memory-wall-detail-media img {
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    margin: 9px;
    border-width: 1.5px;
  }

  .memory-wall-card-video-badge {
    gap: 6px;
  }

  .memory-wall-card-video-badge span,
  .memory-wall-card-video-play {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .memory-wall-card-video-badge strong {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .memory-wall-card-body {
    gap: 8px;
    min-height: 0;
  }

  .memory-wall-card.is-tall,
  .memory-wall-card.is-medium,
  .memory-wall-card.is-compact,
  .memory-wall-card[data-variant="media"] .memory-wall-card-body {
    min-height: 0;
  }

  .memory-wall-card blockquote,
  .memory-wall-card[data-variant="media"] blockquote {
    font-size: 0.74rem;
    line-height: 1.34;
  }

  .memory-wall-card-read {
    margin-top: 0;
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }

  .memory-wall-card-meta {
    padding-top: 8px;
    font-size: 0.56rem;
  }

  .memory-wall-card-meta span + span {
    padding-left: 8px;
  }

  .memory-wall-category-grid {
    grid-template-columns: 1fr;
  }

  .memory-wall-hero-copy {
    padding-inline: 0;
  }

  .memory-wall-sticky-cta {
    display: grid;
  }
}

@media (max-width: 540px) {
  .memory-wall-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .memory-wall-hero-copy,
  .memory-wall-modal-dialog,
  .memory-wall-detail-dialog {
    border-radius: 26px;
    padding: 20px;
  }

  .memory-wall-hero-copy h1 {
    font-size: 2.8rem;
  }

  .memory-wall-form-actions,
  .memory-wall-hero-actions {
    display: grid;
  }

  .memory-wall-inline-stats {
    display: grid;
    gap: 8px;
  }

  .memory-wall-filter-pills {
    justify-content: flex-start;
  }

  .memory-wall-grid {
    column-gap: 10px;
  }

  .memory-wall-card-surface {
    padding: 9px 9px 8px;
  }

  .memory-wall-card blockquote,
  .memory-wall-card[data-variant="media"] blockquote {
    font-size: 0.68rem;
  }

  .memory-wall-card-meta {
    font-size: 0.52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-wall-stars span,
  .memory-wall-card,
  .memory-wall-primary-button,
  .memory-wall-secondary-button,
  .memory-wall-tertiary-button,
  .memory-wall-filter,
  .memory-wall-category-card {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes memoryWallTwinkle {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}
