@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  /* Header/footer blijven het diepe indigo, de rest van de app is licht. */
  --header-bg: #14131F;
  --header-ink: #F3EFE4;
  --page-bg: #EDEBF2;
  --panel-bg: #FFFFFF;
  --ink: #1D1B29;
  --ink-soft: #6B6879;
  --thread: #F68D1A;
  --thread-soft: #B5691A;
  --line: rgba(29, 27, 41, 0.10);
  --line-soft: rgba(29, 27, 41, 0.06);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--thread); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

.centeren { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.paneel {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}
.authpaneel { width: 100%; max-width: 400px; }
.authpaneel h1 { font-size: 1.7rem; margin: 0 0 6px; }
.authpaneel .stil { color: var(--ink-soft); font-size: .9rem; margin: 0 0 22px; }

label { display: block; font-size: .82rem; font-weight: 500; margin: 14px 0 5px; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%;
  padding: 10px 12px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: .92rem;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { border: 1px solid var(--thread); }
textarea { resize: vertical; }

button {
  cursor: pointer;
  border: 1px solid var(--thread-soft);
  border-radius: 2px;
  background: transparent;
  color: var(--thread);
  font-size: .88rem;
  font-weight: 500;
  font-family: inherit;
  padding: 9px 18px;
  transition: background .15s ease, color .15s ease;
}
button:hover { background: var(--thread); color: var(--ink); }
button:disabled { opacity: .45; cursor: default; background: none; color: var(--thread); }
.btn-primair { background: var(--thread); color: var(--ink); width: 100%; margin-top: 20px; padding: 11px; font-weight: 600; }
.btn-primair:hover { background: #FF9F3D; }
.btn-klein { padding: 5px 12px; font-size: .78rem; }
.btn-vlak { border-color: transparent; color: var(--ink-soft); }
.btn-vlak:hover { background: var(--line-soft); color: var(--ink); }

.fout { color: #C0392B; font-size: .84rem; margin-top: 10px; min-height: 1em; }

/* ---- app shell, header blijft donker, enige uitzondering op het lichte thema ---- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(243,239,228,0.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.topbar .logo { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--header-ink); }
.topbar nav { display: flex; align-items: center; gap: 26px; }
.topbar nav a {
  color: var(--header-ink); opacity: .68; font-size: .88rem;
  border-bottom: 1px solid transparent; padding-bottom: 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.topbar nav a:hover { opacity: 1; text-decoration: none; }
.topbar nav a[aria-selected="true"] { color: var(--thread); opacity: 1; border-color: var(--thread); }
.tabicoon { width: 19px; height: 19px; flex-shrink: 0; }
.topbar-rechts { display: flex; align-items: center; gap: 14px; }
.topbar .btn-vlak { color: var(--header-ink); opacity: .8; }
.topbar .btn-vlak:hover { opacity: 1; background: rgba(243,239,228,0.08); color: var(--header-ink); }
@media (max-width: 760px) { .topbar nav { display: none; } }
.meldingbel { position: relative; }
.taalkiezer { display: flex; gap: 4px; }
.taalknop {
  border: 1px solid transparent; background: transparent; color: var(--ink-soft);
  font-size: .72rem; font-weight: 600; padding: 4px 7px; border-radius: 2px;
}
.taalknop:hover { color: var(--ink); background: var(--line-soft); }
.taalknop.actief { color: var(--thread); border-color: var(--thread-soft); }
.topbar .taalknop { color: var(--header-ink); opacity: .68; }
.topbar .taalknop:hover { opacity: 1; background: rgba(243,239,228,0.08); color: var(--header-ink); }
.topbar .taalknop.actief { opacity: 1; color: var(--thread); border-color: var(--thread-soft); }

.skeletonscherm { text-align: center; padding: 70px 20px; }
.skeletonscherm .merk-teken {
  width: 46px; height: 46px; margin: 0 auto 22px; border-radius: 50%;
  border: 1px solid var(--thread-soft); display: flex; align-items: center; justify-content: center;
}
.skeletonscherm .merk-teken span { width: 6px; height: 6px; border-radius: 50%; background: var(--thread); }
.skeletonscherm h2 { font-size: 1.4rem; margin-bottom: 10px; }
.skeletonscherm p { color: var(--ink-soft); font-size: .92rem; max-width: 40ch; margin: 0 auto; }

.meldingbadge {
  position: absolute; top: -6px; right: -10px;
  background: var(--thread); color: var(--ink);
  font-size: .68rem; font-weight: 700; border-radius: 999px;
  min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.meldingbadge[hidden] { display: none; }

.layout, #inhoud { max-width: 760px; margin: 0 auto; padding: 30px 24px 60px; }
/* Home is de enige route met een bredere, drie-koloms container; die krijgt
   de volle breedte in plaats van #inhoud's standaard smalle kolom. */
#inhoud:has(> .home-layout) { max-width: none; padding: 0; margin: 0; }
.sectielabel { font-size: .8rem; color: var(--thread); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.sectietitel { font-size: 1.5rem; margin: 0 0 22px; }

.tabs { display: flex; gap: 2px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs button {
  border: none; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; color: var(--ink-soft); padding: 10px 4px; margin-right: 22px; font-size: .88rem;
}
.tabs button:hover { background: none; color: var(--ink); }
.tabs button.actief { color: var(--thread); border-color: var(--thread); }

.profielkaart { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.profielkaart:first-child { border-top: none; padding-top: 0; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--panel-bg); border: 1px solid var(--thread-soft);
  color: var(--thread); display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .95rem; flex-shrink: 0; font-family: var(--serif);
}
.profielkaart .info { flex: 1; }
.profielkaart .naam { font-weight: 600; font-size: 1rem; }
.profielkaart .functie { color: var(--ink-soft); font-size: .85rem; margin-top: 1px; }
.profielkaart .bio { color: var(--ink-soft); font-size: .84rem; margin-top: 6px; max-width: 46ch; }
.profielkaart .acties { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.profiel-acties { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; align-items: center; }

/* ---- CV-velden: werkervaring/opleiding/vaardigheden/talen/CV-PDF ---- */
.cv-sectie { margin-top: 16px; max-width: 460px; }
.cv-sectie .paneeltitel { margin: 0 0 12px; }
.cv-item { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.cv-item:first-child { border-top: none; padding-top: 0; }
.cv-item-kop { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cv-item-periode { font-size: .78rem; color: var(--ink-soft); }
.cv-item-omschrijving { font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }
.cv-item .acties { display: flex; gap: 8px; margin-top: 8px; }
.cv-form { margin-top: 12px; padding: 20px; }
.cv-form .rij { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.cv-downloadrij { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cv-uploadrij { margin-top: 12px; }

/* ---- Vacatures: master-detail (lijst links, volledige weergave rechts) ---- */
.vacature-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.vacature-lijst-kolom { max-height: 74vh; overflow-y: auto; padding-right: 4px; }
.vacature-lijstitem {
  display: block; width: 100%; text-align: left; margin-bottom: 8px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel-bg); cursor: pointer;
}
.vacature-lijstitem:hover { background: var(--line-soft); }
.vacature-lijstitem.actief { border-color: var(--thread); }
.vacature-lijstitem .titel { font-weight: 600; font-size: .9rem; color: var(--ink); }
.vacature-lijstitem .meta { font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }
.vacature-detail-terug { display: none; margin-bottom: 12px; }
.vacature-detailkaart { max-width: 720px; }
.vacature-detailkaart .kop { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.vacature-blokken { margin-top: 20px; }
.vacature-blok-weergave { margin-bottom: 22px; }
.vacature-blok-weergave h3 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.vacature-blok-weergave p { font-size: .92rem; color: var(--ink); line-height: 1.55; margin: 0; }
.vacature-blok-weergave ul { margin: 0; padding-left: 20px; }
.vacature-blok-weergave li { font-size: .92rem; color: var(--ink); line-height: 1.55; margin-bottom: 4px; }
.vacature-detailkaart .acties { display: flex; gap: 10px; margin-top: 24px; }
@media (max-width: 760px) {
  .vacature-layout { grid-template-columns: 1fr; }
  .vacature-layout:not(.toon-detail) .vacature-detail-kolom { display: none; }
  .vacature-layout.toon-detail .vacature-lijst-kolom { display: none; }
  .vacature-layout.toon-detail .vacature-detail-terug { display: inline-block; }
}

/* ---- Vacature-blokeditor: vrije titel + tekst/opsomming per blok ---- */
.vacature-snelstart { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.vacature-blok-editor { border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin-bottom: 10px; background: var(--page-bg); }
.vacature-blok-editor-kop { display: flex; gap: 8px; margin-bottom: 8px; }
.vacature-blok-editor-kop .blok-titel-invoer { flex: 1; }
.vacature-blok-editor-kop .blok-type-invoer { max-width: 160px; }
.vacature-blok-editor textarea { background: var(--panel-bg); }
.vacature-blok-editor-acties { display: flex; gap: 6px; margin-top: 8px; }

.tagbewerker { border: 1px solid var(--line); border-radius: 2px; padding: 8px 10px; background: var(--page-bg); }
.tagbewerker input { border: none; padding: 4px 0; background: transparent; }
.tagbewerker input:focus { border: none; }
.tagchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tagchips:not(:empty) { margin-bottom: 6px; }
.tagchip, .tagchip-vast {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--line-soft); color: var(--ink); border-radius: 2px;
  padding: 4px 8px; font-size: .8rem;
}
.tagchip-x { border: none; padding: 0; background: none; font-size: 1rem; line-height: 1; color: var(--ink-soft); }
.tagchip-x:hover { background: none; color: var(--ink); }
.tagsweergave { display: flex; flex-wrap: wrap; gap: 6px; }

.profiel-juridisch { display: flex; gap: 14px; margin-top: 24px; font-size: .78rem; }
.profiel-juridisch a { color: var(--ink-soft); }
.profiel-juridisch a:hover { color: var(--thread); }

.statuslabel { font-size: .78rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 2px; padding: 5px 10px; display: inline-block; }
.statuslabel.verbonden { color: var(--thread); border-color: var(--thread-soft); }

.leegstaat { text-align: center; color: var(--ink-soft); padding: 40px 0; font-size: .9rem; }

.eigenprofielkop { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.eigenprofielkop .avatar { width: 68px; height: 68px; font-size: 1.5rem; }
.eigenprofielkop h1 { font-size: 1.6rem; margin-bottom: 2px; }
.eigenprofielkop .functie { color: var(--ink-soft); font-size: .92rem; }
.eigenprofielkop .bio { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); max-width: 52ch; }
.eigenprofielkop .netwerkaantal { margin-top: 12px; font-size: .84rem; color: var(--ink-soft); }
.eigenprofielkop .netwerkaantal b { color: var(--ink); }

.meldingrij { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.meldingrij:first-child { border-top: none; }
.meldingrij.ongelezen { position: relative; }
.meldingrij.ongelezen::before {
  content: ""; position: absolute; left: -14px; top: 20px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--thread);
}
.meldingrij .tekst { font-size: .88rem; }
.meldingrij .tijd { font-size: .76rem; color: var(--ink-soft); margin-top: 2px; }
.meldingrij-klikbaar { text-decoration: none; color: inherit; cursor: pointer; }
.meldingrij-klikbaar:hover { text-decoration: none; background: var(--panel-bg-hover, rgba(0, 0, 0, .03)); }

.postcomposer { margin-bottom: 30px; }
.postcomposer textarea { min-height: 70px; }
.postcomposer .rij { display: flex; justify-content: flex-end; margin-top: 10px; }

.postkaart { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.postkaart:first-child { border-top: none; padding-top: 0; }
.postkaart .info { flex: 1; min-width: 0; }
.postkaart .kop { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.postkaart .naam { font-weight: 600; font-size: .95rem; }
.postkaart .tijd { font-size: .76rem; color: var(--ink-soft); }
.postkaart .tekst { font-size: .92rem; margin: 6px 0 0; white-space: pre-wrap; line-height: 1.5; }
.postkaart .acties { display: flex; gap: 10px; margin-top: 10px; }
.postkaart .bewerkform textarea { margin-top: 6px; }
.postkaart .bewerkform .rij { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* ---- Berichten: gesprekkenlijst ---- */
.gesprekrij {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 0;
  border-top: 1px solid var(--line-soft); cursor: pointer;
}
.gesprekrij:first-child { border-top: none; padding-top: 0; }
.gesprekrij:hover .gesprekrij-naam { color: var(--thread); }
.gesprekrij-info { flex: 1; min-width: 0; }
.gesprekrij-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gesprekrij-naam { font-weight: 600; font-size: .95rem; }
.gesprekrij-tijd { font-size: .76rem; color: var(--ink-soft); flex-shrink: 0; }
.gesprekrij-laatste {
  font-size: .85rem; color: var(--ink-soft); margin: 3px 0 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gesprekrij.ongelezen .gesprekrij-naam { color: var(--ink); }
.gesprekrij.ongelezen .gesprekrij-laatste { color: var(--ink); font-weight: 500; }
.gesprek-badge {
  background: var(--thread); color: var(--ink); font-size: .68rem; font-weight: 700;
  border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center;
  justify-content: center; padding: 0 5px; flex-shrink: 0;
}

/* ---- Berichten: chatweergave ---- */
.chatkop { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.chatkop .terug { color: var(--ink-soft); font-size: .85rem; }
.chatkop .naam { font-weight: 600; font-size: 1.05rem; }
.chatberichten { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.chatbubbel-rij { display: flex; }
.chatbubbel-rij.vanmij { justify-content: flex-end; }
.chatbubbel { max-width: 70%; }
.chatbubbel .tekst {
  background: var(--page-bg); border: 1px solid var(--line); border-radius: 2px;
  padding: 9px 13px; font-size: .9rem; white-space: pre-wrap; line-height: 1.45;
}
.chatbubbel-rij.vanmij .tekst { background: var(--panel-bg); border-color: var(--thread-soft); }
.chatbubbel .meta {
  display: flex; gap: 8px; font-size: .7rem; color: var(--ink-soft); margin-top: 3px; padding: 0 2px;
}
.chatbubbel-rij.vanmij .meta { justify-content: flex-end; }
.chatbubbel .meta button { background: none; border: none; padding: 0; color: var(--ink-soft); font-size: .7rem; }
.chatbubbel .meta button:hover { color: var(--thread); background: none; }
.chatcomposer { display: flex; gap: 10px; align-items: flex-end; position: relative; }
.chatcomposer textarea { flex: 1; min-height: 44px; max-height: 120px; }

/* ---- Sollicitatieflow: apart gelabeld, niet vermengd met gewone berichten ---- */
.sollicitatie-label {
  display: inline-block; font-size: .72rem; font-weight: 600; color: var(--thread);
  border: 1px solid var(--thread-soft); border-radius: 2px; padding: 2px 7px; margin-bottom: 4px;
}
.gesprekrij .sollicitatie-label { margin: 2px 0; }
.chatbubbel.sollicitatie-bubbel { max-width: 85%; }
.sollicitatie-motivatie { margin-top: 8px; }
.sollicitatie-motivatie-label { font-size: .72rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 2px; }
.sollicitatie-motivatie .tekst { background: var(--page-bg); }
.chatbubbel.sollicitatie-bubbel > .btn-vlak { margin-top: 8px; }

/* ---- Home: driekoloms-layout ---- */
.home-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  align-items: start;
}
.home-col-links, .home-col-rechts { position: sticky; top: 92px; }
.home-col-midden { min-width: 0; }
@media (max-width: 980px) {
  /* Stapelen op smal scherm: feed eerst (prioriteit), dan eigen profiel, dan meldingen. */
  .home-layout { grid-template-columns: 1fr; max-width: 640px; }
  .home-col-links, .home-col-rechts { position: static; margin-bottom: 24px; }
  .home-col-midden { order: 1; }
  .home-col-links { order: 2; }
  .home-col-rechts { order: 3; }
}

.eigenprofielpaneel { text-align: center; padding: 26px 20px; }
.eigenprofielpaneel .avatar { width: 64px; height: 64px; font-size: 1.4rem; margin: 0 auto 12px; }
.eigenprofielpaneel .naam { font-weight: 600; font-size: 1.05rem; }
.eigenprofielpaneel .functie { color: var(--ink-soft); font-size: .84rem; margin-top: 2px; }
.eigenprofielpaneel .bio {
  text-align: left; color: var(--ink-soft); font-size: .82rem; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.eigenprofielpaneel .netwerkaantal {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--ink-soft);
}
.eigenprofielpaneel .netwerkaantal b { color: var(--ink); }

.meldingenpaneel { padding: 22px 20px; }
.meldingenpaneel .paneeltitel { font-size: .92rem; font-weight: 600; margin-bottom: 4px; }
.meldingenpaneel .meldingrij { padding: 12px 0; }
.meldingenpaneel .meldingrij .tekst { font-size: .82rem; }

/* ---- Floating berichten-widget: een balk die verticaal openvouwt ----
   Geen los zwevend paneel: de smalle balk blijft onderaan vastzitten
   (bottom:0) en het lichaam vouwt daarboven open, zelfde breedte in
   beide staten. */
.chatwidget {
  position: fixed; right: 24px; bottom: 0; z-index: 50;
  width: 300px; display: flex; flex-direction: column;
}
.chatwidget[hidden] { display: none; }

.chatwidget-lichaam {
  max-height: 0; overflow: hidden;
  background: var(--panel-bg); border: 1px solid var(--line); border-bottom: none;
  border-radius: 8px 8px 0 0;
  display: flex; flex-direction: column;
  transition: max-height .18s ease;
}
.chatwidget-lichaam.open { max-height: 420px; }

.chatwidget-balk {
  display: flex; align-items: center; gap: 10px; position: relative;
  background: var(--header-bg); color: var(--header-ink);
  border: none; border-radius: 8px 8px 0 0;
  padding: 11px 16px; font-size: .85rem; font-weight: 600;
  box-shadow: 0 -1px 10px rgba(29,27,41,0.15);
}
.chatwidget-balk:hover { background: #1D1C30; color: var(--header-ink); }
.chatwidget-balklabel { flex: 1; text-align: left; }
.chatwidget-balk .meldingbadge { position: static; }
.chatwidget-pijl { display: inline-block; font-size: .8rem; transition: transform .15s ease; }
.chatwidget-balk[aria-expanded="true"] .chatwidget-pijl { transform: rotate(180deg); }

.chatwidget-binnenkop {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: .88rem;
}
.chatwidget-binnenkop[hidden] { display: none; }
.chatwidget-binnenkop span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatwidget-terugknop {
  background: none; border: none; color: var(--ink-soft); padding: 2px 6px; font-size: 1rem;
}
.chatwidget-terugknop:hover { background: var(--line-soft); color: var(--ink); }

.chatwidget-inhoud { overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; }

.chatwidget-zoekrij { padding: 10px 14px 6px; flex-shrink: 0; }
.chatwidget-zoekrij input { font-size: .84rem; padding: 7px 10px; }

.chatwidget-lijst { padding: 4px 14px 10px; overflow-y: auto; }
.chatwidget-lijst .gesprekrij { padding: 12px 0; cursor: pointer; }
.chatwidget-lijst .gesprekrij .avatar { width: 34px; height: 34px; font-size: .78rem; }
.chatwidget-lijst .gesprekrij-naam { font-size: .86rem; }
.chatwidget-lijst .gesprekrij-laatste { font-size: .78rem; }
.chatwidget-lijst .leegstaat { padding: 24px 10px; font-size: .82rem; }

.chatwidget-gesprek { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chatwidget-berichten { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.chatwidget-berichten .chatbubbel { max-width: 82%; }
.chatwidget-berichten .chatbubbel .tekst { font-size: .84rem; padding: 7px 11px; }
.chatwidget-composer { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line-soft); flex-shrink: 0; position: relative; }
.chatwidget-composer textarea {
  flex: 1; min-height: 36px; max-height: 80px; padding: 7px 10px; font-size: .84rem; resize: none;
}
.chatwidget-composer button { padding: 7px 14px; font-size: .8rem; }

@media (max-width: 480px) {
  .chatwidget { right: 12px; width: calc(100vw - 24px); }
}

/* ---- Onderdeel 3: nieuwe-post-modal ---- */
.postcomposer-opener {
  width: 100%; text-align: left; background: var(--page-bg); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; font-weight: 400;
}
.postcomposer-opener:hover { background: var(--page-bg); color: var(--ink-soft); border-color: var(--thread-soft); }

.modaloverlay {
  position: fixed; inset: 0; background: rgba(29,27,41,0.5); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modaloverlay[hidden] { display: none; }
.modalpaneel {
  background: var(--panel-bg); border-radius: 8px; width: 100%; max-width: 480px;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.modalkop {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0;
}
.modalkop h2 { font-size: 1.15rem; }
.modalkop .sluitknop { background: none; border: none; color: var(--ink-soft); font-size: 1.2rem; padding: 2px 8px; }
.modalkop .sluitknop:hover { background: var(--line-soft); color: var(--ink); }
.modalinhoud { padding: 18px 20px; overflow-y: auto; flex: 1; }
.rapport-reden { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 400; color: var(--ink); margin: 0 0 10px; }
.rapport-reden input { width: auto; }

.composer-rij { position: relative; }
.composer-acties { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; position: relative; }
.composer-acties .rechts { margin-left: auto; }

.mention-dropdown {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 5;
  background: var(--panel-bg); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(29,27,41,0.14); overflow: hidden;
}
.mention-dropdown[hidden] { display: none; }
.mention-optie { padding: 8px 14px; font-size: .88rem; cursor: pointer; }
.mention-optie:hover { background: var(--page-bg); color: var(--thread); }

.emoji-popover {
  position: absolute; bottom: 100%; left: 0; margin-bottom: 6px; z-index: 5;
  background: var(--panel-bg); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(29,27,41,0.14);
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; width: 240px;
}
.emoji-popover[hidden] { display: none; }
.emoji-optie {
  border: none; background: none; font-size: 1.1rem; padding: 5px; border-radius: 4px; line-height: 1;
}
.emoji-optie:hover { background: var(--page-bg); }

.postmodal-foto-voorbeeld { position: relative; margin-top: 10px; display: inline-block; }
.postmodal-foto-voorbeeld img { max-width: 100%; max-height: 220px; border-radius: 8px; display: block; }
.postmodal-foto-voorbeeld button {
  position: absolute; top: 6px; right: 6px; background: rgba(29,27,41,0.7); color: var(--header-ink);
  border: none; padding: 3px 9px; font-size: .72rem; border-radius: 999px;
}
.postmodal-foto-voorbeeld button:hover { background: rgba(29,27,41,0.9); color: var(--header-ink); }

.linkkaart {
  display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 8px;
}
.linkkaart img { width: 100px; height: 100px; object-fit: cover; flex-shrink: 0; }
.linkkaart-info { padding: 10px 12px; min-width: 0; flex: 1; }
.linkkaart-titel { font-weight: 600; font-size: .88rem; }
.linkkaart-omschrijving { font-size: .8rem; color: var(--ink-soft); margin-top: 3px; }
.linkkaart-url { font-size: .76rem; color: var(--ink-soft); margin-top: 4px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkkaart-verwijderen { margin-top: 6px; }

.post-vermeldingen { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.post-vermeldingen b { color: var(--ink); font-weight: 500; }

.deelknop { margin-left: 6px; }

/* ---- Groepen (sectie binnen Mijn netwerk) ---- */
.paneeltitel { font-weight: 600; margin: 0 0 12px; }
.stil { color: var(--ink-soft); font-size: .88rem; margin: 6px 0 0; }
