@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

.app-smoelenboek {
  --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: "Exo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.app-smoelenboek,
.app-smoelenboek *,
.app-smoelenboek *::before,
.app-smoelenboek *::after {
  box-sizing: border-box;
}

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

/* App-root: establishes a container query context so layouts can react to the
   smoelenboek's own width (essential for the framework's split-screen mode,
   where the viewport stays wide but the app gets a narrower column).
   `container-type: inline-size` only contains the inline axis — it does NOT
   change the containing block for position:fixed descendants, so the chat
   panel/FAB keep their normal viewport-anchored, scroll-locked behavior. */

.sb-app {
  position: relative;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
  container-name: sb-app;
}

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

.sb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: #0065cc;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-bottom: 0.75rem;
  transition: color 0.15s;
}

.sb-back-btn:hover {
  color: #03153f;
}

.sb-stub-profile-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  background: #fff7e6;
  border: 1px solid #f5d99a;
  color: #5a3d0a;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sb-stub-profile-banner strong {
  color: #3f2a07;
  margin-right: 0.25rem;
}

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

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

.sb-wrap-directory {
  max-width: 1480px;
  width: 100%;
}

/* Profiel-pagina: ruimer dan de standaard 960px voor brede schermen */

.sb-wrap--profile {
  max-width: 1280px;
  width: 100%;
}

/* ── Organogram tree (pyramide-chart per team) ────────────────── */

.sb-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sb-tree-team-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sb-tree-team-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sb-tree-team-select {
  font-size: 0.92rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.95);
  color: var(--sb-accent);
  font-weight: 600;
  cursor: pointer;
}

/* Subtitel naast de paginatitel in de header */

.sb-tree-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sb-tree-header-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Filter-toolbar onder de header met locatie- en team-chips */

.sb-tree-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.1rem 0.25rem;
  border-bottom: 1px solid rgba(7, 56, 137, 0.08);
}

.sb-tree-toolbar-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sb-tree-toolbar-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.45rem;
  min-width: 60px;
}

.sb-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.sb-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(7, 56, 137, 0.18);
  background: #ffffff;
  color: rgba(15, 23, 42, 0.75);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease,
    box-shadow 0.12s ease;
  line-height: 1.2;
}

.sb-chip:hover {
  border-color: rgba(7, 56, 137, 0.45);
  color: var(--sb-accent);
}

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

.sb-chip--active {
  background: var(--sb-accent);
  border-color: var(--sb-accent);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(7, 56, 137, 0.18);
}

.sb-chip--active:hover {
  color: #ffffff;
}

.sb-chip--ghost {
  background: rgba(7, 56, 137, 0.04);
  border-style: dashed;
}

.sb-chip--ghost.sb-chip--active {
  background: var(--sb-accent);
  border-style: solid;
}

.sb-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(7, 56, 137, 0.1);
  color: var(--sb-accent);
}

.sb-chip--active .sb-chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Sub-organogrammen per locatie wanneer "Hele organisatie" actief is */

.sb-org-locations {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sb-org-location {
  border: 1px solid rgba(7, 56, 137, 0.1);
  border-radius: 16px;
  padding: 1rem 1rem 0.5rem;
  background: linear-gradient(180deg, rgba(7, 56, 137, 0.03) 0%, rgba(255, 255, 255, 0) 60%);
}

.sb-org-location-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.sb-org-location-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sb-accent);
  letter-spacing: 0.01em;
}

.sb-org-location-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.55);
}

.sb-tree-body {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.sb-tree-scroll {
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
}

/* Tree layout — gebaseerd op de "ul/li" met pseudo-element-lijnen */

.sb-tree,
.sb-tree-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
}

/* Root-niveau mag wrappen — bij veel mensen-zonder-manager ontstaan er anders
   horizontale scrollbars die de buitenste kaarten afkappen. */

.sb-tree-root {
  padding-top: 0;
  gap: 1.25rem;
  flex-wrap: wrap;
  row-gap: 1.5rem;
}

.sb-tree-ul {
  position: relative;
  padding-top: 24px;
  gap: 0.5rem;
}

.sb-tree-li {
  position: relative;
  padding: 0 0.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Verticale lijn vanaf de horizontale balk (top van UL) tot bovenkant kaart.
   Negatieve top steekt uit de LI naar boven, in de UL-padding-top ruimte. */

.sb-tree-ul > .sb-tree-li::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  width: 2px;
  height: 24px;
  background: rgba(7, 56, 137, 0.3);
  transform: translateX(-1px);
}

/* Horizontale verbindingslijn helemaal bovenaan UL — raakt de verticale
   lijntjes precies aan op pixel 0 (geen gap meer). */

.sb-tree-ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(7, 56, 137, 0.3);
}

/* Geen horizontale lijn als er maar één kind is */

.sb-tree-ul:has(> .sb-tree-li:only-child)::before {
  display: none;
}

/* Buitenste helft van de horizontale balk wegclippen bij eerste/laatste kind
   — anders steekt de lijn voorbij de centrale punten van de buitenste kaarten.
   Kleur matched de container (.sb-card, default wit). */

.sb-tree-ul > .sb-tree-li:first-child:not(:only-child)::after,
.sb-tree-ul > .sb-tree-li:last-child:not(:only-child)::after {
  content: '';
  position: absolute;
  top: -24px;
  height: 2px;
  width: 50%;
  background: var(--sb-card, #fff);
}

.sb-tree-ul > .sb-tree-li:first-child:not(:only-child)::after {
  left: 0;
}

.sb-tree-ul > .sb-tree-li:last-child:not(:only-child)::after {
  right: 0;
}

/* Persoon-kaartje */

.sb-tree-node-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.7rem 0.6rem 0.6rem;
  background: #ffffff;
  border: 1px solid rgba(7, 56, 137, 0.18);
  border-radius: 14px;
  width: 160px;
  height: 180px;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  box-shadow: 0 2px 6px rgba(3, 21, 63, 0.06);
  overflow: hidden;
}

.sb-tree-node-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(3, 21, 63, 0.12);
  border-color: rgba(7, 56, 137, 0.4);
}

.sb-tree-node-card:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}

.sb-tree-node-card--self {
  border-color: var(--sb-accent);
  background: linear-gradient(180deg, #f0f6fc 0%, #ffffff 100%);
  box-shadow: 0 4px 12px rgba(7, 56, 137, 0.18);
}

.sb-tree-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(7, 56, 137, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-tree-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-tree-avatar-initials {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sb-accent);
  letter-spacing: 0.02em;
}

.sb-tree-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.2;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.sb-tree-role {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.6);
  line-height: 1.25;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-tree-dept {
  display: inline-block;
  align-self: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.75);
  background: rgba(15, 23, 42, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inline social-knoppen onderaan elke grid-card */

.sb-tree-socials {
  margin-top: auto;
  display: inline-flex;
  align-self: center;
  gap: 0.35rem;
  padding-top: 0.35rem;
}

.sb-tree-social {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sb-accent);
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.sb-tree-social:hover {
  background: #062c6e;
  transform: translateY(-1px);
  color: #ffffff;
}

.sb-tree-social:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 1px;
}

/* Cards die social-icons tonen mogen iets hoger zijn — voorkom dat naam/role
   afgekapt worden als beide ook nog het departement-pilletje krijgen. */

.sb-tree-node-card:has(.sb-tree-socials) {
  height: auto;
  min-height: 180px;
  padding-bottom: 0.55rem;
}

/* Profiel-preview modal — opens on tree/team-card click */

.sb-org-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: sbOrgPreviewFadeIn 0.15s ease;
}

@keyframes sbOrgPreviewFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sb-org-preview-modal {
  position: relative;
  width: 100%;
  max-width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 20px 60px rgba(3, 21, 63, 0.3);
  animation: sbOrgPreviewScaleIn 0.18s ease;
}

@keyframes sbOrgPreviewScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.sb-org-preview-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.6);
  transition: background 0.12s ease, color 0.12s ease;
}

.sb-org-preview-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--sb-accent);
}

.sb-org-preview-close:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}

.sb-org-preview-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2rem;
  margin-bottom: 0.85rem;
}

.sb-org-preview-photo {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sb-accent-soft);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--sb-accent), 0 4px 12px rgba(7, 56, 137, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-org-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-org-preview-photo-initials {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sb-accent);
  letter-spacing: 0.02em;
}

.sb-org-preview-head-text {
  min-width: 0;
  flex: 1;
}

.sb-org-preview-name {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  word-break: break-word;
}

.sb-org-preview-role {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.7);
  line-height: 1.3;
}

.sb-org-preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.sb-org-preview-dept {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sb-accent);
  background: var(--sb-accent-soft);
  border-radius: 999px;
}

.sb-org-preview-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.6);
}

.sb-org-preview-intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.78);
  padding: 0.75rem 0.9rem;
  background: rgba(7, 56, 137, 0.04);
  border-left: 3px solid var(--sb-accent);
  border-radius: 8px;
}

.sb-org-preview-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--sb-accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.sb-org-preview-cta:hover {
  background: #062c6e;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(7, 56, 137, 0.25);
}

.sb-org-preview-cta:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}

/* Social-buttons rij onder de hoofd-CTA */

.sb-org-preview-socials {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.sb-org-preview-social {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sb-accent);
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 2px 6px rgba(7, 56, 137, 0.2);
}

.sb-org-preview-social:hover {
  background: #062c6e;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(7, 56, 137, 0.3);
  color: #ffffff;
}

.sb-org-preview-social:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}

/* Mini-chart sectie onderaan de modal */

.sb-org-preview-mini {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sb-org-preview-mini-title {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sb-org-preview-mini-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--sb-accent);
  border-radius: 2px;
}

.sb-org-preview-mini-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.sb-org-preview-mini-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.sb-org-preview-mini-row--reports {
  gap: 0.5rem;
  row-gap: 0.6rem;
}

.sb-org-preview-mini-line {
  width: 2px;
  height: 16px;
  background: rgba(7, 56, 137, 0.3);
}

.sb-org-preview-mini-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 110px;
  padding: 0.55rem 0.45rem;
  background: #ffffff;
  border: 1px solid rgba(7, 56, 137, 0.18);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  box-shadow: 0 1px 4px rgba(3, 21, 63, 0.05);
}

.sb-org-preview-mini-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(3, 21, 63, 0.1);
  border-color: rgba(7, 56, 137, 0.4);
}

.sb-org-preview-mini-card:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}

.sb-org-preview-mini-card--self {
  cursor: default;
  border-color: var(--sb-accent);
  background: linear-gradient(180deg, var(--sb-accent-soft) 0%, #ffffff 100%);
  box-shadow: 0 4px 12px rgba(7, 56, 137, 0.18);
}

.sb-org-preview-mini-card--self:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(7, 56, 137, 0.18);
  border-color: var(--sb-accent);
}

.sb-org-preview-mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(7, 56, 137, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--sb-accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sb-org-preview-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-org-preview-mini-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  width: 100%;
}

.sb-org-preview-mini-role {
  font-size: 0.66rem;
  color: rgba(15, 23, 42, 0.6);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .sb-org-preview-head {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .sb-org-preview-meta {
    justify-content: center;
  }
  .sb-org-preview-mini-card {
    width: 96px;
  }
}

/* Per-locatie team-fallback (geen manager-data in scope) */

.sb-loc-teams {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0 0.75rem;
}

.sb-loc-team {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sb-loc-team-head {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem;
  background: var(--sb-accent);
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(7, 56, 137, 0.15);
}

.sb-loc-team-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sb-loc-team-count {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.sb-loc-team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
}

/* Profiel + Perfect Match zijpaneel */

.sb-wrap-profile-with-aside {
  max-width: 1200px;
  width: 100%;
}

.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-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;
  overflow: hidden;
  background: transparent;
}

.sb-voice-orb-core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #0d3a82 0%, #0a2d6e 46%, #061f4f 100%);
  border: none;
  box-shadow: 0 18px 40px rgba(3, 21, 63, 0.25);
}

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

.sb-voice-orb:hover {
  filter: brightness(1.08);
}

.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(255, 255, 255, 0.85);
  z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.sb-voice-orb-idle .sb-voice-orb-icon {
  color: #073889;
  filter: none;
}

.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(255, 255, 255, 0.9);
}

.sb-voice-orb-listening .sb-voice-orb-core {
  background: transparent;
  border: none;
}

.sb-voice-orb-speaking .sb-voice-orb-core {
  background: transparent;
  border: none;
  animation: none;
}

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

.sb-voice-orb-listening::before,
.sb-voice-orb-speaking::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid rgba(115, 178, 255, 0.35);
  opacity: 0.0;
  z-index: 1;
}

.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: transparent;
  border: none;
}

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

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

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

.sb-voice-orb-error .sb-voice-orb-core {
  background: transparent;
  border: none;
  box-shadow: none;
}

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

.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;
}

.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%;
}

/* Anchor for absolute dropdown; card stays header height when list is open */

.sb-birthdays-widget-shell {
  position: relative;
  z-index: 5;
  width: 100%;
  min-width: 0;
}

.sb-birthdays-widget-top {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}

.sb-birthdays-widget-top--clickable {
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.sb-birthdays-widget-top--clickable:hover {
  background: rgba(7, 56, 137, 0.04);
}

.sb-birthdays-widget-top:disabled {
  cursor: default;
}

.sb-birthdays-widget-header-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #073889 0%, #0065cc 100%);
  color: #ffffff;
  margin: -0.65rem -0.75rem 0;
  padding: 0.45rem 0.85rem;
  border-radius: 12px 12px 0 0;
  width: calc(100% + 1.5rem);
}

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

.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;
}

/* Title + chevron on one row */

.sb-birthdays-widget-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.sb-birthdays-widget-title {
  margin: 0;
  font-family: var(--sb-font-display);
  font-weight: 700;
  color: #ffffff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 1;
  min-width: 0;
}

.sb-birthdays-widget-body {
  padding: 0.55rem 0.1rem 0;
}

.sb-birthdays-loading-line {
  margin: 0;
}

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

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

/* Icon-only toggle: same row as title; one SVG + rotation = stable hit target */

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

.sb-birthdays-expand-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

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

.sb-birthdays-chevron {
  display: block;
  width: 22px;
  height: 22px;
  transform: rotate(90deg);
  transform-origin: center center;
  transition: transform 0.15s ease;
}

.sb-birthdays-expand-toggle--expanded .sb-birthdays-chevron {
  transform: rotate(-90deg);
}

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

/* Sidebar: list drops over content below (no layout shift) */

.sb-birthdays-widget--sidebar .sb-birthdays-expanded-block {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.35rem;
  z-index: 40;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  padding: 0.5rem 0.65rem 0.6rem;
  max-height: min(55vh, 300px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.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.65rem 0.85rem 0.6rem;
}

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

/* ── Directory topbar (title + user pill) ─────────────────────── */

.sb-directory-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sb-directory-topbar-titles {
  flex: 1 1 auto;
  min-width: 0;
}

.sb-user-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-family: var(--sb-font-body);
  color: var(--sb-text);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.sb-user-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 56, 137, 0.2);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.sb-user-pill:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}

.sb-user-pill-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #e9f4f8;
  flex: 0 0 auto;
}

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

.sb-user-pill-label {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.sb-user-pill-chevron {
  color: var(--sb-muted);
  flex-shrink: 0;
}

/* ── Hero chat bar (primary search) ───────────────────────────── */

.sb-hero-chat {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem 0.85rem;
  border-radius: var(--sb-radius);
  background: linear-gradient(135deg, #073889 0%, #0065cc 100%);
  box-shadow: 0 14px 32px rgba(7, 56, 137, 0.18);
  color: #ffffff;
}

.sb-hero-chat-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.sb-hero-chat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-accent);
  flex-shrink: 0;
}

.sb-hero-chat-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-family: var(--sb-font-body);
  font-size: 1rem;
  color: var(--sb-text);
  padding: 0.4rem 0;
  outline: none;
}

.sb-hero-chat-input::placeholder {
  color: #94a3b8;
}

.sb-hero-chat-send {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--sb-accent);
  color: #ffffff;
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s ease, transform 0.12s ease;
}

.sb-hero-chat-send:hover {
  background: #052a6b;
  transform: translateY(-1px);
}

.sb-hero-chat-send-label {
  white-space: nowrap;
}

.sb-hero-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.7rem;
}

.sb-hero-chat-suggestions-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  margin-right: 0.1rem;
}

.sb-hero-chat-suggestion {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--sb-font-body);
  font-size: 0.82rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.sb-hero-chat-suggestion:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Secondary filter row (compact) ───────────────────────────── */

.sb-directory-secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.sb-directory-secondary-row > .sb-toolbar-filters {
  flex: 1 1 320px;
  max-width: 560px;
}

.sb-directory-secondary-row > .sb-self-profile {
  flex: 0 1 360px;
}

.sb-directory-secondary-row > .sb-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

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

.sb-toolbar-filters--compact {
  padding: 0.3rem 0.4rem;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.sb-toolbar-filters--compact::before {
  display: none;
}

.sb-toolbar-filters--compact .sb-filter-bar {
  gap: 0.4rem;
  align-items: center;
}

.sb-toolbar-filters--compact .sb-search-field-input {
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
  font-size: 0.85rem;
  border-width: 1px;
  background: #ffffff;
}

.sb-toolbar-filters--compact .sb-select-styled {
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
  font-size: 0.82rem;
  border-width: 1px;
  background: #ffffff;
}

.sb-organogram-link-btn {
  white-space: nowrap;
  padding: 0.32rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 8px;
  background: transparent;
  color: var(--sb-muted);
  border: 1px solid #e2e8f0;
}

.sb-organogram-link-btn:hover {
  background: #f8fafc;
  color: var(--sb-text);
  border-color: #cbd5e1;
}

@media (max-width: 720px) {
  .sb-directory-secondary-row {
    grid-template-columns: 1fr;
  }
  .sb-directory-topbar {
    flex-direction: row;
    align-items: center;
  }
  .sb-hero-chat-send-label {
    display: none;
  }
}

/* ── Directory filter bar ─────────────────────────────────────── */

.sb-filter-bar {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.sb-search-field {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  align-items: center;
}

.sb-search-field-icon {
  position: absolute;
  left: 0.7rem;
  color: var(--sb-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.sb-search-field-input {
  width: 100%;
  padding: 0.52rem 2rem 0.52rem 2.1rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--sb-text);
  background: var(--sb-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sb-search-field-input::placeholder {
  color: #94a3b8;
}

.sb-search-field-input:focus {
  outline: none;
  border-color: var(--sb-accent);
  box-shadow: 0 0 0 3px rgba(7, 56, 137, 0.1);
}

.sb-search-field-clear {
  position: absolute;
  right: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: var(--sb-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.sb-search-field-clear:hover {
  background: #cbd5e1;
  color: var(--sb-text);
}

.sb-filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sb-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sb-select-styled {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.52rem 2rem 0.52rem 0.75rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sb-text);
  background: var(--sb-bg);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  min-width: 0;
}

.sb-select-styled:focus {
  outline: none;
  border-color: var(--sb-accent);
  box-shadow: 0 0 0 3px rgba(7, 56, 137, 0.1);
}

.sb-select-styled:hover {
  border-color: #94a3b8;
}

.sb-select-chevron {
  position: absolute;
  right: 0.55rem;
  color: var(--sb-muted);
  pointer-events: none;
}

.sb-sort-row {
  display: flex;
  align-items: center;
  margin-top: 0.35rem;
}

.sb-select-wrap--sort {
  display: inline-flex;
  align-items: center;
}

.sb-sort-icon {
  position: absolute;
  left: 0.6rem;
  color: var(--sb-muted);
  pointer-events: none;
  z-index: 1;
}

.sb-select-styled--sort {
  padding-left: 2rem;
  background: transparent;
  border-color: transparent;
  font-size: 0.82rem;
  color: var(--sb-muted);
  font-weight: 600;
}

.sb-select-styled--sort:hover {
  border-color: #e2e8f0;
  color: var(--sb-text);
}

.sb-select-styled--sort:focus {
  border-color: var(--sb-accent);
  box-shadow: 0 0 0 3px rgba(7, 56, 137, 0.1);
  color: var(--sb-text);
}

.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;
}

/* Nieuw bij Hero — losse heading + tegels-grid, geen card-omhulling meer */

.sb-nieuw-bij-hero {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sb-nieuw-bij-hero-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.sb-nieuw-bij-hero-sub {
  margin: 0 0 0.5rem;
  max-width: 48rem;
  color: rgba(15, 23, 42, 0.65);
  font-size: 0.95rem;
}

.sb-nieuw-bij-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
}

.sb-nieuw-bij-hero .sb-profile-tile {
  background: #ffffff;
  border: 1px solid rgba(7, 56, 137, 0.12);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(3, 21, 63, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sb-nieuw-bij-hero .sb-profile-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(3, 21, 63, 0.1);
}

/* Mijn-profiel-widget — compacte horizontale layout naast de zoekbalk */

.sb-card.sb-self-profile {
  background: linear-gradient(135deg, var(--sb-accent) 0%, #0a4ec0 100%);
  color: #ffffff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem 0.55rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
}

.sb-self-profile-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-self-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-self-profile-initials {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.sb-self-profile-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
  text-align: left;
  line-height: 1.2;
}

.sb-self-profile-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-self-profile-role {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Afdeling laten we hier weg — staat al onder rol op de profielpagina,
   en horizontaal heeft het te weinig ruimte. */

.sb-self-profile-dept {
  display: none;
}

.sb-btn.sb-self-profile-cta {
  flex-shrink: 0;
  margin: 0;
  width: auto;
  background: #ffffff;
  color: var(--sb-accent);
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.sb-btn.sb-self-profile-cta:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.sb-btn.sb-self-profile-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.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: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sb-location-group-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sb-accent);
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}

.sb-location-group-count {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.78;
}

.sb-location-group-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  opacity: 0.9;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.sb-location-group-toggle:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.sb-location-group-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  opacity: 1;
}

.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;
}

/* ── Rubric cards (profile view) ─────────────────────────────── */

.sb-rubrics-section-title {
  margin: 0.25rem 0 0.9rem;
}

.sb-rubric-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sb-rubric-card {
  background: var(--sb-card);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid #e8edf4;
}

.sb-rubric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7, 56, 137, 0.12);
}

.sb-rubric-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.05);
}

/* Achtergrondinformatie — Hero Blauw Soft family */

.sb-rubric-card-header--bg {
  background: linear-gradient(135deg, #e9f4f8 0%, #d3e6f0 100%);
  color: #073889;
  border-bottom-color: rgba(7, 56, 137, 0.08);
}

/* Hero — Hero Blauw → Blauw Bold */

.sb-rubric-card-header--hero {
  background: linear-gradient(135deg, #073889 0%, #0065cc 100%);
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Persoonlijke vragen — Hero Oranje Thin family */

.sb-rubric-card-header--personal {
  background: linear-gradient(135deg, #fde1b6 0%, #f9d49a 100%);
  color: #944100;
  border-bottom-color: rgba(244, 96, 21, 0.08);
}

/* Favorieten — Hero Groen soft */

.sb-rubric-card-header--fav {
  background: linear-gradient(135deg, #e2f7e5 0%, #c8eece 100%);
  color: #1d7a2a;
  border-bottom-color: rgba(56, 189, 71, 0.1);
}

/* Fun vragen — Hero Geel soft */

.sb-rubric-card-header--fun {
  background: linear-gradient(135deg, #fff5d9 0%, #ffecb8 100%);
  color: #7a5600;
  border-bottom-color: rgba(255, 189, 13, 0.12);
}

.sb-rubric-card-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.sb-rubric-card-title {
  white-space: nowrap;
}

.sb-rubric-card-body {
  padding: 1rem 1.25rem 1.15rem;
  flex: 1;
  font-size: 1rem;
  line-height: 1.65;
}

.sb-rubric-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sb-rubric-dl dt {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  padding-top: 0.65rem;
}

/* Label colors match their category header — all Hero brand palette */

.sb-rubric-card-header--bg + .sb-rubric-card-body .sb-rubric-dl dt { color: #073889; }

.sb-rubric-card-header--hero + .sb-rubric-card-body .sb-rubric-dl dt { color: #0065cc; }

.sb-rubric-card-header--personal + .sb-rubric-card-body .sb-rubric-dl dt { color: #f46015; }

.sb-rubric-card-header--fav + .sb-rubric-card-body .sb-rubric-dl dt { color: #38bd47; }

.sb-rubric-card-header--fun + .sb-rubric-card-body .sb-rubric-dl dt { color: #c65b00; }

.sb-rubric-dl dt:first-of-type {
  padding-top: 0;
}

.sb-rubric-dl dd {
  margin: 0.15rem 0 0;
  padding: 0;
  white-space: pre-wrap;
  color: var(--sb-text);
}

.sb-rubric-dl--compact dt {
  padding-top: 0.5rem;
}

.sb-rubric-dl--compact dd {
  font-weight: 500;
}

.sb-rubric-card--full {
  margin-bottom: 1rem;
  overflow: visible;
}

.sb-rubric-card--full > .sb-rubric-card-header {
  border-radius: 14px 14px 0 0;
}

.sb-rubric-empty {
  margin: 0;
  color: var(--sb-muted);
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .sb-rubric-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Rubrics dual-view (carousel + list) ──────────────────────── */

.sb-rv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.sb-rubric-card-header .sb-rv-toggle--on-hero {
  flex-shrink: 0;
}

/* ── Toggle (card / list) ─────────────────────────────────────── */

.sb-rv-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #eef1f6;
  flex-shrink: 0;
}

.sb-rv-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6b7589;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.sb-rv-toggle-btn:hover {
  color: #2d3a50;
}

.sb-rv-toggle-btn--active {
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sb-rv-toggle--on-hero {
  background: rgba(255, 255, 255, 0.15);
  margin-left: auto;
}

.sb-rv-toggle--on-hero .sb-rv-toggle-btn {
  color: rgba(255, 255, 255, 0.6);
}

.sb-rv-toggle--on-hero .sb-rv-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.sb-rv-toggle--on-hero .sb-rv-toggle-btn--active {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: none;
}

/* ── Carousel content + sequenced animation ───────────────────── */

.sb-rv-content {
  transition: opacity 0.15s ease-out;
}

.sb-rv-content--leaving {
  opacity: 0;
}

.sb-rv-title {
  text-align: center;
  font-family: var(--sb-font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 18px;
  animation: sb-rv-title-enter 0.3s ease-out both;
}

@keyframes sb-rv-title-enter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Tile grid ────────────────────────────────────────────────── */

.sb-rv-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sb-rv-tile {
  border-radius: 12px;
  padding: 14px 18px;
  animation: sb-rv-tile-enter 0.35s ease-out both;
}

.sb-rv-tile--wide {
  grid-column: 1 / -1;
}

@keyframes sb-rv-tile-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sb-rv-tile-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.sb-rv-tile-value {
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* ── Compact tiles (list view) ────────────────────────────────── */

.sb-rv-tiles--compact .sb-rv-tile {
  padding: 10px 14px;
}

.sb-rv-tiles--compact .sb-rv-tile-label {
  font-size: 10px;
}

.sb-rv-tiles--compact .sb-rv-tile-value {
  font-size: 13px;
}

/* ── Carousel navigation (arrows + dots) ──────────────────────── */

.sb-rv-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.sb-rv-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid #dce1ea;
  border-radius: 50%;
  background: #fff;
  color: #4a5568;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.sb-rv-nav-btn:hover {
  border-color: #a0aec0;
  color: #1a1a2e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.sb-rv-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.sb-rv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d1d5de;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.sb-rv-dot--active {
  transform: scale(1.3);
}

.sb-rv-dot:hover:not(.sb-rv-dot--active) {
  background: #a0aab8;
}

/* ── List view ────────────────────────────────────────────────── */

.sb-rv-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.sb-rv-list-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sb-rv-list-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.sb-rv-list-heading-line {
  flex: 1;
  border-bottom: 1.5px solid;
}

/* ── Radial view ──────────────────────────────────────────────── */

.sb-radial {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0 1rem;
  overflow: visible;
}

.sb-radial-cta {
  margin: 0 0 0.25rem;
  font-family: var(--sb-font-display);
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
  letter-spacing: 0.01em;
}

.sb-radial-stage {
  position: relative;
  width: var(--sb-radial-s, 560px);
  height: var(--sb-radial-s, 560px);
  max-width: 100%;
  flex-shrink: 0;
  background: radial-gradient(circle at center, #f0f6fb 0%, transparent 70%);
  border-radius: 50%;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.4s ease,
              background 0.4s ease 0.1s;
}

.sb-radial-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sb-radial-line {
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}

.sb-radial-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  box-shadow: 0 0 0 3.5px rgba(0, 101, 204, 0.25);
  overflow: hidden;
  z-index: 2;
}

.sb-radial-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sb-radial-photo--empty {
  background: linear-gradient(135deg, #9ecae2, #4197cb);
}

.sb-radial-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 25;
  transform: translate(-50%, -50%);
}

.sb-radial-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  box-shadow: 0 2px 10px rgba(3, 21, 63, 0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.sb-radial-icon-btn:hover {
  box-shadow: 0 4px 18px rgba(3, 21, 63, 0.28);
}

.sb-radial-icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.sb-radial-icon-inner img {
  filter: brightness(0) invert(1);
}

.sb-radial-label {
  margin-top: 6px;
  font-family: var(--sb-font-display);
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  transition: font-weight 0.15s ease, color 0.15s ease;
  pointer-events: none;
}

.sb-radial-label--active {
  font-weight: 700;
  color: #03153f;
}

.sb-radial-node--active .sb-radial-icon-btn {
  box-shadow: 0 4px 20px rgba(3, 21, 63, 0.32);
}

/* ── Heartbeat: indicate circles are clickable ────────────────── */

@keyframes sb-radial-heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  8% { transform: scale(1.11); }
  18% { transform: scale(0.98); }
  26% { transform: scale(1.06); }
  34% { transform: scale(1); }
}

.sb-radial-icon-btn {
  animation: sb-radial-heartbeat 4s ease-in-out infinite;
  animation-fill-mode: both;
}

.sb-radial-node--active .sb-radial-icon-btn,
.sb-radial--match .sb-radial-icon-btn,
.sb-radial--card-open .sb-radial-icon-btn {
  animation: none;
}

/* ── Radial card ─────────────────────────────────────────────── */

/* Desktop: absolute-centered inside the stage.                  */

/* The stage grows dynamically so circles are always outside     */

/* the card bounds — overlap is structurally impossible.          */

.sb-radial-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: calc(100% - 48px);
  max-width: 460px;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 44px rgba(3, 21, 63, 0.22), 0 0 0 1px rgba(0, 101, 204, 0.08);
  animation: sb-radial-card-in 0.3s ease-out 0.06s both;
  display: flex;
  flex-direction: column;
}

/* Mobile: normal-flow card below the stage */

.sb-radial-card--below {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  margin: 0.5rem auto 0;
  animation-name: sb-radial-card-below-in;
  animation-delay: 0s;
}

@keyframes sb-radial-card-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes sb-radial-card-below-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sb-radial-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sb-font-display);
  font-size: 17px;
  font-weight: 700;
  padding: 14px 20px 12px;
  flex-shrink: 0;
  border-radius: 14px 14px 0 0;
}

.sb-radial-card-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-radial-card-header-icon img {
  filter: brightness(0) invert(1);
}

.sb-radial-card-body {
  padding: 4px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--sb-font-display);
}

.sb-radial-card-field {
  padding: 10px 0;
}

.sb-radial-card-field--border {
  border-bottom: 1px solid #eef1f6;
}

.sb-radial-card-field-label {
  font-family: var(--sb-font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.sb-radial-card-field-value {
  font-family: var(--sb-font-display);
  font-size: 15px;
  color: #1a1a2e;
  line-height: 1.55;
  white-space: pre-wrap;
}

.sb-radial-card-empty {
  color: #94a3b8;
  font-size: 14px;
  font-style: italic;
  margin: 0;
  padding: 10px 0;
}

/* ── Perfect Match: radial match mode ────────────────────────── */

/* ── PM trigger card (mirrors the aside card) ────────────────── */

.sb-radial-pm-card {
  text-align: center;
  padding: 0.75rem 1.25rem 1rem;
  max-width: 420px;
  animation: sb-pm-btn-enter 0.4s ease-out both;
}

.sb-radial-pm-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  font-family: var(--sb-font-display);
  color: #0a225d;
}

.sb-radial-pm-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #d3e6f0, #e9f4f8);
  color: #03153f;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--sb-font-display);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.sb-radial-pm-btn:hover {
  background: linear-gradient(135deg, #c5dbe9, #daeaf3);
}

@keyframes sb-pm-btn-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Viewer photo (hidden in normal mode, visible in match mode) */

.sb-radial-match-viewer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.3);
  opacity: 0;
  transform: translate(calc(-50% + 80px), -50%) scale(0.5);
  transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s;
  pointer-events: none;
}

/* ── Match mode active state ─────────────────────────────────── */

.sb-radial--match .sb-radial-stage {
  --sb-radial-s: 560px;
  height: 150px;
  border-radius: 24px;
  background: transparent;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
              height 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
              border-radius 0.4s ease 0.2s,
              background 0.3s ease 0s;
}

.sb-radial--match .sb-radial-svg {
  opacity: 0;
  transition: opacity 0.35s ease 0s;
}

.sb-radial-svg {
  transition: opacity 0.35s ease 0.55s;
}

.sb-radial--match .sb-radial-node {
  opacity: 0;
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease 0s;
}

.sb-radial-node {
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease 0.55s;
}

.sb-radial--match .sb-radial-center {
  transform: translate(calc(-50% - 52px), -50%) scale(0.727);
  box-shadow: 0 0 0 3.5px rgba(0, 101, 204, 0.3);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, box-shadow 0.3s ease 0.3s;
}

.sb-radial-center {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.25s, box-shadow 0.3s ease 0.25s;
}

.sb-radial--match .sb-radial-match-viewer {
  opacity: 1;
  transform: translate(calc(-50% + 52px), -50%) scale(0.727);
  transition: opacity 0.45s ease 0.35s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}

.sb-radial--match .sb-radial-card {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease 0s;
}

/* ── Match info (below stage) ────────────────────────────────── */

.sb-radial-match-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  animation: sb-match-info-in 0.5s ease-out 0.9s both;
}

@keyframes sb-match-info-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sb-radial-match-names {
  font-family: var(--sb-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #03153f;
  text-align: center;
}

.sb-radial-match-body {
  max-width: 32rem;
  text-align: center;
  width: 100%;
}

.sb-radial-match-summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  white-space: pre-wrap;
  animation: sb-match-text-in 0.45s ease-out both;
}

@keyframes sb-match-text-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sb-radial-match-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #64748b;
  padding: 0.5rem 0;
}

.sb-radial-match-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #f79c44;
  border-radius: 50%;
  animation: sbSpin 0.7s linear infinite;
}

.sb-radial-match-error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.9rem;
}

.sb-radial-match-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.25rem;
  padding: 0.4rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.sb-radial-match-back:hover {
  color: #03153f;
  border-color: #94a3b8;
  background: #f8fafc;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .sb-radial--match .sb-radial-stage,
  .sb-radial--match .sb-radial-svg,
  .sb-radial--match .sb-radial-node,
  .sb-radial--match .sb-radial-center,
  .sb-radial--match .sb-radial-match-viewer,
  .sb-radial--match .sb-radial-card,
  .sb-radial-stage,
  .sb-radial-svg,
  .sb-radial-node,
  .sb-radial-center,
  .sb-radial-match-viewer {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .sb-radial-match-info,
  .sb-radial-match-summary,
  .sb-radial-pm-btn,
  .sb-radial-icon-btn {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}

/* ── List view fields ────────────────────────────────────────── */

.sb-rv-list-section {
  border-left: 3px solid;
  padding-left: 1rem;
  padding-bottom: 0.25rem;
}

.sb-rv-list-heading-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sb-rv-list-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 1.5rem;
}

.sb-rv-list-field-label {
  font-family: var(--sb-font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sb-rv-list-field-value {
  font-size: 15px;
  color: #1a1a2e;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* ── Compact rubric card (fun fact) ──────────────────────────── */

/* ── Fun fact (inline inside Over card) ───────────────────────── */

.sb-fun-fact-inline {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.sb-fun-fact-inline-label {
  display: block;
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0065cc;
  margin-bottom: 0.25rem;
}

.sb-fun-fact-inline-text {
  display: block;
  color: #1e293b;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 600px) {
  .sb-rv-tiles {
    grid-template-columns: 1fr;
  }

  .sb-rv-tile--wide {
    grid-column: auto;
  }

  .sb-rv-title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .sb-radial-stage {
    --sb-radial-s: 340px !important;
  }

  .sb-radial-center {
    width: 80px;
    height: 80px;
  }

  .sb-radial-icon-btn {
    width: 46px;
    height: 46px;
  }

  .sb-radial-label {
    font-size: 9px;
  }

  .sb-radial-card {
    max-width: 100%;
    border-radius: 12px;
  }

  .sb-radial-card-header {
    font-size: 15px;
    padding: 12px 14px 10px;
  }

  .sb-radial-card-body {
    padding: 4px 14px 14px;
  }

  .sb-radial-card-field-label {
    font-size: 11px;
  }

  .sb-radial-card-field-value {
    font-size: 14px;
  }

  .sb-rv-list-field {
    padding-left: 0.75rem;
  }

  .sb-radial--match .sb-radial-stage {
    height: 120px;
  }

  .sb-radial--match .sb-radial-center {
    transform: translate(calc(-50% - 40px), -50%) scale(0.636);
  }

  .sb-radial--match .sb-radial-match-viewer {
    transform: translate(calc(-50% + 40px), -50%) scale(0.636);
  }

  .sb-radial-match-viewer {
    width: 80px;
    height: 80px;
  }

  .sb-radial-pm-card {
    max-width: 320px;
    padding: 0.5rem 1rem 0.75rem;
  }

  .sb-radial-pm-title {
    font-size: 0.92rem;
  }

  .sb-radial-pm-btn {
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
  }

  .sb-radial-match-names {
    font-size: 0.95rem;
  }

  .sb-radial-match-summary {
    font-size: 0.88rem;
  }
}

.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: transparent;
}

.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: visible so the dropdown can overlay content below; top accent uses ::before only */
  overflow: visible;
}

/* Later page sections stack above earlier siblings by default; lift card when open so the dropdown paints on top */

.sb-birthdays-widget--sidebar.sb-birthdays-widget--expanded {
  z-index: 30;
}

.sb-card.sb-birthdays-widget--sidebar::before {
  display: none;
}

.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 {
  font-family: var(--sb-font-display);
  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-profile-tile-no-profile {
  font-family: var(--sb-font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.5);
  background: rgba(15, 23, 42, 0.05);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: default;
  user-select: 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-btn--danger-subtle {
  background: transparent;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
}

.sb-btn--danger-subtle:hover {
  background: #fef2f2;
}

.sb-photo-preview {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.sb-leave-dialog {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 420px;
  width: 90%;
  margin: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.sb-leave-dialog-text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1e293b;
}

.sb-leave-dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

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

.sb-input--readonly {
  background-color: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
  min-height: calc(1rem + 1rem + 2px);
  display: flex;
  align-items: center;
  cursor: default;
  user-select: text;
}

.sb-organogram-section {
  margin-top: 1.25rem;
}

.sb-organogram-section:first-child {
  margin-top: 0;
}

.sb-organogram-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

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

.sb-organogram-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  font: inherit;
  color: inherit;
}

.sb-organogram-card:hover {
  border-color: #cbd5f5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.sb-organogram-card:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.sb-organogram-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #312e81;
  font-weight: 600;
}

.sb-organogram-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sb-organogram-avatar-initials {
  font-size: 0.9rem;
}

.sb-organogram-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sb-organogram-name {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-organogram-role {
  font-size: 0.85rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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-family: var(--sb-font-display);
  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;
  }
}

/* ── Skeleton loading states ────────────────────────────────────── */

@keyframes sb-skeleton-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.sb-skeleton {
  background: linear-gradient(90deg, #e8edf4 25%, #f0f4f9 37%, #e8edf4 63%);
  background-size: 800px 100%;
  animation: sb-skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

.sb-skeleton-circle {
  composes: sb-skeleton;
  border-radius: 50%;
}

.sb-skeleton--profile-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.sb-skeleton--profile-hero {
  background: var(--sb-card);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.sb-skeleton--profile-hero-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(90deg, #e8edf4 25%, #f0f4f9 37%, #e8edf4 63%);
  background-size: 800px 100%;
  animation: sb-skeleton-shimmer 1.6s ease-in-out infinite;
}

.sb-skeleton--profile-hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.5rem;
}

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

.sb-skeleton--card-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sb-skeleton--directory-wrap {
  padding: 1.5rem 0;
}

.sb-skeleton--toolbar {
  background: var(--sb-card);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.sb-skeleton--tile {
  background: var(--sb-card);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.sb-skeleton--tile-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e8edf4 25%, #f0f4f9 37%, #e8edf4 63%);
  background-size: 800px 100%;
  animation: sb-skeleton-shimmer 1.6s ease-in-out infinite;
}

.sb-skeleton--review-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.sb-skeleton--interview-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sb-skeleton--chat-bubble {
  border-radius: 14px;
  padding: 0;
}

.sb-skeleton--chat-bubble-left {
  align-self: flex-start;
  max-width: 65%;
}

.sb-skeleton--chat-bubble-right {
  align-self: flex-end;
  max-width: 50%;
}

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

.sb-skeleton--location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .sb-skeleton,
  .sb-skeleton--profile-hero-photo,
  .sb-skeleton--tile-photo {
    animation: none;
  }
}

/* ─── Admin Stats ──────────────────────────────────────────── */

.sb-stats-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.sb-stats-header .sb-title {
  margin-bottom: 0.15rem;
}

.sb-stats-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sb-stats-kpi {
  text-align: center;
  padding: 1.1rem 0.75rem;
}

.sb-stats-kpi-value {
  font-family: var(--sb-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sb-accent);
  line-height: 1.1;
}

.sb-stats-kpi-label {
  font-size: 0.82rem;
  color: var(--sb-muted);
  margin-top: 0.25rem;
}

.sb-stats-mode-card {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
}

.sb-stats-section-title {
  font-family: var(--sb-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.sb-stats-mode-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sb-stats-mode-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  align-items: center;
  gap: 0.75rem;
}

.sb-stats-mode-label {
  font-size: 0.88rem;
  font-weight: 500;
}

.sb-stats-bar-track {
  height: 22px;
  background: #e2e8f0;
  border-radius: 11px;
  overflow: hidden;
}

.sb-stats-bar-fill {
  height: 100%;
  border-radius: 11px;
  transition: width 0.5s ease;
  min-width: 2px;
}

.sb-stats-bar-fill--chat {
  background: var(--sb-accent);
}

.sb-stats-bar-fill--voice {
  background: #10b981;
}

.sb-stats-bar-fill--unknown {
  background: #94a3b8;
}

.sb-stats-mode-count {
  font-size: 0.82rem;
  color: var(--sb-muted);
  text-align: right;
  white-space: nowrap;
}

.sb-stats-mode-donut-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.sb-stats-donut {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.sb-stats-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.sb-stats-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sb-stats-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.sb-stats-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sb-stats-legend-dot--chat {
  background: var(--sb-accent);
}

.sb-stats-legend-dot--voice {
  background: #10b981;
}

.sb-stats-table-card {
  padding: 1.25rem 1.5rem;
}

.sb-stats-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sb-stats-filter-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.sb-stats-filter-btn {
  font-family: var(--sb-font-body);
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: transparent;
  color: var(--sb-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sb-stats-filter-btn:hover {
  border-color: var(--sb-accent);
  color: var(--sb-accent);
}

.sb-stats-filter-btn--active {
  background: var(--sb-accent);
  border-color: var(--sb-accent);
  color: #fff;
}

.sb-stats-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sb-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.sb-stats-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sb-muted);
  padding: 0.5rem 0.65rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.sb-stats-table td {
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.sb-stats-table tbody tr:hover {
  background: #f8fafc;
}

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

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

.sb-stats-date {
  color: var(--sb-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.sb-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  white-space: nowrap;
}

.sb-stats-badge--published {
  background: #d1fae5;
  color: #065f46;
}

.sb-stats-badge--review {
  background: #fef3c7;
  color: #92400e;
}

.sb-stats-badge--draft {
  background: #e2e8f0;
  color: #475569;
}

.sb-stats-badge--chat {
  background: var(--sb-accent-soft);
  color: var(--sb-accent);
}

.sb-stats-badge--voice {
  background: #d1fae5;
  color: #065f46;
}

.sb-stats-badge--unknown {
  background: #f1f5f9;
  color: #64748b;
}

@media (max-width: 600px) {
  .sb-stats-mode-row {
    grid-template-columns: 70px 1fr 80px;
    gap: 0.5rem;
  }

  .sb-stats-table-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Chatbot widget =====
   The FAB + panel are absolute-positioned inside `.sb-chat-anchor`, which is
   itself `position: sticky; bottom: 0` inside `.sb-app`. Effect: the widget
   stays at the bottom-right of the smoelenboek's scroll pane, both in
   standalone mode and inside the framework's split-screen — no more bleeding
   over the other app. */

.sb-chat-anchor {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 9999;
  pointer-events: none;
}

.sb-chat-fab {
  position: absolute;
  right: 28px;
  bottom: 28px;
  pointer-events: auto;
  min-height: 60px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #073889 0%, #0065cc 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(7, 56, 137, 0.42), 0 0 0 6px rgba(7, 56, 137, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 9999;
  animation: sb-chat-fab-pulse 2.6s ease-in-out infinite;
}

.sb-chat-fab--open {
  padding: 0;
  width: 56px;
  min-height: 56px;
  height: 56px;
  border-radius: 50%;
  justify-content: center;
  gap: 0;
  animation: none;
  box-shadow: 0 10px 24px rgba(7, 56, 137, 0.4);
}

.sb-chat-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.sb-chat-fab--open .sb-chat-fab-icon {
  background: transparent;
  width: auto;
  height: auto;
}

.sb-chat-fab-label {
  white-space: nowrap;
}

.sb-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(7, 56, 137, 0.5), 0 0 0 8px rgba(7, 56, 137, 0.1);
}

.sb-chat-fab:active {
  transform: translateY(0);
}

@keyframes sb-chat-fab-pulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(7, 56, 137, 0.42), 0 0 0 0 rgba(7, 56, 137, 0.18); }
  50%      { box-shadow: 0 14px 34px rgba(7, 56, 137, 0.42), 0 0 0 12px rgba(7, 56, 137, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .sb-chat-fab { animation: none; }
}

.sb-chat-panel {
  position: absolute;
  right: 28px;
  bottom: 104px;
  width: 380px;
  /* cqi keeps the panel inside the smoelenboek's column in split-screen */
  max-width: min(calc(100cqi - 32px), calc(100vw - 32px));
  height: 600px;
  max-height: calc(100vh - 120px);
  pointer-events: auto;
  background: var(--sb-card);
  border-radius: var(--sb-radius);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  border: 1px solid rgba(15, 23, 42, 0.06);
  animation: sb-chat-pop 0.18s ease-out;
}

@keyframes sb-chat-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sb-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--sb-card);
  color: var(--sb-text);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sb-chat-header-title {
  font-family: var(--sb-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.sb-chat-header-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.sb-chat-header-text-btn {
  background: transparent;
  border: none;
  color: var(--sb-muted);
  font-size: 0.78rem;
  font-family: var(--sb-font-body);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.12s ease, color 0.12s ease;
}

.sb-chat-header-text-btn:hover {
  background: var(--sb-accent-soft);
  color: var(--sb-accent);
}

.sb-chat-header-btn {
  background: transparent;
  border: none;
  color: var(--sb-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s ease, color 0.12s ease;
}

.sb-chat-header-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--sb-text);
}

.sb-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
}

.sb-chat-empty {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: auto 0;
  padding: 1rem 0.25rem;
}

.sb-chat-empty-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sb-muted);
  line-height: 1.45;
}

.sb-chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sb-chat-suggestion {
  text-align: left;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--sb-text);
  cursor: pointer;
  font-family: var(--sb-font-body);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.sb-chat-suggestion:hover {
  border-color: var(--sb-accent);
  background: var(--sb-accent-soft);
}

.sb-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sb-chat-msg--user {
  align-items: flex-end;
}

.sb-chat-msg--assistant {
  align-items: flex-start;
}

.sb-chat-msg-bubble {
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.sb-chat-msg--user .sb-chat-msg-bubble {
  background: var(--sb-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.sb-chat-msg--assistant .sb-chat-msg-bubble {
  background: #fff;
  color: var(--sb-text);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom-left-radius: 4px;
}

.sb-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--sb-muted);
  font-style: italic;
}

.sb-chat-status-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(7, 56, 137, 0.2);
  border-top-color: var(--sb-accent);
  border-radius: 50%;
  animation: sb-chat-spin 0.7s linear infinite;
}

@keyframes sb-chat-spin {
  to { transform: rotate(360deg); }
}

.sb-chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.sb-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sb-muted);
  animation: sb-chat-bounce 1.2s infinite;
}

.sb-chat-typing span:nth-child(2) { animation-delay: 0.15s; }

.sb-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes sb-chat-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.sb-chat-mention {
  color: var(--sb-accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(7, 56, 137, 0.25);
  transition: border-color 0.12s ease, background 0.12s ease;
  padding: 0 1px;
  border-radius: 2px;
}

.sb-chat-mention:hover {
  border-bottom-color: var(--sb-accent);
  background: var(--sb-accent-soft);
}

.sb-chat-msg--user .sb-chat-mention {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.sb-chat-msg--user .sb-chat-mention:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sb-chat-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border-top: 1px solid rgba(185, 28, 28, 0.2);
  flex-shrink: 0;
}

.sb-chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  align-items: flex-end;
  flex-shrink: 0;
}

.sb-chat-input {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-family: var(--sb-font-body);
  font-size: 0.9rem;
  resize: none;
  max-height: 100px;
  min-height: 38px;
  outline: none;
  background: #f8fafc;
  transition: border-color 0.12s ease;
}

.sb-chat-input:focus {
  border-color: var(--sb-accent);
  background: #fff;
}

.sb-chat-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sb-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sb-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s ease, opacity 0.12s ease;
}

.sb-chat-send:hover:not(:disabled) {
  background: #052a6b;
}

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

@media (max-width: 480px) {
  .sb-chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    bottom: 92px;
    height: calc(100vh - 120px);
  }
  .sb-chat-fab {
    right: 16px;
    bottom: 16px;
    font-size: 0.92rem;
    padding: 0 18px 0 14px;
    min-height: 54px;
  }
}

/* =============================================================
   Container-query responsive layer
   -----------------------------------------------------------
   Mirrors the existing viewport-based media queries but reacts
   to the smoelenboek's own container width instead. This makes
   the UI work in the framework's split-screen mode, where the
   viewport stays wide but the app gets a narrower column.

   Container is named `sb-app` (set on .sb-app in App.tsx).
   ============================================================= */

/* Tablet-ish container (~960px and below) — shrink the wide
   profile-hero grid first so portrait photo + meta keep breathing room. */

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

/* Side-by-side / narrow (~720px and below) — collapse all the
   two-column dashboard rows into single columns. */

@container sb-app (max-width: 720px) {
  .sb-wrap {
    padding: 1rem 0.85rem 1.75rem;
  }

  .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-directory-secondary-row {
    grid-template-columns: 1fr;
  }

  .sb-directory-topbar {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }

  .sb-hero-chat-send-label {
    display: none;
  }

  .sb-card.sb-profile-hero {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .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-choice-grid {
    grid-template-columns: 1fr;
  }
  .sb-choice-card {
    min-height: 200px;
  }

  .sb-voice-shell {
    min-height: 70vh;
    padding: 1rem;
  }

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

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

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

  /* Profile + Perfect-Match aside collapses to a single column even when
     the viewport itself is wider than 900px (override the min-width media). */
  .sb-profile-page-layout {
    grid-template-columns: 1fr;
  }
  .sb-profile-aside {
    position: static;
  }

  /* Tighten the directory grids so 2 tiles still fit comfortably. */
  .sb-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
  }
  .sb-skeleton--grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
  .sb-organogram-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Tight side-by-side (~560px and below) — phone-ish in splitscreen
   or actual phone in standalone mode. */

@container sb-app (max-width: 560px) {
  .sb-wrap {
    padding: 0.85rem 0.7rem 1.5rem;
  }

  .sb-card {
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
  }

  /* Title stack: keep titles + user-pill on one row but allow shrinking. */
  .sb-directory-topbar {
    gap: 0.5rem;
  }
  .sb-directory-topbar .sb-title {
    font-size: 1.15rem;
  }
  .sb-directory-subtitle {
    font-size: 0.85rem;
  }
  .sb-user-pill-label {
    display: none;
  }
  .sb-user-pill {
    padding: 0.3rem 0.4rem;
  }

  /* Filter bar: search + selects stack vertically. */
  .sb-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  .sb-filter-group {
    flex-wrap: wrap;
  }
  .sb-filter-group .sb-select-wrap,
  .sb-filter-group .sb-select-styled {
    width: 100%;
  }
  .sb-select-wrap {
    width: 100%;
  }

  /* Directory tiles: 2-up min, smaller thumbs. */
  .sb-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.6rem;
  }
  .sb-skeleton--grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
  }
  .sb-profile-tile {
    padding: 0.85rem 0.7rem 0.8rem;
    gap: 0.55rem;
  }
  .sb-avatar-circle {
    width: 76px;
    height: 76px;
  }

  /* Org-tree cards: smaller so a 3-deep tree still fits before scroll. */
  .sb-tree-node-card {
    width: 130px;
    height: 160px;
    padding: 0.55rem 0.45rem;
  }
  .sb-tree-node-card:has(.sb-tree-socials) {
    min-height: 160px;
  }
  .sb-tree-avatar {
    width: 44px;
    height: 44px;
  }
  .sb-tree-name {
    font-size: 0.84rem;
  }
  .sb-tree-role {
    font-size: 0.72rem;
  }
  .sb-tree-li {
    padding: 0 0.35rem;
  }

  /* Chip rows wrap tighter. */
  .sb-tree-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .sb-tree-toolbar-label {
    padding-top: 0;
  }

  /* Profile-hero (when profile is the page) fully stacks. */
  .sb-card.sb-profile-hero {
    padding: 0.85rem;
    gap: 0.85rem;
  }
  .sb-profile-hero-photo {
    height: 180px;
  }
  .sb-profile-hero-name {
    font-size: 1.05rem;
  }

  /* Rubrics carousel tiles -> 1 col. */
  .sb-rv-tiles {
    grid-template-columns: 1fr;
  }
  .sb-rv-tile--wide {
    grid-column: auto;
  }
  .sb-rv-title {
    font-size: 1.2rem;
  }

  /* Stats: stack mode rows + KPI shrink. */
  .sb-stats-mode-row {
    grid-template-columns: 70px 1fr 70px;
    gap: 0.4rem;
  }
  .sb-stats-mode-label,
  .sb-stats-mode-count {
    font-size: 0.78rem;
  }
  .sb-stats-kpi-value {
    font-size: 1.6rem;
  }
  .sb-stats-table-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Empty-state cards a touch tighter. */
  .sb-empty-state-inner {
    padding: 1rem 0.85rem 1.1rem;
  }
  .sb-empty-state-title {
    font-size: 1.15rem;
  }

  /* Birthdays widget: keep readable in a narrow card. */
  .sb-birthdays-widget-header-strip {
    padding: 0.4rem 0.65rem;
  }

  /* Chat panel: full-width inside the app on tight screens. */
  .sb-chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    bottom: 84px;
  }
  .sb-chat-fab {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    padding: 0 16px 0 12px;
    font-size: 0.9rem;
  }
}

/* Very narrow (~400px and below) — squeeze further. */

@container sb-app (max-width: 400px) {
  .sb-wrap {
    padding: 0.7rem 0.55rem 1.25rem;
  }

  .sb-card {
    padding: 0.7rem 0.75rem;
  }

  /* Single-column directory tiles when 2-up no longer fits. */
  .sb-grid {
    grid-template-columns: 1fr;
  }
  .sb-skeleton--grid {
    grid-template-columns: 1fr;
  }
  .sb-loc-team-grid {
    flex-direction: column;
  }
  .sb-loc-team-grid > * {
    width: 100%;
  }

  /* Directory title row: stack title + pill so neither truncates. */
  .sb-directory-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .sb-user-pill {
    align-self: flex-end;
  }

  /* Org-tree cards even smaller; expect users to swipe horizontally. */
  .sb-tree-node-card {
    width: 116px;
    height: 150px;
  }

  /* Hero chat (search): hide send-button label, smaller padding. */
  .sb-hero-chat {
    padding: 0.75rem 0.85rem 0.65rem;
  }
  .sb-hero-chat-form {
    padding: 0.35rem 0.45rem 0.35rem 0.7rem;
    gap: 0.45rem;
  }
  .sb-hero-chat-input {
    font-size: 0.92rem;
  }

  /* Profile-hero photo not too tall on phones. */
  .sb-profile-hero-photo {
    height: 160px;
  }

  /* Stats KPI cards stack tighter. */
  .sb-stats-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sb-stats-mode-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .sb-stats-mode-count {
    text-align: left;
  }

  /* Radial chart shrinks (already has 600px viewport rule;
     this version reacts to container width too). */
  .sb-radial-stage {
    --sb-radial-s: 280px !important;
  }

  /* Choice cards a touch shorter. */
  .sb-choice-card {
    min-height: 170px;
    padding: 1rem 0.85rem;
  }
  .sb-choice-icon {
    width: 64px;
    height: 64px;
  }
  .sb-choice-title {
    font-size: 1.05rem;
  }
}
