:root {
  --mw-blue: #1e4fd6;
  --mw-purple: #8b2fc9;
  --mw-pink: #e91e8c;
  --mw-navy: #141a3a;
  --mw-grad: linear-gradient(135deg, #1e4fd6 0%, #8b2fc9 52%, #e91e8c 100%);
  --mw-grad-soft: linear-gradient(160deg, rgba(30,79,214,.1), rgba(139,47,201,.08), rgba(233,30,140,.08));
  --color-accent: #8b2fc9;
  --color-accent-dark: #6d22a0;
  --color-bg: #ebe7f2;
  --color-surface: #f7f5fb;
  --color-border: #ddd6eb;
  --bg: var(--color-bg);
  --card: #fff;
  --text: #1c1c28;
  --muted: #6f6f82;
  --border: var(--color-border);
  --radius: 6px;
  --radius-sm: 5px;
  --radius-lg: 6px;
  --shadow: 0 1px 3px rgba(20, 26, 58, 0.06), 0 8px 24px rgba(20, 26, 58, 0.04);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --topbar-tint: rgba(30, 79, 214, 0.06);
  --topbar-tint-strong: rgba(139, 47, 201, 0.1);
  --profile-avatar-size: 150px;
  --profile-overlap-out: 50px;
  --text-xl: 1.5rem;
  --text-sm: 0.875rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: var(--mw-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.grad-text {
  background: var(--mw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); font-size: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 0.88rem;
  padding: 8px 14px; cursor: pointer; text-decoration: none;
}
.btn-sm { padding: 6px 10px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--mw-grad); color: #fff; border: none; }
.btn-primary:hover { filter: brightness(1.04); text-decoration: none; }
.btn-outline {
  background: #fff; color: var(--mw-navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--mw-purple); color: var(--mw-purple); text-decoration: none; }
.btn-ghost {
  background: var(--mw-grad-soft);
  color: var(--mw-purple);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--mw-grad);
  color: #fff;
  border-color: transparent;
  text-decoration: none;
}
.alert-error {
  background: #fde8ef; color: #9b1c48; padding: 10px 12px;
  border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 0.88rem;
}

/* Welcome */
.welcome-body {
  min-height: 100vh;
  background:
    radial-gradient(1000px 520px at 8% 0%, rgba(30,79,214,.14), transparent 55%),
    radial-gradient(800px 420px at 92% 18%, rgba(233,30,140,.1), transparent 50%),
    #f6f4fa;
}
.welcome-shell {
  max-width: 1080px; margin: 0 auto; min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px;
  align-items: center; padding: 36px 22px;
}
.welcome-logo { width: 72px; height: 72px; border-radius: 16px; box-shadow: var(--shadow); }
.welcome-headline {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem); line-height: 1.18;
  margin: 18px 0 8px; color: var(--mw-navy); font-weight: 700;
}
.welcome-sub { color: var(--mw-navy); opacity: 0.72; margin: 0 0 22px; }
.welcome-collage { position: relative; height: 200px; }
.wc-card {
  position: absolute; border-radius: 12px; box-shadow: var(--shadow);
  background: var(--mw-grad); opacity: 0.92;
}
.wc-a { width: 140px; height: 168px; left: 0; top: 12px; transform: rotate(-5deg); }
.wc-b { width: 130px; height: 150px; left: 100px; top: 0; transform: rotate(3deg); background: linear-gradient(160deg, #5b8cff, #b44dff); }
.wc-c { width: 112px; height: 132px; left: 186px; top: 46px; background: linear-gradient(160deg, #a855f7, #ec4899); }
.wc-chip {
  position: absolute; width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; color: #fff; font-size: 1rem; box-shadow: var(--shadow);
}
.wc-chip.heart { background: #ef4444; left: 72px; bottom: 18px; }
.wc-chip.star { background: #f59e0b; left: 236px; top: 18px; }
.wc-avatar {
  position: absolute; width: 48px; height: 48px; border-radius: 8px;
  left: 158px; bottom: 8px; border: 2px solid #fff; background: var(--mw-grad);
}
.welcome-panel { display: flex; flex-direction: column; align-items: center; }
.welcome-card {
  width: 100%; max-width: 400px; background: #fff;
  border-radius: 12px; padding: 26px 24px 22px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.welcome-card h2 { margin: 0 0 16px; font-size: 1.25rem; color: var(--mw-navy); font-weight: 700; }
.welcome-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.field input {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 12px; font: inherit; color: var(--text); background: #faf9fc; font-weight: 500;
}
.field input:focus { outline: 2px solid rgba(139,47,201,.28); border-color: transparent; background: #fff; }
.welcome-link { display: block; text-align: center; margin: 12px 0 0; color: var(--mw-purple); font-weight: 600; font-size: 0.88rem; }
.welcome-divider { height: 1px; background: var(--border); margin: 16px 0; }
.welcome-meta { margin-top: 14px; color: var(--muted); font-size: 0.8rem; }
.register-wrap { max-width: 440px; margin: 0 auto; padding: 36px 18px; }
.register-back { display: inline-block; margin-bottom: 14px; color: var(--mw-purple); font-weight: 600; }
.register-logo { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 8px; }
.register-lead { color: var(--muted); margin: 0 0 14px; font-size: 0.92rem; }
@media (max-width: 900px) {
  .welcome-shell { grid-template-columns: 1fr; gap: 18px; }
  .welcome-collage { display: none; }
}

/* Topbar — vast, niet doorzichtig */
.topbar {
  position: sticky; top: 0; z-index: 1500;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.topbar.has-photo-tint {
  background: #fff;
}
.topbar-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 8px 30px 8px 30px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-start {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 1 auto;
}
.topbar-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--mw-navy); text-decoration: none; font-size: 0.95rem;
  flex-shrink: 0;
}
.topbar-brand em { font-style: normal; background: var(--mw-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar-logo { width: 32px; height: 32px; border-radius: 8px; }
.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 280px;
  min-width: 160px;
  max-width: 320px;
  margin-left: 10px;
}
.topbar-search-icon {
  position: absolute;
  left: 12px;
  display: flex;
  color: #65676b;
  pointer-events: none;
}
.topbar-search-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: #f0f2f5;
  color: #050505;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 9px 14px 9px 38px;
  border-radius: 10px;
}
.topbar-search-input::placeholder { color: #65676b; }
.topbar-search-input:focus {
  background: #e4e6eb;
}
.topbar-nav {
  display: flex;
  gap: 2px;
  margin: 0;
  flex: 0 0 auto;
  overflow-x: auto;
  justify-self: unset;
}
.topbar-nav a {
  padding: 7px 10px; border-radius: var(--radius-sm); color: var(--muted);
  font-weight: 600; font-size: 0.84rem; text-decoration: none; white-space: nowrap;
}
.topbar-nav a.is-active, .topbar-nav a:hover {
  background: var(--mw-grad-soft); color: var(--mw-purple);
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: 0;
  justify-self: unset;
}
.topbar-account { position: relative; }
.topbar-account-btn {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}
.topbar-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(20,26,58,.08);
}
.topbar-account-caret {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e4e6eb;
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
.topbar-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 10px;
  z-index: 80;
}
.topbar-account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #050505;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  margin-bottom: 8px;
}
.topbar-account-profile:hover { background: #f7f8fa; }
.topbar-account-profile-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.topbar-account-profile-name {
  display: block;
  font-weight: 700; font-size: 1.05rem; line-height: 1.2;
}
.topbar-account-profile-type {
  display: block;
  color: #65676b;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 2px;
}
.topbar-account-switch-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #65676b;
  padding: 4px 10px 6px;
}
.topbar-account-switch-form { margin: 0; }
.topbar-account-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: #050505;
}
.topbar-account-switch:hover { background: #f0f2f5; }
.topbar-account-switch img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.topbar-account-switch strong { display: block; font-size: 0.9rem; }
.topbar-account-switch small { color: #65676b; font-size: 0.75rem; }
.topbar-account-item-btn {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.topbar-account-divider {
  height: 1px; background: #e4e6eb; margin: 4px 4px 8px;
}
.topbar-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #050505;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.topbar-account-item:hover { background: #f0f2f5; }
.topbar-account-item-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e4e6eb; color: #050505;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.2rem; font-weight: 700;
}

.container { max-width: 1120px; margin: 0 auto; padding: 14px 16px; }
.section { padding: 4px 0 36px; }
.page-intro { margin-bottom: 14px; }
.page-intro h1 { margin: 0 0 4px; font-size: 1.35rem; color: var(--mw-navy); }
.page-intro p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 52ch; }
.error-box { text-align: center; padding: 56px 18px; }
.error-code {
  font-size: 3.4rem; font-weight: 700; background: var(--mw-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Cover / banner — letterlijk ModelPort-structuur, MyWorld-accent */
.section.profile-portfolio { padding: 0 0 36px; }
.profile-header-zone {
  position: relative;
  padding-top: 0;
  padding-bottom: calc(18px + var(--profile-overlap-out, 50px) / 2);
  margin-bottom: 0;
}
.profile-banner-stage { position: relative; padding: 0; }
.profile-banner-stage > .container {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: 0;
}
.profile-banner-bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-bg);
  pointer-events: none;
}
.profile-banner-bg::before {
  content: '';
  position: absolute;
  inset: -20% 0;
  background-image: var(--profile-banner-image, none);
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(1.08);
  transform: scale(1.05);
  opacity: 0.55;
}
.profile-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--profile-banner-top, rgba(139, 47, 201, 0.22)) 0%,
    var(--profile-banner-mid, rgba(139, 47, 201, 0.08)) 38%,
    var(--color-bg) 100%
  );
}
.portfolio-cover.profile-cover-banner {
  --profile-avatar-size: 150px;
  --profile-overlap-out: calc(var(--profile-avatar-size) / 2);
  position: relative;
  height: 280px;
  overflow: visible;
  margin-bottom: calc(var(--profile-overlap-out) / 2);
}
.portfolio-cover.profile-cover-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
}
.portfolio-cover.profile-cover-banner > .portfolio-cover-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(to top, rgba(14,12,10,0.85) 0%, rgba(14,12,10,0.2) 60%);
}
.profile-cover-banner .portfolio-cover-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.profile-cover-more {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 7;
  pointer-events: auto;
}
.profile-cover-edit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 7;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  text-decoration: none;
  pointer-events: auto;
}
.profile-cover-more-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: #333; font-size: 1.25rem; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.profile-cover-more-pop {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 190px; background: #fff;
  border: 1px solid var(--color-border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  padding: 4px 0;
}
.profile-cover-more-pop button {
  display: block; width: 100%; text-align: left;
  border: none; background: transparent; cursor: pointer;
  padding: 10px 14px; font: inherit; font-size: 0.9rem;
}
.profile-cover-more-pop button:hover { background: #f5f2f9; }

/* Foto: helft in banner, helft eronder */
.profile-cover-banner .portfolio-avatar--overlap {
  position: absolute;
  bottom: calc(var(--profile-overlap-out) * -1);
  left: 50px;
  margin-left: 0;
  transform: none;
  z-index: 5;
  pointer-events: auto;
  border: 3px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(14, 12, 10, 0.3);
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  min-width: var(--profile-avatar-size);
  min-height: var(--profile-avatar-size);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}
.profile-cover-banner .portfolio-avatar--overlap.has-story {
  /* Zelfde opbouw als voorheen: foto → wit → gekleurde rand; alleen kleur = button-gradient */
  width: calc(var(--profile-avatar-size) + 6px);
  height: calc(var(--profile-avatar-size) + 6px);
  min-width: calc(var(--profile-avatar-size) + 6px);
  min-height: calc(var(--profile-avatar-size) + 6px);
  left: 47px;
  bottom: calc((var(--profile-avatar-size) + 6px) / -2);
  border: 3px solid transparent;
  padding: 3px;
  overflow: hidden;
  background-color: transparent;
  background-image: linear-gradient(#fff, #fff), var(--mw-grad);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 24px rgba(14, 12, 10, 0.3);
}
.portfolio-avatar-story {
  display: block; width: 100%; height: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: #ddd;
}
.portfolio-avatar-story img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}
.profile-banner-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-left: 10px;
  transform: translateY(22px);
  min-width: 0;
  flex: 0 1 auto;
}
.profile-banner-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #050505;
  line-height: 1.2;
  max-width: min(320px, 50vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-banner-bio {
  margin: 1px 0 0;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted, #6b6570);
  line-height: 1.3;
  max-width: min(360px, 55vw);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-banner-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  min-height: calc(var(--profile-overlap-out, 50px) + 4px);
  padding-left: calc(50px + var(--profile-avatar-size, 150px) + 18px);
  padding-right: 8px;
  margin-top: calc(var(--profile-overlap-out, 50px) * -0.95);
  position: relative;
  z-index: 4;
  pointer-events: auto;
}
.profile-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2px;
  margin-left: auto;
}
.profile-banner-actions form { display: inline-flex; }
.profile-banner-social {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted, #6b6570);
  line-height: 1.3;
  margin: 10px 0 0;
  text-align: left;
  transform: none;
  padding-bottom: 0;
}
.profile-banner-social strong {
  font-weight: 600;
  color: #050505;
  margin-right: 0.4em;
}
.profile-banner-social-link { color: inherit; text-decoration: none; }
.profile-banner-social-link:hover { text-decoration: underline; }
.profile-banner-social-sep { margin: 0 4px; font-weight: 400; color: var(--muted, #6b6570); }
@media (max-width: 700px) {
  .portfolio-cover.profile-cover-banner { --profile-avatar-size: 120px; height: 200px; }
  .profile-cover-banner .portfolio-avatar--overlap { left: 16px; }
  .profile-cover-banner .portfolio-avatar--overlap.has-story { left: 13px; }
  .profile-banner-name { font-size: 1.15rem; max-width: 100%; }
  .profile-banner-meta {
    padding-left: calc(16px + var(--profile-avatar-size, 120px) + 12px);
    padding-right: 0;
    margin-top: calc(var(--profile-overlap-out, 40px) * -0.55);
    flex-wrap: wrap;
  }
  .profile-banner-social { font-size: 0.74rem; }
  .profile-banner-actions { width: 100%; justify-content: flex-start; margin-left: 0; }
}

.profile-body-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px 18px;
  margin-top: 0;
}
.owner-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  background: #1f1f1d;
  color: #fff;
  border-left: 3px solid var(--color-accent);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: 12px;
}
.owner-bar-label { margin-right: auto; color: rgba(255,255,255,0.85); }
.owner-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-bar .btn-ghost,
.owner-bar .btn-outline {
  color: #fff; border-color: rgba(255,255,255,0.25);
}
.owner-bar .btn-ghost:hover,
.owner-bar .btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; }
.owner-bar .btn.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.owner-bar .btn-primary { background: var(--mw-grad); border: none; }

/* Tabs — ModelPort underline */
.feed-tabs {
  display: flex; gap: 0; background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 12px; flex-wrap: wrap;
}
.feed-tab {
  flex: 1; text-align: center; padding: 12px;
  font-weight: 600; font-size: 0.92rem; color: #666;
  text-decoration: none; border-bottom: 3px solid transparent;
}
.feed-tab.is-active { color: #1a1a1a; border-bottom-color: var(--color-accent); }

.business-site-panel {
  background: #fff;
  border: 1px solid var(--color-border, #e4e6eb);
  border-radius: 12px;
  overflow: hidden;
}
.business-site-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e4e6eb;
}
.business-site-toolbar strong {
  display: block;
  font-size: 0.95rem;
}
.business-site-url {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #65676b;
  word-break: break-all;
}
.business-site-frame-wrap {
  background: #f0f2f5;
  min-height: 62vh;
}
.business-site-frame {
  display: block;
  width: 100%;
  height: min(72vh, 820px);
  border: 0;
  background: #fff;
}
.business-site-note {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 0.78rem;
}

.feed-container { max-width: 1120px; }
.feed-container--wide { max-width: 1480px; }
.feed-layout {
  display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start;
}
.feed-layout.has-ads {
  grid-template-columns: 340px minmax(0, 1fr) 260px;
}
.feed-container--wide:has(.feed-col-ads) {
  padding-right: 16px;
  box-sizing: border-box;
}

/* Linker kolom compacter */
.feed-col-left .side-card { padding: 10px; margin-bottom: 8px; }
.side-friends-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.side-friends-titles { min-width: 0; flex: 1; }
.side-friends-head .feed-left-label { margin: 0; }
.side-friends-meta {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #65676b;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
}
.side-friends-count {
  color: #65676b;
  text-decoration: none;
  font-weight: 600;
}
.side-friends-count:hover { color: var(--mw-purple); text-decoration: underline; }
.side-friends-meta-sep { opacity: 0.7; }
.side-mutual-wrap { position: relative; display: inline-block; }
.side-mutual-btn {
  border: 0; background: transparent; padding: 0; margin: 0;
  font: inherit; font-size: inherit; font-weight: 600;
  color: #65676b; cursor: pointer; text-align: left;
}
.side-mutual-btn:hover { color: var(--mw-purple); text-decoration: underline; }
.side-mutual-hover {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30;
  width: 220px; padding: 10px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06);
}
.side-mutual-hover[hidden] { display: none !important; }
.side-mutual-hover-avs {
  display: flex; gap: 4px; margin-bottom: 8px;
}
.side-mutual-hover-avs img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 1px solid #fff; box-shadow: 0 0 0 1px #e4e6eb;
}
.side-mutual-hover p {
  margin: 0; font-size: 0.75rem; color: #050505; line-height: 1.35;
}
.side-mutual-modal:not([hidden]) {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.side-mutual-modal[hidden] { display: none !important; }
.side-mutual-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.35);
}
.side-mutual-modal-panel {
  position: relative; z-index: 1;
  width: min(320px, 100%);
  max-height: min(420px, 70vh);
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  display: flex; flex-direction: column; overflow: hidden;
}
.side-mutual-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 14px; border-bottom: 1px solid #e4e6eb;
}
.side-mutual-modal-head h4 { margin: 0; font-size: 0.95rem; }
.side-mutual-modal-x {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #e4e6eb; color: #050505; font-size: 1.2rem; cursor: pointer;
  display: grid; place-items: center; line-height: 1;
}
.side-mutual-modal-x:hover { background: #d8dadf; }
.side-mutual-list {
  list-style: none; margin: 0; padding: 6px; overflow-y: auto;
  flex: 1 1 auto;
}
.side-mutual-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 8px; text-decoration: none; color: #050505;
}
.side-mutual-list a:hover { background: #f0f2f5; }
.side-mutual-list img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.side-mutual-list span { font-size: 0.88rem; font-weight: 600; }
.side-mutual-all-link {
  display: block; text-align: center; padding: 10px 12px;
  border-top: 1px solid #e4e6eb; font-size: 0.82rem; font-weight: 600;
  color: var(--mw-purple); text-decoration: none;
}
.side-mutual-all-link:hover { text-decoration: underline; }
.side-friends-all {
  font-size: 0.72rem; font-weight: 600; color: var(--mw-purple); text-decoration: none;
  flex-shrink: 0; margin-top: 2px;
}
.side-friends-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.side-friend-tile {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: #050505; min-width: 0;
}
.side-friend-tile img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px;
  background: #e4e6eb;
}
.side-friend-tile span {
  font-size: 0.68rem; font-weight: 600; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-intro-card {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  padding: 0 14px 12px !important;
  overflow: hidden;
}
.side-intro-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin: 0 -14px 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--mw-purple) 14%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--mw-purple) 12%, #e4e6eb);
}
@supports not (background: color-mix(in srgb, red 50%, white)) {
  .side-intro-head {
    background: rgba(139, 47, 201, 0.12);
    border-bottom-color: rgba(139, 47, 201, 0.14);
  }
}
.side-intro-subhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin: 14px -14px 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--mw-purple) 14%, #fff);
  border-top: 1px solid color-mix(in srgb, var(--mw-purple) 12%, #e4e6eb);
  border-bottom: 1px solid color-mix(in srgb, var(--mw-purple) 12%, #e4e6eb);
}
@supports not (background: color-mix(in srgb, red 50%, white)) {
  .side-intro-subhead {
    background: rgba(139, 47, 201, 0.12);
    border-top-color: rgba(139, 47, 201, 0.14);
    border-bottom-color: rgba(139, 47, 201, 0.14);
  }
}
.side-intro-title {
  margin: 0; font-size: 1.05rem; font-weight: 800; color: #050505;
  text-transform: none; letter-spacing: 0;
}
.side-intro-subtitle {
  margin: 0; font-size: 0.98rem; font-weight: 800; color: #050505;
}
.side-intro-edit {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: #65676b; text-decoration: none; background: #e4e6eb;
  font-size: 0.95rem; flex-shrink: 0; border: 0; cursor: pointer;
}
.side-intro-edit:hover { background: #d8dadf; text-decoration: none; }
.side-intro-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.side-intro-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: #050505; line-height: 1.35;
}
.side-intro-ico {
  width: 20px; flex-shrink: 0; text-align: center; opacity: 0.75; margin-top: 1px;
}
.side-intro-work {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: #050505;
}
.side-intro-work-ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e4e6eb; display: grid; place-items: center; flex-shrink: 0;
}
.side-intro-add {
  display: inline-block; font-size: 0.88rem; font-weight: 600;
  color: #216fdb; text-decoration: none;
}
.side-intro-add:hover { text-decoration: underline; }
.side-intro-add-btn {
  display: block; text-align: center; text-decoration: none;
  background: #e4e6eb; color: #050505; font-weight: 650;
  border-radius: 8px; padding: 10px 12px; font-size: 0.9rem;
}
.side-intro-add-btn:hover { background: #d8dadf; text-decoration: none; }
.side-intro-highlights {
  list-style: disc; margin: 0 0 10px 18px; padding: 0;
  font-size: 0.9rem; color: #050505;
}
.side-intro-empty { margin: 0; font-size: 0.86rem; }
.side-highlights-form { margin-top: 4px; }
.side-highlights-label {
  display: block; font-size: 0.78rem; font-weight: 650; color: #65676b; margin-bottom: 6px;
}
.side-highlights-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #ccd0d5; border-radius: 8px;
  padding: 10px 12px; font: inherit; font-size: 0.9rem; resize: vertical; min-height: 96px;
  background: #fff;
}
.side-highlights-form textarea:focus {
  outline: none; border-color: #0866ff; box-shadow: 0 0 0 2px rgba(8,102,255,.15);
}
.side-highlights-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px;
}
.edit-birth-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.side-photos-card {
  padding: 0 14px 12px !important;
  overflow: hidden;
}
.side-photos-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin: 0 -14px 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--mw-purple) 14%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--mw-purple) 12%, #e4e6eb);
}
@supports not (background: color-mix(in srgb, red 50%, white)) {
  .side-photos-head {
    background: rgba(139, 47, 201, 0.12);
    border-bottom-color: rgba(139, 47, 201, 0.14);
  }
}
.side-photos-title {
  margin: 0; font-size: 1.05rem; font-weight: 800; color: #050505; letter-spacing: 0;
  text-transform: none;
}
.side-photos-all {
  font-size: 0.88rem; font-weight: 600; color: #216fdb; text-decoration: none;
  white-space: nowrap;
}
.side-photos-all:hover { text-decoration: underline; }
.side-photos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.side-photo-tile {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  overflow: hidden; background: #e4e6eb; aspect-ratio: 1;
  border-radius: 0;
}
.side-photos-grid .side-photo-tile:first-child { border-radius: 8px 0 0 0; }
.side-photos-grid .side-photo-tile:nth-child(3) { border-radius: 0 8px 0 0; }
.side-photos-grid .side-photo-tile:nth-last-child(3):nth-child(3n+1),
.side-photos-grid .side-photo-tile:last-child:nth-child(3n+1) { border-radius: 0 0 0 8px; }
.side-photos-grid .side-photo-tile:last-child:nth-child(3n) { border-radius: 0 0 8px 0; }
.side-photo-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.side-biz-badge {
  display: inline-block; margin-top: 4px; padding: 2px 8px;
  background: var(--mw-grad-soft); color: var(--mw-purple);
  border-radius: 999px; font-size: 0.7rem; font-weight: 700;
}
.feed-col-left .btn { font-size: 0.74rem; padding: 5px 8px; }
.feed-col-left .side-card > .btn + .btn { margin-top: 10px; }
.feed-col-left .side-bio,
.feed-col-left .side-meta { font-size: 0.78rem; }
.feed-col-left .feed-left-label { font-size: 0.65rem; }
.feed-col-left .search-row input { font-size: 0.78rem; padding: 5px 8px; }
.feed-col-left .feed-search-hit { font-size: 0.78rem; padding: 6px 0; }
.feed-col-left .feed-search-hit img { width: 26px; height: 26px; }
.feed-col-left .feed-request-row { gap: 6px; padding: 6px 0; }
.feed-col-left .feed-request-row img { width: 26px; height: 26px; }
.feed-col-left .feed-request-meta { font-size: 0.76rem; }

.edit-profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.edit-profile-bio { grid-column: 1 / -1; }
.edit-preview-avatar {
  width: 88px; height: 88px; object-fit: cover; border-radius: 8px;
  border: 1px solid #ccd0d5; display: block; flex-shrink: 0;
}
.edit-preview-cover {
  width: 160px; height: 72px; object-fit: cover; border-radius: 8px;
  display: block; background: #ddd; flex-shrink: 0; border: 1px solid #ccd0d5;
}
.edit-profile-grid .field { margin-bottom: 10px; }
.edit-profile-grid textarea {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit; width: 100%;
}
@media (max-width: 800px) {
  .edit-profile-grid { grid-template-columns: 1fr; }
}

.edit-pro { padding: 8px 4px 24px; }
.edit-pro-pagehead {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin: 8px 0 18px; padding: 0 4px;
}
.edit-pro-pagehead h1 {
  margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; color: #050505;
}
.edit-pro-pagehead p {
  margin: 0; color: #65676b; font-size: 0.9rem; max-width: 52ch;
}
.edit-pro-media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.edit-pro-card {
  background: #fff; border: 1px solid #e4e6eb; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.edit-pro-card h2 {
  margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; color: #050505;
  padding-bottom: 10px; border-bottom: 1px solid #eef0f2;
}
.edit-pro-media-row {
  display: flex; align-items: center; gap: 14px;
}
.edit-pro-media-row--cover { align-items: flex-start; }
.edit-pro-upload {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1;
}
.edit-pro-upload input[type="file"] {
  font-size: 0.82rem; color: #65676b; max-width: 100%;
}
.edit-pro-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px;
}
.edit-pro-col .field { margin-bottom: 12px; }
.edit-pro-col .field > span {
  display: block; font-size: 0.78rem; font-weight: 650; color: #65676b;
  margin-bottom: 5px; letter-spacing: 0.01em;
}
.edit-pro-col .field input,
.edit-pro-col .field select,
.edit-pro-col .field textarea,
.edit-pro-fieldset input {
  width: 100%; box-sizing: border-box;
  border: 1px solid #ccd0d5; border-radius: 8px;
  padding: 10px 12px; font: inherit; background: #fff; color: #050505;
}
.edit-pro-col .field input:focus,
.edit-pro-col .field select:focus,
.edit-pro-col .field textarea:focus {
  outline: none; border-color: #0866ff; box-shadow: 0 0 0 2px rgba(8,102,255,.15);
}
.edit-pro-fieldset {
  border: 1px solid #e4e6eb; border-radius: 8px; padding: 10px 12px 4px;
  margin: 0 0 12px;
}
.edit-pro-fieldset legend {
  padding: 0 6px; font-size: 0.78rem; font-weight: 650; color: #65676b;
}
.edit-pro-help {
  margin: -4px 0 14px; font-size: 0.88rem; color: #65676b; line-height: 1.4;
}
.edit-pro-vis-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px;
}
.edit-pro-vis-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid #e4e6eb; border-radius: 8px;
  background: #f7f8fa; font-size: 0.88rem; font-weight: 600; color: #050505;
  cursor: pointer;
}
.edit-pro-vis-item:hover { background: #eef3ff; border-color: #c9d8f5; }
.edit-pro-vis-item input { width: 16px; height: 16px; accent-color: #0866ff; flex-shrink: 0; }
.edit-pro-privacy .privacy-block {
  border: 1px solid #e4e6eb; border-radius: 8px; padding: 12px; margin-bottom: 12px;
  background: #fafbfc;
}
.edit-pro-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 4px 0 8px;
}
.side-intro-work-sub {
  font-size: 0.82rem; color: #65676b; font-weight: 500; margin-top: 2px;
}
@media (max-width: 900px) {
  .edit-pro-media,
  .edit-pro-cols,
  .edit-pro-vis-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .edit-pro-pagehead { flex-direction: column; }
  .edit-pro-media,
  .edit-pro-cols,
  .edit-pro-vis-grid { grid-template-columns: 1fr; }
}

.side-card, .feed-composer, .feed-post, .feed-empty, .feed-toolbar,
.feed-people-block, .feed-featured-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.side-card { padding: 12px; margin-bottom: 10px; }
.side-me { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.side-me img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; }
.side-me span { display: block; color: var(--muted); font-size: 0.78rem; }
.side-bio { margin: 0 0 8px; color: var(--muted); font-size: 0.86rem; }
.side-meta { margin: 0 0 10px; font-size: 0.84rem; }
.feed-left-label {
  display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.search-row { display: flex; gap: 6px; }
.search-row input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 10px; font: inherit; font-size: 0.86rem;
}
.feed-search-hit {
  display: flex; gap: 8px; align-items: center; padding: 8px 0;
  color: inherit; text-decoration: none; border-top: 1px solid #f0ecf5; font-size: 0.88rem;
}
.feed-search-hit img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.feed-requests-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 4px; background: #e11d48; color: #fff;
  font-size: 0.7rem; font-weight: 700; margin-left: 4px;
}
.feed-request-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-top: 1px solid #f0ecf5;
}
.feed-request-row img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.feed-request-meta { flex: 1; min-width: 0; font-size: 0.86rem; }

.feed-composer { padding: 12px 12px 8px; margin-bottom: 10px; }
.feed-composer-prompt-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.feed-composer-prompt {
  flex: 1; border: none; background: #f0f2f5; color: #65676b;
  text-align: left; padding: 10px 14px; border-radius: 999px;
  font: inherit; font-size: 0.95rem; cursor: pointer;
}
.feed-composer-prompt:hover { background: #e4e6eb; }
.feed-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.feed-avatar--square { border-radius: 6px !important; }
.feed-composer-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  border-top: 1px solid var(--border); padding-top: 8px;
}
.feed-composer-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; background: transparent; cursor: pointer;
  padding: 10px 6px; border-radius: 8px; font: inherit; font-weight: 600;
  font-size: 0.88rem; color: #65676b;
}
.feed-composer-chip:hover { background: #f0f2f5; }
.feed-composer-chip-icon {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
}
.feed-composer-chip-icon--live { color: #f02849; }
.feed-composer-chip-icon--photo { color: #45bd62; }
.feed-composer-chip-icon--life { color: #f7b928; }
.feed-composer-modal[hidden] { display: none !important; }
.feed-composer-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.feed-composer-modal-backdrop {
  position: absolute; inset: 0; background: rgba(244, 244, 244, 0.8);
}
.feed-composer-modal-panel {
  position: relative; z-index: 1; width: min(500px, 100%);
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
  overflow: hidden;
}
.feed-composer-modal-head {
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 14px 48px; border-bottom: 1px solid var(--border);
}
.feed-composer-modal-head h2 { margin: 0; font-size: 1.15rem; }
.feed-composer-modal-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: #e4e6eb; cursor: pointer; font-size: 1.4rem; line-height: 1; color: #050505;
}
.feed-composer-modal-form { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.feed-composer-modal-user { display: flex; align-items: flex-start; gap: 10px; }
.feed-composer-modal-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.feed-composer-modal-form textarea {
  width: 100%; border: none; resize: vertical; min-height: 110px;
  font: inherit; font-size: 1.05rem; outline: none; color: #050505; background: transparent;
}
.feed-composer-live-note { margin: 0; font-size: 0.86rem; color: #65676b; background: #f0f2f5; padding: 10px 12px; border-radius: 8px; }
.feed-composer-add-media {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 10px 12px; font: inherit; font-weight: 600; cursor: pointer; color: #050505;
}
.feed-composer-add-media:hover { background: #f0f2f5; }
.feed-composer-add-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  background: #fff;
}
.feed-composer-add-bar > span {
  font-size: 0.9rem; font-weight: 600; color: #050505;
}
.fc-add-icons {
  display: flex; align-items: center; gap: 2px; margin-left: auto;
}
.feed-composer-tool-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: transparent; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.feed-composer-tool-btn:hover { background: #f0f2f5; }
.feed-composer-tool-btn--photo { border-color: transparent; background: transparent; }
.fc-gif-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 20px; padding: 0 4px; border-radius: 4px;
  background: #00a0a0; color: #fff; font-size: 0.65rem; font-weight: 800;
}
.fc-user-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  row-gap: 4px;
  align-items: center;
}
.fc-user-meta > strong {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.fc-pill-row {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  justify-self: end;
}
.fc-context-line {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #65676b;
}
.fc-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #ccd0d5; background: #e4e6eb; color: #050505;
  border-radius: 6px; padding: 3px 8px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.fc-pill--audience { border-color: #1877f2; color: #1877f2; background: #e7f3ff; }
.fc-editor { border-radius: 10px; transition: min-height 0.15s ease; }
.fc-rich {
  min-height: 110px; max-height: 320px; overflow: auto;
  padding: 4px 2px; outline: none; font: inherit; font-size: 1.05rem;
  color: #050505; line-height: 1.35; white-space: pre-wrap; word-break: break-word;
}
.fc-rich:empty:before {
  content: attr(data-placeholder); color: #65676b; pointer-events: none;
}
.fc-editor.has-bg {
  min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.fc-editor.has-bg .fc-rich {
  background: transparent; min-height: 160px; width: 100%;
  caret-color: #fff; font-weight: 700;
}
.fc-editor.has-bg .fc-rich:empty:before { color: rgba(255,255,255,0.7); }
.fc-text-hint {
  flex: 1 1 100%; margin: 0; font-size: 0.78rem; color: #65676b; font-weight: 500;
}
.fc-aud-list { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow: auto; }
.fc-aud-row, .fc-aud-main {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; cursor: pointer;
}
.fc-aud-row:hover, .fc-aud-main:hover { background: #f0f2f5; }
.fc-aud-row.is-on, .fc-aud-row.is-on .fc-aud-main { background: #e7f3ff; }
.fc-aud-row--split { padding: 0; }
.fc-aud-row--split .fc-aud-main { flex: 1; width: 100%; }
.fc-aud-ico { font-size: 1.35rem; width: 36px; text-align: center; flex: 0 0 auto; }
.fc-aud-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-aud-text small { color: #65676b; }
.fc-aud-link {
  border: 0; background: none; padding: 0; margin: 0;
  color: #1877f2; font: inherit; font-size: 0.86rem; font-weight: 600;
  text-align: left; cursor: pointer;
}
.fc-aud-link:hover { text-decoration: underline; }
.fc-aud-row input[type="radio"] { accent-color: #1877f2; width: 18px; height: 18px; flex: 0 0 auto; }
.fc-tag-list--half { max-height: 160px; }
.feed-post-body--rich { white-space: normal; }
.feed-post-body--rich span { white-space: pre-wrap; }
.fc-text-tools {
  display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 8px 0 4px; align-items: flex-end;
  border-top: 1px solid #e4e6eb; margin-top: 4px;
}
.fc-text-tools[hidden] { display: none !important; }
.fc-tool {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 0.72rem; color: #65676b; font-weight: 600;
}
.fc-tool input[type="range"] { width: 88px; }
.fc-tool select, .fc-tool input[type="color"] {
  border: 1px solid #ccd0d5; border-radius: 6px; padding: 4px 6px; background: #fff;
}
.fc-tool--check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 4px; }
.fc-bg-bar {
  display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 6px 0 2px; scrollbar-width: thin;
}
.fc-bg-nav, .fc-bg-emoji {
  flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: #e4e6eb; cursor: pointer; font-size: 1rem;
}
.fc-bg-swatch {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; padding: 0;
}
.fc-bg-swatch.is-on { border-color: #1877f2; box-shadow: 0 0 0 1px #fff inset; }
.fc-bg-swatch--off { background: #fff; border: 1px solid #ccd0d5; color: #65676b; font-size: 0.95rem; }
.fc-panel[hidden] { display: none !important; }
.fc-panel { display: flex; flex-direction: column; gap: 10px; }
.fc-panel-lead { margin: 0; font-size: 1.05rem; }
.fc-panel-hint { margin: 0; color: #65676b; font-size: 0.86rem; line-height: 1.4; }
.fc-panel-input {
  width: 100%; border: 1px solid #ccd0d5; border-radius: 8px; padding: 10px 12px; font: inherit;
}
.fc-choice {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; cursor: pointer; border: 1px solid transparent;
}
.fc-choice:hover { background: #f0f2f5; }
.fc-choice.is-on { background: #e7f3ff; }
.fc-choice-icon { font-size: 1.35rem; width: 36px; text-align: center; }
.fc-choice-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fc-choice-text small { color: #65676b; }
.fc-choice input { accent-color: #1877f2; width: 18px; height: 18px; }
.fc-feeling-grid, .fc-gif-grid, .fc-more-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.fc-feeling-btn, .fc-more-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 0; border-radius: 10px; background: #f0f2f5; text-align: left; cursor: pointer; font: inherit;
}
.fc-feeling-btn:hover, .fc-more-item:hover { background: #e4e6eb; }
.fc-more-item.is-disabled { opacity: 0.45; cursor: not-allowed; }
.fc-more-ico { width: 28px; text-align: center; font-weight: 700; }
.fc-gif-btn {
  border: 0; border-radius: 10px; background: #f0f2f5; font-size: 1.6rem; padding: 14px 0; cursor: pointer;
}
.fc-gif-btn:hover { background: #e4e6eb; }
.fc-checkin-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-chip-suggest {
  border: 0; background: #e4e6eb; border-radius: 16px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer;
}
.fc-tag-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.fc-tag-row {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer;
}
.fc-tag-row:hover { background: #f0f2f5; }
.fc-tag-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.fc-tag-row span { flex: 1; font-weight: 600; }
.feed-post-bg {
  margin: 0 0 8px; min-height: 280px; display: flex; align-items: center; justify-content: center;
  padding: 28px 20px;
}
.feed-post-bg-text {
  text-align: center; font-weight: 700; line-height: 1.25; word-break: break-word;
  max-width: 100%; white-space: pre-wrap;
}
.feed-post-extras { margin: 0 12px 10px; font-size: 0.9rem; color: #65676b; }
.feed-post-extras a { color: #050505; font-weight: 600; text-decoration: none; }
.feed-post-extras a:hover { text-decoration: underline; }
body.feed-composer-modal-open { overflow: hidden; }
.feed-composer-preview {
  position: relative; max-width: 100%; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--border); background: #f0f2f5;
}
.feed-composer-preview img, .feed-composer-preview video {
  width: 100%; max-height: 260px; object-fit: contain; display: block;
}
.feed-composer-album {
  display: grid; gap: 2px; background: #000;
}
.feed-composer-album--1 {
  display: flex; align-items: center; justify-content: center;
  min-height: 0; background: #000;
}
.feed-composer-album--1 .feed-composer-album-item {
  width: 100%; height: auto; max-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.feed-composer-album--1 .feed-composer-album-item img,
.feed-composer-album--1 .feed-composer-album-item video {
  width: auto; height: auto; max-width: 100%; max-height: 360px;
  object-fit: contain;
}
.feed-composer-album--2 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 2 / 1;
  max-height: 320px;
}
.feed-composer-album--3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.25fr 1fr;
  aspect-ratio: 4 / 3;
  max-height: 360px;
}
.feed-composer-album--3 .feed-composer-album-item:first-child { grid-column: 1 / -1; }
.feed-composer-album--4 {
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  aspect-ratio: 4 / 3;
  max-height: 360px;
}
.feed-composer-album--4 .feed-composer-album-item:first-child {
  grid-row: 1 / -1;
}
.feed-composer-album-item {
  position: relative; overflow: hidden; background: #111; min-height: 0; min-width: 0;
}
.feed-composer-album-item img,
.feed-composer-album-item video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; max-height: none;
}
.feed-composer-album-x {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.72); color: #fff; cursor: pointer;
  font-size: 1rem; line-height: 1;
}
.feed-preview-remove {
  position: absolute; top: 8px; left: 8px; z-index: 3; width: 28px; height: 28px;
  border-radius: 50%; border: none; background: rgba(0,0,0,.75); color: #fff; cursor: pointer;
}
.feed-publish-options { display: flex; flex-direction: column; gap: 4px; }
.feed-publish-opt { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: #444; }
@media (max-width: 700px) {
  .feed-composer-chip span:not(.feed-composer-chip-icon) { font-size: 0.78rem; }
}

.feed-featured-card {
  padding: 12px 14px; margin-bottom: 10px;
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.feed-featured-card p { margin: 3px 0 0; font-size: 0.82rem; color: var(--muted); }
.feed-featured-hint { font-size: 0.78rem; color: var(--mw-purple); white-space: nowrap; }
.feed-toolbar {
  padding: 10px 14px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.feed-toolbar h2 { margin: 0; font-size: 1rem; }
.feed-view-switch { display: flex; gap: 4px; }
.feed-view-switch a {
  font-size: 0.76rem; color: #666; text-decoration: none;
  padding: 5px 8px; border-radius: 4px; background: #f3f0f8; font-weight: 600;
}
.feed-view-switch a.is-active { background: var(--mw-navy); color: #fff; }

.feed-list { display: flex; flex-direction: column; gap: 10px; }
.feed-list-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.feed-post { padding: 12px 14px; }
.feed-post.is-draft { opacity: 0.92; outline: 1px dashed rgba(181, 71, 8, 0.35); }
.feed-post.is-archived { opacity: 0.9; }
.feed-post-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; position: relative; }
.feed-post-meta { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.feed-post-meta a { color: inherit; text-decoration: none; }
.feed-post-when {
  font-size: 0.72rem; color: var(--muted); font-weight: 500; margin-top: 1px;
}
.feed-post-state { color: #b54708; font-weight: 600; }
.feed-post-more { position: relative; margin-left: auto; flex-shrink: 0; }
.feed-post-more-btn {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: #65676b; cursor: pointer;
  display: grid; place-items: center;
}
.feed-post-more-btn:hover,
.feed-post-more-btn[aria-expanded="true"] { background: #e4e6eb; color: #050505; }
.feed-post-more-panel {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 40;
  width: min(360px, calc(100vw - 32px));
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.feed-post-more-panel[hidden] { display: none !important; }
.feed-post-menu-item {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  font: inherit; color: #050505; text-decoration: none;
}
.feed-post-menu-item:hover { background: #f0f2f5; }
.feed-post-menu-item.is-active-state { background: #f0ebf8; }
.feed-post-menu-item.is-danger strong { color: #b01040; }
.feed-post-menu-ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e4e6eb; display: grid; place-items: center;
  flex-shrink: 0; font-size: 1.05rem;
}
.feed-post-menu-item span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-post-menu-item strong { font-size: 0.92rem; font-weight: 600; line-height: 1.25; }
.feed-post-menu-item small { font-size: 0.78rem; color: #65676b; line-height: 1.3; font-weight: 500; }
.feed-post-menu-sep { height: 1px; background: #e4e6eb; margin: 6px 4px; }
.feed-post-edit {
  margin: 0 0 10px; padding: 10px 12px; border-radius: 10px;
  background: #f7f8fa; border: 1px solid #e4e6eb;
}
.feed-post-edit textarea {
  width: 100%; border: 1px solid #ccd0d5; border-radius: 8px;
  padding: 10px 12px; font: inherit; resize: vertical; min-height: 72px;
  box-sizing: border-box;
}
.feed-post-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.feed-unavailable {
  margin: 8px 0 4px; padding: 28px 20px; text-align: center;
  border: 1px solid #ced0d4; border-radius: 8px; background: #f0f2f5;
}
.feed-unavailable-ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: #e4e6eb; color: #65676b; display: grid; place-items: center;
}
.feed-unavailable strong { display: block; font-size: 1.05rem; margin-bottom: 6px; color: #050505; }
.feed-unavailable p { margin: 0 auto; max-width: 34rem; font-size: 0.9rem; color: #65676b; line-height: 1.4; }
.feed-pin-badge {
  font-size: 0.68rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: var(--mw-grad-soft); color: var(--mw-purple);
}
.feed-post-body { margin-bottom: 8px; white-space: pre-wrap; font-size: 0.95rem; }
.feed-post-media { margin: 0 -14px 8px; background: #111; }
.feed-post-media img, .feed-post-media video {
  width: 100%; max-height: 480px; display: block; object-fit: contain;
}
.feed-album {
  display: grid; gap: 2px; margin: 0 -14px 8px;
  background: #000; overflow: hidden;
}
/* 1 foto: natuurlijke verhouding, volledig zichtbaar */
.feed-album--1 {
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.feed-album--1 .feed-album-item {
  width: 100%; height: auto; max-height: 560px;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.feed-album--1 .feed-album-item img {
  width: auto; height: auto;
  max-width: 100%; max-height: 560px;
  object-fit: contain; object-position: center;
}
/* 2+ foto's: collage, crop zonder uitrekken */
.feed-album--2 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 2 / 1;
  max-height: 420px;
}
.feed-album--3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.25fr 1fr;
  aspect-ratio: 4 / 3;
  max-height: 520px;
}
.feed-album--3 .feed-album-item:first-child { grid-column: 1 / -1; }
.feed-album--4 {
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  aspect-ratio: 4 / 3;
  max-height: 520px;
}
.feed-album--4 .feed-album-item:first-child { grid-row: 1 / -1; }
.feed-album-item {
  position: relative; overflow: hidden; background: #111; min-height: 0; min-width: 0;
  border: none; padding: 0; cursor: pointer; display: block; width: 100%; height: 100%;
}
.feed-album-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.feed-album-item--more::after {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35);
}
.feed-album-more {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
  pointer-events: none;
}
.feed-composer-album-item--more .feed-album-more { pointer-events: none; }
.feed-stats-btn {
  border: none; background: transparent; cursor: pointer; font: inherit;
  color: var(--muted); padding: 0; display: inline-flex; align-items: center; gap: 4px;
}
.feed-stats-btn:hover { color: var(--mw-purple); text-decoration: underline; }
.feed-shared-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  background: #fafafa;
}
.feed-shared-meta {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px;
}
.feed-shared-meta time { display: block; font-size: 0.72rem; color: var(--muted); }
.feed-shared-card .feed-album { margin: 0; }
.feed-modal-open { overflow: hidden; }
.feed-modal-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: #e4e6eb; cursor: pointer; font-size: 1.4rem; line-height: 1; color: #050505;
}
.feed-comments-modal[hidden],
.feed-share-modal[hidden],
.feed-album-modal[hidden] { display: none !important; }
.feed-comments-modal,
.feed-share-modal {
  position: fixed; inset: 0; z-index: 1210;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.feed-comments-backdrop,
.feed-share-backdrop,
.feed-album-modal-backdrop {
  position: absolute; inset: 0; background: rgba(14, 12, 10, 0.55);
}
.feed-comments-dialog,
.feed-share-dialog {
  position: relative; z-index: 1; width: min(560px, 100%);
  max-height: min(90vh, 760px); background: #fff; border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  display: flex; flex-direction: column; overflow: hidden; min-height: 0;
}
.feed-comments-dialog-head,
.feed-share-dialog-head {
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: 14px 48px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.feed-comments-dialog-head h2,
.feed-share-dialog-head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.feed-comments-dialog-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 0 0;
}
.feed-comments-panel {
  display: flex; flex-direction: column; min-height: 100%; padding: 0 0 12px;
}
.feed-comments-panel[hidden] { display: none !important; }
.feed-comments-thread {
  display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 0 14px 12px;
}
.feed-comments-empty {
  text-align: center; padding: 40px 16px; color: #65676b;
}
.feed-comments-empty p { margin: 4px 0; }
.feed-cmt { width: 100%; }
.feed-cmt--reply { margin-top: 10px; margin-left: 36px; width: calc(100% - 36px); }
.feed-cmt-bubble {
  width: 100%; box-sizing: border-box; background: #f0f2f5;
  border-radius: 14px; padding: 10px 12px;
}
.feed-cmt-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px;
}
.feed-cmt-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.feed-cmt-name { color: inherit; text-decoration: none; }
a.feed-cmt-name:hover { text-decoration: underline; }
.feed-cmt-text { margin: 0; font-size: 0.92rem; white-space: pre-wrap; word-break: break-word; }
.feed-cmt-meta {
  display: flex; align-items: center; gap: 10px; padding: 4px 4px 0 40px;
  font-size: 0.75rem; color: #65676b;
}
.feed-comment-reply-btn {
  border: none; background: transparent; cursor: pointer; font: inherit;
  font-weight: 700; font-size: 0.75rem; color: #65676b; padding: 0;
}
.feed-comment-reply-btn:hover { text-decoration: underline; color: #050505; }
.feed-comment-reply-label {
  display: block; font-size: 0.72rem; color: #65676b; margin-bottom: 2px;
}
.feed-cmt-del {
  border: none; background: transparent; cursor: pointer; color: #65676b;
  font-size: 1.1rem; line-height: 1; padding: 2px 6px; border-radius: 4px;
}
.feed-cmt-del:hover { background: #e4e6eb; }
.feed-comment-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.feed-comment-form--modal {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 14px; border-top: 1px solid var(--border); margin-top: auto;
}
.feed-comment-compose { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.feed-comment-replying {
  margin: 0; font-size: 0.75rem; color: var(--mw-purple); font-weight: 600;
}
.feed-comment-form--modal input[type="text"] {
  width: 100%; border: none; background: #f0f2f5; border-radius: 18px;
  padding: 8px 12px; font: inherit; outline: none;
}
.feed-view-all-comments {
  display: block; width: calc(100% - 28px); margin: 8px 14px 0;
  border: none; background: transparent; cursor: pointer; font: inherit;
  font-weight: 600; color: #65676b; text-align: left; padding: 6px 0;
}
.feed-view-all-comments:hover { text-decoration: underline; color: #1a1a1a; }
.feed-share-dialog-body {
  display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px;
  overflow-y: auto; min-height: 0;
}
.feed-share-author { display: flex; gap: 10px; align-items: center; }
.feed-share-author strong { display: block; }
.feed-share-author span { font-size: 0.8rem; color: #777; }
.feed-share-dialog-body textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; font: inherit; resize: vertical; min-height: 64px;
}
.feed-share-preview {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: #fafafa;
}
.feed-share-preview-meta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.feed-share-preview-meta span { color: #888; font-size: 0.75rem; }
.feed-share-preview p { margin: 0; font-size: 0.9rem; white-space: pre-wrap; }
.feed-share-preview-media img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 6px; display: block; }
.feed-share-bulk {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: #555;
}
.feed-share-bulk label { display: inline-flex; align-items: center; gap: 6px; }
.feed-share-lists { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.feed-share-list { padding: 4px 0; }
.feed-share-person {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer;
}
.feed-share-person input[type="checkbox"] {
  width: 18px; height: 18px; flex: 0 0 auto; accent-color: #1877f2; cursor: pointer;
}
.feed-share-person img,
.feed-share-person .feed-comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  display: block; background: #e4e6eb;
}
.feed-share-person span {
  font-weight: 600; color: #050505; flex: 1 1 auto; min-width: 0;
}
.feed-share-person:hover { background: #f0f2f5; }
.feed-share-submit { width: 100%; }
.feed-share-submit:disabled { opacity: .55; cursor: not-allowed; }
.feed-share-dest {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #f7f8fa;
}
.feed-share-dest-title {
  margin: 0; font-size: 0.78rem; font-weight: 700; color: #65676b; text-transform: uppercase; letter-spacing: .02em;
}
.feed-share-dest-item {
  display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; font-weight: 600; color: #050505;
}
.feed-share-dest-item input { width: 18px; height: 18px; accent-color: #1877f2; flex: 0 0 auto; }
.feed-share-section-label {
  margin: 4px 0 0; font-size: 0.78rem; font-weight: 700; color: #65676b; text-transform: uppercase; letter-spacing: .02em;
}
.feed-share-lists.is-compact { max-height: 160px; }
.group-share-feed { margin-top: 28px; }
.group-share-feed h2 { margin: 0 0 12px; font-size: 1.1rem; }
.group-share-card {
  display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; margin-bottom: 10px;
}
.group-share-card img.group-share-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
}
.group-share-card-body { flex: 1 1 auto; min-width: 0; }
.group-share-card-body strong { display: block; }
.group-share-card-body time { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }
.group-share-card-body p { margin: 0 0 8px; white-space: pre-wrap; font-size: 0.92rem; }
.group-share-media {
  width: 96px; height: 150px; border-radius: 8px; overflow: hidden; background: #111; margin-top: 6px;
}
.group-share-media img, .group-share-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-share-preview {
  display: flex; gap: 12px; align-items: stretch;
  border: 1px solid #e4e6eb; border-radius: 10px; padding: 10px; background: #f7f8fa;
}
.reel-share-preview-media {
  flex: 0 0 96px; width: 96px; height: 150px; border-radius: 8px; overflow: hidden;
  background: #111; position: relative;
}
.reel-share-preview-media video,
.reel-share-preview-media img,
.reel-share-preview-media .reel-share-preview-textonly {
  width: 100%; height: 100%; object-fit: cover; display: block; background: #000;
}
.reel-share-preview-media video {
  position: absolute; inset: 0;
}
.reel-share-preview-textonly {
  display: flex; align-items: center; justify-content: center;
  padding: 8px; color: #fff; font-size: 0.72rem; text-align: center;
  line-height: 1.25; box-sizing: border-box;
}
.reel-share-preview-text { flex: 1 1 auto; min-width: 0; }
.reel-share-preview-text strong { display: block; font-size: 0.92rem; color: #050505; margin-bottom: 4px; }
.reel-share-preview-text p {
  margin: 0; font-size: 0.86rem; color: #65676b; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-empty-inline { margin: 12px; font-size: 0.88rem; color: #65676b; }
.feed-album-modal {
  position: fixed; inset: 0; z-index: 1800;
  display: flex; align-items: stretch; justify-content: stretch;
}
.feed-album-modal-shell {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) min(380px, 36vw);
  background: #000; overflow: hidden;
}
.feed-album-modal-x {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; cursor: pointer;
}
.feed-album-media-tools {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: flex; gap: 6px;
}
.feed-album-tool {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 1rem;
}
.feed-album-tool:hover { background: rgba(0,0,0,.75); }
.feed-album-modal-media {
  position: relative; background: #000;
  display: flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 0; height: 100%; width: 100%;
  overflow: hidden; padding: 48px 56px 40px;
  box-sizing: border-box;
}
.feed-album-modal-img {
  transition: transform .15s ease;
}
.feed-album-side-head {
  display: flex; gap: 10px; align-items: center; padding: 0 14px 10px;
  position: relative;
}
.feed-album-side-who { flex: 1; min-width: 0; }
.feed-album-side-head time { display: block; font-size: 0.72rem; color: #65676b; }
.feed-album-more { position: relative; flex-shrink: 0; }
.feed-album-more-btn {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; font-size: 1.25rem; color: #050505;
}
.feed-album-more-btn:hover { background: #f0f2f5; }
.feed-album-more-menu {
  position: absolute; top: 40px; right: 0; z-index: 20;
  width: min(340px, 78vw); max-height: min(70vh, 520px); overflow: auto;
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.feed-album-more-menu[hidden] { display: none !important; }
.feed-album-more-menu a,
.feed-album-more-menu button {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  border: 0; background: transparent; text-align: left;
  padding: 10px 10px; border-radius: 8px;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: #050505;
  cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.feed-album-more-menu form { margin: 0; }
.feed-album-more-menu a:hover,
.feed-album-more-menu button:hover { background: #f0f2f5; }
.feed-album-mi {
  width: 28px; flex-shrink: 0; text-align: center; font-size: 1rem; line-height: 1.3;
}
.feed-album-side-stats {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 0 14px 8px; font-size: 0.82rem; color: #65676b;
}
.feed-album-side-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 6px 10px; border-top: 1px solid #e4e6eb; border-bottom: 1px solid #e4e6eb;
  margin-bottom: 8px;
}
.feed-album-side-actions form { margin: 0; }
.feed-album-side-actions button {
  width: 100%; border: 0; background: transparent; border-radius: 6px;
  padding: 8px 4px; font: inherit; font-size: 0.82rem; font-weight: 650;
  color: #65676b; cursor: pointer;
}
.feed-album-side-actions button:hover,
.feed-album-side-actions button.is-on { background: #f0f2f5; color: #0866ff; }
.feed-album-modal-img,
.feed-album-modal-video {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}
.feed-album-modal-img[hidden],
.feed-album-modal-video[hidden] {
  display: none !important;
}
.feed-album-modal-video {
  background: #000;
}
.feed-album-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: #050505; font-size: 1.6rem;
  cursor: pointer; z-index: 2;
}
.feed-album-prev { left: 12px; }
.feed-album-next { right: 12px; }
.feed-album-modal-counter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.85rem; background: rgba(0,0,0,.45);
  padding: 4px 10px; border-radius: 999px; z-index: 2;
}
.feed-album-modal-side {
  background: #fff; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border-left: 1px solid #e4e6eb;
}
.feed-album-side-panel {
  display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 14px 0 10px;
}
.feed-album-side-panel[hidden] { display: none !important; }
.feed-album-side-body {
  margin: 0; padding: 0 14px 10px; white-space: pre-wrap; font-size: 0.92rem;
}
.feed-album-side-comments {
  flex: 1; overflow-y: auto; padding: 0 14px; display: flex; flex-direction: column; gap: 10px;
}
.feed-cmt-mini { display: flex; gap: 8px; align-items: flex-start; }
.feed-cmt-mini img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.feed-cmt-mini div { background: #f0f2f5; border-radius: 12px; padding: 7px 10px; font-size: 0.86rem; }
.feed-cmt-mini-replies {
  margin-top: 6px; padding-top: 6px; border-top: 1px solid #e4e6eb;
  font-size: 0.8rem; color: #444;
}
@media (max-width: 800px) {
  .feed-album-modal-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(42vh, 55vh) minmax(0, 1fr);
  }
  .feed-album-modal-media {
    padding: 40px 48px 36px;
    min-height: 42vh;
  }
  .feed-album-modal-side { border-left: none; border-top: 1px solid #e4e6eb; }
}
.feed-owner-tools {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 6px 0; border-top: 1px solid #f0ecf5;
}
.feed-media-toggles {
  display: inline-flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: #555;
}
.feed-stats {
  display: flex; gap: 12px; color: var(--muted); font-size: 0.8rem; padding: 4px 0;
}
.feed-react-bar {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 6px;
}
.feed-react-btn {
  border: none; background: transparent; cursor: pointer; font: inherit;
  font-weight: 600; font-size: 0.82rem; color: #555; padding: 6px 8px;
  border-radius: 4px; text-decoration: none;
}
.feed-react-btn:hover, .feed-react-btn.is-on { background: var(--mw-grad-soft); color: var(--mw-purple); }
.feed-comments { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.feed-comment { display: flex; gap: 8px; align-items: flex-start; }
.feed-comment img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.feed-comment div { background: #f5f2f9; border-radius: 6px; padding: 7px 9px; font-size: 0.86rem; }
.feed-comment-form { display: flex; gap: 6px; }
.feed-comment-form input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 10px; font: inherit; font-size: 0.86rem;
}
.feed-empty { padding: 20px; text-align: center; color: var(--muted); margin-bottom: 10px; font-size: 0.92rem; }

.feed-photos-toolbar { align-items: center; gap: 12px; }
.feed-photos-page { padding: 4px 2px 8px; }

/* Facebook-style photos */
.fb-photos { padding: 4px 2px 10px; max-width: 980px; margin: 0 auto; }
.fb-photos-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding: 0 2px 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(20, 26, 58, 0.08);
}
.fb-photos-head h1 {
  margin: 0; font-size: 1.12rem; font-weight: 700; color: var(--mw-navy);
  letter-spacing: -0.01em;
}
.fb-photos-head-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.fb-photos-add-link {
  color: var(--mw-blue); font-weight: 600; font-size: 0.82rem;
  cursor: pointer; text-decoration: none;
}
.fb-photos-add-link:hover { color: var(--mw-purple); text-decoration: underline; }
.fb-photos-more { position: relative; }
.fb-photos-more-btn,
.fb-album-menu-btn {
  width: 32px; height: 32px; border: 0; border-radius: 7px;
  background: #e4e6eb; color: #050505; font-size: 1.05rem;
  cursor: pointer; display: grid; place-items: center;
}
.fb-photos-more-btn:hover,
.fb-album-menu-btn:hover:not(:disabled) { background: #d8dadf; }
.fb-album-menu-btn:disabled { opacity: 0.45; cursor: default; }
.fb-photos-more-menu,
.fb-album-menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 200px; background: #fff; border: 1px solid #e4e6eb;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16);
  padding: 6px; display: none; flex-direction: column; gap: 2px;
}
.fb-photos-more-menu.is-open,
.fb-album-menu-panel.is-open,
.fb-photos-more-menu:not([hidden]),
.fb-album-menu-panel:not([hidden]) { display: flex; }
.fb-photos-more-menu[hidden],
.fb-album-menu-panel[hidden] { display: none !important; }
.fb-photos-more-menu a,
.fb-photos-more-menu button,
.fb-album-menu-panel a,
.fb-album-menu-panel button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; border-radius: 8px; font-weight: 600; color: var(--mw-navy);
  text-decoration: none; cursor: pointer; font-size: 0.9rem;
}
.fb-photos-more-menu a:hover,
.fb-album-menu-panel a:hover,
.fb-album-menu-panel button:hover { background: #f0f2f5; }
.fb-album-menu-panel button.is-danger { color: #c62828; }
.fb-photos-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; border-bottom: 1px solid #e4e6eb; margin-bottom: 14px;
}
.fb-photos-tabs { display: flex; gap: 4px; }
.fb-photos-tabs a {
  text-decoration: none; color: #65676b; font-weight: 700; font-size: 0.92rem;
  padding: 12px 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.fb-photos-tabs a.is-active { color: var(--mw-purple); border-bottom-color: var(--mw-purple); }
.fb-photos-search-btn {
  border: 0; background: transparent; color: var(--mw-blue);
  cursor: pointer; padding: 8px; border-radius: 8px;
}
.fb-photos-search-btn:hover { background: var(--mw-grad-soft); }
.fb-photos-search-bar { margin: -6px 0 12px; }
.fb-photos-search-bar input {
  width: 100%; max-width: 320px; border: 1px solid #ccd0d5; border-radius: 999px;
  padding: 8px 14px; background: #f0f2f5;
}
.fb-photos-bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px;
}
.fb-photos-select-all {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; cursor: pointer;
}
.fb-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.fb-photo-frame {
  min-width: 0;
}
.fb-photo-cell {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: visible;
  background: #fff;
  border: 1px solid #e4e6eb;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.fb-photo-cell .fb-photo-open {
  display: block; width: 100%; height: 100%; border: 0; padding: 0;
  cursor: pointer; background: transparent; border-radius: 12px; overflow: hidden;
}
.fb-photo-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 11px;
}
.fb-photo-tools { position: absolute; top: 8px; right: 8px; z-index: 4; }
.fb-photo-edit {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.fb-photo-cell:hover .fb-photo-edit,
.fb-photo-tools:focus-within .fb-photo-edit,
.fb-photo-menu.is-open ~ .fb-photo-edit,
.fb-photo-tools:has(.fb-photo-menu.is-open) .fb-photo-edit { opacity: 1; }
.fb-photo-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  z-index: 40; min-width: 280px;
  background: #fff; border: 1px solid #e4e6eb; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  padding: 6px; display: none; flex-direction: column; gap: 1px;
}
.fb-photo-menu.is-open { display: flex; }
.fb-photo-menu[hidden] { display: none !important; }
.fb-photo-menu a,
.fb-photo-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--mw-navy);
  cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.fb-photo-menu a:hover,
.fb-photo-menu button:hover {
  background: #f0f2f5;
  outline: 1px solid var(--mw-blue);
}
.fb-photo-menu span[aria-hidden] { width: 1.2em; text-align: center; flex-shrink: 0; color: #65676b; }
.fb-photo-check {
  position: absolute; left: 8px; top: 8px; z-index: 2; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.fb-photo-cell:hover .fb-photo-check,
.fb-photo-check:has(input:checked) { opacity: 1; }
.fb-photo-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.fb-photo-check-box {
  display: block; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid #fff; background: rgba(0,0,0,.25); box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.fb-photo-check input:checked + .fb-photo-check-box {
  background: var(--mw-purple); border-color: #fff;
}
.fb-photos-empty { grid-column: 1 / -1; }

/* Reels / Verhalen — lichte profielraster (FB-stijl) */
.fb-media { padding: 4px 2px 10px; max-width: 980px; margin: 0 auto; }
.fb-media-head {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; min-height: 28px;
  padding: 0 2px 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(20, 26, 58, 0.08);
}
.fb-media-head-actions { display: flex; align-items: center; gap: 10px; }
.fb-media-add-link {
  color: var(--mw-blue); font-weight: 600; font-size: 0.82rem;
  text-decoration: none;
}
.fb-media-add-link:hover { color: var(--mw-purple); text-decoration: underline; }
.fb-media-nav {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e4e6eb; margin-bottom: 14px;
}
.fb-media-tabs { display: flex; gap: 4px; }
.fb-media-tabs a {
  padding: 12px 14px; font-weight: 700; font-size: 0.92rem; color: #65676b;
  text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.fb-media-tabs a.is-active { color: var(--mw-blue); border-bottom-color: var(--mw-blue); }
.fb-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.fb-media-grid--reels,
.fb-media-grid--stories {
  grid-template-columns: repeat(auto-fill, 168px);
  gap: 8px;
  justify-content: start;
}
.fb-media-card {
  position: relative; display: block; border-radius: 8px; overflow: hidden;
  background: #111; aspect-ratio: 9 / 16; text-decoration: none; color: #fff;
  width: 168px; max-width: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.fb-media-thumb {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #1c1c28;
}
.fb-media-thumb img,
.fb-media-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.fb-media-text {
  padding: 16px; font-size: 0.95rem; font-weight: 700; text-align: center;
  line-height: 1.35; max-height: 100%; overflow: hidden;
}
.fb-media-stat,
.fb-media-when {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.65);
  pointer-events: none;
}
.fb-media-stat { left: 10px; bottom: 10px; }
.fb-media-when { left: 10px; bottom: 10px; }
.fb-media-stat + .fb-media-when { left: auto; right: 10px; }
.fb-media-empty { padding: 28px 12px; text-align: center; }
@media (max-width: 700px) {
  .fb-media-grid--reels,
  .fb-media-grid--stories {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 6px;
  }
  .fb-media-card { width: 100%; border-radius: 6px; }
}

.fb-photo-edit-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.fb-photo-edit-modal.is-open,
.fb-photo-edit-modal:not([hidden]) { display: flex; }
.fb-photo-edit-modal[hidden] { display: none !important; }
.fb-photo-edit-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.fb-photo-edit-dialog {
  position: relative; width: min(420px, 100%);
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); overflow: hidden;
}
.fb-photo-edit-dialog header {
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 14px 48px;
  border-bottom: 1px solid #e4e6eb;
}
.fb-photo-edit-dialog h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.fb-photo-edit-body { padding: 16px 18px 18px; display: grid; gap: 12px; }

.fb-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.fb-album-card { position: relative; min-width: 0; }
.fb-album-thumb-link { display: block; text-decoration: none; }
.fb-album-thumb {
  aspect-ratio: 1; border-radius: 10px; background: #e4e6eb center/cover no-repeat;
}
.fb-album-thumb--empty { background: #dddfe2; }
.fb-album-thumb--create {
  display: grid; place-items: center; background: #f0f2f5;
  color: #65676b; font-size: 2.4rem; font-weight: 300;
}
.fb-album-create { text-decoration: none; color: inherit; }
.fb-album-create-label {
  display: inline-block; margin-top: 8px; color: var(--mw-blue);
  font-weight: 700; text-decoration: underline;
}
.fb-album-meta {
  display: block; margin-top: 8px; text-decoration: none; color: inherit;
}
.fb-album-meta strong {
  display: block; font-size: 0.95rem; color: var(--mw-navy); line-height: 1.25;
}
.fb-album-meta span { font-size: 0.78rem; color: #65676b; }
.fb-album-menu { position: absolute; top: 8px; right: 8px; z-index: 2; }
.fb-album-menu-btn {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  font-size: 0.95rem;
}
.fb-album-back {
  display: inline-block; margin-bottom: 6px; color: var(--mw-purple);
  font-weight: 600; text-decoration: none; font-size: 0.88rem;
}

.fb-album-create-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 0;
  min-height: 520px; border: 1px solid #e4e6eb; border-radius: 12px; overflow: hidden;
  margin-top: 8px;
}
.fb-album-create-side {
  background: #fff; border-right: 1px solid #e4e6eb; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.fb-album-create-side h1 { margin: 0; font-size: 1.2rem; color: var(--mw-navy); }
.fb-album-privacy select,
.fb-album-create-side .field input {
  width: 100%; border: 1px solid #ccd0d5; border-radius: 8px; padding: 10px 12px;
}
.fb-album-upload-btn { cursor: pointer; text-align: center; }
.fb-album-file-count { margin: 0; font-size: 0.8rem; }
.fb-album-create-main {
  background: #f0f2f5; display: flex; align-items: center; justify-content: center;
  padding: 24px; min-height: 420px;
}
.fb-album-create-main.is-drag { outline: 2px dashed var(--mw-purple); outline-offset: -12px; }
.fb-album-drop-empty {
  text-align: center; color: #65676b; max-width: 320px;
  margin: 0 auto;
}
.fb-album-drop-ico { font-size: 3rem; margin-bottom: 8px; }
.fb-album-drop-empty strong { display: block; color: var(--mw-navy); font-size: 1.1rem; margin-bottom: 6px; }
.fb-album-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; width: 100%; align-self: stretch;
}
.fb-album-preview-grid[hidden] { display: none !important; }
.fb-album-preview-cell {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #ddd;
}
.fb-album-preview-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .fb-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .fb-album-create-layout { grid-template-columns: 1fr; }
  .fb-album-create-side { border-right: 0; border-bottom: 1px solid #e4e6eb; }
}
@media (max-width: 560px) {
  .fb-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-photo-edit { opacity: 1; }
}
.feed-photos-bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto;
}
.feed-photos-select-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; color: #444; cursor: pointer; user-select: none;
}
.feed-photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.feed-photo-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: #ece8f4;
}
.feed-photo-open {
  display: block; width: 100%; height: 100%;
  border: none; padding: 0; margin: 0; cursor: pointer; background: transparent;
}
.feed-photo-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #ece8f4;
}
.feed-photos-subtabs {
  display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap;
}
.feed-photos-subtab {
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  padding: 6px 12px; border-radius: 999px; color: #65676b; background: #f0f2f5;
}
.feed-photos-subtab.is-active { background: var(--mw-navy); color: #fff; }
.feed-photos-subtab-count {
  opacity: 0.85; font-weight: 500; margin-left: 4px;
}
.feed-photo-deleted-actions {
  position: absolute; left: 4px; right: 4px; bottom: 4px; z-index: 2;
  display: flex; gap: 4px;
}
.feed-photo-deleted-actions button,
.feed-photo-deleted-actions .btn {
  flex: 1; font-size: 0.65rem; padding: 4px 2px; line-height: 1.2;
}
.feed-photo-check {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  width: 22px; height: 22px; margin: 0; cursor: pointer;
}
.feed-photo-check-input {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1;
}
.feed-photo-check-box {
  display: block; width: 22px; height: 22px;
  border: 2px solid #fff; border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  pointer-events: none;
}
.feed-photo-check-input:checked + .feed-photo-check-box {
  background: var(--mw-purple, #8b2fc9);
  border-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5-5L12.3 5z'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.feed-photo-cell:has(.feed-photo-check-input:checked) {
  outline: 2px solid var(--mw-purple, #8b2fc9);
  outline-offset: -2px;
}
.photo-delete-modal[hidden] { display: none !important; }
.photo-delete-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.photo-delete-backdrop {
  position: absolute; inset: 0; background: rgba(14, 12, 10, 0.5);
}
.photo-delete-dialog {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: #fff; border-radius: 12px; padding: 18px 18px 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}
.photo-delete-dialog h2 { margin: 0 0 6px; font-size: 1.15rem; }
.photo-delete-count { margin: 0 0 8px; font-weight: 600; color: #050505; }
.photo-delete-help { margin: 0 0 14px; font-size: 0.9rem; color: #65676b; }
.photo-delete-actions { display: flex; flex-direction: column; gap: 8px; }
.photo-delete-actions .btn {
  text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; white-space: normal; height: auto;
}
.photo-delete-actions .btn span {
  font-size: 0.78rem; font-weight: 500; color: #65676b;
}
.photo-delete-actions .btn-primary span { color: rgba(255,255,255,0.85); }
body.photo-delete-open { overflow: hidden; }

.photo-lightbox[hidden] { display: none !important; }
.photo-lightbox {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center;
}
.photo-lightbox-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.82);
}
.photo-lightbox-panel {
  position: relative; z-index: 1;
  width: min(920px, calc(100vw - 32px));
  height: min(860px, calc(100vh - 32px));
  display: flex; align-items: center; justify-content: center;
}
.photo-lightbox-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
  border-radius: 4px;
}
.photo-lightbox-x {
  position: absolute; top: -4px; right: -4px; z-index: 2;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 1.5rem;
  cursor: pointer;
}
.photo-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 1.8rem;
  cursor: pointer; line-height: 1;
}
.photo-lightbox-prev { left: 8px; }
.photo-lightbox-next { right: 8px; }
.photo-lightbox-nav:hover, .photo-lightbox-x:hover { background: rgba(255,255,255,0.28); }
.photo-lightbox-counter {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.85rem; font-weight: 600;
  background: rgba(0,0,0,0.45); padding: 4px 10px; border-radius: 999px;
}
body.photo-lightbox-open { overflow: hidden; }
.feed-reels-list { display: flex; flex-direction: column; gap: 10px; }
.feed-reel-media video { max-height: 600px; }

.feed-people-block { padding: 12px 14px; margin-bottom: 10px; }
.feed-people-block h2 { margin: 0 0 10px; font-size: 1rem; }
.feed-person-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-top: 1px solid #f0ecf5;
}
.feed-person-meta { flex: 1; display: flex; flex-direction: column; font-size: 0.9rem; }
.feed-person-meta span { font-size: 0.76rem; color: var(--muted); }

/* Friends page (volle breedte, geen linkerkolom) */
.friends-page {
  padding: 6px 4px 8px;
  max-width: 920px;
  margin: 0 auto;
}
.friends-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 2px 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(20, 26, 58, 0.08);
}
.friends-page-head h1 {
  margin: 0;
  padding-left: 2px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--mw-navy);
  letter-spacing: -0.01em;
}
.friends-page-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 79, 214, 0.05);
  border: 1px solid rgba(30, 79, 214, 0.22);
  border-radius: 9px;
  padding: 6px 12px;
  min-width: min(240px, 100%);
  flex: 1;
  max-width: 260px;
  box-shadow: none;
}
.friends-page-search:focus-within {
  border-color: rgba(139, 47, 201, 0.45);
  background: rgba(139, 47, 201, 0.06);
  box-shadow: 0 0 0 2px rgba(139, 47, 201, 0.1);
}
.friends-page-search-ico {
  color: var(--mw-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
  opacity: 0.85;
}
.friends-page-search-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}
.friends-page-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.84rem;
  color: var(--mw-navy);
}
.friends-page-search input::placeholder {
  color: #6b7280;
  font-weight: 500;
}
.friends-page-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e4e6eb;
  margin: 0 0 16px;
}
.friends-page-tabs a {
  text-decoration: none;
  color: #65676b;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 10px 10px 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.friends-page-tabs a em {
  font-style: normal;
  font-weight: 700;
  color: #8a8d91;
  margin-left: 2px;
}
.friends-page-tabs a.is-active {
  color: var(--mw-purple);
  border-bottom-color: var(--mw-purple);
}
.friends-page-tabs a:hover { color: var(--mw-navy); text-decoration: none; }
.friends-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.friends-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  min-width: 0;
}
.friends-card-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #e4e6eb;
}
.friends-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.friends-card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.friends-card-meta a {
  color: var(--mw-navy);
  text-decoration: none;
}
.friends-card-meta a:hover strong { color: var(--mw-purple); }
.friends-card-meta strong {
  font-size: 0.95rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.friends-card-meta span {
  font-size: 0.78rem;
  color: #65676b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.friends-card-action {
  flex-shrink: 0;
}
.friends-card-action .btn {
  white-space: nowrap;
}
.friends-card-action .btn.is-disabled,
.friends-card-action .btn:disabled {
  opacity: 0.65;
  pointer-events: none;
  cursor: default;
}
.friends-page-empty { margin: 8px 0 0; }
.friends-page-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.friends-page-links > a {
  color: var(--mw-blue);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}
.friends-page-links > a:hover { color: var(--mw-purple); text-decoration: underline; }
.friends-more { position: relative; }
.friends-more-btn,
.friends-card-menu-btn {
  width: 32px; height: 32px;
  border: 0; border-radius: 7px;
  background: #e4e6eb; color: #050505;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.friends-more-btn:hover,
.friends-card-menu-btn:hover { background: #d8dadf; }
.friends-more-menu,
.friends-card-menu-panel {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  z-index: 40;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.friends-more-menu.is-open,
.friends-card-menu-panel.is-open {
  display: flex;
}
.friends-more-menu[hidden],
.friends-card-menu-panel[hidden] {
  display: none !important;
}
.friends-more-menu button,
.friends-card-menu-panel button,
.friends-card-menu-panel a {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  border: 0; background: transparent;
  padding: 10px 12px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 600; color: var(--mw-navy);
  cursor: pointer; text-decoration: none;
  box-sizing: border-box;
}
.friends-more-menu button:hover,
.friends-card-menu-panel button:hover,
.friends-card-menu-panel a:hover {
  background: #f0f2f5;
}
.friends-menu-ico { width: 1.1em; text-align: center; flex-shrink: 0; }
.friends-page-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--mw-grad-soft);
  border-radius: 10px;
  font-size: 0.88rem;
}
.friends-except-box { margin: 0 0 12px; padding: 12px; background: #f7f8fa; border-radius: 10px; }
.friends-except-label { margin: 0 0 8px; font-weight: 700; font-size: 0.88rem; }
.friends-except-grid { display: flex; flex-wrap: wrap; gap: 8px; max-height: 160px; overflow: auto; }
.friends-except-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e4e6eb; border-radius: 999px;
  padding: 4px 10px 4px 4px; font-size: 0.8rem; cursor: pointer;
}
.friends-except-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.friends-except-chip input { accent-color: var(--mw-purple); }
.friends-list-options { display: grid; gap: 8px; margin: 12px 0 8px; }
.friends-list-opt {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border: 1px solid #e4e6eb; border-radius: 10px;
  cursor: pointer; background: #fff;
}
.friends-list-opt:has(input:checked) {
  border-color: var(--mw-purple);
  background: var(--mw-grad-soft);
}
.friends-list-opt input { margin-top: 3px; accent-color: var(--mw-purple); }
.friends-list-opt strong { display: block; font-size: 0.95rem; color: var(--mw-navy); }
.friends-list-opt small { color: #65676b; font-size: 0.78rem; line-height: 1.35; }
.friends-card-menu-panel button.is-danger { color: #c62828; }
.friends-card-menu { position: relative; }
.friends-card.is-favorite { border-color: rgba(139, 47, 201, 0.35); }
.friends-requests-box {
  background: #f7f8fa;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0 14px;
}
.friends-requests-box h2 { margin: 0 0 10px; font-size: 1rem; }
.friends-request-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px solid #e4e6eb;
}
.friends-request-row img {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
}
.friends-request-row a { flex: 1; color: var(--mw-navy); text-decoration: none; }
.friends-find-form {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap;
}
.friends-find-search { max-width: none; flex: 1; }
.friends-privacy-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.friends-privacy-modal.is-open,
.friends-privacy-modal:not([hidden]) {
  display: flex;
}
.friends-privacy-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.friends-privacy-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.friends-privacy-dialog header {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 14px 48px;
  border-bottom: 1px solid #e4e6eb;
}
.friends-privacy-dialog h2 {
  margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--mw-navy);
}
.friends-privacy-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #e4e6eb; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.friends-privacy-body { padding: 8px 18px 18px; }
.friends-privacy-row {
  display: flex; gap: 16px; align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f0f2f5;
}
.friends-privacy-row strong {
  display: block; font-size: 1rem; color: var(--mw-navy); margin-bottom: 2px;
}
.friends-privacy-row p {
  margin: 0 0 4px; font-size: 0.9rem; color: #050505;
}
.friends-privacy-row small {
  color: #65676b; font-size: 0.78rem; line-height: 1.35; display: block;
}
.friends-privacy-select {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e4e6eb; border-radius: 8px; padding: 8px 10px;
  flex-shrink: 0; min-width: 140px;
}
.friends-privacy-select select {
  border: 0; background: transparent; font-weight: 700;
  font-size: 0.88rem; color: var(--mw-navy); outline: none; cursor: pointer;
}
.friends-privacy-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px;
}
@media (max-width: 720px) {
  .friends-page-grid { grid-template-columns: 1fr; }
  .friends-page-search { max-width: none; }
  .friends-card-avatar { width: 60px; height: 60px; }
  .friends-privacy-row { flex-direction: column; }
}

/* Messenger (Facebook Messenger-stijl) */
.section:has(.msn) {
  padding: 10px 12px 16px;
  max-width: none;
}
.msn {
  --msn-blue: #0084ff;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  height: calc(100vh - 64px);
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.msn.is-info-open {
  grid-template-columns: 360px minmax(0, 1fr) 320px;
}
.msn-sidebar {
  display: flex; flex-direction: column;
  border-right: 1px solid #e4e6eb;
  background: #fff;
  min-height: 0;
}
.msn-side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px; gap: 8px;
}
.msn-side-head-actions { display: flex; align-items: center; gap: 4px; }
.msn-side-head h1 { margin: 0; font-size: 1.45rem; font-weight: 800; color: #050505; }
.msn-icon-btn {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #e4e6eb; color: #050505;
  display: grid; place-items: center; cursor: pointer;
  text-decoration: none; font-size: 1.1rem;
}
.msn-icon-btn:hover { background: #d8dadf; }
.msn-thread-actions .msn-icon-btn {
  background: transparent; color: var(--msn-blue);
}
.msn-thread-actions .msn-icon-btn:hover { background: #e7f3ff; }
.msn-search { padding: 0 12px 10px; }
.msn-search input {
  width: 100%; box-sizing: border-box;
  border: 0; border-radius: 20px; background: #f0f2f5;
  padding: 10px 14px; font: inherit; font-size: 0.92rem;
}
.msn-active-row {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 12px 12px;
  scrollbar-width: thin;
}
.msn-active-chip {
  flex: 0 0 auto; width: 64px; text-align: center;
  text-decoration: none; color: #050505; font-size: 0.72rem; font-weight: 600;
}
.msn-active-chip .msn-ava {
  width: 52px; height: 52px; margin: 0 auto 4px;
}
.msn-active-chip .msn-ava img {
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--msn-blue, #0084ff);
}
.msn-active-chip .msn-online { width: 12px; height: 12px; }
.msn-conv-list { flex: 1; overflow: auto; padding: 0 8px 12px; }
.msn-empty-side { padding: 16px; color: #65676b; font-size: 0.9rem; }
.msn-conv {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 10px;
  align-items: center; padding: 10px; border-radius: 10px;
  text-decoration: none; color: inherit;
}
.msn-conv:hover, .msn-conv.is-active { background: #f0f2f5; }
.msn-conv .msn-ava { width: 56px; height: 56px; }
.msn-placeholder-hint { margin-top: 10px; font-size: 0.88rem; color: #8a8d91; }
.msn-thread-person .msn-ava { width: 40px; height: 40px; }
.msn-conv-meta { min-width: 0; }
.msn-conv-meta strong { display: block; font-size: 0.95rem; font-weight: 650; }
.msn-conv-meta span {
  display: block; font-size: 0.82rem; color: #65676b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msn-conv time { font-size: 0.72rem; color: #65676b; }

.msn-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.msn-main-close {
  position: absolute; top: 10px; right: 12px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #ffebee; color: #e41e3f;
  font-size: 1.35rem; font-weight: 700; line-height: 1;
  text-decoration: none; border: 0;
}
.msn-main-close:hover {
  background: #e41e3f; color: #fff; text-decoration: none;
}
.msn-placeholder {
  margin: auto; text-align: center; color: #65676b; padding: 40px 20px;
}
.msn-placeholder-ico { font-size: 3rem; margin-bottom: 8px; }
.msn-placeholder h2 { margin: 0 0 6px; color: #050505; font-size: 1.4rem; }
.msn-placeholder p { margin: 0; }

.msn-thread-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 52px 10px 14px; border-bottom: 1px solid #e4e6eb;
  flex-shrink: 0;
}
.msn-thread-person {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; min-width: 0; flex: 1;
}
.msn-thread-person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.msn-thread-person strong { display: block; font-size: 0.98rem; }
.msn-thread-person small { color: #65676b; font-size: 0.78rem; }
.msn-thread-actions { display: flex; gap: 4px; }

.msn-thread-body {
  flex: 1; min-height: 0; position: relative;
  background: var(--msn-bg, #f0f2f5);
  background-size: cover;
  background-position: center;
}
.msn-thread-body::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.55));
  pointer-events: none;
}
.msn-bubbles {
  position: relative; z-index: 1;
  height: 100%; overflow: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
  box-sizing: border-box;
}
.msn-thread-empty {
  margin: auto; text-align: center; color: #050505; padding: 24px;
}
.msn-thread-empty img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 8px;
}
.msn-bubble {
  max-width: min(72%, 420px);
  align-self: flex-start;
  background: #e4e6eb; color: #050505;
  border-radius: 18px; padding: 8px 12px;
  font-size: 0.92rem; line-height: 1.35;
}
.msn-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.msn-bubble time {
  display: block; margin-top: 2px; font-size: 0.68rem; opacity: .7;
}
.msn-bubble.is-me {
  align-self: flex-end;
  background: var(--msn-bubble, var(--msn-blue));
  color: #fff;
}
.msn-compose {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 1px solid #e4e6eb; flex-shrink: 0;
}
.msn-compose input {
  flex: 1; border: 0; background: #f0f2f5; border-radius: 20px;
  padding: 10px 14px; font: inherit; font-size: 0.95rem;
}
.msn-send {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--msn-blue);
  font-size: 1.1rem; cursor: pointer;
}

.msn-info {
  border-left: 1px solid #e4e6eb; background: #fff;
  overflow: auto; padding: 0 0 20px;
}
.msn-info[hidden] { display: none !important; }
.msn-info-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #e4e6eb;
}
.msn-info-head h2 { margin: 0; font-size: 1.05rem; }
.msn-info-person {
  text-align: center; padding: 20px 16px 12px;
}
.msn-info-person img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 8px;
}
.msn-info-person strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.msn-info-person a { color: var(--msn-blue); font-weight: 600; font-size: 0.88rem; }
.msn-customize { padding: 8px 16px 0; }
.msn-customize h3 { margin: 0 0 4px; font-size: 0.95rem; }
.msn-hint { margin: 0 0 12px; color: #65676b; font-size: 0.82rem; }
.msn-swatches {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px;
}
.msn-swatch {
  aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0;
}
.msn-swatch.is-on { border-color: #050505; box-shadow: 0 0 0 2px #fff inset; }
.msn-presets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px;
}
.msn-preset {
  border: 0; border-radius: 10px; min-height: 52px; cursor: pointer;
  color: #fff; font-weight: 700; font-size: 0.78rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  padding: 8px;
}
.msn-preset.is-on { outline: 2px solid #050505; outline-offset: 1px; }
.msn-upload-btn {
  display: block; text-align: center; padding: 10px;
  border-radius: 8px; background: #e4e6eb; font-weight: 700; cursor: pointer;
  font-size: 0.88rem;
}

.msn-call {
  position: fixed; inset: 0; z-index: 2000;
  background: #0b0f19; display: flex; flex-direction: column;
}
.msn-call[hidden] { display: none !important; }
.msn-call-stage { flex: 1; position: relative; min-height: 0; }
.msn-call-remote, .msn-call-local {
  background: #111; object-fit: cover;
}
.msn-call-remote { width: 100%; height: 100%; }
.msn-call-local {
  position: absolute; right: 16px; bottom: 16px;
  width: min(220px, 34vw); aspect-ratio: 3/4;
  border-radius: 12px; border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.msn-call.is-audio .msn-call-local { display: none; }
.msn-call-status {
  position: absolute; left: 50%; top: 24px; transform: translateX(-50%);
  color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.msn-call-bar {
  display: flex; justify-content: center; gap: 16px;
  padding: 18px; background: rgba(0,0,0,.45);
}
.msn-call-btn {
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: #3a3b3c; color: #fff; font-size: 1.2rem; cursor: pointer;
}
.msn-call-btn.is-off { background: #e4e6eb; color: #050505; }
.msn-call-btn.is-hang { background: #e41e3f; }
.msn-call-btn.is-chat { background: #0084ff; font-size: 1.05rem; font-weight: 700; }
body.msn-in-call .msn-dock { z-index: 2100; }
body.msn-in-call .msn-menu-layer { z-index: 2200; }
body.msn-in-call .msn-pop {
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

/* Topbar Messenger dropdown — boven popup-chats */
.topbar-msn { position: relative; z-index: 1; }
.topbar-msn.is-open { z-index: 1600; }
.msn-drop-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1601;
  width: min(360px, calc(100vw - 32px));
  margin-right: 4px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.06);
  overflow: visible;
}
.msn-drop-panel[hidden] { display: none !important; }
.msn-drop-head { padding: 14px 16px 8px; }
.msn-drop-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.msn-drop-list { max-height: min(420px, 60vh); overflow: auto; padding: 4px 8px 8px; }
.msn-drop-empty { padding: 20px 12px; color: #65676b; text-align: center; margin: 0; }
.msn-drop-item {
  position: relative; display: flex; align-items: center;
  border-radius: 10px;
}
.msn-drop-item:hover { background: #f0f2f5; }
.msn-drop-item.is-unread .msn-drop-meta span { color: #050505; font-weight: 650; }
.msn-drop-main {
  flex: 1; display: grid; grid-template-columns: 56px 1fr auto; gap: 10px;
  align-items: center; border: 0; background: transparent; text-align: left;
  padding: 10px; cursor: pointer; font: inherit; color: inherit; border-radius: 10px;
}
.msn-ava {
  position: relative; width: 56px; height: 56px; display: block; flex-shrink: 0;
}
.msn-ava img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.msn-online {
  position: absolute; right: 1px; bottom: 1px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #31a24c; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}
.msn-pop-person .msn-ava { width: 32px; height: 32px; }
.msn-pop-person .msn-online { width: 10px; height: 10px; border-width: 2px; }
.msn-pop-empty .msn-ava { width: 64px; height: 64px; margin: 0 auto 8px; }
.msn-drop-meta { min-width: 0; }
.msn-drop-meta strong { display: block; font-size: 0.95rem; }
.msn-drop-meta span {
  display: block; font-size: 0.82rem; color: #65676b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msn-drop-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #0084ff; display: block;
}
.msn-drop-more {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #e4e6eb; cursor: pointer; margin-right: 8px; flex-shrink: 0;
  opacity: 0;
}
.msn-drop-item:hover .msn-drop-more,
.msn-drop-item:focus-within .msn-drop-more { opacity: 1; }
.msn-menu-layer {
  position: fixed; inset: 0; z-index: 1700; pointer-events: none;
}
.msn-menu-layer:not([hidden]) { pointer-events: none; }
.msn-menu-layer .msn-drop-menu { pointer-events: auto; }
.msn-drop-menu {
  width: 300px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 6px;
}
.msn-drop-menu.is-fixed { position: fixed; z-index: 1701; }
.msn-drop-menu-head {
  display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px;
  border-bottom: 1px solid #e4e6eb; margin-bottom: 4px;
}
.msn-drop-menu-head .msn-ava { width: 40px; height: 40px; }
.msn-drop-menu-head strong { display: block; font-size: 0.92rem; }
.msn-drop-menu-head span { display: block; font-size: 0.78rem; color: #65676b; }
.msn-drop-menu a,
.msn-drop-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 0; background: transparent; text-align: left; padding: 10px 12px;
  border-radius: 8px; font: inherit; font-weight: 600; color: #050505;
  cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.msn-drop-menu a:hover,
.msn-drop-menu button:hover {
  background: #f0f2f5;
  outline: 1px solid #0084ff;
}
.msn-mi {
  width: 36px; height: 36px; border-radius: 50%; background: #e4e6eb;
  display: grid; place-items: center; flex-shrink: 0; color: #050505;
}
.msn-drop-footer {
  display: block; text-align: center; padding: 12px;
  border-top: 1px solid #e4e6eb; color: #0084ff; font-weight: 700;
  text-decoration: none;
}
.msn-drop-footer:hover { text-decoration: underline; }

/* Floating popup chats (bottom-right dock) */
.msn-dock {
  position: fixed; right: 0; bottom: 0; z-index: 1400;
  pointer-events: none; height: 0;
}
.msn-pop {
  pointer-events: auto;
  position: fixed; bottom: 24px; right: 16px;
  width: 328px; height: 455px;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  overflow: hidden;
  --msn-bubble: #0084ff;
  --msn-bg: #f0f2f5;
}
.msn-pop.is-min { height: auto; }
.msn-pop.is-dragging { opacity: 0.96; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.msn-pop-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 10px;
  background: color-mix(in srgb, var(--msn-bubble) 18%, #fff);
  border-bottom: 1px solid rgba(0,0,0,.06); flex-shrink: 0;
  cursor: grab; user-select: none; touch-action: none;
}
.msn-pop.is-dragging .msn-pop-head { cursor: grabbing; }
.msn-pop-person {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  border: 0; background: transparent; cursor: inherit; text-align: left; font: inherit; padding: 0;
}
.msn-pop-person strong { display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.msn-pop-person small { color: #65676b; font-size: 0.72rem; }
.msn-pop-actions { display: flex; gap: 2px; cursor: default; }
.msn-pop-actions button {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; font-size: 0.95rem;
  color: var(--msn-bubble); display: grid; place-items: center; padding: 0;
}
.msn-pop-actions button:hover { background: rgba(0,0,0,.06); }
.msn-pop-actions button svg { display: block; }
.msn-pop-body {
  flex: 1; min-height: 0; overflow: auto; padding: 10px;
  background: var(--msn-bg); background-size: cover; background-position: center;
  display: flex; flex-direction: column; gap: 6px;
}
.msn-pop-empty { margin: auto; text-align: center; }
.msn-pop-empty img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.msn-pop-bubble { display: flex; align-items: flex-end; gap: 6px; max-width: 92%; }
.msn-pop-bubble.is-me { align-self: flex-end; flex-direction: row-reverse; }
.msn-pop-ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.msn-pop-bubble-inner {
  background: #f0f2f5; color: #050505;
  border-radius: 16px; padding: 8px 10px; font-size: 0.9rem; line-height: 1.35;
}
.msn-pop-bubble.is-me .msn-pop-bubble-inner {
  background: var(--msn-bubble); color: #fff;
}
.msn-pop-bubble-inner p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.msn-pop-img { display: block; max-width: 200px; border-radius: 10px; margin-bottom: 4px; }
.msn-pop-tray {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px;
  background: #fff; border-top: 1px solid #e4e6eb; max-height: 120px; overflow: auto;
}
.msn-pop-tray[hidden] { display: none !important; }
.msn-tray-emoji, .msn-tray-sticker {
  border: 0; background: #f0f2f5; border-radius: 8px; width: 36px; height: 36px;
  font-size: 1.2rem; cursor: pointer;
}
.msn-tray-gif {
  border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 8px; overflow: hidden;
}
.msn-tray-gif img { width: 72px; height: 54px; object-fit: cover; display: block; }
.msn-pop-compose {
  display: flex; align-items: center; gap: 4px;
  padding: 8px; background: color-mix(in srgb, var(--msn-bubble) 12%, #fff);
  border-top: 1px solid rgba(0,0,0,.06); flex-shrink: 0;
}
.msn-pop-compose > button {
  border: 0; background: transparent; cursor: pointer; font-size: 0.95rem;
  width: 30px; height: 30px; border-radius: 50%; color: var(--msn-bubble); font-weight: 700;
}
.msn-pop-input-wrap {
  flex: 1; display: flex; align-items: center;
  background: #fff; border-radius: 18px; padding: 0 4px 0 10px;
}
.msn-pop-input-wrap input {
  flex: 1; border: 0; background: transparent; padding: 8px 0; font: inherit; font-size: 0.9rem; min-width: 0;
}
.msn-pop-input-wrap button { border: 0; background: transparent; cursor: pointer; font-size: 1rem; }
.msn-pop-like {
  color: var(--msn-bubble) !important; font-size: 1.15rem !important;
}

.msn-incoming {
  position: fixed; right: 18px; bottom: 18px; z-index: 2100;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); max-width: min(420px, calc(100vw - 24px));
}
.msn-incoming[hidden] { display: none !important; }
.msn-incoming img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.msn-incoming strong { display: block; }
.msn-incoming span { font-size: 0.82rem; color: #65676b; }

@media (max-width: 900px) {
  .msn { grid-template-columns: 1fr; height: calc(100vh - 56px); border-radius: 0; border: 0; }
  .msn.is-info-open { grid-template-columns: 1fr; }
  .msn-sidebar { display: none; }
  .msn:not([data-peer]) .msn-sidebar { display: flex; }
  .msn:not([data-peer]) .msn-main { display: none; }
  .msn-info { position: absolute; inset: 0; z-index: 5; }
}

/* legacy messenger hooks (unused) */
.messenger { display: none; }
.msg-compose { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); }
.msg-compose input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font: inherit;
}
.msg-empty { margin: auto; color: var(--muted); padding: 36px; text-align: center; font-size: 0.92rem; }

@media (max-width: 1100px) {
  .feed-layout.has-ads { grid-template-columns: 340px minmax(0, 1fr); }
  .feed-container--wide:has(.feed-col-ads) { padding-right: 16px; }
  .feed-col-ads {
    order: 3;
    grid-column: 1 / -1;
    width: auto;
  }
  .sponsored-rail {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
    width: 100%;
  }
  .sponsored-rail-title { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .topbar-nav { display: none; }
  .topbar-brand span { display: none; }
  .topbar-search { flex: 1 1 auto; max-width: none; }
  .feed-layout, .messenger { grid-template-columns: 1fr; }
  .feed-layout.has-ads { grid-template-columns: 1fr; }
  .feed-col-left { order: 2; }
  .feed-col-ads { order: 3; }
  .feed-photo-grid { grid-template-columns: repeat(4, 1fr); }
  .feed-list-grid { grid-template-columns: 1fr; }
}

/* Gesponsorde feed/rail */
.feed-post.is-sponsored {
  border: 1px solid #e7e3f2;
  background: linear-gradient(180deg, #faf8ff 0%, #fff 40%);
}
.sponsored-inline {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: #65676b; letter-spacing: 0.02em;
}
.sponsored-rail {
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px 16px;
  box-sizing: border-box;
  box-shadow: var(--shadow);
}
.feed-col-ads {
  width: 100%;
  align-self: start;
}
.sponsored-rail-title {
  margin: 0 0 12px; font-size: 0.78rem; font-weight: 700;
  color: #65676b; text-transform: none; letter-spacing: 0.01em;
}
.sponsored-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin-bottom: 10px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.sponsored-card:hover {
  box-shadow: 0 6px 18px rgba(40, 20, 80, 0.08);
  transform: translateY(-1px);
}
.sponsored-card-cover {
  height: 110px; background: #e4e6eb center/cover no-repeat;
}
.sponsored-card-body { padding: 10px 12px 12px; }
.sponsored-card-label {
  display: block; font-size: 0.68rem; font-weight: 700; color: #65676b;
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em;
}
.sponsored-card-body strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.sponsored-card-body p {
  margin: 0; font-size: 0.8rem; color: #65676b; line-height: 1.35;
}

/* ── Advertentie-studio (Facebook-achtig) ── */
.ads-studio { padding: 0 0 48px; background: #f0f2f5; min-height: 70vh; }
.ads-studio-bar {
  background: #fff; border-bottom: 1px solid #dddfe2; margin-bottom: 18px;
}
.ads-studio-bar-inner, .ads-studio-body {
  max-width: 1180px; margin: 0 auto; padding: 14px 16px;
}
.ads-studio-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ads-studio-bar h1 { margin: 2px 0 0; font-size: 1.35rem; }
.ads-back {
  display: inline-block; font-size: 0.82rem; color: #0866ff; text-decoration: none; font-weight: 600;
}
.ads-account-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid #dddfe2; border-radius: 999px; text-decoration: none; color: #050505;
  background: #f0f2f5; font-size: 0.85rem; font-weight: 600;
}
.ads-account-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ads-layout {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px; align-items: start;
}
.ads-col-settings { display: flex; flex-direction: column; gap: 12px; }
.ads-card {
  background: #fff; border-radius: 12px; padding: 16px 18px;
  border: 1px solid #e4e6eb; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ads-card-head h2 { margin: 0 0 4px; font-size: 1.05rem; }
.ads-card-head p { margin: 0 0 12px; color: #65676b; font-size: 0.86rem; }
.ads-place {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border: 1px solid #e4e6eb; border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; background: #fafafa;
}
.ads-place:has(input:checked) { border-color: #0866ff; background: #f0f7ff; }
.ads-place input { margin-top: 4px; }
.ads-place-icon {
  width: 36px; height: 36px; border-radius: 8px; background: #e7f3ff;
  display: grid; place-items: center; flex-shrink: 0;
}
.ads-place strong { display: block; }
.ads-place small { color: #65676b; font-size: 0.8rem; }
.ads-age-block { margin-top: 8px; }
.ads-age-labels {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: 0.9rem;
}
.ads-dual-sliders { display: grid; gap: 8px; }
.ads-slider-row { display: grid; gap: 6px; font-size: 0.8rem; color: #65676b; }
.ads-slider-row input[type="range"] {
  width: 100%; accent-color: #0866ff; height: 6px; cursor: pointer;
}
.ads-slider-block { margin-top: 10px; }
.ads-slider-ends { display: flex; justify-content: space-between; font-size: 0.75rem; }
.ads-radio {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px; border-radius: 10px; margin-bottom: 12px;
}
.ads-radio.is-on { background: #f0f7ff; }
.ads-radio strong { display: block; }
.ads-radio small { color: #65676b; font-size: 0.8rem; }
.ads-days-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px;
}
.ads-mini-label { display: block; font-size: 0.78rem; color: #65676b; margin-bottom: 4px; }
.ads-stepper {
  display: flex; align-items: center; border: 1px solid #ccd0d5; border-radius: 8px; overflow: hidden;
}
.ads-stepper button {
  width: 40px; height: 40px; border: 0; background: #f0f2f5; font-size: 1.2rem; cursor: pointer;
}
.ads-stepper input {
  flex: 1; border: 0; text-align: center; font: inherit; font-weight: 700; height: 40px;
}
.ads-end-date {
  height: 40px; display: flex; align-items: center; padding: 0 12px;
  border: 1px solid #ccd0d5; border-radius: 8px; background: #fff; font-weight: 600;
}
.ads-budget-value { margin: 4px 0 8px; }
.ads-budget-value strong { font-size: 1.6rem; color: #0866ff; }
.ads-hint { margin: 8px 0 0; font-size: 0.78rem; }
.ads-pay-line { margin: 0 0 10px; font-size: 0.92rem; }
.ads-pay-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1rem; margin-bottom: 4px;
}
.ads-pay-total strong { font-size: 1.35rem; }
.ads-pay-break { margin: 0 0 12px; color: #65676b; font-size: 0.86rem; }
.ads-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.ads-col-preview { position: relative; }
.ads-preview-sticky { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 12px; }
.ads-preview-sticky > h2 { margin: 0; font-size: 1rem; }
.ads-preview-card {
  background: #fff; border-radius: 12px; border: 1px solid #e4e6eb; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ads-preview-head {
  display: flex; gap: 10px; align-items: center; padding: 12px 12px 8px;
}
.ads-preview-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ads-preview-head strong { display: block; font-size: 0.95rem; }
.ads-preview-head span { font-size: 0.75rem; color: #65676b; }
.ads-preview-body {
  margin: 0; padding: 0 12px 10px; font-size: 0.9rem; white-space: pre-wrap; line-height: 1.4;
}
.ads-preview-media {
  width: 100%; aspect-ratio: 1.1; background: #e4e6eb center/cover no-repeat;
}
.ads-preview-empty, .ads-preview-video {
  display: grid; place-items: center; color: #65676b; font-weight: 600;
}
.ads-preview-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; background: #f0f2f5; border-top: 1px solid #e4e6eb;
}
.ads-preview-cta small { display: block; color: #65676b; font-size: 0.72rem; text-transform: uppercase; }
.ads-preview-btn {
  background: #e4e6eb; border-radius: 6px; padding: 8px 12px;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
.ads-preview-actions {
  display: flex; justify-content: space-around; padding: 10px;
  border-top: 1px solid #e4e6eb; color: #65676b; font-size: 0.82rem; font-weight: 600;
}
.ads-preview-side { }
.ads-side-label { display: block; font-size: 0.75rem; color: #65676b; margin-bottom: 6px; font-weight: 700; text-transform: uppercase; }
.ads-side-card {
  background: #fff; border: 1px solid #e4e6eb; border-radius: 10px; overflow: hidden;
}
.ads-side-cover { height: 100px; background: #e4e6eb center/cover no-repeat; }
.ads-side-body { padding: 10px 12px; }
.ads-side-body span { font-size: 0.68rem; color: #65676b; font-weight: 700; text-transform: uppercase; }
.ads-side-body strong { display: block; margin: 2px 0 4px; }
.ads-side-body p { margin: 0; font-size: 0.8rem; color: #65676b; }
.ads-est-box {
  background: #fff; border: 1px solid #e4e6eb; border-radius: 12px; padding: 14px;
}
.ads-est-box h3 { margin: 0 0 10px; font-size: 0.92rem; }
.ads-est-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-top: 1px solid #f0f2f5; font-size: 0.9rem;
}
.ads-alert { margin: 0 16px 12px; max-width: 1180px; }

/* Manager */
.ads-manager { background: #f0f2f5; padding: 20px 0 48px; min-height: 70vh; }
.ads-manager-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.ads-manager-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: 14px;
}
.ads-manager-head h1 { margin: 0 0 4px; }
.ads-manager-head p { margin: 0; color: #65676b; }
.ads-manager-head-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end;
}
.ads-compose-card {
  background: #fff; border: 1px solid #e4e6eb; border-radius: 12px;
  padding: 20px; display: grid; gap: 14px; max-width: 640px;
}
.ads-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: #050505; cursor: pointer; margin: 8px 0 0;
}
.ads-check input { margin-top: 2px; accent-color: #0866ff; }
.ads-gender-block { margin: 12px 0 4px; }
.ads-gender-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ads-radio-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid #ccd0d5; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; background: #fff;
}
.ads-radio-pill:has(input:checked) {
  border-color: #0866ff; background: #e7f3ff; color: #0866ff;
}
.ads-radio-pill input { accent-color: #0866ff; }
.ads-tabs {
  display: flex; gap: 4px; background: #fff; border-radius: 10px; padding: 4px;
  border: 1px solid #e4e6eb; margin-bottom: 14px; width: fit-content; flex-wrap: wrap;
}
.ads-tabs a {
  text-decoration: none; color: #050505; padding: 8px 14px; border-radius: 8px;
  font-weight: 600; font-size: 0.88rem;
}
.ads-tabs a em {
  font-style: normal; margin-left: 4px; color: #65676b; font-weight: 700;
}
.ads-tabs a.is-active { background: #e7f3ff; color: #0866ff; }
.ads-empty {
  background: #fff; border-radius: 12px; padding: 36px; text-align: center;
  border: 1px solid #e4e6eb;
}
.ads-table { display: flex; flex-direction: column; gap: 10px; }
.ads-row {
  background: #fff; border: 1px solid #e4e6eb; border-radius: 12px;
  padding: 16px 18px; display: grid;
  grid-template-columns: minmax(240px, 2.2fr) minmax(170px, 1fr) minmax(240px, 1.3fr) 128px;
  gap: 18px 24px; align-items: center;
}
.ads-row.is-ended { opacity: 0.88; }
.ads-row.is-paused { background: #fffdf8; }
.ads-row-preview {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; min-width: 0;
}
.ads-row-thumb {
  width: 56px; height: 56px; border-radius: 8px; background: #e4e6eb center/cover; flex-shrink: 0;
}
.ads-row-thumb--empty { background: #dddfe2; }
.ads-row-copy { min-width: 0; }
.ads-row-copy strong {
  display: block; font-size: 0.92rem; line-height: 1.3; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ads-row-copy span { display: block; font-size: 0.78rem; color: #65676b; line-height: 1.35; }
.ads-row-meta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-width: 0; font-size: 0.8rem; color: #65676b; line-height: 1.35;
}
.ads-row-dates,
.ads-row-price { display: block; }
.ads-row-price { font-weight: 600; color: #050505; }
.ads-status {
  display: inline-flex; align-items: center; width: fit-content; padding: 3px 10px;
  border-radius: 999px; background: #eee; font-weight: 700; font-size: 0.72rem; color: #65676b;
  position: static; float: none; margin: 0;
}
.ads-status.is-on { background: #e7f6ec; color: #1a7f37; }
.ads-status.is-paused { background: #fff3cd; color: #8a6d1d; }
.ads-row-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  text-align: center; padding: 8px 10px; background: #f7f8fa; border-radius: 10px;
}
.ads-row-stats em { display: block; font-style: normal; font-weight: 800; font-size: 1rem; color: #050505; line-height: 1.2; }
.ads-row-stats span { display: block; font-size: 0.68rem; color: #65676b; margin-top: 2px; }
.ads-row-actions {
  display: flex; flex-direction: column; gap: 6px; align-items: stretch; justify-self: stretch;
}
.ads-row-actions form { margin: 0; }
.ads-row-actions .btn { width: 100%; justify-content: center; }
.ads-row-actions .btn-ghost,
.ads-row-actions .ads-row-resume {
  background: var(--mw-grad);
  color: #fff;
  border: none;
  font-weight: 700;
}
.ads-row-actions .btn-ghost:hover,
.ads-row-actions .ads-row-resume:hover {
  filter: brightness(1.04);
  color: #fff;
}
.ads-row-actions .ads-row-stop {
  background: var(--mw-grad-soft);
  color: #c62828 !important;
  border: 1px solid var(--color-border);
  font-weight: 700;
}
.ads-row-actions .ads-row-stop:hover {
  background: #fde8ef;
  color: #9b1c48 !important;
  filter: none;
}

/* Promotie bekijken modal */
body.ads-view-open { overflow: hidden; }
.ads-view-modal[hidden] { display: none !important; }
.ads-view-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ads-view-backdrop {
  position: absolute; inset: 0; background: rgba(20, 26, 58, 0.45);
}
.ads-view-dialog {
  position: relative; z-index: 1; width: min(560px, 100%);
  background: #fff; border-radius: 14px; border: 1px solid var(--color-border);
  box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: min(90vh, 720px);
  overflow: hidden;
}
.ads-view-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid #eee;
}
.ads-view-head h2 { margin: 0; font-size: 1.1rem; }
.ads-view-body {
  padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
}
.ads-view-preview {
  display: flex; gap: 12px; align-items: flex-start;
}
.ads-view-thumb {
  width: 72px; height: 72px; border-radius: 10px; flex: 0 0 auto;
  background: #e4e6eb center/cover;
}
.ads-view-thumb.is-empty { background: #dddfe2; }
.ads-view-body-text {
  margin: 8px 0 0; font-size: 0.92rem; white-space: pre-wrap; line-height: 1.4;
}
.ads-view-kv {
  margin: 0; display: grid; gap: 8px;
}
.ads-view-kv > div {
  display: grid; grid-template-columns: 100px 1fr; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid #f0f2f5; font-size: 0.9rem;
}
.ads-view-kv dt { margin: 0; color: #65676b; font-weight: 600; }
.ads-view-kv dd { margin: 0; font-weight: 600; color: #050505; }
.ads-view-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  text-align: center; padding: 10px; background: #f7f8fa; border-radius: 10px;
}
.ads-view-stats em { display: block; font-style: normal; font-weight: 800; font-size: 1.05rem; }
.ads-view-stats span { display: block; font-size: 0.68rem; color: #65676b; margin-top: 2px; }
.ads-view-foot {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
  padding: 12px 16px; border-top: 1px solid #eee; background: #faf9fc;
}
.ads-view-foot .btn { min-width: 0; }

/* Resultaten */
.ads-results { background: #f0f2f5; padding: 20px 0 48px; min-height: 70vh; }
.ads-results-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.ads-results-top { margin-bottom: 14px; }
.ads-results-top h1 { margin: 4px 0 0; }
.ads-results-grid {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start;
}
.ads-results-side { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 72px; }
.ads-results-main { display: flex; flex-direction: column; gap: 12px; }
.ads-stat-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.ads-stat-card {
  background: #fff; border: 1px solid #e4e6eb; border-radius: 12px; padding: 16px;
}
.ads-stat-card h2 { margin: 0 0 8px; font-size: 0.92rem; color: #65676b; font-weight: 600; }
.ads-stat-big { margin: 0 0 6px; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.ads-stat-status.is-on { color: #1a7f37; }
.ads-stat-status.is-paused { color: #8a6d1d; }
.ads-demo-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.ads-demo-head h2 { margin: 0; }
.ads-pill {
  background: #e7f3ff; color: #0866ff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
}
.ads-age-bars { display: grid; gap: 8px; }
.ads-age-bar-row {
  display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; align-items: center;
  font-size: 0.82rem;
}
.ads-age-bar-track {
  height: 10px; background: #e4e6eb; border-radius: 999px; overflow: hidden;
}
.ads-age-bar-track i {
  display: block; height: 100%; background: #0866ff; border-radius: 999px;
}
.ads-kv { list-style: none; margin: 0; padding: 0; }
.ads-kv li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid #f0f2f5; font-size: 0.9rem;
}
.ads-kv li span { color: #65676b; }

@media (max-width: 1100px) {
  .ads-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(150px, 0.9fr) minmax(0, 1.2fr);
  }
  .ads-row-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .ads-row-actions .btn { width: auto; min-width: 110px; }
}
@media (max-width: 960px) {
  .ads-layout, .ads-results-grid { grid-template-columns: 1fr; }
  .ads-preview-sticky, .ads-results-side { position: static; }
  .ads-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ads-row-stats { justify-items: center; }
  .ads-row-actions { flex-direction: row; flex-wrap: wrap; }
  .ads-row-actions .btn { width: auto; min-width: 110px; }
  .ads-stat-cards { grid-template-columns: 1fr; }
  .ads-days-row { grid-template-columns: 1fr; }
}

/* legacy promo helpers (keep minimal) */
.promo-wrap { max-width: 920px; }

/* Privacy settings */
.privacy-settings { margin: 18px 0 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.privacy-settings h3 { margin: 0 0 6px; font-size: 1rem; }
.privacy-help { margin: 0 0 12px; font-size: 0.82rem; }
.privacy-block {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px;
  background: #fafafa;
}
.privacy-block.is-focus { border-color: #1877f2; box-shadow: 0 0 0 1px #1877f2; }
.privacy-block-title { display: block; margin-bottom: 8px; }
.privacy-audience { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 10px; font-size: 0.86rem; }
.privacy-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.privacy-list-label { display: block; font-size: 0.75rem; font-weight: 600; color: #65676b; margin-bottom: 6px; }
.privacy-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.privacy-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 8px 3px 3px; font-size: 0.78rem; cursor: pointer;
}
.privacy-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.privacy-chip input { margin: 0; }
.privacy-search { margin-top: 12px; }
.privacy-search-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.privacy-search-hit {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.privacy-search-hit img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.privacy-search-hit span { flex: 1; font-weight: 600; font-size: 0.88rem; }
@media (max-width: 700px) {
  .privacy-lists { grid-template-columns: 1fr; }
  .feed-photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Life event wizard */
.feed-composer-modal-panel--wide {
  width: min(520px, 100%);
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feed-composer-modal-panel--wide .feed-composer-modal-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}
.feed-composer-modal-panel--wide .life-wizard {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feed-composer-modal-panel--wide .life-wizard[hidden],
.life-wizard[hidden],
[data-life-wizard][hidden],
[data-composer-standard][hidden],
.life-step[hidden],
[data-life-step][hidden],
.life-back-btn[hidden],
[data-composer-live-note][hidden],
[data-composer-tools][hidden],
[data-composer-preview][hidden] {
  display: none !important;
}
.life-back-btn {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid #1877f2;
  background: #fff; color: #1877f2; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.life-wizard { display: flex; flex-direction: column; gap: 12px; }
.life-step[data-life-step="1"],
.life-step[data-life-step="2"] {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(92vh - 120px);
  padding-bottom: 8px;
}
.life-step[data-life-step="3"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.life-detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.life-detail-footer {
  flex-shrink: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.life-hero {
  text-align: center; padding: 18px 12px; border-radius: 12px;
  background: linear-gradient(180deg, #fff6e8 0%, #f3f0ff 100%);
}
.life-hero strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.life-hero p { margin: 0; color: #65676b; font-size: 0.9rem; }
.life-select-label {
  margin: 4px 0 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: #65676b;
}
.life-cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.life-cat-btn {
  border: 1px solid transparent; background: #f0f2f5; border-radius: 10px;
  padding: 14px 8px; cursor: pointer; font: inherit; display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
}
.life-cat-btn:hover, .life-cat-btn:focus { border-color: #1877f2; background: #e7f3ff; }
.life-cat-btn span:last-child { font-size: 0.78rem; font-weight: 600; color: #050505; line-height: 1.25; }
.life-emoji { font-size: 1.5rem; line-height: 1; }
.life-preset-card {
  background: #f0f2f5; border-radius: 12px; padding: 18px 14px; text-align: center;
}
.life-preset-icon, .life-detail-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #1877f2; color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  font-size: 1.5rem;
}
.life-detail-icon { margin-top: -28px; position: relative; z-index: 1; border: 3px solid #fff; }
.life-title-input, .life-detail-title, .life-detail-location {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font: inherit; text-align: center;
}
.life-hint { margin: 8px 0 0; font-size: 0.8rem; color: #65676b; text-align: center; }
.life-preset-list { margin-top: 8px; }
.life-preset-item {
  display: block; width: 100%; border: none; border-bottom: 1px solid #e4e6eb;
  background: transparent; padding: 14px 8px; font: inherit; font-weight: 600;
  cursor: pointer; text-align: center;
}
.life-preset-item:hover { background: #f0f2f5; }
.life-detail-banner {
  position: relative; min-height: 180px; border-radius: 10px;
  background: linear-gradient(135deg, #f7d9a8, #e8c4ff 50%, #c9e4ff);
  margin-bottom: 8px; overflow: hidden;
}
.life-banner-media {
  position: absolute; inset: 0; z-index: 0;
}
.life-banner-media img,
.life-banner-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.life-banner-count {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; font-size: 0.75rem; font-weight: 600;
  padding: 4px 8px; border-radius: 999px;
}
.life-add-media {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  border: none; background: #fff; border-radius: 8px; padding: 8px 10px;
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.life-banner-clear {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 28px; height: 28px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 1rem;
}
.life-date-field {
  display: flex; align-items: center; gap: 8px; background: #f0f2f5;
  border-radius: 8px; padding: 10px 12px; margin: 10px 0;
}
.life-date-field input { border: none; background: transparent; font: inherit; flex: 1; }

/* Life card on feed */
.life-card {
  margin: 0 -14px 8px;
  text-align: center;
  background: #fff;
}
.life-card-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  background: linear-gradient(135deg, #f7d9a8, #e8c4ff 50%, #c9e4ff);
  overflow: hidden;
}
.life-card-banner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.life-card-banner--empty { min-height: 160px; }
.life-card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #1877f2; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: -28px auto 10px; font-size: 1.5rem;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  position: relative; z-index: 1;
}
.life-card-title {
  margin: 0 16px 4px; font-size: 1.25rem; font-weight: 700; color: #050505;
}
.life-card-when {
  margin: 0 16px 2px; font-size: 0.9rem; color: #65676b;
}
.life-card-cat {
  margin: 0 16px 8px; font-size: 0.8rem; color: #8a8d91;
}
.life-card-extra {
  margin: 0 16px 12px; font-size: 0.92rem; color: #050505; white-space: pre-wrap;
}
@media (max-width: 600px) {
  .life-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* —— Topbar apps / Facebook-style menu —— */
.topbar-user { gap: 6px; }
.topbar-apps { position: relative; }
.topbar-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #e4e6eb;
  color: #050505;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0;
}
.topbar-icon-btn:hover { background: #d8dadf; }
.topbar-icon-btn--img {
  overflow: hidden;
  padding: 0;
  background: transparent;
}
.topbar-icon-btn--img:hover {
  background: transparent;
  filter: brightness(0.96);
}
.topbar-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}
.topbar-icon-btn--notify {
  background: var(--mw-grad);
  color: #fff;
}
.topbar-icon-btn--notify:hover {
  background: var(--mw-grad);
  filter: brightness(1.06);
  color: #fff;
}
.topbar-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(680px, calc(100vw - 24px));
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.08);
  padding: 14px 16px 18px;
  z-index: 90;
}
.topbar-menu-head h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #050505;
}
.topbar-menu-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f2f5;
  border-radius: 20px;
  padding: 8px 14px;
  color: #65676b;
  margin-bottom: 14px;
}
.topbar-menu-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: #050505;
}
.topbar-menu-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 14px;
  align-items: start;
}
.topbar-menu-col h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.topbar-menu-social {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 12px;
}
.topbar-menu-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #050505;
  background: #fff;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.topbar-menu-item:last-child { margin-bottom: 0; }
.topbar-menu-item:hover { background: #f7f8fa; }
.topbar-menu-item strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}
.topbar-menu-item small {
  display: block;
  margin-top: 2px;
  color: #65676b;
  font-size: 0.78rem;
  line-height: 1.35;
}
.topbar-menu-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: #e7f3ff;
}
.topbar-menu-ico-event { background: #ffe6ea; }
.topbar-menu-ico-friends { background: #e7f3ff; }
.topbar-menu-ico-groups { background: #e7f3ff; }
.topbar-menu-ico-feed { background: #e7f3ff; }
.topbar-menu-ico-clock { background: #e7f3ff; }
.topbar-menu-ico-pages { background: #fff0e0; }
.topbar-menu-create {
  background: #fff;
  border-radius: 12px;
  padding: 4px 0;
}
.topbar-menu-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #050505;
  font-weight: 600;
}
.topbar-menu-action:hover { background: #f0f2f5; }
.topbar-menu-action-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e4e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.topbar-menu-divider {
  height: 1px;
  background: #e4e6eb;
  margin: 8px 4px;
}

/* —— Evenementen / groepen / marketplace —— */
.events-page { padding-top: 18px; padding-bottom: 40px; }
.events-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(20, 26, 58, 0.08);
}
.events-header h1 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.events-lead { margin: 0; color: #65676b; font-size: 0.86rem; }
.events-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.events-tabs a {
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  color: #65676b;
  background: #e4e6eb;
}
.events-tabs a.is-active {
  background: #e7f3ff;
  color: #1877f2;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.event-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .12s ease, box-shadow .12s ease;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.event-card-cover {
  height: 140px;
  background: linear-gradient(135deg, #1877f2, #8a3ffc);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card-cover-fallback { font-size: 2.4rem; }
.event-card-body { padding: 12px 14px 16px; }
.event-card-when {
  display: block;
  color: #f02849;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.event-card-body h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.event-card-cancelled {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fff1f0;
  color: #a8071a;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}
.event-card-loc, .event-card-meta, .event-card-host {
  margin: 0 0 4px;
  font-size: 0.84rem;
  color: #65676b;
}
.events-back {
  display: inline-block;
  margin-bottom: 10px;
  color: #65676b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
}
.events-back:hover { color: var(--mw-purple, #8b2fc9); }
.events-detail-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.events-detail-nav .events-back { margin-bottom: 0; }
.events-close-btn {
  text-decoration: none;
}
.events-create-wrap { max-width: 640px; }
.events-create-card, .groups-create-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
}
.events-create-card h1, .groups-create-card h2 { margin: 0 0 6px; }
.events-create-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.events-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.events-field em { color: #f02849; font-style: normal; }
.events-field small { font-weight: 500; color: #65676b; }
.events-field input[type="text"],
.events-field input[type="tel"],
.events-field input[type="email"],
.events-field input[type="url"],
.events-field input[type="password"],
.events-field input[type="date"],
.events-field input[type="time"],
.events-field textarea {
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
  width: 100%;
  box-sizing: border-box;
}
.events-field input:focus,
.events-field textarea:focus {
  outline: 2px solid #1877f2;
  border-color: #1877f2;
}
.events-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.events-privacy {
  border: 1px solid #d8dde3;
  border-radius: 6px;
  padding: 6px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fafbfc;
}
.events-privacy legend {
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0 3px;
  color: #1c1e21;
}
.events-privacy label {
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.25;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #050505;
}
.events-privacy label input {
  width: 13px;
  height: 13px;
  margin: 0;
  flex-shrink: 0;
}
.events-visibility {
  border: 1px solid #d8dde3;
  border-radius: 6px;
  padding: 6px 10px 8px;
  margin-top: 2px;
  background: #fafbfc;
}
.events-visibility legend {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 0 3px;
  color: #1c1e21;
}
.events-visibility .events-form-hint {
  margin: 0 0 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #65676b;
}
.events-visibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
}
.events-visibility .events-check {
  gap: 5px;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.25;
  color: #050505;
  min-height: 0;
  padding: 1px 0;
}
.events-visibility .events-check input {
  width: 13px;
  height: 13px;
  margin: 0;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .events-visibility-grid { grid-template-columns: 1fr; }
}
.events-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.events-cover-field { display: flex; flex-direction: column; gap: 6px; }
.events-cover-label {
  font-weight: 600;
  font-size: 0.9rem;
}
.events-cover-preview {
  margin-top: 4px;
  width: 100%;
  aspect-ratio: 1200 / 630;
  max-height: 280px;
  border-radius: 10px;
  background-color: #f0f2f5;
  border: 1px dashed #bcc0c4;
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.events-cover-preview.has-image {
  border-style: solid;
  border-color: #ccd0d5;
  cursor: grab;
}
.events-cover-preview.is-dragging { cursor: grabbing; }
.events-cover-preview.is-empty { cursor: pointer; }
.events-cover-ideal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #65676b;
  font-size: 0.92rem;
  font-weight: 500;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    #f7f8fa,
    #f7f8fa 12px,
    #eef0f3 12px,
    #eef0f3 24px
  );
}
.events-cover-preview.is-empty .events-cover-ideal { display: flex; }
.events-cover-preview.has-image .events-cover-ideal { display: none !important; }
.events-cover-ideal strong { font-size: 1.05rem; color: #050505; margin-top: 4px; }
.events-cover-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.events-cover-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.events-cover-menu[hidden] { display: none !important; }
.events-cover-menu button {
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: #050505;
}
.events-cover-menu button:hover:not(:disabled) { background: #f0f2f5; }
.events-cover-menu button:disabled { opacity: 0.45; cursor: default; }
.events-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  pointer-events: none;
  z-index: 1;
  transform: none;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.events-cover-img[hidden] { display: none !important; }
.events-cover-toolbar {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.62);
  color: #fff;
  padding: 6px 10px;
  border-radius: 18px;
  white-space: nowrap;
}
.events-cover-toolbar[hidden] { display: none !important; }
.events-cover-zoom-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.events-cover-zoom-btn:hover { background: rgba(255,255,255,.32); }
.events-cover-zoom-label {
  min-width: 42px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.events-cover-toolbar .events-cover-drag-hint {
  position: static;
  transform: none;
  background: transparent;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}
.events-cover-drag-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  transform: translateX(-50%);
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 14px;
  pointer-events: none;
  white-space: nowrap;
  display: none;
}
.events-cover-preview.has-image .events-cover-drag-hint { display: inline; }
.events-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.event-detail {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
}
.event-detail-cover {
  height: 260px;
  background: linear-gradient(135deg, #1877f2, #8a3ffc);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-detail-main { padding: 20px 22px 28px; }
.event-detail-main h1 { margin: 4px 0 8px; font-size: 1.7rem; }
.event-detail-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.event-detail-meta-row .event-card-when { margin-bottom: 0; }
.event-detail-host-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
  text-align: right;
}
.event-detail-host {
  color: #65676b;
  margin: 0;
  font-size: 0.9rem;
  text-align: right;
}
.event-edit-btn {
  align-self: flex-end;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}
.event-rsvp-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  margin: 0;
}
.event-rsvp-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  color: #65676b;
  font-size: 0.9rem;
}
.event-rsvp-count strong {
  font-weight: 800;
  font-size: 1.05rem;
  color: #050505;
}
.event-rsvp-count small {
  font-size: 0.78rem;
  font-weight: 500;
  color: #65676b;
}
.event-rsvp-sep {
  color: #8a8d91;
  font-weight: 500;
  padding: 0 2px;
}
.event-detail-host a { color: #1877f2; text-decoration: none; font-weight: 600; }
@media (max-width: 640px) {
  .event-detail-host-col { align-items: flex-start; text-align: left; margin-left: 0; width: 100%; }
  .event-detail-host { text-align: left; }
  .event-edit-btn { align-self: flex-start; }
}
.event-rsvp-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid #e4e6eb;
  border-bottom: 1px solid #e4e6eb;
  margin-bottom: 14px;
}
.event-rsvp-form {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.event-rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 9px;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  background: #f0f2f5;
  color: #050505;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.event-rsvp-btn:hover {
  background: #e4e6eb;
}
.event-rsvp-btn.is-on {
  background: var(--mw-grad);
  border-color: transparent;
  color: #fff;
}
.event-rsvp-btn.is-on:hover {
  filter: brightness(1.04);
}
.event-owner-note { margin: 0; color: #65676b; font-weight: 600; }
.event-detail-lead {
  margin: 4px 0 12px;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: #65676b;
  white-space: pre-wrap;
}
.event-detail-desc h2, .event-guests h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.event-detail-desc p { white-space: pre-wrap; line-height: 1.5; }
.event-guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.event-guest-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
.event-guest-list a:hover { background: #f0f2f5; }
.event-guest-list img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.event-guest-list strong { display: block; font-size: 0.9rem; }
.event-guest-list small { color: #65676b; }
.events-empty { text-align: center; padding: 40px 20px; }
.form-error {
  background: #ffe6ea;
  color: #b00020;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}
.marketplace-card { cursor: default; }
.events-form-section {
  margin: 18px 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}
.events-form-hint {
  margin: 0 0 10px;
  color: #65676b;
  font-size: 0.84rem;
  font-weight: 500;
}
.events-form-hint code {
  font-size: 0.8rem;
  background: #f0f2f5;
  padding: 1px 5px;
  border-radius: 4px;
}
.events-suggest-wrap { position: relative; }
.events-suggest-list {
  position: absolute;
  left: 0; right: 0; top: calc(100% - 4px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06);
  max-height: 240px;
  overflow: auto;
}
.events-suggest-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  color: #050505;
}
.events-suggest-list button:hover { background: #f0f2f5; }
.event-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 10px 0 12px;
}
.event-price-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.event-price-row .event-rsvp-counts {
  margin-left: auto;
  justify-content: flex-end;
}
.event-price-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 16px;
  background: #e7f3ff;
  color: #1877f2;
  font-size: 0.84rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .event-price-row .event-rsvp-counts {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}
.event-price-pill-muted {
  background: #f0f2f5;
  color: #65676b;
}
.event-venue { margin: 0 0 2px; font-size: 1rem; }
.event-address-lines {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px;
  align-items: start;
}
.event-address-pin {
  line-height: 1.35;
  font-size: 0.9rem;
}
.event-address-text .event-card-loc {
  margin: 0;
  line-height: 1.35;
}
.event-address-text .event-card-loc + .event-card-loc {
  margin-top: 1px;
}
.event-tickets-box {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0f2f5;
}
.event-tickets-box h2 { margin: 0 0 6px; font-size: 1.05rem; }
.event-tickets-box p { margin: 0 0 10px; color: #65676b; font-size: 0.9rem; }
.event-tickets-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.event-tickets-form select {
  margin-left: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccd0d5;
  font: inherit;
}
.event-ticket-list {
  margin: 0;
  padding-left: 18px;
  color: #050505;
}
.event-flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #e7f3ff;
  color: #1877f2;
  font-weight: 600;
}
.event-flash-ok { background: #e7f6ec; color: #1a7f37; }
.event-flash-err { background: #ffe6ea; color: #b00020; }
.event-cancelled-banner {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #a8071a;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 0 14px;
}
.event-cancelled-banner strong { display: block; font-size: 1rem; }
.event-cancelled-banner p { margin: 6px 0 0; font-weight: 500; color: #820014; }
.events-danger-zone {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e4e6eb;
}
.feed-event-card {
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-top: 4px;
}
.feed-event-card.is-cancel { border-color: #f0c2c2; background: #fff8f8; }
.feed-event-card-cover {
  display: block;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e4e6eb;
}
.feed-event-card-body { padding: 14px 16px 16px; }
.feed-event-card-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #65676b;
  letter-spacing: 0.02em;
}
.feed-event-card-title {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
}
.feed-event-card-title a { color: #050505; text-decoration: none; }
.feed-event-card-title a:hover { text-decoration: underline; }
.feed-event-card-when {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: #65676b;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.feed-event-card-venue {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #050505;
}
.feed-event-card-address {
  margin: 0 0 10px;
}
.feed-event-card-address.is-indented {
  /* uitlijnen onder de eerste letter van de zaalnaam */
  margin-left: 0;
}
.feed-event-card-venue + .feed-event-card-address {
  margin-top: 0;
}
.feed-event-card-address p {
  margin: 0;
  font-size: 0.86rem;
  color: #65676b;
  line-height: 1.35;
}
.feed-event-card-meta {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: #65676b;
}
.feed-event-card-desc {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #65676b;
  line-height: 1.4;
  white-space: pre-wrap;
}
.feed-event-card-msg {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #050505;
}
.feed-event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.feed-event-dismiss { margin: 0; }
.feed-event-rsvp {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e4e6eb;
}
.feed-event-rsvp-label {
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 4px;
}
.feed-event-rsvp-done {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #65676b;
  text-align: right;
}
.events-promote-zone h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.events-promote-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.event-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
}
.event-owner-actions .btn,
.event-owner-actions .btn-sm,
.event-owner-actions .event-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
}
.event-inline-form {
  display: inline-flex;
  margin: 0;
  align-items: center;
}
.events-danger-zone h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #a8071a;
}
.events-cancel-form,
.events-delete-form,
.events-danger-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
.events-cancel-form .btn-block,
.events-delete-form .btn-block,
.events-danger-actions .btn-block {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.events-delete-form .btn-block:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.act-as-banner {
  background: #fff8e5;
  border-bottom: 1px solid #f0e0a8;
}
.act-as-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.act-as-banner-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.act-as-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.92rem; color: #5a4a10; }
.act-as-banner-form { margin: 0; }
.event-act-as {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.event-act-as strong { display: block; margin-bottom: 2px; }
.event-act-as-hint { display: block; color: #65676b; font-size: 0.85rem; margin-bottom: 10px; }
.event-act-as-list { display: flex; flex-wrap: wrap; gap: 8px; }
.event-act-as-list form { margin: 0; }
.event-act-as-chip {
  border: none;
  background: #fff;
  color: #050505;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.event-act-as-chip:hover { background: #e7f3ff; color: #1877f2; }
.event-act-as-chip.is-active {
  background: #1877f2;
  color: #fff;
  cursor: default;
  box-shadow: none;
}
@media (max-width: 720px) {
  .topbar-menu-grid { grid-template-columns: 1fr; }
  .topbar-menu-panel { right: -48px; }
  .events-field-row { grid-template-columns: 1fr; }
  .events-header { flex-direction: column; }
}

/* ── Stories / verhalen ── */
.stories-tray {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px;
  margin: 0 0 12px; scrollbar-width: thin;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
}
.stories-card {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #1c1e21;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.stories-card-bg {
  position: absolute; inset: 0;
  display: block; background: #1c1e21;
}
.stories-card-bg img,
.stories-card-bg video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.stories-card-text {
  position: absolute; inset: 18% 8px auto;
  margin: 0; font-style: normal; font-weight: 800; font-size: 0.78rem;
  text-align: center; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.stories-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  pointer-events: none; z-index: 1;
}
.stories-card-avatar {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  padding: 2px; background: #ccd0d5;
}
.stories-card-avatar.is-unseen,
.stories-card-avatar.is-own {
  background: conic-gradient(from 200deg, #0866ff, #60a5fa, #0866ff);
}
.stories-card-avatar.is-seen { background: #ccd0d5; }
.stories-card-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 2px solid #fff; display: block; background: #ddd;
}
.stories-card-label {
  position: absolute; left: 10px; right: 8px; bottom: 10px; z-index: 2;
  font-size: 0.78rem; font-weight: 700; line-height: 1.2;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}

/* Create card — Facebook style */
.stories-card--create {
  background: #fff; color: #050505;
  display: flex; flex-direction: column;
}
.stories-card--create::after { display: none; }
.stories-card--create .stories-card-bg {
  position: relative; inset: auto;
  flex: 1 1 auto; min-height: 0;
  border-radius: 12px 12px 0 0; overflow: hidden;
}
.stories-card--create .stories-card-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.stories-card-create-foot {
  position: relative;
  flex: 0 0 58px;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 18px 8px 10px;
  background: #fff;
}
.stories-card-plus {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: #0866ff; color: #fff; font-size: 1.35rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
  border: 3px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.stories-card--create .stories-card-label {
  position: static; color: #050505; text-shadow: none;
  text-align: center; font-size: 0.78rem; -webkit-line-clamp: 2;
}

/* legacy circle styles (watch sidebar still uses ring--sm) */
.stories-bubble {
  flex: 0 0 86px; width: 86px; text-decoration: none; color: #050505;
  text-align: center; position: relative;
}
.stories-ring {
  display: block; width: 64px; height: 64px; margin: 0 auto 6px;
  padding: 3px; border-radius: 50%; background: #e4e6eb;
}
.stories-ring.is-unseen {
  background: conic-gradient(from 200deg, #0866ff, #60a5fa, #0866ff);
}
.stories-ring.is-own, .stories-ring.is-create {
  background: #e4e6eb;
}
.stories-ring.is-seen { background: #ccd0d5; }
.stories-ring img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 2px solid #fff; display: block; background: #ddd;
}
.stories-plus {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(10px);
  width: 22px; height: 22px; border-radius: 50%;
  background: #0866ff; color: #fff; font-size: 16px; line-height: 20px;
  border: 2px solid #fff; font-weight: 700;
}
.stories-name {
  display: block; font-size: 0.72rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.stories-studio {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 64px); background: #f0f2f5;
}
.stories-studio-form {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  grid-column: 1 / -1;
}
.stories-studio-side {
  background: #fff; padding: 16px 18px 18px; display: flex; flex-direction: column;
  border-right: 1px solid #e4e6eb; min-height: calc(100vh - 64px);
}
.stories-studio-side-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.stories-studio-side-top h1 { margin: 0; font-size: 1.35rem; }
.stories-close {
  width: 36px; height: 36px; border-radius: 50%; background: #e4e6eb;
  display: grid; place-items: center; text-decoration: none; color: #050505;
  font-size: 1.4rem; line-height: 1;
}
.stories-studio-me {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  text-decoration: none; color: inherit;
}
.stories-studio-me img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.stories-studio-me small { display: block; color: #65676b; font-size: 0.78rem; font-weight: 500; }
.stories-tool { margin-bottom: 16px; }
.stories-tool-kicker {
  margin: 0 0 8px; font-size: 0.8rem; color: #65676b;
}
.stories-tool-hint { margin: 8px 0 0; font-size: 0.8rem; color: #65676b; }
.stories-font-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; border: 1px solid #ccd0d5; background: #fff; border-radius: 8px;
  padding: 10px 12px; font: inherit; cursor: pointer;
}
.stories-font-btn span {
  width: 28px; height: 28px; border-radius: 6px; background: #f0f2f5;
  display: grid; place-items: center; font-weight: 800;
}
.stories-file-btn {
  display: block; text-align: center; padding: 12px;
  border: 1px dashed #ccd0d5; border-radius: 10px; cursor: pointer;
  font-weight: 700; background: #f7f8fa;
}
.stories-file-btn input { display: none; }
.stories-file-btn:hover { background: #eef3fb; border-color: #0866ff; color: #0866ff; }
.stories-phone-type {
  position: absolute; inset: 22% 16px auto; min-height: 2.4em;
  color: #fff; font-size: 1.45rem; font-weight: 800;
  text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.35);
  outline: none; white-space: pre-wrap; word-break: break-word; z-index: 2;
}
.stories-phone-type.is-caption {
  inset: auto 14px 56px; font-size: 1rem; font-weight: 700;
}
.stories-phone-type:empty::before {
  content: attr(data-placeholder); opacity: .55; pointer-events: none;
}
.stories-emoji-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); cursor: pointer; font-size: 1.1rem;
}
.stories-emoji-pop {
  position: absolute; right: 10px; bottom: 52px; z-index: 4;
  background: #fff; border-radius: 12px; padding: 8px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.stories-emoji-pop button {
  border: 0; background: none; font-size: 1.15rem; cursor: pointer; padding: 4px;
}
.stories-mute-btn {
  flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.3); color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 0.72rem; line-height: 1; padding: 0;
}
.stories-views-public,
.stories-views-toggle {
  flex: 0 0 auto;
  color: #fff; font-size: 0.68rem; font-weight: 700;
  background: rgba(0,0,0,.3); border-radius: 999px; padding: 3px 7px;
  border: 0; cursor: pointer; font: inherit; white-space: nowrap;
  line-height: 1.2;
}
.stories-share-btn {
  flex: 0 0 auto;
  background: rgba(0,0,0,.3); color: #fff; border: 0; border-radius: 999px;
  padding: 3px 7px; font: inherit; font-size: 0.68rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; line-height: 1.2;
}
.stories-reacts {
  display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: nowrap;
  align-items: center;
}
.stories-react {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: transparent; cursor: pointer; font-size: 1.35rem;
  flex: 0 0 auto; padding: 0; line-height: 1;
  transition: transform .12s ease;
}
.stories-react:hover { transform: scale(1.12); }
.stories-react.is-on {
  box-shadow: 0 0 0 2px #0866ff;
  background: rgba(255,255,255,.12);
}
.stories-del-inline { margin: 0; display: inline-flex; align-items: center; }
.stories-del-icon {
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: #e41e3f; color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 0.72rem; line-height: 1;
  padding: 0; box-shadow: 0 1px 4px rgba(228,30,63,.45);
}
.stories-watch-col {
  display: flex; flex-direction: column; align-items: center;
  width: min(520px, 94vw); gap: 10px;
}
.stories-phone--watch { width: min(380px, 86vw); }
.stories-phone--watch::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 88px;
  z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 55%, transparent 100%);
}
.stories-reply-bar {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  max-width: 520px;
  padding: 4px 0 6px;
  box-sizing: border-box;
}
.stories-reply-form {
  flex: 1 1 160px;
  min-width: 140px;
  margin: 0;
}
.stories-reply-form input[type="text"] {
  display: block;
  width: 100%;
  min-width: 140px;
  box-sizing: border-box;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.stories-reply-form input[type="text"]::placeholder {
  color: rgba(255,255,255,.75);
}
.stories-reply-bar .stories-reacts {
  display: flex; gap: 4px; flex: 0 0 auto; flex-wrap: nowrap;
  align-items: center;
}
.stories-reply-bar .stories-react {
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: transparent; cursor: pointer; font-size: 1.2rem;
  flex: 0 0 auto; padding: 0; line-height: 1;
}
.stories-share-out {
  flex: 0 0 auto;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.75);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.stories-react-burst {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%) scale(.4);
  z-index: 8;
  font-size: 4.5rem;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0;
}
.stories-react-burst.is-show {
  animation: storyReactBurst .9s ease-out forwards;
}
@keyframes storyReactBurst {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.35); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  70% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -72%) scale(.85); }
}
.stories-watch-close {
  position: absolute; top: 16px; right: 18px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  display: grid; place-items: center; text-decoration: none;
  font-size: 1.6rem; line-height: 1;
}
.stories-watch-close:hover { background: rgba(255,255,255,.28); color: #fff; }
.stories-duration { display: grid; gap: 8px; }
.stories-duration-opt {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 10px; border: 1px solid #e4e6eb;
  cursor: pointer; font-size: 0.88rem;
}
.stories-duration-opt:has(input:checked) {
  border-color: #0866ff; background: #e7f3ff;
}
.stories-archive-meta {
  padding: 8px; display: grid; gap: 8px;
}
.stories-archive-repost {
  display: grid; gap: 6px;
}
.stories-archive-repost select {
  width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid #ccd0d5;
  font: inherit;
}
.stories-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stories-phone-text.is-caption {
  inset: auto 12px 24px; font-size: 1rem; font-weight: 700;
}
.stories-progress span i {
  display: block; width: 0; height: 100%; background: #fff;
  transition: none;
}
.stories-progress span.is-done i { width: 100%; }
.stories-progress span.is-on i {
  width: 0;
  animation: none;
}
.stories-profile-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stories-profile-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  margin-bottom: 14px; flex-wrap: wrap;
}
.stories-profile-head h2 { margin: 0 0 4px; }
.stories-profile-head p { margin: 0; }
.stories-profile-grid {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 6px;
  scrollbar-width: thin;
}
.stories-card--grid {
  flex: 0 0 112px;
}
.stories-profile-card { text-decoration: none; color: inherit; }
.stories-profile-thumb {
  aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; background: #111;
  color: #fff; display: grid; place-items: center; text-align: center; padding: 10px;
  font-size: 0.85rem; font-weight: 700;
}
.stories-profile-thumb img, .stories-profile-thumb video { width: 100%; height: 100%; object-fit: cover; }
.stories-profile-card footer {
  display: flex; justify-content: space-between; padding: 6px 2px 0; font-size: 0.78rem; color: #65676b;
}
.stories-profile-watch { margin: 14px 0 0; }
.stories-studio-hint { font-size: 0.82rem; margin: 0 0 16px; }
.stories-studio-actions {
  margin-top: auto; display: flex; gap: 10px; padding-top: 16px;
}
.stories-studio-actions .btn { flex: 1; }
.stories-studio-main { padding: 24px; }
.stories-picker {
  display: flex; justify-content: center; align-items: center; gap: 20px;
  min-height: 62vh;
}
.stories-pick-card {
  width: 220px; height: 340px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-decoration: none; color: #fff; font-weight: 700; text-align: center;
  padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.stories-pick-card--photo { background: linear-gradient(180deg, #1d4ed8, #38bdf8); }
.stories-pick-card--text { background: linear-gradient(180deg, #9a3412, #fb7185); }
.stories-pick-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.stories-preview-title { margin: 0 0 14px; font-size: 1rem; }
.stories-preview-stage {
  background: #1c1e21; border-radius: 16px; min-height: 70vh;
  display: grid; place-items: center; padding: 24px;
}
.stories-phone {
  width: min(340px, 100%); aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: #111; position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.stories-phone-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #111;
}
.stories-phone-media {
  width: 100%; height: 100%; object-fit: cover;
}
.stories-phone-text {
  position: absolute; inset: 18% 16px auto;
  margin: 0; color: #fff; font-size: 1.45rem; font-weight: 800;
  text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.35);
  white-space: pre-wrap; word-break: break-word;
}
.stories-phone-text.is-caption {
  inset: auto 12px 24px; font-size: 1rem; font-weight: 700;
}
.font-strak { font-family: "Plus Jakarta Sans", sans-serif; }
.font-serif { font-family: Georgia, "Times New Roman", serif; }
.font-hand { font-family: "Segoe Script", "Bradley Hand", cursive; }
.stories-swatches {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stories-swatch { cursor: pointer; }
.stories-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.stories-swatch i {
  display: block; width: 32px; height: 32px; border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ddd;
}
.stories-swatch:has(input:checked) i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0866ff; }

.stories-watch {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100vh - 64px); background: #000;
}
.stories-watch-side {
  background: #fff; padding: 14px 12px; overflow-y: auto;
}
.stories-watch-side-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 4px 8px 12px;
}
.stories-watch-side-head h1 { margin: 0; font-size: 1.3rem; }
.stories-watch-links { display: flex; gap: 12px; }
.stories-watch-links a { font-size: 0.85rem; font-weight: 700; color: #0866ff; text-decoration: none; }
.stories-watch-create {
  display: flex; gap: 10px; align-items: center; padding: 8px;
  text-decoration: none; color: inherit; border-radius: 10px;
}
.stories-watch-create:hover { background: #f0f2f5; }
.stories-watch-create-avatar { position: relative; }
.stories-watch-create-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.stories-watch-create-avatar em {
  position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px;
  background: #0866ff; color: #fff; border-radius: 50%; font-style: normal;
  font-size: 14px; display: grid; place-items: center; border: 2px solid #fff;
}
.stories-watch-create small, .stories-watch-row small { display: block; color: #65676b; font-size: 0.78rem; }
.stories-watch-label {
  margin: 14px 8px 6px; font-size: 0.78rem; color: #65676b; text-transform: uppercase;
}
.stories-watch-empty { padding: 8px; font-size: 0.85rem; }
.stories-watch-row {
  display: flex; gap: 10px; align-items: center; padding: 8px;
  text-decoration: none; color: inherit; border-radius: 10px;
}
.stories-watch-row.is-on { background: #e7f3ff; box-shadow: inset 0 0 0 1px #0866ff; }
.stories-ring--sm { width: 48px; height: 48px; margin: 0; }
.stories-watch-main {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 24px 12px;
}
.stories-watch-blank { color: #fff; text-align: center; }
.stories-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.22); color: #fff; font-size: 1.6rem; cursor: pointer;
  position: relative; z-index: 30; flex: 0 0 auto;
}
.stories-nav:hover { background: rgba(255,255,255,.35); }
.stories-tap {
  position: absolute; top: 72px; bottom: 12px; width: 32%;
  z-index: 4; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: pointer;
}
.stories-tap--prev { left: 0; }
.stories-tap--next { right: 0; }
.stories-progress {
  position: absolute; top: 8px; left: 8px; right: 8px; z-index: 3;
  display: flex; gap: 4px;
}
.stories-progress span {
  flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 99px; overflow: hidden;
}
.stories-progress span i {
  display: block; width: 0; height: 100%; background: #fff;
  transition: none;
}
.stories-progress span.is-done i { width: 100%; }
.stories-progress span.is-on i {
  width: 0;
  animation: none;
}
.stories-phone-head {
  position: absolute; top: 14px; left: 10px; right: 6px; z-index: 6;
  display: flex; align-items: center; gap: 8px; color: #fff;
  padding: 0;
  min-height: 40px;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.stories-phone-who {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 1 1 auto;
  color: inherit; text-decoration: none;
}
.stories-head-avatar {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #f7b928 0%, #f0c14b 45%, #e8a317 100%);
  box-sizing: border-box;
}
.stories-head-avatar img {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0,0,0,.35);
  background: #222;
}
.stories-head-meta {
  display: flex; align-items: center; gap: 6px;
  min-width: 0; flex-wrap: nowrap;
  line-height: 1;
}
.stories-head-name {
  display: inline;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}
.stories-head-verified {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; color: #fff; line-height: 0;
}
.stories-head-when {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.95;
  white-space: nowrap;
}
.stories-head-privacy {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; color: #fff; opacity: 0.95; line-height: 0;
}
.stories-phone-actions {
  margin-left: auto;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 2px; flex: 0 0 auto; flex-wrap: nowrap;
  max-width: none;
  text-shadow: none;
}
.stories-ctrl-btn {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0; line-height: 1;
}
.stories-ctrl-btn:hover { background: rgba(255,255,255,.12); }
.stories-ctrl-btn .stories-ico,
.stories-ctrl-btn svg { display: block; color: #fff; }
.stories-media {
  position: absolute; inset: 0; background: #111;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.stories-media img,
.stories-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.stories-phone-inner .stories-phone-text {
  z-index: 5;
}
.stories-reacties-btn {
  display: block;
  width: min(380px, 86vw);
  margin: 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  background: var(--mw-grad);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 10px rgba(30, 79, 214, 0.25);
  box-sizing: border-box;
}
.stories-reacties-btn:hover { filter: brightness(1.05); }
.stories-own-actions {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(380px, 86vw);
}
.stories-own-actions .stories-reacties-btn { width: 100%; margin: 0; }
.stories-share-out--own {
  width: 100%;
  border: 1.5px solid rgba(255,255,255,.85);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.stories-share-out--own:hover { background: rgba(255,255,255,.12); }
.story-info-share {
  display: block;
  width: 100%;
  margin: 16px 0 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--mw-grad);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.stories-more-wrap { position: relative; }
.stories-more-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  width: min(280px, 72vw);
  background: #fff; color: #050505; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  padding: 6px; overflow: hidden;
}
.stories-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 8px 12px;
  border-bottom: 1px solid #e4e6eb;
  margin-bottom: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #050505;
}
.stories-more-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #65676b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.stories-more-close:hover {
  background: #f0f2f5;
  color: #050505;
}
.stories-more-item {
  width: 100%; display: flex; align-items: flex-start; gap: 10px;
  border: 0; background: transparent; text-align: left;
  padding: 10px 10px; border-radius: 8px; cursor: pointer;
  font: inherit; color: inherit;
  text-decoration: none;
}
.stories-more-item:hover,
.stories-more-item.is-done { background: #e7f3ff; }
.stories-more-item.is-active strong { color: #fe2c55; }
.stories-more-item:disabled {
  opacity: 0.55;
  cursor: default;
}
.stories-more-item:disabled:hover { background: transparent; }
.stories-more-item strong { display: block; font-size: 0.88rem; font-weight: 650; }
.stories-more-item small { display: block; margin-top: 2px; color: #65676b; font-size: 0.72rem; line-height: 1.3; }
.stories-more-item--danger strong { color: #e41e3f; }
.stories-more-ico { flex: 0 0 auto; font-size: 1.05rem; line-height: 1.2; color: #050505; }
.stories-more-ico--svg { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.stories-more-ico .ico-whatsapp { color: #25d366; }
.stories-more-wrap form { margin: 0; }

.stories-inphone-info {
  position: absolute; inset: 0; z-index: 12;
  background: #fff; color: #050505;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.stories-inphone-info[hidden] { display: none !important; }
.stories-phone--watch.is-info-open .stories-phone-head,
.stories-phone--watch.is-info-open .stories-progress,
.stories-phone--watch.is-info-open .stories-tap,
.stories-phone--watch.is-info-open .stories-media,
.stories-phone--watch.is-info-open .stories-phone-text,
.stories-phone--watch.is-info-open .stories-react-burst {
  visibility: hidden; pointer-events: none;
}
.stories-inphone-info .story-info-head {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 44px;
  border-bottom: 1px solid #e4e6eb;
  background: #fff;
}
.stories-inphone-info .story-info-head h2 {
  margin: 0; font-size: 1rem; font-weight: 700;
}
.stories-inphone-info .story-info-x {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #e4e6eb; color: #050505; font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}
.stories-inphone-info-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

.story-info-thumbs {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 14px 14px 8px; scrollbar-width: thin;
}
.story-info-thumb {
  flex: 0 0 84px; width: 84px; height: 150px;
  border: 0; padding: 0; border-radius: 12px; overflow: hidden;
  background: #1c1e21; cursor: pointer; position: relative;
}
.story-info-thumb.is-on { box-shadow: 0 0 0 3px #0866ff; }
.story-info-thumb-bg {
  display: block; width: 100%; height: 100%; background: #1c1e21;
}
.story-info-thumb-bg img,
.story-info-thumb-bg video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.story-info-thumb-bg em {
  position: absolute; inset: 20% 6px auto; margin: 0;
  color: #fff; font-style: normal; font-size: 0.7rem; font-weight: 700;
  text-align: center;
}
.story-info-thumb--add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; color: #0866ff;
  background: #e7f3ff; font-size: 0.7rem; font-weight: 700; text-align: center;
  padding: 10px;
}
.story-info-add-plus {
  width: 36px; height: 36px; border-radius: 50%;
  background: #0866ff; color: #fff; font-size: 1.45rem;
  display: grid; place-items: center; line-height: 1;
}
.story-info-section { padding: 8px 14px 0; }
.story-info-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 6px;
}
.story-info-section-head strong { font-size: 0.92rem; }
.story-info-section-head a {
  font-size: 0.78rem; font-weight: 700; color: #0866ff; text-decoration: none;
}
.story-info-hint {
  margin: 0 0 10px; font-size: 0.74rem; color: #65676b; line-height: 1.35;
}
.story-info-hint a { color: #0866ff; font-weight: 600; }
.story-info-sub {
  margin: 14px 0 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #050505;
}
.stories-viewer-emoji.is-muted { opacity: .45; }
.story-info-chats { margin-top: 4px; }
.story-chat-row {
  display: flex; align-items: flex-start; gap: 8px;
  text-decoration: none; color: inherit;
  padding: 10px 0;
  border-top: 1px solid #f0f2f5;
}
.story-chat-row img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
}
.story-chat-body {
  min-width: 0; flex: 1 1 auto; display: grid; gap: 2px;
}
.story-chat-body strong {
  font-size: 0.88rem; font-weight: 700;
}
.story-chat-body em {
  font-style: normal; font-size: 0.86rem; color: #1c1e21; line-height: 1.35;
  white-space: pre-wrap; word-break: break-word;
}
.story-chat-row small {
  flex: 0 0 auto; color: #65676b; font-size: 0.72rem; margin-top: 2px;
}
.stories-viewer-row {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit;
  padding: 8px 0;
}
.stories-viewer-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.stories-viewer-row small { margin-left: auto; color: #65676b; font-size: 0.72rem; }
.stories-archive-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.stories-archive-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e4e6eb; }
.stories-archive-media {
  aspect-ratio: 9/16; background: #111; color: #fff; display: grid; place-items: center;
  font-size: 0.85rem; text-align: center; padding: 8px;
}
.stories-archive-media img, .stories-archive-media video { width: 100%; height: 100%; object-fit: cover; }
.stories-archive-card > .muted { display: block; padding: 8px; font-size: 0.75rem; }

@media (max-width: 860px) {
  .stories-studio, .stories-studio-form, .stories-watch { grid-template-columns: 1fr; }
  .stories-studio-side, .stories-watch-side { min-height: auto; }
  .stories-picker { flex-direction: column; min-height: auto; }
  .stories-watch-main { flex-wrap: wrap; }
  .stories-viewers { position: static; width: 100%; }
}


/* ── Facebook-style Reels ───────────────────────────────── */
html:has(body.reels-app),
html:has(body.reels-create-app) {
  background: #000;
}
body.reels-app,
body.reels-create-app {
  margin: 0;
  background: #000;
  color: #e4e6eb;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  min-height: 100vh;
}
body.reels-app {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.reels-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  background: #000;
}
body.reels-app .reels-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.reels-shell.is-grid-mode {
  grid-template-columns: 244px minmax(0, 1fr);
}
.reels-nav {
  padding: 18px 12px 16px;
  border-right: 1px solid #242526;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #000;
  min-height: 0;
  overflow-y: auto;
}
.reels-nav-title {
  margin: 4px 10px 16px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.reels-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--mw-grad);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.reels-nav-item:hover {
  filter: brightness(1.05);
  color: #fff;
}
.reels-nav-item.is-on {
  background: var(--mw-grad);
  color: #fff;
}
.reels-nav-ico { width: 24px; display: grid; place-items: center; flex: 0 0 auto; }
.reels-nav-create {
  margin: auto 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--mw-grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 0;
}
.reels-nav-create .reels-nav-ico {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.reels-nav-create:hover {
  filter: brightness(1.05);
  color: #fff;
  text-decoration: none;
}
.reels-nav-back {
  margin-top: 8px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 11px 14px;
  border-radius: 6px;
  background: #3a3b3c;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  font-size: 0.95rem;
}
.reels-nav-back:hover {
  background: #4e4f50;
  color: #fff;
  text-decoration: none;
}

/* Activiteiten / meldingen (donkere TikTok-achtige inbox) */
.reels-shell.is-activity-mode {
  grid-template-columns: 244px minmax(0, 1fr);
}
.reels-activity {
  min-height: 0;
  overflow: auto;
  padding: 28px 36px 48px;
  background: #000;
  color: #e4e6eb;
}
.reels-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.reels-activity-head h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}
.reels-activity-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3a3b3c;
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
}
.reels-activity-close:hover { background: #4e4f50; color: #fff; }
.reels-activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.reels-activity-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #18191a;
  color: #e4e6eb;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #3a3b3c;
}
.reels-activity-chip:hover { background: #242526; color: #fff; }
.reels-activity-chip.is-on {
  background: #fff;
  color: #050505;
  border-color: #fff;
}
.reels-activity-section {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.reels-activity-empty {
  padding: 28px 0;
  color: #b0b3b8;
}
.reels-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reels-activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 8px;
}
.reels-activity-row:hover { background: #18191a; }
.reels-activity-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #3a3b3c;
}
.reels-activity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reels-activity-body {
  flex: 1 1 auto;
  min-width: 0;
}
.reels-activity-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #b0b3b8;
}
.reels-activity-body a {
  color: inherit;
  text-decoration: none;
}
.reels-activity-body strong {
  color: #fff;
  font-weight: 700;
  margin-right: 4px;
}
.reels-activity-follow {
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  padding: 9px 16px;
  background: #fe2c55;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.reels-activity-follow:hover { filter: brightness(1.06); }
.reels-activity-follow.is-following {
  background: #3a3b3c;
  color: #fff;
}
.reels-activity-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: #18191a;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
}
.reels-activity-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Profile grid overview */
.reels-grid-wrap {
  padding: 28px 32px 40px;
  overflow: auto;
  min-height: 0;
  height: 100%;
}
.reels-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.reels-grid-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}
.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.reels-grid-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: #18191a;
  display: block;
}
.reels-grid-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}
.reels-grid-meta {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  gap: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

.reels-grid-wrap--fb {
  background: #000;
  color: #e4e6eb;
}
.reels-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #242526;
}
.reels-grid-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.reels-grid-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
  color: #b0b3b8;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -13px;
}
.reels-grid-tab:hover { color: #fff; }
.reels-grid-tab.is-on {
  color: #fff;
  border-bottom-color: #fff;
}
.reels-grid-sort {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #18191a;
  box-shadow: inset 0 0 0 1px #3a3b3c;
}
.reels-grid-sort-btn {
  padding: 7px 14px;
  border-radius: 999px;
  color: #b0b3b8;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}
.reels-grid-sort-btn.is-on {
  background: #3a3b3c;
  color: #fff;
  box-shadow: none;
}
.reels-grid-hint {
  margin: 0 0 14px;
  color: #b0b3b8;
  font-size: 0.88rem;
}
.reels-empty--light { color: #b0b3b8; }
.reels-empty--light .btn { margin-top: 12px; }
.reels-grid--fb {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.reels-grid-stat {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
}

/* Verkennen — TikTok-achtig ontdek-raster */
/* Verkennen — TikTok-achtig ontdek-raster (altijd donker) */
.reels-shell.is-explore-mode {
  grid-template-columns: 244px minmax(0, 1fr);
  background: #000 !important;
}
.reels-shell.is-explore-mode .reels-explore,
.reels-explore {
  background: #000 !important;
  color: #e4e6eb !important;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 24px 28px 40px;
}
.reels-explore-head {
  margin-bottom: 20px;
}
.reels-explore-head h1 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff !important;
}
.reels-explore-head p {
  margin: 0;
  color: #b0b3b8 !important;
  font-size: 0.92rem;
}
.reels-explore-meta strong {
  font-size: 0.74rem;
  font-weight: 650;
  color: #e4e6eb !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reels-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px 10px;
}
.reels-explore-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.reels-explore-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  overflow: hidden;
  background: #18191a;
}
.reels-explore-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reels-explore-likes {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
}
.reels-explore-likes svg {
  width: 12px;
  height: 12px;
}
.reels-explore-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 1px;
}
.reels-explore-meta img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.reels-explore-meta strong {
  font-size: 0.74rem;
  font-weight: 650;
  color: #e4e6eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reels-explore .reels-empty--light {
  color: #b0b3b8;
}

/* Viewer stage — FB: video+actions | comments | arrows */
.reels-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 48px 12px 16px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  background: #000;
  overflow: hidden;
}
.reels-empty {
  text-align: center;
  color: #e4e6eb;
  padding: 40px 20px;
}
.reels-empty .btn { margin-top: 14px; }
.reels-center {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  max-height: 100%;
  min-height: 0;
  transform-origin: center center;
}
.reels-player {
  position: relative;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.55);
  flex: 0 0 auto;
}
.reels-player.is-portrait {
  width: auto;
  height: auto;
  max-height: calc(100dvh - 72px);
  aspect-ratio: 9 / 16;
  max-width: min(100%, calc((100dvh - 72px) * 9 / 16));
}
.reels-player.is-landscape {
  width: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: min(100%, calc((100dvh - 72px) * 16 / 9));
  max-height: calc(100dvh - 72px);
}
.reels-player.is-square {
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: min(100%, calc(100dvh - 72px));
  max-height: calc(100dvh - 72px);
}
.reels-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  cursor: pointer;
}
.reels-more-wrap--rail {
  position: relative;
  z-index: 30;
}
.reels-more-wrap--rail .reels-more-menu {
  position: absolute;
  top: auto;
  bottom: 0;
  right: calc(100% + 10px);
  left: auto;
  width: 300px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  z-index: 40;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.reels-player .reels-more-wrap--player {
  position: absolute !important;
  top: 12px;
  right: 12px;
  left: auto !important;
  z-index: 20;
}
.reels-player-more {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 1px;
  padding: 0;
  backdrop-filter: blur(4px);
}
.reels-player-more:hover {
  background: rgba(0, 0, 0, 0.65);
}
.reels-settings-menu {
  position: fixed !important;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(280px, 72vw);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  z-index: 90;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.reels-player-ctrls {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reels-player-ctrls .reels-ctrl-btn,
.reels-player-ctrls .reels-mute,
.reels-player-ctrls .reels-pause {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.reels-mute {
  position: absolute;
  top: auto;
  left: auto;
  right: 14px;
  bottom: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.reels-mute svg,
.reels-pause svg,
.reels-ctrl-btn svg { display: block; width: 14px; height: 14px; }
.reels-mute .reels-mute-x {
  stroke: #ff3b30;
  stroke-width: 2.6;
  stroke-linecap: round;
}
.reels-player-meta {
  position: absolute;
  left: 10px;
  right: 78px;
  bottom: 8px;
  z-index: 4;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  pointer-events: none;
}
.reels-player-meta a,
.reels-player-meta button { pointer-events: auto; }
.reels-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.reels-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
}
.reels-author img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.35);
}
.reels-verified { display: none !important; }
.reels-follow {
  border: 0;
  background: transparent;
  color: #2e89ff;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.reels-follow--panel { color: #1877f2; display: block; margin-top: 2px; padding: 0; }
.reels-follow--panel.is-following { color: #65676b; }
.reels-music,
.reels-player [data-reels-music],
.reels-player-meta [data-reels-music] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.reels-caption {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.3;
  color: #fff;
  max-height: 3.9em;
  overflow: hidden;
}
.reels-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.28);
  z-index: 5;
}
.reels-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.reels-captions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 58px;
  z-index: 8;
  display: flex;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.reels-captions[hidden] { display: none !important; }
.reels-captions span {
  display: inline-block;
  max-width: 92%;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.75);
  word-break: break-word;
}

/* Action column — direct rechts van video (FB) */
.reels-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
}
.reels-center { overflow: visible; }
.reels-more-wrap {
  position: relative;
  z-index: 30;
}
.reels-more-menu {
  position: absolute;
  top: auto;
  bottom: 0;
  right: calc(100% + 10px);
  left: auto;
  width: 320px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  z-index: 40;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.reels-more-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  box-sizing: border-box;
  color: #050505;
}
.reels-more-row-label {
  flex: 1 1 auto;
  font-size: 0.9rem;
  font-weight: 650;
  min-width: 0;
}
.reels-more-divider {
  border: 0;
  border-top: 1px solid #e4e6eb;
  margin: 4px 12px;
}
.reels-speed-pills {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f0f2f5;
  flex: 0 0 auto;
}
.reels-speed-pill {
  border: 0;
  background: transparent;
  color: #65676b;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 7px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}
.reels-speed-pill.is-on {
  background: #fff;
  color: #050505;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.reels-toggle {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  background: #ccd0d5;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
  transition: background .15s;
}
.reels-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .15s;
}
.reels-toggle.is-on {
  background: #20d5ec;
}
.reels-toggle.is-on::after {
  transform: translateX(18px);
}
.reels-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.reels-subs-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.reels-subs-modal[hidden] { display: none !important; }
.reels-subs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.reels-subs-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #fff;
  color: #050505;
  border-radius: 16px;
  padding: 8px 8px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.reels-subs-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 44px 10px;
}
.reels-subs-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.reels-subs-head .stories-more-close {
  position: absolute;
  right: 8px;
  top: 8px;
}
.reels-subs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}
.reels-subs-row.is-disabled {
  opacity: 0.55;
}
.reels-subs-row strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
}
.reels-subs-row small {
  display: block;
  margin-top: 4px;
  color: #65676b;
  font-size: 0.78rem;
  line-height: 1.35;
}
.reels-subs-link {
  border: 0;
  background: transparent;
  color: #0866ff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}
.reels-action {
  width: 52px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
}
.reels-action-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #3a3b3c;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: background .15s, color .15s;
  color: #fff;
}
.reels-action-ico .ico-share,
.reels-action-ico .ico-heart,
.stories-more-ico .ico-share {
  display: block;
}
.reels-action:hover .reels-action-ico { background: #4e4f50; }
.reels-action.is-on .reels-action-ico {
  background: #1877f2;
}
.reels-action.is-liked .reels-action-ico--heart {
  background: rgba(254, 44, 85, 0.2);
  color: #fe2c55;
}
.reels-action.is-liked .reels-action-ico--heart .ico-heart {
  color: #fe2c55;
  fill: #fe2c55;
}
.reels-action--avatar {
  position: relative;
  width: 52px;
  margin-bottom: 14px;
  overflow: visible;
  z-index: 6;
}
.reels-rail-avatar-stack {
  position: relative;
  width: 46px;
  height: 54px;
  margin: 0 auto;
  overflow: visible;
}
.reels-rail-avatar {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  background: #3a3b3c;
  cursor: pointer;
}
.reels-rail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.reels-rail-follow {
  position: absolute;
  left: 50%;
  top: 34px;
  bottom: auto;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fe2c55;
  color: #fff;
  cursor: pointer;
  display: grid !important;
  place-items: center;
  padding: 0;
  margin: 0;
  z-index: 30;
  box-shadow: none;
  pointer-events: auto;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  -webkit-appearance: none;
  appearance: none;
}
.reels-rail-follow svg {
  display: block;
  width: 11px;
  height: 11px;
  pointer-events: none;
}
.reels-rail-follow:hover { filter: brightness(1.06); }
.reels-rail-follow:focus { outline: none; }
.reels-rail-follow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.reels-rail-follow.is-following {
  background: #fe2c55;
  color: #7CFF6B;
  border-color: #fff;
}
.reels-rail-follow.is-just-followed {
  animation: reels-follow-pop .35s ease;
}
@keyframes reels-follow-pop {
  0% { transform: translateX(-50%) scale(1); }
  45% { transform: translateX(-50%) scale(1.18); }
  100% { transform: translateX(-50%) scale(1); }
}
.reels-rail-follow[hidden],
.reels-rail-follow.is-own-hidden {
  display: none !important;
}
.reels-action.is-on .reels-action-ico--fav {
  background: rgba(250, 206, 21, 0.2);
  color: #face15;
}
.reels-action-ico .ico-comment,
.reels-action-ico .ico-bookmark {
  display: block;
}
.stories-more-item {
  text-decoration: none;
  color: inherit;
}
.stories-more-ico--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  color: #050505;
}
.feed-react-ico {
  display: inline-flex;
  align-items: center;
  vertical-align: -3px;
  margin-right: 4px;
}
.feed-react-btn .feed-react-ico .ico-share {
  display: block;
}
.reels-grid-meta .ico-heart {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 2px;
}

/* Comments panel */
.reels-comments {
  width: min(400px, 32vw);
  height: min(780px, calc(100vh - 40px));
  background: #fff;
  color: #050505;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.reels-shell.is-comments-closed .reels-comments { display: none; }
.reels-shell:not(.is-comments-closed) .reels-stage {
  justify-content: flex-start;
  padding-right: 20px;
}
.reels-shell:not(.is-comments-closed) .reels-center {
  margin-left: auto;
  margin-right: 18px;
}
.reels-shell:not(.is-comments-closed) .reels-comments {
  margin-left: 0;
  margin-right: 0;
  order: 3;
}
.reels-shell:not(.is-comments-closed) .reels-arrows {
  right: calc(min(400px, 32vw) + 28px);
}
.reels-comments-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "author close"
    "caption caption";
  align-items: start;
  gap: 0 8px;
  padding: 14px 12px 12px 16px;
  border-bottom: 1px solid #e4e6eb;
}
.reels-comments-author {
  grid-area: author;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-right: 4px;
}
.reels-comments-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.reels-comments-caption {
  grid-area: caption;
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #050505;
  line-height: 1.35;
}
.reels-comments-filter {
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 650;
  color: #65676b;
  border-bottom: 1px solid #f0f2f5;
}
.reels-comments-head .reels-comments-close {
  grid-area: close;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e4e6eb;
  color: #050505;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  margin-top: 4px;
}
.reels-comments-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e4e6eb;
  color: #050505;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
}
.reels-comments-close:hover { background: #d8dadf; }
.reels-comments-list {
  flex: 1;
  overflow: auto;
  padding: 12px 16px;
}
.reels-comments-empty {
  text-align: center;
  padding: 56px 16px;
  color: #65676b;
}
.reels-comments-empty-ico { font-size: 2.2rem; margin-bottom: 10px; }
.reels-comments-empty strong { display: block; color: #050505; margin-bottom: 4px; font-size: 1.05rem; }
.reels-comment {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.reels-comment img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.reels-comment strong { font-size: 0.88rem; }
.reels-comment .muted { font-size: 0.75rem; color: #65676b; margin-left: 4px; }
.reels-comment p { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.35; }
.reels-comment--reply { margin-top: 10px; margin-left: 6px; }
.reels-comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e4e6eb;
  background: #fff;
}
.reels-comment-form img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.reels-comment-form input {
  flex: 1;
  border: 0;
  background: #f0f2f5;
  border-radius: 999px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.reels-comment-send {
  border: 0;
  background: transparent;
  color: #1877f2;
  font-size: 1.15rem;
  cursor: pointer;
}

/* Up/down arrows — rechts buiten (FB) */
.reels-arrows {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 6;
}
.reels-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #3e4042;
  background: #242526;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.reels-arrow:hover { background: #3a3b3c; }

/* ── Create studio ──────────────────────────────────────── */
.reels-create {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #18191a;
}
.stories-picker--reels {
  min-height: auto;
  width: 100%;
  max-width: 640px;
  padding: 0 24px 24px;
  gap: 48px;
}
.stories-picker--reels .stories-pick-card {
  border: none;
  cursor: pointer;
  font: inherit;
}
.reels-create--in-shell {
  min-height: 0;
  height: 100%;
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reels-create--in-shell .reels-create-body {
  min-height: calc(100vh - 0px);
  height: 100%;
}
.stories-create-submenu .stories-create-subitem {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.stories-create-submenu--tools .reels-create-step {
  gap: 8px;
}
.stories-create-submenu--tools .reels-edit-item {
  background: #242526;
  border: 1px solid #3a3b3c;
  color: #e4e6eb;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  padding: 10px 12px;
}
.stories-create-submenu--tools .reels-edit-item.is-on {
  border-color: #fff;
  color: #fff;
}
.stories-create-submenu--tools .reels-caption-label {
  color: #b0b3b8;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stories-create-submenu--tools .reels-caption-label textarea {
  background: #242526;
  border: 1px solid #3a3b3c;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  resize: vertical;
}
.stories-create-submenu--tools .reels-music-list {
  background: #18191a;
  border: 1px solid #2f3031;
  border-radius: 8px;
}
.stories-create-submenu--tools .reels-music-row {
  color: #e4e6eb;
  border-color: #2f3031;
}
.stories-create-submenu--tools .reels-create-actions .btn-outline {
  border-color: #4e4f50;
  color: #e4e6eb;
  background: transparent;
}
.reels-preview-phone .reels-preview-frame,
.reels-preview-phone .stories-phone-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #111;
}
.reels-preview-phone .reels-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reels-preview-phone .reels-preview-hint {
  color: #b0b3b8;
}
.reels-create--in-shell .reels-trim {
  width: min(400px, 92vw);
  margin-top: 12px;
  color: #e4e6eb;
}
.reels-create-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fff;
  color: #050505;
  border-bottom: 1px solid #e4e6eb;
}
.reels-create-top h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.reels-create-back,
.reels-create-x {
  color: #050505;
  text-decoration: none;
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
  line-height: 1;
}
.reels-create-body {
  flex: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 0;
}
.reels-create-side {
  background: #fff;
  color: #050505;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e4e6eb;
}
.reels-create-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.reels-upload-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  border: 1.5px solid #ccd0d5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  padding: 18px;
  transition: border-color .15s, background .15s;
}
.reels-upload-card:hover {
  border-color: #1877f2;
  background: #f0f7ff;
}
.reels-upload-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  display: grid;
  place-items: center;
}
.reels-upload-card strong { font-size: 0.95rem; }
.reels-upload-card small { color: #65676b; font-size: 0.8rem; text-align: center; }
.reels-create-next { width: 100%; margin-top: auto; }
.reels-create-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.reels-create-err { color: #e41e3f; font-size: 0.88rem; }
.reels-edit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 10px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #050505;
}
.reels-edit-item.is-on { background: #e7f3ff; color: #1877f2; }
.reels-music-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
}
.reels-music-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.reels-music-row.is-on { background: #f0f2f5; }
.reels-music-row strong { display: block; font-size: 0.9rem; }
.reels-music-row small { color: #65676b; font-size: 0.75rem; }
.reels-caption-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.reels-caption-label textarea {
  font: inherit;
  font-weight: 400;
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  min-height: 80px;
}
.reels-create-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  gap: 16px;
  background: #18191a;
}
.reels-preview-frame {
  position: relative;
  background: #242526;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: calc(100vh - 160px);
}
.reels-preview-frame.is-empty {
  width: min(720px, 70vw);
  aspect-ratio: 16 / 9;
}
.reels-preview-frame.is-landscape {
  width: min(860px, 78vw);
  aspect-ratio: 16 / 9;
}
.reels-preview-frame.is-portrait {
  width: min(420px, 42vw);
  aspect-ratio: 9 / 16;
}
.reels-preview-frame.is-square {
  width: min(520px, 50vw);
  aspect-ratio: 1 / 1;
}
.reels-preview-frame.is-drag { outline: 2px solid #1877f2; outline-offset: 2px; }
.reels-preview-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #000;
  position: relative;
  z-index: 1;
}
.reels-preview-video.is-ready { display: block !important; }
.reels-preview-hint {
  position: absolute;
  z-index: 2;
  color: #b0b3b8;
  margin: 0;
  pointer-events: none;
}
.reels-preview-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.55);
}
.reels-pc-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.reels-pc-bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  overflow: hidden;
}
.reels-pc-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #1877f2;
}
.reels-camera-box {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: #000;
}
.reels-camera-box[hidden] { display: none !important; }
.reels-camera-box video {
  flex: 1;
  width: 100%;
  object-fit: cover;
  background: #000;
}
.reels-camera-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  background: rgba(0,0,0,.75);
}
.reels-trim {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(720px, 78vw);
  color: #e4e6eb;
  font-size: 0.88rem;
}
.reels-trim-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reels-trim-track label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reels-trim-track input[type="range"] { flex: 1; }

@media (max-width: 1100px) {
  .reels-shell { grid-template-columns: 1fr; }
  .reels-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #242526;
  }
  .reels-nav-title { width: 100%; }
  .reels-nav-back { margin-top: 0; }
  .reels-stage {
    flex-direction: column;
    padding: 12px;
    height: auto;
    min-height: 0;
    overflow: auto;
  }
  .reels-arrows {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 8px;
  }
  .reels-comments {
    width: min(480px, 94vw);
    height: 380px;
  }
  .reels-player.is-portrait,
  .reels-player.is-landscape,
  .reels-player.is-square {
    max-width: min(100%, calc(100dvh - 120px));
    max-height: calc(100dvh - 120px);
  }
  .reels-create-body { grid-template-columns: 1fr; }
}

/* Stories in Reels-layout */
.stories-reels-tray {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 42vh;
  overflow: auto;
  padding-right: 4px;
}
.stories-reels-tray-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #e4e6eb;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.stories-reels-tray-item img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
}
.stories-reels-tray-item:hover { background: #18191a; }
.stories-reels-tray-item.is-on { background: #3a3b3c; color: #fff; }
.stories-media--reels {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.stories-media--reels img,
.stories-media--reels video {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #000;
}
.stories-progress--reels {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5;
  display: flex; gap: 4px;
}
.stories-progress--reels span {
  flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 99px; overflow: hidden;
}
.stories-progress--reels span i {
  display: block; width: 0; height: 100%; background: #fff;
}
.stories-caption--reels {
  position: absolute; left: 14px; right: 14px; bottom: 78px; z-index: 4;
  margin: 0; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55);
  font-size: 0.95rem; pointer-events: none;
}
.stories-reels-when {
  color: rgba(255,255,255,.9);
  font-size: 0.85rem;
  margin-left: 4px;
}
.stories-reels-pause {
  position: absolute; top: 22px; right: 14px; z-index: 7;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  padding: 0;
}
.stories-reels-player .reels-mute.stories-reels-ctrl {
  top: 22px;
  right: 14px;
  left: auto;
  bottom: auto;
  z-index: 7;
  width: 28px;
  height: 28px;
}
.stories-reels-player .stories-reels-pause {
  top: 22px;
  right: 46px;
  z-index: 7;
}
.stories-reels-del {
  position: absolute;
  top: 22px;
  right: 78px;
  z-index: 7;
  margin: 0;
}
.stories-reels-player.is-own-has-del .stories-reels-pause { right: 78px; }
.stories-reels-player.is-own-has-del .reels-mute.stories-reels-ctrl { right: 46px; }
.stories-reels-player.is-own-has-del .stories-reels-del { right: 14px; }
.stories-reels-del-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.stories-reels-del-btn:hover { background: rgba(228,30,63,.85); }
.stories-reels-player .stories-reels-ctrl svg {
  display: block;
  width: 14px;
  height: 14px;
}
.stories-reels-player .stories-reels-pause svg rect,
.stories-reels-player .stories-reels-pause svg path {
  fill: #fff;
}
.stories-reels-player .stories-tap {
  position: absolute; top: 0; bottom: 0; width: 42%; z-index: 3;
  border: 0; background: transparent; cursor: pointer; padding: 0;
}
.stories-reels-player .stories-tap--prev { left: 0; }
.stories-reels-player .stories-tap--next { right: 0; left: auto; }
.stories-watch-close--reels {
  position: absolute; top: 16px; right: 78px; z-index: 8;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45); color: #fff; text-decoration: none;
  font-size: 1.4rem; line-height: 1;
}
.stories-insights-panel .reels-comments-head {
  position: relative;
  padding-right: 52px;
}
.stories-insights-panel .feed-modal-x {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.stories-phone-head--reels {
  position: absolute;
  top: 22px;
  left: 10px;
  right: 8px;
  z-index: 6;
}
.stories-reels-player.reels-player.is-portrait {
  width: min(400px, 38vw);
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 110px);
  height: auto;
}
.stories-media--reels img,
.stories-media--reels video {
  object-fit: cover;
}
.stories-reply-open {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stories-reply-open:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.stories-reels-app [data-story-reply-panel] .reels-comments-head {
  position: relative;
  padding-right: 52px;
}
.stories-reels-app [data-story-reply-panel] .feed-modal-x {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.stories-reels-player .stories-ctrl-btn.is-muted .reels-mute-x {
  stroke: #ff3b30;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.stories-own-actions--reels {
  width: 100%;
  max-width: none;
}
.stories-reels-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
}
.stories-reels-arrows .reels-arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
}
.stories-reels-arrows .reels-arrow:first-child { left: 18px; }
.stories-reels-arrows .reels-arrow:last-child { right: 18px; left: auto; }
.stories-reels-arrows .reels-arrow.is-disabled {
  opacity: 0.25;
  pointer-events: none;
}
.stories-reels-center {
  align-items: center;
}
.stories-reels-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  width: auto;
  max-height: 100%;
}
.stories-reels-main .stories-reels-player {
  width: 100%;
  max-height: calc(100dvh - 24px);
}
.reels-watch-main .reels-player {
  width: auto;
}
.reels-side-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex: 0 0 auto;
  align-self: center;
  margin-right: 4px;
}
.stories-reply-bar--reels {
  width: 100%;
  max-width: none;
  padding: 0 2px 2px;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: visible;
  justify-content: center;
}
.stories-reply-bar--reels .stories-reacts {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 2px;
  max-width: none;
}
.stories-reply-bar--reels .stories-react {
  width: 26px;
  height: 26px;
  font-size: 1.05rem;
}
@media (max-width: 720px) {
  .stories-reels-main:not(.reels-watch-main),
  .stories-reels-player.reels-player.is-portrait {
    width: min(400px, 92vw);
  }
  .reels-side-nav { gap: 28px; }
  .stories-reply-bar--reels .stories-react {
    width: 24px;
    height: 24px;
    font-size: 0.98rem;
  }
}
.stories-more-wrap { position: relative; z-index: 30; }
.stories-reels-app .stories-more-menu,
.stories-reels-app .reels-more-menu {
  position: absolute;
  top: auto;
  bottom: 0;
  right: calc(100% + 10px);
  left: auto;
  width: 260px;
  max-width: min(260px, 70vw);
  z-index: 40;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.stories-reels-app .reels-actions,
.stories-reels-app .reels-center {
  overflow: visible;
}

/* Create story in Reels-shell */
.reels-nav-create.is-on {
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
.stories-create-submenu {
  margin-top: 12px;
  padding: 12px 10px;
  border-radius: 8px;
  background: #18191a;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.stories-create-submenu-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b0b3b8;
}
.stories-create-subitem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #e4e6eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.stories-create-subitem:hover { background: #3a3b3c; color: #fff; }
.stories-create-me {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #3a3b3c;
  color: #e4e6eb;
}
.stories-create-me--top {
  margin: 0 0 12px;
  flex-shrink: 0;
}
.stories-create-me img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
}
.stories-create-me strong { display: block; font-size: 0.88rem; }
.stories-create-me small { display: block; color: #b0b3b8; font-size: 0.72rem; }
.stories-create-stage {
  background: #000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 64px;
}
.stories-create-submenu--tools .stories-tool-kicker,
.stories-create-submenu--tools .stories-tool-hint {
  color: #b0b3b8;
}
.stories-create-submenu--tools .stories-font-btn {
  background: #3a3b3c;
  border-color: #4e4f50;
  color: #fff;
}
.stories-create-submenu--tools .stories-font-btn span {
  background: #242526;
  color: #fff;
}
.stories-create-submenu--tools .stories-file-btn {
  background: #242526;
  border-color: #4e4f50;
  color: #e4e6eb;
}
.stories-create-submenu--tools .stories-file-btn:hover {
  background: #3a3b3c;
  border-color: #fff;
  color: #fff;
}
.stories-create-submenu--tools .stories-duration-opt {
  background: #242526;
  border: 1px solid #3a3b3c;
  color: #e4e6eb;
  border-radius: 6px;
  padding: 8px 10px;
}
.stories-create-submenu--tools .stories-duration-opt:has(input:checked) {
  border-color: #fff;
  background: #3a3b3c;
}
.stories-studio-actions--reels {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #3a3b3c;
}
.stories-studio-actions--reels .btn-ghost {
  background: transparent;
  border: 1px solid #4e4f50;
  color: #e4e6eb;
}
.stories-preview-stage--reels {
  background: transparent;
  min-height: auto;
  padding: 0 20px 20px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.stories-phone--reels-preview {
  width: min(400px, 38vw);
  max-height: calc(100vh - 88px);
}
@media (max-width: 720px) {
  .stories-phone--reels-preview { width: min(400px, 92vw); }
  .stories-picker--reels { flex-direction: column; align-items: center; }
}

/* Mijn verhaal submenu + under-player arrows + beheer */
.stories-mine-submenu {
  margin: 2px 0 8px 12px;
  padding: 6px 0 6px 12px;
  border-left: 2px solid #3a3b3c;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stories-mine-subitem {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: #b0b3b8;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}
.stories-mine-subitem:hover { background: #18191a; color: #fff; }
.stories-mine-subitem.is-on {
  background: rgba(30, 79, 214, 0.22);
  color: #fff;
}
.stories-under-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 4px 0 2px;
}
.stories-under-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #3e4042;
  background: #242526;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.stories-under-arrow:hover { background: #3a3b3c; color: #fff; }
.stories-under-arrow.is-disabled {
  opacity: 0.28;
  pointer-events: none;
  cursor: default;
}
.stories-manage-stage {
  align-items: stretch;
  justify-content: stretch;
  padding: 24px 28px;
  overflow: auto;
}
.stories-manage {
  width: min(1100px, 100%);
  margin: 0 auto;
  color: #e4e6eb;
}
.stories-manage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.stories-manage-head h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: #fff;
  font-weight: 700;
}
.stories-manage-head p {
  margin: 0;
  color: #b0b3b8;
  font-size: 0.9rem;
}
.stories-manage-tabs {
  display: flex;
  gap: 6px;
  background: #18191a;
  padding: 4px;
  border-radius: 8px;
}
.stories-manage-tabs a {
  padding: 8px 14px;
  border-radius: 6px;
  color: #b0b3b8;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}
.stories-manage-tabs a.is-on {
  background: var(--mw-grad);
  color: #fff;
}
.stories-manage-flash {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(30, 79, 214, 0.18);
  color: #dbeafe;
  font-size: 0.88rem;
}
.stories-manage-empty {
  text-align: center;
  padding: 48px 20px;
  color: #b0b3b8;
}
.stories-manage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #18191a;
  border: 1px solid #2f3031;
  border-radius: 8px;
}
.stories-manage-checkall {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #e4e6eb;
  font-weight: 600;
}
.stories-manage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stories-manage-actions select {
  background: #242526;
  color: #fff;
  border: 1px solid #3e4042;
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.84rem;
}
.stories-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.stories-manage-card {
  position: relative;
  background: #18191a;
  border: 1px solid #2f3031;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stories-manage-pick {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,.55);
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.stories-manage-pick input { margin: 0; }
.stories-manage-media {
  aspect-ratio: 9 / 16;
  background: #111;
  position: relative;
  overflow: hidden;
}
.stories-manage-media img,
.stories-manage-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stories-manage-caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.stories-manage-meta {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stories-manage-status {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
  width: 100%;
}
.stories-manage-badge {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #3a3b3c;
  color: #e4e6eb;
}
.stories-manage-card.state-live .stories-manage-badge {
  background: rgba(30, 79, 214, 0.35);
  color: #dbeafe;
}
.stories-manage-card.state-archived .stories-manage-badge {
  background: rgba(139, 47, 201, 0.28);
  color: #f3e8ff;
}
.stories-manage-when {
  font-size: 0.58rem;
  line-height: 1.2;
  color: #8a8d91;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin-left: auto;
  text-align: right;
}
.stories-manage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stories-manage-row .btn-sm {
  padding: 5px 8px;
  font-size: 0.72rem;
}
.stories-manage-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.stories-manage-stack .btn,
.stories-manage-stack a.btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  border: none;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 4px 8px;
  min-height: 0;
  border-radius: 5px;
  text-decoration: none;
}
.stories-manage-stack-spacer {
  display: block;
  height: 0;
}
.stories-btn-site {
  background: var(--mw-grad) !important;
  color: #fff !important;
}
.stories-btn-activate {
  background: #16a34a !important;
  color: #fff !important;
}
.stories-btn-end,
.stories-btn-delete {
  background: #dc2626 !important;
  color: #fff !important;
}
.stories-manage-actions .stories-btn-activate,
.stories-manage-actions .stories-btn-end,
.stories-manage-actions .stories-btn-site,
.stories-manage-actions .stories-btn-delete {
  border: none;
  color: #fff;
  font-weight: 700;
}
.stories-overview-card {
  text-decoration: none;
  color: inherit;
}
.stories-overview-card:hover {
  border-color: #4e4f50;
}
.stories-overview-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.stories-overview-author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.stories-overview-author strong {
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stories-grid-back {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(24, 25, 26, 0.92);
  border: 1px solid #3e4042;
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}
.stories-grid-back:hover {
  background: #242526;
}
.reels-stage {
  position: relative;
}
.reels-grid-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.stories-manage-stage .btn-outline {
  border-color: #4e4f50;
  color: #e4e6eb;
  background: transparent;
}
.stories-manage-stage .btn-ghost {
  color: #b0b3b8;
}

/* ─── MyWorld Challenges ─── */
.chal-page { padding-bottom: 3rem; }
.chal-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30,79,214,.12), rgba(139,47,201,.14), rgba(233,30,140,.1));
  border: 1px solid var(--color-border, #ddd6eb);
}
.chal-hero--compact { align-items: center; }
.chal-kicker {
  margin: 0 0 .35rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mw-purple, #8b2fc9);
}
.chal-hero h1, .chal-detail-body h1 { margin: 0 0 .4rem; font-size: 1.75rem; }
.chal-lead { margin: 0; color: var(--muted, #5c5670); max-width: 36rem; }
.chal-micro { margin: .35rem 0 0; font-size: .85rem; color: var(--mw-purple); font-weight: 600; }
.chal-billy {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  max-width: 22rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: var(--color-surface, #f7f5fb);
  border: 1px solid var(--color-border, #ddd6eb);
}
.chal-billy-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.45rem;
  background: var(--mw-grad, linear-gradient(135deg,#1e4fd6,#8b2fc9,#e91e8c));
  flex-shrink: 0;
}
.chal-billy-bubble { min-width: 0; }
.chal-billy-bubble strong, .chal-billy strong { display: block; font-size: .8rem; color: var(--mw-purple); }
.chal-billy-bubble p, .chal-billy p { margin: .2rem 0 0; font-size: .92rem; line-height: 1.35; }
.chal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
}
.chal-subnav a {
  padding: .4rem .85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text, #1a1530);
  background: var(--color-surface, #f7f5fb);
  border: 1px solid var(--color-border, #ddd6eb);
  font-size: .88rem;
  font-weight: 600;
}
.chal-subnav a.is-active,
.chal-subnav a:hover {
  color: #fff;
  background: var(--mw-grad);
  border-color: transparent;
}
.chal-me-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  margin-bottom: 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--mw-navy, #141a3a);
}
.chal-me-stats span {
  padding: .3rem .65rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
}
.chal-daily {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow, 0 1px 3px rgba(20,26,58,.08));
}
.chal-daily-emoji {
  width: 72px; height: 72px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 2rem;
  background: var(--mw-grad-soft, linear-gradient(135deg, rgba(30,79,214,.15), rgba(233,30,140,.12)));
  flex-shrink: 0;
}
.chal-daily-label {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--mw-pink, #e91e8c);
}
.chal-daily h2 { margin: .2rem 0 .35rem; font-size: 1.2rem; }
.chal-daily p { margin: 0 0 .5rem; color: var(--muted); }
.chal-meta-line { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .65rem !important; }
.chal-pill {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .15rem .45rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  background: #f0ebf8;
  color: var(--mw-purple);
}
.chal-pill--safe { background: #e6f6ea; color: #1b7a3a; }
.chal-pill--offline { background: #e8f0fe; color: #1e4fd6; }
.chal-cats {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  margin-bottom: .85rem;
  -webkit-overflow-scrolling: touch;
}
.chal-cat {
  flex: 0 0 auto;
  padding: .4rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--color-border);
  white-space: nowrap;
}
.chal-cat.is-active, .chal-cat:hover {
  border-color: transparent;
  color: #fff;
  background: var(--mw-grad);
}
.chal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.1rem;
  align-items: center;
}
.chal-filters input[type="search"],
.chal-filters select,
.chal-create-form input,
.chal-create-form select,
.chal-create-form textarea,
.chal-complete-form input,
.chal-complete-form textarea,
.chal-report select,
.chal-report textarea {
  padding: .45rem .65rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  font: inherit;
}
.chal-filters input[type="search"] { min-width: 160px; flex: 1; }
.chal-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; }
.chal-section-title { margin: .5rem 0 .85rem; font-size: 1.15rem; }
.chal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.chal-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .chal-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,26,58,.12); }
}
.chal-card-cover {
  position: relative;
  height: 110px;
  display: grid;
  place-items: center;
  background: var(--mw-grad);
}
.chal-card-emoji { font-size: 2.4rem; }
.chal-card-cat {
  position: absolute;
  left: .65rem; bottom: .55rem;
  padding: .15rem .45rem;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(255,255,255,.92);
  color: var(--mw-navy);
}
.chal-card-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.chal-card-body h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.chal-card-body > p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.chal-card-meta, .chal-card-foot {
  display: flex; flex-wrap: wrap; gap: .35rem .55rem;
  font-size: .75rem; font-weight: 600; color: var(--mw-navy);
}
.chal-card-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: .35rem .7rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  background: var(--mw-grad);
}
.chal-impact {
  margin-top: 2rem;
  padding: 1.2rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45,138,78,.08), rgba(139,47,201,.08));
  border: 1px solid var(--color-border);
}
.chal-impact h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.chal-impact-list {
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .55rem;
}
.chal-impact-list li {
  padding: .65rem .75rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: .9rem;
}
.chal-flash {
  padding: .65rem .85rem;
  border-radius: 10px;
  background: #e8f0fe;
  color: #1e4fd6;
  font-weight: 600;
  margin-bottom: 1rem;
}
.chal-flash--err { background: #fde8ef; color: #b01040; }
.chal-empty { text-align: center; padding: 2rem 1rem; }
.chal-empty .btn { margin-top: 1rem; }
.chal-detail-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chal-detail-cover {
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: var(--mw-grad);
}
.chal-detail-body { padding: 1.25rem 1.35rem 1.75rem; }
.chal-facts {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.chal-facts li {
  padding: .35rem .65rem;
  border-radius: 8px;
  background: var(--color-surface);
  font-size: .85rem;
  font-weight: 600;
}
.chal-instructions {
  white-space: pre-wrap;
  font-family: inherit;
  background: var(--color-surface);
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  margin: 0 0 1rem;
}
.chal-safety {
  padding: .75rem .9rem;
  border-radius: 10px;
  background: #e6f6ea;
  color: #1b5e30;
  font-size: .92rem;
}
.chal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: flex-start;
  margin: 1.25rem 0;
}
.chal-complete-form {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: min(100%, 420px);
  padding: .85rem;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.chal-complete-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; }
.chal-done-label { font-weight: 700; color: #1b7a3a; }
.chal-back { margin-bottom: .75rem; }
.chal-back a { color: var(--mw-purple); font-weight: 600; text-decoration: none; }
.chal-banner, .chal-success {
  margin-bottom: 1rem;
}
.chal-xp-gain {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mw-pink);
  margin: .25rem 0 !important;
}
.chal-progress {
  height: 10px;
  border-radius: 999px;
  background: #e8e4f0;
  overflow: hidden;
  margin: .4rem 0;
}
.chal-progress span {
  display: block;
  height: 100%;
  background: var(--mw-grad);
}
.chal-report { margin-top: 1.5rem; font-size: .9rem; }
.chal-report form { display: flex; flex-direction: column; gap: .45rem; margin-top: .5rem; max-width: 360px; }
.chal-create-form { display: flex; flex-direction: column; gap: .75rem; max-width: 640px; }
.chal-create-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.chal-create-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.chal-badge-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.chal-badge {
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  text-align: center;
}
.chal-badge span { font-size: 1.8rem; display: block; margin-bottom: .35rem; }
.chal-badge strong { display: block; }
.chal-badge small { color: var(--muted); }
.chal-admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.chal-admin-list > li {
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
}
.chal-admin-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 640px) {
  .chal-daily { flex-direction: column; align-items: flex-start; }
  .chal-hero { padding: 1rem; }
  .chal-detail-cover { height: 120px; font-size: 3rem; }
  .chal-grid { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal-body { margin: 0; min-height: 100vh; background: #f6f4fa; color: var(--text); font-family: var(--font); }
.legal-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--border);
}
.legal-brand { display: flex; align-items: center; gap: 10px; color: var(--mw-navy); font-weight: 700; text-decoration: none; }
.legal-brand img { width: 36px; height: 36px; border-radius: 8px; }
.legal-brand em { font-style: normal; color: var(--mw-purple); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.88rem; }
.legal-nav a { color: var(--mw-purple); font-weight: 600; }
.legal-foot { padding: 28px 22px 40px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.legal-foot a, .legal-cookie-link { color: var(--mw-purple); font-weight: 600; }
.legal-page { max-width: 760px; margin: 32px auto 48px; padding: 0 20px; line-height: 1.55; }
.legal-page h1 { margin: 0 0 8px; color: var(--mw-navy); }
.legal-page h2 { margin: 28px 0 10px; font-size: 1.15rem; color: var(--mw-navy); }
.legal-updated { color: var(--muted); font-size: 0.88rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 12px 0 18px; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; background: #fff; }
.legal-cookie-link {
  border: 0; background: none; padding: 0; font: inherit; cursor: pointer; color: var(--mw-purple); font-weight: 600;
}
.welcome-legal-links { margin-top: 16px; text-align: center; font-size: 0.8rem; color: var(--muted); }
.welcome-legal-links a { color: var(--mw-purple); }
.site-legal-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  padding: 18px 16px 28px; font-size: 0.8rem; color: var(--muted);
}
.site-legal-foot a { color: var(--mw-purple); font-weight: 600; }

/* Register — layout zoals bijlage, kleuren van MyWorld Connect */
.register-wrap--wide { max-width: 640px; padding: 28px 18px 48px; }
.register-card--wide { max-width: none; width: 100%; padding: 28px 32px 24px; border-radius: 16px; }
.register-title { margin: 0 0 8px; font-size: 1.55rem; color: var(--mw-navy); font-weight: 800; }
.register-intro { margin: 0 0 18px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; font-weight: 500; }
.register-block { display: flex; flex-direction: column; gap: 8px; }
.register-label { font-size: 0.95rem; font-weight: 700; color: var(--text); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.register-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.register-row--3 { grid-template-columns: 1fr 1.2fr 1fr; }
.register-card--wide input,
.register-card--wide select {
  width: 100%;
  border: 1px solid #ccd0d5;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
}
.register-card--wide input:focus,
.register-card--wide select:focus {
  outline: 2px solid rgba(139, 47, 201, 0.35);
  border-color: var(--mw-purple);
}
.register-help {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--mw-purple); background: #fff;
  color: var(--mw-purple); font-size: 0.72rem; font-weight: 800;
  cursor: help; line-height: 1; padding: 0;
}
.register-help-text { margin: 0; font-size: 0.78rem; color: var(--muted); font-weight: 500; display: none; flex: 1 0 100%; }
.register-help:hover + .register-help-text,
.register-help:focus + .register-help-text { display: block; }
.register-legal-note { margin: 0; font-size: 0.78rem; color: #65676b; font-weight: 400; line-height: 1.45; }
.register-legal-note a { color: var(--mw-purple); font-weight: 600; }
.register-send { border-radius: 999px; padding: 13px 16px; font-weight: 700; margin-top: 6px; }
.register-have-account {
  margin-top: 10px; border-radius: 999px; padding: 12px 16px; font-weight: 700;
  background: #efe8f8; border: 1px solid #e0d4f0; color: var(--mw-navy);
}
.register-have-account:hover { text-decoration: none; filter: brightness(0.98); }

/* Cookie banner — zelfde indeling, knoppen in sitekleuren */
.mw-cookie {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(20, 26, 58, 0.55);
  display: grid; place-items: center; padding: 16px;
}
.mw-cookie[hidden] { display: none !important; }
.mw-cookie-dialog {
  width: min(720px, 100%);
  background: #1a1530;
  color: #f3f3f3;
  border-radius: 10px;
  padding: 18px 20px 16px;
  box-shadow: 0 24px 60px rgba(20, 26, 58, .45);
}
.mw-cookie-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mw-cookie-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mw-cookie-brand img { width: 28px; height: 28px; border-radius: 6px; }
.mw-cookie-tabs { display: flex; gap: 16px; }
.mw-cookie-tabs button {
  background: none; border: 0; color: #cfcfcf; font: inherit; font-weight: 700; padding: 6px 0; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.mw-cookie-tabs button.is-active { color: #c084fc; border-bottom-color: #c084fc; }
.mw-cookie-pane h2 { margin: 16px 0 8px; font-size: 1.35rem; }
.mw-cookie-pane p, .mw-cookie-note { color: #d8d8d8; font-size: 0.92rem; line-height: 1.5; }
.mw-cookie-pane a { color: #c084fc; }
.mw-cookie-cats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 8px;
}
.mw-cookie-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #120e22; border-radius: 6px; padding: 10px 12px; font-weight: 700; font-size: 0.85rem;
}
.mw-cookie-cat input { accent-color: #8b2fc9; width: 18px; height: 18px; }
.mw-cookie-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 10px 0; }
.mw-cookie-table th, .mw-cookie-table td { border-bottom: 1px solid #333; padding: 8px 6px; text-align: left; }
.mw-cookie-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.mw-cookie-btn {
  border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer;
}
.mw-cookie-btn-outline { background: transparent; color: #fff; border: 1px solid #c084fc; }
.mw-cookie-btn-solid { background: var(--mw-grad); color: #fff; border: 0; }
@media (max-width: 700px) {
  .mw-cookie-cats { grid-template-columns: 1fr 1fr; }
  .legal-top { flex-direction: column; align-items: flex-start; }
  .register-row, .register-row--3 { grid-template-columns: 1fr; }
  .register-card--wide { padding: 22px 18px; }
}
