/* she connect — by editah.
   Monochroom, editorial: zwart-witfotografie, neutrale grijzen en één kleur.
   Terracotta is het enige accent: knoppen, eyebrows en het editah.-woordmerk. */

:root {
  --bg: #ffffff;
  --surface: #f3f3f2;
  --surface-strong: #e9e9e7;
  --text: #111111;
  --text-soft: #4a4a4a;
  --muted: #8a8a8a;
  --border: #e2e2e0;

  --accent: #b5714b;
  --accent-dark: #92583a;
  --accent-soft: #f4e2d3;
  /* Warm gebroken wit, afgeleid van het accent: voor verhaalkaarten in de community */
  --surface-warm: #faf5f0;
  --border-warm: #ecdfd3;

  --dark-1: #2a2a2a;
  --dark-2: #0e0e0e;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shell-max: 480px;
  --gutter: 22px;
  --nav-space: 110px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ebebea;
  color: var(--text);
  font-family: "Fahkwang", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fahkwang", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

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

button, input, textarea, select {
  font-family: inherit;
}

.app-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
}

.screen {
  flex: 1;
  padding: 28px var(--gutter) var(--nav-space);
}

.screen--no-nav {
  padding-bottom: 32px;
}

/* editah. wordmark badge — small, present on every screen */
.editah-badge {
  position: absolute;
  top: 14px;
  right: calc(var(--gutter) - 4px);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
}
.editah-badge strong {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- App header (masthead) — op elk scherm met navigatie ---------- */
.app-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: -28px calc(-1 * var(--gutter)) 24px;
  padding: 18px var(--gutter) 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.app-header__brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--text);
}
.app-header__by {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  white-space: nowrap;
}
.app-header__by strong {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.page-title {
  font-size: clamp(26px, 8vw, 34px);
  margin-top: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-social {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-small {
  width: auto;
  padding: 10px 18px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Form fields ---------- */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 16px;
  color: var(--text);
}
.field textarea {
  resize: vertical;
}
.field .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}
.field .checkbox-row input {
  margin-top: 3px;
}
.field .errorlist {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
.divider-row::before,
.divider-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  z-index: 30;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  flex: 1;
}
.nav-item svg {
  width: 24px;
  height: 24px;
}
.nav-item.active {
  color: var(--accent);
}

/* ---------- Vandaag ---------- */
.greeting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 22px;
}
.streak-badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-top: 8px;
}

.quote-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.35) 0%, rgba(14, 14, 14, 0.92) 85%),
    repeating-linear-gradient(100deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 14px),
    linear-gradient(160deg, var(--dark-1), var(--dark-2));
  overflow: hidden;
}
.quote-card .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}
.quote-card blockquote {
  margin: 10px 0 0;
  font-size: clamp(18px, 5.4vw, 22px);
  line-height: 1.4;
  font-weight: 500;
}
.save-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.save-btn.is-saved {
  background: var(--accent);
}
.save-btn svg {
  width: 18px;
  height: 18px;
}

.task-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 18px;
}
.task-card p {
  font-size: clamp(16px, 4.8vw, 19px);
  margin: 10px 0 20px;
}
.task-card .btn-dark[disabled] {
  background: #bdbdbb;
  opacity: 1;
}

.closing-line {
  text-align: center;
  font-style: italic;
  color: var(--text-soft);
  margin-top: 26px;
  font-size: 15px;
}

/* ---------- Community ---------- */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--text);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}

.pill-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pill-row::-webkit-scrollbar {
  display: none;
}
.pill {
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pill.sort-active {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-dark);
}
.pill.category-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.pill svg {
  width: 14px;
  height: 14px;
}

.post-list {
  margin-top: 16px;
}
.post {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.post-author {
  font-weight: 600;
  font-size: 15px;
}
.post-time {
  font-size: 13px;
  color: var(--muted);
}
.post-tag {
  display: inline-block;
  margin: 12px 0 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.post-body {
  font-size: 16px;
  color: var(--text);
  white-space: pre-wrap;
}
.post-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.post-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  padding: 0;
  cursor: pointer;
}
.post-action svg {
  width: 19px;
  height: 19px;
}
.post-action.liked {
  color: var(--accent);
}

/* Verhaal als kaart: onderscheidt verhalen van de vlakke reactielijst */
.post-card {
  background: var(--surface-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
}
.post-card + .post-card {
  margin-top: 14px;
}
.post-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-card__head .post-header {
  flex: 1;
  min-width: 0;
}
.post-card .post-tag {
  margin: 0;
  flex-shrink: 0;
  font-size: 12px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--border-warm);
  color: var(--text-soft);
}
.post-card .post-body {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.5;
}
.post-card .post-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-warm);
}
.post-card .reaction {
  background: #fff;
  border-color: var(--border-warm);
}
.post-card .reaction.is-empty {
  background: transparent;
}
.post-card .reaction.is-mine {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Detailpagina: het verhaal als donkere hero-kaart, in de stijl van de quote van de dag */
.post-card--hero {
  position: relative;
  color: #fff;
  border: none;
  padding: 26px 24px 20px;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.35) 0%, rgba(14, 14, 14, 0.92) 85%),
    repeating-linear-gradient(100deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 14px),
    linear-gradient(160deg, var(--dark-1), var(--dark-2));
}
.post-card--hero .post-header {
  color: #fff;
}
.post-card--hero .post-time {
  color: rgba(255, 255, 255, 0.6);
}
.post-card--hero .post-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
  color: #fff;
}
.post-card--hero .post-body {
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 500;
  color: #fff;
}
.post-card--hero .post-actions {
  border-top-color: rgba(255, 255, 255, 0.14);
}
.post-card--hero .post-action {
  color: rgba(255, 255, 255, 0.7);
}
.post-card--hero .post-action.liked {
  color: var(--accent-soft);
}
.post-card--hero .reaction {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.post-card--hero .reaction.is-empty {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}
.post-card--hero .reaction.is-mine {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (hover: hover) {
  .post-card--hero .reaction:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
  }
}

/* Reacties onder een verhaal: geneste, inklapbare gesprekken */
.comments-title {
  margin: 24px 0 6px;
  font-size: 16px;
}
.comments-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}
.comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.avatar--small {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.post-author--small {
  font-size: 14px;
}
.comment__body {
  margin-top: 8px;
  font-size: 15px;
  white-space: pre-wrap;
}
.comment__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 10px;
}
.comment__actions form {
  margin: 0;
}
.reply-box summary,
.comment-thread > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.reply-box summary::-webkit-details-marker,
.comment-thread > summary::-webkit-details-marker {
  display: none;
}
.reply-box[open] {
  flex: 1 1 100%;
}
.reply-box[open] > summary {
  color: var(--accent);
}
.reply-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.reply-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
}
.comment-thread {
  margin-top: 6px;
}
.comment-thread > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
}
.comment-thread > summary::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--border);
}
.comment-thread[open] > summary .when-closed,
.comment-thread:not([open]) > summary .when-open {
  display: none;
}
.comment-replies {
  margin-top: 2px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.comment-replies .comment {
  border-bottom: none;
  padding: 12px 0 4px;
}
/* Dieper dan twee niveaus niet verder inspringen: smalle schermen */
.comment-replies .comment-replies .comment-replies {
  padding-left: 0;
  border-left: none;
}
.comment-form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.comment-form .field {
  flex: 1;
  margin-bottom: 0;
}

/* Emoji-reacties (drie vaste opties, WhatsApp-achtig) */
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.reaction-row form {
  margin: 0;
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.reaction__emoji {
  font-size: 17px;
  line-height: 1;
}
.reaction.is-empty {
  background: transparent;
  color: var(--muted);
}
.reaction.is-mine {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.reaction:active {
  transform: scale(0.94);
}
@media (hover: hover) {
  .reaction:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.fab {
  position: fixed;
  right: max(20px, calc((100vw - var(--shell-max)) / 2 + 20px));
  bottom: 96px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(181, 113, 75, 0.4);
  z-index: 25;
  border: none;
}
.fab svg {
  width: 26px;
  height: 26px;
}

/* ---------- Profiel ---------- */
.profile-header {
  text-align: center;
  margin-top: 6px;
}
.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--dark-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-name {
  font-size: 26px;
}
.profile-email {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0;
}
.stat-tile {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 8px;
  text-align: center;
}
.stat-tile .stat-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent-dark);
}
.stat-tile .stat-label {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
}

.tab-row {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 5px;
  margin-bottom: 18px;
}
.tab-row a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.tab-row a.active {
  background: var(--text);
  color: #fff;
}

.journal-entry {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.journal-entry time {
  font-size: 12px;
  color: var(--muted);
}
.journal-entry p {
  margin-top: 6px;
  white-space: pre-wrap;
}

.invite-link-box {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 14px;
  word-break: break-all;
  color: var(--accent-dark);
  margin: 10px 0 16px;
}

/* ---------- Login / Intro (zwart-witfotografie, terracotta titel) ---------- */
.auth-screen {
  padding-top: 44px;
}
.auth-logo {
  margin: 34px 0 44px;
}
.auth-logo img {
  display: block;
  width: 200px;
  max-width: 60%;
  height: auto;
}
.auth-eyebrow {
  color: var(--accent);
}
.auth-title {
  font-size: clamp(26px, 7.5vw, 32px);
  margin: 8px 0 8px;
}
.auth-subtitle {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 30px;
}

.intro-photo {
  border-radius: var(--radius-lg);
  height: 46vh;
  min-height: 300px;
  max-height: 420px;
  background-color: var(--dark-2);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: grayscale(1) contrast(1.08);
  position: relative;
  overflow: hidden;
}
.intro-photo--1 { background-image: url("../img/intro-dancers.d26eaeb6e0e6.jpg"); background-position: center 40%; }
.intro-photo--2 { background-image: url("../img/intro-coat.6538d2a9af44.jpg"); background-position: 60% 20%; }
.intro-photo--3 { background-image: url("../img/intro-sketches.4aa152b59afc.jpg"); background-position: center 30%; }
.intro-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.intro-carousel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.intro-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.intro-track--photos {
  flex-shrink: 0;
}
.intro-track--texts {
  flex: 1;
  min-height: 0;
}
.intro-cell {
  flex: 0 0 100%;
  min-width: 0;
}
.intro-text {
  padding: 8px 0 24px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.intro-text::-webkit-scrollbar {
  display: none;
}
.intro-text[aria-hidden="true"] {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.intro-text[aria-hidden="false"] {
  opacity: 1;
  transition: opacity 0.35s ease 0.15s;
}
.intro-dots {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 14px;
}
.intro-dot {
  width: 22px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--border);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.intro-dot.active {
  background: var(--accent);
  width: 34px;
}
@media (prefers-reduced-motion: reduce) {
  .intro-track, .intro-dot, .intro-text { transition: none; }
}
.intro-screen {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  overflow: hidden;
}
.intro-screen form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.intro-screen .top-row {
  flex-shrink: 0;
}
.intro-screen .intro-photo {
  height: clamp(170px, 36dvh, 400px);
  min-height: 0;
  max-height: none;
}
.intro-footer {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 max(18px, env(safe-area-inset-bottom));
  background: var(--bg);
}
.intro-footer::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  top: -36px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--bg) 100%);
  pointer-events: none;
}
.intro-prev {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  visibility: hidden;
}
.intro-prev.is-visible {
  visibility: visible;
}
.intro-prev svg {
  width: 14px;
  height: 14px;
}
.skip-link {
  color: var(--muted);
  font-size: 14px;
  background: none;
  border: none;
}
.intro-next {
  width: auto;
  padding: 14px 26px;
  flex-shrink: 0;
}

/* ---------- Onboarding: community-afspraken, elke afspraak een eigen slide ---------- */
.onb-step {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.onb-slide {
  padding-top: 10px;
}
.onb-number {
  font-size: 58px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 14px;
}
.onb-title {
  font-size: clamp(24px, 7vw, 30px);
  margin-top: 8px;
  line-height: 1.2;
}
.onb-body {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
  margin-top: 14px;
}
.onb-hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: 22px;
}
.onb-closing {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 600;
}
.onb-recap {
  list-style: none;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onb-recap li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}
.onb-recap li span:first-child {
  color: var(--accent);
  font-weight: 600;
  min-width: 24px;
  font-variant-numeric: tabular-nums;
}
.onb-accept {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.onb-accept input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.onb-accept.is-checked {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.onb-screen .message-banner {
  margin-top: 18px;
}
.onb-screen .intro-next[hidden] {
  display: none;
}

.social-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Locked / premium ---------- */
.locked-card {
  background: linear-gradient(160deg, var(--dark-1), var(--dark-2));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  text-align: center;
  margin-top: 20px;
}
.locked-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--accent-soft);
}
.locked-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.locked-card p {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-bottom: 22px;
}

.challenge-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
}
.challenge-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.challenge-card .price {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  display: block;
}

.message-banner {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 18px;
}
.message-banner.success {
  background: var(--surface-strong);
  color: var(--text);
}
.message-banner.error {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.message-banner__list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.message-banner__list:empty {
  display: none;
}
.message-banner__list a {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 18px;
}

/* =====================================================================
   Responsief
   Basis = telefoon. Daarboven: kleine telefoons, tablets, desktop.
   ===================================================================== */

/* Kleine telefoons (iPhone SE, oudere Androids) */
@media (max-width: 360px) {
  :root {
    --gutter: 16px;
    --nav-space: 100px;
  }
  .btn {
    padding: 14px 20px;
    font-size: 15px;
  }
  .stat-tile .stat-value {
    font-size: 22px;
  }
  .stat-tile .stat-label {
    font-size: 11px;
  }
  .pill {
    padding: 8px 13px;
    font-size: 13px;
  }
}

/* Vanaf brede telefoons / kleine tablets: shell als kaart in het midden */
@media (min-width: 540px) {
  .app-shell {
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 32px;
    overflow: hidden;
    min-height: calc(100vh - 48px);
  }
  .bottom-nav {
    border-radius: 0 0 32px 32px;
    bottom: 24px;
  }
  .fab {
    bottom: 120px;
  }
  .intro-screen {
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
  }
}

/* Tablets (portret en landschap) */
@media (min-width: 700px) {
  :root {
    --shell-max: 640px;
    --gutter: 36px;
  }
  .screen {
    padding-top: 40px;
  }
  .app-header {
    margin-top: -40px;
    padding-top: 24px;
    padding-bottom: 16px;
  }
  .app-header__brand {
    font-size: 22px;
  }
  .page-title {
    font-size: 36px;
  }
  .quote-card {
    min-height: 280px;
    padding: 34px 30px;
  }
  .quote-card blockquote {
    font-size: 24px;
  }
  .task-card {
    padding: 30px;
  }
  .post-card {
    padding: 24px 24px 18px;
  }
  .post-card--hero {
    padding: 30px 30px 22px;
  }
  .post-card--hero .post-body {
    font-size: 24px;
  }
  .stat-row {
    gap: 14px;
  }
  .stat-tile {
    padding: 22px 12px;
  }
  .stat-tile .stat-value {
    font-size: 30px;
  }
  .intro-screen .intro-photo {
    height: clamp(220px, 40dvh, 460px);
  }
  .auth-logo img {
    width: 240px;
  }
}

/* Desktop: zijbalk met navigatie, inhoud met maximale breedte */
@media (min-width: 1024px) {
  :root {
    --gutter: 56px;
    --content-max: 720px;
    --sidebar: 236px;
  }
  .app-shell--nav {
    max-width: 1120px;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    align-items: start;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  /* Masthead: uitgelijnd met de inhoud; editah. staat al in de zijbalk */
  .app-header {
    margin: -16px 0 36px;
    padding: 0 0 18px;
  }
  .app-header__brand {
    font-size: 24px;
  }
  .app-header__by {
    display: none;
  }
  .app-shell--nav .screen {
    order: 2;
    min-height: calc(100vh - 48px);
    background: var(--bg);
    border-radius: 0 32px 32px 0;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
    /* centreer de inhoud op --content-max, met minimaal de gutter als marge */
    padding: 56px max(var(--gutter), calc((100% - var(--content-max)) / 2)) 72px;
  }
  .app-shell--nav .bottom-nav {
    order: 1;
    position: sticky;
    top: 24px;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    max-width: none;
    height: calc(100vh - 48px);
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 40px 18px;
    border-top: none;
    border-right: 1px solid var(--border);
    border-radius: 32px 0 0 32px;
    background: var(--bg);
  }
  .app-shell--nav .bottom-nav::before {
    content: "";
    display: block;
    width: 118px;
    height: 34px;
    margin: 0 14px 38px;
    background: url("../img/editah-wordmark.04e0cc1e9c53.png") left center / contain no-repeat;
  }
  .app-shell--nav .nav-item {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-soft);
  }
  .app-shell--nav .nav-item:hover {
    background: var(--surface);
  }
  .app-shell--nav .nav-item.active {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }
  .app-shell--nav .nav-item svg {
    width: 22px;
    height: 22px;
  }
  .app-shell--nav .fab {
    right: max(32px, calc((100vw - 1120px) / 2 + 32px));
    bottom: 40px;
  }
  .page-title {
    font-size: 38px;
  }
  .btn:hover {
    opacity: 0.92;
  }
  /* Schermen zonder navigatie (login, intro, uitnodiging) blijven een compacte kaart */
  .app-shell:not(.app-shell--nav) {
    max-width: 520px;
  }
  .app-shell:not(.app-shell--nav) .screen {
    --gutter: 40px;
  }
}

/* ---------- PWA: installatiehint en offline-scherm ---------- */
.install-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-soft);
}
/* Het hidden-attribuut moet winnen van display:flex, anders werkt "sluiten" niet
   en blijft de hint ook staan in de geïnstalleerde app. */
.install-hint[hidden] {
  display: none;
}
.install-hint__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.install-hint__text strong {
  color: var(--text);
  font-weight: 600;
}
.install-hint__text em {
  font-style: normal;
  color: var(--text);
}
.install-hint__glyph {
  color: var(--accent);
}
.install-hint__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.install-hint__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}
.offline-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 100vh;
  min-height: 100dvh;
}
.offline-screen .btn {
  margin-top: 12px;
}
.offline-text {
  color: var(--text-soft);
}
/* Geïnstalleerd (standalone): geen kaart-schaduw, de app is het scherm */
@media (display-mode: standalone) {
  body {
    background: var(--bg);
  }
  /* Eenmaal op het beginscherm is de installatiehint overbodig, ook zonder JS. */
  .install-hint {
    display: none !important;
  }
}

/* =====================================================================
   Stemming (mood tracker)
   Tonen 1-5: van houtskool (zwaar) via grijs/neutraal naar terracotta (licht).
   Eén kleurenlijn, dezelfde overal: kalender, samenvattingen, grafieken.
   ===================================================================== */
.tone-1 { background: #3a3a3a; color: #fff; }
.tone-2 { background: #9d9d9b; color: #fff; }
.tone-3 { background: #d8d8d5; color: var(--text); }
.tone-4 { background: #e3bca4; color: var(--accent-dark); }
.tone-5 { background: var(--accent); color: #fff; }
.tone-none { background: var(--surface); color: var(--muted); }

.mood-face {
  width: 60%;
  height: 60%;
  display: block;
}

.mood-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}

/* ---- Kaart met stemmingskeuze ---- */
.mood-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
}
.mood-card__lead {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.mood-card__more {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 500;
}
.mood-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 6px;
}
.mood-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  position: relative;
}
.mood-pick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.mood-pick__badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 0 rgba(17, 17, 17, 0);
}
.mood-pick:active .mood-pick__badge {
  transform: scale(0.94);
}
.mood-pick input:checked + .mood-pick__badge,
.mood-pick input:focus-visible + .mood-pick__badge {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text);
  transform: scale(1.06);
}
.mood-pick input:checked ~ .mood-pick__label {
  font-weight: 600;
}
.mood-pick__label {
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 1.2;
  text-align: center;
}
.mood-pick--small .mood-pick__badge {
  width: 44px;
  height: 44px;
}

/* ---- Strook op Vandaag ---- */
.mood-strip {
  margin-bottom: 18px;
}
.mood-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.mood-strip__row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mood-strip__row::-webkit-scrollbar {
  display: none;
}
.mood-strip__row .mood-pick {
  flex: 0 0 60px;
}

/* ---- Secties en samenvattingen ---- */
.mood-section {
  margin-top: 28px;
}
.mood-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.mood-section__head h2 {
  font-size: 18px;
}
.mood-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.mood-summary--4 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}
.mood-summary__tile {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.mood-summary__badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.mood-summary__value {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.mood-summary__value small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.mood-summary__label {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.3;
}
.mood-summary__label small {
  color: var(--muted);
  font-size: 11px;
}
.mood-empty {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
}
.mood-empty--tall {
  padding: 40px 24px;
  margin-top: 20px;
}
.mood-empty--tall .btn {
  margin-top: 18px;
}

/* ---- Tijdlijn van momenten ---- */
.mood-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mood-entry {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 14px 14px 14px;
}
.mood-entry__badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mood-entry__body {
  flex: 1;
  min-width: 0;
}
.mood-entry__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}
.mood-entry__meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.mood-entry__intensity {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.mood-entry__intensity .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}
.mood-entry__intensity .dot.on {
  background: var(--text);
}
.mood-entry__intensity-label {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}
.mood-entry__factors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.mood-entry__factors span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-soft);
}
.mood-entry__note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
  white-space: pre-wrap;
}
.mood-entry__edit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  margin: -4px -6px 0 0;
}
.mood-entry__edit svg {
  width: 17px;
  height: 17px;
}
.mood-entry__edit:hover {
  background: var(--surface);
  color: var(--text);
}

/* ---- Weekstrook ---- */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 8px;
  border-radius: var(--radius-md);
  background: var(--surface);
}
.week-day.is-today {
  background: #fff;
  border: 1px solid var(--text);
}
.week-day__label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.week-day__badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.week-day__plus {
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}
.week-day__num {
  font-size: 12px;
  font-weight: 600;
}

/* ---- Snelle acties ---- */
.mood-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.mood-action {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.mood-action__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mood-action__icon svg {
  width: 20px;
  height: 20px;
}
.mood-action__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  font-size: 13px;
  color: var(--text-soft);
}
.mood-action__text strong {
  font-size: 15px;
  color: var(--text);
}
.mood-action__chevron {
  font-size: 22px;
  color: var(--muted);
}

/* ---- Formulier ---- */
.mood-form__intro {
  color: var(--text-soft);
  font-size: 15px;
  margin: 8px 0 24px;
}
.mood-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
.field-legend {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 12px;
  padding: 0;
}
.field-legend__soft {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.mood-grid--form {
  gap: 14px 6px;
}
.mood-fieldset .errorlist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}
.segmented__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 2px 8px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text-soft);
}
.segmented__item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.segmented__num {
  font-size: 17px;
  font-weight: 600;
}
.segmented__text {
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}
.segmented__item:has(input:checked) {
  background: var(--text);
  color: #fff;
}
.segmented__item:has(input:focus-visible) {
  box-shadow: 0 0 0 2px var(--accent);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.chip:has(input:checked) {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.chip:has(input:focus-visible) {
  box-shadow: 0 0 0 2px var(--accent);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field input[type="date"],
.field input[type="time"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 16px;
  color: var(--text);
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
}
.field-help {
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 22px;
}
.mood-danger {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.mood-danger summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
}
.mood-danger summary::-webkit-details-marker {
  display: none;
}
.mood-danger p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 12px 0 12px;
}
.mood-danger .btn-outline {
  color: var(--accent-dark);
  border-color: var(--accent-soft);
}

/* ---- Dagoverzicht ---- */
.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.day-nav__title {
  text-align: center;
  flex: 1;
}
.day-nav__title .page-title {
  font-size: clamp(20px, 5.6vw, 26px);
  white-space: nowrap;
}
.day-nav__date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.day-nav .icon-btn.is-disabled {
  background: transparent;
}
.mood-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  margin-bottom: 14px;
}
.mood-hero__badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mood-hero.tone-3 .mood-hero__badge,
.mood-hero.tone-4 .mood-hero__badge {
  background: rgba(255, 255, 255, 0.55);
}
.mood-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
}
.mood-hero__title {
  font-size: 26px;
  font-weight: 600;
  margin: 2px 0 4px;
}
.mood-hero__sub {
  font-size: 13px;
  opacity: 0.85;
}
.mood-facts {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 4px 16px;
  margin-bottom: 22px;
}
.mood-facts__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.mood-facts__row:last-child {
  border-bottom: none;
}
.mood-facts__label {
  color: var(--muted);
  white-space: nowrap;
}
.mood-facts__value {
  text-align: right;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.tone-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Kalender ---- */
.cal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px 10px 12px;
}
.cal__head,
.cal__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal__head span {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-bottom: 8px;
}
.cal__row {
  margin-top: 5px;
}
.cal__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: #fff;
  color: var(--text);
}
.cal__cell .mood-face {
  width: 44%;
  height: 44%;
}
.cal__cell.is-empty {
  color: var(--muted);
}
.cal__cell.is-empty::after {
  content: "+";
  font-size: 13px;
  line-height: 1;
  color: var(--border);
}
.cal__cell.is-empty:hover::after {
  color: var(--muted);
}
.cal__cell.is-future {
  background: transparent;
  color: var(--border);
}
.cal__cell.is-outside {
  background: transparent;
}
.cal__cell.is-today {
  box-shadow: 0 0 0 2px var(--text);
}
.cal__num {
  font-size: 12px;
  font-weight: 600;
}
.cal__count {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 9px;
  font-weight: 600;
  opacity: 0.85;
}
.tone-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  justify-content: center;
}
.tone-legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.tone-legend span:not(.tone-legend__swatch) {
  margin: 0 6px 0 2px;
}

/* ---- Inzichten ---- */
.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px 16px;
  margin-top: 16px;
}
.chart-card--quiet {
  background: var(--surface);
  border-color: transparent;
}
.chart-card__head {
  margin-bottom: 14px;
}
.chart-card__head h2 {
  font-size: 17px;
}
.chart-card__sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.chart-card__note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.45;
}
.trend {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.trend__grid {
  stroke: var(--border);
  stroke-width: 1;
}
.trend__tick {
  font-size: 9px;
  fill: var(--muted);
  font-family: inherit;
}
.trend__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trend__dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
}
.trend__hit {
  fill: transparent;
}
.trend a:hover .trend__dot,
.trend a:focus .trend__dot {
  r: 5.5;
}
.trend__end {
  font-size: 10px;
  font-weight: 600;
  fill: var(--text);
  font-family: inherit;
}
.table-view {
  margin-top: 12px;
  font-size: 13px;
}
.table-view summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 600;
}
.table-view table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.table-view th,
.table-view td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
}
.table-view th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.table-view td a {
  color: var(--accent-dark);
}

.hbars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hbar {
  display: grid;
  grid-template-columns: 118px 1fr 62px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.hbars--compact .hbar {
  grid-template-columns: 76px 1fr 66px;
}
.hbar.is-muted {
  color: var(--muted);
}
.hbar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbar.is-muted .hbar__label {
  color: var(--muted);
}
.hbar__badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hbar__track {
  display: block;
  height: 12px;
  position: relative;
}
.hbar__track::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.hbar__fill {
  display: block;
  height: 100%;
  min-width: 3px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}
.hbar__value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.hbar__value small {
  color: var(--muted);
  font-size: 11px;
}

.vbars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 150px;
}
.vbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 6px;
}
.vbar__value {
  font-size: 11px;
  color: var(--text-soft);
  height: 14px;
  font-variant-numeric: tabular-nums;
}
.vbar__track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.vbar__fill {
  display: block;
  width: 18px;
  max-width: 60%;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}
.vbar__label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vbar.is-muted .vbar__label {
  color: var(--border);
}

.factor-list {
  display: flex;
  flex-direction: column;
}
.factor {
  display: grid;
  grid-template-columns: 12px 1fr auto 44px 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.factor:last-child {
  border-bottom: none;
}
.factor__count {
  font-size: 12px;
  color: var(--muted);
}
.factor__avg {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.factor__delta {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
}
.factor__delta.is-up {
  color: var(--accent-dark);
}
.factor__delta.is-down {
  color: var(--text);
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
}
.pager__info {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 360px) {
  .mood-pick__badge {
    width: 44px;
    height: 44px;
  }
  .mood-pick__label {
    font-size: 10.5px;
  }
  .hbar {
    grid-template-columns: 104px 1fr 56px;
  }
}
@media (min-width: 700px) {
  .mood-summary--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .mood-pick__badge {
    width: 56px;
    height: 56px;
  }
  .mood-pick__label {
    font-size: 12.5px;
  }
  .cal {
    padding: 18px 14px 16px;
  }
  .chart-card {
    padding: 24px 24px 20px;
  }
}

/* ---------- Profiel bewerken / ledenprofiel ---------- */
.top-row__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.profile-avatar--editable {
  position: relative;
  color: #fff;
  overflow: visible; /* het camerabadge steekt buiten de cirkel */
}
.profile-avatar--editable img {
  border-radius: 50%;
}
.profile-avatar__edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--bg);
}
.profile-avatar__edit svg {
  width: 15px;
  height: 15px;
}
.profile-handle {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}
.profile-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.profile-header .profile-meta {
  display: flex;
}
.profile-bio {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 12px auto 0;
  max-width: 34ch;
  white-space: pre-wrap;
}
.profile-nudge {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 500;
}
.profile-form {
  margin-top: 8px;
}
.form-section-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 26px 0 14px;
  font-weight: 600;
}
.photo-field {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.photo-field__preview {
  margin: 0;
  width: 84px;
  height: 84px;
  font-size: 30px;
  flex-shrink: 0;
}
.photo-field__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.photo-field__button {
  align-self: flex-start;
  background: #fff;
  cursor: pointer;
}
.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.photo-field__remove {
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.photo-field .field-help {
  margin: 0;
  overflow-wrap: anywhere;
}
.field-help--tight {
  display: block;
  margin: 6px 0 0;
}
.input-prefix {
  display: flex;
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.input-prefix span {
  padding: 0 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}
.input-prefix input[type="text"] {
  border: none;
  background: transparent;
  padding-left: 4px;
  flex: 1;
  min-width: 0;
}
.input-prefix input:focus {
  outline: none;
}
.input-prefix:focus-within {
  border-color: var(--text);
}
.readonly-value {
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  color: var(--text-soft);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.profile-links {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-header {
  color: inherit;
}
