:root {
  --sb-bg: #f4f7fb;
  --sb-card: #ffffff;
  --sb-text: #0f172a;
  --sb-muted: #64748b;
  --sb-accent: #073889;
  --sb-accent-soft: #e0efff;
  --sb-radius: 12px;
  --sb-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --sb-font-display: "Exo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --sb-font-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

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

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

.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-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-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) 320px;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sb-toolbar-actions {
  border: 1px solid #e9f4f8;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
}

.sb-toolbar-actions-title {
  margin-bottom: 0.5rem;
}

.sb-toolbar-actions-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.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.15rem;
  min-width: 0;
}

.sb-location-group {
  padding: 0.9rem 1rem;
}

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

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

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

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

.sb-profile-tile-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.65);
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.12);
}

.sb-section-title {
  font-family: var(--sb-font-display);
  font-weight: 700;
  color: var(--sb-accent);
  letter-spacing: -0.01em;
}

.sb-card.sb-profile-hero {
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
  background: linear-gradient(90deg, #073889 0%, #0065cc 55%, #073889 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(3, 21, 63, 0.18);
}

.sb-card.sb-profile-hero .sb-title,
.sb-card.sb-profile-hero .sb-display {
  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: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(3, 21, 63, 0.22);
}

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

.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-badge-on-blue {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

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

.sb-profile-field {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  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: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.15rem;
}

.sb-profile-field-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

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

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

.sb-profile-contact-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  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: rgba(255, 255, 255, 0.85);
}

.sb-profile-contact-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

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

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

@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-chat-card {
    height: 70vh;
    min-height: 420px;
  }

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

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

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

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

.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:
    linear-gradient(180deg, #ffffff 0%, #f5f5f9 100%);
  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-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--sb-accent);
  color: #fff;
  text-decoration: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.sb-profile-tile {
  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:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

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

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

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

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

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

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

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

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

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

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