:root {
  --sb-bg: #f4f7fb;
  --sb-card: #ffffff;
  --sb-text: #0f172a;
  --sb-muted: #64748b;
  --sb-accent: #073889;
  --sb-accent-soft: #e0efff;
  --sb-hero-blue-soft-start: #d3e6f0;
  --sb-hero-blue-soft-end: #e9f4f8;
  /* Profiel-hero + directory-locatie: donkerblauwe gradient */
  --sb-gradient-hero-blue: linear-gradient(90deg, #073889 0%, #0065cc 55%, #073889 100%);
  --sb-radius: 12px;
  --sb-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --sb-font-display: "Exo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --sb-font-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sb-font-body);
  background: var(--sb-bg);
  color: var(--sb-text);
  line-height: 1.5;
}

.sb-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.sb-wrap-narrow {
  max-width: 880px;
}

/* Directory-overzicht: gebruik schermbreedte i.p.v. smalle kolom */

.sb-wrap-directory {
  max-width: min(1520px, calc(100vw - 2rem));
  width: 100%;
}

/* Profiel + Perfect Match zijpaneel */

.sb-wrap-profile-with-aside {
  max-width: min(1200px, calc(100vw - 2rem));
}

.sb-profile-page-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .sb-profile-page-layout {
    grid-template-columns: 1fr minmax(260px, 300px);
  }

  .sb-profile-aside {
    position: sticky;
    top: 1rem;
  }
}

/* Perfect Match aside — design reference: cream card, navy title, pill CTA (Exo via --sb-font-display) */

.sb-perfect-match-card {
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 1.25rem 1.35rem;
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: none;
  font-family: var(--sb-font-display);
}

.sb-perfect-match-title-check {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--sb-font-display);
  color: #0a225d;
  line-height: 1.25;
}

.sb-perfect-match-teaser-check {
  margin: 0 0 1rem !important;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
  font-family: var(--sb-font-display);
}

.sb-perfect-match-btn-check {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: #f79c44;
  color: #ffffff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: var(--sb-font-display);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.sb-perfect-match-btn-check:hover:not(:disabled) {
  background: #e88935;
}

.sb-perfect-match-btn-check:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Legacy class names kept for tags/summary below the fold */

.sb-perfect-match-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.sb-perfect-match-teaser {
  margin: 0 0 0.85rem !important;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sb-perfect-match-btn {
  width: 100%;
  justify-content: center;
}

.sb-perfect-match-err {
  margin: 0.75rem 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
}

.sb-perfect-match-body {
  margin-top: 1rem;
}

.sb-perfect-match-summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Eerste bezoek zonder profiel: geen intro-regels boven het kaart; focus op het witte venster */

.sb-wrap-first-visit {
  max-width: 960px;
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.sb-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--sb-font-display);
  color: var(--sb-accent);
  margin: 0 0 0.5rem;
}

.sb-sub {
  color: var(--sb-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-family: var(--sb-font-display);
}

.sb-review-error-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sb-interview-header {
  margin-bottom: 1rem;
}

.sb-interview-header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.sb-interview-title {
  color: var(--sb-accent);
  margin-bottom: 0.25rem;
}

.sb-interview-subtitle {
  max-width: 80ch;
  margin-bottom: 0;
}

.sb-interview-inline-alert {
  box-sizing: border-box;
  max-width: min(640px, 100%);
  margin: 0 auto 1rem;
  padding: 0.55rem 0.85rem;
  text-align: center;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sb-profile-generating-banner--bottom {
  margin-top: 1.25rem;
}

.sb-profile-generating-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-sizing: border-box;
  max-width: min(640px, 100%);
  margin: 0 auto 1rem;
  padding: 0.65rem 1rem;
  text-align: center;
  color: var(--sb-accent);
  background: rgba(7, 56, 137, 0.06);
  border: 1px solid #c7d7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
  font-family: var(--sb-font-display);
}

.sb-profile-generating-spinner {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #c7d7eb;
  border-top-color: var(--sb-accent);
  border-radius: 50%;
  animation: sbSpin 0.85s linear infinite;
}

.sb-chat-wait-hint {
  text-align: center;
  margin: 0 auto 0.75rem !important;
  max-width: min(640px, 100%);
}

/* Hint binnen chatkaart: onder het draad, boven composer (zelfde plek als nieuwe AI-tekst) */

.sb-chat-card > .sb-chat-wait-hint {
  margin: 0 !important;
  max-width: none;
  flex-shrink: 0;
  padding: 0.45rem 1.25rem 0.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sb-accent);
}

.sb-interview-resume-notice {
  box-sizing: border-box;
  max-width: min(640px, 100%);
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  background: rgba(7, 56, 137, 0.08);
  border: 1px solid #c7d7eb;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--sb-accent);
}

.sb-interview-resume-notice p {
  margin: 0 0 0.65rem;
}

.sb-interview-soft-fail {
  box-sizing: border-box;
  max-width: min(640px, 100%);
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #78350f;
}

.sb-interview-soft-fail p {
  margin: 0 0 0.75rem;
}

.sb-interview-soft-fail-link {
  color: #0a225d;
  font-weight: 600;
  text-decoration: underline;
}

.sb-interview-soft-fail-link:hover {
  text-decoration: none;
}

.sb-link-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--sb-muted);
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.sb-link-btn:hover {
  text-decoration: underline;
}

.sb-location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sb-location-pill {
  appearance: none;
  border: 1px solid #c7d7eb;
  background: #ffffff;
  color: var(--sb-accent);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.sb-location-pill:hover {
  background: rgba(7, 56, 137, 0.06);
}

.sb-location-pill-active {
  background: var(--sb-accent);
  color: #ffffff;
  border-color: var(--sb-accent);
}

.sb-location-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(7, 56, 137, 0.12);
}

.sb-chat-card {
  padding: 0;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
}

.sb-chat-messages {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sb-chat-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
  max-width: 100%;
}

.sb-chat-row-ai {
  justify-content: flex-start;
}

.sb-chat-row-user {
  justify-content: flex-end;
}

.sb-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sb-font-display);
  font-weight: 800;
  font-size: 0.8rem;
  color: #ffffff;
  background: linear-gradient(135deg, #073889 0%, #0065cc 100%);
  box-shadow: 0 6px 16px rgba(3, 21, 63, 0.18);
  flex: 0 0 auto;
}

.sb-chat-composer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.75rem 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.sb-chat-input {
  width: 100%;
  min-height: 42px;
  max-height: 140px;
  resize: none;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.75rem;
  font: inherit;
  line-height: 1.35;
}

.sb-chat-input:focus {
  outline: none;
  border-color: rgba(7, 56, 137, 0.45);
  box-shadow: 0 0 0 4px rgba(7, 56, 137, 0.12);
}

.sb-chat-send {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: var(--sb-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sb-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sb-chat-footer {
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 0.75rem;
  display: flex;
  justify-content: flex-end;
  background: #ffffff;
}

.sb-choice-card-wrap {
  padding: 1.25rem;
}

.sb-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sb-choice-card {
  appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: var(--sb-radius);
  background: #ffffff;
  min-height: 220px;
  padding: 1.4rem 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sb-choice-card:hover {
  border-color: rgba(7, 56, 137, 0.55);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.sb-choice-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(7, 56, 137, 0.12), 0 10px 26px rgba(15, 23, 42, 0.12);
  border-color: rgba(7, 56, 137, 0.65);
}

.sb-choice-icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sb-accent-soft);
  color: var(--sb-accent);
  box-shadow: 0 8px 18px rgba(3, 21, 63, 0.08);
  margin-bottom: 0.35rem;
}

.sb-choice-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sb-accent);
}

.sb-choice-sub {
  color: var(--sb-muted);
  font-size: 0.95rem;
  max-width: 40ch;
}

.sb-voice-shell {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  font-family: var(--sb-font-display);
}

.sb-voice-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sb-voice-hero {
  flex-shrink: 0;
  text-align: center;
  padding-bottom: 0.35rem;
}

.sb-voice-hero-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 800;
  color: var(--sb-accent);
  line-height: 1.25;
}

.sb-voice-hero-sub {
  margin: 0 auto;
  max-width: 38ch;
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.4;
}

.sb-voice-orb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.sb-voice-center {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 0;
}

.sb-voice-core-question {
  margin-top: 0.4rem;
  min-height: 24px;
  max-width: min(720px, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.35rem;
  box-sizing: border-box;
  text-align: center;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  color: rgba(7, 56, 137, 0.92);
  white-space: normal;
  overflow-wrap: break-word;
  animation: sbFadeIn 0.3s ease both;
}

.sb-voice-core-question-placeholder {
  animation: none;
}

.sb-voice-orb {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  position: relative;
  will-change: transform;
  transition: transform 0.18s ease-out;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sb-voice-orb-core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #f1f7ff 0%, #cfe6ff 46%, #73b2ff 100%);
  border: 1px solid rgba(7, 56, 137, 0.18);
  box-shadow: 0 18px 40px rgba(3, 21, 63, 0.14);
}

.sb-voice-orb-idle {
  animation: sbPulseSlow 3s ease-in-out infinite;
}

.sb-voice-orb:hover .sb-voice-orb-core {
  border-color: rgba(7, 56, 137, 0.35);
  box-shadow: 0 22px 46px rgba(3, 21, 63, 0.16);
}

.sb-voice-orb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(7, 56, 137, 0.12);
}

.sb-voice-orb-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(7, 56, 137, 0.92);
  z-index: 2;
}

.sb-voice-orb-speaking .sb-voice-orb-icon {
  color: rgba(255, 255, 255, 0.95);
}

.sb-voice-orb-error .sb-voice-orb-icon {
  color: rgba(190, 18, 60, 0.92);
}

.sb-voice-orb-listening .sb-voice-orb-core {
  background: radial-gradient(circle at 30% 30%, #dff0ff 0%, #bcdcff 42%, #73b2ff 100%);
  border-color: rgba(7, 56, 137, 0.22);
}

.sb-voice-orb-speaking .sb-voice-orb-core {
  background: radial-gradient(circle at 30% 30%, #e6f1ff 0%, #7bb9ff 50%, #1c72e8 100%);
  border-color: rgba(7, 56, 137, 0.35);
  animation: sbPulseTalk 1.15s ease-in-out infinite;
}

.sb-voice-orb-speaking::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 18%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.55;
  filter: blur(2px);
  animation: sbSweep 1.2s ease-in-out infinite;
  pointer-events: none;
}

.sb-voice-orb-listening::before,
.sb-voice-orb-speaking::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid rgba(7, 56, 137, 0.22);
  opacity: 0.0;
}

.sb-voice-orb-listening::before {
  opacity: 0.9;
  animation: sbWaveOut 1.35s ease-out infinite;
}

.sb-voice-orb-speaking::before {
  opacity: 0.9;
  animation: sbWaveOut 1.05s ease-out infinite;
}

.sb-voice-orb::before,
.sb-voice-orb::after {
  pointer-events: none;
}

.sb-voice-orb-processing .sb-voice-orb-core {
  background: radial-gradient(circle at 30% 30%, #e7f1ff 0%, #c9ddff 52%, #a8c8ff 100%);
}

.sb-voice-processing {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.sb-voice-processing::before {
  content: '';
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(7, 56, 137, 0.18);
  border-top-color: rgba(7, 56, 137, 0.75);
  animation: sbSpin 1.1s linear infinite;
}

.sb-voice-orb-processing::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 40%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.55;
  transform: translateX(-25%);
  animation: sbShimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

.sb-voice-orb-error .sb-voice-orb-core {
  background: radial-gradient(circle at 30% 30%, #fff1f2 0%, #fecdd3 46%, #fb7185 100%);
  border-color: rgba(190, 18, 60, 0.35);
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.12);
}

.sb-voice-orb-error::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid rgba(190, 18, 60, 0.28);
  opacity: 0.95;
}

.sb-voice-error-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(190, 18, 60, 0.12);
  color: rgba(190, 18, 60, 0.95);
  border: 1px solid rgba(190, 18, 60, 0.18);
}

.sb-voice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.sb-voice-mute-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sb-voice-mute-btn-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.sb-voice-mic {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(7, 56, 137, 0.55);
  background: #ffffff;
  color: var(--sb-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.sb-voice-mic:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 56, 137, 0.75);
}

.sb-voice-mic:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(7, 56, 137, 0.12), 0 10px 26px rgba(15, 23, 42, 0.12);
}

.sb-voice-mic-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.sb-voice-permission {
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(7, 56, 137, 0.18);
  background: #f0f6fc;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  text-align: center;
}

.sb-voice-permission-title {
  font-weight: 800;
  color: var(--sb-accent);
  margin-bottom: 0.35rem;
}

.sb-voice-permission-body {
  margin-bottom: 0;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.45;
}

.sb-intro-draft-actions {
  justify-content: center;
  margin-bottom: 0;
}

@keyframes sbPulseSlow {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sbPulseTalk {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sbWaveOut {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes sbSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sbSweep {
  0% {
    transform: rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: rotate(35deg);
    opacity: 0.65;
  }
  100% {
    transform: rotate(0deg);
    opacity: 0.3;
  }
}

@keyframes sbShimmer {
  0% {
    transform: translateX(-30%);
    opacity: 0.35;
  }
  50% {
    transform: translateX(18%);
    opacity: 0.65;
  }
  100% {
    transform: translateX(-30%);
    opacity: 0.35;
  }
}

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

@media (max-width: 720px) {
  .sb-choice-grid {
    grid-template-columns: 1fr;
  }
  .sb-choice-card {
    min-height: 200px;
  }
  .sb-voice-shell {
    min-height: 70vh;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-choice-card,
  .sb-voice-orb,
  .sb-voice-orb-speaking::after,
  .sb-voice-orb-processing::after,
  .sb-voice-orb-speaking .sb-voice-orb-core,
  .sb-voice-processing::before,
  .sb-voice-orb-listening::before,
  .sb-voice-orb-speaking::before {
    animation: none !important;
    transition: none !important;
  }
}

.sb-display {
  font-family: var(--sb-font-display);
  letter-spacing: -0.01em;
}

.sb-display-sub {
  font-family: var(--sb-font-display);
  font-weight: 600;
  max-width: none;
}

.sb-directory-subtitle {
  width: 100%;
}

.sb-toolbar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

/* Zoekbalk en profielkaart gelijke onderkant: cellen vullen rijhoogte */

.sb-toolbar-layout > .sb-card {
  height: 100%;
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* Zoekbalk + profiel één blok; verjaardagen rechts op dezelfde rij */

.sb-directory-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

/* Witte kaarten, geen kleurenbalk: gradient-top op kaarten uit */

.sb-directory-header-row .sb-toolbar::before,
.sb-directory-header-row .sb-toolbar-soft-card::before,
.sb-directory-header-row .sb-birthdays-widget--sidebar::before {
  display: none;
}

.sb-directory-header-row .sb-card.sb-toolbar,
.sb-directory-header-row .sb-card.sb-toolbar-soft-card,
.sb-directory-header-row .sb-card.sb-birthdays-widget--sidebar {
  background: #ffffff;
}

/* Uitgeklapte verjaardagen: linkerkolom niet meerekken; kaart zo hoog als de lijst */

.sb-directory-header-row--birthdays-expanded {
  align-items: start;
}

.sb-directory-header-row--birthdays-expanded .sb-birthdays-widget--sidebar {
  height: auto;
  align-self: start;
}

.sb-directory-header-row .sb-toolbar-layout {
  margin-bottom: 0;
  min-width: 0;
}

.sb-directory-header-row .sb-birthdays-widget--sidebar {
  margin-bottom: 0;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sb-directory-header-row--toolbar-only {
  grid-template-columns: minmax(0, 1fr);
}

.sb-toolbar-soft-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.sb-birthdays-widget-top {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

.sb-birthdays-widget-header-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.sb-birthdays-widget-cake {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
  color: #64748b;
}

.sb-birthdays-widget-cake svg {
  display: block;
  width: 22px;
  height: 22px;
}

.sb-birthdays-widget-header-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sb-birthdays-widget-title {
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: #000000;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sb-directory-header-row .sb-birthdays-widget--sidebar.sb-birthdays-widget--collapsed {
  min-height: 0;
}

.sb-birthdays-summary {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--sb-text);
}

/* Icon-only toggle: rechts in de headerstrip; zelfde plek ingeklapt/uitgeklapt */

.sb-birthdays-expand-toggle {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: var(--sb-accent);
  cursor: pointer;
  line-height: 0;
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}

.sb-birthdays-expand-toggle:hover {
  background: rgba(7, 56, 137, 0.08);
  color: #052a66;
}

.sb-birthdays-expand-toggle:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}

.sb-birthdays-chevron {
  display: block;
  width: 22px;
  height: 22px;
}

.sb-birthdays-expanded-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

.sb-birthdays-expanded-block .sb-birthdays-list {
  flex: 0 1 auto;
}

.sb-birthdays-list-note {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.sb-toolbar-profile-card {
  min-width: 0;
  max-width: 260px;
}

.sb-btn--on-soft.sb-btn-secondary {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(7, 56, 137, 0.22);
  color: var(--sb-accent);
}

/* Profiel review: opnieuw interview (boven profielfoto) */

.sb-review-reinterview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(7, 56, 137, 0.14);
}

.sb-review-reinterview-text {
  margin: 0;
  flex: 1 1 14rem;
  min-width: 0;
  font-family: var(--sb-font-display);
  letter-spacing: -0.01em;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--sb-text);
}

/* Exo voor knop; specificiteit > .sb-btn */

.sb-card.sb-review-reinterview-banner .sb-btn.sb-review-reinterview-btn {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--sb-font-display);
  font-weight: 700;
}

.sb-toolbar-filters {
  padding: 0.5rem 0.75rem 0.55rem;
}

.sb-toolbar-filters .sb-row {
  margin-bottom: 0;
}

.sb-profile-actions-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.sb-toolbar-soft-card .sb-profile-actions-row .sb-btn {
  flex: 1 1 0;
  justify-content: center;
  padding: 0.38rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.25;
}

.sb-choice-section {
  margin-top: 0.25rem;
  min-height: calc(100dvh - 260px);
  display: grid;
  align-content: center;
  gap: 0.75rem;
}

.sb-choice-header {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--sb-accent);
  text-align: center;
}

.sb-toolbar-soft-card .sb-toolbar-actions-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.sb-toolbar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: #e9f4f8;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(3, 21, 63, 0.12);
  flex: 0 0 auto;
}

.sb-toolbar-avatar-fallback {
  background: linear-gradient(135deg, rgba(7, 56, 137, 0.18) 0%, rgba(65, 151, 203, 0.18) 100%);
}

.sb-toolbar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.sb-nieuw-bij-hero {
  margin-bottom: 1.1rem;
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid rgba(7, 56, 137, 0.12);
  background: #f5f5f9;
}

.sb-nieuw-bij-hero-title {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--sb-accent);
}

.sb-nieuw-bij-hero-sub {
  margin: 0 0 0.9rem;
  max-width: 40rem;
}

.sb-nieuw-bij-hero-grid {
  margin-top: 0.15rem;
}

.sb-nieuw-bij-hero .sb-profile-tile {
  background: #ffffff;
}

.sb-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
}

.sb-checkbox-label input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--sb-accent);
}

.sb-toolbar-date-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.sb-toolbar-date-label {
  font-size: 0.82rem;
  color: #64748b;
}

.sb-input--date {
  width: auto;
  min-width: 9.75rem;
}

.sb-directory-groups {
  min-width: 0;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sb-location-group-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.75rem;
}

.sb-location-group-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sb-accent);
}

.sb-location-group-meta {
  white-space: nowrap;
}

.sb-profile-tile {
  position: relative;
}

.sb-profile-tile-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  background: #f79c44;
  color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  white-space: nowrap;
  max-width: calc(100% - 5rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-section-title {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--sb-accent);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.sb-section-title--spaced {
  margin: 1.25rem 0 0.75rem;
}

/* Rubriek-groepen (interviewblokken) op de reviewpagina — alleen titels donkerblauw; labels blijven zwart */

.sb-rubric-group-title {
  font-family: var(--sb-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sb-accent);
  letter-spacing: -0.01em;
  margin: 1rem 0 0.5rem;
}

.sb-rubric-group-title--first {
  margin-top: 0;
}

/* Het vaste rondje — alle tekst in het venster (profiel + review) in Exo */

.sb-rubrics-panel {
  font-family: "Exo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.sb-rubrics-panel .sb-textarea,
.sb-rubrics-panel .sb-input {
  font-family: inherit;
}

/* Vraaglabels binnen het rubriekenvenster: zwart, vet (niet blauw) */

.sb-card--rubrics .sb-form-label {
  color: #0a0a0a;
  font-weight: 700;
}

.sb-card.sb-profile-hero {
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--sb-gradient-hero-blue);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(3, 21, 63, 0.18);
  /* Alles in het blauwe venster expliciet Exo (display) */
  font-family: var(--sb-font-display);
}

.sb-card.sb-profile-hero .sb-profile-hero-name.sb-display {
  font-family: var(--sb-font-display);
}

.sb-card.sb-profile-hero a,
.sb-card.sb-profile-hero button {
  font-family: var(--sb-font-display);
}

.sb-card.sb-profile-hero .sb-title {
  color: #ffffff;
}

.sb-card.sb-profile-hero .sb-chip {
  color: rgba(255, 255, 255, 0.85);
}

.sb-profile-hero-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  background: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.sb-profile-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.sb-profile-hero-identity {
  margin-top: 0.85rem;
}

.sb-profile-hero-name {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.sb-profile-hero-birthday {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.sb-profile-hero-birthday-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 0;
}

.sb-profile-hero-birthday-text {
  color: rgba(255, 255, 255, 0.92);
}

.sb-profile-hero-body {
  min-width: 0;
}

.sb-profile-hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-top: 0.25rem;
}

.sb-profile-hero-kicker .sb-profile-hero-meta-item {
  margin-top: 0;
}

.sb-on-blue {
  color: #ffffff !important;
}

.sb-card.sb-profile-hero .sb-badge-on-blue {
  background: #f79c44;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.sb-profile-hero-fields {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 960px) {
  .sb-profile-hero-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sb-profile-field {
  background: #ffffff;
  border: 1px solid rgba(7, 56, 137, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
}

.sb-profile-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--sb-muted);
  margin-bottom: 0.15rem;
}

.sb-profile-field-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sb-profile-field-icon {
  display: inline-flex;
  color: var(--sb-accent);
}

.sb-profile-field-value {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--sb-text);
}

.sb-profile-hero-meta-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sb-muted);
}

.sb-card.sb-profile-hero .sb-profile-hero-meta-item {
  color: rgba(255, 255, 255, 0.9);
}

.sb-profile-contact {
  margin-top: 0.9rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(7, 56, 137, 0.12);
}

.sb-profile-contact-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--sb-accent);
  margin-bottom: 0.4rem;
}

.sb-profile-contact-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem;
  align-items: baseline;
  margin-top: 0.25rem;
}

.sb-profile-contact-label {
  font-size: 0.82rem;
  color: var(--sb-muted);
}

.sb-profile-contact-link {
  color: var(--sb-accent);
  font-weight: 700;
  text-decoration: none;
}

.sb-profile-contact-link:hover {
  text-decoration: underline;
}

.sb-profile-contact-missing {
  color: var(--sb-muted);
}

/* Profiel-hero: doorzichtige vakken op de gradient, tekst en iconen wit */

.sb-card.sb-profile-hero .sb-profile-field,
.sb-card.sb-profile-hero .sb-profile-contact {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.sb-card.sb-profile-hero .sb-profile-field-label {
  color: rgba(255, 255, 255, 0.85);
}

.sb-card.sb-profile-hero .sb-profile-field-icon {
  color: #ffffff;
}

.sb-card.sb-profile-hero .sb-profile-field-value {
  color: #ffffff;
}

.sb-card.sb-profile-hero .sb-profile-contact-title {
  color: #ffffff;
}

.sb-card.sb-profile-hero .sb-profile-contact-label {
  color: rgba(255, 255, 255, 0.78);
}

.sb-card.sb-profile-hero .sb-profile-contact-link {
  color: #ffffff;
}

.sb-card.sb-profile-hero .sb-profile-contact-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.sb-card.sb-profile-hero .sb-profile-contact-missing {
  color: rgba(255, 255, 255, 0.55);
}

.sb-profile-contact-right {
  margin-left: auto;
  max-width: 360px;
}

.sb-gallery-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.1rem 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
}

.sb-gallery-thumb {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  scroll-snap-align: start;
}

.sb-gallery-thumb:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

.sb-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.sb-lightbox-body {
  width: min(900px, 92vw);
  max-height: 86vh;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.sb-lightbox-img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.sb-lightbox-caption {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  max-width: min(900px, 92vw);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.sb-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sb-lightbox-nav-left {
  left: 16px;
}

.sb-lightbox-nav-right {
  right: 16px;
}

.sb-gallery-admin-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.sb-gallery-dropzone {
  border: 2px dashed rgba(7, 56, 137, 0.25);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.sb-gallery-dropzone-plus {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(7, 56, 137, 0.08);
  color: #073889;
  font-size: 26px;
  font-weight: 900;
}

.sb-gallery-dropzone-text {
  font-family: var(--sb-font-display);
  font-weight: 800;
  color: #073889;
}

.sb-gallery-dropzone-sub {
  font-size: 0.85rem;
  color: var(--sb-muted);
  text-align: center;
}

.sb-gallery-error {
  margin-top: 0.5rem;
  color: #b91c1c;
  font-weight: 700;
}

.sb-gallery-admin-grid {
  margin-top: 0.9rem;
  display: grid;
  /* Vaste kolombreedte: bij één foto geen volle breedte (was minmax(..., 1fr)) */
  grid-template-columns: repeat(auto-fill, minmax(118px, 148px));
  gap: 0.65rem;
  justify-content: start;
}

.sb-gallery-admin-item {
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0.5rem;
  background: #ffffff;
  min-width: 0;
}

.sb-gallery-admin-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 0.45rem;
}

.sb-gallery-admin-caption {
  font-size: 0.92rem;
}

.sb-gallery-admin-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.sb-gallery-admin-handle {
  position: absolute;
  bottom: 8px;
  right: 10px;
  color: rgba(15, 23, 42, 0.35);
  font-weight: 900;
  user-select: none;
}

@media (max-width: 720px) {
  .sb-card.sb-profile-hero {
    grid-template-columns: 1fr;
  }
  .sb-profile-hero-left {
    align-items: stretch;
  }
  .sb-profile-hero-photo {
    width: 100%;
    height: 220px;
  }
  .sb-profile-hero-fields {
    grid-template-columns: 1fr;
  }

  .sb-profile-contact-row {
    grid-template-columns: 1fr;
  }

  .sb-gallery-thumb {
    width: 140px;
    height: 140px;
  }

  .sb-chat-card {
    height: 70vh;
    min-height: 420px;
  }

  .sb-msg {
    max-width: 92%;
  }

  .sb-toolbar-layout {
    grid-template-columns: 1fr;
  }

  .sb-toolbar-layout > .sb-card {
    height: auto;
  }

  .sb-toolbar-profile-card {
    max-width: none;
  }

  .sb-directory-header-row {
    grid-template-columns: 1fr;
  }

  .sb-directory-header-row .sb-birthdays-widget--sidebar {
    height: auto;
  }
}

.sb-card {
  background: var(--sb-card);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

/* Wins over .sb-card background (must follow .sb-card in cascade). */

.sb-card.sb-nieuw-bij-hero {
  background: #f5f5f9;
}

.sb-card.sb-toolbar-soft-card {
  background: #ffffff;
  border: 1px solid #e9f4f8;
  padding: 0.5rem 0.65rem 0.55rem;
  position: relative;
  overflow: hidden;
}

.sb-card.sb-toolbar-soft-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #073889 0%, #4197cb 45%, #f46015 100%);
  z-index: 0;
}

.sb-card.sb-toolbar-soft-card > * {
  position: relative;
  z-index: 1;
}

.sb-card.sb-birthdays-widget--sidebar {
  background: #ffffff;
  border: 1px solid #e9f4f8;
  padding: 0.65rem 0.75rem 0.75rem;
  box-shadow: var(--sb-shadow);
  position: relative;
  overflow: hidden;
}

.sb-card.sb-birthdays-widget--sidebar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #073889 0%, #4197cb 45%, #f46015 100%);
  z-index: 0;
}

.sb-card.sb-birthdays-widget--sidebar > * {
  position: relative;
  z-index: 1;
}

.sb-birthdays-widget--sidebar .sb-birthdays-row:not(.sb-birthdays-row--today) {
  background: #f1f5f9;
}

.sb-birthdays-widget--sidebar .sb-birthdays-row:not(.sb-birthdays-row--today):hover {
  background: #e2e8f0;
}

.sb-birthdays-widget--sidebar .sb-birthdays-fallback {
  background: #f1f5f9;
}

.sb-birthdays-widget--sidebar .sb-birthdays-fallback:hover {
  background: #e2e8f0;
}

.sb-birthdays-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
}

.sb-birthdays-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0.35rem 0.4rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.12s ease;
}

.sb-birthdays-row:hover {
  background: rgba(255, 255, 255, 0.85);
}

.sb-birthdays-row--today {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid rgba(245, 158, 11, 0.42);
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.12);
}

/* Statisch confetti-patroon (alleen vandaag jarig): ligt boven de gradient, onder avatar/tekst */

.sb-birthdays-row--today::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  opacity: 0.72;
  background-image:
    radial-gradient(circle at 8% 18%, #ec4899 0 2px, transparent 3px),
    radial-gradient(circle at 22% 72%, #06b6d4 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 88% 14%, #eab308 0 2px, transparent 3px),
    radial-gradient(circle at 78% 82%, #8b5cf6 0 2px, transparent 3px),
    radial-gradient(circle at 52% 8%, #f97316 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 94% 48%, #10b981 0 2px, transparent 3px),
    radial-gradient(circle at 6% 52%, #e11d48 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 38% 42%, #3b82f6 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 62% 58%, #d946ef 0 2px, transparent 3px),
    radial-gradient(circle at 15% 38%, #14b8a6 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 28%, #f43f5e 0 1.5px, transparent 2.5px),
    linear-gradient(118deg, transparent 42%, #f472b6 42% 58%, transparent 58%),
    linear-gradient(32deg, transparent 42%, #38bdf8 42% 58%, transparent 58%),
    linear-gradient(152deg, transparent 42%, #fbbf24 42% 58%, transparent 58%);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    16px 3px,
    12px 2.5px,
    14px 2.5px;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    92% 68%,
    8% 32%,
    48% 88%;
  background-repeat: no-repeat;
}

.sb-birthdays-row--today > .sb-birthdays-avatar-wrap,
.sb-birthdays-row--today > .sb-birthdays-text {
  position: relative;
  z-index: 1;
}

.sb-birthdays-row--today:hover {
  filter: brightness(1.02);
}

.sb-birthdays-row-inner {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}

.sb-birthdays-row-inner .sb-birthdays-row {
  flex: 1;
  min-width: 0;
}

.sb-birthdays-wish-btn {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  padding: 0.28rem 0.45rem;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.12s ease;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) {
  .sb-birthdays-row-inner--today:hover .sb-birthdays-wish-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (hover: none) {
  .sb-birthdays-row-inner--today .sb-birthdays-wish-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.sb-birthdays-wish-btn:hover:not(:disabled) {
  background: #fff;
  border-color: rgba(217, 119, 6, 0.85);
}

.sb-birthdays-wish-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sb-birthdays-wish-sent {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.68rem;
  font-weight: 650;
  color: #15803d;
  white-space: nowrap;
  padding-right: 0.1rem;
}

.sb-birthdays-avatar-wrap {
  flex: 0 0 auto;
}

.sb-birthdays-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(3, 21, 63, 0.1);
  display: block;
}

.sb-birthdays-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(7, 56, 137, 0.12);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--sb-accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(3, 21, 63, 0.08);
}

.sb-birthdays-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  text-align: left;
}

.sb-birthdays-name {
  font-weight: 750;
  font-size: 0.82rem;
  color: var(--sb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-birthdays-when {
  font-size: 0.72rem;
  color: var(--sb-muted);
}

.sb-birthdays-row--today .sb-birthdays-when {
  color: #92400e;
  font-weight: 650;
}

.sb-birthdays-fallback {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  margin-top: 0.15rem;
}

.sb-birthdays-fallback:hover {
  background: rgba(255, 255, 255, 0.88);
}

.sb-birthdays-muted {
  color: var(--sb-muted);
  font-size: 0.78rem;
}

/* Directory: locatie-sectie — zelfde blauwe gradient als profiel-hero; tegels blijven wit */

.sb-card.sb-location-group {
  padding: 0.75rem 1rem 1rem;
  background: var(--sb-gradient-hero-blue);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(3, 21, 63, 0.18);
}

.sb-location-group .sb-location-group-title {
  color: #ffffff;
}

.sb-location-group .sb-location-group-meta {
  color: rgba(255, 255, 255, 0.88);
}

.sb-location-group .sb-location-group-head {
  margin-bottom: 0.65rem;
}

.sb-location-group .sb-grid {
  padding-top: 0.15rem;
}

.sb-btn--directory-tile {
  background: #a8c6df;
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.sb-btn--directory-tile:hover {
  background: #9bb8d0;
  filter: none;
}

.sb-empty-state {
  border: 1px solid #e9f4f8;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  position: relative;
  overflow: hidden;
}

.sb-empty-state--welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(56vh, 520px);
  margin-bottom: 0;
  /* Zelfde donkerblauwe gradient als locatie-secties in het profielengrid */
  background: var(--sb-gradient-hero-blue);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(3, 21, 63, 0.18);
}

.sb-empty-state--welcome::before {
  display: none;
}

.sb-empty-state--welcome .sb-empty-state-title {
  color: #ffffff;
}

.sb-empty-state--welcome .sb-empty-state-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.sb-empty-state--welcome .sb-empty-state-cta {
  font-family: var(--sb-font-display);
  font-weight: 700;
  background: #ffffff;
  color: var(--sb-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.sb-empty-state--welcome .sb-empty-state-cta:hover {
  background: #f8fafc;
  filter: none;
}

.sb-empty-state--welcome .sb-empty-state-inner {
  flex: 1;
  min-height: min(48vh, 460px);
  padding: 2rem 1.75rem 2.25rem;
  gap: 1rem;
}

@media (min-width: 640px) {
  .sb-empty-state--welcome .sb-empty-state-inner {
    padding: 2.5rem 2.5rem 2.75rem;
  }

  .sb-empty-state--welcome .sb-empty-state-title {
    font-size: 1.55rem;
  }

  .sb-empty-state--welcome .sb-empty-state-subtitle {
    font-size: 1.05rem;
    max-width: 48ch;
  }
}

.sb-empty-state::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #073889 0%, #4197cb 45%, #f46015 100%);
}

.sb-empty-state-inner {
  position: relative;
  z-index: 1;
  min-height: 260px;
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.sb-empty-state-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sb-accent);
  margin: 0;
}

.sb-empty-state-subtitle {
  margin: 0;
  max-width: 70ch;
}

.sb-empty-state-cta {
  margin-top: 0.65rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(3, 21, 63, 0.12);
}

.sb-toolbar {
  border: 1px solid #e9f4f8; /* Hero blauw hairline */
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.sb-toolbar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #073889 0%, #4197cb 45%, #f46015 100%);
}

.sb-toolbar .sb-row {
  position: relative;
  z-index: 1;
}

.sb-intro-draft-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sb-text);
}

.sb-intro-draft-card .sb-btn {
  font-family: var(--sb-font-display);
  font-weight: 700;
}

.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--sb-accent);
  color: #fff;
  text-decoration: none;
}

.sb-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sb-btn-secondary {
  background: transparent;
  color: var(--sb-accent);
  border: 1px solid #c7d7eb;
}

.sb-input,
.sb-textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font: inherit;
}

.sb-textarea {
  min-height: 120px;
  resize: vertical;
}

.sb-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  max-width: min(72%, 72ch);
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.sb-msg-user {
  background: #073889;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-right-radius: 6px;
}

.sb-msg-ai {
  background: #f1f5f9;
  color: var(--sb-text);
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 6px;
}

.sb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.sb-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.65);
  color: #166534;
}

.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.sb-profile-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--sb-radius);
  padding: 1rem;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.sb-profile-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.sb-avatar {
  width: 100%;
  aspect-ratio: 1;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background: #e2e8f0;
}

.sb-profile-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--sb-radius);
  background: #fff;
  box-shadow: var(--sb-shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sb-profile-tile-admin-bar {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  display: flex;
  gap: 0.2rem;
  z-index: 3;
}

.sb-profile-tile-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(100, 116, 139, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.sb-profile-tile-admin-btn:hover:not(:disabled) {
  background: #f8fafc;
  color: #475569;
  border-color: rgba(71, 85, 105, 0.35);
}

.sb-profile-tile-admin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sb-profile-tile-admin-btn--danger {
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.35);
}

.sb-profile-tile-admin-btn--danger:hover:not(:disabled) {
  background: #f1f5f9;
  color: #475569;
  border-color: rgba(71, 85, 105, 0.4);
}

.sb-profile-tile:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.sb-profile-tile-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.sb-profile-tile-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sb-profile-tile-welcome-below-photo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.45rem;
}

.sb-profile-tile-welcome-btn {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.sb-profile-tile-welcome-feedback {
  margin: 0;
  max-width: 11.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: #166534;
}

.sb-avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  background: #e9f4f8; /* Hero blauw hairline */
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(3, 21, 63, 0.12);
}

.sb-profile-tile-body {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sb-profile-name {
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--sb-text);
}

.sb-profile-meta {
  font-size: 0.88rem;
  color: var(--sb-muted);
}

.sb-profile-meta-line {
  font-size: 0.88rem;
  color: var(--sb-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.sb-profile-sep {
  color: #b8c2c7; /* Hero grijs light */
  padding: 0 0.25rem;
}

.sb-profile-tile-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.sb-chip {
  font-size: 0.8rem;
  color: var(--sb-muted);
}

.sb-form-label {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--sb-font-display);
  font-weight: 800;
  color: #073889;
  letter-spacing: -0.01em;
}

.sb-crop-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
}

/* Review: maand/jaar- en dag/maand-rolwielen (geen kalender-popup) */

.sb-wheel-pair {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 440px;
}

.sb-wheel-column-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(7, 56, 137, 0.16);
  background: linear-gradient(180deg, #f1f5f9 0%, #fff 45%, #f8fafc 100%);
  overflow: hidden;
}

.sb-wheel-scroller {
  position: relative;
  z-index: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.sb-wheel-spacer {
  flex-shrink: 0;
}

.sb-wheel-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  scroll-snap-align: center;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  color: #64748b;
  cursor: pointer;
  padding: 0 0.4rem;
}

.sb-wheel-item:hover {
  color: #0f172a;
}

.sb-wheel-item--active {
  font-weight: 800;
  color: var(--sb-accent);
}

.sb-wheel-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sb-wheel-fade--top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), transparent);
}

.sb-wheel-fade--bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(0deg, rgba(248, 250, 252, 0.98), transparent);
}

.sb-wheel-highlight-band {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 40px;
  margin-top: -20px;
  border-radius: 8px;
  border: 1px solid rgba(7, 56, 137, 0.14);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .sb-wheel-scroller {
    scroll-behavior: auto;
  }
}
