:root {
  --accent: #0f766e;
  --bg: #f4f1ec;
  --ink: #17202a;
  --muted: #657184;
  --line: rgba(23, 32, 42, 0.12);
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(23, 32, 42, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 30%),
    linear-gradient(140deg, #fbfaf7 0%, #eef2ef 48%, #f5efe9 100%);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.app {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.54);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  display: flex;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.topbar nav,
.copy-row,
.quick-links,
.board-header,
.moderation-head,
.two-col,
.slug-row,
.board-cta,
.intro-stats {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand {
  font-weight: 900;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--accent) 44%, var(--ink)));
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.topbar nav {
  color: var(--muted);
  font-weight: 800;
}

.topbar button,
.secondary,
.copy-row button {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 14px;
}

.topbar button:hover,
.secondary:hover,
.copy-row button:hover,
.primary:hover,
.danger:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

main {
  padding: clamp(18px, 3vw, 34px) clamp(18px, 4vw, 56px) 64px;
}

.launch-gate-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 120px);
}

.launch-gate {
  display: grid;
  gap: 18px;
  max-width: 520px;
  padding: clamp(26px, 5vw, 46px);
  width: min(100%, 520px);
}

.launch-gate h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.95;
  margin: 0;
}

.launch-gate p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.launch-gate label {
  color: var(--ink);
  display: grid;
  font-weight: 900;
  gap: 8px;
}

.setup-grid,
.guest-grid,
.host-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.host-grid {
  align-items: start;
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.home-shell {
  display: grid;
  gap: 22px;
}

.auth-shell {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  min-height: calc(100vh - 150px);
}

.auth-card {
  align-self: center;
}

.auth-context {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #111827), #17202a);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  position: relative;
}

.auth-context::after {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 20px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.auth-context > * {
  position: relative;
  z-index: 1;
}

.auth-context .eyebrow,
.auth-context p {
  color: rgba(255, 255, 255, 0.78);
}

.auth-context-grid {
  align-self: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.auth-context-grid div {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 16px;
}

.auth-context-grid strong {
  font-size: 30px;
}

.auth-context-grid span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 850;
}

.auth-helper,
.auth-switch {
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 950;
}

.google-button {
  display: grid;
  justify-content: center;
  min-height: 44px;
}

.marketing-shell {
  display: grid;
  gap: 28px;
}

.plans-shell {
  display: grid;
  gap: 24px;
}

.marketing-hero {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.marketing-copy,
.hero-preview,
.feature-grid article,
.faq-section,
.contact-section {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.marketing-copy {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 58px);
}

.marketing-copy h1 {
  max-width: 980px;
}

.marketing-copy p {
  font-size: 18px;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-preview {
  align-content: end;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 72%, #111827), #17202a);
  color: white;
  display: grid;
  gap: 14px;
  min-height: 520px;
  overflow: hidden;
  padding: 22px;
}

.preview-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-top span,
.preview-top strong {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 12px;
}

.preview-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  padding: 18px;
}

.preview-card.large {
  font-size: 28px;
  min-height: 150px;
}

.preview-card.media,
.preview-card.photo {
  margin-left: 12%;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.pricing-strip {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 38px);
}

.pricing-strip div {
  display: grid;
  gap: 8px;
}

.plans-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(23, 32, 42, 0.09);
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
}

.plan-card.featured {
  border-color: color-mix(in srgb, var(--accent) 36%, white);
  box-shadow: 0 22px 58px color-mix(in srgb, var(--accent) 16%, transparent);
  transform: translateY(-6px);
}

.plan-card h2 {
  font-size: clamp(42px, 5vw, 64px);
}

.plan-card ul {
  color: var(--muted);
  display: grid;
  gap: 9px;
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}

.plan-card li {
  padding-left: 4px;
}

.feature-grid h2 {
  font-size: 24px;
}

.feature-icon {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.faq-section,
.contact-section {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
}

.faq-section details {
  background: rgba(248, 250, 247, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 950;
}

.faq-section details p {
  margin-top: 10px;
}

.contact-section {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 247, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 44px);
}

.home-hero div {
  display: grid;
  gap: 10px;
}

.home-hero h1 {
  font-size: clamp(36px, 5vw, 68px);
}

.board-list {
  display: grid;
  gap: 14px;
}

.event-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(23, 32, 42, 0.08);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 16px;
}

.calendar-badge {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.08);
  min-width: 78px;
  overflow: hidden;
  text-align: center;
}

.calendar-badge span {
  background: var(--accent);
  color: white;
  display: block;
  font-size: 12px;
  font-weight: 950;
  padding: 6px 8px;
}

.calendar-badge strong {
  display: block;
  font-size: 22px;
  padding: 11px 8px;
}

.event-row-main {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-width: 0;
}

.event-row-main h2 {
  font-size: clamp(22px, 3vw, 34px);
}

.event-row-main p {
  font-weight: 850;
}

.event-metrics,
.event-row-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.event-metrics {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.event-metrics span {
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
  white-space: nowrap;
}

.icon-link {
  align-items: center;
  background: rgba(23, 32, 42, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 18px;
  font-weight: 950;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.icon-link svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.icon-link:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-1px);
}

.quick-links.vertical {
  align-items: stretch;
  display: grid;
}

.host-grid.is-authed {
  display: block;
}

.host-login-card {
  margin: 8vh auto 0;
  max-width: 520px;
  width: 100%;
}

.moderation-panel {
  width: 100%;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 38px);
}

.form-panel {
  display: grid;
  gap: 18px;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 78px);
}

h2 {
  font-size: clamp(24px, 3vw, 38px);
}

p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 850;
  gap: 8px;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.slug-row {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding-left: 12px;
}

.slug-row input {
  background: transparent;
  border: 0;
  box-shadow: none;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 10px;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  background: var(--swatch);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(23, 32, 42, 0.16);
  cursor: pointer;
  height: 34px;
  width: 34px;
}

.swatch.selected {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 68%, #111827));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 24%, transparent);
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  padding: 13px 18px;
}

.result-panel {
  align-content: start;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.event-intro {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, #0b1220), #17202a 62%),
    var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  display: grid;
  gap: 20px;
  min-height: min(72vh, 680px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  position: relative;
}

.event-sheen {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.event-intro > *:not(.event-sheen) {
  position: relative;
}

.event-intro .eyebrow,
.board-header .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.event-intro p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  max-width: 58ch;
}

.intro-stats {
  align-self: end;
  flex-wrap: wrap;
}

.intro-stats span,
.board-cta span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 12px;
}

.code-box,
.qr-box {
  background: rgba(248, 250, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.code-box {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.qr-box {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 18px;
}

.qr-box img {
  aspect-ratio: 1;
  border-radius: 8px;
  max-width: 220px;
  width: 100%;
}

.code-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.code-box strong {
  font-size: 34px;
  letter-spacing: 0.02em;
}

.upload-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 9px;
  justify-items: center;
  min-height: 132px;
  padding: 16px;
  text-align: center;
}

.upload-card:hover {
  background: rgba(255, 255, 255, 0.86);
  border-style: solid;
}

.upload-icon {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.upload-card input {
  max-width: 190px;
}

.upload-card button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 950;
}

.media-preview {
  background: color-mix(in srgb, var(--accent) 9%, white);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
  padding: 12px 14px;
}

.photo-preview {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr) auto;
}

.photo-preview img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 76px;
}

.photo-preview div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.photo-preview strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-preview span {
  font-size: 13px;
}

.board-shell {
  display: grid;
  gap: 26px;
}

.tv-shell {
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 30%),
    linear-gradient(135deg, #0f172a, #111827 55%, color-mix(in srgb, var(--accent) 24%, #111827));
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 24px;
  min-height: calc(100vh - 132px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
}

.tv-topbar,
.tv-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.tv-topbar h1 {
  font-size: clamp(38px, 5vw, 74px);
}

.tv-topbar .eyebrow,
.tv-footer {
  color: rgba(255, 255, 255, 0.75);
}

.tv-qr {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 950;
  gap: 8px;
  justify-items: center;
  padding: 12px;
  width: 142px;
}

.tv-qr img {
  aspect-ratio: 1;
  width: 104px;
}

.tv-stage {
  align-items: center;
  display: grid;
  min-height: 52vh;
}

.tv-card {
  animation: liftIn 420ms ease both;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  overflow: hidden;
  width: 100%;
}

.tv-card.with-image {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.tv-card img {
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  width: 100%;
}

.tv-card-copy {
  align-content: center;
  display: grid;
  gap: 24px;
  padding: clamp(30px, 5vw, 72px);
}

.tv-card-copy p {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.08;
}

.tv-card-copy strong {
  color: var(--accent);
  font-size: clamp(20px, 3vw, 34px);
}

.tv-empty {
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  padding: 44px;
  text-align: center;
}

.board-header {
  background:
    linear-gradient(135deg, #111827, color-mix(in srgb, var(--accent) 38%, #111827)),
    var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  justify-content: space-between;
  min-height: 330px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  position: relative;
}

.board-header::after {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 20px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.board-header > * {
  position: relative;
  z-index: 1;
}

.board-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  max-width: 760px;
}

.board-header h1 {
  max-width: 960px;
}

.board-cta {
  align-self: end;
}

.secondary.light {
  background: rgba(255, 255, 255, 0.94);
}

.memory-grid {
  columns: 4 280px;
  column-gap: 20px;
  padding-bottom: 40px;
}

.memory-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  break-inside: avoid;
  box-shadow: 0 16px 44px rgba(23, 32, 42, 0.11);
  display: inline-block;
  margin: 0 0 20px;
  overflow: hidden;
  width: 100%;
}

.memory-card {
  animation: liftIn 360ms ease both;
}

.memory-card.text-only {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, white), rgba(255, 255, 255, 0.96));
}

.memory-card.has-photo {
  background: #fff;
}

.memory-photo-frame {
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0 0;
  overflow: hidden;
}

.memory-photo-frame img {
  display: block;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.memory-photo-frame figcaption {
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  padding: 8px 10px;
  text-transform: uppercase;
}

.memory-body {
  padding: 18px;
}

.memory-body p {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.48;
  margin-top: 14px;
}

.field-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.toggle-row {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.memory-author-row {
  align-items: center;
  display: flex;
  gap: 11px;
}

.avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #111827));
  border-radius: 999px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 950;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.avatar.small {
  font-size: 12px;
  height: 34px;
  width: 34px;
}

.memory-author-row div {
  display: grid;
  gap: 2px;
}

.memory-author-row strong {
  font-size: 15px;
}

.memory-author-row span:not(.avatar) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

audio {
  border-radius: 8px;
  margin-top: 12px;
  width: 100%;
}

.empty {
  background: rgba(255, 255, 255, 0.54);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  padding: 30px;
  text-align: center;
}

.empty.compact {
  padding: 18px;
}

.review-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 22px;
}

.review-section {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h3 {
  font-size: 18px;
  letter-spacing: 0;
  margin: 0;
}

.section-head span {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding: 0 9px;
}

.post-list {
  display: grid;
  gap: 12px;
}

.review-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 247, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 42, 0.08);
  display: grid;
  gap: 12px;
  padding: 14px;
  position: relative;
}

.review-card::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 38px;
  left: 0;
  opacity: 0.85;
  position: absolute;
  top: 18px;
  width: 3px;
}

.review-card.approved::before {
  background: #0f766e;
}

.review-card-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.review-person {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.review-person div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.review-card strong {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card-head span:not(.status-pill),
.muted-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.status-pill,
.media-pill {
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
  width: fit-content;
}

.status-pill.approved {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.status-pill.pending {
  background: rgba(202, 138, 4, 0.12);
  color: #9a6700;
}

.host-media-list {
  display: grid;
  gap: 10px;
}

.host-media-item {
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  padding: 10px;
}

.host-media-item.photo {
  padding: 0;
}

.host-media-item img {
  display: block;
  max-height: 240px;
  object-fit: cover;
  width: 100%;
}

.host-media-item.audio {
  display: grid;
  gap: 8px;
}

.host-media-item.audio span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.icon-button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.icon-button.approve {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.icon-button.delete {
  background: rgba(180, 35, 24, 0.11);
  color: #b42318;
}

.danger {
  background: #b42318;
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 950;
  padding: 10px 14px;
}

.success {
  color: #0f766e;
  font-weight: 850;
}

.error {
  color: #b42318;
  font-weight: 850;
}

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

@media (max-width: 920px) {
  .topbar,
  .board-header,
  .two-col,
  .quick-links {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-grid,
  .guest-grid,
  .host-grid,
  .review-columns,
  .auth-shell,
  .marketing-hero,
  .feature-grid,
  .plans-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .pricing-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-card.featured {
    transform: none;
  }

  .result-panel {
    position: static;
  }

  .event-intro {
    min-height: 420px;
  }

  .tv-card.with-image {
    grid-template-columns: 1fr;
  }

  .tv-topbar,
  .tv-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero,
  .event-row-main {
    align-items: stretch;
    flex-direction: column;
  }

  .event-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .event-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .topbar nav {
    gap: 8px;
  }

  .topbar nav a,
  .topbar nav button {
    font-size: 13px;
    padding: 9px 10px;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .copy-row,
  .board-cta {
    align-items: stretch;
    flex-direction: column;
  }
}
